gds-plus-design-vue 1.2.6 → 1.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (368) hide show
  1. package/lib/approvalModel.a26e8ff6.mjs +340 -0
  2. package/lib/approvalModel.cfd81971.js +1 -0
  3. package/lib/btnFunctionName.9aabfed0.js +1 -0
  4. package/lib/btnFunctionName.d08627cb.mjs +254 -0
  5. package/lib/btnRelation.8e608261.mjs +156 -0
  6. package/lib/btnRelation.cb3dc022.js +1 -0
  7. package/lib/businessRules.754cc398.mjs +539 -0
  8. package/lib/businessRules.f41f7035.js +1 -0
  9. package/lib/buttonRule.4483314f.mjs +396 -0
  10. package/lib/buttonRule.645de1d3.js +1 -0
  11. package/lib/chartDisplayRules.1f4d1f29.mjs +288 -0
  12. package/lib/chartDisplayRules.fedfefe8.js +1 -0
  13. package/lib/components.chartbi.470b96af.mjs +1798 -0
  14. package/lib/components.chartbi.e9459775.js +8 -0
  15. package/lib/components.coloreditor.affa0400.mjs +1505 -0
  16. package/lib/components.coloreditor.dbec8da6.js +6 -0
  17. package/lib/components.dataassign.39281072.mjs +147 -0
  18. package/lib/components.dataassign.b6a1bffb.js +1 -0
  19. package/lib/components.echarts.95ffc3b3.mjs +811 -0
  20. package/lib/components.echarts.d09e9850.js +4 -0
  21. package/lib/components.exception.11315db5.js +1 -0
  22. package/lib/components.exception.facf9df9.mjs +61 -0
  23. package/lib/components.form.56ea8f98.js +41 -0
  24. package/lib/components.form.a7b3ea37.mjs +7813 -0
  25. package/lib/components.globalheader.0a7ce959.js +1 -0
  26. package/lib/components.globalheader.4a5f7225.mjs +54 -0
  27. package/lib/components.iconselector.0c03cfc7.js +1 -0
  28. package/lib/components.iconselector.251c29b9.mjs +1169 -0
  29. package/lib/components.imgpreview.5546e541.mjs +213 -0
  30. package/lib/components.imgpreview.706a89f0.js +1 -0
  31. package/lib/components.lunccalendar.5363cba5.mjs +1137 -0
  32. package/lib/components.lunccalendar.fe7db238.js +1 -0
  33. package/lib/components.middleware.01601349.js +1 -0
  34. package/lib/components.middleware.f5f4ac0f.mjs +148 -0
  35. package/lib/components.modaltitle.5ded43f9.mjs +127 -0
  36. package/lib/components.modaltitle.cc9ba616.js +1 -0
  37. package/lib/components.multitab.0f9da9f3.mjs +140 -0
  38. package/lib/components.multitab.726cff2f.js +1 -0
  39. package/lib/components.selecttree.1a71c963.mjs +170 -0
  40. package/lib/components.selecttree.2fadffca.js +1 -0
  41. package/lib/components.settingdrawer.1af86231.js +1 -0
  42. package/lib/components.settingdrawer.adc262cf.mjs +237 -0
  43. package/lib/components.sidemenu.03442146.mjs +277 -0
  44. package/lib/components.sidemenu.5107c7e3.js +1 -0
  45. package/lib/components.sidenavmenu.3d255147.mjs +1147 -0
  46. package/lib/components.sidenavmenu.ef33de39.js +1 -0
  47. package/lib/components.statuschange.805a751b.mjs +116 -0
  48. package/lib/components.statuschange.83646c5d.js +1 -0
  49. package/lib/components.table.61eb5d81.js +8 -0
  50. package/lib/components.table.c986e58d.mjs +4650 -0
  51. package/lib/components.tableumy.35b465f9.mjs +453 -0
  52. package/lib/components.tableumy.eba43953.js +1 -0
  53. package/lib/components.tablevirtual.14a8dbed.mjs +564 -0
  54. package/lib/components.tablevirtual.6af04c44.js +1 -0
  55. package/lib/components.teamsharing.68865424.js +1 -0
  56. package/lib/components.teamsharing.c4f4f12e.mjs +373 -0
  57. package/lib/components.tooltip.ccb1717d.mjs +86 -0
  58. package/lib/components.tooltip.e2e21e66.js +1 -0
  59. package/lib/components.uploadfile.a0dfedaf.mjs +228 -0
  60. package/lib/components.uploadfile.e93b500d.js +1 -0
  61. package/lib/components.uploadimg.3804913e.js +1 -0
  62. package/lib/components.uploadimg.e49707d9.mjs +192 -0
  63. package/lib/components.verificationcode.5a9c0220.js +1 -0
  64. package/lib/components.verificationcode.ead74922.mjs +71 -0
  65. package/lib/components.viewformdetails.3c1596ad.js +1 -0
  66. package/lib/components.viewformdetails.98be3c0d.mjs +1081 -0
  67. package/lib/components.viewloading.5b178ec5.js +1 -0
  68. package/lib/components.viewloading.cb7917b7.mjs +99 -0
  69. package/lib/components.watermark.849409ca.js +2 -0
  70. package/lib/components.watermark.a2521d0c.mjs +53 -0
  71. package/lib/components.xlsxexport.3405a00b.js +1 -0
  72. package/lib/components.xlsxexport.871f87d1.mjs +263 -0
  73. package/lib/components.xlsximport.85ce77cf.mjs +922 -0
  74. package/lib/components.xlsximport.e3bcb07d.js +1 -0
  75. package/lib/copy.b09a6d38.js +1 -0
  76. package/lib/copy.c0a2f16d.mjs +572 -0
  77. package/lib/dialogLayout.059ee256.mjs +138 -0
  78. package/lib/dialogLayout.cedf2865.js +1 -0
  79. package/lib/drawerContainer.38d7b530.mjs +154 -0
  80. package/lib/drawerContainer.ea7722d7.js +1 -0
  81. package/lib/drawerLayout.454e4921.js +1 -0
  82. package/lib/drawerLayout.fad843ee.mjs +119 -0
  83. package/lib/editForm.c199538f.mjs +434 -0
  84. package/lib/editForm.f9dc93ef.js +1 -0
  85. package/lib/flow.designer.4c83c0d3.js +1 -0
  86. package/lib/flow.designer.9442a995.mjs +7673 -0
  87. package/lib/flow.list.4a31969e.mjs +3032 -0
  88. package/lib/flow.list.f41ee531.js +1 -0
  89. package/lib/form.build.c38bf362.js +1 -0
  90. package/lib/form.build.fb9f905b.mjs +259 -0
  91. package/lib/form.designer.build.3fdf8007.js +1 -0
  92. package/lib/form.designer.build.e1b97dc3.mjs +5135 -0
  93. package/lib/formFiled.624b8dd3.js +1 -0
  94. package/lib/formFiled.94fb1dce.mjs +498 -0
  95. package/lib/gd-initial.js +1 -35
  96. package/lib/gd-initial.mjs +233 -91087
  97. package/lib/http.appmanage.9b22ff82.mjs +50 -0
  98. package/lib/http.appmanage.b998818f.js +1 -0
  99. package/lib/http.codegeneratemanage.b123bab3.mjs +120 -0
  100. package/lib/http.codegeneratemanage.e3db2f09.js +1 -0
  101. package/lib/http.configmanage.6cfb8ae7.js +1 -0
  102. package/lib/http.configmanage.c23c7fa8.mjs +34 -0
  103. package/lib/http.currencymanage.37ab5ced.js +1 -0
  104. package/lib/http.currencymanage.c25bd2e6.mjs +10 -0
  105. package/lib/http.datasource.294b01e2.js +1 -0
  106. package/lib/http.datasource.aa5cd0d1.mjs +58 -0
  107. package/lib/http.dictdatamanage.2583b5ae.mjs +42 -0
  108. package/lib/http.dictdatamanage.70545d8a.js +1 -0
  109. package/lib/http.dictmanage.3dc07b5d.js +1 -0
  110. package/lib/http.dictmanage.d8fe18dc.mjs +50 -0
  111. package/lib/http.duplicatechecking.9b79ce21.mjs +50 -0
  112. package/lib/http.duplicatechecking.ee5c414c.js +1 -0
  113. package/lib/http.emailmanage.1ddaa8b5.js +1 -0
  114. package/lib/http.emailmanage.64fd611f.mjs +18 -0
  115. package/lib/http.filedocument.6fdfc693.js +1 -0
  116. package/lib/http.filedocument.d3a4afd9.mjs +293 -0
  117. package/lib/http.filemanage.7e6e3e1a.js +1 -0
  118. package/lib/http.filemanage.c0de21d6.mjs +71 -0
  119. package/lib/http.languagemanage.2ef16159.mjs +10 -0
  120. package/lib/http.languagemanage.e2c098ec.js +1 -0
  121. package/lib/http.loginmanage.05500c29.mjs +74 -0
  122. package/lib/http.loginmanage.326984c3.js +1 -0
  123. package/lib/http.logmanage.1e12a9bd.js +1 -0
  124. package/lib/http.logmanage.8ba72635.mjs +82 -0
  125. package/lib/http.machinemanage.29d72a65.js +1 -0
  126. package/lib/http.machinemanage.7bbe6c16.mjs +26 -0
  127. package/lib/http.main.1af1e119.mjs +517 -0
  128. package/lib/http.main.2f8a6936.js +1 -0
  129. package/lib/http.menumanage.09fffb7d.mjs +66 -0
  130. package/lib/http.menumanage.6d740f2c.js +1 -0
  131. package/lib/http.message.1d68e914.mjs +178 -0
  132. package/lib/http.message.87f319d7.js +1 -0
  133. package/lib/http.noticemanage.2507d094.js +1 -0
  134. package/lib/http.noticemanage.2cdb23b8.mjs +82 -0
  135. package/lib/http.noticereceivedmanage.50797be1.mjs +10 -0
  136. package/lib/http.noticereceivedmanage.e8ec9c9d.js +1 -0
  137. package/lib/http.onlineusermanage.3893f897.js +1 -0
  138. package/lib/http.onlineusermanage.c8d84337.mjs +18 -0
  139. package/lib/http.orgmanage.0b1df8d5.mjs +58 -0
  140. package/lib/http.orgmanage.5162fd7a.js +1 -0
  141. package/lib/http.pluginmanage.54720675.mjs +82 -0
  142. package/lib/http.pluginmanage.6a876040.js +1 -0
  143. package/lib/http.posmanage.c0f80aec.js +1 -0
  144. package/lib/http.posmanage.ee6a7613.mjs +34 -0
  145. package/lib/http.promptmanagement.d115c4b0.js +1 -0
  146. package/lib/http.promptmanagement.dad4c6a7.mjs +42 -0
  147. package/lib/http.rolemanage.4d1101dd.js +1 -0
  148. package/lib/http.rolemanage.da5c40e9.mjs +146 -0
  149. package/lib/http.solution.b10d9197.mjs +91 -0
  150. package/lib/http.solution.c6b2634f.js +1 -0
  151. package/lib/http.sumberrules.0b68ce6d.js +1 -0
  152. package/lib/http.sumberrules.176d3d06.mjs +34 -0
  153. package/lib/http.sysapps.469d47f7.js +1 -0
  154. package/lib/http.sysapps.932ba43b.mjs +58 -0
  155. package/lib/http.syscodegenerateconfigmanage.6d2e5da0.mjs +42 -0
  156. package/lib/http.syscodegenerateconfigmanage.840f1136.js +1 -0
  157. package/lib/http.tabledevelopment.7adf4910.mjs +362 -0
  158. package/lib/http.tabledevelopment.a880bb76.js +1 -0
  159. package/lib/http.team.a9c609d5.mjs +90 -0
  160. package/lib/http.team.e45400d5.js +1 -0
  161. package/lib/http.timersmanage.6e894942.js +1 -0
  162. package/lib/http.timersmanage.c79afb66.mjs +146 -0
  163. package/lib/http.timezonemanage.b9deffe3.mjs +10 -0
  164. package/lib/http.timezonemanage.e0aa212f.js +1 -0
  165. package/lib/http.translationmanage.1f9dce46.js +1 -0
  166. package/lib/http.translationmanage.f8694b51.mjs +104 -0
  167. package/lib/http.useraffiliation.af2013ad.js +1 -0
  168. package/lib/http.useraffiliation.f2a29f92.mjs +90 -0
  169. package/lib/http.usermanage.6dcbc7de.js +1 -0
  170. package/lib/http.usermanage.f5491144.mjs +219 -0
  171. package/lib/http.webresource.1a1a768f.mjs +50 -0
  172. package/lib/http.webresource.7c01b9cd.js +1 -0
  173. package/lib/index.3fa2dc66.mjs +40154 -0
  174. package/lib/index.fe757a98.js +8 -0
  175. package/lib/layoutBlocks.14c77a02.js +1 -0
  176. package/lib/layoutBlocks.5d71a03b.mjs +401 -0
  177. package/lib/layouts.a662f681.js +2 -0
  178. package/lib/layouts.ec4f20a2.mjs +376 -0
  179. package/lib/main.092a2ac8.js +1 -0
  180. package/lib/{main.f0045877.mjs → main.15237e71.mjs} +12 -10
  181. package/lib/main.29769f01.js +1 -0
  182. package/lib/main.401059c6.mjs +189 -0
  183. package/lib/main.447be615.js +1 -0
  184. package/lib/main.4e507685.mjs +231 -0
  185. package/lib/main.72cafa63.mjs +540 -0
  186. package/lib/{main.c41228a0.mjs → main.73f22d9e.mjs} +9 -8
  187. package/lib/main.7601bd3d.mjs +166 -0
  188. package/lib/main.79199ac2.js +1 -0
  189. package/lib/main.821d081b.js +1 -0
  190. package/lib/main.8627466a.mjs +537 -0
  191. package/lib/{main.b5a3be02.mjs → main.88e9be9d.mjs} +4 -4
  192. package/lib/main.8e6f6cba.mjs +323 -0
  193. package/lib/main.a9a54af9.js +1 -0
  194. package/lib/main.e033a376.js +1 -0
  195. package/lib/main.e2e4ba74.js +1 -0
  196. package/lib/{main.3caa11e1.mjs → main.e79d9e56.mjs} +113 -188
  197. package/lib/main.ea3a04f4.js +1 -0
  198. package/lib/main.f44d8279.js +1 -0
  199. package/lib/messages.5f54a62e.js +9 -0
  200. package/lib/{messages.a739f4fc.mjs → messages.d4354532.mjs} +4321 -5268
  201. package/lib/packages.filedocument.8418d852.mjs +4039 -0
  202. package/lib/packages.filedocument.9b8eda0d.js +1 -0
  203. package/lib/page.build.4d28df9a.js +12 -0
  204. package/lib/page.build.78cc7396.mjs +3020 -0
  205. package/lib/personal.echarts.940f1cc9.mjs +696 -0
  206. package/lib/personal.echarts.b5a7f574.js +1 -0
  207. package/lib/result.0161b0e0.js +1 -0
  208. package/lib/result.5a9330d7.mjs +627 -0
  209. package/lib/router.config.79a98ab8.mjs +3105 -0
  210. package/lib/router.config.7fd04c30.js +1 -0
  211. package/lib/solution.application.3ae7c0c5.js +1 -0
  212. package/lib/solution.application.fdc15ffc.mjs +548 -0
  213. package/lib/solution.applicationmenu.67aba620.js +1 -0
  214. package/lib/solution.applicationmenu.daaacb07.mjs +508 -0
  215. package/lib/solution.approvalflow.81b7cfb7.js +1 -0
  216. package/lib/solution.approvalflow.a541adcc.mjs +436 -0
  217. package/lib/solution.dict.addbce33.mjs +769 -0
  218. package/lib/solution.dict.f1c9bae6.js +1 -0
  219. package/lib/solution.menu.2033fa37.mjs +5834 -0
  220. package/lib/solution.menu.6512047f.js +1 -0
  221. package/lib/solution.plugin.7094dbfd.js +1 -0
  222. package/lib/solution.plugin.d8f057cb.mjs +347 -0
  223. package/lib/solution.processflow.0adf4f55.js +1 -0
  224. package/lib/solution.processflow.a779bd58.mjs +392 -0
  225. package/lib/solution.role.d35cb00d.js +1 -0
  226. package/lib/solution.role.d9a4b25a.mjs +456 -0
  227. package/lib/solution.webresources.e1421655.mjs +379 -0
  228. package/lib/solution.webresources.e817757c.js +1 -0
  229. package/lib/solution.workflow.59552b8c.mjs +395 -0
  230. package/lib/solution.workflow.985e1f4d.js +1 -0
  231. package/lib/store.config.556bd56b.js +1 -0
  232. package/lib/store.config.5e5cb48a.mjs +547 -0
  233. package/lib/style.css +3 -3
  234. package/lib/system.account.1b281679.js +216 -0
  235. package/lib/system.account.96d5bc17.mjs +2093 -0
  236. package/lib/system.config.0ff45e62.js +1 -0
  237. package/lib/{system.config.d2ad8c97.mjs → system.config.35b13003.mjs} +7 -6
  238. package/lib/system.datasource.4243937d.js +1 -0
  239. package/lib/{system.datasource.a77831ab.mjs → system.datasource.7f582bef.mjs} +15 -64
  240. package/lib/{system.dict.cb276470.mjs → system.dict.3697546d.mjs} +269 -344
  241. package/lib/system.dict.8e4fe6b0.js +1 -0
  242. package/lib/system.document.69e534a6.js +1 -0
  243. package/lib/system.document.8e4dbe5e.mjs +667 -0
  244. package/lib/system.duplicatechecking.1083eb1e.js +1 -0
  245. package/lib/system.duplicatechecking.c6a8b2b7.mjs +722 -0
  246. package/lib/system.email.06bb7cc1.mjs +133 -0
  247. package/lib/system.email.41036a31.js +1 -0
  248. package/lib/system.fieldsecurity.3ea880d8.js +1 -0
  249. package/lib/{system.fieldsecurity.9d40595f.mjs → system.fieldsecurity.dd504643.mjs} +486 -938
  250. package/lib/{system.file.8064c8e9.mjs → system.file.8ccc4569.mjs} +84 -151
  251. package/lib/system.file.b8e4e6a1.js +1 -0
  252. package/lib/system.log.14c22a7a.js +1 -0
  253. package/lib/{system.log.2b2fc11a.mjs → system.log.aad4ff54.mjs} +31 -93
  254. package/lib/system.machine.379beacb.js +1 -0
  255. package/lib/{system.machine.0130e762.mjs → system.machine.c47be0cc.mjs} +5 -25
  256. package/lib/{system.notice.5f8cd020.mjs → system.notice.dc1b67cc.mjs} +1075 -1255
  257. package/lib/system.notice.fb151c45.js +1 -0
  258. package/lib/system.noticereceived.3a29d891.js +1 -0
  259. package/lib/{system.noticereceived.51b6353a.mjs → system.noticereceived.e75bf358.mjs} +19 -27
  260. package/lib/{system.onlineuser.c0a69360.mjs → system.onlineuser.ab9c2776.mjs} +36 -38
  261. package/lib/system.onlineuser.fc26aff9.js +1 -0
  262. package/lib/system.org.b6f826e8.js +1 -0
  263. package/lib/{system.org.1169fe47.mjs → system.org.dd710a91.mjs} +3 -3
  264. package/lib/system.permissions.75406743.mjs +972 -0
  265. package/lib/system.permissions.97f68887.js +1 -0
  266. package/lib/system.plugin.3fcf7b0b.js +1 -0
  267. package/lib/{system.plugin.502a69d8.mjs → system.plugin.4b80cd95.mjs} +503 -552
  268. package/lib/system.pos.5a1663d8.js +1 -0
  269. package/lib/{system.pos.8c44c029.mjs → system.pos.a3bafaaa.mjs} +31 -62
  270. package/lib/system.promptmanagement.53c301a3.js +1 -0
  271. package/lib/{system.promptmanagement.d8565db4.mjs → system.promptmanagement.fd651c09.mjs} +318 -449
  272. package/lib/{system.role.19959d7f.mjs → system.role.9edb5922.mjs} +512 -486
  273. package/lib/system.role.e164f059.js +1 -0
  274. package/lib/{system.sumberrules.087015a4.mjs → system.sumberrules.4bb2c95c.mjs} +169 -192
  275. package/lib/system.sumberrules.5e9cd262.js +1 -0
  276. package/lib/system.team.3e605266.js +1 -0
  277. package/lib/system.team.bb1fb40e.mjs +452 -0
  278. package/lib/system.teammembers.a098883b.js +1 -0
  279. package/lib/{system.teammembers.4056d586.mjs → system.teammembers.b8e53d99.mjs} +257 -199
  280. package/lib/system.timers.2f884e41.js +38 -0
  281. package/lib/{system.timers.6f61bfe1.mjs → system.timers.551c4a4b.mjs} +2202 -2278
  282. package/lib/system.translation.6e99c852.js +1 -0
  283. package/lib/{system.translation.9b88fbf2.mjs → system.translation.c2c1f40c.mjs} +437 -431
  284. package/lib/{system.user.bdf2613e.mjs → system.user.b99911de.mjs} +1082 -1025
  285. package/lib/system.user.dffc2543.js +14 -0
  286. package/lib/{system.useraffiliation.63b6bb36.mjs → system.useraffiliation.12cae7ef.mjs} +419 -412
  287. package/lib/system.useraffiliation.f8b33def.js +1 -0
  288. package/lib/system.webresource.1d3ed352.js +1 -0
  289. package/lib/{system.webresource.c36d6792.mjs → system.webresource.8a8d856b.mjs} +177 -219
  290. package/lib/{system.welcome.14785b50.mjs → system.welcome.573a76db.mjs} +10 -3
  291. package/lib/system.welcome.eedf1db2.js +1 -0
  292. package/lib/tableDescriptions.923c4ef1.mjs +80 -0
  293. package/lib/tableDescriptions.b12679b0.js +1 -0
  294. package/lib/tcheckboxs.887d733c.mjs +52 -0
  295. package/lib/tcheckboxs.fe7e574a.js +1 -0
  296. package/lib/tcurrency.10ac9aa7.mjs +85 -0
  297. package/lib/tcurrency.20e959c0.js +1 -0
  298. package/lib/tdatepicker.54036bba.js +1 -0
  299. package/lib/tdatepicker.a08ad382.mjs +52 -0
  300. package/lib/tdictSwitch.274e9f86.js +1 -0
  301. package/lib/tdictSwitch.d40f1b4f.mjs +60 -0
  302. package/lib/tfile.5c897827.js +1 -0
  303. package/lib/tfile.f63b73b9.mjs +62 -0
  304. package/lib/tparticipants.4698962b.mjs +56 -0
  305. package/lib/tparticipants.b6fb4545.js +1 -0
  306. package/lib/translation.mains.5cfc7a2f.js +1 -0
  307. package/lib/translation.mains.e6cb610b.mjs +383 -0
  308. package/lib/utils.datepicker.js.0a5a699e.js +1 -0
  309. package/lib/utils.datepicker.js.5549a741.mjs +70 -0
  310. package/lib/utils.echarts.js.461a74e7.js +54 -0
  311. package/lib/utils.echarts.js.d1bb8ac6.mjs +25711 -0
  312. package/lib/utils.mixins.js.750ca50e.js +1 -0
  313. package/lib/utils.mixins.js.be01e599.mjs +41 -0
  314. package/lib/utils.plug.js.9313aead.mjs +31 -0
  315. package/lib/utils.plug.js.f62510ce.js +1 -0
  316. package/lib/utils.util.js.885de913.mjs +439 -0
  317. package/lib/utils.util.js.c0ba699b.js +1 -0
  318. package/lib/view.build.051553d8.mjs +1578 -0
  319. package/lib/view.build.9af3087b.js +1 -0
  320. package/lib/viewList.209956c3.js +1 -0
  321. package/lib/viewList.c05c92be.mjs +318 -0
  322. package/lib/viewTree.0cd9f1a2.js +1 -0
  323. package/lib/viewTree.c5290360.mjs +409 -0
  324. package/locale/en_US.js +92 -28
  325. package/locale/id_ID.js +76 -12
  326. package/locale/vi_VN.js +2012 -1948
  327. package/locale/zh_CN.js +97 -33
  328. package/package.json +106 -105
  329. package/lib/chartbi.114d32d7.js +0 -60
  330. package/lib/chartbi.eb4dd0af.mjs +0 -27639
  331. package/lib/main.03984fed.js +0 -1
  332. package/lib/main.1050afb3.js +0 -1
  333. package/lib/main.64122541.js +0 -1
  334. package/lib/main.b7d2c6ee.js +0 -1
  335. package/lib/messages.828b6ed8.js +0 -9
  336. package/lib/system.account.3181bcd6.js +0 -216
  337. package/lib/system.account.7c6ea20c.mjs +0 -2552
  338. package/lib/system.config.10f57fa2.js +0 -1
  339. package/lib/system.datasource.d5eea7f2.js +0 -1
  340. package/lib/system.dict.d73658f1.js +0 -1
  341. package/lib/system.duplicatechecking.5c8a3eef.mjs +0 -2142
  342. package/lib/system.duplicatechecking.d24ba6ea.js +0 -1
  343. package/lib/system.email.4bf52f2d.js +0 -41
  344. package/lib/system.email.db5da8d7.mjs +0 -7432
  345. package/lib/system.fieldsecurity.eb217079.js +0 -1
  346. package/lib/system.file.c1884db7.js +0 -1
  347. package/lib/system.log.389af80d.js +0 -1
  348. package/lib/system.machine.49fc6405.js +0 -1
  349. package/lib/system.notice.a89f4826.js +0 -1
  350. package/lib/system.noticereceived.5e0773c3.js +0 -1
  351. package/lib/system.onlineuser.67733846.js +0 -1
  352. package/lib/system.org.ff54d620.js +0 -1
  353. package/lib/system.permissions.cc9a9866.mjs +0 -212
  354. package/lib/system.permissions.e6317c5a.js +0 -9
  355. package/lib/system.plugin.3467d572.js +0 -1
  356. package/lib/system.pos.4aadf86e.js +0 -1
  357. package/lib/system.promptmanagement.9ba710d6.js +0 -1
  358. package/lib/system.role.890c8ca2.js +0 -1
  359. package/lib/system.sumberrules.068ebe4a.js +0 -1
  360. package/lib/system.team.27cd57f7.mjs +0 -1000
  361. package/lib/system.team.2b28502b.js +0 -1
  362. package/lib/system.teammembers.e3baf783.js +0 -1
  363. package/lib/system.timers.cb0a3bd0.js +0 -38
  364. package/lib/system.translation.f3884a0a.js +0 -1
  365. package/lib/system.user.3bd95871.js +0 -14
  366. package/lib/system.useraffiliation.7db6e13c.js +0 -1
  367. package/lib/system.webresource.ede248a8.js +0 -1
  368. package/lib/system.welcome.c9eefa06.js +0 -1
@@ -1,41 +0,0 @@
1
- "use strict";const mt=require("./system.account.3181bcd6.js"),gt=require("./chartbi.114d32d7.js");var pt={exports:{}},vt={exports:{}};/*!
2
- * Quill Editor v1.3.7
3
- * https://quilljs.com/
4
- * Copyright (c) 2014, Jason Chen
5
- * Copyright (c) 2013, salesforce.com
6
- */var yt;function Ot(){return yt||(yt=1,function(lt,G){(function(y,d){lt.exports=d()})(typeof self<"u"?self:mt.commonjsGlobal,function(){return function(j){var y={};function d(S){if(y[S])return y[S].exports;var A=y[S]={i:S,l:!1,exports:{}};return j[S].call(A.exports,A,A.exports,d),A.l=!0,A.exports}return d.m=j,d.c=y,d.d=function(S,A,O){d.o(S,A)||Object.defineProperty(S,A,{configurable:!1,enumerable:!0,get:O})},d.n=function(S){var A=S&&S.__esModule?function(){return S.default}:function(){return S};return d.d(A,"a",A),A},d.o=function(S,A){return Object.prototype.hasOwnProperty.call(S,A)},d.p="",d(d.s=109)}([function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0});var S=d(17),A=d(18),O=d(19),v=d(45),p=d(46),c=d(47),o=d(48),t=d(49),e=d(12),u=d(32),l=d(33),a=d(31),i=d(1),r={Scope:i.Scope,create:i.create,find:i.find,query:i.query,register:i.register,Container:S.default,Format:A.default,Leaf:O.default,Embed:o.default,Scroll:v.default,Block:c.default,Inline:p.default,Text:t.default,Attributor:{Attribute:e.default,Class:u.default,Style:l.default,Store:a.default}};y.default=r},function(j,y,d){var S=this&&this.__extends||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var s in r)r.hasOwnProperty(s)&&(i[s]=r[s])};return function(i,r){a(i,r);function s(){this.constructor=i}i.prototype=r===null?Object.create(r):(s.prototype=r.prototype,new s)}}();Object.defineProperty(y,"__esModule",{value:!0});var A=function(a){S(i,a);function i(r){var s=this;return r="[Parchment] "+r,s=a.call(this,r)||this,s.message=r,s.name=s.constructor.name,s}return i}(Error);y.ParchmentError=A;var O={},v={},p={},c={};y.DATA_KEY="__blot";var o;(function(a){a[a.TYPE=3]="TYPE",a[a.LEVEL=12]="LEVEL",a[a.ATTRIBUTE=13]="ATTRIBUTE",a[a.BLOT=14]="BLOT",a[a.INLINE=7]="INLINE",a[a.BLOCK=11]="BLOCK",a[a.BLOCK_BLOT=10]="BLOCK_BLOT",a[a.INLINE_BLOT=6]="INLINE_BLOT",a[a.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",a[a.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",a[a.ANY=15]="ANY"})(o=y.Scope||(y.Scope={}));function t(a,i){var r=u(a);if(r==null)throw new A("Unable to create "+a+" blot");var s=r,n=a instanceof Node||a.nodeType===Node.TEXT_NODE?a:s.create(i);return new s(n,i)}y.create=t;function e(a,i){return i===void 0&&(i=!1),a==null?null:a[y.DATA_KEY]!=null?a[y.DATA_KEY].blot:i?e(a.parentNode,i):null}y.find=e;function u(a,i){i===void 0&&(i=o.ANY);var r;if(typeof a=="string")r=c[a]||O[a];else if(a instanceof Text||a.nodeType===Node.TEXT_NODE)r=c.text;else if(typeof a=="number")a&o.LEVEL&o.BLOCK?r=c.block:a&o.LEVEL&o.INLINE&&(r=c.inline);else if(a instanceof HTMLElement){var s=(a.getAttribute("class")||"").split(/\s+/);for(var n in s)if(r=v[s[n]],r)break;r=r||p[a.tagName]}return r==null?null:i&o.LEVEL&r.scope&&i&o.TYPE&r.scope?r:null}y.query=u;function l(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];if(a.length>1)return a.map(function(n){return l(n)});var r=a[0];if(typeof r.blotName!="string"&&typeof r.attrName!="string")throw new A("Invalid definition");if(r.blotName==="abstract")throw new A("Cannot register abstract class");if(c[r.blotName||r.attrName]=r,typeof r.keyName=="string")O[r.keyName]=r;else if(r.className!=null&&(v[r.className]=r),r.tagName!=null){Array.isArray(r.tagName)?r.tagName=r.tagName.map(function(n){return n.toUpperCase()}):r.tagName=r.tagName.toUpperCase();var s=Array.isArray(r.tagName)?r.tagName:[r.tagName];s.forEach(function(n){(p[n]==null||r.className==null)&&(p[n]=r)})}return r}y.register=l},function(j,y,d){var S=d(51),A=d(11),O=d(3),v=d(20),p=String.fromCharCode(0),c=function(o){Array.isArray(o)?this.ops=o:o!=null&&Array.isArray(o.ops)?this.ops=o.ops:this.ops=[]};c.prototype.insert=function(o,t){var e={};return o.length===0?this:(e.insert=o,t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(e.attributes=t),this.push(e))},c.prototype.delete=function(o){return o<=0?this:this.push({delete:o})},c.prototype.retain=function(o,t){if(o<=0)return this;var e={retain:o};return t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(e.attributes=t),this.push(e)},c.prototype.push=function(o){var t=this.ops.length,e=this.ops[t-1];if(o=O(!0,{},o),typeof e=="object"){if(typeof o.delete=="number"&&typeof e.delete=="number")return this.ops[t-1]={delete:e.delete+o.delete},this;if(typeof e.delete=="number"&&o.insert!=null&&(t-=1,e=this.ops[t-1],typeof e!="object"))return this.ops.unshift(o),this;if(A(o.attributes,e.attributes)){if(typeof o.insert=="string"&&typeof e.insert=="string")return this.ops[t-1]={insert:e.insert+o.insert},typeof o.attributes=="object"&&(this.ops[t-1].attributes=o.attributes),this;if(typeof o.retain=="number"&&typeof e.retain=="number")return this.ops[t-1]={retain:e.retain+o.retain},typeof o.attributes=="object"&&(this.ops[t-1].attributes=o.attributes),this}}return t===this.ops.length?this.ops.push(o):this.ops.splice(t,0,o),this},c.prototype.chop=function(){var o=this.ops[this.ops.length-1];return o&&o.retain&&!o.attributes&&this.ops.pop(),this},c.prototype.filter=function(o){return this.ops.filter(o)},c.prototype.forEach=function(o){this.ops.forEach(o)},c.prototype.map=function(o){return this.ops.map(o)},c.prototype.partition=function(o){var t=[],e=[];return this.forEach(function(u){var l=o(u)?t:e;l.push(u)}),[t,e]},c.prototype.reduce=function(o,t){return this.ops.reduce(o,t)},c.prototype.changeLength=function(){return this.reduce(function(o,t){return t.insert?o+v.length(t):t.delete?o-t.delete:o},0)},c.prototype.length=function(){return this.reduce(function(o,t){return o+v.length(t)},0)},c.prototype.slice=function(o,t){o=o||0,typeof t!="number"&&(t=1/0);for(var e=[],u=v.iterator(this.ops),l=0;l<t&&u.hasNext();){var a;l<o?a=u.next(o-l):(a=u.next(t-l),e.push(a)),l+=v.length(a)}return new c(e)},c.prototype.compose=function(o){var t=v.iterator(this.ops),e=v.iterator(o.ops),u=[],l=e.peek();if(l!=null&&typeof l.retain=="number"&&l.attributes==null){for(var a=l.retain;t.peekType()==="insert"&&t.peekLength()<=a;)a-=t.peekLength(),u.push(t.next());l.retain-a>0&&e.next(l.retain-a)}for(var i=new c(u);t.hasNext()||e.hasNext();)if(e.peekType()==="insert")i.push(e.next());else if(t.peekType()==="delete")i.push(t.next());else{var r=Math.min(t.peekLength(),e.peekLength()),s=t.next(r),n=e.next(r);if(typeof n.retain=="number"){var f={};typeof s.retain=="number"?f.retain=r:f.insert=s.insert;var w=v.attributes.compose(s.attributes,n.attributes,typeof s.retain=="number");if(w&&(f.attributes=w),i.push(f),!e.hasNext()&&A(i.ops[i.ops.length-1],f)){var b=new c(t.rest());return i.concat(b).chop()}}else typeof n.delete=="number"&&typeof s.retain=="number"&&i.push(n)}return i.chop()},c.prototype.concat=function(o){var t=new c(this.ops.slice());return o.ops.length>0&&(t.push(o.ops[0]),t.ops=t.ops.concat(o.ops.slice(1))),t},c.prototype.diff=function(o,t){if(this.ops===o.ops)return new c;var e=[this,o].map(function(r){return r.map(function(s){if(s.insert!=null)return typeof s.insert=="string"?s.insert:p;var n=r===o?"on":"with";throw new Error("diff() called "+n+" non-document")}).join("")}),u=new c,l=S(e[0],e[1],t),a=v.iterator(this.ops),i=v.iterator(o.ops);return l.forEach(function(r){for(var s=r[1].length;s>0;){var n=0;switch(r[0]){case S.INSERT:n=Math.min(i.peekLength(),s),u.push(i.next(n));break;case S.DELETE:n=Math.min(s,a.peekLength()),a.next(n),u.delete(n);break;case S.EQUAL:n=Math.min(a.peekLength(),i.peekLength(),s);var f=a.next(n),w=i.next(n);A(f.insert,w.insert)?u.retain(n,v.attributes.diff(f.attributes,w.attributes)):u.push(w).delete(n);break}s-=n}}),u.chop()},c.prototype.eachLine=function(o,t){t=t||`
7
- `;for(var e=v.iterator(this.ops),u=new c,l=0;e.hasNext();){if(e.peekType()!=="insert")return;var a=e.peek(),i=v.length(a)-e.peekLength(),r=typeof a.insert=="string"?a.insert.indexOf(t,i)-i:-1;if(r<0)u.push(e.next());else if(r>0)u.push(e.next(r));else{if(o(u,e.next(1).attributes||{},l)===!1)return;l+=1,u=new c}}u.length()>0&&o(u,{},l)},c.prototype.transform=function(o,t){if(t=!!t,typeof o=="number")return this.transformPosition(o,t);for(var e=v.iterator(this.ops),u=v.iterator(o.ops),l=new c;e.hasNext()||u.hasNext();)if(e.peekType()==="insert"&&(t||u.peekType()!=="insert"))l.retain(v.length(e.next()));else if(u.peekType()==="insert")l.push(u.next());else{var a=Math.min(e.peekLength(),u.peekLength()),i=e.next(a),r=u.next(a);if(i.delete)continue;r.delete?l.push(r):l.retain(a,v.attributes.transform(i.attributes,r.attributes,t))}return l.chop()},c.prototype.transformPosition=function(o,t){t=!!t;for(var e=v.iterator(this.ops),u=0;e.hasNext()&&u<=o;){var l=e.peekLength(),a=e.peekType();if(e.next(),a==="delete"){o-=Math.min(l,o-u);continue}else a==="insert"&&(u<o||!t)&&(o+=l);u+=l}return o},j.exports=c},function(j,y){var d=Object.prototype.hasOwnProperty,S=Object.prototype.toString,A=Object.defineProperty,O=Object.getOwnPropertyDescriptor,v=function(e){return typeof Array.isArray=="function"?Array.isArray(e):S.call(e)==="[object Array]"},p=function(e){if(!e||S.call(e)!=="[object Object]")return!1;var u=d.call(e,"constructor"),l=e.constructor&&e.constructor.prototype&&d.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!u&&!l)return!1;var a;for(a in e);return typeof a>"u"||d.call(e,a)},c=function(e,u){A&&u.name==="__proto__"?A(e,u.name,{enumerable:!0,configurable:!0,value:u.newValue,writable:!0}):e[u.name]=u.newValue},o=function(e,u){if(u==="__proto__")if(d.call(e,u)){if(O)return O(e,u).value}else return;return e[u]};j.exports=function t(){var e,u,l,a,i,r,s=arguments[0],n=1,f=arguments.length,w=!1;for(typeof s=="boolean"&&(w=s,s=arguments[1]||{},n=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});n<f;++n)if(e=arguments[n],e!=null)for(u in e)l=o(s,u),a=o(e,u),s!==a&&(w&&a&&(p(a)||(i=v(a)))?(i?(i=!1,r=l&&v(l)?l:[]):r=l&&p(l)?l:{},c(s,{name:u,newValue:t(w,r,a)})):typeof a<"u"&&c(s,{name:u,newValue:a}));return s}},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0}),y.default=y.BlockEmbed=y.bubbleFormats=void 0;var S=function(){function h(m,k){for(var T=0;T<k.length;T++){var L=k[T];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(m,L.key,L)}}return function(m,k,T){return k&&h(m.prototype,k),T&&h(m,T),m}}(),A=function h(m,k,T){m===null&&(m=Function.prototype);var L=Object.getOwnPropertyDescriptor(m,k);if(L===void 0){var B=Object.getPrototypeOf(m);return B===null?void 0:h(B,k,T)}else{if("value"in L)return L.value;var F=L.get;return F===void 0?void 0:F.call(T)}},O=d(3),v=s(O),p=d(2),c=s(p),o=d(0),t=s(o),e=d(16),u=s(e),l=d(6),a=s(l),i=d(7),r=s(i);function s(h){return h&&h.__esModule?h:{default:h}}function n(h,m){if(!(h instanceof m))throw new TypeError("Cannot call a class as a function")}function f(h,m){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:h}function w(h,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);h.prototype=Object.create(m&&m.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(h,m):h.__proto__=m)}var b=1,_=function(h){w(m,h);function m(){return n(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return S(m,[{key:"attach",value:function(){A(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"attach",this).call(this),this.attributes=new t.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new c.default().insert(this.value(),(0,v.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(T,L){var B=t.default.query(T,t.default.Scope.BLOCK_ATTRIBUTE);B!=null&&this.attributes.attribute(B,L)}},{key:"formatAt",value:function(T,L,B,F){this.format(B,F)}},{key:"insertAt",value:function(T,L,B){if(typeof L=="string"&&L.endsWith(`
8
- `)){var F=t.default.create(N.blotName);this.parent.insertBefore(F,T===0?this:this.next),F.insertAt(0,L.slice(0,-1))}else A(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"insertAt",this).call(this,T,L,B)}}]),m}(t.default.Embed);_.scope=t.default.Scope.BLOCK_BLOT;var N=function(h){w(m,h);function m(k){n(this,m);var T=f(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,k));return T.cache={},T}return S(m,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(t.default.Leaf).reduce(function(T,L){return L.length()===0?T:T.insert(L.value(),g(L))},new c.default).insert(`
9
- `,g(this))),this.cache.delta}},{key:"deleteAt",value:function(T,L){A(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"deleteAt",this).call(this,T,L),this.cache={}}},{key:"formatAt",value:function(T,L,B,F){L<=0||(t.default.query(B,t.default.Scope.BLOCK)?T+L===this.length()&&this.format(B,F):A(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"formatAt",this).call(this,T,Math.min(L,this.length()-T-1),B,F),this.cache={})}},{key:"insertAt",value:function(T,L,B){if(B!=null)return A(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"insertAt",this).call(this,T,L,B);if(L.length!==0){var F=L.split(`
10
- `),V=F.shift();V.length>0&&(T<this.length()-1||this.children.tail==null?A(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"insertAt",this).call(this,Math.min(T,this.length()-1),V):this.children.tail.insertAt(this.children.tail.length(),V),this.cache={});var I=this;F.reduce(function(R,E){return I=I.split(R,!0),I.insertAt(0,E),E.length},T+V.length)}}},{key:"insertBefore",value:function(T,L){var B=this.children.head;A(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"insertBefore",this).call(this,T,L),B instanceof u.default&&B.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=A(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"length",this).call(this)+b),this.cache.length}},{key:"moveChildren",value:function(T,L){A(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"moveChildren",this).call(this,T,L),this.cache={}}},{key:"optimize",value:function(T){A(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"optimize",this).call(this,T),this.cache={}}},{key:"path",value:function(T){return A(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"path",this).call(this,T,!0)}},{key:"removeChild",value:function(T){A(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"removeChild",this).call(this,T),this.cache={}}},{key:"split",value:function(T){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(L&&(T===0||T>=this.length()-b)){var B=this.clone();return T===0?(this.parent.insertBefore(B,this),this):(this.parent.insertBefore(B,this.next),B)}else{var F=A(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"split",this).call(this,T,L);return this.cache={},F}}}]),m}(t.default.Block);N.blotName="block",N.tagName="P",N.defaultChild="break",N.allowedChildren=[a.default,t.default.Embed,r.default];function g(h){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return h==null||(typeof h.formats=="function"&&(m=(0,v.default)(m,h.formats())),h.parent==null||h.parent.blotName=="scroll"||h.parent.statics.scope!==h.statics.scope)?m:g(h.parent,m)}y.bubbleFormats=g,y.BlockEmbed=_,y.default=N},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0}),y.default=y.overload=y.expandConfig=void 0;var S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(I){return typeof I}:function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},A=function(){function I(R,E){var P=[],q=!0,C=!1,M=void 0;try{for(var x=R[Symbol.iterator](),D;!(q=(D=x.next()).done)&&(P.push(D.value),!(E&&P.length===E));q=!0);}catch(U){C=!0,M=U}finally{try{!q&&x.return&&x.return()}finally{if(C)throw M}}return P}return function(R,E){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return I(R,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function I(R,E){for(var P=0;P<E.length;P++){var q=E[P];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(R,q.key,q)}}return function(R,E,P){return E&&I(R.prototype,E),P&&I(R,P),R}}();d(50);var v=d(2),p=g(v),c=d(14),o=g(c),t=d(8),e=g(t),u=d(9),l=g(u),a=d(0),i=g(a),r=d(15),s=g(r),n=d(3),f=g(n),w=d(10),b=g(w),_=d(34),N=g(_);function g(I){return I&&I.__esModule?I:{default:I}}function h(I,R,E){return R in I?Object.defineProperty(I,R,{value:E,enumerable:!0,configurable:!0,writable:!0}):I[R]=E,I}function m(I,R){if(!(I instanceof R))throw new TypeError("Cannot call a class as a function")}var k=(0,b.default)("quill"),T=function(){O(I,null,[{key:"debug",value:function(E){E===!0&&(E="log"),b.default.level(E)}},{key:"find",value:function(E){return E.__quill||i.default.find(E)}},{key:"import",value:function(E){return this.imports[E]==null&&k.error("Cannot import "+E+". Are you sure it was registered?"),this.imports[E]}},{key:"register",value:function(E,P){var q=this,C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof E!="string"){var M=E.attrName||E.blotName;typeof M=="string"?this.register("formats/"+M,E,P):Object.keys(E).forEach(function(x){q.register(x,E[x],P)})}else this.imports[E]!=null&&!C&&k.warn("Overwriting "+E+" with",P),this.imports[E]=P,(E.startsWith("blots/")||E.startsWith("formats/"))&&P.blotName!=="abstract"?i.default.register(P):E.startsWith("modules")&&typeof P.register=="function"&&P.register()}}]);function I(R){var E=this,P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(m(this,I),this.options=L(R,P),this.container=this.options.container,this.container==null)return k.error("Invalid Quill container",R);this.options.debug&&I.debug(this.options.debug);var q=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 e.default,this.scroll=i.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new o.default(this.scroll),this.selection=new s.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(e.default.events.EDITOR_CHANGE,function(M){M===e.default.events.TEXT_CHANGE&&E.root.classList.toggle("ql-blank",E.editor.isBlank())}),this.emitter.on(e.default.events.SCROLL_UPDATE,function(M,x){var D=E.selection.lastRange,U=D&&D.length===0?D.index:void 0;B.call(E,function(){return E.editor.update(null,x,U)},M)});var C=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+q+"<p><br></p></div>");this.setContents(C),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return O(I,[{key:"addContainer",value:function(E){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof E=="string"){var q=E;E=document.createElement("div"),E.classList.add(q)}return this.container.insertBefore(E,P),E}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(E,P,q){var C=this,M=F(E,P,q),x=A(M,4);return E=x[0],P=x[1],q=x[3],B.call(this,function(){return C.editor.deleteText(E,P)},q,E,-1*P)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(E),this.container.classList.toggle("ql-disabled",!E)}},{key:"focus",value:function(){var E=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=E,this.scrollIntoView()}},{key:"format",value:function(E,P){var q=this,C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.default.sources.API;return B.call(this,function(){var M=q.getSelection(!0),x=new p.default;if(M==null)return x;if(i.default.query(E,i.default.Scope.BLOCK))x=q.editor.formatLine(M.index,M.length,h({},E,P));else{if(M.length===0)return q.selection.format(E,P),x;x=q.editor.formatText(M.index,M.length,h({},E,P))}return q.setSelection(M,e.default.sources.SILENT),x},C)}},{key:"formatLine",value:function(E,P,q,C,M){var x=this,D=void 0,U=F(E,P,q,C,M),H=A(U,4);return E=H[0],P=H[1],D=H[2],M=H[3],B.call(this,function(){return x.editor.formatLine(E,P,D)},M,E,0)}},{key:"formatText",value:function(E,P,q,C,M){var x=this,D=void 0,U=F(E,P,q,C,M),H=A(U,4);return E=H[0],P=H[1],D=H[2],M=H[3],B.call(this,function(){return x.editor.formatText(E,P,D)},M,E,0)}},{key:"getBounds",value:function(E){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,q=void 0;typeof E=="number"?q=this.selection.getBounds(E,P):q=this.selection.getBounds(E.index,E.length);var C=this.container.getBoundingClientRect();return{bottom:q.bottom-C.top,height:q.height,left:q.left-C.left,right:q.right-C.left,top:q.top-C.top,width:q.width}}},{key:"getContents",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-E,q=F(E,P),C=A(q,2);return E=C[0],P=C[1],this.editor.getContents(E,P)}},{key:"getFormat",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof E=="number"?this.editor.getFormat(E,P):this.editor.getFormat(E.index,E.length)}},{key:"getIndex",value:function(E){return E.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(E){return this.scroll.leaf(E)}},{key:"getLine",value:function(E){return this.scroll.line(E)}},{key:"getLines",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof E!="number"?this.scroll.lines(E.index,E.length):this.scroll.lines(E,P)}},{key:"getModule",value:function(E){return this.theme.modules[E]}},{key:"getSelection",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return E&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-E,q=F(E,P),C=A(q,2);return E=C[0],P=C[1],this.editor.getText(E,P)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(E,P,q){var C=this,M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:I.sources.API;return B.call(this,function(){return C.editor.insertEmbed(E,P,q)},M,E)}},{key:"insertText",value:function(E,P,q,C,M){var x=this,D=void 0,U=F(E,0,q,C,M),H=A(U,4);return E=H[0],D=H[2],M=H[3],B.call(this,function(){return x.editor.insertText(E,P,D)},M,E,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(E,P,q){this.clipboard.dangerouslyPasteHTML(E,P,q)}},{key:"removeFormat",value:function(E,P,q){var C=this,M=F(E,P,q),x=A(M,4);return E=x[0],P=x[1],q=x[3],B.call(this,function(){return C.editor.removeFormat(E,P)},q,E)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(E){var P=this,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.default.sources.API;return B.call(this,function(){E=new p.default(E);var C=P.getLength(),M=P.editor.deleteText(0,C),x=P.editor.applyDelta(E),D=x.ops[x.ops.length-1];D!=null&&typeof D.insert=="string"&&D.insert[D.insert.length-1]===`
11
- `&&(P.editor.deleteText(P.getLength()-1,1),x.delete(1));var U=M.compose(x);return U},q)}},{key:"setSelection",value:function(E,P,q){if(E==null)this.selection.setRange(null,P||I.sources.API);else{var C=F(E,P,q),M=A(C,4);E=M[0],P=M[1],q=M[3],this.selection.setRange(new r.Range(E,P),q),q!==e.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(E){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.default.sources.API,q=new p.default().insert(E);return this.setContents(q,P)}},{key:"update",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.default.sources.USER,P=this.scroll.update(E);return this.selection.update(E),P}},{key:"updateContents",value:function(E){var P=this,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.default.sources.API;return B.call(this,function(){return E=new p.default(E),P.editor.applyDelta(E,q)},q,!0)}}]),I}();T.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},T.events=e.default.events,T.sources=e.default.sources,T.version="1.3.7",T.imports={delta:p.default,parchment:i.default,"core/module":l.default,"core/theme":N.default};function L(I,R){if(R=(0,f.default)(!0,{container:I,modules:{clipboard:!0,keyboard:!0,history:!0}},R),!R.theme||R.theme===T.DEFAULTS.theme)R.theme=N.default;else if(R.theme=T.import("themes/"+R.theme),R.theme==null)throw new Error("Invalid theme "+R.theme+". Did you register it?");var E=(0,f.default)(!0,{},R.theme.DEFAULTS);[E,R].forEach(function(C){C.modules=C.modules||{},Object.keys(C.modules).forEach(function(M){C.modules[M]===!0&&(C.modules[M]={})})});var P=Object.keys(E.modules).concat(Object.keys(R.modules)),q=P.reduce(function(C,M){var x=T.import("modules/"+M);return x==null?k.error("Cannot load "+M+" module. Are you sure you registered it?"):C[M]=x.DEFAULTS||{},C},{});return R.modules!=null&&R.modules.toolbar&&R.modules.toolbar.constructor!==Object&&(R.modules.toolbar={container:R.modules.toolbar}),R=(0,f.default)(!0,{},T.DEFAULTS,{modules:q},E,R),["bounds","container","scrollingContainer"].forEach(function(C){typeof R[C]=="string"&&(R[C]=document.querySelector(R[C]))}),R.modules=Object.keys(R.modules).reduce(function(C,M){return R.modules[M]&&(C[M]=R.modules[M]),C},{}),R}function B(I,R,E,P){if(this.options.strict&&!this.isEnabled()&&R===e.default.sources.USER)return new p.default;var q=E==null?null:this.getSelection(),C=this.editor.delta,M=I();if(q!=null&&(E===!0&&(E=q.index),P==null?q=V(q,M,R):P!==0&&(q=V(q,E,P,R)),this.setSelection(q,e.default.sources.SILENT)),M.length()>0){var x,D=[e.default.events.TEXT_CHANGE,M,C,R];if((x=this.emitter).emit.apply(x,[e.default.events.EDITOR_CHANGE].concat(D)),R!==e.default.sources.SILENT){var U;(U=this.emitter).emit.apply(U,D)}}return M}function F(I,R,E,P,q){var C={};return typeof I.index=="number"&&typeof I.length=="number"?typeof R!="number"?(q=P,P=E,E=R,R=I.length,I=I.index):(R=I.length,I=I.index):typeof R!="number"&&(q=P,P=E,E=R,R=0),(typeof E>"u"?"undefined":S(E))==="object"?(C=E,q=P):typeof E=="string"&&(P!=null?C[E]=P:q=E),q=q||e.default.sources.API,[I,R,C,q]}function V(I,R,E,P){if(I==null)return null;var q=void 0,C=void 0;if(R instanceof p.default){var M=[I.index,I.index+I.length].map(function(H){return R.transformPosition(H,P!==e.default.sources.USER)}),x=A(M,2);q=x[0],C=x[1]}else{var D=[I.index,I.index+I.length].map(function(H){return H<R||H===R&&P===e.default.sources.USER?H:E>=0?H+E:Math.max(R,H+E)}),U=A(D,2);q=U[0],C=U[1]}return new r.Range(q,C-q)}y.expandConfig=L,y.overload=F,y.default=T},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0});var S=function(){function a(i,r){for(var s=0;s<r.length;s++){var n=r[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(i,n.key,n)}}return function(i,r,s){return r&&a(i.prototype,r),s&&a(i,s),i}}(),A=function a(i,r,s){i===null&&(i=Function.prototype);var n=Object.getOwnPropertyDescriptor(i,r);if(n===void 0){var f=Object.getPrototypeOf(i);return f===null?void 0:a(f,r,s)}else{if("value"in n)return n.value;var w=n.get;return w===void 0?void 0:w.call(s)}},O=d(7),v=o(O),p=d(0),c=o(p);function o(a){return a&&a.__esModule?a:{default:a}}function t(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}function e(a,i){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:a}function u(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);a.prototype=Object.create(i&&i.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(a,i):a.__proto__=i)}var l=function(a){u(i,a);function i(){return t(this,i),e(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return S(i,[{key:"formatAt",value:function(s,n,f,w){if(i.compare(this.statics.blotName,f)<0&&c.default.query(f,c.default.Scope.BLOT)){var b=this.isolate(s,n);w&&b.wrap(f,w)}else A(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"formatAt",this).call(this,s,n,f,w)}},{key:"optimize",value:function(s){if(A(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"optimize",this).call(this,s),this.parent instanceof i&&i.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(s,n){var f=i.order.indexOf(s),w=i.order.indexOf(n);return f>=0||w>=0?f-w:s===n?0:s<n?-1:1}}]),i}(c.default.Inline);l.allowedChildren=[l,c.default.Embed,v.default],l.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],y.default=l},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0});var S=d(0),A=O(S);function O(t){return t&&t.__esModule?t:{default:t}}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function c(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var o=function(t){c(e,t);function e(){return v(this,e),p(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return e}(A.default.Text);y.default=o},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0});var S=function(){function r(s,n){for(var f=0;f<n.length;f++){var w=n[f];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(s,w.key,w)}}return function(s,n,f){return n&&r(s.prototype,n),f&&r(s,f),s}}(),A=function r(s,n,f){s===null&&(s=Function.prototype);var w=Object.getOwnPropertyDescriptor(s,n);if(w===void 0){var b=Object.getPrototypeOf(s);return b===null?void 0:r(b,n,f)}else{if("value"in w)return w.value;var _=w.get;return _===void 0?void 0:_.call(f)}},O=d(54),v=o(O),p=d(10),c=o(p);function o(r){return r&&r.__esModule?r:{default:r}}function t(r,s){if(!(r instanceof s))throw new TypeError("Cannot call a class as a function")}function e(r,s){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:r}function u(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);r.prototype=Object.create(s&&s.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(r,s):r.__proto__=s)}var l=(0,c.default)("quill:events"),a=["selectionchange","mousedown","mouseup","click"];a.forEach(function(r){document.addEventListener(r,function(){for(var s=arguments.length,n=Array(s),f=0;f<s;f++)n[f]=arguments[f];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(w){if(w.__quill&&w.__quill.emitter){var b;(b=w.__quill.emitter).handleDOM.apply(b,n)}})})});var i=function(r){u(s,r);function s(){t(this,s);var n=e(this,(s.__proto__||Object.getPrototypeOf(s)).call(this));return n.listeners={},n.on("error",l.error),n}return S(s,[{key:"emit",value:function(){l.log.apply(l,arguments),A(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(f){for(var w=arguments.length,b=Array(w>1?w-1:0),_=1;_<w;_++)b[_-1]=arguments[_];(this.listeners[f.type]||[]).forEach(function(N){var g=N.node,h=N.handler;(f.target===g||g.contains(f.target))&&h.apply(void 0,[f].concat(b))})}},{key:"listenDOM",value:function(f,w,b){this.listeners[f]||(this.listeners[f]=[]),this.listeners[f].push({node:w,handler:b})}}]),s}(v.default);i.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"},i.sources={API:"api",SILENT:"silent",USER:"user"},y.default=i},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0});function S(O,v){if(!(O instanceof v))throw new TypeError("Cannot call a class as a function")}var A=function O(v){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};S(this,O),this.quill=v,this.options=p};A.DEFAULTS={},y.default=A},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0});var S=["error","warn","log","info"],A="warn";function O(p){if(S.indexOf(p)<=S.indexOf(A)){for(var c,o=arguments.length,t=Array(o>1?o-1:0),e=1;e<o;e++)t[e-1]=arguments[e];(c=console)[p].apply(c,t)}}function v(p){return S.reduce(function(c,o){return c[o]=O.bind(console,o,p),c},{})}O.level=v.level=function(p){A=p},y.default=v},function(j,y,d){var S=Array.prototype.slice,A=d(52),O=d(53),v=j.exports=function(t,e,u){return u||(u={}),t===e?!0:t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||typeof t!="object"&&typeof e!="object"?u.strict?t===e:t==e:o(t,e,u)};function p(t){return t==null}function c(t){return!(!t||typeof t!="object"||typeof t.length!="number"||typeof t.copy!="function"||typeof t.slice!="function"||t.length>0&&typeof t[0]!="number")}function o(t,e,u){var l,a;if(p(t)||p(e)||t.prototype!==e.prototype)return!1;if(O(t))return O(e)?(t=S.call(t),e=S.call(e),v(t,e,u)):!1;if(c(t)){if(!c(e)||t.length!==e.length)return!1;for(l=0;l<t.length;l++)if(t[l]!==e[l])return!1;return!0}try{var i=A(t),r=A(e)}catch{return!1}if(i.length!=r.length)return!1;for(i.sort(),r.sort(),l=i.length-1;l>=0;l--)if(i[l]!=r[l])return!1;for(l=i.length-1;l>=0;l--)if(a=i[l],!v(t[a],e[a],u))return!1;return typeof t==typeof e}},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0});var S=d(1),A=function(){function O(v,p,c){c===void 0&&(c={}),this.attrName=v,this.keyName=p;var o=S.Scope.TYPE&S.Scope.ATTRIBUTE;c.scope!=null?this.scope=c.scope&S.Scope.LEVEL|o:this.scope=S.Scope.ATTRIBUTE,c.whitelist!=null&&(this.whitelist=c.whitelist)}return O.keys=function(v){return[].map.call(v.attributes,function(p){return p.name})},O.prototype.add=function(v,p){return this.canAdd(v,p)?(v.setAttribute(this.keyName,p),!0):!1},O.prototype.canAdd=function(v,p){var c=S.query(v,S.Scope.BLOT&(this.scope|S.Scope.TYPE));return c==null?!1:this.whitelist==null?!0:typeof p=="string"?this.whitelist.indexOf(p.replace(/["']/g,""))>-1:this.whitelist.indexOf(p)>-1},O.prototype.remove=function(v){v.removeAttribute(this.keyName)},O.prototype.value=function(v){var p=v.getAttribute(this.keyName);return this.canAdd(v,p)&&p?p:""},O}();y.default=A},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0}),y.default=y.Code=void 0;var S=function(){function _(N,g){var h=[],m=!0,k=!1,T=void 0;try{for(var L=N[Symbol.iterator](),B;!(m=(B=L.next()).done)&&(h.push(B.value),!(g&&h.length===g));m=!0);}catch(F){k=!0,T=F}finally{try{!m&&L.return&&L.return()}finally{if(k)throw T}}return h}return function(N,g){if(Array.isArray(N))return N;if(Symbol.iterator in Object(N))return _(N,g);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),A=function(){function _(N,g){for(var h=0;h<g.length;h++){var m=g[h];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(N,m.key,m)}}return function(N,g,h){return g&&_(N.prototype,g),h&&_(N,h),N}}(),O=function _(N,g,h){N===null&&(N=Function.prototype);var m=Object.getOwnPropertyDescriptor(N,g);if(m===void 0){var k=Object.getPrototypeOf(N);return k===null?void 0:_(k,g,h)}else{if("value"in m)return m.value;var T=m.get;return T===void 0?void 0:T.call(h)}},v=d(2),p=r(v),c=d(0),o=r(c),t=d(4),e=r(t),u=d(6),l=r(u),a=d(7),i=r(a);function r(_){return _&&_.__esModule?_:{default:_}}function s(_,N){if(!(_ instanceof N))throw new TypeError("Cannot call a class as a function")}function n(_,N){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:_}function f(_,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);_.prototype=Object.create(N&&N.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(_,N):_.__proto__=N)}var w=function(_){f(N,_);function N(){return s(this,N),n(this,(N.__proto__||Object.getPrototypeOf(N)).apply(this,arguments))}return N}(l.default);w.blotName="code",w.tagName="CODE";var b=function(_){f(N,_);function N(){return s(this,N),n(this,(N.__proto__||Object.getPrototypeOf(N)).apply(this,arguments))}return A(N,[{key:"delta",value:function(){var h=this,m=this.domNode.textContent;return m.endsWith(`
12
- `)&&(m=m.slice(0,-1)),m.split(`
13
- `).reduce(function(k,T){return k.insert(T).insert(`
14
- `,h.formats())},new p.default)}},{key:"format",value:function(h,m){if(!(h===this.statics.blotName&&m)){var k=this.descendant(i.default,this.length()-1),T=S(k,1),L=T[0];L!=null&&L.deleteAt(L.length()-1,1),O(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"format",this).call(this,h,m)}}},{key:"formatAt",value:function(h,m,k,T){if(m!==0&&!(o.default.query(k,o.default.Scope.BLOCK)==null||k===this.statics.blotName&&T===this.statics.formats(this.domNode))){var L=this.newlineIndex(h);if(!(L<0||L>=h+m)){var B=this.newlineIndex(h,!0)+1,F=L-B+1,V=this.isolate(B,F),I=V.next;V.format(k,T),I instanceof N&&I.formatAt(0,h-B+m-F,k,T)}}}},{key:"insertAt",value:function(h,m,k){if(k==null){var T=this.descendant(i.default,h),L=S(T,2),B=L[0],F=L[1];B.insertAt(F,m)}}},{key:"length",value:function(){var h=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
15
- `)?h:h+1}},{key:"newlineIndex",value:function(h){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(m)return this.domNode.textContent.slice(0,h).lastIndexOf(`
16
- `);var k=this.domNode.textContent.slice(h).indexOf(`
17
- `);return k>-1?h+k:-1}},{key:"optimize",value:function(h){this.domNode.textContent.endsWith(`
18
- `)||this.appendChild(o.default.create("text",`
19
- `)),O(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"optimize",this).call(this,h);var m=this.next;m!=null&&m.prev===this&&m.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===m.statics.formats(m.domNode)&&(m.optimize(h),m.moveChildren(this),m.remove())}},{key:"replace",value:function(h){O(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"replace",this).call(this,h),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(m){var k=o.default.find(m);k==null?m.parentNode.removeChild(m):k instanceof o.default.Embed?k.remove():k.unwrap()})}}],[{key:"create",value:function(h){var m=O(N.__proto__||Object.getPrototypeOf(N),"create",this).call(this,h);return m.setAttribute("spellcheck",!1),m}},{key:"formats",value:function(){return!0}}]),N}(e.default);b.blotName="code-block",b.tagName="PRE",b.TAB=" ",y.Code=w,y.default=b},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0});var S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(I){return typeof I}:function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},A=function(){function I(R,E){var P=[],q=!0,C=!1,M=void 0;try{for(var x=R[Symbol.iterator](),D;!(q=(D=x.next()).done)&&(P.push(D.value),!(E&&P.length===E));q=!0);}catch(U){C=!0,M=U}finally{try{!q&&x.return&&x.return()}finally{if(C)throw M}}return P}return function(R,E){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return I(R,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function I(R,E){for(var P=0;P<E.length;P++){var q=E[P];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(R,q.key,q)}}return function(R,E,P){return E&&I(R.prototype,E),P&&I(R,P),R}}(),v=d(2),p=m(v),c=d(20),o=m(c),t=d(0),e=m(t),u=d(13),l=m(u),a=d(24),i=m(a),r=d(4),s=m(r),n=d(16),f=m(n),w=d(21),b=m(w),_=d(11),N=m(_),g=d(3),h=m(g);function m(I){return I&&I.__esModule?I:{default:I}}function k(I,R,E){return R in I?Object.defineProperty(I,R,{value:E,enumerable:!0,configurable:!0,writable:!0}):I[R]=E,I}function T(I,R){if(!(I instanceof R))throw new TypeError("Cannot call a class as a function")}var L=/^[ -~]*$/,B=function(){function I(R){T(this,I),this.scroll=R,this.delta=this.getDelta()}return O(I,[{key:"applyDelta",value:function(E){var P=this,q=!1;this.scroll.update();var C=this.scroll.length();return this.scroll.batchStart(),E=V(E),E.reduce(function(M,x){var D=x.retain||x.delete||x.insert.length||1,U=x.attributes||{};if(x.insert!=null){if(typeof x.insert=="string"){var H=x.insert;H.endsWith(`
20
- `)&&q&&(q=!1,H=H.slice(0,-1)),M>=C&&!H.endsWith(`
21
- `)&&(q=!0),P.scroll.insertAt(M,H);var K=P.scroll.line(M),Q=A(K,2),X=Q[0],J=Q[1],rt=(0,h.default)({},(0,r.bubbleFormats)(X));if(X instanceof s.default){var it=X.descendant(e.default.Leaf,J),st=A(it,1),ut=st[0];rt=(0,h.default)(rt,(0,r.bubbleFormats)(ut))}U=o.default.attributes.diff(rt,U)||{}}else if(S(x.insert)==="object"){var $=Object.keys(x.insert)[0];if($==null)return M;P.scroll.insertAt(M,$,x.insert[$])}C+=D}return Object.keys(U).forEach(function(z){P.scroll.formatAt(M,D,z,U[z])}),M+D},0),E.reduce(function(M,x){return typeof x.delete=="number"?(P.scroll.deleteAt(M,x.delete),M):M+(x.retain||x.insert.length||1)},0),this.scroll.batchEnd(),this.update(E)}},{key:"deleteText",value:function(E,P){return this.scroll.deleteAt(E,P),this.update(new p.default().retain(E).delete(P))}},{key:"formatLine",value:function(E,P){var q=this,C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(C).forEach(function(M){if(!(q.scroll.whitelist!=null&&!q.scroll.whitelist[M])){var x=q.scroll.lines(E,Math.max(P,1)),D=P;x.forEach(function(U){var H=U.length();if(!(U instanceof l.default))U.format(M,C[M]);else{var K=E-U.offset(q.scroll),Q=U.newlineIndex(K+D)-K+1;U.formatAt(K,Q,M,C[M])}D-=H})}}),this.scroll.optimize(),this.update(new p.default().retain(E).retain(P,(0,b.default)(C)))}},{key:"formatText",value:function(E,P){var q=this,C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(C).forEach(function(M){q.scroll.formatAt(E,P,M,C[M])}),this.update(new p.default().retain(E).retain(P,(0,b.default)(C)))}},{key:"getContents",value:function(E,P){return this.delta.slice(E,E+P)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(E,P){return E.concat(P.delta())},new p.default)}},{key:"getFormat",value:function(E){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,q=[],C=[];P===0?this.scroll.path(E).forEach(function(x){var D=A(x,1),U=D[0];U instanceof s.default?q.push(U):U instanceof e.default.Leaf&&C.push(U)}):(q=this.scroll.lines(E,P),C=this.scroll.descendants(e.default.Leaf,E,P));var M=[q,C].map(function(x){if(x.length===0)return{};for(var D=(0,r.bubbleFormats)(x.shift());Object.keys(D).length>0;){var U=x.shift();if(U==null)return D;D=F((0,r.bubbleFormats)(U),D)}return D});return h.default.apply(h.default,M)}},{key:"getText",value:function(E,P){return this.getContents(E,P).filter(function(q){return typeof q.insert=="string"}).map(function(q){return q.insert}).join("")}},{key:"insertEmbed",value:function(E,P,q){return this.scroll.insertAt(E,P,q),this.update(new p.default().retain(E).insert(k({},P,q)))}},{key:"insertText",value:function(E,P){var q=this,C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return P=P.replace(/\r\n/g,`
22
- `).replace(/\r/g,`
23
- `),this.scroll.insertAt(E,P),Object.keys(C).forEach(function(M){q.scroll.formatAt(E,P.length,M,C[M])}),this.update(new p.default().retain(E).insert(P,(0,b.default)(C)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var E=this.scroll.children.head;return E.statics.blotName!==s.default.blotName||E.children.length>1?!1:E.children.head instanceof f.default}},{key:"removeFormat",value:function(E,P){var q=this.getText(E,P),C=this.scroll.line(E+P),M=A(C,2),x=M[0],D=M[1],U=0,H=new p.default;x!=null&&(x instanceof l.default?U=x.newlineIndex(D)-D+1:U=x.length()-D,H=x.delta().slice(D,D+U-1).insert(`
24
- `));var K=this.getContents(E,P+U),Q=K.diff(new p.default().insert(q).concat(H)),X=new p.default().retain(E).concat(Q);return this.applyDelta(X)}},{key:"update",value:function(E){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,C=this.delta;if(P.length===1&&P[0].type==="characterData"&&P[0].target.data.match(L)&&e.default.find(P[0].target)){var M=e.default.find(P[0].target),x=(0,r.bubbleFormats)(M),D=M.offset(this.scroll),U=P[0].oldValue.replace(i.default.CONTENTS,""),H=new p.default().insert(U),K=new p.default().insert(M.value()),Q=new p.default().retain(D).concat(H.diff(K,q));E=Q.reduce(function(X,J){return J.insert?X.insert(J.insert,x):X.push(J)},new p.default),this.delta=C.compose(E)}else this.delta=this.getDelta(),(!E||!(0,N.default)(C.compose(E),this.delta))&&(E=C.diff(this.delta,q));return E}}]),I}();function F(I,R){return Object.keys(R).reduce(function(E,P){return I[P]==null||(R[P]===I[P]?E[P]=R[P]:Array.isArray(R[P])?R[P].indexOf(I[P])<0&&(E[P]=R[P].concat([I[P]])):E[P]=[R[P],I[P]]),E},{})}function V(I){return I.reduce(function(R,E){if(E.insert===1){var P=(0,b.default)(E.attributes);return delete P.image,R.insert({image:E.attributes.image},P)}if(E.attributes!=null&&(E.attributes.list===!0||E.attributes.bullet===!0)&&(E=(0,b.default)(E),E.attributes.list?E.attributes.list="ordered":(E.attributes.list="bullet",delete E.attributes.bullet)),typeof E.insert=="string"){var q=E.insert.replace(/\r\n/g,`
25
- `).replace(/\r/g,`
26
- `);return R.insert(q,E.attributes)}return R.push(E)},new p.default)}y.default=B},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0}),y.default=y.Range=void 0;var S=function(){function _(N,g){var h=[],m=!0,k=!1,T=void 0;try{for(var L=N[Symbol.iterator](),B;!(m=(B=L.next()).done)&&(h.push(B.value),!(g&&h.length===g));m=!0);}catch(F){k=!0,T=F}finally{try{!m&&L.return&&L.return()}finally{if(k)throw T}}return h}return function(N,g){if(Array.isArray(N))return N;if(Symbol.iterator in Object(N))return _(N,g);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),A=function(){function _(N,g){for(var h=0;h<g.length;h++){var m=g[h];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(N,m.key,m)}}return function(N,g,h){return g&&_(N.prototype,g),h&&_(N,h),N}}(),O=d(0),v=i(O),p=d(21),c=i(p),o=d(11),t=i(o),e=d(8),u=i(e),l=d(10),a=i(l);function i(_){return _&&_.__esModule?_:{default:_}}function r(_){if(Array.isArray(_)){for(var N=0,g=Array(_.length);N<_.length;N++)g[N]=_[N];return g}else return Array.from(_)}function s(_,N){if(!(_ instanceof N))throw new TypeError("Cannot call a class as a function")}var n=(0,a.default)("quill:selection"),f=function _(N){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;s(this,_),this.index=N,this.length=g},w=function(){function _(N,g){var h=this;s(this,_),this.emitter=g,this.scroll=N,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=v.default.create("cursor",this),this.lastRange=this.savedRange=new f(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){h.mouseDown||setTimeout(h.update.bind(h,u.default.sources.USER),1)}),this.emitter.on(u.default.events.EDITOR_CHANGE,function(m,k){m===u.default.events.TEXT_CHANGE&&k.length()>0&&h.update(u.default.sources.SILENT)}),this.emitter.on(u.default.events.SCROLL_BEFORE_UPDATE,function(){if(!!h.hasFocus()){var m=h.getNativeRange();m!=null&&m.start.node!==h.cursor.textNode&&h.emitter.once(u.default.events.SCROLL_UPDATE,function(){try{h.setNativeRange(m.start.node,m.start.offset,m.end.node,m.end.offset)}catch{}})}}),this.emitter.on(u.default.events.SCROLL_OPTIMIZE,function(m,k){if(k.range){var T=k.range,L=T.startNode,B=T.startOffset,F=T.endNode,V=T.endOffset;h.setNativeRange(L,B,F,V)}}),this.update(u.default.sources.SILENT)}return A(_,[{key:"handleComposition",value:function(){var g=this;this.root.addEventListener("compositionstart",function(){g.composing=!0}),this.root.addEventListener("compositionend",function(){if(g.composing=!1,g.cursor.parent){var h=g.cursor.restore();if(!h)return;setTimeout(function(){g.setNativeRange(h.startNode,h.startOffset,h.endNode,h.endOffset)},1)}})}},{key:"handleDragging",value:function(){var g=this;this.emitter.listenDOM("mousedown",document.body,function(){g.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){g.mouseDown=!1,g.update(u.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(g,h){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[g])){this.scroll.update();var m=this.getNativeRange();if(!(m==null||!m.native.collapsed||v.default.query(g,v.default.Scope.BLOCK))){if(m.start.node!==this.cursor.textNode){var k=v.default.find(m.start.node,!1);if(k==null)return;if(k instanceof v.default.Leaf){var T=k.split(m.start.offset);k.parent.insertBefore(this.cursor,T)}else k.insertBefore(this.cursor,m.start.node);this.cursor.attach()}this.cursor.format(g,h),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(g){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,m=this.scroll.length();g=Math.min(g,m-1),h=Math.min(g+h,m-1)-g;var k=void 0,T=this.scroll.leaf(g),L=S(T,2),B=L[0],F=L[1];if(B==null)return null;var V=B.position(F,!0),I=S(V,2);k=I[0],F=I[1];var R=document.createRange();if(h>0){R.setStart(k,F);var E=this.scroll.leaf(g+h),P=S(E,2);if(B=P[0],F=P[1],B==null)return null;var q=B.position(F,!0),C=S(q,2);return k=C[0],F=C[1],R.setEnd(k,F),R.getBoundingClientRect()}else{var M="left",x=void 0;return k instanceof Text?(F<k.data.length?(R.setStart(k,F),R.setEnd(k,F+1)):(R.setStart(k,F-1),R.setEnd(k,F),M="right"),x=R.getBoundingClientRect()):(x=B.domNode.getBoundingClientRect(),F>0&&(M="right")),{bottom:x.top+x.height,height:x.height,left:x[M],right:x[M],top:x.top,width:0}}}},{key:"getNativeRange",value:function(){var g=document.getSelection();if(g==null||g.rangeCount<=0)return null;var h=g.getRangeAt(0);if(h==null)return null;var m=this.normalizeNative(h);return n.info("getNativeRange",m),m}},{key:"getRange",value:function(){var g=this.getNativeRange();if(g==null)return[null,null];var h=this.normalizedToRange(g);return[h,g]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(g){var h=this,m=[[g.start.node,g.start.offset]];g.native.collapsed||m.push([g.end.node,g.end.offset]);var k=m.map(function(B){var F=S(B,2),V=F[0],I=F[1],R=v.default.find(V,!0),E=R.offset(h.scroll);return I===0?E:R instanceof v.default.Container?E+R.length():E+R.index(V,I)}),T=Math.min(Math.max.apply(Math,r(k)),this.scroll.length()-1),L=Math.min.apply(Math,[T].concat(r(k)));return new f(L,T-L)}},{key:"normalizeNative",value:function(g){if(!b(this.root,g.startContainer)||!g.collapsed&&!b(this.root,g.endContainer))return null;var h={start:{node:g.startContainer,offset:g.startOffset},end:{node:g.endContainer,offset:g.endOffset},native:g};return[h.start,h.end].forEach(function(m){for(var k=m.node,T=m.offset;!(k instanceof Text)&&k.childNodes.length>0;)if(k.childNodes.length>T)k=k.childNodes[T],T=0;else if(k.childNodes.length===T)k=k.lastChild,T=k instanceof Text?k.data.length:k.childNodes.length+1;else break;m.node=k,m.offset=T}),h}},{key:"rangeToNative",value:function(g){var h=this,m=g.collapsed?[g.index]:[g.index,g.index+g.length],k=[],T=this.scroll.length();return m.forEach(function(L,B){L=Math.min(T-1,L);var F=void 0,V=h.scroll.leaf(L),I=S(V,2),R=I[0],E=I[1],P=R.position(E,B!==0),q=S(P,2);F=q[0],E=q[1],k.push(F,E)}),k.length<2&&(k=k.concat(k)),k}},{key:"scrollIntoView",value:function(g){var h=this.lastRange;if(h!=null){var m=this.getBounds(h.index,h.length);if(m!=null){var k=this.scroll.length()-1,T=this.scroll.line(Math.min(h.index,k)),L=S(T,1),B=L[0],F=B;if(h.length>0){var V=this.scroll.line(Math.min(h.index+h.length,k)),I=S(V,1);F=I[0]}if(!(B==null||F==null)){var R=g.getBoundingClientRect();m.top<R.top?g.scrollTop-=R.top-m.top:m.bottom>R.bottom&&(g.scrollTop+=m.bottom-R.bottom)}}}}},{key:"setNativeRange",value:function(g,h){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:g,k=arguments.length>3&&arguments[3]!==void 0?arguments[3]:h,T=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(n.info("setNativeRange",g,h,m,k),!(g!=null&&(this.root.parentNode==null||g.parentNode==null||m.parentNode==null))){var L=document.getSelection();if(L!=null)if(g!=null){this.hasFocus()||this.root.focus();var B=(this.getNativeRange()||{}).native;if(B==null||T||g!==B.startContainer||h!==B.startOffset||m!==B.endContainer||k!==B.endOffset){g.tagName=="BR"&&(h=[].indexOf.call(g.parentNode.childNodes,g),g=g.parentNode),m.tagName=="BR"&&(k=[].indexOf.call(m.parentNode.childNodes,m),m=m.parentNode);var F=document.createRange();F.setStart(g,h),F.setEnd(m,k),L.removeAllRanges(),L.addRange(F)}}else L.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(g){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u.default.sources.API;if(typeof h=="string"&&(m=h,h=!1),n.info("setRange",g),g!=null){var k=this.rangeToNative(g);this.setNativeRange.apply(this,r(k).concat([h]))}else this.setNativeRange(null);this.update(m)}},{key:"update",value:function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u.default.sources.USER,h=this.lastRange,m=this.getRange(),k=S(m,2),T=k[0],L=k[1];if(this.lastRange=T,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,t.default)(h,this.lastRange)){var B;!this.composing&&L!=null&&L.native.collapsed&&L.start.node!==this.cursor.textNode&&this.cursor.restore();var F=[u.default.events.SELECTION_CHANGE,(0,c.default)(this.lastRange),(0,c.default)(h),g];if((B=this.emitter).emit.apply(B,[u.default.events.EDITOR_CHANGE].concat(F)),g!==u.default.sources.SILENT){var V;(V=this.emitter).emit.apply(V,F)}}}}]),_}();function b(_,N){try{N.parentNode}catch{return!1}return N instanceof Text&&(N=N.parentNode),_.contains(N)}y.Range=f,y.default=w},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0});var S=function(){function u(l,a){for(var i=0;i<a.length;i++){var r=a[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(l,r.key,r)}}return function(l,a,i){return a&&u(l.prototype,a),i&&u(l,i),l}}(),A=function u(l,a,i){l===null&&(l=Function.prototype);var r=Object.getOwnPropertyDescriptor(l,a);if(r===void 0){var s=Object.getPrototypeOf(l);return s===null?void 0:u(s,a,i)}else{if("value"in r)return r.value;var n=r.get;return n===void 0?void 0:n.call(i)}},O=d(0),v=p(O);function p(u){return u&&u.__esModule?u:{default:u}}function c(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:u}function t(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}var e=function(u){t(l,u);function l(){return c(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return S(l,[{key:"insertInto",value:function(i,r){i.children.length===0?A(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"insertInto",this).call(this,i,r):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),l}(v.default.Embed);e.blotName="break",e.tagName="BR",y.default=e},function(j,y,d){var S=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var u in e)e.hasOwnProperty(u)&&(t[u]=e[u])};return function(t,e){o(t,e);function u(){this.constructor=t}t.prototype=e===null?Object.create(e):(u.prototype=e.prototype,new u)}}();Object.defineProperty(y,"__esModule",{value:!0});var A=d(44),O=d(30),v=d(1),p=function(o){S(t,o);function t(e){var u=o.call(this,e)||this;return u.build(),u}return t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){o.prototype.attach.call(this),this.children.forEach(function(e){e.attach()})},t.prototype.build=function(){var e=this;this.children=new A.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(u){try{var l=c(u);e.insertBefore(l,e.children.head||void 0)}catch(a){if(a instanceof v.ParchmentError)return;throw a}})},t.prototype.deleteAt=function(e,u){if(e===0&&u===this.length())return this.remove();this.children.forEachAt(e,u,function(l,a,i){l.deleteAt(a,i)})},t.prototype.descendant=function(e,u){var l=this.children.find(u),a=l[0],i=l[1];return e.blotName==null&&e(a)||e.blotName!=null&&a instanceof e?[a,i]:a instanceof t?a.descendant(e,i):[null,-1]},t.prototype.descendants=function(e,u,l){u===void 0&&(u=0),l===void 0&&(l=Number.MAX_VALUE);var a=[],i=l;return this.children.forEachAt(u,l,function(r,s,n){(e.blotName==null&&e(r)||e.blotName!=null&&r instanceof e)&&a.push(r),r instanceof t&&(a=a.concat(r.descendants(e,s,i))),i-=n}),a},t.prototype.detach=function(){this.children.forEach(function(e){e.detach()}),o.prototype.detach.call(this)},t.prototype.formatAt=function(e,u,l,a){this.children.forEachAt(e,u,function(i,r,s){i.formatAt(r,s,l,a)})},t.prototype.insertAt=function(e,u,l){var a=this.children.find(e),i=a[0],r=a[1];if(i)i.insertAt(r,u,l);else{var s=l==null?v.create("text",u):v.create(u,l);this.appendChild(s)}},t.prototype.insertBefore=function(e,u){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(l){return e instanceof l}))throw new v.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,u)},t.prototype.length=function(){return this.children.reduce(function(e,u){return e+u.length()},0)},t.prototype.moveChildren=function(e,u){this.children.forEach(function(l){e.insertBefore(l,u)})},t.prototype.optimize=function(e){if(o.prototype.optimize.call(this,e),this.children.length===0)if(this.statics.defaultChild!=null){var u=v.create(this.statics.defaultChild);this.appendChild(u),u.optimize(e)}else this.remove()},t.prototype.path=function(e,u){u===void 0&&(u=!1);var l=this.children.find(e,u),a=l[0],i=l[1],r=[[this,e]];return a instanceof t?r.concat(a.path(i,u)):(a!=null&&r.push([a,i]),r)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(e){e instanceof t&&e.moveChildren(this),o.prototype.replace.call(this,e)},t.prototype.split=function(e,u){if(u===void 0&&(u=!1),!u){if(e===0)return this;if(e===this.length())return this.next}var l=this.clone();return this.parent.insertBefore(l,this.next),this.children.forEachAt(e,this.length(),function(a,i,r){a=a.split(i,u),l.appendChild(a)}),l},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,u){var l=this,a=[],i=[];e.forEach(function(r){r.target===l.domNode&&r.type==="childList"&&(a.push.apply(a,r.addedNodes),i.push.apply(i,r.removedNodes))}),i.forEach(function(r){if(!(r.parentNode!=null&&r.tagName!=="IFRAME"&&document.body.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var s=v.find(r);s!=null&&(s.domNode.parentNode==null||s.domNode.parentNode===l.domNode)&&s.detach()}}),a.filter(function(r){return r.parentNode==l.domNode}).sort(function(r,s){return r===s?0:r.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(r){var s=null;r.nextSibling!=null&&(s=v.find(r.nextSibling));var n=c(r);(n.next!=s||n.next==null)&&(n.parent!=null&&n.parent.removeChild(l),l.insertBefore(n,s||void 0))})},t}(O.default);function c(o){var t=v.find(o);if(t==null)try{t=v.create(o)}catch{t=v.create(v.Scope.INLINE),[].slice.call(o.childNodes).forEach(function(u){t.domNode.appendChild(u)}),o.parentNode&&o.parentNode.replaceChild(t.domNode,o),t.attach()}return t}y.default=p},function(j,y,d){var S=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var u in e)e.hasOwnProperty(u)&&(t[u]=e[u])};return function(t,e){o(t,e);function u(){this.constructor=t}t.prototype=e===null?Object.create(e):(u.prototype=e.prototype,new u)}}();Object.defineProperty(y,"__esModule",{value:!0});var A=d(12),O=d(31),v=d(17),p=d(1),c=function(o){S(t,o);function t(e){var u=o.call(this,e)||this;return u.attributes=new O.default(u.domNode),u}return t.formats=function(e){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()},t.prototype.format=function(e,u){var l=p.query(e);l instanceof A.default?this.attributes.attribute(l,u):u&&l!=null&&(e!==this.statics.blotName||this.formats()[e]!==u)&&this.replaceWith(e,u)},t.prototype.formats=function(){var e=this.attributes.values(),u=this.statics.formats(this.domNode);return u!=null&&(e[this.statics.blotName]=u),e},t.prototype.replaceWith=function(e,u){var l=o.prototype.replaceWith.call(this,e,u);return this.attributes.copy(l),l},t.prototype.update=function(e,u){var l=this;o.prototype.update.call(this,e,u),e.some(function(a){return a.target===l.domNode&&a.type==="attributes"})&&this.attributes.build()},t.prototype.wrap=function(e,u){var l=o.prototype.wrap.call(this,e,u);return l instanceof t&&l.statics.scope===this.statics.scope&&this.attributes.move(l),l},t}(v.default);y.default=c},function(j,y,d){var S=this&&this.__extends||function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var t in o)o.hasOwnProperty(t)&&(c[t]=o[t])};return function(c,o){p(c,o);function t(){this.constructor=c}c.prototype=o===null?Object.create(o):(t.prototype=o.prototype,new t)}}();Object.defineProperty(y,"__esModule",{value:!0});var A=d(30),O=d(1),v=function(p){S(c,p);function c(){return p!==null&&p.apply(this,arguments)||this}return c.value=function(o){return!0},c.prototype.index=function(o,t){return this.domNode===o||this.domNode.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},c.prototype.position=function(o,t){var e=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return o>0&&(e+=1),[this.parent.domNode,e]},c.prototype.value=function(){var o;return o={},o[this.statics.blotName]=this.statics.value(this.domNode)||!0,o},c.scope=O.Scope.INLINE_BLOT,c}(A.default);y.default=v},function(j,y,d){var S=d(11),A=d(3),O={attributes:{compose:function(p,c,o){typeof p!="object"&&(p={}),typeof c!="object"&&(c={});var t=A(!0,{},c);o||(t=Object.keys(t).reduce(function(u,l){return t[l]!=null&&(u[l]=t[l]),u},{}));for(var e in p)p[e]!==void 0&&c[e]===void 0&&(t[e]=p[e]);return Object.keys(t).length>0?t:void 0},diff:function(p,c){typeof p!="object"&&(p={}),typeof c!="object"&&(c={});var o=Object.keys(p).concat(Object.keys(c)).reduce(function(t,e){return S(p[e],c[e])||(t[e]=c[e]===void 0?null:c[e]),t},{});return Object.keys(o).length>0?o:void 0},transform:function(p,c,o){if(typeof p!="object")return c;if(typeof c=="object"){if(!o)return c;var t=Object.keys(c).reduce(function(e,u){return p[u]===void 0&&(e[u]=c[u]),e},{});return Object.keys(t).length>0?t:void 0}}},iterator:function(p){return new v(p)},length:function(p){return typeof p.delete=="number"?p.delete:typeof p.retain=="number"?p.retain:typeof p.insert=="string"?p.insert.length:1}};function v(p){this.ops=p,this.index=0,this.offset=0}v.prototype.hasNext=function(){return this.peekLength()<1/0},v.prototype.next=function(p){p||(p=1/0);var c=this.ops[this.index];if(c){var o=this.offset,t=O.length(c);if(p>=t-o?(p=t-o,this.index+=1,this.offset=0):this.offset+=p,typeof c.delete=="number")return{delete:p};var e={};return c.attributes&&(e.attributes=c.attributes),typeof c.retain=="number"?e.retain=p:typeof c.insert=="string"?e.insert=c.insert.substr(o,p):e.insert=c.insert,e}else return{retain:1/0}},v.prototype.peek=function(){return this.ops[this.index]},v.prototype.peekLength=function(){return this.ops[this.index]?O.length(this.ops[this.index])-this.offset:1/0},v.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},v.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var p=this.offset,c=this.index,o=this.next(),t=this.ops.slice(this.index);return this.offset=p,this.index=c,[o].concat(t)}else return[]},j.exports=O},function(j,y){var d=function(){function S(l,a){return a!=null&&l instanceof a}var A;try{A=Map}catch{A=function(){}}var O;try{O=Set}catch{O=function(){}}var v;try{v=Promise}catch{v=function(){}}function p(l,a,i,r,s){typeof a=="object"&&(i=a.depth,r=a.prototype,s=a.includeNonEnumerable,a=a.circular);var n=[],f=[],w=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof i>"u"&&(i=1/0);function b(_,N){if(_===null)return null;if(N===0)return _;var g,h;if(typeof _!="object")return _;if(S(_,A))g=new A;else if(S(_,O))g=new O;else if(S(_,v))g=new v(function(R,E){_.then(function(P){R(b(P,N-1))},function(P){E(b(P,N-1))})});else if(p.__isArray(_))g=[];else if(p.__isRegExp(_))g=new RegExp(_.source,u(_)),_.lastIndex&&(g.lastIndex=_.lastIndex);else if(p.__isDate(_))g=new Date(_.getTime());else{if(w&&Buffer.isBuffer(_))return Buffer.allocUnsafe?g=Buffer.allocUnsafe(_.length):g=new Buffer(_.length),_.copy(g),g;S(_,Error)?g=Object.create(_):typeof r>"u"?(h=Object.getPrototypeOf(_),g=Object.create(h)):(g=Object.create(r),h=r)}if(a){var m=n.indexOf(_);if(m!=-1)return f[m];n.push(_),f.push(g)}S(_,A)&&_.forEach(function(R,E){var P=b(E,N-1),q=b(R,N-1);g.set(P,q)}),S(_,O)&&_.forEach(function(R){var E=b(R,N-1);g.add(E)});for(var k in _){var T;h&&(T=Object.getOwnPropertyDescriptor(h,k)),!(T&&T.set==null)&&(g[k]=b(_[k],N-1))}if(Object.getOwnPropertySymbols)for(var L=Object.getOwnPropertySymbols(_),k=0;k<L.length;k++){var B=L[k],F=Object.getOwnPropertyDescriptor(_,B);F&&!F.enumerable&&!s||(g[B]=b(_[B],N-1),F.enumerable||Object.defineProperty(g,B,{enumerable:!1}))}if(s)for(var V=Object.getOwnPropertyNames(_),k=0;k<V.length;k++){var I=V[k],F=Object.getOwnPropertyDescriptor(_,I);F&&F.enumerable||(g[I]=b(_[I],N-1),Object.defineProperty(g,I,{enumerable:!1}))}return g}return b(l,i)}p.clonePrototype=function(a){if(a===null)return null;var i=function(){};return i.prototype=a,new i};function c(l){return Object.prototype.toString.call(l)}p.__objToStr=c;function o(l){return typeof l=="object"&&c(l)==="[object Date]"}p.__isDate=o;function t(l){return typeof l=="object"&&c(l)==="[object Array]"}p.__isArray=t;function e(l){return typeof l=="object"&&c(l)==="[object RegExp]"}p.__isRegExp=e;function u(l){var a="";return l.global&&(a+="g"),l.ignoreCase&&(a+="i"),l.multiline&&(a+="m"),a}return p.__getRegExpFlags=u,p}();typeof j=="object"&&j.exports&&(j.exports=d)},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0});var S=function(){function g(h,m){var k=[],T=!0,L=!1,B=void 0;try{for(var F=h[Symbol.iterator](),V;!(T=(V=F.next()).done)&&(k.push(V.value),!(m&&k.length===m));T=!0);}catch(I){L=!0,B=I}finally{try{!T&&F.return&&F.return()}finally{if(L)throw B}}return k}return function(h,m){if(Array.isArray(h))return h;if(Symbol.iterator in Object(h))return g(h,m);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),A=function(){function g(h,m){for(var k=0;k<m.length;k++){var T=m[k];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(h,T.key,T)}}return function(h,m,k){return m&&g(h.prototype,m),k&&g(h,k),h}}(),O=function g(h,m,k){h===null&&(h=Function.prototype);var T=Object.getOwnPropertyDescriptor(h,m);if(T===void 0){var L=Object.getPrototypeOf(h);return L===null?void 0:g(L,m,k)}else{if("value"in T)return T.value;var B=T.get;return B===void 0?void 0:B.call(k)}},v=d(0),p=n(v),c=d(8),o=n(c),t=d(4),e=n(t),u=d(16),l=n(u),a=d(13),i=n(a),r=d(25),s=n(r);function n(g){return g&&g.__esModule?g:{default:g}}function f(g,h){if(!(g instanceof h))throw new TypeError("Cannot call a class as a function")}function w(g,h){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:g}function b(g,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);g.prototype=Object.create(h&&h.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(g,h):g.__proto__=h)}function _(g){return g instanceof e.default||g instanceof t.BlockEmbed}var N=function(g){b(h,g);function h(m,k){f(this,h);var T=w(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,m));return T.emitter=k.emitter,Array.isArray(k.whitelist)&&(T.whitelist=k.whitelist.reduce(function(L,B){return L[B]=!0,L},{})),T.domNode.addEventListener("DOMNodeInserted",function(){}),T.optimize(),T.enable(),T}return A(h,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(k,T){var L=this.line(k),B=S(L,2),F=B[0],V=B[1],I=this.line(k+T),R=S(I,1),E=R[0];if(O(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"deleteAt",this).call(this,k,T),E!=null&&F!==E&&V>0){if(F instanceof t.BlockEmbed||E instanceof t.BlockEmbed){this.optimize();return}if(F instanceof i.default){var P=F.newlineIndex(F.length(),!0);if(P>-1&&(F=F.split(P+1),F===E)){this.optimize();return}}else if(E instanceof i.default){var q=E.newlineIndex(0);q>-1&&E.split(q+1)}var C=E.children.head instanceof l.default?null:E.children.head;F.moveChildren(E,C),F.remove()}this.optimize()}},{key:"enable",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",k)}},{key:"formatAt",value:function(k,T,L,B){this.whitelist!=null&&!this.whitelist[L]||(O(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"formatAt",this).call(this,k,T,L,B),this.optimize())}},{key:"insertAt",value:function(k,T,L){if(!(L!=null&&this.whitelist!=null&&!this.whitelist[T])){if(k>=this.length())if(L==null||p.default.query(T,p.default.Scope.BLOCK)==null){var B=p.default.create(this.statics.defaultChild);this.appendChild(B),L==null&&T.endsWith(`
27
- `)&&(T=T.slice(0,-1)),B.insertAt(0,T,L)}else{var F=p.default.create(T,L);this.appendChild(F)}else O(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"insertAt",this).call(this,k,T,L);this.optimize()}}},{key:"insertBefore",value:function(k,T){if(k.statics.scope===p.default.Scope.INLINE_BLOT){var L=p.default.create(this.statics.defaultChild);L.appendChild(k),k=L}O(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"insertBefore",this).call(this,k,T)}},{key:"leaf",value:function(k){return this.path(k).pop()||[null,-1]}},{key:"line",value:function(k){return k===this.length()?this.line(k-1):this.descendant(_,k)}},{key:"lines",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,L=function B(F,V,I){var R=[],E=I;return F.children.forEachAt(V,I,function(P,q,C){_(P)?R.push(P):P instanceof p.default.Container&&(R=R.concat(B(P,q,E))),E-=C}),R};return L(this,k,T)}},{key:"optimize",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(O(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"optimize",this).call(this,k,T),k.length>0&&this.emitter.emit(o.default.events.SCROLL_OPTIMIZE,k,T))}},{key:"path",value:function(k){return O(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"path",this).call(this,k).slice(1)}},{key:"update",value:function(k){if(this.batch!==!0){var T=o.default.sources.USER;typeof k=="string"&&(T=k),Array.isArray(k)||(k=this.observer.takeRecords()),k.length>0&&this.emitter.emit(o.default.events.SCROLL_BEFORE_UPDATE,T,k),O(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"update",this).call(this,k.concat([])),k.length>0&&this.emitter.emit(o.default.events.SCROLL_UPDATE,T,k)}}}]),h}(p.default.Scroll);N.blotName="scroll",N.className="ql-editor",N.tagName="DIV",N.defaultChild="block",N.allowedChildren=[e.default,t.BlockEmbed,s.default],y.default=N},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0}),y.SHORTKEY=y.default=void 0;var S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},A=function(){function x(D,U){var H=[],K=!0,Q=!1,X=void 0;try{for(var J=D[Symbol.iterator](),rt;!(K=(rt=J.next()).done)&&(H.push(rt.value),!(U&&H.length===U));K=!0);}catch(it){Q=!0,X=it}finally{try{!K&&J.return&&J.return()}finally{if(Q)throw X}}return H}return function(D,U){if(Array.isArray(D))return D;if(Symbol.iterator in Object(D))return x(D,U);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function x(D,U){for(var H=0;H<U.length;H++){var K=U[H];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(D,K.key,K)}}return function(D,U,H){return U&&x(D.prototype,U),H&&x(D,H),D}}(),v=d(21),p=g(v),c=d(11),o=g(c),t=d(3),e=g(t),u=d(2),l=g(u),a=d(20),i=g(a),r=d(0),s=g(r),n=d(5),f=g(n),w=d(10),b=g(w),_=d(9),N=g(_);function g(x){return x&&x.__esModule?x:{default:x}}function h(x,D,U){return D in x?Object.defineProperty(x,D,{value:U,enumerable:!0,configurable:!0,writable:!0}):x[D]=U,x}function m(x,D){if(!(x instanceof D))throw new TypeError("Cannot call a class as a function")}function k(x,D){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D&&(typeof D=="object"||typeof D=="function")?D:x}function T(x,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof D);x.prototype=Object.create(D&&D.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),D&&(Object.setPrototypeOf?Object.setPrototypeOf(x,D):x.__proto__=D)}var L=(0,b.default)("quill:keyboard"),B=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",F=function(x){T(D,x),O(D,null,[{key:"match",value:function(H,K){return K=M(K),["altKey","ctrlKey","metaKey","shiftKey"].some(function(Q){return!!K[Q]!==H[Q]&&K[Q]!==null})?!1:K.key===(H.which||H.keyCode)}}]);function D(U,H){m(this,D);var K=k(this,(D.__proto__||Object.getPrototypeOf(D)).call(this,U,H));return K.bindings={},Object.keys(K.options.bindings).forEach(function(Q){Q==="list autofill"&&U.scroll.whitelist!=null&&!U.scroll.whitelist.list||K.options.bindings[Q]&&K.addBinding(K.options.bindings[Q])}),K.addBinding({key:D.keys.ENTER,shiftKey:null},P),K.addBinding({key:D.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(K.addBinding({key:D.keys.BACKSPACE},{collapsed:!0},I),K.addBinding({key:D.keys.DELETE},{collapsed:!0},R)):(K.addBinding({key:D.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},I),K.addBinding({key:D.keys.DELETE},{collapsed:!0,suffix:/^.?$/},R)),K.addBinding({key:D.keys.BACKSPACE},{collapsed:!1},E),K.addBinding({key:D.keys.DELETE},{collapsed:!1},E),K.addBinding({key:D.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},I),K.listen(),K}return O(D,[{key:"addBinding",value:function(H){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},X=M(H);if(X==null||X.key==null)return L.warn("Attempted to add invalid keyboard binding",X);typeof K=="function"&&(K={handler:K}),typeof Q=="function"&&(Q={handler:Q}),X=(0,e.default)(X,K,Q),this.bindings[X.key]=this.bindings[X.key]||[],this.bindings[X.key].push(X)}},{key:"listen",value:function(){var H=this;this.quill.root.addEventListener("keydown",function(K){if(!K.defaultPrevented){var Q=K.which||K.keyCode,X=(H.bindings[Q]||[]).filter(function(at){return D.match(K,at)});if(X.length!==0){var J=H.quill.getSelection();if(!(J==null||!H.quill.hasFocus())){var rt=H.quill.getLine(J.index),it=A(rt,2),st=it[0],ut=it[1],$=H.quill.getLeaf(J.index),z=A($,2),W=z[0],Y=z[1],Z=J.length===0?[W,Y]:H.quill.getLeaf(J.index+J.length),tt=A(Z,2),et=tt[0],nt=tt[1],ft=W instanceof s.default.Text?W.value().slice(0,Y):"",ct=et instanceof s.default.Text?et.value().slice(nt):"",ot={collapsed:J.length===0,empty:J.length===0&&st.length()<=1,format:H.quill.getFormat(J),offset:ut,prefix:ft,suffix:ct},_t=X.some(function(at){if(at.collapsed!=null&&at.collapsed!==ot.collapsed||at.empty!=null&&at.empty!==ot.empty||at.offset!=null&&at.offset!==ot.offset)return!1;if(Array.isArray(at.format)){if(at.format.every(function(ht){return ot.format[ht]==null}))return!1}else if(S(at.format)==="object"&&!Object.keys(at.format).every(function(ht){return at.format[ht]===!0?ot.format[ht]!=null:at.format[ht]===!1?ot.format[ht]==null:(0,o.default)(at.format[ht],ot.format[ht])}))return!1;return at.prefix!=null&&!at.prefix.test(ot.prefix)||at.suffix!=null&&!at.suffix.test(ot.suffix)?!1:at.handler.call(H,J,ot)!==!0});_t&&K.preventDefault()}}}})}}]),D}(N.default);F.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},F.DEFAULTS={bindings:{bold:C("bold"),italic:C("italic"),underline:C("underline"),indent:{key:F.keys.TAB,format:["blockquote","indent","list"],handler:function(D,U){if(U.collapsed&&U.offset!==0)return!0;this.quill.format("indent","+1",f.default.sources.USER)}},outdent:{key:F.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(D,U){if(U.collapsed&&U.offset!==0)return!0;this.quill.format("indent","-1",f.default.sources.USER)}},"outdent backspace":{key:F.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(D,U){U.format.indent!=null?this.quill.format("indent","-1",f.default.sources.USER):U.format.list!=null&&this.quill.format("list",!1,f.default.sources.USER)}},"indent code-block":q(!0),"outdent code-block":q(!1),"remove tab":{key:F.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(D){this.quill.deleteText(D.index-1,1,f.default.sources.USER)}},tab:{key:F.keys.TAB,handler:function(D){this.quill.history.cutoff();var U=new l.default().retain(D.index).delete(D.length).insert(" ");this.quill.updateContents(U,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(D.index+1,f.default.sources.SILENT)}},"list empty enter":{key:F.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(D,U){this.quill.format("list",!1,f.default.sources.USER),U.format.indent&&this.quill.format("indent",!1,f.default.sources.USER)}},"checklist enter":{key:F.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(D){var U=this.quill.getLine(D.index),H=A(U,2),K=H[0],Q=H[1],X=(0,e.default)({},K.formats(),{list:"checked"}),J=new l.default().retain(D.index).insert(`
28
- `,X).retain(K.length()-Q-1).retain(1,{list:"unchecked"});this.quill.updateContents(J,f.default.sources.USER),this.quill.setSelection(D.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:F.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(D,U){var H=this.quill.getLine(D.index),K=A(H,2),Q=K[0],X=K[1],J=new l.default().retain(D.index).insert(`
29
- `,U.format).retain(Q.length()-X-1).retain(1,{header:null});this.quill.updateContents(J,f.default.sources.USER),this.quill.setSelection(D.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(D,U){var H=U.prefix.length,K=this.quill.getLine(D.index),Q=A(K,2),X=Q[0],J=Q[1];if(J>H)return!0;var rt=void 0;switch(U.prefix.trim()){case"[]":case"[ ]":rt="unchecked";break;case"[x]":rt="checked";break;case"-":case"*":rt="bullet";break;default:rt="ordered"}this.quill.insertText(D.index," ",f.default.sources.USER),this.quill.history.cutoff();var it=new l.default().retain(D.index-J).delete(H+1).retain(X.length()-2-J).retain(1,{list:rt});this.quill.updateContents(it,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(D.index-H,f.default.sources.SILENT)}},"code exit":{key:F.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(D){var U=this.quill.getLine(D.index),H=A(U,2),K=H[0],Q=H[1],X=new l.default().retain(D.index+K.length()-Q-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(X,f.default.sources.USER)}},"embed left":V(F.keys.LEFT,!1),"embed left shift":V(F.keys.LEFT,!0),"embed right":V(F.keys.RIGHT,!1),"embed right shift":V(F.keys.RIGHT,!0)}};function V(x,D){var U,H=x===F.keys.LEFT?"prefix":"suffix";return U={key:x,shiftKey:D,altKey:null},h(U,H,/^$/),h(U,"handler",function(Q){var X=Q.index;x===F.keys.RIGHT&&(X+=Q.length+1);var J=this.quill.getLeaf(X),rt=A(J,1),it=rt[0];return it instanceof s.default.Embed?(x===F.keys.LEFT?D?this.quill.setSelection(Q.index-1,Q.length+1,f.default.sources.USER):this.quill.setSelection(Q.index-1,f.default.sources.USER):D?this.quill.setSelection(Q.index,Q.length+1,f.default.sources.USER):this.quill.setSelection(Q.index+Q.length+1,f.default.sources.USER),!1):!0}),U}function I(x,D){if(!(x.index===0||this.quill.getLength()<=1)){var U=this.quill.getLine(x.index),H=A(U,1),K=H[0],Q={};if(D.offset===0){var X=this.quill.getLine(x.index-1),J=A(X,1),rt=J[0];if(rt!=null&&rt.length()>1){var it=K.formats(),st=this.quill.getFormat(x.index-1,1);Q=i.default.attributes.diff(it,st)||{}}}var ut=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(D.prefix)?2:1;this.quill.deleteText(x.index-ut,ut,f.default.sources.USER),Object.keys(Q).length>0&&this.quill.formatLine(x.index-ut,ut,Q,f.default.sources.USER),this.quill.focus()}}function R(x,D){var U=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(D.suffix)?2:1;if(!(x.index>=this.quill.getLength()-U)){var H={},K=0,Q=this.quill.getLine(x.index),X=A(Q,1),J=X[0];if(D.offset>=J.length()-1){var rt=this.quill.getLine(x.index+1),it=A(rt,1),st=it[0];if(st){var ut=J.formats(),$=this.quill.getFormat(x.index,1);H=i.default.attributes.diff(ut,$)||{},K=st.length()}}this.quill.deleteText(x.index,U,f.default.sources.USER),Object.keys(H).length>0&&this.quill.formatLine(x.index+K-1,U,H,f.default.sources.USER)}}function E(x){var D=this.quill.getLines(x),U={};if(D.length>1){var H=D[0].formats(),K=D[D.length-1].formats();U=i.default.attributes.diff(K,H)||{}}this.quill.deleteText(x,f.default.sources.USER),Object.keys(U).length>0&&this.quill.formatLine(x.index,1,U,f.default.sources.USER),this.quill.setSelection(x.index,f.default.sources.SILENT),this.quill.focus()}function P(x,D){var U=this;x.length>0&&this.quill.scroll.deleteAt(x.index,x.length);var H=Object.keys(D.format).reduce(function(K,Q){return s.default.query(Q,s.default.Scope.BLOCK)&&!Array.isArray(D.format[Q])&&(K[Q]=D.format[Q]),K},{});this.quill.insertText(x.index,`
30
- `,H,f.default.sources.USER),this.quill.setSelection(x.index+1,f.default.sources.SILENT),this.quill.focus(),Object.keys(D.format).forEach(function(K){H[K]==null&&(Array.isArray(D.format[K])||K!=="link"&&U.quill.format(K,D.format[K],f.default.sources.USER))})}function q(x){return{key:F.keys.TAB,shiftKey:!x,format:{"code-block":!0},handler:function(U){var H=s.default.query("code-block"),K=U.index,Q=U.length,X=this.quill.scroll.descendant(H,K),J=A(X,2),rt=J[0],it=J[1];if(rt!=null){var st=this.quill.getIndex(rt),ut=rt.newlineIndex(it,!0)+1,$=rt.newlineIndex(st+it+Q),z=rt.domNode.textContent.slice(ut,$).split(`
31
- `);it=0,z.forEach(function(W,Y){x?(rt.insertAt(ut+it,H.TAB),it+=H.TAB.length,Y===0?K+=H.TAB.length:Q+=H.TAB.length):W.startsWith(H.TAB)&&(rt.deleteAt(ut+it,H.TAB.length),it-=H.TAB.length,Y===0?K-=H.TAB.length:Q-=H.TAB.length),it+=W.length+1}),this.quill.update(f.default.sources.USER),this.quill.setSelection(K,Q,f.default.sources.SILENT)}}}}function C(x){return{key:x[0].toUpperCase(),shortKey:!0,handler:function(U,H){this.quill.format(x,!H.format[x],f.default.sources.USER)}}}function M(x){if(typeof x=="string"||typeof x=="number")return M({key:x});if((typeof x>"u"?"undefined":S(x))==="object"&&(x=(0,p.default)(x,!1)),typeof x.key=="string")if(F.keys[x.key.toUpperCase()]!=null)x.key=F.keys[x.key.toUpperCase()];else if(x.key.length===1)x.key=x.key.toUpperCase().charCodeAt(0);else return null;return x.shortKey&&(x[B]=x.shortKey,delete x.shortKey),x}y.default=F,y.SHORTKEY=B},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0});var S=function(){function i(r,s){var n=[],f=!0,w=!1,b=void 0;try{for(var _=r[Symbol.iterator](),N;!(f=(N=_.next()).done)&&(n.push(N.value),!(s&&n.length===s));f=!0);}catch(g){w=!0,b=g}finally{try{!f&&_.return&&_.return()}finally{if(w)throw b}}return n}return function(r,s){if(Array.isArray(r))return r;if(Symbol.iterator in Object(r))return i(r,s);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),A=function i(r,s,n){r===null&&(r=Function.prototype);var f=Object.getOwnPropertyDescriptor(r,s);if(f===void 0){var w=Object.getPrototypeOf(r);return w===null?void 0:i(w,s,n)}else{if("value"in f)return f.value;var b=f.get;return b===void 0?void 0:b.call(n)}},O=function(){function i(r,s){for(var n=0;n<s.length;n++){var f=s[n];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(r,f.key,f)}}return function(r,s,n){return s&&i(r.prototype,s),n&&i(r,n),r}}(),v=d(0),p=t(v),c=d(7),o=t(c);function t(i){return i&&i.__esModule?i:{default:i}}function e(i,r){if(!(i instanceof r))throw new TypeError("Cannot call a class as a function")}function u(i,r){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:i}function l(i,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);i.prototype=Object.create(r&&r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(i,r):i.__proto__=r)}var a=function(i){l(r,i),O(r,null,[{key:"value",value:function(){}}]);function r(s,n){e(this,r);var f=u(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,s));return f.selection=n,f.textNode=document.createTextNode(r.CONTENTS),f.domNode.appendChild(f.textNode),f._length=0,f}return O(r,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(n,f){if(this._length!==0)return A(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,n,f);for(var w=this,b=0;w!=null&&w.statics.scope!==p.default.Scope.BLOCK_BLOT;)b+=w.offset(w.parent),w=w.parent;w!=null&&(this._length=r.CONTENTS.length,w.optimize(),w.formatAt(b,r.CONTENTS.length,n,f),this._length=0)}},{key:"index",value:function(n,f){return n===this.textNode?0:A(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"index",this).call(this,n,f)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){A(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var n=this.textNode,f=this.selection.getNativeRange(),w=void 0,b=void 0,_=void 0;if(f!=null&&f.start.node===n&&f.end.node===n){var N=[n,f.start.offset,f.end.offset];w=N[0],b=N[1],_=N[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==r.CONTENTS){var g=this.textNode.data.split(r.CONTENTS).join("");this.next instanceof o.default?(w=this.next.domNode,this.next.insertAt(0,g),this.textNode.data=r.CONTENTS):(this.textNode.data=g,this.parent.insertBefore(p.default.create(this.textNode),this),this.textNode=document.createTextNode(r.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),b!=null){var h=[b,_].map(function(k){return Math.max(0,Math.min(w.data.length,k-1))}),m=S(h,2);return b=m[0],_=m[1],{startNode:w,startOffset:b,endNode:w,endOffset:_}}}}},{key:"update",value:function(n,f){var w=this;if(n.some(function(_){return _.type==="characterData"&&_.target===w.textNode})){var b=this.restore();b&&(f.range=b)}}},{key:"value",value:function(){return""}}]),r}(p.default.Embed);a.blotName="cursor",a.className="ql-cursor",a.tagName="span",a.CONTENTS="\uFEFF",y.default=a},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0});var S=d(0),A=p(S),O=d(4),v=p(O);function p(u){return u&&u.__esModule?u:{default:u}}function c(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:u}function t(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}var e=function(u){t(l,u);function l(){return c(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return l}(A.default.Container);e.allowedChildren=[v.default,O.BlockEmbed,e],y.default=e},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0}),y.ColorStyle=y.ColorClass=y.ColorAttributor=void 0;var S=function(){function a(i,r){for(var s=0;s<r.length;s++){var n=r[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(i,n.key,n)}}return function(i,r,s){return r&&a(i.prototype,r),s&&a(i,s),i}}(),A=function a(i,r,s){i===null&&(i=Function.prototype);var n=Object.getOwnPropertyDescriptor(i,r);if(n===void 0){var f=Object.getPrototypeOf(i);return f===null?void 0:a(f,r,s)}else{if("value"in n)return n.value;var w=n.get;return w===void 0?void 0:w.call(s)}},O=d(0),v=p(O);function p(a){return a&&a.__esModule?a:{default:a}}function c(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}function o(a,i){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:a}function t(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);a.prototype=Object.create(i&&i.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(a,i):a.__proto__=i)}var e=function(a){t(i,a);function i(){return c(this,i),o(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return S(i,[{key:"value",value:function(s){var n=A(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"value",this).call(this,s);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map(function(f){return("00"+parseInt(f).toString(16)).slice(-2)}).join("")):n}}]),i}(v.default.Attributor.Style),u=new v.default.Attributor.Class("color","ql-color",{scope:v.default.Scope.INLINE}),l=new e("color","color",{scope:v.default.Scope.INLINE});y.ColorAttributor=e,y.ColorClass=u,y.ColorStyle=l},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0}),y.sanitize=y.default=void 0;var S=function(){function l(a,i){for(var r=0;r<i.length;r++){var s=i[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(a,s.key,s)}}return function(a,i,r){return i&&l(a.prototype,i),r&&l(a,r),a}}(),A=function l(a,i,r){a===null&&(a=Function.prototype);var s=Object.getOwnPropertyDescriptor(a,i);if(s===void 0){var n=Object.getPrototypeOf(a);return n===null?void 0:l(n,i,r)}else{if("value"in s)return s.value;var f=s.get;return f===void 0?void 0:f.call(r)}},O=d(6),v=p(O);function p(l){return l&&l.__esModule?l:{default:l}}function c(l,a){if(!(l instanceof a))throw new TypeError("Cannot call a class as a function")}function o(l,a){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:l}function t(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);l.prototype=Object.create(a&&a.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(l,a):l.__proto__=a)}var e=function(l){t(a,l);function a(){return c(this,a),o(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return S(a,[{key:"format",value:function(r,s){if(r!==this.statics.blotName||!s)return A(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"format",this).call(this,r,s);s=this.constructor.sanitize(s),this.domNode.setAttribute("href",s)}}],[{key:"create",value:function(r){var s=A(a.__proto__||Object.getPrototypeOf(a),"create",this).call(this,r);return r=this.sanitize(r),s.setAttribute("href",r),s.setAttribute("rel","noopener noreferrer"),s.setAttribute("target","_blank"),s}},{key:"formats",value:function(r){return r.getAttribute("href")}},{key:"sanitize",value:function(r){return u(r,this.PROTOCOL_WHITELIST)?r:this.SANITIZED_URL}}]),a}(v.default);e.blotName="link",e.tagName="A",e.SANITIZED_URL="about:blank",e.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function u(l,a){var i=document.createElement("a");i.href=l;var r=i.href.slice(0,i.href.indexOf(":"));return a.indexOf(r)>-1}y.default=e,y.sanitize=u},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0});var S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},A=function(){function a(i,r){for(var s=0;s<r.length;s++){var n=r[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(i,n.key,n)}}return function(i,r,s){return r&&a(i.prototype,r),s&&a(i,s),i}}(),O=d(23),v=o(O),p=d(107),c=o(p);function o(a){return a&&a.__esModule?a:{default:a}}function t(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}var e=0;function u(a,i){a.setAttribute(i,a.getAttribute(i)!=="true")}var l=function(){function a(i){var r=this;t(this,a),this.select=i,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(){r.togglePicker()}),this.label.addEventListener("keydown",function(s){switch(s.keyCode){case v.default.keys.ENTER:r.togglePicker();break;case v.default.keys.ESCAPE:r.escape(),s.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return A(a,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),u(this.label,"aria-expanded"),u(this.options,"aria-hidden")}},{key:"buildItem",value:function(r){var s=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),r.hasAttribute("value")&&n.setAttribute("data-value",r.getAttribute("value")),r.textContent&&n.setAttribute("data-label",r.textContent),n.addEventListener("click",function(){s.selectItem(n,!0)}),n.addEventListener("keydown",function(f){switch(f.keyCode){case v.default.keys.ENTER:s.selectItem(n,!0),f.preventDefault();break;case v.default.keys.ESCAPE:s.escape(),f.preventDefault();break}}),n}},{key:"buildLabel",value:function(){var r=document.createElement("span");return r.classList.add("ql-picker-label"),r.innerHTML=c.default,r.tabIndex="0",r.setAttribute("role","button"),r.setAttribute("aria-expanded","false"),this.container.appendChild(r),r}},{key:"buildOptions",value:function(){var r=this,s=document.createElement("span");s.classList.add("ql-picker-options"),s.setAttribute("aria-hidden","true"),s.tabIndex="-1",s.id="ql-picker-options-"+e,e+=1,this.label.setAttribute("aria-controls",s.id),this.options=s,[].slice.call(this.select.options).forEach(function(n){var f=r.buildItem(n);s.appendChild(f),n.selected===!0&&r.selectItem(f)}),this.container.appendChild(s)}},{key:"buildPicker",value:function(){var r=this;[].slice.call(this.select.attributes).forEach(function(s){r.container.setAttribute(s.name,s.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var r=this;this.close(),setTimeout(function(){return r.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(r){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=this.container.querySelector(".ql-selected");if(r!==n&&(n!=null&&n.classList.remove("ql-selected"),r!=null&&(r.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(r.parentNode.children,r),r.hasAttribute("data-value")?this.label.setAttribute("data-value",r.getAttribute("data-value")):this.label.removeAttribute("data-value"),r.hasAttribute("data-label")?this.label.setAttribute("data-label",r.getAttribute("data-label")):this.label.removeAttribute("data-label"),s))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":S(Event))==="object"){var f=document.createEvent("Event");f.initEvent("change",!0,!0),this.select.dispatchEvent(f)}this.close()}}},{key:"update",value:function(){var r=void 0;if(this.select.selectedIndex>-1){var s=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];r=this.select.options[this.select.selectedIndex],this.selectItem(s)}else this.selectItem(null);var n=r!=null&&r!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),a}();y.default=l},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0});var S=d(0),A=L(S),O=d(5),v=L(O),p=d(4),c=L(p),o=d(16),t=L(o),e=d(25),u=L(e),l=d(24),a=L(l),i=d(35),r=L(i),s=d(6),n=L(s),f=d(22),w=L(f),b=d(7),_=L(b),N=d(55),g=L(N),h=d(42),m=L(h),k=d(23),T=L(k);function L(B){return B&&B.__esModule?B:{default:B}}v.default.register({"blots/block":c.default,"blots/block/embed":p.BlockEmbed,"blots/break":t.default,"blots/container":u.default,"blots/cursor":a.default,"blots/embed":r.default,"blots/inline":n.default,"blots/scroll":w.default,"blots/text":_.default,"modules/clipboard":g.default,"modules/history":m.default,"modules/keyboard":T.default}),A.default.register(c.default,t.default,a.default,n.default,w.default,_.default),y.default=v.default},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0});var S=d(1),A=function(){function O(v){this.domNode=v,this.domNode[S.DATA_KEY]={blot:this}}return Object.defineProperty(O.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),O.create=function(v){if(this.tagName==null)throw new S.ParchmentError("Blot definition missing tagName");var p;return Array.isArray(this.tagName)?(typeof v=="string"&&(v=v.toUpperCase(),parseInt(v).toString()===v&&(v=parseInt(v))),typeof v=="number"?p=document.createElement(this.tagName[v-1]):this.tagName.indexOf(v)>-1?p=document.createElement(v):p=document.createElement(this.tagName[0])):p=document.createElement(this.tagName),this.className&&p.classList.add(this.className),p},O.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},O.prototype.clone=function(){var v=this.domNode.cloneNode(!1);return S.create(v)},O.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[S.DATA_KEY]},O.prototype.deleteAt=function(v,p){var c=this.isolate(v,p);c.remove()},O.prototype.formatAt=function(v,p,c,o){var t=this.isolate(v,p);if(S.query(c,S.Scope.BLOT)!=null&&o)t.wrap(c,o);else if(S.query(c,S.Scope.ATTRIBUTE)!=null){var e=S.create(this.statics.scope);t.wrap(e),e.format(c,o)}},O.prototype.insertAt=function(v,p,c){var o=c==null?S.create("text",p):S.create(p,c),t=this.split(v);this.parent.insertBefore(o,t)},O.prototype.insertInto=function(v,p){p===void 0&&(p=null),this.parent!=null&&this.parent.children.remove(this);var c=null;v.children.insertBefore(this,p),p!=null&&(c=p.domNode),(this.domNode.parentNode!=v.domNode||this.domNode.nextSibling!=c)&&v.domNode.insertBefore(this.domNode,c),this.parent=v,this.attach()},O.prototype.isolate=function(v,p){var c=this.split(v);return c.split(p),c},O.prototype.length=function(){return 1},O.prototype.offset=function(v){return v===void 0&&(v=this.parent),this.parent==null||this==v?0:this.parent.children.offset(this)+this.parent.offset(v)},O.prototype.optimize=function(v){this.domNode[S.DATA_KEY]!=null&&delete this.domNode[S.DATA_KEY].mutations},O.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},O.prototype.replace=function(v){v.parent!=null&&(v.parent.insertBefore(this,v.next),v.remove())},O.prototype.replaceWith=function(v,p){var c=typeof v=="string"?S.create(v,p):v;return c.replace(this),c},O.prototype.split=function(v,p){return v===0?this:this.next},O.prototype.update=function(v,p){},O.prototype.wrap=function(v,p){var c=typeof v=="string"?S.create(v,p):v;return this.parent!=null&&this.parent.insertBefore(c,this.next),c.appendChild(this),c},O.blotName="abstract",O}();y.default=A},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0});var S=d(12),A=d(32),O=d(33),v=d(1),p=function(){function c(o){this.attributes={},this.domNode=o,this.build()}return c.prototype.attribute=function(o,t){t?o.add(this.domNode,t)&&(o.value(this.domNode)!=null?this.attributes[o.attrName]=o:delete this.attributes[o.attrName]):(o.remove(this.domNode),delete this.attributes[o.attrName])},c.prototype.build=function(){var o=this;this.attributes={};var t=S.default.keys(this.domNode),e=A.default.keys(this.domNode),u=O.default.keys(this.domNode);t.concat(e).concat(u).forEach(function(l){var a=v.query(l,v.Scope.ATTRIBUTE);a instanceof S.default&&(o.attributes[a.attrName]=a)})},c.prototype.copy=function(o){var t=this;Object.keys(this.attributes).forEach(function(e){var u=t.attributes[e].value(t.domNode);o.format(e,u)})},c.prototype.move=function(o){var t=this;this.copy(o),Object.keys(this.attributes).forEach(function(e){t.attributes[e].remove(t.domNode)}),this.attributes={}},c.prototype.values=function(){var o=this;return Object.keys(this.attributes).reduce(function(t,e){return t[e]=o.attributes[e].value(o.domNode),t},{})},c}();y.default=p},function(j,y,d){var S=this&&this.__extends||function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var t in o)o.hasOwnProperty(t)&&(c[t]=o[t])};return function(c,o){p(c,o);function t(){this.constructor=c}c.prototype=o===null?Object.create(o):(t.prototype=o.prototype,new t)}}();Object.defineProperty(y,"__esModule",{value:!0});var A=d(12);function O(p,c){var o=p.getAttribute("class")||"";return o.split(/\s+/).filter(function(t){return t.indexOf(c+"-")===0})}var v=function(p){S(c,p);function c(){return p!==null&&p.apply(this,arguments)||this}return c.keys=function(o){return(o.getAttribute("class")||"").split(/\s+/).map(function(t){return t.split("-").slice(0,-1).join("-")})},c.prototype.add=function(o,t){return this.canAdd(o,t)?(this.remove(o),o.classList.add(this.keyName+"-"+t),!0):!1},c.prototype.remove=function(o){var t=O(o,this.keyName);t.forEach(function(e){o.classList.remove(e)}),o.classList.length===0&&o.removeAttribute("class")},c.prototype.value=function(o){var t=O(o,this.keyName)[0]||"",e=t.slice(this.keyName.length+1);return this.canAdd(o,e)?e:""},c}(A.default);y.default=v},function(j,y,d){var S=this&&this.__extends||function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var t in o)o.hasOwnProperty(t)&&(c[t]=o[t])};return function(c,o){p(c,o);function t(){this.constructor=c}c.prototype=o===null?Object.create(o):(t.prototype=o.prototype,new t)}}();Object.defineProperty(y,"__esModule",{value:!0});var A=d(12);function O(p){var c=p.split("-"),o=c.slice(1).map(function(t){return t[0].toUpperCase()+t.slice(1)}).join("");return c[0]+o}var v=function(p){S(c,p);function c(){return p!==null&&p.apply(this,arguments)||this}return c.keys=function(o){return(o.getAttribute("style")||"").split(";").map(function(t){var e=t.split(":");return e[0].trim()})},c.prototype.add=function(o,t){return this.canAdd(o,t)?(o.style[O(this.keyName)]=t,!0):!1},c.prototype.remove=function(o){o.style[O(this.keyName)]="",o.getAttribute("style")||o.removeAttribute("style")},c.prototype.value=function(o){var t=o.style[O(this.keyName)];return this.canAdd(o,t)?t:""},c}(A.default);y.default=v},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0});var S=function(){function v(p,c){for(var o=0;o<c.length;o++){var t=c[o];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(p,t.key,t)}}return function(p,c,o){return c&&v(p.prototype,c),o&&v(p,o),p}}();function A(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}var O=function(){function v(p,c){A(this,v),this.quill=p,this.options=c,this.modules={}}return S(v,[{key:"init",value:function(){var c=this;Object.keys(this.options.modules).forEach(function(o){c.modules[o]==null&&c.addModule(o)})}},{key:"addModule",value:function(c){var o=this.quill.constructor.import("modules/"+c);return this.modules[c]=new o(this.quill,this.options.modules[c]||{}),this.modules[c]}}]),v}();O.DEFAULTS={modules:{}},O.themes={default:O},y.default=O},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0});var S=function(){function i(r,s){for(var n=0;n<s.length;n++){var f=s[n];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(r,f.key,f)}}return function(r,s,n){return s&&i(r.prototype,s),n&&i(r,n),r}}(),A=function i(r,s,n){r===null&&(r=Function.prototype);var f=Object.getOwnPropertyDescriptor(r,s);if(f===void 0){var w=Object.getPrototypeOf(r);return w===null?void 0:i(w,s,n)}else{if("value"in f)return f.value;var b=f.get;return b===void 0?void 0:b.call(n)}},O=d(0),v=o(O),p=d(7),c=o(p);function o(i){return i&&i.__esModule?i:{default:i}}function t(i,r){if(!(i instanceof r))throw new TypeError("Cannot call a class as a function")}function e(i,r){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:i}function u(i,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);i.prototype=Object.create(r&&r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(i,r):i.__proto__=r)}var l="\uFEFF",a=function(i){u(r,i);function r(s){t(this,r);var n=e(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,s));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach(function(f){n.contentNode.appendChild(f)}),n.leftGuard=document.createTextNode(l),n.rightGuard=document.createTextNode(l),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return S(r,[{key:"index",value:function(n,f){return n===this.leftGuard?0:n===this.rightGuard?1:A(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"index",this).call(this,n,f)}},{key:"restore",value:function(n){var f=void 0,w=void 0,b=n.data.split(l).join("");if(n===this.leftGuard)if(this.prev instanceof c.default){var _=this.prev.length();this.prev.insertAt(_,b),f={startNode:this.prev.domNode,startOffset:_+b.length}}else w=document.createTextNode(b),this.parent.insertBefore(v.default.create(w),this),f={startNode:w,startOffset:b.length};else n===this.rightGuard&&(this.next instanceof c.default?(this.next.insertAt(0,b),f={startNode:this.next.domNode,startOffset:b.length}):(w=document.createTextNode(b),this.parent.insertBefore(v.default.create(w),this.next),f={startNode:w,startOffset:b.length}));return n.data=l,f}},{key:"update",value:function(n,f){var w=this;n.forEach(function(b){if(b.type==="characterData"&&(b.target===w.leftGuard||b.target===w.rightGuard)){var _=w.restore(b.target);_&&(f.range=_)}})}}]),r}(v.default.Embed);y.default=a},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0}),y.AlignStyle=y.AlignClass=y.AlignAttribute=void 0;var S=d(0),A=O(S);function O(t){return t&&t.__esModule?t:{default:t}}var v={scope:A.default.Scope.BLOCK,whitelist:["right","center","justify"]},p=new A.default.Attributor.Attribute("align","align",v),c=new A.default.Attributor.Class("align","ql-align",v),o=new A.default.Attributor.Style("align","text-align",v);y.AlignAttribute=p,y.AlignClass=c,y.AlignStyle=o},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0}),y.BackgroundStyle=y.BackgroundClass=void 0;var S=d(0),A=v(S),O=d(26);function v(o){return o&&o.__esModule?o:{default:o}}var p=new A.default.Attributor.Class("background","ql-bg",{scope:A.default.Scope.INLINE}),c=new O.ColorAttributor("background","background-color",{scope:A.default.Scope.INLINE});y.BackgroundClass=p,y.BackgroundStyle=c},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0}),y.DirectionStyle=y.DirectionClass=y.DirectionAttribute=void 0;var S=d(0),A=O(S);function O(t){return t&&t.__esModule?t:{default:t}}var v={scope:A.default.Scope.BLOCK,whitelist:["rtl"]},p=new A.default.Attributor.Attribute("direction","dir",v),c=new A.default.Attributor.Class("direction","ql-direction",v),o=new A.default.Attributor.Style("direction","direction",v);y.DirectionAttribute=p,y.DirectionClass=c,y.DirectionStyle=o},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0}),y.FontClass=y.FontStyle=void 0;var S=function(){function i(r,s){for(var n=0;n<s.length;n++){var f=s[n];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(r,f.key,f)}}return function(r,s,n){return s&&i(r.prototype,s),n&&i(r,n),r}}(),A=function i(r,s,n){r===null&&(r=Function.prototype);var f=Object.getOwnPropertyDescriptor(r,s);if(f===void 0){var w=Object.getPrototypeOf(r);return w===null?void 0:i(w,s,n)}else{if("value"in f)return f.value;var b=f.get;return b===void 0?void 0:b.call(n)}},O=d(0),v=p(O);function p(i){return i&&i.__esModule?i:{default:i}}function c(i,r){if(!(i instanceof r))throw new TypeError("Cannot call a class as a function")}function o(i,r){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:i}function t(i,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);i.prototype=Object.create(r&&r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(i,r):i.__proto__=r)}var e={scope:v.default.Scope.INLINE,whitelist:["serif","monospace"]},u=new v.default.Attributor.Class("font","ql-font",e),l=function(i){t(r,i);function r(){return c(this,r),o(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return S(r,[{key:"value",value:function(n){return A(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"value",this).call(this,n).replace(/["']/g,"")}}]),r}(v.default.Attributor.Style),a=new l("font","font-family",e);y.FontStyle=a,y.FontClass=u},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0}),y.SizeStyle=y.SizeClass=void 0;var S=d(0),A=O(S);function O(c){return c&&c.__esModule?c:{default:c}}var v=new A.default.Attributor.Class("size","ql-size",{scope:A.default.Scope.INLINE,whitelist:["small","large","huge"]}),p=new A.default.Attributor.Style("size","font-size",{scope:A.default.Scope.INLINE,whitelist:["10px","18px","32px"]});y.SizeClass=v,y.SizeStyle=p},function(j,y,d){j.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(j,y,d){Object.defineProperty(y,"__esModule",{value:!0}),y.getLastChangeIndex=y.default=void 0;var S=function(){function s(n,f){for(var w=0;w<f.length;w++){var b=f[w];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(n,b.key,b)}}return function(n,f,w){return f&&s(n.prototype,f),w&&s(n,w),n}}(),A=d(0),O=t(A),v=d(5),p=t(v),c=d(9),o=t(c);function t(s){return s&&s.__esModule?s:{default:s}}function e(s,n){if(!(s instanceof n))throw new TypeError("Cannot call a class as a function")}function u(s,n){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:s}function l(s,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);s.prototype=Object.create(n&&n.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(s,n):s.__proto__=n)}var a=function(s){l(n,s);function n(f,w){e(this,n);var b=u(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,f,w));return b.lastRecorded=0,b.ignoreChange=!1,b.clear(),b.quill.on(p.default.events.EDITOR_CHANGE,function(_,N,g,h){_!==p.default.events.TEXT_CHANGE||b.ignoreChange||(!b.options.userOnly||h===p.default.sources.USER?b.record(N,g):b.transform(N))}),b.quill.keyboard.addBinding({key:"Z",shortKey:!0},b.undo.bind(b)),b.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},b.redo.bind(b)),/Win/i.test(navigator.platform)&&b.quill.keyboard.addBinding({key:"Y",shortKey:!0},b.redo.bind(b)),b}return S(n,[{key:"change",value:function(w,b){if(this.stack[w].length!==0){var _=this.stack[w].pop();this.stack[b].push(_),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(_[w],p.default.sources.USER),this.ignoreChange=!1;var N=r(_[w]);this.quill.setSelection(N)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(w,b){if(w.ops.length!==0){this.stack.redo=[];var _=this.quill.getContents().diff(b),N=Date.now();if(this.lastRecorded+this.options.delay>N&&this.stack.undo.length>0){var g=this.stack.undo.pop();_=_.compose(g.undo),w=g.redo.compose(w)}else this.lastRecorded=N;this.stack.undo.push({redo:w,undo:_}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(w){this.stack.undo.forEach(function(b){b.undo=w.transform(b.undo,!0),b.redo=w.transform(b.redo,!0)}),this.stack.redo.forEach(function(b){b.undo=w.transform(b.undo,!0),b.redo=w.transform(b.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),n}(o.default);a.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function i(s){var n=s.ops[s.ops.length-1];return n==null?!1:n.insert!=null?typeof n.insert=="string"&&n.insert.endsWith(`
32
- `):n.attributes!=null?Object.keys(n.attributes).some(function(f){return O.default.query(f,O.default.Scope.BLOCK)!=null}):!1}function r(s){var n=s.reduce(function(w,b){return w+=b.delete||0,w},0),f=s.length()-n;return i(s)&&(f-=1),f}y.default=a,y.getLastChangeIndex=r},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0}),y.default=y.BaseTooltip=void 0;var S=function(){function P(q,C){for(var M=0;M<C.length;M++){var x=C[M];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(q,x.key,x)}}return function(q,C,M){return C&&P(q.prototype,C),M&&P(q,M),q}}(),A=function P(q,C,M){q===null&&(q=Function.prototype);var x=Object.getOwnPropertyDescriptor(q,C);if(x===void 0){var D=Object.getPrototypeOf(q);return D===null?void 0:P(D,C,M)}else{if("value"in x)return x.value;var U=x.get;return U===void 0?void 0:U.call(M)}},O=d(3),v=N(O),p=d(2),c=N(p),o=d(8),t=N(o),e=d(23),u=N(e),l=d(34),a=N(l),i=d(59),r=N(i),s=d(60),n=N(s),f=d(28),w=N(f),b=d(61),_=N(b);function N(P){return P&&P.__esModule?P:{default:P}}function g(P,q){if(!(P instanceof q))throw new TypeError("Cannot call a class as a function")}function h(P,q){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return q&&(typeof q=="object"||typeof q=="function")?q:P}function m(P,q){if(typeof q!="function"&&q!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof q);P.prototype=Object.create(q&&q.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),q&&(Object.setPrototypeOf?Object.setPrototypeOf(P,q):P.__proto__=q)}var k=[!1,"center","right","justify"],T=["#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"],L=[!1,"serif","monospace"],B=["1","2","3",!1],F=["small",!1,"large","huge"],V=function(P){m(q,P);function q(C,M){g(this,q);var x=h(this,(q.__proto__||Object.getPrototypeOf(q)).call(this,C,M)),D=function U(H){if(!document.body.contains(C.root))return document.body.removeEventListener("click",U);x.tooltip!=null&&!x.tooltip.root.contains(H.target)&&document.activeElement!==x.tooltip.textbox&&!x.quill.hasFocus()&&x.tooltip.hide(),x.pickers!=null&&x.pickers.forEach(function(K){K.container.contains(H.target)||K.close()})};return C.emitter.listenDOM("click",document.body,D),x}return S(q,[{key:"addModule",value:function(M){var x=A(q.prototype.__proto__||Object.getPrototypeOf(q.prototype),"addModule",this).call(this,M);return M==="toolbar"&&this.extendToolbar(x),x}},{key:"buildButtons",value:function(M,x){M.forEach(function(D){var U=D.getAttribute("class")||"";U.split(/\s+/).forEach(function(H){if(!!H.startsWith("ql-")&&(H=H.slice(3),x[H]!=null))if(H==="direction")D.innerHTML=x[H][""]+x[H].rtl;else if(typeof x[H]=="string")D.innerHTML=x[H];else{var K=D.value||"";K!=null&&x[H][K]&&(D.innerHTML=x[H][K])}})})}},{key:"buildPickers",value:function(M,x){var D=this;this.pickers=M.map(function(H){if(H.classList.contains("ql-align"))return H.querySelector("option")==null&&E(H,k),new n.default(H,x.align);if(H.classList.contains("ql-background")||H.classList.contains("ql-color")){var K=H.classList.contains("ql-background")?"background":"color";return H.querySelector("option")==null&&E(H,T,K==="background"?"#ffffff":"#000000"),new r.default(H,x[K])}else return H.querySelector("option")==null&&(H.classList.contains("ql-font")?E(H,L):H.classList.contains("ql-header")?E(H,B):H.classList.contains("ql-size")&&E(H,F)),new w.default(H)});var U=function(){D.pickers.forEach(function(K){K.update()})};this.quill.on(t.default.events.EDITOR_CHANGE,U)}}]),q}(a.default);V.DEFAULTS=(0,v.default)(!0,{},a.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var q=this,C=this.container.querySelector("input.ql-image[type=file]");C==null&&(C=document.createElement("input"),C.setAttribute("type","file"),C.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),C.classList.add("ql-image"),C.addEventListener("change",function(){if(C.files!=null&&C.files[0]!=null){var M=new FileReader;M.onload=function(x){var D=q.quill.getSelection(!0);q.quill.updateContents(new c.default().retain(D.index).delete(D.length).insert({image:x.target.result}),t.default.sources.USER),q.quill.setSelection(D.index+1,t.default.sources.SILENT),C.value=""},M.readAsDataURL(C.files[0])}}),this.container.appendChild(C)),C.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var I=function(P){m(q,P);function q(C,M){g(this,q);var x=h(this,(q.__proto__||Object.getPrototypeOf(q)).call(this,C,M));return x.textbox=x.root.querySelector('input[type="text"]'),x.listen(),x}return S(q,[{key:"listen",value:function(){var M=this;this.textbox.addEventListener("keydown",function(x){u.default.match(x,"enter")?(M.save(),x.preventDefault()):u.default.match(x,"escape")&&(M.cancel(),x.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),x!=null?this.textbox.value=x:M!==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-"+M)||""),this.root.setAttribute("data-mode",M)}},{key:"restoreFocus",value:function(){var M=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=M}},{key:"save",value:function(){var M=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",M,t.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",M,t.default.sources.USER)),this.quill.root.scrollTop=x;break}case"video":M=R(M);case"formula":{if(!M)break;var D=this.quill.getSelection(!0);if(D!=null){var U=D.index+D.length;this.quill.insertEmbed(U,this.root.getAttribute("data-mode"),M,t.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(U+1," ",t.default.sources.USER),this.quill.setSelection(U+2,t.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),q}(_.default);function R(P){var q=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 q?(q[1]||"https")+"://www.youtube.com/embed/"+q[2]+"?showinfo=0":(q=P.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(q[1]||"https")+"://player.vimeo.com/video/"+q[2]+"/":P}function E(P,q){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;q.forEach(function(M){var x=document.createElement("option");M===C?x.setAttribute("selected","selected"):x.setAttribute("value",M),P.appendChild(x)})}y.BaseTooltip=I,y.default=V},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0});var S=function(){function A(){this.head=this.tail=null,this.length=0}return A.prototype.append=function(){for(var O=[],v=0;v<arguments.length;v++)O[v]=arguments[v];this.insertBefore(O[0],null),O.length>1&&this.append.apply(this,O.slice(1))},A.prototype.contains=function(O){for(var v,p=this.iterator();v=p();)if(v===O)return!0;return!1},A.prototype.insertBefore=function(O,v){!O||(O.next=v,v!=null?(O.prev=v.prev,v.prev!=null&&(v.prev.next=O),v.prev=O,v===this.head&&(this.head=O)):this.tail!=null?(this.tail.next=O,O.prev=this.tail,this.tail=O):(O.prev=null,this.head=this.tail=O),this.length+=1)},A.prototype.offset=function(O){for(var v=0,p=this.head;p!=null;){if(p===O)return v;v+=p.length(),p=p.next}return-1},A.prototype.remove=function(O){!this.contains(O)||(O.prev!=null&&(O.prev.next=O.next),O.next!=null&&(O.next.prev=O.prev),O===this.head&&(this.head=O.next),O===this.tail&&(this.tail=O.prev),this.length-=1)},A.prototype.iterator=function(O){return O===void 0&&(O=this.head),function(){var v=O;return O!=null&&(O=O.next),v}},A.prototype.find=function(O,v){v===void 0&&(v=!1);for(var p,c=this.iterator();p=c();){var o=p.length();if(O<o||v&&O===o&&(p.next==null||p.next.length()!==0))return[p,O];O-=o}return[null,0]},A.prototype.forEach=function(O){for(var v,p=this.iterator();v=p();)O(v)},A.prototype.forEachAt=function(O,v,p){if(!(v<=0))for(var c=this.find(O),o=c[0],t=c[1],e,u=O-t,l=this.iterator(o);(e=l())&&u<O+v;){var a=e.length();O>u?p(e,O-u,Math.min(v,u+a-O)):p(e,0,Math.min(a,O+v-u)),u+=a}},A.prototype.map=function(O){return this.reduce(function(v,p){return v.push(O(p)),v},[])},A.prototype.reduce=function(O,v){for(var p,c=this.iterator();p=c();)v=O(v,p);return v},A}();y.default=S},function(j,y,d){var S=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var u in e)e.hasOwnProperty(u)&&(t[u]=e[u])};return function(t,e){o(t,e);function u(){this.constructor=t}t.prototype=e===null?Object.create(e):(u.prototype=e.prototype,new u)}}();Object.defineProperty(y,"__esModule",{value:!0});var A=d(17),O=d(1),v={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},p=100,c=function(o){S(t,o);function t(e){var u=o.call(this,e)||this;return u.scroll=u,u.observer=new MutationObserver(function(l){u.update(l)}),u.observer.observe(u.domNode,v),u.attach(),u}return t.prototype.detach=function(){o.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(e,u){this.update(),e===0&&u===this.length()?this.children.forEach(function(l){l.remove()}):o.prototype.deleteAt.call(this,e,u)},t.prototype.formatAt=function(e,u,l,a){this.update(),o.prototype.formatAt.call(this,e,u,l,a)},t.prototype.insertAt=function(e,u,l){this.update(),o.prototype.insertAt.call(this,e,u,l)},t.prototype.optimize=function(e,u){var l=this;e===void 0&&(e=[]),u===void 0&&(u={}),o.prototype.optimize.call(this,u);for(var a=[].slice.call(this.observer.takeRecords());a.length>0;)e.push(a.pop());for(var i=function(f,w){w===void 0&&(w=!0),!(f==null||f===l)&&f.domNode.parentNode!=null&&(f.domNode[O.DATA_KEY].mutations==null&&(f.domNode[O.DATA_KEY].mutations=[]),w&&i(f.parent))},r=function(f){f.domNode[O.DATA_KEY]==null||f.domNode[O.DATA_KEY].mutations==null||(f instanceof A.default&&f.children.forEach(r),f.optimize(u))},s=e,n=0;s.length>0;n+=1){if(n>=p)throw new Error("[Parchment] Maximum optimize iterations reached");for(s.forEach(function(f){var w=O.find(f.target,!0);w!=null&&(w.domNode===f.target&&(f.type==="childList"?(i(O.find(f.previousSibling,!1)),[].forEach.call(f.addedNodes,function(b){var _=O.find(b,!1);i(_,!1),_ instanceof A.default&&_.children.forEach(function(N){i(N,!1)})})):f.type==="attributes"&&i(w.prev)),i(w))}),this.children.forEach(r),s=[].slice.call(this.observer.takeRecords()),a=s.slice();a.length>0;)e.push(a.pop())}},t.prototype.update=function(e,u){var l=this;u===void 0&&(u={}),e=e||this.observer.takeRecords(),e.map(function(a){var i=O.find(a.target,!0);return i==null?null:i.domNode[O.DATA_KEY].mutations==null?(i.domNode[O.DATA_KEY].mutations=[a],i):(i.domNode[O.DATA_KEY].mutations.push(a),null)}).forEach(function(a){a==null||a===l||a.domNode[O.DATA_KEY]==null||a.update(a.domNode[O.DATA_KEY].mutations||[],u)}),this.domNode[O.DATA_KEY].mutations!=null&&o.prototype.update.call(this,this.domNode[O.DATA_KEY].mutations,u),this.optimize(e,u)},t.blotName="scroll",t.defaultChild="block",t.scope=O.Scope.BLOCK_BLOT,t.tagName="DIV",t}(A.default);y.default=c},function(j,y,d){var S=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,t){o.__proto__=t}||function(o,t){for(var e in t)t.hasOwnProperty(e)&&(o[e]=t[e])};return function(o,t){c(o,t);function e(){this.constructor=o}o.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();Object.defineProperty(y,"__esModule",{value:!0});var A=d(18),O=d(1);function v(c,o){if(Object.keys(c).length!==Object.keys(o).length)return!1;for(var t in c)if(c[t]!==o[t])return!1;return!0}var p=function(c){S(o,c);function o(){return c!==null&&c.apply(this,arguments)||this}return o.formats=function(t){if(t.tagName!==o.tagName)return c.formats.call(this,t)},o.prototype.format=function(t,e){var u=this;t===this.statics.blotName&&!e?(this.children.forEach(function(l){l instanceof A.default||(l=l.wrap(o.blotName,!0)),u.attributes.copy(l)}),this.unwrap()):c.prototype.format.call(this,t,e)},o.prototype.formatAt=function(t,e,u,l){if(this.formats()[u]!=null||O.query(u,O.Scope.ATTRIBUTE)){var a=this.isolate(t,e);a.format(u,l)}else c.prototype.formatAt.call(this,t,e,u,l)},o.prototype.optimize=function(t){c.prototype.optimize.call(this,t);var e=this.formats();if(Object.keys(e).length===0)return this.unwrap();var u=this.next;u instanceof o&&u.prev===this&&v(e,u.formats())&&(u.moveChildren(this),u.remove())},o.blotName="inline",o.scope=O.Scope.INLINE_BLOT,o.tagName="SPAN",o}(A.default);y.default=p},function(j,y,d){var S=this&&this.__extends||function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var t in o)o.hasOwnProperty(t)&&(c[t]=o[t])};return function(c,o){p(c,o);function t(){this.constructor=c}c.prototype=o===null?Object.create(o):(t.prototype=o.prototype,new t)}}();Object.defineProperty(y,"__esModule",{value:!0});var A=d(18),O=d(1),v=function(p){S(c,p);function c(){return p!==null&&p.apply(this,arguments)||this}return c.formats=function(o){var t=O.query(c.blotName).tagName;if(o.tagName!==t)return p.formats.call(this,o)},c.prototype.format=function(o,t){O.query(o,O.Scope.BLOCK)!=null&&(o===this.statics.blotName&&!t?this.replaceWith(c.blotName):p.prototype.format.call(this,o,t))},c.prototype.formatAt=function(o,t,e,u){O.query(e,O.Scope.BLOCK)!=null?this.format(e,u):p.prototype.formatAt.call(this,o,t,e,u)},c.prototype.insertAt=function(o,t,e){if(e==null||O.query(t,O.Scope.INLINE)!=null)p.prototype.insertAt.call(this,o,t,e);else{var u=this.split(o),l=O.create(t,e);u.parent.insertBefore(l,u)}},c.prototype.update=function(o,t){navigator.userAgent.match(/Trident/)?this.build():p.prototype.update.call(this,o,t)},c.blotName="block",c.scope=O.Scope.BLOCK_BLOT,c.tagName="P",c}(A.default);y.default=v},function(j,y,d){var S=this&&this.__extends||function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,c){p.__proto__=c}||function(p,c){for(var o in c)c.hasOwnProperty(o)&&(p[o]=c[o])};return function(p,c){v(p,c);function o(){this.constructor=p}p.prototype=c===null?Object.create(c):(o.prototype=c.prototype,new o)}}();Object.defineProperty(y,"__esModule",{value:!0});var A=d(19),O=function(v){S(p,v);function p(){return v!==null&&v.apply(this,arguments)||this}return p.formats=function(c){},p.prototype.format=function(c,o){v.prototype.formatAt.call(this,0,this.length(),c,o)},p.prototype.formatAt=function(c,o,t,e){c===0&&o===this.length()?this.format(t,e):v.prototype.formatAt.call(this,c,o,t,e)},p.prototype.formats=function(){return this.statics.formats(this.domNode)},p}(A.default);y.default=O},function(j,y,d){var S=this&&this.__extends||function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var t in o)o.hasOwnProperty(t)&&(c[t]=o[t])};return function(c,o){p(c,o);function t(){this.constructor=c}c.prototype=o===null?Object.create(o):(t.prototype=o.prototype,new t)}}();Object.defineProperty(y,"__esModule",{value:!0});var A=d(19),O=d(1),v=function(p){S(c,p);function c(o){var t=p.call(this,o)||this;return t.text=t.statics.value(t.domNode),t}return c.create=function(o){return document.createTextNode(o)},c.value=function(o){var t=o.data;return t.normalize&&(t=t.normalize()),t},c.prototype.deleteAt=function(o,t){this.domNode.data=this.text=this.text.slice(0,o)+this.text.slice(o+t)},c.prototype.index=function(o,t){return this.domNode===o?t:-1},c.prototype.insertAt=function(o,t,e){e==null?(this.text=this.text.slice(0,o)+t+this.text.slice(o),this.domNode.data=this.text):p.prototype.insertAt.call(this,o,t,e)},c.prototype.length=function(){return this.text.length},c.prototype.optimize=function(o){p.prototype.optimize.call(this,o),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof c&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},c.prototype.position=function(o,t){return[this.domNode,o]},c.prototype.split=function(o,t){if(t===void 0&&(t=!1),!t){if(o===0)return this;if(o===this.length())return this.next}var e=O.create(this.domNode.splitText(o));return this.parent.insertBefore(e,this.next),this.text=this.statics.value(this.domNode),e},c.prototype.update=function(o,t){var e=this;o.some(function(u){return u.type==="characterData"&&u.target===e.domNode})&&(this.text=this.statics.value(this.domNode))},c.prototype.value=function(){return this.text},c.blotName="text",c.scope=O.Scope.INLINE_BLOT,c}(A.default);y.default=v},function(j,y,d){var S=document.createElement("div");if(S.classList.toggle("test-class",!1),S.classList.contains("test-class")){var A=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(O,v){return arguments.length>1&&!this.contains(O)==!v?v:A.call(this,O)}}String.prototype.startsWith||(String.prototype.startsWith=function(O,v){return v=v||0,this.substr(v,O.length)===O}),String.prototype.endsWith||(String.prototype.endsWith=function(O,v){var p=this.toString();(typeof v!="number"||!isFinite(v)||Math.floor(v)!==v||v>p.length)&&(v=p.length),v-=O.length;var c=p.indexOf(O,v);return c!==-1&&c===v}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(v){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof v!="function")throw new TypeError("predicate must be a function");for(var p=Object(this),c=p.length>>>0,o=arguments[1],t,e=0;e<c;e++)if(t=p[e],v.call(o,t,e,p))return t}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(j,y){var d=-1,S=1,A=0;function O(n,f,w){if(n==f)return n?[[A,n]]:[];(w<0||n.length<w)&&(w=null);var b=o(n,f),_=n.substring(0,b);n=n.substring(b),f=f.substring(b),b=t(n,f);var N=n.substring(n.length-b);n=n.substring(0,n.length-b),f=f.substring(0,f.length-b);var g=v(n,f);return _&&g.unshift([A,_]),N&&g.push([A,N]),u(g),w!=null&&(g=i(g,w)),g=r(g),g}function v(n,f){var w;if(!n)return[[S,f]];if(!f)return[[d,n]];var b=n.length>f.length?n:f,_=n.length>f.length?f:n,N=b.indexOf(_);if(N!=-1)return w=[[S,b.substring(0,N)],[A,_],[S,b.substring(N+_.length)]],n.length>f.length&&(w[0][0]=w[2][0]=d),w;if(_.length==1)return[[d,n],[S,f]];var g=e(n,f);if(g){var h=g[0],m=g[1],k=g[2],T=g[3],L=g[4],B=O(h,k),F=O(m,T);return B.concat([[A,L]],F)}return p(n,f)}function p(n,f){for(var w=n.length,b=f.length,_=Math.ceil((w+b)/2),N=_,g=2*_,h=new Array(g),m=new Array(g),k=0;k<g;k++)h[k]=-1,m[k]=-1;h[N+1]=0,m[N+1]=0;for(var T=w-b,L=T%2!=0,B=0,F=0,V=0,I=0,R=0;R<_;R++){for(var E=-R+B;E<=R-F;E+=2){var P=N+E,q;E==-R||E!=R&&h[P-1]<h[P+1]?q=h[P+1]:q=h[P-1]+1;for(var C=q-E;q<w&&C<b&&n.charAt(q)==f.charAt(C);)q++,C++;if(h[P]=q,q>w)F+=2;else if(C>b)B+=2;else if(L){var M=N+T-E;if(M>=0&&M<g&&m[M]!=-1){var x=w-m[M];if(q>=x)return c(n,f,q,C)}}}for(var D=-R+V;D<=R-I;D+=2){var M=N+D,x;D==-R||D!=R&&m[M-1]<m[M+1]?x=m[M+1]:x=m[M-1]+1;for(var U=x-D;x<w&&U<b&&n.charAt(w-x-1)==f.charAt(b-U-1);)x++,U++;if(m[M]=x,x>w)I+=2;else if(U>b)V+=2;else if(!L){var P=N+T-D;if(P>=0&&P<g&&h[P]!=-1){var q=h[P],C=N+q-P;if(x=w-x,q>=x)return c(n,f,q,C)}}}}return[[d,n],[S,f]]}function c(n,f,w,b){var _=n.substring(0,w),N=f.substring(0,b),g=n.substring(w),h=f.substring(b),m=O(_,N),k=O(g,h);return m.concat(k)}function o(n,f){if(!n||!f||n.charAt(0)!=f.charAt(0))return 0;for(var w=0,b=Math.min(n.length,f.length),_=b,N=0;w<_;)n.substring(N,_)==f.substring(N,_)?(w=_,N=w):b=_,_=Math.floor((b-w)/2+w);return _}function t(n,f){if(!n||!f||n.charAt(n.length-1)!=f.charAt(f.length-1))return 0;for(var w=0,b=Math.min(n.length,f.length),_=b,N=0;w<_;)n.substring(n.length-_,n.length-N)==f.substring(f.length-_,f.length-N)?(w=_,N=w):b=_,_=Math.floor((b-w)/2+w);return _}function e(n,f){var w=n.length>f.length?n:f,b=n.length>f.length?f:n;if(w.length<4||b.length*2<w.length)return null;function _(F,V,I){for(var R=F.substring(I,I+Math.floor(F.length/4)),E=-1,P="",q,C,M,x;(E=V.indexOf(R,E+1))!=-1;){var D=o(F.substring(I),V.substring(E)),U=t(F.substring(0,I),V.substring(0,E));P.length<U+D&&(P=V.substring(E-U,E)+V.substring(E,E+D),q=F.substring(0,I-U),C=F.substring(I+D),M=V.substring(0,E-U),x=V.substring(E+D))}return P.length*2>=F.length?[q,C,M,x,P]:null}var N=_(w,b,Math.ceil(w.length/4)),g=_(w,b,Math.ceil(w.length/2)),h;if(!N&&!g)return null;g?N?h=N[4].length>g[4].length?N:g:h=g:h=N;var m,k,T,L;n.length>f.length?(m=h[0],k=h[1],T=h[2],L=h[3]):(T=h[0],L=h[1],m=h[2],k=h[3]);var B=h[4];return[m,k,T,L,B]}function u(n){n.push([A,""]);for(var f=0,w=0,b=0,_="",N="",g;f<n.length;)switch(n[f][0]){case S:b++,N+=n[f][1],f++;break;case d:w++,_+=n[f][1],f++;break;case A:w+b>1?(w!==0&&b!==0&&(g=o(N,_),g!==0&&(f-w-b>0&&n[f-w-b-1][0]==A?n[f-w-b-1][1]+=N.substring(0,g):(n.splice(0,0,[A,N.substring(0,g)]),f++),N=N.substring(g),_=_.substring(g)),g=t(N,_),g!==0&&(n[f][1]=N.substring(N.length-g)+n[f][1],N=N.substring(0,N.length-g),_=_.substring(0,_.length-g))),w===0?n.splice(f-b,w+b,[S,N]):b===0?n.splice(f-w,w+b,[d,_]):n.splice(f-w-b,w+b,[d,_],[S,N]),f=f-w-b+(w?1:0)+(b?1:0)+1):f!==0&&n[f-1][0]==A?(n[f-1][1]+=n[f][1],n.splice(f,1)):f++,b=0,w=0,_="",N="";break}n[n.length-1][1]===""&&n.pop();var h=!1;for(f=1;f<n.length-1;)n[f-1][0]==A&&n[f+1][0]==A&&(n[f][1].substring(n[f][1].length-n[f-1][1].length)==n[f-1][1]?(n[f][1]=n[f-1][1]+n[f][1].substring(0,n[f][1].length-n[f-1][1].length),n[f+1][1]=n[f-1][1]+n[f+1][1],n.splice(f-1,1),h=!0):n[f][1].substring(0,n[f+1][1].length)==n[f+1][1]&&(n[f-1][1]+=n[f+1][1],n[f][1]=n[f][1].substring(n[f+1][1].length)+n[f+1][1],n.splice(f+1,1),h=!0)),f++;h&&u(n)}var l=O;l.INSERT=S,l.DELETE=d,l.EQUAL=A,j.exports=l;function a(n,f){if(f===0)return[A,n];for(var w=0,b=0;b<n.length;b++){var _=n[b];if(_[0]===d||_[0]===A){var N=w+_[1].length;if(f===N)return[b+1,n];if(f<N){n=n.slice();var g=f-w,h=[_[0],_[1].slice(0,g)],m=[_[0],_[1].slice(g)];return n.splice(b,1,h,m),[b+1,n]}else w=N}}throw new Error("cursor_pos is out of bounds!")}function i(n,f){var w=a(n,f),b=w[1],_=w[0],N=b[_],g=b[_+1];if(N==null)return n;if(N[0]!==A)return n;if(g!=null&&N[1]+g[1]===g[1]+N[1])return b.splice(_,2,g,N),s(b,_,2);if(g!=null&&g[1].indexOf(N[1])===0){b.splice(_,2,[g[0],N[1]],[0,N[1]]);var h=g[1].slice(N[1].length);return h.length>0&&b.splice(_+2,0,[g[0],h]),s(b,_,3)}else return n}function r(n){for(var f=!1,w=function(g){return g.charCodeAt(0)>=56320&&g.charCodeAt(0)<=57343},b=function(g){return g.charCodeAt(g.length-1)>=55296&&g.charCodeAt(g.length-1)<=56319},_=2;_<n.length;_+=1)n[_-2][0]===A&&b(n[_-2][1])&&n[_-1][0]===d&&w(n[_-1][1])&&n[_][0]===S&&w(n[_][1])&&(f=!0,n[_-1][1]=n[_-2][1].slice(-1)+n[_-1][1],n[_][1]=n[_-2][1].slice(-1)+n[_][1],n[_-2][1]=n[_-2][1].slice(0,-1));if(!f)return n;for(var N=[],_=0;_<n.length;_+=1)n[_][1].length>0&&N.push(n[_]);return N}function s(n,f,w){for(var b=f+w-1;b>=0&&b>=f-1;b--)if(b+1<n.length){var _=n[b],N=n[b+1];_[0]===N[1]&&n.splice(b,2,[_[0],_[1]+N[1]])}return n}},function(j,y){y=j.exports=typeof Object.keys=="function"?Object.keys:d,y.shim=d;function d(S){var A=[];for(var O in S)A.push(O);return A}},function(j,y){var d=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";y=j.exports=d?S:A,y.supported=S;function S(O){return Object.prototype.toString.call(O)=="[object Arguments]"}y.unsupported=A;function A(O){return O&&typeof O=="object"&&typeof O.length=="number"&&Object.prototype.hasOwnProperty.call(O,"callee")&&!Object.prototype.propertyIsEnumerable.call(O,"callee")||!1}},function(j,y){var d=Object.prototype.hasOwnProperty,S="~";function A(){}Object.create&&(A.prototype=Object.create(null),new A().__proto__||(S=!1));function O(p,c,o){this.fn=p,this.context=c,this.once=o||!1}function v(){this._events=new A,this._eventsCount=0}v.prototype.eventNames=function(){var c=[],o,t;if(this._eventsCount===0)return c;for(t in o=this._events)d.call(o,t)&&c.push(S?t.slice(1):t);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(o)):c},v.prototype.listeners=function(c,o){var t=S?S+c:c,e=this._events[t];if(o)return!!e;if(!e)return[];if(e.fn)return[e.fn];for(var u=0,l=e.length,a=new Array(l);u<l;u++)a[u]=e[u].fn;return a},v.prototype.emit=function(c,o,t,e,u,l){var a=S?S+c:c;if(!this._events[a])return!1;var i=this._events[a],r=arguments.length,s,n;if(i.fn){switch(i.once&&this.removeListener(c,i.fn,void 0,!0),r){case 1:return i.fn.call(i.context),!0;case 2:return i.fn.call(i.context,o),!0;case 3:return i.fn.call(i.context,o,t),!0;case 4:return i.fn.call(i.context,o,t,e),!0;case 5:return i.fn.call(i.context,o,t,e,u),!0;case 6:return i.fn.call(i.context,o,t,e,u,l),!0}for(n=1,s=new Array(r-1);n<r;n++)s[n-1]=arguments[n];i.fn.apply(i.context,s)}else{var f=i.length,w;for(n=0;n<f;n++)switch(i[n].once&&this.removeListener(c,i[n].fn,void 0,!0),r){case 1:i[n].fn.call(i[n].context);break;case 2:i[n].fn.call(i[n].context,o);break;case 3:i[n].fn.call(i[n].context,o,t);break;case 4:i[n].fn.call(i[n].context,o,t,e);break;default:if(!s)for(w=1,s=new Array(r-1);w<r;w++)s[w-1]=arguments[w];i[n].fn.apply(i[n].context,s)}}return!0},v.prototype.on=function(c,o,t){var e=new O(o,t||this),u=S?S+c:c;return this._events[u]?this._events[u].fn?this._events[u]=[this._events[u],e]:this._events[u].push(e):(this._events[u]=e,this._eventsCount++),this},v.prototype.once=function(c,o,t){var e=new O(o,t||this,!0),u=S?S+c:c;return this._events[u]?this._events[u].fn?this._events[u]=[this._events[u],e]:this._events[u].push(e):(this._events[u]=e,this._eventsCount++),this},v.prototype.removeListener=function(c,o,t,e){var u=S?S+c:c;if(!this._events[u])return this;if(!o)return--this._eventsCount===0?this._events=new A:delete this._events[u],this;var l=this._events[u];if(l.fn)l.fn===o&&(!e||l.once)&&(!t||l.context===t)&&(--this._eventsCount===0?this._events=new A:delete this._events[u]);else{for(var a=0,i=[],r=l.length;a<r;a++)(l[a].fn!==o||e&&!l[a].once||t&&l[a].context!==t)&&i.push(l[a]);i.length?this._events[u]=i.length===1?i[0]:i:--this._eventsCount===0?this._events=new A:delete this._events[u]}return this},v.prototype.removeAllListeners=function(c){var o;return c?(o=S?S+c:c,this._events[o]&&(--this._eventsCount===0?this._events=new A:delete this._events[o])):(this._events=new A,this._eventsCount=0),this},v.prototype.off=v.prototype.removeListener,v.prototype.addListener=v.prototype.on,v.prototype.setMaxListeners=function(){return this},v.prefixed=S,v.EventEmitter=v,typeof j<"u"&&(j.exports=v)},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0}),y.matchText=y.matchSpacing=y.matchNewline=y.matchBlot=y.matchAttributor=y.default=void 0;var S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},A=function(){function $(z,W){var Y=[],Z=!0,tt=!1,et=void 0;try{for(var nt=z[Symbol.iterator](),ft;!(Z=(ft=nt.next()).done)&&(Y.push(ft.value),!(W&&Y.length===W));Z=!0);}catch(ct){tt=!0,et=ct}finally{try{!Z&&nt.return&&nt.return()}finally{if(tt)throw et}}return Y}return function(z,W){if(Array.isArray(z))return z;if(Symbol.iterator in Object(z))return $(z,W);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function $(z,W){for(var Y=0;Y<W.length;Y++){var Z=W[Y];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(z,Z.key,Z)}}return function(z,W,Y){return W&&$(z.prototype,W),Y&&$(z,Y),z}}(),v=d(3),p=m(v),c=d(2),o=m(c),t=d(0),e=m(t),u=d(5),l=m(u),a=d(10),i=m(a),r=d(9),s=m(r),n=d(36),f=d(37),w=d(13),b=m(w),_=d(26),N=d(38),g=d(39),h=d(40);function m($){return $&&$.__esModule?$:{default:$}}function k($,z,W){return z in $?Object.defineProperty($,z,{value:W,enumerable:!0,configurable:!0,writable:!0}):$[z]=W,$}function T($,z){if(!($ instanceof z))throw new TypeError("Cannot call a class as a function")}function L($,z){if(!$)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z&&(typeof z=="object"||typeof z=="function")?z:$}function B($,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof z);$.prototype=Object.create(z&&z.prototype,{constructor:{value:$,enumerable:!1,writable:!0,configurable:!0}}),z&&(Object.setPrototypeOf?Object.setPrototypeOf($,z):$.__proto__=z)}var F=(0,i.default)("quill:clipboard"),V="__ql-matcher",I=[[Node.TEXT_NODE,ut],[Node.TEXT_NODE,rt],["br",Q],[Node.ELEMENT_NODE,rt],[Node.ELEMENT_NODE,K],[Node.ELEMENT_NODE,it],[Node.ELEMENT_NODE,H],[Node.ELEMENT_NODE,st],["li",J],["b",U.bind(U,"bold")],["i",U.bind(U,"italic")],["style",X]],R=[n.AlignAttribute,N.DirectionAttribute].reduce(function($,z){return $[z.keyName]=z,$},{}),E=[n.AlignStyle,f.BackgroundStyle,_.ColorStyle,N.DirectionStyle,g.FontStyle,h.SizeStyle].reduce(function($,z){return $[z.keyName]=z,$},{}),P=function($){B(z,$);function z(W,Y){T(this,z);var Z=L(this,(z.__proto__||Object.getPrototypeOf(z)).call(this,W,Y));return Z.quill.root.addEventListener("paste",Z.onPaste.bind(Z)),Z.container=Z.quill.addContainer("ql-clipboard"),Z.container.setAttribute("contenteditable",!0),Z.container.setAttribute("tabindex",-1),Z.matchers=[],I.concat(Z.options.matchers).forEach(function(tt){var et=A(tt,2),nt=et[0],ft=et[1];!Y.matchVisual&&ft===it||Z.addMatcher(nt,ft)}),Z}return O(z,[{key:"addMatcher",value:function(Y,Z){this.matchers.push([Y,Z])}},{key:"convert",value:function(Y){if(typeof Y=="string")return this.container.innerHTML=Y.replace(/\>\r?\n +\</g,"><"),this.convert();var Z=this.quill.getFormat(this.quill.selection.savedRange.index);if(Z[b.default.blotName]){var tt=this.container.innerText;return this.container.innerHTML="",new o.default().insert(tt,k({},b.default.blotName,Z[b.default.blotName]))}var et=this.prepareMatching(),nt=A(et,2),ft=nt[0],ct=nt[1],ot=D(this.container,ft,ct);return M(ot,`
33
- `)&&ot.ops[ot.ops.length-1].attributes==null&&(ot=ot.compose(new o.default().retain(ot.length()-1).delete(1))),F.log("convert",this.container.innerHTML,ot),this.container.innerHTML="",ot}},{key:"dangerouslyPasteHTML",value:function(Y,Z){var tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:l.default.sources.API;if(typeof Y=="string")this.quill.setContents(this.convert(Y),Z),this.quill.setSelection(0,l.default.sources.SILENT);else{var et=this.convert(Z);this.quill.updateContents(new o.default().retain(Y).concat(et),tt),this.quill.setSelection(Y+et.length(),l.default.sources.SILENT)}}},{key:"onPaste",value:function(Y){var Z=this;if(!(Y.defaultPrevented||!this.quill.isEnabled())){var tt=this.quill.getSelection(),et=new o.default().retain(tt.index),nt=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(l.default.sources.SILENT),setTimeout(function(){et=et.concat(Z.convert()).delete(tt.length),Z.quill.updateContents(et,l.default.sources.USER),Z.quill.setSelection(et.length()-tt.length,l.default.sources.SILENT),Z.quill.scrollingContainer.scrollTop=nt,Z.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var Y=this,Z=[],tt=[];return this.matchers.forEach(function(et){var nt=A(et,2),ft=nt[0],ct=nt[1];switch(ft){case Node.TEXT_NODE:tt.push(ct);break;case Node.ELEMENT_NODE:Z.push(ct);break;default:[].forEach.call(Y.container.querySelectorAll(ft),function(ot){ot[V]=ot[V]||[],ot[V].push(ct)});break}}),[Z,tt]}}]),z}(s.default);P.DEFAULTS={matchers:[],matchVisual:!0};function q($,z,W){return(typeof z>"u"?"undefined":S(z))==="object"?Object.keys(z).reduce(function(Y,Z){return q(Y,Z,z[Z])},$):$.reduce(function(Y,Z){return Z.attributes&&Z.attributes[z]?Y.push(Z):Y.insert(Z.insert,(0,p.default)({},k({},z,W),Z.attributes))},new o.default)}function C($){if($.nodeType!==Node.ELEMENT_NODE)return{};var z="__ql-computed-style";return $[z]||($[z]=window.getComputedStyle($))}function M($,z){for(var W="",Y=$.ops.length-1;Y>=0&&W.length<z.length;--Y){var Z=$.ops[Y];if(typeof Z.insert!="string")break;W=Z.insert+W}return W.slice(-1*z.length)===z}function x($){if($.childNodes.length===0)return!1;var z=C($);return["block","list-item"].indexOf(z.display)>-1}function D($,z,W){return $.nodeType===$.TEXT_NODE?W.reduce(function(Y,Z){return Z($,Y)},new o.default):$.nodeType===$.ELEMENT_NODE?[].reduce.call($.childNodes||[],function(Y,Z){var tt=D(Z,z,W);return Z.nodeType===$.ELEMENT_NODE&&(tt=z.reduce(function(et,nt){return nt(Z,et)},tt),tt=(Z[V]||[]).reduce(function(et,nt){return nt(Z,et)},tt)),Y.concat(tt)},new o.default):new o.default}function U($,z,W){return q(W,$,!0)}function H($,z){var W=e.default.Attributor.Attribute.keys($),Y=e.default.Attributor.Class.keys($),Z=e.default.Attributor.Style.keys($),tt={};return W.concat(Y).concat(Z).forEach(function(et){var nt=e.default.query(et,e.default.Scope.ATTRIBUTE);nt!=null&&(tt[nt.attrName]=nt.value($),tt[nt.attrName])||(nt=R[et],nt!=null&&(nt.attrName===et||nt.keyName===et)&&(tt[nt.attrName]=nt.value($)||void 0),nt=E[et],nt!=null&&(nt.attrName===et||nt.keyName===et)&&(nt=E[et],tt[nt.attrName]=nt.value($)||void 0))}),Object.keys(tt).length>0&&(z=q(z,tt)),z}function K($,z){var W=e.default.query($);if(W==null)return z;if(W.prototype instanceof e.default.Embed){var Y={},Z=W.value($);Z!=null&&(Y[W.blotName]=Z,z=new o.default().insert(Y,W.formats($)))}else typeof W.formats=="function"&&(z=q(z,W.blotName,W.formats($)));return z}function Q($,z){return M(z,`
34
- `)||z.insert(`
35
- `),z}function X(){return new o.default}function J($,z){var W=e.default.query($);if(W==null||W.blotName!=="list-item"||!M(z,`
36
- `))return z;for(var Y=-1,Z=$.parentNode;!Z.classList.contains("ql-clipboard");)(e.default.query(Z)||{}).blotName==="list"&&(Y+=1),Z=Z.parentNode;return Y<=0?z:z.compose(new o.default().retain(z.length()-1).retain(1,{indent:Y}))}function rt($,z){return M(z,`
37
- `)||(x($)||z.length()>0&&$.nextSibling&&x($.nextSibling))&&z.insert(`
38
- `),z}function it($,z){if(x($)&&$.nextElementSibling!=null&&!M(z,`
39
-
40
- `)){var W=$.offsetHeight+parseFloat(C($).marginTop)+parseFloat(C($).marginBottom);$.nextElementSibling.offsetTop>$.offsetTop+W*1.5&&z.insert(`
41
- `)}return z}function st($,z){var W={},Y=$.style||{};return Y.fontStyle&&C($).fontStyle==="italic"&&(W.italic=!0),Y.fontWeight&&(C($).fontWeight.startsWith("bold")||parseInt(C($).fontWeight)>=700)&&(W.bold=!0),Object.keys(W).length>0&&(z=q(z,W)),parseFloat(Y.textIndent||0)>0&&(z=new o.default().insert(" ").concat(z)),z}function ut($,z){var W=$.data;if($.parentNode.tagName==="O:P")return z.insert(W.trim());if(W.trim().length===0&&$.parentNode.classList.contains("ql-clipboard"))return z;if(!C($.parentNode).whiteSpace.startsWith("pre")){var Y=function(tt,et){return et=et.replace(/[^\u00a0]/g,""),et.length<1&&tt?" ":et};W=W.replace(/\r\n/g," ").replace(/\n/g," "),W=W.replace(/\s\s+/g,Y.bind(Y,!0)),($.previousSibling==null&&x($.parentNode)||$.previousSibling!=null&&x($.previousSibling))&&(W=W.replace(/^\s+/,Y.bind(Y,!1))),($.nextSibling==null&&x($.parentNode)||$.nextSibling!=null&&x($.nextSibling))&&(W=W.replace(/\s+$/,Y.bind(Y,!1)))}return z.insert(W)}y.default=P,y.matchAttributor=H,y.matchBlot=K,y.matchNewline=rt,y.matchSpacing=it,y.matchText=ut},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0});var S=function(){function u(l,a){for(var i=0;i<a.length;i++){var r=a[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(l,r.key,r)}}return function(l,a,i){return a&&u(l.prototype,a),i&&u(l,i),l}}(),A=function u(l,a,i){l===null&&(l=Function.prototype);var r=Object.getOwnPropertyDescriptor(l,a);if(r===void 0){var s=Object.getPrototypeOf(l);return s===null?void 0:u(s,a,i)}else{if("value"in r)return r.value;var n=r.get;return n===void 0?void 0:n.call(i)}},O=d(6),v=p(O);function p(u){return u&&u.__esModule?u:{default:u}}function c(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:u}function t(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}var e=function(u){t(l,u);function l(){return c(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return S(l,[{key:"optimize",value:function(i){A(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"optimize",this).call(this,i),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return A(l.__proto__||Object.getPrototypeOf(l),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),l}(v.default);e.blotName="bold",e.tagName=["STRONG","B"],y.default=e},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0}),y.addControls=y.default=void 0;var S=function(){function h(m,k){var T=[],L=!0,B=!1,F=void 0;try{for(var V=m[Symbol.iterator](),I;!(L=(I=V.next()).done)&&(T.push(I.value),!(k&&T.length===k));L=!0);}catch(R){B=!0,F=R}finally{try{!L&&V.return&&V.return()}finally{if(B)throw F}}return T}return function(m,k){if(Array.isArray(m))return m;if(Symbol.iterator in Object(m))return h(m,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),A=function(){function h(m,k){for(var T=0;T<k.length;T++){var L=k[T];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(m,L.key,L)}}return function(m,k,T){return k&&h(m.prototype,k),T&&h(m,T),m}}(),O=d(2),v=i(O),p=d(0),c=i(p),o=d(5),t=i(o),e=d(10),u=i(e),l=d(9),a=i(l);function i(h){return h&&h.__esModule?h:{default:h}}function r(h,m,k){return m in h?Object.defineProperty(h,m,{value:k,enumerable:!0,configurable:!0,writable:!0}):h[m]=k,h}function s(h,m){if(!(h instanceof m))throw new TypeError("Cannot call a class as a function")}function n(h,m){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:h}function f(h,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);h.prototype=Object.create(m&&m.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(h,m):h.__proto__=m)}var w=(0,u.default)("quill:toolbar"),b=function(h){f(m,h);function m(k,T){s(this,m);var L=n(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,k,T));if(Array.isArray(L.options.container)){var B=document.createElement("div");N(B,L.options.container),k.container.parentNode.insertBefore(B,k.container),L.container=B}else typeof L.options.container=="string"?L.container=document.querySelector(L.options.container):L.container=L.options.container;if(!(L.container instanceof HTMLElement)){var F;return F=w.error("Container required for toolbar",L.options),n(L,F)}return L.container.classList.add("ql-toolbar"),L.controls=[],L.handlers={},Object.keys(L.options.handlers).forEach(function(V){L.addHandler(V,L.options.handlers[V])}),[].forEach.call(L.container.querySelectorAll("button, select"),function(V){L.attach(V)}),L.quill.on(t.default.events.EDITOR_CHANGE,function(V,I){V===t.default.events.SELECTION_CHANGE&&L.update(I)}),L.quill.on(t.default.events.SCROLL_OPTIMIZE,function(){var V=L.quill.selection.getRange(),I=S(V,1),R=I[0];L.update(R)}),L}return A(m,[{key:"addHandler",value:function(T,L){this.handlers[T]=L}},{key:"attach",value:function(T){var L=this,B=[].find.call(T.classList,function(V){return V.indexOf("ql-")===0});if(!!B){if(B=B.slice(3),T.tagName==="BUTTON"&&T.setAttribute("type","button"),this.handlers[B]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[B]==null){w.warn("ignoring attaching to disabled format",B,T);return}if(c.default.query(B)==null){w.warn("ignoring attaching to nonexistent format",B,T);return}}var F=T.tagName==="SELECT"?"change":"click";T.addEventListener(F,function(V){var I=void 0;if(T.tagName==="SELECT"){if(T.selectedIndex<0)return;var R=T.options[T.selectedIndex];R.hasAttribute("selected")?I=!1:I=R.value||!1}else T.classList.contains("ql-active")?I=!1:I=T.value||!T.hasAttribute("value"),V.preventDefault();L.quill.focus();var E=L.quill.selection.getRange(),P=S(E,1),q=P[0];if(L.handlers[B]!=null)L.handlers[B].call(L,I);else if(c.default.query(B).prototype instanceof c.default.Embed){if(I=prompt("Enter "+B),!I)return;L.quill.updateContents(new v.default().retain(q.index).delete(q.length).insert(r({},B,I)),t.default.sources.USER)}else L.quill.format(B,I,t.default.sources.USER);L.update(q)}),this.controls.push([B,T])}}},{key:"update",value:function(T){var L=T==null?{}:this.quill.getFormat(T);this.controls.forEach(function(B){var F=S(B,2),V=F[0],I=F[1];if(I.tagName==="SELECT"){var R=void 0;if(T==null)R=null;else if(L[V]==null)R=I.querySelector("option[selected]");else if(!Array.isArray(L[V])){var E=L[V];typeof E=="string"&&(E=E.replace(/\"/g,'\\"')),R=I.querySelector('option[value="'+E+'"]')}R==null?(I.value="",I.selectedIndex=-1):R.selected=!0}else if(T==null)I.classList.remove("ql-active");else if(I.hasAttribute("value")){var P=L[V]===I.getAttribute("value")||L[V]!=null&&L[V].toString()===I.getAttribute("value")||L[V]==null&&!I.getAttribute("value");I.classList.toggle("ql-active",P)}else I.classList.toggle("ql-active",L[V]!=null)})}}]),m}(a.default);b.DEFAULTS={};function _(h,m,k){var T=document.createElement("button");T.setAttribute("type","button"),T.classList.add("ql-"+m),k!=null&&(T.value=k),h.appendChild(T)}function N(h,m){Array.isArray(m[0])||(m=[m]),m.forEach(function(k){var T=document.createElement("span");T.classList.add("ql-formats"),k.forEach(function(L){if(typeof L=="string")_(T,L);else{var B=Object.keys(L)[0],F=L[B];Array.isArray(F)?g(T,B,F):_(T,B,F)}}),h.appendChild(T)})}function g(h,m,k){var T=document.createElement("select");T.classList.add("ql-"+m),k.forEach(function(L){var B=document.createElement("option");L!==!1?B.setAttribute("value",L):B.setAttribute("selected","selected"),T.appendChild(B)}),h.appendChild(T)}b.DEFAULTS={container:null,handlers:{clean:function(){var m=this,k=this.quill.getSelection();if(k!=null)if(k.length==0){var T=this.quill.getFormat();Object.keys(T).forEach(function(L){c.default.query(L,c.default.Scope.INLINE)!=null&&m.quill.format(L,!1)})}else this.quill.removeFormat(k,t.default.sources.USER)},direction:function(m){var k=this.quill.getFormat().align;m==="rtl"&&k==null?this.quill.format("align","right",t.default.sources.USER):!m&&k==="right"&&this.quill.format("align",!1,t.default.sources.USER),this.quill.format("direction",m,t.default.sources.USER)},indent:function(m){var k=this.quill.getSelection(),T=this.quill.getFormat(k),L=parseInt(T.indent||0);if(m==="+1"||m==="-1"){var B=m==="+1"?1:-1;T.direction==="rtl"&&(B*=-1),this.quill.format("indent",L+B,t.default.sources.USER)}},link:function(m){m===!0&&(m=prompt("Enter link URL:")),this.quill.format("link",m,t.default.sources.USER)},list:function(m){var k=this.quill.getSelection(),T=this.quill.getFormat(k);m==="check"?T.list==="checked"||T.list==="unchecked"?this.quill.format("list",!1,t.default.sources.USER):this.quill.format("list","unchecked",t.default.sources.USER):this.quill.format("list",m,t.default.sources.USER)}}},y.default=b,y.addControls=N},function(j,y){j.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(j,y,d){Object.defineProperty(y,"__esModule",{value:!0});var S=function(){function u(l,a){for(var i=0;i<a.length;i++){var r=a[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(l,r.key,r)}}return function(l,a,i){return a&&u(l.prototype,a),i&&u(l,i),l}}(),A=function u(l,a,i){l===null&&(l=Function.prototype);var r=Object.getOwnPropertyDescriptor(l,a);if(r===void 0){var s=Object.getPrototypeOf(l);return s===null?void 0:u(s,a,i)}else{if("value"in r)return r.value;var n=r.get;return n===void 0?void 0:n.call(i)}},O=d(28),v=p(O);function p(u){return u&&u.__esModule?u:{default:u}}function c(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:u}function t(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}var e=function(u){t(l,u);function l(a,i){c(this,l);var r=o(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,a));return r.label.innerHTML=i,r.container.classList.add("ql-color-picker"),[].slice.call(r.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(s){s.classList.add("ql-primary")}),r}return S(l,[{key:"buildItem",value:function(i){var r=A(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"buildItem",this).call(this,i);return r.style.backgroundColor=i.getAttribute("value")||"",r}},{key:"selectItem",value:function(i,r){A(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"selectItem",this).call(this,i,r);var s=this.label.querySelector(".ql-color-label"),n=i&&i.getAttribute("data-value")||"";s&&(s.tagName==="line"?s.style.stroke=n:s.style.fill=n)}}]),l}(v.default);y.default=e},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0});var S=function(){function u(l,a){for(var i=0;i<a.length;i++){var r=a[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(l,r.key,r)}}return function(l,a,i){return a&&u(l.prototype,a),i&&u(l,i),l}}(),A=function u(l,a,i){l===null&&(l=Function.prototype);var r=Object.getOwnPropertyDescriptor(l,a);if(r===void 0){var s=Object.getPrototypeOf(l);return s===null?void 0:u(s,a,i)}else{if("value"in r)return r.value;var n=r.get;return n===void 0?void 0:n.call(i)}},O=d(28),v=p(O);function p(u){return u&&u.__esModule?u:{default:u}}function c(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:u}function t(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}var e=function(u){t(l,u);function l(a,i){c(this,l);var r=o(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,a));return r.container.classList.add("ql-icon-picker"),[].forEach.call(r.container.querySelectorAll(".ql-picker-item"),function(s){s.innerHTML=i[s.getAttribute("data-value")||""]}),r.defaultItem=r.container.querySelector(".ql-selected"),r.selectItem(r.defaultItem),r}return S(l,[{key:"selectItem",value:function(i,r){A(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"selectItem",this).call(this,i,r),i=i||this.defaultItem,this.label.innerHTML=i.innerHTML}}]),l}(v.default);y.default=e},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0});var S=function(){function v(p,c){for(var o=0;o<c.length;o++){var t=c[o];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(p,t.key,t)}}return function(p,c,o){return c&&v(p.prototype,c),o&&v(p,o),p}}();function A(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}var O=function(){function v(p,c){var o=this;A(this,v),this.quill=p,this.boundsContainer=c||document.body,this.root=p.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 S(v,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(c){var o=c.left+c.width/2-this.root.offsetWidth/2,t=c.bottom+this.quill.root.scrollTop;this.root.style.left=o+"px",this.root.style.top=t+"px",this.root.classList.remove("ql-flip");var e=this.boundsContainer.getBoundingClientRect(),u=this.root.getBoundingClientRect(),l=0;if(u.right>e.right&&(l=e.right-u.right,this.root.style.left=o+l+"px"),u.left<e.left&&(l=e.left-u.left,this.root.style.left=o+l+"px"),u.bottom>e.bottom){var a=u.bottom-u.top,i=c.bottom-c.top+a;this.root.style.top=t-i+"px",this.root.classList.add("ql-flip")}return l}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),v}();y.default=O},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0});var S=function(){function g(h,m){var k=[],T=!0,L=!1,B=void 0;try{for(var F=h[Symbol.iterator](),V;!(T=(V=F.next()).done)&&(k.push(V.value),!(m&&k.length===m));T=!0);}catch(I){L=!0,B=I}finally{try{!T&&F.return&&F.return()}finally{if(L)throw B}}return k}return function(h,m){if(Array.isArray(h))return h;if(Symbol.iterator in Object(h))return g(h,m);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),A=function g(h,m,k){h===null&&(h=Function.prototype);var T=Object.getOwnPropertyDescriptor(h,m);if(T===void 0){var L=Object.getPrototypeOf(h);return L===null?void 0:g(L,m,k)}else{if("value"in T)return T.value;var B=T.get;return B===void 0?void 0:B.call(k)}},O=function(){function g(h,m){for(var k=0;k<m.length;k++){var T=m[k];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(h,T.key,T)}}return function(h,m,k){return m&&g(h.prototype,m),k&&g(h,k),h}}(),v=d(3),p=s(v),c=d(8),o=s(c),t=d(43),e=s(t),u=d(27),l=s(u),a=d(15),i=d(41),r=s(i);function s(g){return g&&g.__esModule?g:{default:g}}function n(g,h){if(!(g instanceof h))throw new TypeError("Cannot call a class as a function")}function f(g,h){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:g}function w(g,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);g.prototype=Object.create(h&&h.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(g,h):g.__proto__=h)}var b=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],_=function(g){w(h,g);function h(m,k){n(this,h),k.modules.toolbar!=null&&k.modules.toolbar.container==null&&(k.modules.toolbar.container=b);var T=f(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,m,k));return T.quill.container.classList.add("ql-snow"),T}return O(h,[{key:"extendToolbar",value:function(k){k.container.classList.add("ql-snow"),this.buildButtons([].slice.call(k.container.querySelectorAll("button")),r.default),this.buildPickers([].slice.call(k.container.querySelectorAll("select")),r.default),this.tooltip=new N(this.quill,this.options.bounds),k.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(T,L){k.handlers.link.call(k,!L.format.link)})}}]),h}(e.default);_.DEFAULTS=(0,p.default)(!0,{},e.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(h){if(h){var m=this.quill.getSelection();if(m==null||m.length==0)return;var k=this.quill.getText(m);/^\S+@\S+\.\S+$/.test(k)&&k.indexOf("mailto:")!==0&&(k="mailto:"+k);var T=this.quill.theme.tooltip;T.edit("link",k)}else this.quill.format("link",!1)}}}}});var N=function(g){w(h,g);function h(m,k){n(this,h);var T=f(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,m,k));return T.preview=T.root.querySelector("a.ql-preview"),T}return O(h,[{key:"listen",value:function(){var k=this;A(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(T){k.root.classList.contains("ql-editing")?k.save():k.edit("link",k.preview.textContent),T.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(T){if(k.linkRange!=null){var L=k.linkRange;k.restoreFocus(),k.quill.formatText(L,"link",!1,o.default.sources.USER),delete k.linkRange}T.preventDefault(),k.hide()}),this.quill.on(o.default.events.SELECTION_CHANGE,function(T,L,B){if(T!=null){if(T.length===0&&B===o.default.sources.USER){var F=k.quill.scroll.descendant(l.default,T.index),V=S(F,2),I=V[0],R=V[1];if(I!=null){k.linkRange=new a.Range(T.index-R,I.length());var E=l.default.formats(I.domNode);k.preview.textContent=E,k.preview.setAttribute("href",E),k.show(),k.position(k.quill.getBounds(k.linkRange));return}}else delete k.linkRange;k.hide()}})}},{key:"show",value:function(){A(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),h}(t.BaseTooltip);N.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(""),y.default=_},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0});var S=d(29),A=Z(S),O=d(36),v=d(38),p=d(64),c=d(65),o=Z(c),t=d(66),e=Z(t),u=d(67),l=Z(u),a=d(37),i=d(26),r=d(39),s=d(40),n=d(56),f=Z(n),w=d(68),b=Z(w),_=d(27),N=Z(_),g=d(69),h=Z(g),m=d(70),k=Z(m),T=d(71),L=Z(T),B=d(72),F=Z(B),V=d(73),I=Z(V),R=d(13),E=Z(R),P=d(74),q=Z(P),C=d(75),M=Z(C),x=d(57),D=Z(x),U=d(41),H=Z(U),K=d(28),Q=Z(K),X=d(59),J=Z(X),rt=d(60),it=Z(rt),st=d(61),ut=Z(st),$=d(108),z=Z($),W=d(62),Y=Z(W);function Z(tt){return tt&&tt.__esModule?tt:{default:tt}}A.default.register({"attributors/attribute/direction":v.DirectionAttribute,"attributors/class/align":O.AlignClass,"attributors/class/background":a.BackgroundClass,"attributors/class/color":i.ColorClass,"attributors/class/direction":v.DirectionClass,"attributors/class/font":r.FontClass,"attributors/class/size":s.SizeClass,"attributors/style/align":O.AlignStyle,"attributors/style/background":a.BackgroundStyle,"attributors/style/color":i.ColorStyle,"attributors/style/direction":v.DirectionStyle,"attributors/style/font":r.FontStyle,"attributors/style/size":s.SizeStyle},!0),A.default.register({"formats/align":O.AlignClass,"formats/direction":v.DirectionClass,"formats/indent":p.IndentClass,"formats/background":a.BackgroundStyle,"formats/color":i.ColorStyle,"formats/font":r.FontClass,"formats/size":s.SizeClass,"formats/blockquote":o.default,"formats/code-block":E.default,"formats/header":e.default,"formats/list":l.default,"formats/bold":f.default,"formats/code":R.Code,"formats/italic":b.default,"formats/link":N.default,"formats/script":h.default,"formats/strike":k.default,"formats/underline":L.default,"formats/image":F.default,"formats/video":I.default,"formats/list/item":u.ListItem,"modules/formula":q.default,"modules/syntax":M.default,"modules/toolbar":D.default,"themes/bubble":z.default,"themes/snow":Y.default,"ui/icons":H.default,"ui/picker":Q.default,"ui/icon-picker":it.default,"ui/color-picker":J.default,"ui/tooltip":ut.default},!0),y.default=A.default},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0}),y.IndentClass=void 0;var S=function(){function l(a,i){for(var r=0;r<i.length;r++){var s=i[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(a,s.key,s)}}return function(a,i,r){return i&&l(a.prototype,i),r&&l(a,r),a}}(),A=function l(a,i,r){a===null&&(a=Function.prototype);var s=Object.getOwnPropertyDescriptor(a,i);if(s===void 0){var n=Object.getPrototypeOf(a);return n===null?void 0:l(n,i,r)}else{if("value"in s)return s.value;var f=s.get;return f===void 0?void 0:f.call(r)}},O=d(0),v=p(O);function p(l){return l&&l.__esModule?l:{default:l}}function c(l,a){if(!(l instanceof a))throw new TypeError("Cannot call a class as a function")}function o(l,a){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:l}function t(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);l.prototype=Object.create(a&&a.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(l,a):l.__proto__=a)}var e=function(l){t(a,l);function a(){return c(this,a),o(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return S(a,[{key:"add",value:function(r,s){if(s==="+1"||s==="-1"){var n=this.value(r)||0;s=s==="+1"?n+1:n-1}return s===0?(this.remove(r),!0):A(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"add",this).call(this,r,s)}},{key:"canAdd",value:function(r,s){return A(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"canAdd",this).call(this,r,s)||A(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"canAdd",this).call(this,r,parseInt(s))}},{key:"value",value:function(r){return parseInt(A(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"value",this).call(this,r))||void 0}}]),a}(v.default.Attributor.Class),u=new e("indent","ql-indent",{scope:v.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});y.IndentClass=u},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0});var S=d(4),A=O(S);function O(t){return t&&t.__esModule?t:{default:t}}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function c(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var o=function(t){c(e,t);function e(){return v(this,e),p(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return e}(A.default);o.blotName="blockquote",o.tagName="blockquote",y.default=o},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0});var S=function(){function e(u,l){for(var a=0;a<l.length;a++){var i=l[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(u,i.key,i)}}return function(u,l,a){return l&&e(u.prototype,l),a&&e(u,a),u}}(),A=d(4),O=v(A);function v(e){return e&&e.__esModule?e:{default:e}}function p(e,u){if(!(e instanceof u))throw new TypeError("Cannot call a class as a function")}function c(e,u){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:e}function o(e,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);e.prototype=Object.create(u&&u.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(e,u):e.__proto__=u)}var t=function(e){o(u,e);function u(){return p(this,u),c(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return S(u,null,[{key:"formats",value:function(a){return this.tagName.indexOf(a.tagName)+1}}]),u}(O.default);t.blotName="header",t.tagName=["H1","H2","H3","H4","H5","H6"],y.default=t},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0}),y.default=y.ListItem=void 0;var S=function(){function n(f,w){for(var b=0;b<w.length;b++){var _=w[b];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(f,_.key,_)}}return function(f,w,b){return w&&n(f.prototype,w),b&&n(f,b),f}}(),A=function n(f,w,b){f===null&&(f=Function.prototype);var _=Object.getOwnPropertyDescriptor(f,w);if(_===void 0){var N=Object.getPrototypeOf(f);return N===null?void 0:n(N,w,b)}else{if("value"in _)return _.value;var g=_.get;return g===void 0?void 0:g.call(b)}},O=d(0),v=e(O),p=d(4),c=e(p),o=d(25),t=e(o);function e(n){return n&&n.__esModule?n:{default:n}}function u(n,f,w){return f in n?Object.defineProperty(n,f,{value:w,enumerable:!0,configurable:!0,writable:!0}):n[f]=w,n}function l(n,f){if(!(n instanceof f))throw new TypeError("Cannot call a class as a function")}function a(n,f){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:n}function i(n,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);n.prototype=Object.create(f&&f.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(n,f):n.__proto__=f)}var r=function(n){i(f,n);function f(){return l(this,f),a(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}return S(f,[{key:"format",value:function(b,_){b===s.blotName&&!_?this.replaceWith(v.default.create(this.statics.scope)):A(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"format",this).call(this,b,_)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():A(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(b,_){return this.parent.isolate(this.offset(this.parent),this.length()),b===this.parent.statics.blotName?(this.parent.replaceWith(b,_),this):(this.parent.unwrap(),A(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"replaceWith",this).call(this,b,_))}}],[{key:"formats",value:function(b){return b.tagName===this.tagName?void 0:A(f.__proto__||Object.getPrototypeOf(f),"formats",this).call(this,b)}}]),f}(c.default);r.blotName="list-item",r.tagName="LI";var s=function(n){i(f,n),S(f,null,[{key:"create",value:function(b){var _=b==="ordered"?"OL":"UL",N=A(f.__proto__||Object.getPrototypeOf(f),"create",this).call(this,_);return(b==="checked"||b==="unchecked")&&N.setAttribute("data-checked",b==="checked"),N}},{key:"formats",value:function(b){if(b.tagName==="OL")return"ordered";if(b.tagName==="UL")return b.hasAttribute("data-checked")?b.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function f(w){l(this,f);var b=a(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,w)),_=function(g){if(g.target.parentNode===w){var h=b.statics.formats(w),m=v.default.find(g.target);h==="checked"?m.format("list","unchecked"):h==="unchecked"&&m.format("list","checked")}};return w.addEventListener("touchstart",_),w.addEventListener("mousedown",_),b}return S(f,[{key:"format",value:function(b,_){this.children.length>0&&this.children.tail.format(b,_)}},{key:"formats",value:function(){return u({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(b,_){if(b instanceof r)A(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"insertBefore",this).call(this,b,_);else{var N=_==null?this.length():_.offset(this),g=this.split(N);g.parent.insertBefore(b,g)}}},{key:"optimize",value:function(b){A(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"optimize",this).call(this,b);var _=this.next;_!=null&&_.prev===this&&_.statics.blotName===this.statics.blotName&&_.domNode.tagName===this.domNode.tagName&&_.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(_.moveChildren(this),_.remove())}},{key:"replace",value:function(b){if(b.statics.blotName!==this.statics.blotName){var _=v.default.create(this.statics.defaultChild);b.moveChildren(_),this.appendChild(_)}A(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"replace",this).call(this,b)}}]),f}(t.default);s.blotName="list",s.scope=v.default.Scope.BLOCK_BLOT,s.tagName=["OL","UL"],s.defaultChild="list-item",s.allowedChildren=[r],y.ListItem=r,y.default=s},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0});var S=d(56),A=O(S);function O(t){return t&&t.__esModule?t:{default:t}}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function c(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var o=function(t){c(e,t);function e(){return v(this,e),p(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return e}(A.default);o.blotName="italic",o.tagName=["EM","I"],y.default=o},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0});var S=function(){function u(l,a){for(var i=0;i<a.length;i++){var r=a[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(l,r.key,r)}}return function(l,a,i){return a&&u(l.prototype,a),i&&u(l,i),l}}(),A=function u(l,a,i){l===null&&(l=Function.prototype);var r=Object.getOwnPropertyDescriptor(l,a);if(r===void 0){var s=Object.getPrototypeOf(l);return s===null?void 0:u(s,a,i)}else{if("value"in r)return r.value;var n=r.get;return n===void 0?void 0:n.call(i)}},O=d(6),v=p(O);function p(u){return u&&u.__esModule?u:{default:u}}function c(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:u}function t(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}var e=function(u){t(l,u);function l(){return c(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return S(l,null,[{key:"create",value:function(i){return i==="super"?document.createElement("sup"):i==="sub"?document.createElement("sub"):A(l.__proto__||Object.getPrototypeOf(l),"create",this).call(this,i)}},{key:"formats",value:function(i){if(i.tagName==="SUB")return"sub";if(i.tagName==="SUP")return"super"}}]),l}(v.default);e.blotName="script",e.tagName=["SUB","SUP"],y.default=e},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0});var S=d(6),A=O(S);function O(t){return t&&t.__esModule?t:{default:t}}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function c(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var o=function(t){c(e,t);function e(){return v(this,e),p(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return e}(A.default);o.blotName="strike",o.tagName="S",y.default=o},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0});var S=d(6),A=O(S);function O(t){return t&&t.__esModule?t:{default:t}}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function c(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var o=function(t){c(e,t);function e(){return v(this,e),p(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return e}(A.default);o.blotName="underline",o.tagName="U",y.default=o},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0});var S=function(){function a(i,r){for(var s=0;s<r.length;s++){var n=r[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(i,n.key,n)}}return function(i,r,s){return r&&a(i.prototype,r),s&&a(i,s),i}}(),A=function a(i,r,s){i===null&&(i=Function.prototype);var n=Object.getOwnPropertyDescriptor(i,r);if(n===void 0){var f=Object.getPrototypeOf(i);return f===null?void 0:a(f,r,s)}else{if("value"in n)return n.value;var w=n.get;return w===void 0?void 0:w.call(s)}},O=d(0),v=c(O),p=d(27);function c(a){return a&&a.__esModule?a:{default:a}}function o(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}function t(a,i){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:a}function e(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);a.prototype=Object.create(i&&i.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(a,i):a.__proto__=i)}var u=["alt","height","width"],l=function(a){e(i,a);function i(){return o(this,i),t(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return S(i,[{key:"format",value:function(s,n){u.indexOf(s)>-1?n?this.domNode.setAttribute(s,n):this.domNode.removeAttribute(s):A(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"format",this).call(this,s,n)}}],[{key:"create",value:function(s){var n=A(i.__proto__||Object.getPrototypeOf(i),"create",this).call(this,s);return typeof s=="string"&&n.setAttribute("src",this.sanitize(s)),n}},{key:"formats",value:function(s){return u.reduce(function(n,f){return s.hasAttribute(f)&&(n[f]=s.getAttribute(f)),n},{})}},{key:"match",value:function(s){return/\.(jpe?g|gif|png)$/.test(s)||/^data:image\/.+;base64/.test(s)}},{key:"sanitize",value:function(s){return(0,p.sanitize)(s,["http","https","data"])?s:"//:0"}},{key:"value",value:function(s){return s.getAttribute("src")}}]),i}(v.default.Embed);l.blotName="image",l.tagName="IMG",y.default=l},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0});var S=function(){function a(i,r){for(var s=0;s<r.length;s++){var n=r[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(i,n.key,n)}}return function(i,r,s){return r&&a(i.prototype,r),s&&a(i,s),i}}(),A=function a(i,r,s){i===null&&(i=Function.prototype);var n=Object.getOwnPropertyDescriptor(i,r);if(n===void 0){var f=Object.getPrototypeOf(i);return f===null?void 0:a(f,r,s)}else{if("value"in n)return n.value;var w=n.get;return w===void 0?void 0:w.call(s)}},O=d(4),v=d(27),p=c(v);function c(a){return a&&a.__esModule?a:{default:a}}function o(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}function t(a,i){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:a}function e(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);a.prototype=Object.create(i&&i.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(a,i):a.__proto__=i)}var u=["height","width"],l=function(a){e(i,a);function i(){return o(this,i),t(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return S(i,[{key:"format",value:function(s,n){u.indexOf(s)>-1?n?this.domNode.setAttribute(s,n):this.domNode.removeAttribute(s):A(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"format",this).call(this,s,n)}}],[{key:"create",value:function(s){var n=A(i.__proto__||Object.getPrototypeOf(i),"create",this).call(this,s);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(s)),n}},{key:"formats",value:function(s){return u.reduce(function(n,f){return s.hasAttribute(f)&&(n[f]=s.getAttribute(f)),n},{})}},{key:"sanitize",value:function(s){return p.default.sanitize(s)}},{key:"value",value:function(s){return s.getAttribute("src")}}]),i}(O.BlockEmbed);l.blotName="video",l.className="ql-video",l.tagName="IFRAME",y.default=l},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0}),y.default=y.FormulaBlot=void 0;var S=function(){function s(n,f){for(var w=0;w<f.length;w++){var b=f[w];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(n,b.key,b)}}return function(n,f,w){return f&&s(n.prototype,f),w&&s(n,w),n}}(),A=function s(n,f,w){n===null&&(n=Function.prototype);var b=Object.getOwnPropertyDescriptor(n,f);if(b===void 0){var _=Object.getPrototypeOf(n);return _===null?void 0:s(_,f,w)}else{if("value"in b)return b.value;var N=b.get;return N===void 0?void 0:N.call(w)}},O=d(35),v=e(O),p=d(5),c=e(p),o=d(9),t=e(o);function e(s){return s&&s.__esModule?s:{default:s}}function u(s,n){if(!(s instanceof n))throw new TypeError("Cannot call a class as a function")}function l(s,n){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:s}function a(s,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);s.prototype=Object.create(n&&n.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(s,n):s.__proto__=n)}var i=function(s){a(n,s);function n(){return u(this,n),l(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return S(n,null,[{key:"create",value:function(w){var b=A(n.__proto__||Object.getPrototypeOf(n),"create",this).call(this,w);return typeof w=="string"&&(window.katex.render(w,b,{throwOnError:!1,errorColor:"#f00"}),b.setAttribute("data-value",w)),b}},{key:"value",value:function(w){return w.getAttribute("data-value")}}]),n}(v.default);i.blotName="formula",i.className="ql-formula",i.tagName="SPAN";var r=function(s){a(n,s),S(n,null,[{key:"register",value:function(){c.default.register(i,!0)}}]);function n(){u(this,n);var f=l(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return f}return n}(t.default);y.FormulaBlot=i,y.default=r},function(j,y,d){Object.defineProperty(y,"__esModule",{value:!0}),y.default=y.CodeToken=y.CodeBlock=void 0;var S=function(){function w(b,_){for(var N=0;N<_.length;N++){var g=_[N];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(b,g.key,g)}}return function(b,_,N){return _&&w(b.prototype,_),N&&w(b,N),b}}(),A=function w(b,_,N){b===null&&(b=Function.prototype);var g=Object.getOwnPropertyDescriptor(b,_);if(g===void 0){var h=Object.getPrototypeOf(b);return h===null?void 0:w(h,_,N)}else{if("value"in g)return g.value;var m=g.get;return m===void 0?void 0:m.call(N)}},O=d(0),v=l(O),p=d(5),c=l(p),o=d(9),t=l(o),e=d(13),u=l(e);function l(w){return w&&w.__esModule?w:{default:w}}function a(w,b){if(!(w instanceof b))throw new TypeError("Cannot call a class as a function")}function i(w,b){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:w}function r(w,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);w.prototype=Object.create(b&&b.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(w,b):w.__proto__=b)}var s=function(w){r(b,w);function b(){return a(this,b),i(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return S(b,[{key:"replaceWith",value:function(N){this.domNode.textContent=this.domNode.textContent,this.attach(),A(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"replaceWith",this).call(this,N)}},{key:"highlight",value:function(N){var g=this.domNode.textContent;this.cachedText!==g&&((g.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=N(g),this.domNode.normalize(),this.attach()),this.cachedText=g)}}]),b}(u.default);s.className="ql-syntax";var n=new v.default.Attributor.Class("token","hljs",{scope:v.default.Scope.INLINE}),f=function(w){r(b,w),S(b,null,[{key:"register",value:function(){c.default.register(n,!0),c.default.register(s,!0)}}]);function b(_,N){a(this,b);var g=i(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,_,N));if(typeof g.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var h=null;return g.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(h),h=setTimeout(function(){g.highlight(),h=null},g.options.interval)}),g.highlight(),g}return S(b,[{key:"highlight",value:function(){var N=this;if(!this.quill.selection.composing){this.quill.update(c.default.sources.USER);var g=this.quill.getSelection();this.quill.scroll.descendants(s).forEach(function(h){h.highlight(N.options.highlight)}),this.quill.update(c.default.sources.SILENT),g!=null&&this.quill.setSelection(g,c.default.sources.SILENT)}}}]),b}(t.default);f.DEFAULTS={highlight:function(){return window.hljs==null?null:function(w){var b=window.hljs.highlightAuto(w);return b.value}}(),interval:1e3},y.CodeBlock=s,y.CodeToken=n,y.default=f},function(j,y){j.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(j,y){j.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(j,y){j.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(j,y){j.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(j,y){j.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(j,y){j.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(j,y){j.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(j,y){j.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(j,y){j.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(j,y){j.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(j,y){j.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(j,y){j.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(j,y){j.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(j,y){j.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(j,y){j.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(j,y){j.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(j,y){j.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(j,y){j.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(j,y){j.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(j,y){j.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(j,y){j.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(j,y){j.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(j,y){j.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(j,y){j.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(j,y){j.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(j,y){j.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(j,y){j.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(j,y){j.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(j,y){j.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(j,y){j.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(j,y){j.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(j,y){j.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(j,y,d){Object.defineProperty(y,"__esModule",{value:!0}),y.default=y.BubbleTooltip=void 0;var S=function b(_,N,g){_===null&&(_=Function.prototype);var h=Object.getOwnPropertyDescriptor(_,N);if(h===void 0){var m=Object.getPrototypeOf(_);return m===null?void 0:b(m,N,g)}else{if("value"in h)return h.value;var k=h.get;return k===void 0?void 0:k.call(g)}},A=function(){function b(_,N){for(var g=0;g<N.length;g++){var h=N[g];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(_,h.key,h)}}return function(_,N,g){return N&&b(_.prototype,N),g&&b(_,g),_}}(),O=d(3),v=a(O),p=d(8),c=a(p),o=d(43),t=a(o),e=d(15),u=d(41),l=a(u);function a(b){return b&&b.__esModule?b:{default:b}}function i(b,_){if(!(b instanceof _))throw new TypeError("Cannot call a class as a function")}function r(b,_){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:b}function s(b,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);b.prototype=Object.create(_&&_.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(b,_):b.__proto__=_)}var n=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],f=function(b){s(_,b);function _(N,g){i(this,_),g.modules.toolbar!=null&&g.modules.toolbar.container==null&&(g.modules.toolbar.container=n);var h=r(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,N,g));return h.quill.container.classList.add("ql-bubble"),h}return A(_,[{key:"extendToolbar",value:function(g){this.tooltip=new w(this.quill,this.options.bounds),this.tooltip.root.appendChild(g.container),this.buildButtons([].slice.call(g.container.querySelectorAll("button")),l.default),this.buildPickers([].slice.call(g.container.querySelectorAll("select")),l.default)}}]),_}(t.default);f.DEFAULTS=(0,v.default)(!0,{},t.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(_){_?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var w=function(b){s(_,b);function _(N,g){i(this,_);var h=r(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,N,g));return h.quill.on(c.default.events.EDITOR_CHANGE,function(m,k,T,L){if(m===c.default.events.SELECTION_CHANGE)if(k!=null&&k.length>0&&L===c.default.sources.USER){h.show(),h.root.style.left="0px",h.root.style.width="",h.root.style.width=h.root.offsetWidth+"px";var B=h.quill.getLines(k.index,k.length);if(B.length===1)h.position(h.quill.getBounds(k));else{var F=B[B.length-1],V=h.quill.getIndex(F),I=Math.min(F.length()-1,k.index+k.length-V),R=h.quill.getBounds(new e.Range(V,I));h.position(R)}}else document.activeElement!==h.textbox&&h.quill.hasFocus()&&h.hide()}),h}return A(_,[{key:"listen",value:function(){var g=this;S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){g.root.classList.remove("ql-editing")}),this.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!g.root.classList.contains("ql-hidden")){var h=g.quill.getSelection();h!=null&&g.position(g.quill.getBounds(h))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(g){var h=S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"position",this).call(this,g),m=this.root.querySelector(".ql-tooltip-arrow");if(m.style.marginLeft="",h===0)return h;m.style.marginLeft=-1*h-m.offsetWidth/2+"px"}}]),_}(o.BaseTooltip);w.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(""),y.BubbleTooltip=w,y.default=f},function(j,y,d){j.exports=d(63)}]).default})}(vt)),vt.exports}(function(lt,G){(function(j,y){lt.exports=y(Ot())})(mt.commonjsGlobal,function(j){return function(y){function d(A){if(S[A])return S[A].exports;var O=S[A]={i:A,l:!1,exports:{}};return y[A].call(O.exports,O,O.exports,d),O.l=!0,O.exports}var S={};return d.m=y,d.c=S,d.i=function(A){return A},d.d=function(A,O,v){d.o(A,O)||Object.defineProperty(A,O,{configurable:!1,enumerable:!0,get:v})},d.n=function(A){var O=A&&A.__esModule?function(){return A.default}:function(){return A};return d.d(O,"a",O),O},d.o=function(A,O){return Object.prototype.hasOwnProperty.call(A,O)},d.p="/",d(d.s=2)}([function(y,d){y.exports=j},function(y,d,S){Object.defineProperty(d,"__esModule",{value:!0});var A=S(4),O=S.n(A),v=S(6),p=S(5),c=p(O.a,v.a,!1,null,null,null);d.default=c.exports},function(y,d,S){function A(u){return u&&u.__esModule?u:{default:u}}Object.defineProperty(d,"__esModule",{value:!0}),d.install=d.quillEditor=d.Quill=void 0;var O=S(0),v=A(O),p=S(1),c=A(p),o=window.Quill||v.default,t=function(u,l){l&&(c.default.props.globalOptions.default=function(){return l}),u.component(c.default.name,c.default)},e={Quill:o,quillEditor:c.default,install:t};d.default=e,d.Quill=o,d.quillEditor=c.default,d.install=t},function(y,d,S){Object.defineProperty(d,"__esModule",{value:!0}),d.default={theme:"snow",boundary:document.body,modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"]]},placeholder:"Insert text here ...",readOnly:!1}},function(y,d,S){function A(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(d,"__esModule",{value:!0});var O=S(0),v=A(O),p=S(3),c=A(p),o=window.Quill||v.default;typeof Object.assign!="function"&&Object.defineProperty(Object,"assign",{value:function(t,e){if(t==null)throw new TypeError("Cannot convert undefined or null to object");for(var u=Object(t),l=1;l<arguments.length;l++){var a=arguments[l];if(a!=null)for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(u[i]=a[i])}return u},writable:!0,configurable:!0}),d.default={name:"quill-editor",data:function(){return{_options:{},_content:"",defaultOptions:c.default}},props:{content:String,value:String,disabled:{type:Boolean,default:!1},options:{type:Object,required:!1,default:function(){return{}}},globalOptions:{type:Object,required:!1,default:function(){return{}}}},mounted:function(){this.initialize()},beforeDestroy:function(){this.quill=null,delete this.quill},methods:{initialize:function(){var t=this;this.$el&&(this._options=Object.assign({},this.defaultOptions,this.globalOptions,this.options),this.quill=new o(this.$refs.editor,this._options),this.quill.enable(!1),(this.value||this.content)&&this.quill.pasteHTML(this.value||this.content),this.disabled||this.quill.enable(!0),this.quill.on("selection-change",function(e){e?t.$emit("focus",t.quill):t.$emit("blur",t.quill)}),this.quill.on("text-change",function(e,u,l){var a=t.$refs.editor.children[0].innerHTML,i=t.quill,r=t.quill.getText();a==="<p><br></p>"&&(a=""),t._content=a,t.$emit("input",t._content),t.$emit("change",{html:a,text:r,quill:i})}),this.$emit("ready",this.quill))}},watch:{content:function(t,e){this.quill&&(t&&t!==this._content?(this._content=t,this.quill.pasteHTML(t)):t||this.quill.setText(""))},value:function(t,e){this.quill&&(t&&t!==this._content?(this._content=t,this.quill.pasteHTML(t)):t||this.quill.setText(""))},disabled:function(t,e){this.quill&&this.quill.enable(!t)}}}},function(y,d){y.exports=function(S,A,O,v,p,c){var o,t=S=S||{},e=typeof S.default;e!=="object"&&e!=="function"||(o=S,t=S.default);var u=typeof t=="function"?t.options:t;A&&(u.render=A.render,u.staticRenderFns=A.staticRenderFns,u._compiled=!0),O&&(u.functional=!0),p&&(u._scopeId=p);var l;if(c?(l=function(r){r=r||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,r||typeof __VUE_SSR_CONTEXT__>"u"||(r=__VUE_SSR_CONTEXT__),v&&v.call(this,r),r&&r._registeredComponents&&r._registeredComponents.add(c)},u._ssrRegister=l):v&&(l=v),l){var a=u.functional,i=a?u.render:u.beforeCreate;a?(u._injectStyles=l,u.render=function(r,s){return l.call(s),i(r,s)}):u.beforeCreate=i?[].concat(i,l):[l]}return{esModule:o,exports:t,options:u}}},function(y,d,S){var A=function(){var p=this,c=p.$createElement,o=p._self._c||c;return o("div",{staticClass:"quill-editor"},[p._t("toolbar"),p._v(" "),o("div",{ref:"editor"})],2)},O=[],v={render:A,staticRenderFns:O};d.a=v}])})})(pt);const Et={props:{record:{type:Object,default:()=>({})},ruleFormData:{type:Object,required:!0}},components:{quillEditor:pt.exports.quillEditor},data(){return{}},computed:{editorOption(){return{placeholder:this.$i18nt(this.record.placeholderTransKey,this.record.placeholder)}},style(){return{height:`${this.record.height|300}px`}},disabled(){return this.record.disabled===void 0?!1:this.record.disabled}},methods:{onEditorBlur(){},onEditorFocus(){},onEditorChange(lt){this.$emit("change",lt.html)}},mounted(){this.$refs.vueQuillEditor.quill.enable(!1),this.$nextTick(()=>{setTimeout(()=>{this.$refs.vueQuillEditor.quill.blur(),this.$refs.vueQuillEditor.quill.enable(!0)},1e3)})}};var kt=function(){var G=this,j=G._self._c;return j("quillEditor",{ref:"vueQuillEditor",staticClass:"ql-editor-class",class:{chinesization:!0},style:G.style,attrs:{options:G.editorOption,disabled:G.disabled},on:{blur:function(y){return G.onEditorBlur(y)},focus:function(y){return G.onEditorFocus(y)},change:function(y){return G.onEditorChange(y)}},model:{value:G.ruleFormData[G.record.prop],callback:function(y){G.$set(G.ruleFormData,G.record.prop,y)},expression:"ruleFormData[record.prop]"}})},At=[],wt=gt.normalizeComponent(Et,kt,At,!1,null,"17f85232",null,null);const bt=wt.exports;function Nt(lt){return window.axios({url:"/email/sendEmail",method:"post",data:lt})}function Tt(lt){return window.axios({url:"/email/sendEmailHtml",method:"post",data:lt})}const xt={name:"GdEmail",props:{height:{type:Number,default:100}},components:{childEditor:bt},data(){return{confirmLoading:!1,editorContent:"",type:"1",simpleFormData:{email:"",subject:"",content:""},htmlFormData:{email:"",subject:"",content:""},htmlFormRecord:{prop:"content",disabled:!1},rules:{email:[{type:"email",message:this.$i18nt("gd.email.receivingEmailTip","\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1"),trigger:"change"},{required:!0,message:this.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),trigger:"change"}],subject:[{required:!0,message:this.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),trigger:"change"}],content:[{required:!0,message:this.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),trigger:"change"}]}}},methods:{onHandleTabChange(){this.type=="1"?this.$nextTick(()=>[this.$refs.simpleFormRef.clearValidate()]):this.$nextTick(()=>[this.$refs.htmlFormRef.clearValidate()])},changeEditor(lt){this.editorContent=lt,this.htmlFormData.content=lt},handleSubmitSimple(){this.confirmLoading=!0,this.$refs.simpleFormRef.validate(lt=>{lt?Nt({to:this.simpleFormData.email,title:this.simpleFormData.subject,content:this.simpleFormData.content}).then(G=>{G.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.confirmLoading=!1,this.$refs.simpleFormRef.resetFields()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+G.message)}).finally(G=>{this.confirmLoading=!1}):this.confirmLoading=!1})},handleSubmitHtml(){this.confirmLoading=!0,this.$refs.htmlFormRef.validate((lt,G)=>{console.log("details: ",G),lt?Tt({to:this.htmlFormData.email,title:this.htmlFormData.subject,content:this.htmlFormData.content}).then(j=>{j.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.confirmLoading=!1,this.editorContent="",this.$refs.htmlFormRef.resetFields()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+j.message)}).finally(j=>{this.confirmLoading=!1}):this.confirmLoading=!1})}}};var St=function(){var G=this,j=G._self._c;return j("div",{staticClass:"gd-base-body"},[j("el-card",{staticClass:"ant-card-bodys",attrs:{bordered:!1}},[j("el-tabs",{on:{"tab-click":G.onHandleTabChange},model:{value:G.type,callback:function(y){G.type=y},expression:"type"}},[G.$hasPerm("email:sendEmail")?j("el-tab-pane",{attrs:{name:"1",label:G.$i18nt("gd.email.sendEmail","\u53D1\u9001\u90AE\u4EF6")}},[j("el-form",{ref:"simpleFormRef",attrs:{model:G.simpleFormData,rules:G.rules,"label-position":"top"},nativeOn:{submit:function(y){y.preventDefault()}}},[j("el-form-item",{attrs:{label:G.$i18nt("gd.email.receivingEmail","\u6536\u4EF6\u90AE\u7BB1"),prop:"email"}},[j("el-input",{attrs:{placeholder:G.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:G.simpleFormData.email,callback:function(y){G.$set(G.simpleFormData,"email",y)},expression:"simpleFormData.email"}})],1),j("el-form-item",{attrs:{label:G.$i18nt("gd.email.subject","\u90AE\u4EF6\u6807\u9898"),prop:"subject"}},[j("el-input",{attrs:{placeholder:G.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:G.simpleFormData.subject,callback:function(y){G.$set(G.simpleFormData,"subject",y)},expression:"simpleFormData.subject"}})],1),j("el-form-item",{attrs:{label:G.$i18nt("gd.email.content","\u90AE\u4EF6\u5185\u5BB9"),prop:"content"}},[j("el-input",{attrs:{type:"textarea",rows:4,placeholder:G.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:G.simpleFormData.content,callback:function(y){G.$set(G.simpleFormData,"content",y)},expression:"simpleFormData.content"}})],1),j("el-form-item",{staticClass:"subForm-item"},[j("el-button",{attrs:{type:"primary",loading:G.confirmLoading},on:{click:G.handleSubmitSimple}},[G._v(" "+G._s(G.$i18nt("gd.email.sending","\u53D1\u9001"))+" ")])],1)],1)],1):G._e(),G.$hasPerm("email:sendEmailHtml")?j("el-tab-pane",{attrs:{name:"2",label:G.$i18nt("gd.email.htmlEmail","\u53D1\u9001Html\u90AE\u4EF6")}},[j("el-form",{ref:"htmlFormRef",attrs:{rules:G.rules,model:G.htmlFormData,"label-position":"top"},nativeOn:{submit:function(y){y.preventDefault()}}},[j("el-form-item",{attrs:{label:G.$i18nt("gd.email.receivingEmail","\u6536\u4EF6\u90AE\u7BB1"),prop:"email"}},[j("el-input",{attrs:{placeholder:G.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:G.htmlFormData.email,callback:function(y){G.$set(G.htmlFormData,"email",y)},expression:"htmlFormData.email"}})],1),j("el-form-item",{attrs:{label:G.$i18nt("gd.email.subject","\u90AE\u4EF6\u6807\u9898"),prop:"subject"}},[j("el-input",{attrs:{placeholder:G.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:G.htmlFormData.subject,callback:function(y){G.$set(G.htmlFormData,"subject",y)},expression:"htmlFormData.subject"}})],1),j("el-form-item",{attrs:{label:G.$i18nt("gd.email.content","\u90AE\u4EF6\u5185\u5BB9"),prop:"content"}},[j("childEditor",{attrs:{record:G.htmlFormRecord,ruleFormData:G.htmlFormData},on:{change:G.changeEditor}})],1),j("el-form-item",{staticClass:"subForm-item"},[j("el-button",{attrs:{type:"primary",loading:G.confirmLoading},on:{click:G.handleSubmitHtml}},[G._v(" "+G._s(G.$i18nt("gd.email.sending","\u53D1\u9001"))+" ")])],1)],1)],1):G._e()],1)],1)],1)},Pt=[],qt=gt.normalizeComponent(xt,St,Pt,!1,null,"c047ea98",null,null);const dt=qt.exports;dt.install=function(lt){lt.component(dt.name,dt)};exports.GDpackage=dt;exports.childEditor=bt;exports.vueQuillEditor=pt;