From cb188df1ae59900527732756c41f2ebb75715246 Mon Sep 17 00:00:00 2001 From: Manuel Cillero Date: Sun, 27 Jan 2019 13:45:20 +0100 Subject: [PATCH] =?UTF-8?q?Actualizaci=C3=B3n=20de=20CKEditor=204.7.1=20a?= =?UTF-8?q?=20la=20versi=C3=B3n=204.11.2=20full?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plugins/clipboard/dev/clipboard.html | 190 - .../plugins/clipboard/dev/console.js | 49 - .../plugins/clipboard/dev/dnd.html | 185 - .../plugins/clipboard/icons/copy-rtl.png | Bin 506 -> 0 bytes .../plugins/clipboard/icons/copy.png | Bin 506 -> 0 bytes .../plugins/clipboard/icons/cut-rtl.png | Bin 776 -> 0 bytes .../plugins/clipboard/icons/cut.png | Bin 776 -> 0 bytes .../clipboard/icons/hidpi/copy-rtl.png | Bin 759 -> 0 bytes .../plugins/clipboard/icons/hidpi/copy.png | Bin 759 -> 0 bytes .../plugins/clipboard/icons/hidpi/cut-rtl.png | Bin 1576 -> 0 bytes .../plugins/clipboard/icons/hidpi/cut.png | Bin 1576 -> 0 bytes .../clipboard/icons/hidpi/paste-rtl.png | Bin 854 -> 0 bytes .../plugins/clipboard/icons/hidpi/paste.png | Bin 854 -> 0 bytes .../plugins/clipboard/icons/paste-rtl.png | Bin 464 -> 0 bytes .../plugins/clipboard/icons/paste.png | Bin 464 -> 0 bytes .../plugins/clipboard/lang/af.js | 12 - .../plugins/clipboard/lang/ar.js | 12 - .../plugins/clipboard/lang/az.js | 12 - .../plugins/clipboard/lang/bg.js | 12 - .../plugins/clipboard/lang/bn.js | 12 - .../plugins/clipboard/lang/bs.js | 12 - .../plugins/clipboard/lang/ca.js | 12 - .../plugins/clipboard/lang/cs.js | 12 - .../plugins/clipboard/lang/cy.js | 12 - .../plugins/clipboard/lang/da.js | 12 - .../plugins/clipboard/lang/de-ch.js | 12 - .../plugins/clipboard/lang/de.js | 12 - .../plugins/clipboard/lang/el.js | 12 - .../plugins/clipboard/lang/en-au.js | 12 - .../plugins/clipboard/lang/en-ca.js | 12 - .../plugins/clipboard/lang/en-gb.js | 12 - .../plugins/clipboard/lang/en.js | 12 - .../plugins/clipboard/lang/eo.js | 12 - .../plugins/clipboard/lang/es-mx.js | 12 - .../plugins/clipboard/lang/es.js | 12 - .../plugins/clipboard/lang/et.js | 12 - .../plugins/clipboard/lang/eu.js | 12 - .../plugins/clipboard/lang/fa.js | 12 - .../plugins/clipboard/lang/fi.js | 12 - .../plugins/clipboard/lang/fo.js | 12 - .../plugins/clipboard/lang/fr-ca.js | 12 - .../plugins/clipboard/lang/fr.js | 12 - .../plugins/clipboard/lang/gl.js | 12 - .../plugins/clipboard/lang/gu.js | 12 - .../plugins/clipboard/lang/he.js | 12 - .../plugins/clipboard/lang/hi.js | 12 - .../plugins/clipboard/lang/hr.js | 12 - .../plugins/clipboard/lang/hu.js | 12 - .../plugins/clipboard/lang/id.js | 12 - .../plugins/clipboard/lang/is.js | 12 - .../plugins/clipboard/lang/it.js | 12 - .../plugins/clipboard/lang/ja.js | 12 - .../plugins/clipboard/lang/ka.js | 12 - .../plugins/clipboard/lang/km.js | 12 - .../plugins/clipboard/lang/ko.js | 12 - .../plugins/clipboard/lang/ku.js | 12 - .../plugins/clipboard/lang/lt.js | 12 - .../plugins/clipboard/lang/lv.js | 12 - .../plugins/clipboard/lang/mk.js | 12 - .../plugins/clipboard/lang/mn.js | 12 - .../plugins/clipboard/lang/ms.js | 12 - .../plugins/clipboard/lang/nb.js | 12 - .../plugins/clipboard/lang/nl.js | 12 - .../plugins/clipboard/lang/no.js | 12 - .../plugins/clipboard/lang/oc.js | 12 - .../plugins/clipboard/lang/pl.js | 12 - .../plugins/clipboard/lang/pt-br.js | 12 - .../plugins/clipboard/lang/pt.js | 12 - .../plugins/clipboard/lang/ro.js | 12 - .../plugins/clipboard/lang/ru.js | 12 - .../plugins/clipboard/lang/si.js | 12 - .../plugins/clipboard/lang/sk.js | 12 - .../plugins/clipboard/lang/sl.js | 12 - .../plugins/clipboard/lang/sq.js | 12 - .../plugins/clipboard/lang/sr-latn.js | 12 - .../plugins/clipboard/lang/sr.js | 12 - .../plugins/clipboard/lang/sv.js | 12 - .../plugins/clipboard/lang/th.js | 12 - .../plugins/clipboard/lang/tr.js | 12 - .../plugins/clipboard/lang/tt.js | 12 - .../plugins/clipboard/lang/ug.js | 12 - .../plugins/clipboard/lang/uk.js | 12 - .../plugins/clipboard/lang/vi.js | 12 - .../plugins/clipboard/lang/zh-cn.js | 12 - .../plugins/clipboard/lang/zh.js | 12 - .../plugins/clipboard/plugin.js | 2780 ----------- .../plugins/codemirror/css/codemirror.min.css | 2 +- .../plugins/codemirror/icons/autocomplete.png | Bin .../plugins/codemirror/icons/autoformat.png | Bin 210 -> 303 bytes .../codemirror/icons/commentselectedrange.png | Bin .../plugins/codemirror/icons/searchcode.png | Bin 408 -> 390 bytes .../icons/uncommentselectedrange.png | Bin 285 -> 338 bytes .../codemirror/images/autocomplete.png | Bin 0 -> 255 bytes .../plugins/codemirror/images/autoformat.png | Bin 0 -> 303 bytes .../images/commentselectedrange.png | Bin 0 -> 160 bytes .../plugins/codemirror/images/searchcode.png | Bin 0 -> 390 bytes .../images/uncommentselectedrange.png | Bin 0 -> 338 bytes .../plugins/codemirror/js/beautify.min.js | 3 +- .../codemirror/js/codemirror.addons.min.js | 3 +- .../js/codemirror.addons.search.min.js | 2 +- .../plugins/codemirror/js/codemirror.min.js | 2 +- .../js/codemirror.mode.bbcode.min.js | 0 .../js/codemirror.mode.bbcodemixed.min.js | 2 +- .../js/codemirror.mode.handlebars.min.js | 1 + .../js/codemirror.mode.htmlmixed.min.js | 3 +- .../js/codemirror.mode.javascript.min.js | 2 +- .../codemirror/js/codemirror.mode.php.min.js | 4 +- .../codemirror/js/codemirror.mode.twig.min.js | 1 + .../plugins/codemirror/lang/af.js | 0 .../plugins/codemirror/lang/ar.js | 0 .../plugins/codemirror/lang/bg.js | 14 +- .../plugins/codemirror/lang/bn.js | 0 .../plugins/codemirror/lang/bs.js | 0 .../plugins/codemirror/lang/ca.js | 0 .../plugins/codemirror/lang/cs.js | 12 +- .../plugins/codemirror/lang/cy.js | 0 .../plugins/codemirror/lang/da.js | 0 .../plugins/codemirror/lang/de.js | 0 .../plugins/codemirror/lang/el.js | 0 .../plugins/codemirror/lang/en-au.js | 0 .../plugins/codemirror/lang/en-ca.js | 0 .../plugins/codemirror/lang/en-gb.js | 0 .../plugins/codemirror/lang/en.js | 0 .../plugins/codemirror/lang/eo.js | 0 .../plugins/codemirror/lang/es.js | 0 .../plugins/codemirror/lang/et.js | 0 .../plugins/codemirror/lang/eu.js | 0 .../plugins/codemirror/lang/fa.js | 0 .../plugins/codemirror/lang/fi.js | 0 .../plugins/codemirror/lang/fo.js | 0 .../plugins/codemirror/lang/fr-ca.js | 0 .../plugins/codemirror/lang/fr.js | 0 .../plugins/codemirror/lang/gl.js | 0 .../plugins/codemirror/lang/gu.js | 0 .../plugins/codemirror/lang/he.js | 0 .../plugins/codemirror/lang/hi.js | 0 .../plugins/codemirror/lang/hr.js | 0 .../plugins/codemirror/lang/hu.js | 0 .../plugins/codemirror/lang/is.js | 0 .../plugins/codemirror/lang/it.js | 0 .../plugins/codemirror/lang/ja.js | 0 .../plugins/codemirror/lang/ka.js | 0 .../plugins/codemirror/lang/km.js | 0 .../plugins/codemirror/lang/ko.js | 0 .../plugins/codemirror/lang/ku.js | 0 .../plugins/codemirror/lang/lt.js | 0 .../plugins/codemirror/lang/lv.js | 0 .../plugins/codemirror/lang/mk.js | 0 .../plugins/codemirror/lang/mn.js | 0 .../plugins/codemirror/lang/ms.js | 0 .../plugins/codemirror/lang/nb.js | 0 .../plugins/codemirror/lang/nl.js | 0 .../plugins/codemirror/lang/no.js | 0 .../plugins/codemirror/lang/pl.js | 0 .../plugins/codemirror/lang/pt-br.js | 0 .../plugins/codemirror/lang/pt.js | 0 .../plugins/codemirror/lang/ro.js | 0 .../plugins/codemirror/lang/ru.js | 0 .../plugins/codemirror/lang/sk.js | 0 .../plugins/codemirror/lang/sl.js | 0 .../plugins/codemirror/lang/sr-latn.js | 0 .../plugins/codemirror/lang/sr.js | 0 .../plugins/codemirror/lang/sv.js | 0 .../plugins/codemirror/lang/th.js | 0 .../plugins/codemirror/lang/tr.js | 0 .../plugins/codemirror/lang/ug.js | 0 .../plugins/codemirror/lang/uk.js | 0 .../plugins/codemirror/lang/vi.js | 0 .../plugins/codemirror/lang/zh-cn.js | 0 .../plugins/codemirror/lang/zh.js | 0 .../plugins/codemirror/plugin.js | 753 +-- .../plugins/codemirror/theme/3024-day.css | 45 +- .../plugins/codemirror/theme/3024-night.css | 44 +- .../plugins/codemirror/theme/abcdef.css | 32 + .../codemirror/theme/ambiance-mobile.css | 0 .../plugins/codemirror/theme/ambiance.css | 22 +- .../plugins/codemirror/theme/base16-dark.css | 46 +- .../plugins/codemirror/theme/base16-light.css | 46 +- .../plugins/codemirror/theme/bespin.css | 34 + .../plugins/codemirror/theme/blackboard.css | 14 +- .../plugins/codemirror/theme/cobalt.css | 14 +- .../plugins/codemirror/theme/colorforth.css | 8 +- .../plugins/codemirror/theme/darcula.css | 46 + .../plugins/codemirror/theme/dracula.css | 40 + .../plugins/codemirror/theme/duotone-dark.css | 35 + .../codemirror/theme/duotone-light.css | 36 + .../plugins/codemirror/theme/eclipse.css | 42 +- .../plugins/codemirror/theme/elegant.css | 24 +- .../plugins/codemirror/theme/erlang-dark.css | 14 +- .../plugins/codemirror/theme/gruvbox-dark.css | 34 + .../plugins/codemirror/theme/hopscotch.css | 34 + .../plugins/codemirror/theme/icecoder.css | 43 + .../plugins/codemirror/theme/idea.css | 42 + .../plugins/codemirror/theme/isotope.css | 34 + .../plugins/codemirror/theme/lesser-dark.css | 34 +- .../plugins/codemirror/theme/liquibyte.css | 40 +- .../plugins/codemirror/theme/lucario.css | 37 + .../plugins/codemirror/theme/material.css | 53 + .../plugins/codemirror/theme/mbo.css | 50 +- .../plugins/codemirror/theme/mdn-like.css | 18 +- .../plugins/codemirror/theme/midnight.css | 44 +- .../plugins/codemirror/theme/monokai.css | 52 +- .../plugins/codemirror/theme/neat.css | 6 +- .../plugins/codemirror/theme/neo.css | 14 +- .../plugins/codemirror/theme/night.css | 17 +- .../plugins/codemirror/theme/oceanic-next.css | 44 + .../plugins/codemirror/theme/panda-syntax.css | 85 + .../plugins/codemirror/theme/paraiso-dark.css | 44 +- .../codemirror/theme/paraiso-light.css | 44 +- .../codemirror/theme/pastel-on-dark.css | 13 +- .../plugins/codemirror/theme/railscasts.css | 34 + .../plugins/codemirror/theme/rubyblue.css | 12 +- .../plugins/codemirror/theme/seti.css | 44 + .../plugins/codemirror/theme/shadowfox.css | 52 + .../plugins/codemirror/theme/solarized.css | 61 +- .../plugins/codemirror/theme/ssms.css | 16 + .../plugins/codemirror/theme/the-matrix.css | 46 +- .../theme/tomorrow-night-bright.css | 40 +- .../theme/tomorrow-night-eighties.css | 44 +- .../plugins/codemirror/theme/ttcn.css | 91 +- .../plugins/codemirror/theme/twilight.css | 20 +- .../plugins/codemirror/theme/vibrant-ink.css | 22 +- .../plugins/codemirror/theme/xq-dark.css | 44 +- .../plugins/codemirror/theme/xq-light.css | 36 +- .../plugins/codemirror/theme/yeti.css | 44 + .../plugins/codemirror/theme/zenburn.css | 6 +- .../codesnippet/dialogs/codesnippet.js | 4 +- .../plugins/codesnippet/lang/ar.js | 4 +- .../plugins/codesnippet/lang/az.js | 4 +- .../plugins/codesnippet/lang/bg.js | 4 +- .../plugins/codesnippet/lang/ca.js | 4 +- .../plugins/codesnippet/lang/cs.js | 4 +- .../plugins/codesnippet/lang/da.js | 4 +- .../plugins/codesnippet/lang/de-ch.js | 4 +- .../plugins/codesnippet/lang/de.js | 4 +- .../plugins/codesnippet/lang/el.js | 4 +- .../plugins/codesnippet/lang/en-au.js | 13 + .../plugins/codesnippet/lang/en-gb.js | 4 +- .../plugins/codesnippet/lang/en.js | 4 +- .../plugins/codesnippet/lang/eo.js | 4 +- .../plugins/codesnippet/lang/es-mx.js | 4 +- .../plugins/codesnippet/lang/es.js | 4 +- .../plugins/codesnippet/lang/et.js | 10 +- .../plugins/codesnippet/lang/eu.js | 4 +- .../plugins/codesnippet/lang/fa.js | 4 +- .../plugins/codesnippet/lang/fi.js | 4 +- .../plugins/codesnippet/lang/fr-ca.js | 4 +- .../plugins/codesnippet/lang/fr.js | 4 +- .../plugins/codesnippet/lang/gl.js | 4 +- .../plugins/codesnippet/lang/he.js | 4 +- .../plugins/codesnippet/lang/hr.js | 4 +- .../plugins/codesnippet/lang/hu.js | 4 +- .../plugins/codesnippet/lang/id.js | 4 +- .../plugins/codesnippet/lang/it.js | 4 +- .../plugins/codesnippet/lang/ja.js | 4 +- .../plugins/codesnippet/lang/km.js | 4 +- .../plugins/codesnippet/lang/ko.js | 4 +- .../plugins/codesnippet/lang/ku.js | 4 +- .../plugins/codesnippet/lang/lt.js | 4 +- .../plugins/codesnippet/lang/lv.js | 14 +- .../plugins/codesnippet/lang/nb.js | 4 +- .../plugins/codesnippet/lang/nl.js | 4 +- .../plugins/codesnippet/lang/no.js | 4 +- .../plugins/codesnippet/lang/oc.js | 4 +- .../plugins/codesnippet/lang/pl.js | 4 +- .../plugins/codesnippet/lang/pt-br.js | 4 +- .../plugins/codesnippet/lang/pt.js | 4 +- .../plugins/codesnippet/lang/ro.js | 4 +- .../plugins/codesnippet/lang/ru.js | 4 +- .../plugins/codesnippet/lang/sk.js | 4 +- .../plugins/codesnippet/lang/sl.js | 4 +- .../plugins/codesnippet/lang/sq.js | 10 +- .../plugins/codesnippet/lang/sv.js | 4 +- .../plugins/codesnippet/lang/th.js | 4 +- .../plugins/codesnippet/lang/tr.js | 4 +- .../plugins/codesnippet/lang/tt.js | 4 +- .../plugins/codesnippet/lang/ug.js | 4 +- .../plugins/codesnippet/lang/uk.js | 4 +- .../plugins/codesnippet/lang/vi.js | 4 +- .../plugins/codesnippet/lang/zh-cn.js | 4 +- .../plugins/codesnippet/lang/zh.js | 4 +- .../plugins/codesnippet/plugin.js | 22 +- .../codesnippet/samples/codesnippet.html | 20 +- .../plugins/dialogui/plugin.js | 1540 ++++++ .../plugins/lineutils/dev/dnd.html | 8 +- .../plugins/lineutils/dev/magicfinger.html | 8 +- .../plugins/lineutils/plugin.js | 14 +- .../mediaembed/icons/hidpi/mediaembed.png | Bin 680 -> 0 bytes .../plugins/mediaembed/icons/mediaembed.png | Bin 369 -> 0 bytes .../plugins/mediaembed/images/icon.png | Bin 0 -> 380 bytes .../plugins/mediaembed/plugin.js | 9 +- .../plugins/richfile/plugin.js | 15 +- .../plugins/widget/dev/assets/contents.css | 23 - .../plugins/widget/dev/assets/sample.jpg | Bin 17932 -> 0 bytes .../widget/dev/assets/simplebox/contents.css | 36 - .../dev/assets/simplebox/dialogs/simplebox.js | 51 - .../dev/assets/simplebox/icons/simplebox.png | Bin 286 -> 0 bytes .../widget/dev/assets/simplebox/plugin.js | 114 - .../plugins/widget/dev/console.js | 131 - .../plugins/widget/dev/nestedwidgets.html | 134 - .../plugins/widget/dev/widgetstyles.html | 144 - .../plugins/widget/lang/af.js | 8 - .../plugins/widget/lang/ar.js | 8 - .../plugins/widget/lang/az.js | 8 - .../plugins/widget/lang/bg.js | 8 - .../plugins/widget/lang/ca.js | 8 - .../plugins/widget/lang/cs.js | 8 - .../plugins/widget/lang/cy.js | 8 - .../plugins/widget/lang/da.js | 8 - .../plugins/widget/lang/de-ch.js | 8 - .../plugins/widget/lang/de.js | 8 - .../plugins/widget/lang/el.js | 8 - .../plugins/widget/lang/en-gb.js | 8 - .../plugins/widget/lang/en.js | 8 - .../plugins/widget/lang/eo.js | 8 - .../plugins/widget/lang/es-mx.js | 8 - .../plugins/widget/lang/es.js | 8 - .../plugins/widget/lang/eu.js | 8 - .../plugins/widget/lang/fa.js | 8 - .../plugins/widget/lang/fi.js | 8 - .../plugins/widget/lang/fr.js | 8 - .../plugins/widget/lang/gl.js | 8 - .../plugins/widget/lang/he.js | 8 - .../plugins/widget/lang/hr.js | 8 - .../plugins/widget/lang/hu.js | 8 - .../plugins/widget/lang/id.js | 8 - .../plugins/widget/lang/it.js | 8 - .../plugins/widget/lang/ja.js | 8 - .../plugins/widget/lang/km.js | 8 - .../plugins/widget/lang/ko.js | 8 - .../plugins/widget/lang/ku.js | 8 - .../plugins/widget/lang/lv.js | 8 - .../plugins/widget/lang/nb.js | 8 - .../plugins/widget/lang/nl.js | 8 - .../plugins/widget/lang/no.js | 8 - .../plugins/widget/lang/oc.js | 8 - .../plugins/widget/lang/pl.js | 8 - .../plugins/widget/lang/pt-br.js | 8 - .../plugins/widget/lang/pt.js | 8 - .../plugins/widget/lang/ru.js | 8 - .../plugins/widget/lang/sk.js | 8 - .../plugins/widget/lang/sl.js | 8 - .../plugins/widget/lang/sq.js | 8 - .../plugins/widget/lang/sv.js | 8 - .../plugins/widget/lang/tr.js | 8 - .../plugins/widget/lang/tt.js | 8 - .../plugins/widget/lang/ug.js | 8 - .../plugins/widget/lang/uk.js | 8 - .../plugins/widget/lang/vi.js | 8 - .../plugins/widget/lang/zh-cn.js | 8 - .../plugins/widget/lang/zh.js | 8 - .../ckeditor-contrib/plugins/widget/plugin.js | 4147 ----------------- .../plugins/widgetselection/plugin.js | 17 +- .../plugins/youtube/lang/bg.js | 25 + .../plugins/youtube/lang/hu.js | 3 +- .../plugins/youtube/lang/uk.js | 25 + .../plugins/youtube/plugin.js | 897 ++-- .../assets/ckeditor/CHANGES.md | 2004 ++++---- .../assets/ckeditor/LICENSE.md | 6 +- .../assets/ckeditor/README.md | 81 +- .../assets/ckeditor/adapters/jquery.js | 4 +- .../assets/ckeditor/bower.json | 10 - .../assets/ckeditor/build-config.js | 60 +- .../assets/ckeditor/ckeditor.js | 1796 +++---- .../assets/ckeditor/composer.json | 20 - .../assets/ckeditor/config.js | 4 +- .../assets/ckeditor/contents.css | 14 +- .../assets/ckeditor/lang/af.js | 8 +- .../assets/ckeditor/lang/ar.js | 8 +- .../assets/ckeditor/lang/az.js | 8 +- .../assets/ckeditor/lang/bg.js | 8 +- .../assets/ckeditor/lang/bn.js | 8 +- .../assets/ckeditor/lang/bs.js | 8 +- .../assets/ckeditor/lang/ca.js | 8 +- .../assets/ckeditor/lang/cs.js | 8 +- .../assets/ckeditor/lang/cy.js | 8 +- .../assets/ckeditor/lang/da.js | 8 +- .../assets/ckeditor/lang/de-ch.js | 8 +- .../assets/ckeditor/lang/de.js | 8 +- .../assets/ckeditor/lang/el.js | 8 +- .../assets/ckeditor/lang/en-au.js | 8 +- .../assets/ckeditor/lang/en-ca.js | 8 +- .../assets/ckeditor/lang/en-gb.js | 8 +- .../assets/ckeditor/lang/en.js | 8 +- .../assets/ckeditor/lang/eo.js | 8 +- .../assets/ckeditor/lang/es-mx.js | 8 +- .../assets/ckeditor/lang/es.js | 8 +- .../assets/ckeditor/lang/et.js | 8 +- .../assets/ckeditor/lang/eu.js | 8 +- .../assets/ckeditor/lang/fa.js | 8 +- .../assets/ckeditor/lang/fi.js | 8 +- .../assets/ckeditor/lang/fo.js | 8 +- .../assets/ckeditor/lang/fr-ca.js | 8 +- .../assets/ckeditor/lang/fr.js | 8 +- .../assets/ckeditor/lang/gl.js | 8 +- .../assets/ckeditor/lang/gu.js | 8 +- .../assets/ckeditor/lang/he.js | 8 +- .../assets/ckeditor/lang/hi.js | 8 +- .../assets/ckeditor/lang/hr.js | 8 +- .../assets/ckeditor/lang/hu.js | 8 +- .../assets/ckeditor/lang/id.js | 8 +- .../assets/ckeditor/lang/is.js | 8 +- .../assets/ckeditor/lang/it.js | 8 +- .../assets/ckeditor/lang/ja.js | 8 +- .../assets/ckeditor/lang/ka.js | 8 +- .../assets/ckeditor/lang/km.js | 8 +- .../assets/ckeditor/lang/ko.js | 8 +- .../assets/ckeditor/lang/ku.js | 8 +- .../assets/ckeditor/lang/lt.js | 8 +- .../assets/ckeditor/lang/lv.js | 8 +- .../assets/ckeditor/lang/mk.js | 8 +- .../assets/ckeditor/lang/mn.js | 8 +- .../assets/ckeditor/lang/ms.js | 8 +- .../assets/ckeditor/lang/nb.js | 8 +- .../assets/ckeditor/lang/nl.js | 8 +- .../assets/ckeditor/lang/no.js | 8 +- .../assets/ckeditor/lang/oc.js | 8 +- .../assets/ckeditor/lang/pl.js | 8 +- .../assets/ckeditor/lang/pt-br.js | 8 +- .../assets/ckeditor/lang/pt.js | 8 +- .../assets/ckeditor/lang/ro.js | 8 +- .../assets/ckeditor/lang/ru.js | 8 +- .../assets/ckeditor/lang/si.js | 8 +- .../assets/ckeditor/lang/sk.js | 8 +- .../assets/ckeditor/lang/sl.js | 8 +- .../assets/ckeditor/lang/sq.js | 8 +- .../assets/ckeditor/lang/sr-latn.js | 8 +- .../assets/ckeditor/lang/sr.js | 8 +- .../assets/ckeditor/lang/sv.js | 8 +- .../assets/ckeditor/lang/th.js | 8 +- .../assets/ckeditor/lang/tr.js | 8 +- .../assets/ckeditor/lang/tt.js | 8 +- .../assets/ckeditor/lang/ug.js | 8 +- .../assets/ckeditor/lang/uk.js | 8 +- .../assets/ckeditor/lang/vi.js | 8 +- .../assets/ckeditor/lang/zh-cn.js | 8 +- .../assets/ckeditor/lang/zh.js | 8 +- .../assets/ckeditor/package.json | 26 - .../plugins/a11yhelp/dialogs/a11yhelp.js | 14 +- .../dialogs/lang/_translationstatus.txt | 4 +- .../plugins/a11yhelp/dialogs/lang/af.js | 4 +- .../plugins/a11yhelp/dialogs/lang/ar.js | 4 +- .../plugins/a11yhelp/dialogs/lang/az.js | 4 +- .../plugins/a11yhelp/dialogs/lang/bg.js | 18 +- .../plugins/a11yhelp/dialogs/lang/ca.js | 4 +- .../plugins/a11yhelp/dialogs/lang/cs.js | 6 +- .../plugins/a11yhelp/dialogs/lang/cy.js | 4 +- .../plugins/a11yhelp/dialogs/lang/da.js | 6 +- .../plugins/a11yhelp/dialogs/lang/de-ch.js | 4 +- .../plugins/a11yhelp/dialogs/lang/de.js | 13 +- .../plugins/a11yhelp/dialogs/lang/el.js | 11 +- .../plugins/a11yhelp/dialogs/lang/en-au.js | 11 + .../plugins/a11yhelp/dialogs/lang/en-gb.js | 4 +- .../plugins/a11yhelp/dialogs/lang/en.js | 4 +- .../plugins/a11yhelp/dialogs/lang/eo.js | 11 +- .../plugins/a11yhelp/dialogs/lang/es-mx.js | 4 +- .../plugins/a11yhelp/dialogs/lang/es.js | 4 +- .../plugins/a11yhelp/dialogs/lang/et.js | 14 +- .../plugins/a11yhelp/dialogs/lang/eu.js | 6 +- .../plugins/a11yhelp/dialogs/lang/fa.js | 8 +- .../plugins/a11yhelp/dialogs/lang/fi.js | 4 +- .../plugins/a11yhelp/dialogs/lang/fo.js | 4 +- .../plugins/a11yhelp/dialogs/lang/fr-ca.js | 4 +- .../plugins/a11yhelp/dialogs/lang/fr.js | 6 +- .../plugins/a11yhelp/dialogs/lang/gl.js | 4 +- .../plugins/a11yhelp/dialogs/lang/gu.js | 4 +- .../plugins/a11yhelp/dialogs/lang/he.js | 4 +- .../plugins/a11yhelp/dialogs/lang/hi.js | 4 +- .../plugins/a11yhelp/dialogs/lang/hr.js | 10 +- .../plugins/a11yhelp/dialogs/lang/hu.js | 8 +- .../plugins/a11yhelp/dialogs/lang/id.js | 4 +- .../plugins/a11yhelp/dialogs/lang/it.js | 4 +- .../plugins/a11yhelp/dialogs/lang/ja.js | 4 +- .../plugins/a11yhelp/dialogs/lang/km.js | 4 +- .../plugins/a11yhelp/dialogs/lang/ko.js | 4 +- .../plugins/a11yhelp/dialogs/lang/ku.js | 12 +- .../plugins/a11yhelp/dialogs/lang/lt.js | 4 +- .../plugins/a11yhelp/dialogs/lang/lv.js | 4 +- .../plugins/a11yhelp/dialogs/lang/mk.js | 4 +- .../plugins/a11yhelp/dialogs/lang/mn.js | 4 +- .../plugins/a11yhelp/dialogs/lang/nb.js | 6 +- .../plugins/a11yhelp/dialogs/lang/nl.js | 4 +- .../plugins/a11yhelp/dialogs/lang/no.js | 4 +- .../plugins/a11yhelp/dialogs/lang/oc.js | 4 +- .../plugins/a11yhelp/dialogs/lang/pl.js | 4 +- .../plugins/a11yhelp/dialogs/lang/pt-br.js | 8 +- .../plugins/a11yhelp/dialogs/lang/pt.js | 4 +- .../plugins/a11yhelp/dialogs/lang/ro.js | 19 +- .../plugins/a11yhelp/dialogs/lang/ru.js | 6 +- .../plugins/a11yhelp/dialogs/lang/si.js | 4 +- .../plugins/a11yhelp/dialogs/lang/sk.js | 6 +- .../plugins/a11yhelp/dialogs/lang/sl.js | 4 +- .../plugins/a11yhelp/dialogs/lang/sq.js | 19 +- .../plugins/a11yhelp/dialogs/lang/sr-latn.js | 4 +- .../plugins/a11yhelp/dialogs/lang/sr.js | 4 +- .../plugins/a11yhelp/dialogs/lang/sv.js | 6 +- .../plugins/a11yhelp/dialogs/lang/th.js | 4 +- .../plugins/a11yhelp/dialogs/lang/tr.js | 4 +- .../plugins/a11yhelp/dialogs/lang/tt.js | 4 +- .../plugins/a11yhelp/dialogs/lang/ug.js | 12 +- .../plugins/a11yhelp/dialogs/lang/uk.js | 4 +- .../plugins/a11yhelp/dialogs/lang/vi.js | 4 +- .../plugins/a11yhelp/dialogs/lang/zh-cn.js | 10 +- .../plugins/a11yhelp/dialogs/lang/zh.js | 10 +- .../ckeditor/plugins/about/dialogs/about.js | 10 +- .../about/dialogs/hidpi/logo_ckeditor.png | Bin 13339 -> 12236 bytes .../plugins/about/dialogs/logo_ckeditor.png | Bin 6757 -> 5650 bytes .../plugins/clipboard/dialogs/paste.js | 11 + .../colordialog/dialogs/colordialog.css | 4 +- .../colordialog/dialogs/colordialog.js | 22 +- .../copyformatting/styles/copyformatting.css | 4 +- .../plugins/dialog/dialogDefinition.js | 4 +- .../ckeditor/plugins/find/dialogs/find.js | 46 +- .../ckeditor/plugins/flash/dialogs/flash.js | 10 +- .../ckeditor/plugins/forms/dialogs/button.js | 4 +- .../plugins/forms/dialogs/checkbox.js | 6 +- .../ckeditor/plugins/forms/dialogs/form.js | 4 +- .../plugins/forms/dialogs/hiddenfield.js | 4 +- .../ckeditor/plugins/forms/dialogs/radio.js | 14 +- .../ckeditor/plugins/forms/dialogs/select.js | 7 +- .../plugins/forms/dialogs/textarea.js | 6 +- .../plugins/forms/dialogs/textfield.js | 6 +- .../ckeditor/plugins/iframe/dialogs/iframe.js | 6 +- .../ckeditor/plugins/image/dialogs/image.js | 68 +- .../ckeditor/plugins/link/dialogs/anchor.js | 4 +- .../ckeditor/plugins/link/dialogs/link.js | 54 +- .../plugins/liststyle/dialogs/liststyle.js | 14 +- .../plugins/pastefromword/filter/default.js | 101 +- .../ckeditor/plugins/scayt/dialogs/options.js | 64 +- .../ckeditor/plugins/smiley/dialogs/smiley.js | 4 +- .../dialogs/lang/_translationstatus.txt | 4 +- .../plugins/specialchar/dialogs/lang/af.js | 4 +- .../plugins/specialchar/dialogs/lang/ar.js | 4 +- .../plugins/specialchar/dialogs/lang/az.js | 4 +- .../plugins/specialchar/dialogs/lang/bg.js | 6 +- .../plugins/specialchar/dialogs/lang/ca.js | 4 +- .../plugins/specialchar/dialogs/lang/cs.js | 4 +- .../plugins/specialchar/dialogs/lang/cy.js | 4 +- .../plugins/specialchar/dialogs/lang/da.js | 4 +- .../plugins/specialchar/dialogs/lang/de-ch.js | 4 +- .../plugins/specialchar/dialogs/lang/de.js | 4 +- .../plugins/specialchar/dialogs/lang/el.js | 4 +- .../plugins/specialchar/dialogs/lang/en-au.js | 4 +- .../plugins/specialchar/dialogs/lang/en-ca.js | 4 +- .../plugins/specialchar/dialogs/lang/en-gb.js | 4 +- .../plugins/specialchar/dialogs/lang/en.js | 4 +- .../plugins/specialchar/dialogs/lang/eo.js | 4 +- .../plugins/specialchar/dialogs/lang/es-mx.js | 4 +- .../plugins/specialchar/dialogs/lang/es.js | 4 +- .../plugins/specialchar/dialogs/lang/et.js | 4 +- .../plugins/specialchar/dialogs/lang/eu.js | 4 +- .../plugins/specialchar/dialogs/lang/fa.js | 4 +- .../plugins/specialchar/dialogs/lang/fi.js | 4 +- .../plugins/specialchar/dialogs/lang/fr-ca.js | 4 +- .../plugins/specialchar/dialogs/lang/fr.js | 4 +- .../plugins/specialchar/dialogs/lang/gl.js | 4 +- .../plugins/specialchar/dialogs/lang/he.js | 4 +- .../plugins/specialchar/dialogs/lang/hr.js | 4 +- .../plugins/specialchar/dialogs/lang/hu.js | 4 +- .../plugins/specialchar/dialogs/lang/id.js | 4 +- .../plugins/specialchar/dialogs/lang/it.js | 4 +- .../plugins/specialchar/dialogs/lang/ja.js | 4 +- .../plugins/specialchar/dialogs/lang/km.js | 4 +- .../plugins/specialchar/dialogs/lang/ko.js | 4 +- .../plugins/specialchar/dialogs/lang/ku.js | 4 +- .../plugins/specialchar/dialogs/lang/lt.js | 4 +- .../plugins/specialchar/dialogs/lang/lv.js | 4 +- .../plugins/specialchar/dialogs/lang/nb.js | 4 +- .../plugins/specialchar/dialogs/lang/nl.js | 4 +- .../plugins/specialchar/dialogs/lang/no.js | 4 +- .../plugins/specialchar/dialogs/lang/oc.js | 4 +- .../plugins/specialchar/dialogs/lang/pl.js | 4 +- .../plugins/specialchar/dialogs/lang/pt-br.js | 4 +- .../plugins/specialchar/dialogs/lang/pt.js | 4 +- .../plugins/specialchar/dialogs/lang/ro.js | 13 + .../plugins/specialchar/dialogs/lang/ru.js | 4 +- .../plugins/specialchar/dialogs/lang/si.js | 4 +- .../plugins/specialchar/dialogs/lang/sk.js | 4 +- .../plugins/specialchar/dialogs/lang/sl.js | 4 +- .../plugins/specialchar/dialogs/lang/sq.js | 10 +- .../plugins/specialchar/dialogs/lang/sv.js | 4 +- .../plugins/specialchar/dialogs/lang/th.js | 4 +- .../plugins/specialchar/dialogs/lang/tr.js | 4 +- .../plugins/specialchar/dialogs/lang/tt.js | 4 +- .../plugins/specialchar/dialogs/lang/ug.js | 4 +- .../plugins/specialchar/dialogs/lang/uk.js | 4 +- .../plugins/specialchar/dialogs/lang/vi.js | 4 +- .../plugins/specialchar/dialogs/lang/zh-cn.js | 4 +- .../plugins/specialchar/dialogs/lang/zh.js | 4 +- .../specialchar/dialogs/specialchar.js | 4 +- .../ckeditor/plugins/table/dialogs/table.js | 10 +- .../tableselection/styles/tableselection.css | 18 +- .../plugins/tabletools/dialogs/tableCell.js | 31 +- .../plugins/templates/dialogs/templates.css | 4 +- .../plugins/templates/dialogs/templates.js | 4 +- .../plugins/templates/templates/default.js | 4 +- .../plugins/widget/images/handle.png | Bin .../ckeditor/plugins/wsc/dialogs/wsc.js | 167 +- .../assets/ckeditor/samples/css/samples.css | 51 +- .../assets/ckeditor/samples/img/logo.png | Bin 5891 -> 5634 bytes .../assets/ckeditor/samples/img/logo.svg | 13 + .../assets/ckeditor/samples/index.html | 32 +- .../assets/ckeditor/samples/js/sample.js | 8 +- .../assets/ckeditor/samples/js/sf.js | 4 +- .../assets/ckeditor/samples/old/ajax.html | 10 +- .../assets/ckeditor/samples/old/api.html | 28 +- .../assets/ckeditor/samples/old/appendto.html | 14 +- .../old/assets/outputxhtml/outputxhtml.css | 4 +- .../samples/old/assets/posteddata.php | 8 +- .../old/assets/uilanguages/languages.js | 4 +- .../ckeditor/samples/old/datafiltering.html | 28 +- .../samples/old/dialog/assets/my_dialog.js | 4 +- .../ckeditor/samples/old/dialog/dialog.html | 16 +- .../ckeditor/samples/old/divreplace.html | 10 +- .../samples/old/enterkey/enterkey.html | 16 +- .../old/htmlwriter/outputforflash.html | 12 +- .../samples/old/htmlwriter/outputhtml.html | 14 +- .../assets/ckeditor/samples/old/index.html | 10 +- .../ckeditor/samples/old/inlineall.html | 20 +- .../ckeditor/samples/old/inlinebycode.html | 12 +- .../ckeditor/samples/old/inlinetextarea.html | 12 +- .../assets/ckeditor/samples/old/jquery.html | 12 +- .../samples/old/magicline/magicline.html | 10 +- .../assets/ckeditor/samples/old/readonly.html | 16 +- .../ckeditor/samples/old/replacebyclass.html | 10 +- .../ckeditor/samples/old/replacebycode.html | 10 +- .../assets/ckeditor/samples/old/sample.css | 4 +- .../assets/ckeditor/samples/old/sample.js | 4 +- .../samples/old/sample_posteddata.php | 4 +- .../assets/ckeditor/samples/old/tabindex.html | 10 +- .../ckeditor/samples/old/toolbar/toolbar.html | 16 +- .../assets/ckeditor/samples/old/uicolor.html | 12 +- .../ckeditor/samples/old/uilanguages.html | 16 +- .../samples/old/wysiwygarea/fullpage.html | 10 +- .../ckeditor/samples/old/xhtmlstyle.html | 12 +- .../samples/toolbarconfigurator/index.html | 24 +- .../ckeditor/skins/moono-lisa/dialog.css | 6 +- .../ckeditor/skins/moono-lisa/dialog_ie.css | 6 +- .../ckeditor/skins/moono-lisa/dialog_ie8.css | 6 +- .../skins/moono-lisa/dialog_iequirks.css | 6 +- .../ckeditor/skins/moono-lisa/editor.css | 6 +- .../skins/moono-lisa/editor_gecko.css | 6 +- .../ckeditor/skins/moono-lisa/editor_ie.css | 6 +- .../ckeditor/skins/moono-lisa/editor_ie8.css | 6 +- .../skins/moono-lisa/editor_iequirks.css | 6 +- .../ckeditor/skins/moono-lisa/readme.md | 6 +- .../assets/ckeditor/styles.js | 35 +- .../assets/javascripts/application.js | 1865 ++++---- 648 files changed, 8598 insertions(+), 14657 deletions(-) delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/dev/clipboard.html delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/dev/console.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/dev/dnd.html delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/icons/copy-rtl.png delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/icons/copy.png delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/icons/cut-rtl.png delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/icons/cut.png delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/icons/hidpi/copy-rtl.png delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/icons/hidpi/copy.png delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/icons/hidpi/cut-rtl.png delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/icons/hidpi/cut.png delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/icons/hidpi/paste-rtl.png delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/icons/hidpi/paste.png delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/icons/paste-rtl.png delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/icons/paste.png delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/af.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/ar.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/az.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/bg.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/bn.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/bs.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/ca.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/cs.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/cy.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/da.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/de-ch.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/de.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/el.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/en-au.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/en-ca.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/en-gb.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/en.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/eo.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/es-mx.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/es.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/et.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/eu.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/fa.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/fi.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/fo.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/fr-ca.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/fr.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/gl.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/gu.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/he.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/hi.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/hr.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/hu.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/id.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/is.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/it.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/ja.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/ka.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/km.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/ko.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/ku.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/lt.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/lv.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/mk.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/mn.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/ms.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/nb.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/nl.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/no.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/oc.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/pl.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/pt-br.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/pt.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/ro.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/ru.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/si.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/sk.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/sl.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/sq.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/sr-latn.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/sr.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/sv.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/th.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/tr.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/tt.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/ug.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/uk.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/vi.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/zh-cn.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/zh.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/plugin.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/css/codemirror.min.css mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/icons/autocomplete.png mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/icons/autoformat.png mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/icons/commentselectedrange.png mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/icons/searchcode.png mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/icons/uncommentselectedrange.png create mode 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/images/autocomplete.png create mode 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/images/autoformat.png create mode 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/images/commentselectedrange.png create mode 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/images/searchcode.png create mode 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/images/uncommentselectedrange.png mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/js/beautify.min.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/js/codemirror.addons.min.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/js/codemirror.addons.search.min.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/js/codemirror.min.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/js/codemirror.mode.bbcode.min.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/js/codemirror.mode.bbcodemixed.min.js create mode 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/js/codemirror.mode.handlebars.min.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/js/codemirror.mode.htmlmixed.min.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/js/codemirror.mode.javascript.min.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/js/codemirror.mode.php.min.js create mode 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/js/codemirror.mode.twig.min.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/af.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/ar.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/bg.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/bn.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/bs.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/ca.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/cs.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/cy.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/da.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/de.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/el.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/en-au.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/en-ca.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/en-gb.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/en.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/eo.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/es.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/et.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/eu.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/fa.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/fi.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/fo.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/fr-ca.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/fr.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/gl.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/gu.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/he.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/hi.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/hr.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/hu.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/is.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/it.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/ja.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/ka.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/km.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/ko.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/ku.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/lt.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/lv.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/mk.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/mn.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/ms.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/nb.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/nl.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/no.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/pl.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/pt-br.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/pt.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/ro.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/ru.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/sk.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/sl.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/sr-latn.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/sr.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/sv.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/th.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/tr.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/ug.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/uk.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/vi.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/zh-cn.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/zh.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/plugin.js mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/3024-day.css mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/3024-night.css create mode 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/abcdef.css mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/ambiance-mobile.css mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/ambiance.css mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/base16-dark.css mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/base16-light.css create mode 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/bespin.css mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/blackboard.css mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/cobalt.css mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/colorforth.css create mode 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/darcula.css create mode 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/dracula.css create mode 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/duotone-dark.css create mode 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/duotone-light.css mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/eclipse.css mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/elegant.css mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/erlang-dark.css create mode 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/gruvbox-dark.css create mode 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/hopscotch.css create mode 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/icecoder.css create mode 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/idea.css create mode 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/isotope.css mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/lesser-dark.css mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/liquibyte.css create mode 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/lucario.css create mode 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/material.css mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/mbo.css mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/mdn-like.css mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/midnight.css mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/monokai.css mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/neat.css mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/neo.css mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/night.css create mode 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/oceanic-next.css create mode 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/panda-syntax.css mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/paraiso-dark.css mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/paraiso-light.css mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/pastel-on-dark.css create mode 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/railscasts.css mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/rubyblue.css create mode 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/seti.css create mode 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/shadowfox.css mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/solarized.css create mode 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/ssms.css mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/the-matrix.css mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/tomorrow-night-bright.css mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/tomorrow-night-eighties.css mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/ttcn.css mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/twilight.css mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/vibrant-ink.css mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/xq-dark.css mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/xq-light.css create mode 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/yeti.css mode change 100644 => 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/theme/zenburn.css create mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codesnippet/lang/en-au.js create mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/dialogui/plugin.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/mediaembed/icons/hidpi/mediaembed.png delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/mediaembed/icons/mediaembed.png create mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/mediaembed/images/icon.png delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/dev/assets/contents.css delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/dev/assets/sample.jpg delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/dev/assets/simplebox/contents.css delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/dev/assets/simplebox/dialogs/simplebox.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/dev/assets/simplebox/icons/simplebox.png delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/dev/assets/simplebox/plugin.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/dev/console.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/dev/nestedwidgets.html delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/dev/widgetstyles.html delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/af.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/ar.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/az.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/bg.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/ca.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/cs.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/cy.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/da.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/de-ch.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/de.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/el.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/en-gb.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/en.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/eo.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/es-mx.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/es.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/eu.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/fa.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/fi.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/fr.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/gl.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/he.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/hr.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/hu.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/id.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/it.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/ja.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/km.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/ko.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/ku.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/lv.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/nb.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/nl.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/no.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/oc.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/pl.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/pt-br.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/pt.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/ru.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/sk.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/sl.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/sq.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/sv.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/tr.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/tt.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/ug.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/uk.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/vi.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/zh-cn.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/lang/zh.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/widget/plugin.js create mode 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/youtube/lang/bg.js create mode 100755 plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/youtube/lang/uk.js delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor/bower.json delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor/composer.json delete mode 100644 plugins/redmine_ckeditor/assets/ckeditor/package.json create mode 100644 plugins/redmine_ckeditor/assets/ckeditor/plugins/a11yhelp/dialogs/lang/en-au.js create mode 100644 plugins/redmine_ckeditor/assets/ckeditor/plugins/clipboard/dialogs/paste.js create mode 100644 plugins/redmine_ckeditor/assets/ckeditor/plugins/specialchar/dialogs/lang/ro.js rename plugins/redmine_ckeditor/assets/{ckeditor-contrib => ckeditor}/plugins/widget/images/handle.png (100%) create mode 100644 plugins/redmine_ckeditor/assets/ckeditor/samples/img/logo.svg diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/dev/clipboard.html b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/dev/clipboard.html deleted file mode 100644 index aa2598b..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/dev/clipboard.html +++ /dev/null @@ -1,190 +0,0 @@ - - - - - - Clipboard playground – CKEditor Sample - - - - - -

- CKEditor Sample — clipboard plugin playground -

-
-

- - -

-

- - -

-

- - -

-

- - -

-

- - -

-
-

Editor 6

-

Content content content.

-

Styled by .someClass.

-
-
-
-
- - - diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/dev/console.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/dev/console.js deleted file mode 100644 index 6889bb0..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/dev/console.js +++ /dev/null @@ -1,49 +0,0 @@ -/** - * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. - * For licensing, see LICENSE.md or http://ckeditor.com/license - */ - -/* global CKCONSOLE */ - -'use strict'; - -( function() { - var pasteType, pasteValue; - - CKCONSOLE.add( 'paste', { - panels: [ - { - type: 'box', - content: - '', - - refresh: function() { - return { - header: 'Paste', - type: pasteType, - value: pasteValue - }; - }, - - refreshOn: function( editor, refresh ) { - editor.on( 'paste', function( evt ) { - pasteType = evt.data.type; - pasteValue = CKEDITOR.tools.htmlEncode( evt.data.dataValue ); - refresh(); - } ); - } - }, - { - type: 'log', - on: function( editor, log, logFn ) { - editor.on( 'paste', function( evt ) { - logFn( 'paste; type:' + evt.data.type )(); - } ); - } - } - ] - } ); -} )(); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/dev/dnd.html b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/dev/dnd.html deleted file mode 100644 index 281c032..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/dev/dnd.html +++ /dev/null @@ -1,185 +0,0 @@ - - - - - - Manual test for http://dev.ckeditor.com/ticket/11460 - - - - - - - -

- Manual test for #11460 -

-

Description (hide/show)

-
-

Test internal D&D in the editor, dropping content from an external source (helpers, MS Word) and D&D between editors. Keep in mind that internal D&D is the most complex operation because editor have to handle two ranges at the same time.

-

Expected behavior:

- -

Drag scenarios:

- -

Drop scenarios:

- -

Known issues (not part of this ticket):

- -
-
-

Helpers (hide/show)

-
- -
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. In commodo vulputate tempor. Sed <b>at elit</b> vel ligula mollis aliquet a ac odio. -
-Aenean cursus egestas ipsum.
-				
-
-
-
-
-
-

Classic editor (hide/show)

-
- -
-
-
-

Inline editor (hide/show)

-
-

Saturn V carrying Apollo 11 Apollo 11

- -

Apollo 11 was the spaceflight that landed the first humans, Americans Neil Armstrong and Buzz Aldrin, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.

- -

Armstrong spent about three and a half two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5 kg) of lunar material for return to Earth. A third member of the mission, Michael Collins, piloted the command spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.

- -

Broadcasting and quotes

- -

Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:

- -
-

One small step for [a] man, one giant leap for mankind.

-
- -

Apollo 11 effectively ended the Space Race and fulfilled a national goal proposed in 1961 by the late U.S. President John F. Kennedy in a speech before the United States Congress:

- -
-

[...] before this decade is out, of landing a man on the Moon and returning him safely to the Earth.

-
- -

Technical details

- - - - - - - - - - - - - - - - - - - - - - - -
Mission crew
PositionAstronaut
CommanderNeil A. Armstrong
Command Module PilotMichael Collins
Lunar Module PilotEdwin "Buzz" E. Aldrin, Jr.
- -

Launched by a Saturn V rocket from Kennedy Space Center in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of NASA's Apollo program. The Apollo spacecraft had three parts:

- -
    -
  1. Command Module with a cabin for the three astronauts which was the only part which landed back on Earth
  2. -
  3. Service Module which supported the Command Module with propulsion, electrical power, oxygen and water
  4. -
  5. Lunar Module for landing on the Moon.
  6. -
- -

After being sent to the Moon by the Saturn V's upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the Sea of Tranquility. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the Pacific Ocean on July 24.

- -
-

Source: Wikipedia.org

-
-
- - - diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/icons/copy-rtl.png b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/icons/copy-rtl.png deleted file mode 100644 index ce94fc081658287b33b61c5f0b017d969554a104..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 506 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Ea{HEjtmSN`?>!lvI6-E$sR$z z3=CDO3=9p;3=BX21L>Cx45bDP46hOx7_4S6Fo@?*ia+WGRLhp+?e46e^9qTsrs68`&SvSdL02 zrX7)Z`8!T?>Gb4g)~Au5Hktb}D;O(3KRT1?w65p&k75T-|*?*`srJZ!XUJnj*or=eu^i%%n~7S(V#o3Ob#rQka)8@A=)5b+dkG zpM5iBcg~~zq5=n!g{-fJ7oSdlBKn8H_)TP2Q$jc|(9^0Vt`Q|Ei6yC4$wjF^iowXh z&`j6BT-VSt#L(Ev*ucufNZY{3%D_NkLU{#>hTQy=%(P0}8ZytGKLXUi;OXk;vd$@? F2>?2@w*~+J diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/icons/copy.png b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/icons/copy.png deleted file mode 100644 index ce94fc081658287b33b61c5f0b017d969554a104..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 506 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Ea{HEjtmSN`?>!lvI6-E$sR$z z3=CDO3=9p;3=BX21L>Cx45bDP46hOx7_4S6Fo@?*ia+WGRLhp+?e46e^9qTsrs68`&SvSdL02 zrX7)Z`8!T?>Gb4g)~Au5Hktb}D;O(3KRT1?w65p&k75T-|*?*`srJZ!XUJnj*or=eu^i%%n~7S(V#o3Ob#rQka)8@A=)5b+dkG zpM5iBcg~~zq5=n!g{-fJ7oSdlBKn8H_)TP2Q$jc|(9^0Vt`Q|Ei6yC4$wjF^iowXh z&`j6BT-VSt#L(Ev*ucufNZY{3%D_NkLU{#>hTQy=%(P0}8ZytGKLXUi;OXk;vd$@? F2>?2@w*~+J diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/icons/cut-rtl.png b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/icons/cut-rtl.png deleted file mode 100644 index 8ae48d9a7ab05a4fc5d515ca50fd54ee14f59738..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 776 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Ea{HEjtmSN`?>!lvI6-E$sR$z z3=CDO3=9p;3=BX21L>Cx45bDP46hOx7_4S6Fo@?*ia+WGRLhp+?e4T8vTzLJ%Nv2l=BK2BF^C}vL z_ZS^JVENotB|LP=l(^}_ii@Pr?X2g#`nohCyIhT_p`)Yt-L-!enoEDL`n6c7kc06I zPqGhd%FdX&`|l4|?fqACfmzUzV_}epVB^+r{+?zbqUS7Q*Iy59kWfzQ@z6}%8RHZx zZ~0u0v4TO~wI!*?#YO%0l$M$CXPy_Yc%^pi(2=OM-?$G{GlaXaWWSAmF4JR}VK$q8 z+mic9J^IqUZR^6c3lyze7((}6%i7A*P|Xn6D&WVpa`VkM!h*2^7vBmnF*@vx+rL>` z=yRI&Tt9mqF>ZzmKbP>Oh37-RW|&A#{Qggofv5d&@vHB@cMBPQF7$f2#Usf^E_nH6 z&He4%4CdQwD<=h2C7(82`AS?#NwD#|+}*tGpJsHt&^TXQ@qS_u6T=_Yj1G?CYb)%( z15<@+iEBhjN@7W>RdP`(kYX@0Ff`LOFxNG-3^6peGB&U>G14|LvNAA`m{4AUq9Hdw aB{QuOw}#BK=Z^q2FnGH9xvX!lvI6-E$sR$z z3=CDO3=9p;3=BX21L>Cx45bDP46hOx7_4S6Fo@?*ia+WGRLhp+?e4T8vTzLJ%Nv2l=BK2BF^C}vL z_ZS^JVENotB|LP=l(^}_ii@Pr?X2g#`nohCyIhT_p`)Yt-L-!enoEDL`n6c7kc06I zPqGhd%FdX&`|l4|?fqACfmzUzV_}epVB^+r{+?zbqUS7Q*Iy59kWfzQ@z6}%8RHZx zZ~0u0v4TO~wI!*?#YO%0l$M$CXPy_Yc%^pi(2=OM-?$G{GlaXaWWSAmF4JR}VK$q8 z+mic9J^IqUZR^6c3lyze7((}6%i7A*P|Xn6D&WVpa`VkM!h*2^7vBmnF*@vx+rL>` z=yRI&Tt9mqF>ZzmKbP>Oh37-RW|&A#{Qggofv5d&@vHB@cMBPQF7$f2#Usf^E_nH6 z&He4%4CdQwD<=h2C7(82`AS?#NwD#|+}*tGpJsHt&^TXQ@qS_u6T=_Yj1G?CYb)%( z15<@+iEBhjN@7W>RdP`(kYX@0Ff`LOFxNG-3^6peGB&U>G14|LvNAA`m{4AUq9Hdw aB{QuOw}#BK=Z^q2FnGH9xvXNSwWJ?9znhg z3{`3j3=J&|48MRv4KElNN(~qoUL`OvSj}Ky5HFasE6@fg!ItFh?!xdN1Q+aGJ{c&& zUgGKN%Km_xiC2-KneQA20|Vo4PZ!6Kh{H$2&*mL6;Mq3!Q;J8&^qZ;2gED6?`*uw4 z_F;v%wQKh>droJ2&VTHir=Y;~lh5`0vJ3X#Z*FB^=-^Oz^l7I=^Ur0O^PW}y`}9`P zZ@KUj2PLL|1qHKzezxl@l(FwMe7|r$zy1yj##FxI_lrmgMFJGx5(0fAm zq=~Ps(l@hT*M8T@GuAiWNm9Bbcu_&=z!_b^uc~!{Oo^AKHq7KdHiMBNVczp;9d>u3 zmUcbJ+g|)>*Ya?kL#_gaim!59z8pHUe%5~ZDP`JWTp7+2G$vJ+u}Lli7Rt;dGls-?q!pcUY?=l+xGZk*azgR8^GN!x!c5v}-#qRVz8wt=ew>Vlx+(w09jVHml5=%#{(Uvn8{0rc$E$ zyX1eXRknC;yOZiNBc5e?NuUEp~Y?=Q#gQV(Mh^`PaTC zcD+~Q2I)&yOG2Jr=D054u-4@HGbd4}t^Z6ow=Vw0ruCoQchP}O?!c6xTH+c}l9E`G zYL#4+3Zxi}3=GY54Gnb-j6w{Jt&EMW3=Fgl41wfz#x-wIH00)|WTsW(*03x_BoL^9 N!PC{xWt~$(69A&kFRB0l diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/icons/hidpi/copy.png b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/icons/hidpi/copy.png deleted file mode 100644 index 74c676563721cae8a7d6d1b68ba4db0b43ae385e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 759 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdzmUKs7M+SzC{oH>NSwWJ?9znhg z3{`3j3=J&|48MRv4KElNN(~qoUL`OvSj}Ky5HFasE6@fg!ItFh?!xdN1Q+aGJ{c&& zUgGKN%Km_xiC2-KneQA20|Vo4PZ!6Kh{H$2&*mL6;Mq3!Q;J8&^qZ;2gED6?`*uw4 z_F;v%wQKh>droJ2&VTHir=Y;~lh5`0vJ3X#Z*FB^=-^Oz^l7I=^Ur0O^PW}y`}9`P zZ@KUj2PLL|1qHKzezxl@l(FwMe7|r$zy1yj##FxI_lrmgMFJGx5(0fAm zq=~Ps(l@hT*M8T@GuAiWNm9Bbcu_&=z!_b^uc~!{Oo^AKHq7KdHiMBNVczp;9d>u3 zmUcbJ+g|)>*Ya?kL#_gaim!59z8pHUe%5~ZDP`JWTp7+2G$vJ+u}Lli7Rt;dGls-?q!pcUY?=l+xGZk*azgR8^GN!x!c5v}-#qRVz8wt=ew>Vlx+(w09jVHml5=%#{(Uvn8{0rc$E$ zyX1eXRknC;yOZiNBc5e?NuUEp~Y?=Q#gQV(Mh^`PaTC zcD+~Q2I)&yOG2Jr=D054u-4@HGbd4}t^Z6ow=Vw0ruCoQchP}O?!c6xTH+c}l9E`G zYL#4+3Zxi}3=GY54Gnb-j6w{Jt&EMW3=Fgl41wfz#x-wIH00)|WTsW(*03x_BoL^9 N!PC{xWt~$(69A&kFRB0l diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/icons/hidpi/cut-rtl.png b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/icons/hidpi/cut-rtl.png deleted file mode 100644 index f5a9b0da7954fed7d925972e54c43e87dac9e1f2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1576 zcmZ{kYgE#A9L9enUcxAtt7%w?nbQsOk9Z-qCI%BMO#fOkrDhS{n3obPR5r?6t&3$y znwPBQsEKplQbSClwW&mNUNNV(Ji0Qbo0=9nM=$qc=X<`-=bYy`&)es0NN^w;wGjmX zKrAg@tQ($pqPaqAfyt@jO{EEr36fjwI%Q5R!XgtVTtFr>YoWP_}!`Ye( z5&Poo_uH?^s%|U(Kc_-(Wf8b1k%?_^}(2(#?MCR^*iW+?kt< zzOPSWD>u*mB1^i6j-+DtbVqettfMQL&Sd3pWuohOt=?@SU;S&f`%0T=blNDsKW&Uz zt&3!{T{t$_BE6>>mKt=nxY$lnQ)32-?D%~CpkA+zh9odbTY7&VEoUn@`RAj+i}q>_ z0gv>1vip5{vuM^CRP?-vPEKAIe{Dk7CHdg>G4z@vv&zgj?%9|oxm=#J2@PB-F?8$$ zh-RBRI5ZT{^pq~+wQM3kA5mq1b{iX;JWj~?Dl5$|s>a7!RvF6i=BmQGTk%M3s>Z*- z>2_a&!cf@t7Gt)pD&8K`UG2e2O_RbqFwetX3&|-f|A>31=5gOF?S#y|c-qVc_)aDT zRlR(u`aniraejX9ue+fXO^1BYJPso>xa>WCjwlUAPt$2AP9Hb+hq7Yum|iXHWSg5y9RrbbJ^K zcMev62crpYZd}N=;{0*^L${zic6mAW4KOO;%+l?Mk<3>gkp?u+RWC#t^|z!m z;w@EGRhl&lg<@Re)K&Luu}*tC{G+PnFIS?-h{W#CCa;5&eK8e;gKy&eM1LQ}4;4_Q zlb+0iEr!)`{uo=ozoVXv{BPC3N6!}xbd)R|@S(IbHBdzha{s(FXwz!#(=_G_M zXxA>C*8bXSeoaE-+cs$(#uckx5Z{Wwmmmx%3BBypah*1I1R;UHo1r2=`Q&nzxwzJNn9{=_e?*77{mv!j9xl{+*ILZB%55?Aqzi*%8+KOR@(5E<0VB@)uv1+@oCl z%JXh&YHH2kSm~pF9io{FU+qd<{-W%R&XNj+-U%=7ORxYQ8!yayQGhKDXC~QcnBhA5 zczb&GIo$kgc02Y)&x=ec-(iiWbaQ>EyoXw^xA*J}Hfs*)_m;vlel-Giym3Fcidr+s zjhF&}Vf9y8PeBG1v)8OS+Sk)qq!Oe=*k3Tr8J7c#cTC%e@VNC#GluK@X++=Dd`MLv zhTa|WlORJi!o`A{E)NzLDcP7D?B|P)k&%&|lM-XoQ2*IIvHAwWjaDe?mFgd}AH!Q7 zOvpZFo2GP|fX)^iJuKk)aF6p$0PYaUi%237A@^_+*@sN_fuN5el1T>;3d4U2iOEOf YV?_U7_?Gj2sHp&$^kCZe0nw-b1?1(mwEzGB diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/icons/hidpi/cut.png b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/icons/hidpi/cut.png deleted file mode 100644 index f5a9b0da7954fed7d925972e54c43e87dac9e1f2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1576 zcmZ{kYgE#A9L9enUcxAtt7%w?nbQsOk9Z-qCI%BMO#fOkrDhS{n3obPR5r?6t&3$y znwPBQsEKplQbSClwW&mNUNNV(Ji0Qbo0=9nM=$qc=X<`-=bYy`&)es0NN^w;wGjmX zKrAg@tQ($pqPaqAfyt@jO{EEr36fjwI%Q5R!XgtVTtFr>YoWP_}!`Ye( z5&Poo_uH?^s%|U(Kc_-(Wf8b1k%?_^}(2(#?MCR^*iW+?kt< zzOPSWD>u*mB1^i6j-+DtbVqettfMQL&Sd3pWuohOt=?@SU;S&f`%0T=blNDsKW&Uz zt&3!{T{t$_BE6>>mKt=nxY$lnQ)32-?D%~CpkA+zh9odbTY7&VEoUn@`RAj+i}q>_ z0gv>1vip5{vuM^CRP?-vPEKAIe{Dk7CHdg>G4z@vv&zgj?%9|oxm=#J2@PB-F?8$$ zh-RBRI5ZT{^pq~+wQM3kA5mq1b{iX;JWj~?Dl5$|s>a7!RvF6i=BmQGTk%M3s>Z*- z>2_a&!cf@t7Gt)pD&8K`UG2e2O_RbqFwetX3&|-f|A>31=5gOF?S#y|c-qVc_)aDT zRlR(u`aniraejX9ue+fXO^1BYJPso>xa>WCjwlUAPt$2AP9Hb+hq7Yum|iXHWSg5y9RrbbJ^K zcMev62crpYZd}N=;{0*^L${zic6mAW4KOO;%+l?Mk<3>gkp?u+RWC#t^|z!m z;w@EGRhl&lg<@Re)K&Luu}*tC{G+PnFIS?-h{W#CCa;5&eK8e;gKy&eM1LQ}4;4_Q zlb+0iEr!)`{uo=ozoVXv{BPC3N6!}xbd)R|@S(IbHBdzha{s(FXwz!#(=_G_M zXxA>C*8bXSeoaE-+cs$(#uckx5Z{Wwmmmx%3BBypah*1I1R;UHo1r2=`Q&nzxwzJNn9{=_e?*77{mv!j9xl{+*ILZB%55?Aqzi*%8+KOR@(5E<0VB@)uv1+@oCl z%JXh&YHH2kSm~pF9io{FU+qd<{-W%R&XNj+-U%=7ORxYQ8!yayQGhKDXC~QcnBhA5 zczb&GIo$kgc02Y)&x=ec-(iiWbaQ>EyoXw^xA*J}Hfs*)_m;vlel-Giym3Fcidr+s zjhF&}Vf9y8PeBG1v)8OS+Sk)qq!Oe=*k3Tr8J7c#cTC%e@VNC#GluK@X++=Dd`MLv zhTa|WlORJi!o`A{E)NzLDcP7D?B|P)k&%&|lM-XoQ2*IIvHAwWjaDe?mFgd}AH!Q7 zOvpZFo2GP|fX)^iJuKk)aF6p$0PYaUi%237A@^_+*@sN_fuN5el1T>;3d4U2iOEOf YV?_U7_?Gj2sHp&$^kCZe0nw-b1?1(mwEzGB diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/icons/hidpi/paste-rtl.png b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/icons/hidpi/paste-rtl.png deleted file mode 100644 index 12cac92aab8bbe539077ea5aaec3442281e18a7a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 854 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdzmUKs7M+SzC{oH>NSwWJ?9znhg z3{`3j3=J&|48MRv4KElNN(~qoUL`OvSj}Ky5HFasE6@fg!ItFh?!xdN1Q+aGJ{c&& zUgGKN%Km_xiC2-KneQA20|Qf(r;B4q#NoB!2ea-N2-GTDe!KXu#p$JLKvj;y+d{=H zZ{BaSpWs}?y_dyn;TQfr=K9;xt2)vpPhVQMXE*bqO-m~MtBfb*+{)W7Ajr_rq2qO= zPUs>tgMsm!;`YLOzva*TiDl2S7S!$9CO+*2%f?&HVRMSv6&NIre~dn*+4^!urQ@F4 zZy6r2HfUHh*fXdsouVk9^eb0QgCS1s%*~3ldD;vNxwjW(N^M-_^G$B1nv%SU%jMt8 zcdc8R8@=kalu}VZ?m~ylCjMu5((2y+p4TU+*_d=>iCkMF!=5gVSG(#qtxiwd!SNzp zsj1`6y*qbqtgBaSeAZCRH@V;L|En2`Gz|J4uT5&NX`OmlZOV5$ncwHW9Y6E!Y|6Yc zuQS^_PEKQr%~s6oIlh*4XG+Zu38kvw2eT$`NOnFHao>|wFS7Q7U+~QNEtU?`pE;h2 zcR3gI;NRKsBX(N_0=MMdKDB92_=cq1NsJXCp=b8>uM)SOR5lNvJC#!q89?hzcGzblwS=GRPfnkz+RL)t!3rSrFolXFlC2syrFmXW@+q{19jK^-%g5L zBzC$nonghQSK-%7FKU~We!HE0?OJkIW@Jl(M4R>dy$nAhLZ_zsADyLBV6igzVWh@` zz1RI;KEHCXsCVvyuoe}UmPHy25A@1ZW^Y@4=8$IQx~Zu@O+%EvuAZiK=Figw4tg84 zu73afF!|9P|E)J8nHXlDP209;gWSJ@7R8-M{xSRK3tuwn5;+4*c&a6?5hW>!C8<`) zMX5lF!N|bSOxMs**T5*m(Adh@*vh~_+rSV=UT0kM7DYpDeoAIqC2kGNVnhOg8W=oX L{an^LB{Ts5yDewu diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/icons/hidpi/paste.png b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/icons/hidpi/paste.png deleted file mode 100644 index 12cac92aab8bbe539077ea5aaec3442281e18a7a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 854 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdzmUKs7M+SzC{oH>NSwWJ?9znhg z3{`3j3=J&|48MRv4KElNN(~qoUL`OvSj}Ky5HFasE6@fg!ItFh?!xdN1Q+aGJ{c&& zUgGKN%Km_xiC2-KneQA20|Qf(r;B4q#NoB!2ea-N2-GTDe!KXu#p$JLKvj;y+d{=H zZ{BaSpWs}?y_dyn;TQfr=K9;xt2)vpPhVQMXE*bqO-m~MtBfb*+{)W7Ajr_rq2qO= zPUs>tgMsm!;`YLOzva*TiDl2S7S!$9CO+*2%f?&HVRMSv6&NIre~dn*+4^!urQ@F4 zZy6r2HfUHh*fXdsouVk9^eb0QgCS1s%*~3ldD;vNxwjW(N^M-_^G$B1nv%SU%jMt8 zcdc8R8@=kalu}VZ?m~ylCjMu5((2y+p4TU+*_d=>iCkMF!=5gVSG(#qtxiwd!SNzp zsj1`6y*qbqtgBaSeAZCRH@V;L|En2`Gz|J4uT5&NX`OmlZOV5$ncwHW9Y6E!Y|6Yc zuQS^_PEKQr%~s6oIlh*4XG+Zu38kvw2eT$`NOnFHao>|wFS7Q7U+~QNEtU?`pE;h2 zcR3gI;NRKsBX(N_0=MMdKDB92_=cq1NsJXCp=b8>uM)SOR5lNvJC#!q89?hzcGzblwS=GRPfnkz+RL)t!3rSrFolXFlC2syrFmXW@+q{19jK^-%g5L zBzC$nonghQSK-%7FKU~We!HE0?OJkIW@Jl(M4R>dy$nAhLZ_zsADyLBV6igzVWh@` zz1RI;KEHCXsCVvyuoe}UmPHy25A@1ZW^Y@4=8$IQx~Zu@O+%EvuAZiK=Figw4tg84 zu73afF!|9P|E)J8nHXlDP209;gWSJ@7R8-M{xSRK3tuwn5;+4*c&a6?5hW>!C8<`) zMX5lF!N|bSOxMs**T5*m(Adh@*vh~_+rSV=UT0kM7DYpDeoAIqC2kGNVnhOg8W=oX L{an^LB{Ts5yDewu diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/icons/paste-rtl.png b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/icons/paste-rtl.png deleted file mode 100644 index 7039251b8cb48e7e9538446e1dea78bed26f33cd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 464 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Ea{HEjtmSN`?>!lvI6-E$sR$z z3=CDO3=9p;3=BX21L>Cx45bDP46hOx7_4S6Fo@?*ia+WGRLhp+?e4GCT9}yJnT8 zQ{uWlGdgIhs+_#rzB5ngm_+{py_O3~N-YgbYI{D~2v#oK>2=7c_^9xKrCASyb#(t; zS2m(fiNCA#_<@1KpjzS@QIe8al4_M) zlnSI6j0_CTbPddP4J|_qjjfCgtW1ow4UDV|3?wF$SDcptHiA#^X&N}Kn)C@ Lu6{1-oD!M<`0Adx diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/icons/paste.png b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/icons/paste.png deleted file mode 100644 index 7039251b8cb48e7e9538446e1dea78bed26f33cd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 464 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Ea{HEjtmSN`?>!lvI6-E$sR$z z3=CDO3=9p;3=BX21L>Cx45bDP46hOx7_4S6Fo@?*ia+WGRLhp+?e4GCT9}yJnT8 zQ{uWlGdgIhs+_#rzB5ngm_+{py_O3~N-YgbYI{D~2v#oK>2=7c_^9xKrCASyb#(t; zS2m(fiNCA#_<@1KpjzS@QIe8al4_M) zlnSI6j0_CTbPddP4J|_qjjfCgtW1ow4UDV|3?wF$SDcptHiA#^X&N}Kn)C@ Lu6{1-oD!M<`0Adx diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/af.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/af.js deleted file mode 100644 index f163930..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/af.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'af', { - copy: 'Kopiëer', - copyError: 'U blaaier se sekuriteitsinstelling belet die kopiëringsaksie. Gebruik die sleutelbordkombinasie (Ctrl/Cmd+C).', - cut: 'Knip', - cutError: 'U blaaier se sekuriteitsinstelling belet die outomatiese knip-aksie. Gebruik die sleutelbordkombinasie (Ctrl/Cmd+X).', - paste: 'Plak', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/ar.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/ar.js deleted file mode 100644 index 711e3da..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/ar.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'ar', { - copy: 'نسخ', - copyError: 'الإعدادات الأمنية للمتصفح الذي تستخدمه تمنع عمليات النسخ التلقائي. فضلاً إستخدم لوحة المفاتيح لفعل ذلك (Ctrl/Cmd+C).', - cut: 'قص', - cutError: 'الإعدادات الأمنية للمتصفح الذي تستخدمه تمنع القص التلقائي. فضلاً إستخدم لوحة المفاتيح لفعل ذلك (Ctrl/Cmd+X).', - paste: 'لصق', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/az.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/az.js deleted file mode 100644 index 42c713f..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/az.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'az', { - copy: 'Köçür', - copyError: 'Avtomatik köçürülməsi mümkün deyil. Ctrl+C basın.', - cut: 'Kəs', - cutError: 'Avtomatik kəsmə mümkün deyil. Ctrl+X basın.', - paste: 'Əlavə et', - pasteNotification: 'Sizin İnternet bələdçisi bu cür mətnin köçürməsi dəstəklənmir. Əlavə etmək üçün %1 basın.' -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/bg.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/bg.js deleted file mode 100644 index cbf1cbf..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/bg.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'bg', { - copy: 'Копирай', - copyError: 'Настройките за сигурност на вашия бразуър не разрешават на редактора да изпълни запаметяването. За целта използвайте клавиатурата (Ctrl/Cmd+C).', - cut: 'Отрежи', - cutError: 'Настройките за сигурност на Вашия браузър не позволяват на редактора автоматично да изъплни действията за отрязване. Моля ползвайте клавиатурните команди за целта (ctrl+x).', - paste: 'Вмъкни', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/bn.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/bn.js deleted file mode 100644 index 746bfb0..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/bn.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'bn', { - copy: 'কপি', - copyError: 'আপনার ব্রাউজারের নিরাপত্তা সেটিংসমূহ এডিটরকে স্বয়ংক্রিয়ভাবে কপি করার প্রক্রিয়া চালনা করার অনুমতি দেয় না। অনুগ্রহপূর্বক এই কাজের জন্য কিবোর্ড ব্যবহার করুন (Ctrl/Cmd+C)।', - cut: 'কাট', - cutError: 'আপনার ব্রাউজারের সুরক্ষা সেটিংস এডিটরকে অটোমেটিক কাট করার অনুমতি দেয়নি। দয়া করে এই কাজের জন্য কিবোর্ড ব্যবহার করুন (Ctrl/Cmd+X)।', - paste: 'পেস্ট', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/bs.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/bs.js deleted file mode 100644 index 020ea2b..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/bs.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'bs', { - copy: 'Kopiraj', - copyError: 'Sigurnosne postavke Vašeg pretraživaèa ne dozvoljavaju operacije automatskog kopiranja. Molimo koristite kraticu na tastaturi (Ctrl/Cmd+C).', - cut: 'Izreži', - cutError: 'Sigurnosne postavke vašeg pretraživaèa ne dozvoljavaju operacije automatskog rezanja. Molimo koristite kraticu na tastaturi (Ctrl/Cmd+X).', - paste: 'Zalijepi', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/ca.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/ca.js deleted file mode 100644 index 37c4b41..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/ca.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'ca', { - copy: 'Copiar', - copyError: 'La configuració de seguretat del vostre navegador no permet executar automàticament les operacions de copiar. Si us plau, utilitzeu el teclat (Ctrl/Cmd+C).', - cut: 'Retallar', - cutError: 'La configuració de seguretat del vostre navegador no permet executar automàticament les operacions de retallar. Si us plau, utilitzeu el teclat (Ctrl/Cmd+X).', - paste: 'Enganxar', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/cs.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/cs.js deleted file mode 100644 index c44976c..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/cs.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'cs', { - copy: 'Kopírovat', - copyError: 'Bezpečnostní nastavení vašeho prohlížeče nedovolují editoru spustit funkci pro kopírování zvoleného textu do schránky. Prosím zkopírujte zvolený text do schránky pomocí klávesnice (Ctrl/Cmd+C).', - cut: 'Vyjmout', - cutError: 'Bezpečnostní nastavení vašeho prohlížeče nedovolují editoru spustit funkci pro vyjmutí zvoleného textu do schránky. Prosím vyjměte zvolený text do schránky pomocí klávesnice (Ctrl/Cmd+X).', - paste: 'Vložit', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/cy.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/cy.js deleted file mode 100644 index 2d5cb66..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/cy.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'cy', { - copy: 'Copïo', - copyError: '\'Dyw gosodiadau diogelwch eich porwr ddim yn caniatàu\'r golygydd i gynnal \'gweithredoedd copïo\' yn awtomatig. Defnyddiwch y bysellfwrdd (Ctrl/Cmd+C).', - cut: 'Torri', - cutError: 'Nid yw gosodiadau diogelwch eich porwr yn caniatàu\'r golygydd i gynnal \'gweithredoedd torri\' yn awtomatig. Defnyddiwch y bysellfwrdd (Ctrl/Cmd+X).', - paste: 'Gludo', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/da.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/da.js deleted file mode 100644 index 9d91557..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/da.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'da', { - copy: 'Kopiér', - copyError: 'Din browsers sikkerhedsindstillinger tillader ikke editoren at få automatisk adgang til udklipsholderen.

Brug i stedet tastaturet til at kopiere teksten (Ctrl/Cmd+C).', - cut: 'Klip', - cutError: 'Din browsers sikkerhedsindstillinger tillader ikke editoren at få automatisk adgang til udklipsholderen.

Brug i stedet tastaturet til at klippe teksten (Ctrl/Cmd+X).', - paste: 'Indsæt', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/de-ch.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/de-ch.js deleted file mode 100644 index 67d51e0..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/de-ch.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'de-ch', { - copy: 'Kopieren', - copyError: 'Die Sicherheitseinstellungen Ihres Browsers lassen es nicht zu, den Text automatisch kopieren. Bitte benutzen Sie die System-Zwischenablage über STRG-C (kopieren).', - cut: 'Ausschneiden', - cutError: 'Die Sicherheitseinstellungen Ihres Browsers lassen es nicht zu, den Text automatisch auszuschneiden. Bitte benutzen Sie die System-Zwischenablage über STRG-X (ausschneiden) und STRG-V (einfügen).', - paste: 'Einfügen', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/de.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/de.js deleted file mode 100644 index 9bdd147..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/de.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'de', { - copy: 'Kopieren', - copyError: 'Die Sicherheitseinstellungen Ihres Browsers lassen es nicht zu, den Text automatisch kopieren. Bitte benutzen Sie die System-Zwischenablage über STRG-C (kopieren).', - cut: 'Ausschneiden', - cutError: 'Die Sicherheitseinstellungen Ihres Browsers lassen es nicht zu, den Text automatisch auszuschneiden. Bitte benutzen Sie die System-Zwischenablage über STRG-X (ausschneiden) und STRG-V (einfügen).', - paste: 'Einfügen', - pasteNotification: 'Ihr Browser verhindert das Einfügen über diesen Weg. Zum einfügen drücken Sie %1.' -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/el.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/el.js deleted file mode 100644 index f49ee89..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/el.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'el', { - copy: 'Αντιγραφή', - copyError: 'Οι ρυθμίσεις ασφαλείας του περιηγητή σας δεν επιτρέπουν την επιλεγμένη εργασία αντιγραφής. Παρακαλώ χρησιμοποιείστε το πληκτρολόγιο (Ctrl/Cmd+C).', - cut: 'Αποκοπή', - cutError: 'Οι ρυθμίσεις ασφαλείας του περιηγητή σας δεν επιτρέπουν την επιλεγμένη εργασία αποκοπής. Παρακαλώ χρησιμοποιείστε το πληκτρολόγιο (Ctrl/Cmd+X).', - paste: 'Επικόλληση', - pasteNotification: 'Ο περιηγητής σας δεν σας επιτρέπει να επικολλήσετε με αυτόν τον τρόπο. Πατήστε %1 για επικόλληση.' -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/en-au.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/en-au.js deleted file mode 100644 index 4212ec9..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/en-au.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'en-au', { - copy: 'Copy', - copyError: 'Your browser security settings don\'t permit the editor to automatically execute copying operations. Please use the keyboard for that (Ctrl/Cmd+C).', - cut: 'Cut', - cutError: 'Your browser security settings don\'t permit the editor to automatically execute cutting operations. Please use the keyboard for that (Ctrl/Cmd+X).', - paste: 'Paste', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/en-ca.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/en-ca.js deleted file mode 100644 index f47aae3..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/en-ca.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'en-ca', { - copy: 'Copy', - copyError: 'Your browser security settings don\'t permit the editor to automatically execute copying operations. Please use the keyboard for that (Ctrl/Cmd+C).', - cut: 'Cut', - cutError: 'Your browser security settings don\'t permit the editor to automatically execute cutting operations. Please use the keyboard for that (Ctrl/Cmd+X).', - paste: 'Paste', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/en-gb.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/en-gb.js deleted file mode 100644 index 958a070..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/en-gb.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'en-gb', { - copy: 'Copy', - copyError: 'Your browser security settings don\'t permit the editor to automatically execute copying operations. Please use the keyboard for that (Ctrl/Cmd+C).', - cut: 'Cut', - cutError: 'Your browser security settings don\'t permit the editor to automatically execute cutting operations. Please use the keyboard for that (Ctrl/Cmd+X).', - paste: 'Paste', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/en.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/en.js deleted file mode 100644 index 9ea48a4..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/en.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'en', { - copy: 'Copy', - copyError: 'Your browser security settings don\'t permit the editor to automatically execute copying operations. Please use the keyboard for that (Ctrl/Cmd+C).', - cut: 'Cut', - cutError: 'Your browser security settings don\'t permit the editor to automatically execute cutting operations. Please use the keyboard for that (Ctrl/Cmd+X).', - paste: 'Paste', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/eo.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/eo.js deleted file mode 100644 index 27c5108..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/eo.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'eo', { - copy: 'Kopii', - copyError: 'La sekurecagordo de via TTT-legilo ne permesas, ke la redaktilo faras kopiajn operaciojn. Bonvolu uzi la klavaron por tio (Ctrl/Cmd-C).', - cut: 'Eltondi', - cutError: 'La sekurecagordo de via TTT-legilo ne permesas, ke la redaktilo faras eltondajn operaciojn. Bonvolu uzi la klavaron por tio (Ctrl/Cmd-X).', - paste: 'Interglui', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/es-mx.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/es-mx.js deleted file mode 100644 index c8f6033..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/es-mx.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'es-mx', { - copy: 'Copiar', - copyError: 'La configuración de seguridad de su navegador no permite al editor ejecutar automáticamente operaciones de copiado. Por favor, utilice el teclado para (Ctrl/Cmd+C).', - cut: 'Cortar', - cutError: 'La configuración de seguridad de su navegador no permite al editor ejecutar automáticamente operaciones de corte. Por favor, utilice el teclado para (Ctrl/Cmd+X).', - paste: 'Pegar', - pasteNotification: 'Tu navegador no permite pegar de esta manera. Presiona %1 para pegar.' -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/es.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/es.js deleted file mode 100644 index e2dbf4e..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/es.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'es', { - copy: 'Copiar', - copyError: 'La configuración de seguridad de este navegador no permite la ejecución automática de operaciones de copiado.\r\nPor favor use el teclado (Ctrl/Cmd+C).', - cut: 'Cortar', - cutError: 'La configuración de seguridad de este navegador no permite la ejecución automática de operaciones de cortado.\r\nPor favor use el teclado (Ctrl/Cmd+X).', - paste: 'Pegar', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/et.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/et.js deleted file mode 100644 index 242a7cd..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/et.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'et', { - copy: 'Kopeeri', - copyError: 'Sinu veebisirvija turvaseaded ei luba redaktoril automaatselt kopeerida. Palun kasutage selleks klaviatuuri klahvikombinatsiooni (Ctrl/Cmd+C).', - cut: 'Lõika', - cutError: 'Sinu veebisirvija turvaseaded ei luba redaktoril automaatselt lõigata. Palun kasutage selleks klaviatuuri klahvikombinatsiooni (Ctrl/Cmd+X).', - paste: 'Aseta', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/eu.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/eu.js deleted file mode 100644 index 1e233af..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/eu.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'eu', { - copy: 'Kopiatu', - copyError: 'Zure web nabigatzailearen segurtasun ezarpenek ez dute baimentzen testuak automatikoki kopiatzea. Mesedez teklatua erabil ezazu (Ctrl/Cmd+C).', - cut: 'Ebaki', - cutError: 'Zure web nabigatzailearen segurtasun ezarpenek ez dute baimentzen testuak automatikoki moztea. Mesedez teklatua erabil ezazu (Ctrl/Cmd+X).', - paste: 'Itsatsi', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/fa.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/fa.js deleted file mode 100644 index e0e01c3..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/fa.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'fa', { - copy: 'رونوشت', - copyError: 'تنظیمات امنیتی مرورگر شما اجازه نمیدهد که ویرایشگر به طور خودکار عملکردهای کپی کردن را انجام دهد. لطفا با دکمههای صفحه کلید این کار را انجام دهید (Ctrl/Cmd+C).', - cut: 'برش', - cutError: 'تنظیمات امنیتی مرورگر شما اجازه نمیدهد که ویرایشگر به طور خودکار عملکردهای برش را انجام دهد. لطفا با دکمههای صفحه کلید این کار را انجام دهید (Ctrl/Cmd+X).', - paste: 'چسباندن', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/fi.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/fi.js deleted file mode 100644 index ba0fed2..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/fi.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'fi', { - copy: 'Kopioi', - copyError: 'Selaimesi turva-asetukset eivät salli editorin toteuttaa kopioimista. Käytä näppäimistöä kopioimiseen (Ctrl+C).', - cut: 'Leikkaa', - cutError: 'Selaimesi turva-asetukset eivät salli editorin toteuttaa leikkaamista. Käytä näppäimistöä leikkaamiseen (Ctrl+X).', - paste: 'Liitä', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/fo.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/fo.js deleted file mode 100644 index 9c4408e..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/fo.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'fo', { - copy: 'Avrita', - copyError: 'Trygdaruppseting alnótskagans forðar tekstviðgeranum í at avrita tekstin. Vinarliga nýt knappaborðið til at avrita tekstin (Ctrl/Cmd+C).', - cut: 'Kvett', - cutError: 'Trygdaruppseting alnótskagans forðar tekstviðgeranum í at kvetta tekstin. Vinarliga nýt knappaborðið til at kvetta tekstin (Ctrl/Cmd+X).', - paste: 'Innrita', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/fr-ca.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/fr-ca.js deleted file mode 100644 index 0f77bdb..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/fr-ca.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'fr-ca', { - copy: 'Copier', - copyError: 'Les paramètres de sécurité de votre navigateur empêchent l\'éditeur de copier automatiquement vos données. Veuillez utiliser les équivalents claviers (Ctrl/Cmd+C).', - cut: 'Couper', - cutError: 'Les paramètres de sécurité de votre navigateur empêchent l\'éditeur de couper automatiquement vos données. Veuillez utiliser les équivalents claviers (Ctrl/Cmd+X).', - paste: 'Coller', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/fr.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/fr.js deleted file mode 100644 index 49d58dc..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/fr.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'fr', { - copy: 'Copier', - copyError: 'Les paramètres de sécurité de votre navigateur n\'autorisent pas l\'éditeur à exécuter automatiquement l\'opération « Copier ». Veuillez utiliser le raccourci clavier à cet effet (Ctrl/Cmd+C).', - cut: 'Couper', - cutError: 'Les paramètres de sécurité de votre navigateur n\'autorisent pas l\'éditeur à exécuter automatiquement l\'opération « Couper ». Veuillez utiliser le raccourci clavier à cet effet (Ctrl/Cmd+X).', - paste: 'Coller', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/gl.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/gl.js deleted file mode 100644 index 9b9b5a4..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/gl.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'gl', { - copy: 'Copiar', - copyError: 'Os axustes de seguranza do seu navegador non permiten que o editor realice automaticamente as tarefas de copia. Use o teclado para iso (Ctrl/Cmd+C).', - cut: 'Cortar', - cutError: 'Os axustes de seguranza do seu navegador non permiten que o editor realice automaticamente as tarefas de corte. Use o teclado para iso (Ctrl/Cmd+X).', - paste: 'Pegar', - pasteNotification: 'O seu navegador non permite pegar deste xeito. Prema %1 para pegar.' -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/gu.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/gu.js deleted file mode 100644 index 9f05c7b..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/gu.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'gu', { - copy: 'નકલ', - copyError: 'તમારા બ્રાઉઝર ની સુરક્ષિત સેટિંગસ કોપી કરવાની પરવાનગી નથી આપતી. (Ctrl/Cmd+C) का प्रयोग करें।', - cut: 'કાપવું', - cutError: 'તમારા બ્રાઉઝર ની સુરક્ષિત સેટિંગસ કટ કરવાની પરવાનગી નથી આપતી. (Ctrl/Cmd+X) નો ઉપયોગ કરો.', - paste: 'પેસ્ટ', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/he.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/he.js deleted file mode 100644 index 35b45d0..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/he.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'he', { - copy: 'העתקה', - copyError: 'הגדרות האבטחה בדפדפן שלך לא מאפשרות לעורך לבצע פעולות העתקה אוטומטיות. יש להשתמש במקלדת לשם כך (Ctrl/Cmd+C).', - cut: 'גזירה', - cutError: 'הגדרות האבטחה בדפדפן שלך לא מאפשרות לעורך לבצע פעולות גזירה אוטומטיות. יש להשתמש במקלדת לשם כך (Ctrl/Cmd+X).', - paste: 'הדבקה', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/hi.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/hi.js deleted file mode 100644 index 95ff3cf..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/hi.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'hi', { - copy: 'कॉपी', - copyError: 'आपके ब्राआउज़र की सुरक्षा सॅटिन्ग्स ने कॉपी करने की अनुमति नहीं प्रदान की है। (Ctrl/Cmd+C) का प्रयोग करें।', - cut: 'कट', - cutError: 'आपके ब्राउज़र की सुरक्षा सॅटिन्ग्स ने कट करने की अनुमति नहीं प्रदान की है। (Ctrl/Cmd+X) का प्रयोग करें।', - paste: 'पेस्ट', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/hr.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/hr.js deleted file mode 100644 index 9f45289..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/hr.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'hr', { - copy: 'Kopiraj', - copyError: 'Sigurnosne postavke Vašeg pretraživača ne dozvoljavaju operacije automatskog kopiranja. Molimo koristite kraticu na tipkovnici (Ctrl/Cmd+C).', - cut: 'Izreži', - cutError: 'Sigurnosne postavke Vašeg pretraživača ne dozvoljavaju operacije automatskog izrezivanja. Molimo koristite kraticu na tipkovnici (Ctrl/Cmd+X).', - paste: 'Zalijepi', - pasteNotification: 'Vaš preglednik Vam ne dozvoljava lijepljenje na ovaj način. Za lijepljenje, pritisnite %1.' -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/hu.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/hu.js deleted file mode 100644 index a5fa627..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/hu.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'hu', { - copy: 'Másolás', - copyError: 'A böngésző biztonsági beállításai nem engedélyezik a szerkesztőnek, hogy végrehajtsa a másolás műveletet. Használja az alábbi billentyűkombinációt (Ctrl/Cmd+X).', - cut: 'Kivágás', - cutError: 'A böngésző biztonsági beállításai nem engedélyezik a szerkesztőnek, hogy végrehajtsa a kivágás műveletet. Használja az alábbi billentyűkombinációt (Ctrl/Cmd+X).', - paste: 'Beillesztés', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/id.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/id.js deleted file mode 100644 index 226e0ef..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/id.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'id', { - copy: 'Salin', - copyError: 'Pengaturan keamanan peramban anda tidak mengizinkan editor untuk mengeksekusi operasi menyalin secara otomatis. Mohon gunakan papan tuts (Ctrl/Cmd+C)', - cut: 'Potong', - cutError: 'Your browser security settings don\'t permit the editor to automatically execute cutting operations. Please use the keyboard for that (Ctrl/Cmd+X).', // MISSING - paste: 'Tempel', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/is.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/is.js deleted file mode 100644 index 7daa195..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/is.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'is', { - copy: 'Afrita', - copyError: 'Öryggisstillingar vafrans þíns leyfa ekki afritun texta með músaraðgerð. Notaðu lyklaborðið í afrita (Ctrl/Cmd+C).', - cut: 'Klippa', - cutError: 'Öryggisstillingar vafrans þíns leyfa ekki klippingu texta með músaraðgerð. Notaðu lyklaborðið í klippa (Ctrl/Cmd+X).', - paste: 'Líma', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/it.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/it.js deleted file mode 100644 index f8fde39..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/it.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'it', { - copy: 'Copia', - copyError: 'Le impostazioni di sicurezza del browser non permettono di copiare automaticamente il testo. Usa la tastiera (Ctrl/Cmd+C).', - cut: 'Taglia', - cutError: 'Le impostazioni di sicurezza del browser non permettono di tagliare automaticamente il testo. Usa la tastiera (Ctrl/Cmd+X).', - paste: 'Incolla', - pasteNotification: 'Il browser non permette di incollare in questo modo. Premere %1 per incollare.' -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/ja.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/ja.js deleted file mode 100644 index a2a0845..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/ja.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'ja', { - copy: 'コピー', - copyError: 'ブラウザーのセキュリティ設定によりエディタのコピー操作を自動で実行することができません。実行するには手動でキーボードの(Ctrl/Cmd+C)を使用してください。', - cut: '切り取り', - cutError: 'ブラウザーのセキュリティ設定によりエディタの切り取り操作を自動で実行することができません。実行するには手動でキーボードの(Ctrl/Cmd+X)を使用してください。', - paste: '貼り付け', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/ka.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/ka.js deleted file mode 100644 index d96557c..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/ka.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'ka', { - copy: 'ასლი', - copyError: 'თქვენი ბროუზერის უსაფრთხოების პარამეტრები არ იძლევა ასლის ოპერაციის ავტომატურად განხორციელების საშუალებას. გამოიყენეთ კლავიატურა ამისთვის (Ctrl/Cmd+C).', - cut: 'ამოჭრა', - cutError: 'თქვენი ბროუზერის უსაფრთხოების პარამეტრები არ იძლევა ამოჭრის ოპერაციის ავტომატურად განხორციელების საშუალებას. გამოიყენეთ კლავიატურა ამისთვის (Ctrl/Cmd+X).', - paste: 'ჩასმა', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/km.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/km.js deleted file mode 100644 index 5ce57f9..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/km.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'km', { - copy: 'ចម្លង', - copyError: 'ការកំណត់សុវត្ថភាពរបស់កម្មវិធីរុករករបស់លោកអ្នក នេះ​មិនអាចធ្វើកម្មវិធីតាក់តែងអត្ថបទ ចំលងអត្ថបទយកដោយស្វ័យប្រវត្តបានឡើយ ។ សូមប្រើប្រាស់បន្សំ ឃីដូចនេះ (Ctrl/Cmd+C)។', - cut: 'កាត់យក', - cutError: 'ការកំណត់សុវត្ថភាពរបស់កម្មវិធីរុករករបស់លោកអ្នក នេះ​មិនអាចធ្វើកម្មវិធីតាក់តែងអត្ថបទ កាត់អត្ថបទយកដោយស្វ័យប្រវត្តបានឡើយ ។ សូមប្រើប្រាស់បន្សំ ឃីដូចនេះ (Ctrl/Cmd+X) ។', - paste: 'បិទ​ភ្ជាប់', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/ko.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/ko.js deleted file mode 100644 index fff7d11..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/ko.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'ko', { - copy: '복사', - copyError: '브라우저의 보안설정 때문에 복사할 수 없습니다. 키보드(Ctrl/Cmd+C)를 이용해서 복사하십시오.', - cut: '잘라내기', - cutError: '브라우저의 보안설정 때문에 잘라내기 기능을 실행할 수 없습니다. 키보드(Ctrl/Cmd+X)를 이용해서 잘라내기 하십시오', - paste: '붙여넣기', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/ku.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/ku.js deleted file mode 100644 index 76942d5..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/ku.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'ku', { - copy: 'لەبەرگرتنەوە', - copyError: 'پارێزی وێبگەڕەکەت ڕێگەنادات بەسەرنووسەکە لە لکاندنی دەقی خۆکارارنە. تکایە لەبری ئەمە ئەم فەرمانە بەکاربهێنە بەداگرتنی کلیلی (Ctrl/Cmd+C).', - cut: 'بڕین', - cutError: 'پارێزی وێبگەڕەکەت ڕێگەنادات بە سەرنووسەکە لەبڕینی خۆکارانە. تکایە لەبری ئەمە ئەم فەرمانە بەکاربهێنە بەداگرتنی کلیلی (Ctrl/Cmd+X).', - paste: 'لکاندن', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/lt.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/lt.js deleted file mode 100644 index 37069ef..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/lt.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'lt', { - copy: 'Kopijuoti', - copyError: 'Jūsų naršyklės saugumo nustatymai neleidžia redaktoriui automatiškai įvykdyti kopijavimo operacijų. Tam prašome naudoti klaviatūrą (Ctrl/Cmd+C).', - cut: 'Iškirpti', - cutError: 'Jūsų naršyklės saugumo nustatymai neleidžia redaktoriui automatiškai įvykdyti iškirpimo operacijų. Tam prašome naudoti klaviatūrą (Ctrl/Cmd+X).', - paste: 'Įdėti', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/lv.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/lv.js deleted file mode 100644 index bc21dd6..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/lv.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'lv', { - copy: 'Kopēt', - copyError: 'Jūsu pārlūkprogrammas drošības iestatījumi nepieļauj redaktoram automātiski veikt kopēšanas darbību. Lūdzu, izmantojiet (Ctrl/Cmd+C), lai veiktu šo darbību.', - cut: 'Izgriezt', - cutError: 'Jūsu pārlūkprogrammas drošības iestatījumi nepieļauj redaktoram automātiski veikt izgriezšanas darbību. Lūdzu, izmantojiet (Ctrl/Cmd+X), lai veiktu šo darbību.', - paste: 'Ielīmēt', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/mk.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/mk.js deleted file mode 100644 index 626d6be..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/mk.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'mk', { - copy: 'Копирај (Copy)', - copyError: 'Опциите за безбедност на вашиот прелистувач не дозволуваат уредувачот автоматски да изврши копирање. Ве молиме употребете ја тастатурата. (Ctrl/Cmd+C)', - cut: 'Исечи (Cut)', - cutError: 'Опциите за безбедност на вашиот прелистувач не дозволуваат уредувачот автоматски да изврши сечење. Ве молиме употребете ја тастатурата. (Ctrl/Cmd+C)', - paste: 'Залепи (Paste)', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/mn.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/mn.js deleted file mode 100644 index cc7fe92..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/mn.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'mn', { - copy: 'Хуулах', - copyError: 'Таны browser-ын хамгаалалтын тохиргоо editor-д автоматаар хуулах үйлдэлийг зөвшөөрөхгүй байна. (Ctrl/Cmd+C) товчны хослолыг ашиглана уу.', - cut: 'Хайчлах', - cutError: 'Таны browser-ын хамгаалалтын тохиргоо editor-д автоматаар хайчлах үйлдэлийг зөвшөөрөхгүй байна. (Ctrl/Cmd+X) товчны хослолыг ашиглана уу.', - paste: 'Буулгах', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/ms.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/ms.js deleted file mode 100644 index 94faeb8..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/ms.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'ms', { - copy: 'Salin', - copyError: 'Keselamatan perisian browser anda tidak membenarkan operasi salinan text/imej. Sila gunakan papan kekunci (Ctrl/Cmd+C).', - cut: 'Potong', - cutError: 'Keselamatan perisian browser anda tidak membenarkan operasi suntingan text/imej. Sila gunakan papan kekunci (Ctrl/Cmd+X).', - paste: 'Tampal', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/nb.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/nb.js deleted file mode 100644 index 88d6e29..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/nb.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'nb', { - copy: 'Kopier', - copyError: 'Din nettlesers sikkerhetsinstillinger tillater ikke automatisk kopiering av tekst. Vennligst bruk tastatursnarveien (Ctrl/Cmd+C).', - cut: 'Klipp ut', - cutError: 'Din nettlesers sikkerhetsinstillinger tillater ikke automatisk utklipping av tekst. Vennligst bruk tastatursnarveien (Ctrl/Cmd+X).', - paste: 'Lim inn', - pasteNotification: 'Nettleseren din lar deg ikke lime inn på denne måten. Trykk %1 for å lime inn.' -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/nl.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/nl.js deleted file mode 100644 index c365e0d..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/nl.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'nl', { - copy: 'Kopiëren', - copyError: 'De beveiligingsinstelling van de browser verhinderen het automatisch kopiëren. Gebruik de sneltoets Ctrl/Cmd+C van het toetsenbord.', - cut: 'Knippen', - cutError: 'De beveiligingsinstelling van de browser verhinderen het automatisch knippen. Gebruik de sneltoets Ctrl/Cmd+X van het toetsenbord.', - paste: 'Plakken', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/no.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/no.js deleted file mode 100644 index bd5bb36..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/no.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'no', { - copy: 'Kopier', - copyError: 'Din nettlesers sikkerhetsinstillinger tillater ikke automatisk kopiering av tekst. Vennligst bruk snarveien (Ctrl/Cmd+C).', - cut: 'Klipp ut', - cutError: 'Din nettlesers sikkerhetsinstillinger tillater ikke automatisk utklipping av tekst. Vennligst bruk snarveien (Ctrl/Cmd+X).', - paste: 'Lim inn', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/oc.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/oc.js deleted file mode 100644 index 1eb36f9..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/oc.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'oc', { - copy: 'Copiar', - copyError: 'Los paramètres de seguretat de vòstre navigador autorizan pas l\'editor a executar automaticament l\'operacion « Copiar ». Utilizatz l\'acorchi de clavièr a aqueste efièit (Ctrl/Cmd+C).', - cut: 'Talhar', - cutError: 'Los paramètres de seguretat de vòstre navigador autorizan pas l\'editor a executar automaticament l\'operacion « Talhar ». Utilizatz l\'acorchi de clavièr a aqueste efièit (Ctrl/Cmd+X).', - paste: 'Pegar', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/pl.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/pl.js deleted file mode 100644 index 27b24d6..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/pl.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'pl', { - copy: 'Kopiuj', - copyError: 'Ustawienia bezpieczeństwa Twojej przeglądarki nie pozwalają na automatyczne kopiowanie tekstu. Użyj skrótu klawiszowego Ctrl/Cmd+C.', - cut: 'Wytnij', - cutError: 'Ustawienia bezpieczeństwa Twojej przeglądarki nie pozwalają na automatyczne wycinanie tekstu. Użyj skrótu klawiszowego Ctrl/Cmd+X.', - paste: 'Wklej', - pasteNotification: 'Twoja przeglądarka nie pozwala na wklejanie treści w ten sposób. Naciśnij %1 by wkleić tekst.' -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/pt-br.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/pt-br.js deleted file mode 100644 index 66d9021..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/pt-br.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'pt-br', { - copy: 'Copiar', - copyError: 'As configurações de segurança do seu navegador não permitem que o editor execute operações de copiar automaticamente. Por favor, utilize o teclado para copiar (Ctrl/Cmd+C).', - cut: 'Recortar', - cutError: 'As configurações de segurança do seu navegador não permitem que o editor execute operações de recortar automaticamente. Por favor, utilize o teclado para recortar (Ctrl/Cmd+X).', - paste: 'Colar', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/pt.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/pt.js deleted file mode 100644 index ac419df..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/pt.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'pt', { - copy: 'Copiar', - copyError: 'A configuração de segurança do navegador não permite a execução automática de operações de copiar. Por favor use o teclado (Ctrl/Cmd+C).', - cut: 'Cortar', - cutError: 'A configuração de segurança do navegador não permite a execução automática de operações de cortar. Por favor use o teclado (Ctrl/Cmd+X).', - paste: 'Colar', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/ro.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/ro.js deleted file mode 100644 index 0f7f745..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/ro.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'ro', { - copy: 'Copiază', - copyError: 'Setările de securitate ale navigatorului (browser) pe care îl folosiţi nu permit editorului să execute automat operaţiunea de copiere. Vă rugăm folosiţi tastatura (Ctrl/Cmd+C).', - cut: 'Taie', - cutError: 'Setările de securitate ale navigatorului (browser) pe care îl folosiţi nu permit editorului să execute automat operaţiunea de tăiere. Vă rugăm folosiţi tastatura (Ctrl/Cmd+X).', - paste: 'Adaugă', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/ru.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/ru.js deleted file mode 100644 index 0c3ddb5..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/ru.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'ru', { - copy: 'Копировать', - copyError: 'Настройки безопасности вашего браузера не разрешают редактору выполнять операции по копированию текста. Пожалуйста, используйте для этого клавиатуру (Ctrl/Cmd+C).', - cut: 'Вырезать', - cutError: 'Настройки безопасности вашего браузера не разрешают редактору выполнять операции по вырезке текста. Пожалуйста, используйте для этого клавиатуру (Ctrl/Cmd+X).', - paste: 'Вставить', - pasteNotification: 'Ваш браузер не поддерживает данный метод вставки. Для вставки нажмите %1' -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/si.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/si.js deleted file mode 100644 index e20f484..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/si.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'si', { - copy: 'පිටපත් කරන්න', - copyError: 'Your browser security settings don\'t permit the editor to automatically execute copying operations. Please use the keyboard for that (Ctrl/Cmd+C).', // MISSING - cut: 'කපාගන්න', - cutError: 'Your browser security settings don\'t permit the editor to automatically execute cutting operations. Please use the keyboard for that (Ctrl/Cmd+X).', // MISSING - paste: 'අලවන්න', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/sk.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/sk.js deleted file mode 100644 index f9d165e..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/sk.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'sk', { - copy: 'Kopírovať', - copyError: 'Bezpečnostné nastavenia vášho prehliadača nedovoľujú editoru automaticky spustiť operáciu kopírovania. Použite na to klávesnicu (Ctrl/Cmd+C).', - cut: 'Vystrihnúť', - cutError: 'Bezpečnostné nastavenia vášho prehliadača nedovoľujú editoru automaticky spustiť operáciu vystrihnutia. Použite na to klávesnicu (Ctrl/Cmd+X).', - paste: 'Vložiť', - pasteNotification: 'Váš prehliadač nepovoľuje prilepiť text takýmto spôsobom. Pre prilepenie stlačte %1.' -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/sl.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/sl.js deleted file mode 100644 index 20c820b..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/sl.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'sl', { - copy: 'Kopiraj', - copyError: 'Varnostne nastavitve brskalnika ne dopuščajo samodejnega kopiranja. Uporabite kombinacijo tipk na tipkovnici (Ctrl/Cmd+C).', - cut: 'Izreži', - cutError: 'Varnostne nastavitve brskalnika ne dopuščajo samodejnega izrezovanja. Uporabite kombinacijo tipk na tipkovnici (Ctrl/Cmd+X).', - paste: 'Prilepi', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/sq.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/sq.js deleted file mode 100644 index c5ca1f7..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/sq.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'sq', { - copy: 'Kopjo', - copyError: 'Të dhënat e sigurisë së shfletuesit tuaj nuk lejojnë që redaktuesi automatikisht të kryej veprimin e kopjimit. Ju lutemi shfrytëzoni tastierën për këtë veprim (Ctrl/Cmd+C).', - cut: 'Preje', - cutError: 'Të dhënat e sigurisë së shfletuesit tuaj nuk lejojnë që redaktuesi automatikisht të kryej veprimin e prerjes. Ju lutemi shfrytëzoni tastierën për këtë veprim (Ctrl/Cmd+X).', - paste: 'Hidhe', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/sr-latn.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/sr-latn.js deleted file mode 100644 index e205c76..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/sr-latn.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'sr-latn', { - copy: 'Kopiraj', - copyError: 'Sigurnosna podešavanja Vašeg pretraživača ne dozvoljavaju operacije automatskog kopiranja teksta. Molimo Vas da koristite prečicu sa tastature (Ctrl/Cmd+C).', - cut: 'Iseci', - cutError: 'Sigurnosna podešavanja Vašeg pretraživača ne dozvoljavaju operacije automatskog isecanja teksta. Molimo Vas da koristite prečicu sa tastature (Ctrl/Cmd+X).', - paste: 'Zalepi', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/sr.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/sr.js deleted file mode 100644 index 7544455..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/sr.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'sr', { - copy: 'Копирај', - copyError: 'Сигурносна подешавања Вашег претраживача не дозвољавају операције аутоматског копирања текста. Молимо Вас да користите пречицу са тастатуре (Ctrl/Cmd+C).', - cut: 'Исеци', - cutError: 'Сигурносна подешавања Вашег претраживача не дозвољавају операције аутоматског исецања текста. Молимо Вас да користите пречицу са тастатуре (Ctrl/Cmd+X).', - paste: 'Залепи', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/sv.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/sv.js deleted file mode 100644 index cbcbe4f..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/sv.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'sv', { - copy: 'Kopiera', - copyError: 'Säkerhetsinställningar i din webbläsare tillåter inte åtgärden kopiera. Använd (Ctrl/Cmd+C) istället.', - cut: 'Klipp ut', - cutError: 'Säkerhetsinställningar i din webbläsare tillåter inte åtgärden klipp ut. Använd (Ctrl/Cmd+X) istället.', - paste: 'Klistra in', - pasteNotification: 'Din webbläsare tillåter dig inte att klistra in på detta vis. Tryck på %1 för att klistra in.' -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/th.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/th.js deleted file mode 100644 index 639fc19..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/th.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'th', { - copy: 'สำเนา', - copyError: 'ไม่สามารถสำเนาข้อความที่เลือกไว้ได้เนื่องจากการกำหนดค่าระดับความปลอดภัย. กรุณาใช้ปุ่มลัดเพื่อวางข้อความแทน (กดปุ่ม Ctrl/Cmd และตัว C พร้อมกัน).', - cut: 'ตัด', - cutError: 'ไม่สามารถตัดข้อความที่เลือกไว้ได้เนื่องจากการกำหนดค่าระดับความปลอดภัย. กรุณาใช้ปุ่มลัดเพื่อวางข้อความแทน (กดปุ่ม Ctrl/Cmd และตัว X พร้อมกัน).', - paste: 'วาง', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/tr.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/tr.js deleted file mode 100644 index c0f91c6..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/tr.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'tr', { - copy: 'Kopyala', - copyError: 'Gezgin yazılımınızın güvenlik ayarları düzenleyicinin otomatik kopyalama işlemine izin vermiyor. İşlem için (Ctrl/Cmd+C) tuşlarını kullanın.', - cut: 'Kes', - cutError: 'Gezgin yazılımınızın güvenlik ayarları düzenleyicinin otomatik kesme işlemine izin vermiyor. İşlem için (Ctrl/Cmd+X) tuşlarını kullanın.', - paste: 'Yapıştır', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/tt.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/tt.js deleted file mode 100644 index 111bf7a..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/tt.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'tt', { - copy: 'Күчермәләү', - copyError: 'Браузерыгызның иминлек үзлекләре автоматик рәвештә күчермәләү үтәүне тыя. Тиз төймәләрне (Ctrl/Cmd+C) кулланыгыз.', - cut: 'Кисеп алу', - cutError: 'Браузерыгызның иминлек үзлекләре автоматик рәвештә күчермәләү үтәүне тыя. Тиз төймәләрне (Ctrl/Cmd+C) кулланыгыз.', - paste: 'Өстәү', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/ug.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/ug.js deleted file mode 100644 index 7b77ded..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/ug.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'ug', { - copy: 'كۆچۈر', - copyError: 'تور كۆرگۈڭىزنىڭ بىخەتەرلىك تەڭشىكى تەھرىرلىگۈچنىڭ كۆچۈر مەشغۇلاتىنى ئۆزلۈكىدىن ئىجرا قىلىشىغا يول قويمايدۇ، ھەرپتاختا تېز كۇنۇپكا (Ctrl/Cmd+C) ئارقىلىق تاماملاڭ', - cut: 'كەس', - cutError: 'تور كۆرگۈڭىزنىڭ بىخەتەرلىك تەڭشىكى تەھرىرلىگۈچنىڭ كەس مەشغۇلاتىنى ئۆزلۈكىدىن ئىجرا قىلىشىغا يول قويمايدۇ، ھەرپتاختا تېز كۇنۇپكا (Ctrl/Cmd+X) ئارقىلىق تاماملاڭ', - paste: 'چاپلا', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/uk.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/uk.js deleted file mode 100644 index a2737b4..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/uk.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'uk', { - copy: 'Копіювати', - copyError: 'Налаштування безпеки Вашого браузера не дозволяють редактору автоматично виконувати операції копіювання. Будь ласка, використовуйте клавіатуру для цього (Ctrl/Cmd+C).', - cut: 'Вирізати', - cutError: 'Налаштування безпеки Вашого браузера не дозволяють редактору автоматично виконувати операції вирізування. Будь ласка, використовуйте клавіатуру для цього (Ctrl/Cmd+X)', - paste: 'Вставити', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/vi.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/vi.js deleted file mode 100644 index a1902eb..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/vi.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'vi', { - copy: 'Sao chép', - copyError: 'Các thiết lập bảo mật của trình duyệt không cho phép trình biên tập tự động thực thi lệnh sao chép. Hãy sử dụng bàn phím cho lệnh này (Ctrl/Cmd+C).', - cut: 'Cắt', - cutError: 'Các thiết lập bảo mật của trình duyệt không cho phép trình biên tập tự động thực thi lệnh cắt. Hãy sử dụng bàn phím cho lệnh này (Ctrl/Cmd+X).', - paste: 'Dán', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/zh-cn.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/zh-cn.js deleted file mode 100644 index 432ad45..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/zh-cn.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'zh-cn', { - copy: '复制', - copyError: '您的浏览器安全设置不允许编辑器自动执行复制操作,请使用键盘快捷键(Ctrl/Cmd+C)来完成。', - cut: '剪切', - cutError: '您的浏览器安全设置不允许编辑器自动执行剪切操作,请使用键盘快捷键(Ctrl/Cmd+X)来完成。', - paste: '粘贴', - pasteNotification: '您的浏览器不允许用此方式粘贴,要粘贴请按 %1。' -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/zh.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/zh.js deleted file mode 100644 index 150c15e..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/lang/zh.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.md or http://ckeditor.com/license -*/ -CKEDITOR.plugins.setLang( 'clipboard', 'zh', { - copy: '複製', - copyError: '瀏覽器的安全性設定不允許編輯器自動執行複製動作。請使用鍵盤快捷鍵 (Ctrl/Cmd+C) 複製。', - cut: '剪下', - cutError: '瀏覽器的安全性設定不允許編輯器自動執行剪下動作。請使用鏐盤快捷鍵 (Ctrl/Cmd+X) 剪下。', - paste: '貼上', - pasteNotification: 'Your browser doesn\'t allow you to paste this way. Press %1 to paste.' // MISSING -} ); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/plugin.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/plugin.js deleted file mode 100644 index 42191cf..0000000 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/clipboard/plugin.js +++ /dev/null @@ -1,2780 +0,0 @@ -/** - * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. - * For licensing, see LICENSE.md or http://ckeditor.com/license - */ - -/** - * @ignore - * File overview: Clipboard support. - */ - -// -// COPY & PASTE EXECUTION FLOWS: -// -- CTRL+C -// * if ( isCustomCopyCutSupported ) -// * dataTransfer.setData( 'text/html', getSelectedHtml ) -// * else -// * browser's default behavior -// -- CTRL+X -// * listen onKey (onkeydown) -// * fire 'saveSnapshot' on editor -// * if ( isCustomCopyCutSupported ) -// * dataTransfer.setData( 'text/html', getSelectedHtml ) -// * extractSelectedHtml // remove selected contents -// * else -// * browser's default behavior -// * deferred second 'saveSnapshot' event -// -- CTRL+V -// * listen onKey (onkeydown) -// * simulate 'beforepaste' for non-IEs on editable -// * listen 'onpaste' on editable ('onbeforepaste' for IE) -// * fire 'beforePaste' on editor -// * if ( !canceled && ( htmlInDataTransfer || !external paste) && dataTransfer is not empty ) getClipboardDataByPastebin -// * fire 'paste' on editor -// * !canceled && fire 'afterPaste' on editor -// -- Copy command -// * tryToCutCopy -// * execCommand -// * !success && notification -// -- Cut command -// * fixCut -// * tryToCutCopy -// * execCommand -// * !success && notification -// -- Paste command -// * fire 'paste' on editable ('beforepaste' for IE) -// * !canceled && execCommand 'paste' -// -- Paste from native context menu & menubar -// (Fx & Webkits are handled in 'paste' default listener. -// Opera cannot be handled at all because it doesn't fire any events -// Special treatment is needed for IE, for which is this part of doc) -// * listen 'onpaste' -// * cancel native event -// * fire 'beforePaste' on editor -// * if ( !canceled && ( htmlInDataTransfer || !external paste) && dataTransfer is not empty ) getClipboardDataByPastebin -// * execIECommand( 'paste' ) -> this fires another 'paste' event, so cancel it -// * fire 'paste' on editor -// * !canceled && fire 'afterPaste' on editor -// -// -// PASTE EVENT - PREPROCESSING: -// -- Possible dataValue types: auto, text, html. -// -- Possible dataValue contents: -// * text (possible \n\r) -// * htmlified text (text + br,div,p - no presentational markup & attrs - depends on browser) -// * html -// -- Possible flags: -// * htmlified - if true then content is a HTML even if no markup inside. This flag is set -// for content from editable pastebins, because they 'htmlify' pasted content. -// -// -- Type: auto: -// * content: htmlified text -> filter, unify text markup (brs, ps, divs), set type: text -// * content: html -> filter, set type: html -// -- Type: text: -// * content: htmlified text -> filter, unify text markup -// * content: html -> filter, strip presentational markup, unify text markup -// -- Type: html: -// * content: htmlified text -> filter, unify text markup -// * content: html -> filter -// -// -- Phases: -// * if dataValue is empty copy data from dataTransfer to dataValue (priority 1) -// * filtering (priorities 3-5) - e.g. pastefromword filters -// * content type sniffing (priority 6) -// * markup transformations for text (priority 6) -// -// DRAG & DROP EXECUTION FLOWS: -// -- Drag -// * save to the global object: -// * drag timestamp (with 'cke-' prefix), -// * selected html, -// * drag range, -// * editor instance. -// * put drag timestamp into event.dataTransfer.text -// -- Drop -// * if events text == saved timestamp && editor == saved editor -// internal drag & drop occurred -// * getRangeAtDropPosition -// * create bookmarks for drag and drop ranges starting from the end of the document -// * dragRange.deleteContents() -// * fire 'paste' with saved html and drop range -// * if events text == saved timestamp && editor != saved editor -// cross editor drag & drop occurred -// * getRangeAtDropPosition -// * fire 'paste' with saved html -// * dragRange.deleteContents() -// * FF: refreshCursor on afterPaste -// * if events text != saved timestamp -// drop form external source occurred -// * getRangeAtDropPosition -// * if event contains html data then fire 'paste' with html -// * else if event contains text data then fire 'paste' with encoded text -// * FF: refreshCursor on afterPaste - -'use strict'; - -( function() { - // Register the plugin. - CKEDITOR.plugins.add( 'clipboard', { - requires: 'notification,toolbar', - // jscs:disable maximumLineLength - lang: 'af,ar,az,bg,bn,bs,ca,cs,cy,da,de,de-ch,el,en,en-au,en-ca,en-gb,eo,es,es-mx,et,eu,fa,fi,fo,fr,fr-ca,gl,gu,he,hi,hr,hu,id,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,oc,pl,pt,pt-br,ro,ru,si,sk,sl,sq,sr,sr-latn,sv,th,tr,tt,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE% - // jscs:enable maximumLineLength - icons: 'copy,copy-rtl,cut,cut-rtl,paste,paste-rtl', // %REMOVE_LINE_CORE% - hidpi: true, // %REMOVE_LINE_CORE% - init: function( editor ) { - var filterType, - filtersFactory = filtersFactoryFactory(); - - if ( editor.config.forcePasteAsPlainText ) { - filterType = 'plain-text'; - } else if ( editor.config.pasteFilter ) { - filterType = editor.config.pasteFilter; - } - // On Webkit the pasteFilter defaults 'semantic-content' because pasted data is so terrible - // that it must be always filtered. - else if ( CKEDITOR.env.webkit && !( 'pasteFilter' in editor.config ) ) { - filterType = 'semantic-content'; - } - - editor.pasteFilter = filtersFactory.get( filterType ); - - initPasteClipboard( editor ); - initDragDrop( editor ); - - // Convert image file (if present) to base64 string for Firefox. Do it as the first - // step as the conversion is asynchronous and should hold all further paste processing. - if ( CKEDITOR.env.gecko ) { - var supportedImageTypes = [ 'image/png', 'image/jpeg', 'image/gif' ], - latestId; - - editor.on( 'paste', function( evt ) { - var dataObj = evt.data, - data = dataObj.dataValue, - dataTransfer = dataObj.dataTransfer; - - // If data empty check for image content inside data transfer. http://dev.ckeditor.com/ticket/16705 - if ( !data && dataObj.method == 'paste' && dataTransfer && dataTransfer.getFilesCount() == 1 && latestId != dataTransfer.id ) { - var file = dataTransfer.getFile( 0 ); - - if ( CKEDITOR.tools.indexOf( supportedImageTypes, file.type ) != -1 ) { - var fileReader = new FileReader(); - - // Convert image file to img tag with base64 image. - fileReader.addEventListener( 'load', function() { - evt.data.dataValue = ''; - editor.fire( 'paste', evt.data ); - }, false ); - - // Proceed with normal flow if reading file was aborted. - fileReader.addEventListener( 'abort', function() { - editor.fire( 'paste', evt.data ); - }, false ); - - // Proceed with normal flow if reading file failed. - fileReader.addEventListener( 'error', function() { - editor.fire( 'paste', evt.data ); - }, false ); - - fileReader.readAsDataURL( file ); - - latestId = dataObj.dataTransfer.id; - - evt.stop(); - } - } - }, null, null, 1 ); - } - - editor.on( 'paste', function( evt ) { - // Init `dataTransfer` if `paste` event was fired without it, so it will be always available. - if ( !evt.data.dataTransfer ) { - evt.data.dataTransfer = new CKEDITOR.plugins.clipboard.dataTransfer(); - } - - // If dataValue is already set (manually or by paste bin), so do not override it. - if ( evt.data.dataValue ) { - return; - } - - var dataTransfer = evt.data.dataTransfer, - // IE support only text data and throws exception if we try to get html data. - // This html data object may also be empty if we drag content of the textarea. - value = dataTransfer.getData( 'text/html' ); - - if ( value ) { - evt.data.dataValue = value; - evt.data.type = 'html'; - } else { - // Try to get text data otherwise. - value = dataTransfer.getData( 'text/plain' ); - - if ( value ) { - evt.data.dataValue = editor.editable().transformPlainTextToHtml( value ); - evt.data.type = 'text'; - } - } - }, null, null, 1 ); - - editor.on( 'paste', function( evt ) { - var data = evt.data.dataValue, - blockElements = CKEDITOR.dtd.$block; - - // Filter webkit garbage. - if ( data.indexOf( 'Apple-' ) > -1 ) { - // Replace special webkit's   with simple space, because webkit - // produces them even for normal spaces. - data = data.replace( / <\/span>/gi, ' ' ); - - // Strip around white-spaces when not in forced 'html' content type. - // This spans are created only when pasting plain text into Webkit, - // but for safety reasons remove them always. - if ( evt.data.type != 'html' ) { - data = data.replace( /]*>([^<]*)<\/span>/gi, function( all, spaces ) { - // Replace tabs with 4 spaces like Fx does. - return spaces.replace( /\t/g, '    ' ); - } ); - } - - // This br is produced only when copying & pasting HTML content. - if ( data.indexOf( '
' ) > -1 ) { - evt.data.startsWithEOL = 1; - evt.data.preSniffing = 'html'; // Mark as not text. - data = data.replace( /
/, '' ); - } - - // Remove all other classes. - data = data.replace( /(<[^>]+) class="Apple-[^"]*"/gi, '$1' ); - } - - // Strip editable that was copied from inside. (http://dev.ckeditor.com/ticket/9534) - if ( data.match( /^<[^<]+cke_(editable|contents)/i ) ) { - var tmp, - editable_wrapper, - wrapper = new CKEDITOR.dom.element( 'div' ); - - wrapper.setHtml( data ); - // Verify for sure and check for nested editor UI parts. (http://dev.ckeditor.com/ticket/9675) - while ( wrapper.getChildCount() == 1 && - ( tmp = wrapper.getFirst() ) && - tmp.type == CKEDITOR.NODE_ELEMENT && // Make sure first-child is element. - ( tmp.hasClass( 'cke_editable' ) || tmp.hasClass( 'cke_contents' ) ) ) { - wrapper = editable_wrapper = tmp; - } - - // If editable wrapper was found strip it and bogus
(added on FF). - if ( editable_wrapper ) - data = editable_wrapper.getHtml().replace( /
$/i, '' ); - } - - if ( CKEDITOR.env.ie ) { - //  

->

(br.cke-pasted-remove will be removed later) - data = data.replace( /^ (?: |\r\n)?<(\w+)/g, function( match, elementName ) { - if ( elementName.toLowerCase() in blockElements ) { - evt.data.preSniffing = 'html'; // Mark as not a text. - return '<' + elementName; - } - return match; - } ); - } else if ( CKEDITOR.env.webkit ) { - //


->


- // We don't mark br, because this situation can happen for htmlified text too. - data = data.replace( /<\/(\w+)>

<\/div>$/, function( match, elementName ) { - if ( elementName in blockElements ) { - evt.data.endsWithEOL = 1; - return ''; - } - return match; - } ); - } else if ( CKEDITOR.env.gecko ) { - // Firefox adds bogus
when user pasted text followed by space(s). - data = data.replace( /(\s)
$/, '$1' ); - } - - evt.data.dataValue = data; - }, null, null, 3 ); - - editor.on( 'paste', function( evt ) { - var dataObj = evt.data, - type = editor._.nextPasteType || dataObj.type, - data = dataObj.dataValue, - trueType, - // Default is 'html'. - defaultType = editor.config.clipboard_defaultContentType || 'html', - transferType = dataObj.dataTransfer.getTransferType( editor ); - - // If forced type is 'html' we don't need to know true data type. - if ( type == 'html' || dataObj.preSniffing == 'html' ) { - trueType = 'html'; - } else { - trueType = recogniseContentType( data ); - } - - delete editor._.nextPasteType; - - // Unify text markup. - if ( trueType == 'htmlifiedtext' ) { - data = htmlifiedTextHtmlification( editor.config, data ); - } - - // Strip presentational markup & unify text markup. - // Forced plain text. - // Note: we do not check dontFilter option in this case, because forcePAPT was implemented - // before pasteFilter and pasteFilter is automatically used on Webkit&Blink since 4.5, so - // forcePAPT should have priority as it had before 4.5. - if ( type == 'text' && trueType == 'html' ) { - data = filterContent( editor, data, filtersFactory.get( 'plain-text' ) ); - } - // External paste and pasteFilter exists and filtering isn't disabled. - else if ( transferType == CKEDITOR.DATA_TRANSFER_EXTERNAL && editor.pasteFilter && !dataObj.dontFilter ) { - data = filterContent( editor, data, editor.pasteFilter ); - } - - if ( dataObj.startsWithEOL ) { - data = '
' + data; - } - if ( dataObj.endsWithEOL ) { - data += '
'; - } - - if ( type == 'auto' ) { - type = ( trueType == 'html' || defaultType == 'html' ) ? 'html' : 'text'; - } - - dataObj.type = type; - dataObj.dataValue = data; - delete dataObj.preSniffing; - delete dataObj.startsWithEOL; - delete dataObj.endsWithEOL; - }, null, null, 6 ); - - // Inserts processed data into the editor at the end of the - // events chain. - editor.on( 'paste', function( evt ) { - var data = evt.data; - - if ( data.dataValue ) { - editor.insertHtml( data.dataValue, data.type, data.range ); - - // Defer 'afterPaste' so all other listeners for 'paste' will be fired first. - // Fire afterPaste only if paste inserted some HTML. - setTimeout( function() { - editor.fire( 'afterPaste' ); - }, 0 ); - } - }, null, null, 1000 ); - } - } ); - - function firePasteEvents( editor, data, withBeforePaste ) { - if ( !data.type ) { - data.type = 'auto'; - } - - if ( withBeforePaste ) { - // Fire 'beforePaste' event so clipboard flavor get customized - // by other plugins. - if ( editor.fire( 'beforePaste', data ) === false ) - return false; // Event canceled - } - - // Do not fire paste if there is no data (dataValue and dataTranfser are empty). - // This check should be done after firing 'beforePaste' because for native paste - // 'beforePaste' is by default fired even for empty clipboard. - if ( !data.dataValue && data.dataTransfer.isEmpty() ) { - return false; - } - - if ( !data.dataValue ) { - data.dataValue = ''; - } - - // Because of FF bug we need to use this hack, otherwise cursor is hidden - // or it is not possible to move it (http://dev.ckeditor.com/ticket/12420). - // Also, check that editor.toolbox exists, because the toolbar plugin might not be loaded (http://dev.ckeditor.com/ticket/13305). - if ( CKEDITOR.env.gecko && data.method == 'drop' && editor.toolbox ) { - editor.once( 'afterPaste', function() { - editor.toolbox.focus(); - } ); - } - - return editor.fire( 'paste', data ); - } - - function initPasteClipboard( editor ) { - var clipboard = CKEDITOR.plugins.clipboard, - preventBeforePasteEvent = 0, - preventPasteEvent = 0, - inReadOnly = 0; - - addListeners(); - addButtonsCommands(); - - /** - * Gets clipboard data by directly accessing the clipboard (IE only). - * - * editor.getClipboardData( function( data ) { - * if ( data ) - * alert( data.type + ' ' + data.dataValue ); - * } ); - * - * @member CKEDITOR.editor - * @param {Function/Object} callbackOrOptions For function, see the `callback` parameter documentation. The object was used before 4.7.0 with the `title` property, to set the paste dialog's title. - * @param {Function} callback A function that will be executed with the `data` property of the - * {@link CKEDITOR.editor#event-paste paste event} or `null` if none of the capturing methods succeeded. - * Since 4.7.0 the `callback` should be provided as a first argument, just like in the example above. This parameter will be removed in - * an upcoming major release. - */ - editor.getClipboardData = function( callbackOrOptions, callback ) { - // Options are optional - args shift. - if ( !callback ) { - callback = callbackOrOptions; - callbackOrOptions = null; - } - - // Listen with maximum priority to handle content before everyone else. - // This callback will handle paste event that will be fired if direct - // access to the clipboard succeed in IE. - editor.on( 'paste', onPaste, null, null, 0 ); - - // If command didn't succeed (only IE allows to access clipboard and only if - // user agrees) invoke callback with null, meaning that paste is not blocked. - if ( getClipboardDataDirectly() === false ) { - // Direct access to the clipboard wasn't successful so remove listener. - editor.removeListener( 'paste', onPaste ); - - callback( null ); - } - - function onPaste( evt ) { - evt.removeListener(); - evt.cancel(); - callback( evt.data ); - } - }; - - function addButtonsCommands() { - addButtonCommand( 'Cut', 'cut', createCutCopyCmd( 'cut' ), 10, 1 ); - addButtonCommand( 'Copy', 'copy', createCutCopyCmd( 'copy' ), 20, 4 ); - addButtonCommand( 'Paste', 'paste', createPasteCmd(), 30, 8 ); - - function addButtonCommand( buttonName, commandName, command, toolbarOrder, ctxMenuOrder ) { - var lang = editor.lang.clipboard[ commandName ]; - - editor.addCommand( commandName, command ); - editor.ui.addButton && editor.ui.addButton( buttonName, { - label: lang, - command: commandName, - toolbar: 'clipboard,' + toolbarOrder - } ); - - // If the "menu" plugin is loaded, register the menu item. - if ( editor.addMenuItems ) { - editor.addMenuItem( commandName, { - label: lang, - command: commandName, - group: 'clipboard', - order: ctxMenuOrder - } ); - } - } - } - - function addListeners() { - editor.on( 'key', onKey ); - editor.on( 'contentDom', addPasteListenersToEditable ); - - // For improved performance, we're checking the readOnly state on selectionChange instead of hooking a key event for that. - editor.on( 'selectionChange', function( evt ) { - inReadOnly = evt.data.selection.getRanges()[ 0 ].checkReadOnly(); - setToolbarStates(); - } ); - - // If the "contextmenu" plugin is loaded, register the listeners. - if ( editor.contextMenu ) { - editor.contextMenu.addListener( function( element, selection ) { - inReadOnly = selection.getRanges()[ 0 ].checkReadOnly(); - return { - cut: stateFromNamedCommand( 'cut' ), - copy: stateFromNamedCommand( 'copy' ), - paste: stateFromNamedCommand( 'paste' ) - }; - } ); - } - } - - // Add events listeners to editable. - function addPasteListenersToEditable() { - var editable = editor.editable(); - - if ( CKEDITOR.plugins.clipboard.isCustomCopyCutSupported ) { - var initOnCopyCut = function( evt ) { - // If user tries to cut in read-only editor, we must prevent default action. (http://dev.ckeditor.com/ticket/13872) - if ( !editor.readOnly || evt.name != 'cut' ) { - clipboard.initPasteDataTransfer( evt, editor ); - } - evt.data.preventDefault(); - }; - - editable.on( 'copy', initOnCopyCut ); - editable.on( 'cut', initOnCopyCut ); - - // Delete content with the low priority so one can overwrite cut data. - editable.on( 'cut', function() { - // If user tries to cut in read-only editor, we must prevent default action. (http://dev.ckeditor.com/ticket/13872) - if ( !editor.readOnly ) { - editor.extractSelectedHtml(); - } - }, null, null, 999 ); - } - - // We'll be catching all pasted content in one line, regardless of whether - // it's introduced by a document command execution (e.g. toolbar buttons) or - // user paste behaviors (e.g. CTRL+V). - editable.on( clipboard.mainPasteEvent, function( evt ) { - if ( clipboard.mainPasteEvent == 'beforepaste' && preventBeforePasteEvent ) { - return; - } - - // If you've just asked yourself why preventPasteEventNow() is not here, but - // in listener for CTRL+V and exec method of 'paste' command - // you've asked the same question we did. - // - // THE ANSWER: - // - // First thing to notice - this answer makes sense only for IE, - // because other browsers don't listen for 'paste' event. - // - // What would happen if we move preventPasteEventNow() here? - // For: - // * CTRL+V - IE fires 'beforepaste', so we prevent 'paste' and pasteDataFromClipboard(). OK. - // * editor.execCommand( 'paste' ) - we fire 'beforepaste', so we prevent - // 'paste' and pasteDataFromClipboard() and doc.execCommand( 'Paste' ). OK. - // * native context menu - IE fires 'beforepaste', so we prevent 'paste', but unfortunately - // on IE we fail with pasteDataFromClipboard() here, because of... we don't know why, but - // we just fail, so... we paste nothing. FAIL. - // * native menu bar - the same as for native context menu. - // - // But don't you know any way to distinguish first two cases from last two? - // Only one - special flag set in CTRL+V handler and exec method of 'paste' - // command. And that's what we did using preventPasteEventNow(). - - pasteDataFromClipboard( evt ); - } ); - - // It's not possible to clearly handle all four paste methods (ctrl+v, native menu bar - // native context menu, editor's command) in one 'paste/beforepaste' event in IE. - // - // For ctrl+v & editor's command it's easy to handle pasting in 'beforepaste' listener, - // so we do this. For another two methods it's better to use 'paste' event. - // - // 'paste' is always being fired after 'beforepaste' (except of weird one on opening native - // context menu), so for two methods handled in 'beforepaste' we're canceling 'paste' - // using preventPasteEvent state. - // - // 'paste' event in IE is being fired before getClipboardDataByPastebin executes its callback. - // - // QUESTION: Why didn't you handle all 4 paste methods in handler for 'paste'? - // Wouldn't this just be simpler? - // ANSWER: Then we would have to evt.data.preventDefault() only for native - // context menu and menu bar pastes. The same with execIECommand(). - // That would force us to mark CTRL+V and editor's paste command with - // special flag, other than preventPasteEvent. But we still would have to - // have preventPasteEvent for the second event fired by execIECommand. - // Code would be longer and not cleaner. - if ( clipboard.mainPasteEvent == 'beforepaste' ) { - editable.on( 'paste', function( evt ) { - if ( preventPasteEvent ) { - return; - } - - // Cancel next 'paste' event fired by execIECommand( 'paste' ) - // at the end of this callback. - preventPasteEventNow(); - - // Prevent native paste. - evt.data.preventDefault(); - - pasteDataFromClipboard( evt ); - - // Force IE to paste content into pastebin so pasteDataFromClipboard will work. - execIECommand( 'paste' ); - } ); - - // If mainPasteEvent is 'beforePaste' (IE before Edge), - // dismiss the (wrong) 'beforepaste' event fired on context/toolbar menu open. (http://dev.ckeditor.com/ticket/7953) - editable.on( 'contextmenu', preventBeforePasteEventNow, null, null, 0 ); - - editable.on( 'beforepaste', function( evt ) { - // Do not prevent event on CTRL+V and SHIFT+INS because it blocks paste (http://dev.ckeditor.com/ticket/11970). - if ( evt.data && !evt.data.$.ctrlKey && !evt.data.$.shiftKey ) - preventBeforePasteEventNow(); - }, null, null, 0 ); - } - - editable.on( 'beforecut', function() { - !preventBeforePasteEvent && fixCut( editor ); - } ); - - var mouseupTimeout; - - // Use editor.document instead of editable in non-IEs for observing mouseup - // since editable won't fire the event if selection process started within - // iframe and ended out of the editor (http://dev.ckeditor.com/ticket/9851). - editable.attachListener( CKEDITOR.env.ie ? editable : editor.document.getDocumentElement(), 'mouseup', function() { - mouseupTimeout = setTimeout( function() { - setToolbarStates(); - }, 0 ); - } ); - - // Make sure that deferred mouseup callback isn't executed after editor instance - // had been destroyed. This may happen when editor.destroy() is called in parallel - // with mouseup event (i.e. a button with onclick callback) (http://dev.ckeditor.com/ticket/10219). - editor.on( 'destroy', function() { - clearTimeout( mouseupTimeout ); - } ); - - editable.on( 'keyup', setToolbarStates ); - } - - // Create object representing Cut or Copy commands. - function createCutCopyCmd( type ) { - return { - type: type, - canUndo: type == 'cut', // We can't undo copy to clipboard. - startDisabled: true, - fakeKeystroke: type == 'cut' ? CKEDITOR.CTRL + 88 /*X*/ : CKEDITOR.CTRL + 67 /*C*/, - exec: function() { - // Attempts to execute the Cut and Copy operations. - function tryToCutCopy( type ) { - if ( CKEDITOR.env.ie ) - return execIECommand( type ); - - // non-IEs part - try { - // Other browsers throw an error if the command is disabled. - return editor.document.$.execCommand( type, false, null ); - } catch ( e ) { - return false; - } - } - - this.type == 'cut' && fixCut(); - - var success = tryToCutCopy( this.type ); - - if ( !success ) { - // Show cutError or copyError. - editor.showNotification( editor.lang.clipboard[ this.type + 'Error' ] ); // jshint ignore:line - } - - return success; - } - }; - } - - function createPasteCmd() { - return { - // Snapshots are done manually by editable.insertXXX methods. - canUndo: false, - async: true, - fakeKeystroke: CKEDITOR.CTRL + 86 /*V*/, - - /** - * The default implementation of the paste command. - * - * @private - * @param {CKEDITOR.editor} editor An instance of the editor where the command is being executed. - * @param {Object/String} data If `data` is a string, then it is considered content that is being pasted. - * Otherwise it is treated as an object with options. - * @param {Boolean/String} [data.notification=true] Content for a notification shown after an unsuccessful - * paste attempt. If `false`, the notification will not be displayed. This parameter was added in 4.7.0. - * @param {String} [data.type='html'] The type of pasted content. There are two allowed values: - * * 'html' - * * 'text' - * @param {String/Object} data.dataValue Content being pasted. If this parameter is an object, it - * is supposed to be a `data` property of the {@link CKEDITOR.editor#paste} event. - * @param {CKEDITOR.plugins.clipboard.dataTransfer} data.dataTransfer Data transfer instance connected - * with the current paste action. - * @member CKEDITOR.editor.commands.paste - */ - exec: function( editor, data ) { - data = typeof data !== 'undefined' && data !== null ? data : {}; - - var cmd = this, - notification = typeof data.notification !== 'undefined' ? data.notification : true, - forcedType = data.type, - keystroke = CKEDITOR.tools.keystrokeToString( editor.lang.common.keyboard, - editor.getCommandKeystroke( this ) ), - msg = typeof notification === 'string' ? notification : editor.lang.clipboard.pasteNotification - .replace( /%1/, '' + keystroke.display + '' ), - pastedContent = typeof data === 'string' ? data : data.dataValue; - - function callback( data, withBeforePaste ) { - withBeforePaste = typeof withBeforePaste !== 'undefined' ? withBeforePaste : true; - - if ( data ) { - data.method = 'paste'; - - if ( !data.dataTransfer ) { - data.dataTransfer = clipboard.initPasteDataTransfer(); - } - - firePasteEvents( editor, data, withBeforePaste ); - } else if ( notification ) { - editor.showNotification( msg, 'info', editor.config.clipboard_notificationDuration ); - } - - editor.fire( 'afterCommandExec', { - name: 'paste', - command: cmd, - returnValue: !!data - } ); - } - - // Force type for the next paste. - if ( forcedType ) { - editor._.nextPasteType = forcedType; - } else { - delete editor._.nextPasteType; - } - - if ( typeof pastedContent === 'string' ) { - callback( { - dataValue: pastedContent - } ); - } else { - editor.getClipboardData( callback ); - } - } - }; - } - - function preventPasteEventNow() { - preventPasteEvent = 1; - // For safety reason we should wait longer than 0/1ms. - // We don't know how long execution of quite complex getClipboardData will take - // and in for example 'paste' listener execCommand() (which fires 'paste') is called - // after getClipboardData finishes. - // Luckily, it's impossible to immediately fire another 'paste' event we want to handle, - // because we only handle there native context menu and menu bar. - setTimeout( function() { - preventPasteEvent = 0; - }, 100 ); - } - - function preventBeforePasteEventNow() { - preventBeforePasteEvent = 1; - setTimeout( function() { - preventBeforePasteEvent = 0; - }, 10 ); - } - - // Tries to execute any of the paste, cut or copy commands in IE. Returns a - // boolean indicating that the operation succeeded. - // @param {String} command *LOWER CASED* name of command ('paste', 'cut', 'copy'). - function execIECommand( command ) { - var doc = editor.document, - body = doc.getBody(), - enabled = false, - onExec = function() { - enabled = true; - }; - - // The following seems to be the only reliable way to detect that - // clipboard commands are enabled in IE. It will fire the - // onpaste/oncut/oncopy events only if the security settings allowed - // the command to execute. - body.on( command, onExec ); - - // IE7: document.execCommand has problem to paste into positioned element. - if ( CKEDITOR.env.version > 7 ) { - doc.$.execCommand( command ); - } else { - doc.$.selection.createRange().execCommand( command ); - } - - body.removeListener( command, onExec ); - - return enabled; - } - - // Cutting off control type element in IE standards breaks the selection entirely. (http://dev.ckeditor.com/ticket/4881) - function fixCut() { - if ( !CKEDITOR.env.ie || CKEDITOR.env.quirks ) - return; - - var sel = editor.getSelection(), - control, range, dummy; - - if ( ( sel.getType() == CKEDITOR.SELECTION_ELEMENT ) && ( control = sel.getSelectedElement() ) ) { - range = sel.getRanges()[ 0 ]; - dummy = editor.document.createText( '' ); - dummy.insertBefore( control ); - range.setStartBefore( dummy ); - range.setEndAfter( control ); - sel.selectRanges( [ range ] ); - - // Clear up the fix if the paste wasn't succeeded. - setTimeout( function() { - // Element still online? - if ( control.getParent() ) { - dummy.remove(); - sel.selectElement( control ); - } - }, 0 ); - } - } - - // Allow to peek clipboard content by redirecting the - // pasting content into a temporary bin and grab the content of it. - function getClipboardDataByPastebin( evt, callback ) { - var doc = editor.document, - editable = editor.editable(), - cancel = function( evt ) { - evt.cancel(); - }, - blurListener; - - // Avoid recursions on 'paste' event or consequent paste too fast. (http://dev.ckeditor.com/ticket/5730) - if ( doc.getById( 'cke_pastebin' ) ) - return; - - var sel = editor.getSelection(); - var bms = sel.createBookmarks(); - - // http://dev.ckeditor.com/ticket/11384. On IE9+ we use native selectionchange (i.e. editor#selectionCheck) to cache the most - // recent selection which we then lock on editable blur. See selection.js for more info. - // selectionchange fired before getClipboardDataByPastebin() cached selection - // before creating bookmark (cached selection will be invalid, because bookmarks modified the DOM), - // so we need to fire selectionchange one more time, to store current seleciton. - // Selection will be locked when we focus pastebin. - if ( CKEDITOR.env.ie ) - sel.root.fire( 'selectionchange' ); - - // Create container to paste into. - // For rich content we prefer to use "body" since it holds - // the least possibility to be splitted by pasted content, while this may - // breaks the text selection on a frame-less editable, "div" would be - // the best one in that case. - // In another case on old IEs moving the selection into a "body" paste bin causes error panic. - // Body can't be also used for Opera which fills it with
- // what is indistinguishable from pasted
(copying
in Opera isn't possible, - // but it can be copied from other browser). - var pastebin = new CKEDITOR.dom.element( - ( CKEDITOR.env.webkit || editable.is( 'body' ) ) && !CKEDITOR.env.ie ? 'body' : 'div', doc ); - - pastebin.setAttributes( { - id: 'cke_pastebin', - 'data-cke-temp': '1' - } ); - - var containerOffset = 0, - offsetParent, - win = doc.getWindow(); - - if ( CKEDITOR.env.webkit ) { - // It's better to paste close to the real paste destination, so inherited styles - // (which Webkits will try to compensate by styling span) differs less from the destination's one. - editable.append( pastebin ); - // Style pastebin like .cke_editable, to minimize differences between origin and destination. (http://dev.ckeditor.com/ticket/9754) - pastebin.addClass( 'cke_editable' ); - - // Compensate position of offsetParent. - if ( !editable.is( 'body' ) ) { - // We're not able to get offsetParent from pastebin (body element), so check whether - // its parent (editable) is positioned. - if ( editable.getComputedStyle( 'position' ) != 'static' ) - offsetParent = editable; - // And if not - safely get offsetParent from editable. - else - offsetParent = CKEDITOR.dom.element.get( editable.$.offsetParent ); - - containerOffset = offsetParent.getDocumentPosition().y; - } - } else { - // Opera and IE doesn't allow to append to html element. - editable.getAscendant( CKEDITOR.env.ie ? 'body' : 'html', 1 ).append( pastebin ); - } - - pastebin.setStyles( { - position: 'absolute', - // Position the bin at the top (+10 for safety) of viewport to avoid any subsequent document scroll. - top: ( win.getScrollPosition().y - containerOffset + 10 ) + 'px', - width: '1px', - // Caret has to fit in that height, otherwise browsers like Chrome & Opera will scroll window to show it. - // Set height equal to viewport's height - 20px (safety gaps), minimum 1px. - height: Math.max( 1, win.getViewPaneSize().height - 20 ) + 'px', - overflow: 'hidden', - // Reset styles that can mess up pastebin position. - margin: 0, - padding: 0 - } ); - - // Paste fails in Safari when the body tag has 'user-select: none'. (http://dev.ckeditor.com/ticket/12506) - if ( CKEDITOR.env.safari ) - pastebin.setStyles( CKEDITOR.tools.cssVendorPrefix( 'user-select', 'text' ) ); - - // Check if the paste bin now establishes new editing host. - var isEditingHost = pastebin.getParent().isReadOnly(); - - if ( isEditingHost ) { - // Hide the paste bin. - pastebin.setOpacity( 0 ); - // And make it editable. - pastebin.setAttribute( 'contenteditable', true ); - } - // Transparency is not enough since positioned non-editing host always shows - // resize handler, pull it off the screen instead. - else { - pastebin.setStyle( editor.config.contentsLangDirection == 'ltr' ? 'left' : 'right', '-10000px' ); - } - - editor.on( 'selectionChange', cancel, null, null, 0 ); - - // Webkit fill fire blur on editable when moving selection to - // pastebin (if body is used). Cancel it because it causes incorrect - // selection lock in case of inline editor (http://dev.ckeditor.com/ticket/10644). - // The same seems to apply to Firefox (http://dev.ckeditor.com/ticket/10787). - if ( CKEDITOR.env.webkit || CKEDITOR.env.gecko ) - blurListener = editable.once( 'blur', cancel, null, null, -100 ); - - // Temporarily move selection to the pastebin. - isEditingHost && pastebin.focus(); - var range = new CKEDITOR.dom.range( pastebin ); - range.selectNodeContents( pastebin ); - var selPastebin = range.select(); - - // If non-native paste is executed, IE will open security alert and blur editable. - // Editable will then lock selection inside itself and after accepting security alert - // this selection will be restored. We overwrite stored selection, so it's restored - // in pastebin. (http://dev.ckeditor.com/ticket/9552) - if ( CKEDITOR.env.ie ) { - blurListener = editable.once( 'blur', function() { - editor.lockSelection( selPastebin ); - } ); - } - - var scrollTop = CKEDITOR.document.getWindow().getScrollPosition().y; - - // Wait a while and grab the pasted contents. - setTimeout( function() { - // Restore main window's scroll position which could have been changed - // by browser in cases described in http://dev.ckeditor.com/ticket/9771. - if ( CKEDITOR.env.webkit ) - CKEDITOR.document.getBody().$.scrollTop = scrollTop; - - // Blur will be fired only on non-native paste. In other case manually remove listener. - blurListener && blurListener.removeListener(); - - // Restore properly the document focus. (http://dev.ckeditor.com/ticket/8849) - if ( CKEDITOR.env.ie ) - editable.focus(); - - // IE7: selection must go before removing pastebin. (http://dev.ckeditor.com/ticket/8691) - sel.selectBookmarks( bms ); - pastebin.remove(); - - // Grab the HTML contents. - // We need to look for a apple style wrapper on webkit it also adds - // a div wrapper if you copy/paste the body of the editor. - // Remove hidden div and restore selection. - var bogusSpan; - if ( CKEDITOR.env.webkit && ( bogusSpan = pastebin.getFirst() ) && ( bogusSpan.is && bogusSpan.hasClass( 'Apple-style-span' ) ) ) - pastebin = bogusSpan; - - editor.removeListener( 'selectionChange', cancel ); - callback( pastebin.getHtml() ); - }, 0 ); - } - - // Try to get content directly on IE from clipboard, without native event - // being fired before. In other words - synthetically get clipboard data, if it's possible. - // mainPasteEvent will be fired, so if forced native paste: - // * worked, getClipboardDataByPastebin will grab it, - // * didn't work, dataValue and dataTransfer will be empty and editor#paste won't be fired. - // Clipboard data can be accessed directly only on IEs older than Edge. - // On other browsers we should fire beforePaste event and return false. - function getClipboardDataDirectly() { - if ( clipboard.mainPasteEvent == 'paste' ) { - editor.fire( 'beforePaste', { type: 'auto', method: 'paste' } ); - return false; - } - - // Prevent IE from pasting at the begining of the document. - editor.focus(); - - // Command will be handled by 'beforepaste', but as - // execIECommand( 'paste' ) will fire also 'paste' event - // we're canceling it. - preventPasteEventNow(); - - // http://dev.ckeditor.com/ticket/9247: Lock focus to prevent IE from hiding toolbar for inline editor. - var focusManager = editor.focusManager; - focusManager.lock(); - - if ( editor.editable().fire( clipboard.mainPasteEvent ) && !execIECommand( 'paste' ) ) { - focusManager.unlock(); - return false; - } - focusManager.unlock(); - - return true; - } - - // Listens for some clipboard related keystrokes, so they get customized. - // Needs to be bind to keydown event. - function onKey( event ) { - if ( editor.mode != 'wysiwyg' ) - return; - - switch ( event.data.keyCode ) { - // Paste - case CKEDITOR.CTRL + 86: // CTRL+V - case CKEDITOR.SHIFT + 45: // SHIFT+INS - var editable = editor.editable(); - - // Cancel 'paste' event because ctrl+v is for IE handled - // by 'beforepaste'. - preventPasteEventNow(); - - // Simulate 'beforepaste' event for all browsers using 'paste' as main event. - if ( clipboard.mainPasteEvent == 'paste' ) { - editable.fire( 'beforepaste' ); - } - - return; - - // Cut - case CKEDITOR.CTRL + 88: // CTRL+X - case CKEDITOR.SHIFT + 46: // SHIFT+DEL - // Save Undo snapshot. - editor.fire( 'saveSnapshot' ); // Save before cut - setTimeout( function() { - editor.fire( 'saveSnapshot' ); // Save after cut - }, 50 ); // OSX is slow (http://dev.ckeditor.com/ticket/11416). - } - } - - function pasteDataFromClipboard( evt ) { - // Default type is 'auto', but can be changed by beforePaste listeners. - var eventData = { - type: 'auto', - method: 'paste', - dataTransfer: clipboard.initPasteDataTransfer( evt ) - }; - - eventData.dataTransfer.cacheData(); - - // Fire 'beforePaste' event so clipboard flavor get customized by other plugins. - // If 'beforePaste' is canceled continue executing getClipboardDataByPastebin and then do nothing - // (do not fire 'paste', 'afterPaste' events). This way we can grab all - synthetically - // and natively pasted content and prevent its insertion into editor - // after canceling 'beforePaste' event. - var beforePasteNotCanceled = editor.fire( 'beforePaste', eventData ) !== false; - - // Do not use paste bin if the browser let us get HTML or files from dataTranfer. - if ( beforePasteNotCanceled && clipboard.canClipboardApiBeTrusted( eventData.dataTransfer, editor ) ) { - evt.data.preventDefault(); - setTimeout( function() { - firePasteEvents( editor, eventData ); - }, 0 ); - } else { - getClipboardDataByPastebin( evt, function( data ) { - // Clean up. - eventData.dataValue = data.replace( /]+data-cke-bookmark[^<]*?<\/span>/ig, '' ); - - // Fire remaining events (without beforePaste) - beforePasteNotCanceled && firePasteEvents( editor, eventData ); - } ); - } - } - - function setToolbarStates() { - if ( editor.mode != 'wysiwyg' ) - return; - - var pasteState = stateFromNamedCommand( 'paste' ); - - editor.getCommand( 'cut' ).setState( stateFromNamedCommand( 'cut' ) ); - editor.getCommand( 'copy' ).setState( stateFromNamedCommand( 'copy' ) ); - editor.getCommand( 'paste' ).setState( pasteState ); - editor.fire( 'pasteState', pasteState ); - } - - function stateFromNamedCommand( command ) { - if ( inReadOnly && command in { paste: 1, cut: 1 } ) - return CKEDITOR.TRISTATE_DISABLED; - - if ( command == 'paste' ) - return CKEDITOR.TRISTATE_OFF; - - // Cut, copy - check if the selection is not empty. - var sel = editor.getSelection(), - ranges = sel.getRanges(), - selectionIsEmpty = sel.getType() == CKEDITOR.SELECTION_NONE || ( ranges.length == 1 && ranges[ 0 ].collapsed ); - - return selectionIsEmpty ? CKEDITOR.TRISTATE_DISABLED : CKEDITOR.TRISTATE_OFF; - } - } - - // Returns: - // * 'htmlifiedtext' if content looks like transformed by browser from plain text. - // See clipboard/paste.html TCs for more info. - // * 'html' if it is not 'htmlifiedtext'. - function recogniseContentType( data ) { - if ( CKEDITOR.env.webkit ) { - // Plain text or (

and text inside
). - if ( !data.match( /^[^<]*$/g ) && !data.match( /^(
<\/div>|
[^<]*<\/div>)*$/gi ) ) - return 'html'; - } else if ( CKEDITOR.env.ie ) { - // Text and
or ( text and
in

- paragraphs can be separated by new \r\n ). - if ( !data.match( /^([^<]|)*$/gi ) && !data.match( /^(

([^<]|)*<\/p>|(\r\n))*$/gi ) ) - return 'html'; - } else if ( CKEDITOR.env.gecko ) { - // Text or
. - if ( !data.match( /^([^<]|)*$/gi ) ) - return 'html'; - } else { - return 'html'; - } - - return 'htmlifiedtext'; - } - - // This function transforms what browsers produce when - // pasting plain text into editable element (see clipboard/paste.html TCs - // for more info) into correct HTML (similar to that produced by text2Html). - function htmlifiedTextHtmlification( config, data ) { - function repeatParagraphs( repeats ) { - // Repeat blocks floor((n+1)/2) times. - // Even number of repeats - add
at the beginning of last

. - return CKEDITOR.tools.repeat( '

', ~~( repeats / 2 ) ) + ( repeats % 2 == 1 ? '
' : '' ); - } - - // Replace adjacent white-spaces (EOLs too - Fx sometimes keeps them) with one space. - data = data.replace( /\s+/g, ' ' ) - // Remove spaces from between tags. - .replace( /> +<' ) - // Normalize XHTML syntax and upper cased
tags. - .replace( /
/gi, '
' ); - - // IE - lower cased tags. - data = data.replace( /<\/?[A-Z]+>/g, function( match ) { - return match.toLowerCase(); - } ); - - // Don't touch single lines (no ) - nothing to do here. - if ( data.match( /^[^<]$/ ) ) - return data; - - // Webkit. - if ( CKEDITOR.env.webkit && data.indexOf( '

' ) > -1 ) { - // One line break at the beginning - insert
- data = data.replace( /^(
(
|)<\/div>)(?!$|(
(
|)<\/div>))/g, '
' ) - // Two or more - reduce number of new lines by one. - .replace( /^(
(
|)<\/div>){2}(?!$)/g, '
' ); - - // Two line breaks create one paragraph in Webkit. - if ( data.match( /
(
|)<\/div>/ ) ) { - data = '

' + data.replace( /(

(
|)<\/div>)+/g, function( match ) { - return repeatParagraphs( match.split( '
' ).length + 1 ); - } ) + '

'; - } - - // One line break create br. - data = data.replace( /<\/div>
/g, '
' ); - - // Remove remaining divs. - data = data.replace( /<\/?div>/g, '' ); - } - - // Opera and Firefox and enterMode != BR. - if ( CKEDITOR.env.gecko && config.enterMode != CKEDITOR.ENTER_BR ) { - // Remove bogus
- Fx generates two for one line break. - // For two line breaks it still produces two , but it's better to ignore this case than the first one. - if ( CKEDITOR.env.gecko ) - data = data.replace( /^

$/, '
' ); - - // This line satisfy edge case when for Opera we have two line breaks - //data = data.replace( /) - - if ( data.indexOf( '

' ) > -1 ) { - // Two line breaks create one paragraph, three - 2, four - 3, etc. - data = '

' + data.replace( /(
){2,}/g, function( match ) { - return repeatParagraphs( match.length / 4 ); - } ) + '

'; - } - } - - return switchEnterMode( config, data ); - } - - function filtersFactoryFactory() { - var filters = {}; - - function setUpTags() { - var tags = {}; - - for ( var tag in CKEDITOR.dtd ) { - if ( tag.charAt( 0 ) != '$' && tag != 'div' && tag != 'span' ) { - tags[ tag ] = 1; - } - } - - return tags; - } - - function createSemanticContentFilter() { - var filter = new CKEDITOR.filter(); - - filter.allow( { - $1: { - elements: setUpTags(), - attributes: true, - styles: false, - classes: false - } - } ); - - return filter; - } - - return { - get: function( type ) { - if ( type == 'plain-text' ) { - // Does this look confusing to you? Did we forget about enter mode? - // It is a trick that let's us creating one filter for edidtor, regardless of its - // activeEnterMode (which as the name indicates can change during runtime). - // - // How does it work? - // The active enter mode is passed to the filter.applyTo method. - // The filter first marks all elements except
as disallowed and then tries to remove - // them. However, it cannot remove e.g. a

element completely, because it's a basic structural element, - // so it tries to replace it with an element created based on the active enter mode, eventually doing nothing. - // - // Now you can sleep well. - return filters.plainText || ( filters.plainText = new CKEDITOR.filter( 'br' ) ); - } else if ( type == 'semantic-content' ) { - return filters.semanticContent || ( filters.semanticContent = createSemanticContentFilter() ); - } else if ( type ) { - // Create filter based on rules (string or object). - return new CKEDITOR.filter( type ); - } - - return null; - } - }; - } - - function filterContent( editor, data, filter ) { - var fragment = CKEDITOR.htmlParser.fragment.fromHtml( data ), - writer = new CKEDITOR.htmlParser.basicWriter(); - - filter.applyTo( fragment, true, false, editor.activeEnterMode ); - fragment.writeHtml( writer ); - - return writer.getHtml(); - } - - function switchEnterMode( config, data ) { - if ( config.enterMode == CKEDITOR.ENTER_BR ) { - data = data.replace( /(<\/p>

)+/g, function( match ) { - return CKEDITOR.tools.repeat( '
', match.length / 7 * 2 ); - } ).replace( /<\/?p>/g, '' ); - } else if ( config.enterMode == CKEDITOR.ENTER_DIV ) { - data = data.replace( /<(\/)?p>/g, '<$1div>' ); - } - - return data; - } - - function preventDefaultSetDropEffectToNone( evt ) { - evt.data.preventDefault(); - evt.data.$.dataTransfer.dropEffect = 'none'; - } - - function initDragDrop( editor ) { - var clipboard = CKEDITOR.plugins.clipboard; - - editor.on( 'contentDom', function() { - var editable = editor.editable(), - dropTarget = CKEDITOR.plugins.clipboard.getDropTarget( editor ), - top = editor.ui.space( 'top' ), - bottom = editor.ui.space( 'bottom' ); - - // -------------- DRAGOVER TOP & BOTTOM -------------- - - // Not allowing dragging on toolbar and bottom (http://dev.ckeditor.com/ticket/12613). - clipboard.preventDefaultDropOnElement( top ); - clipboard.preventDefaultDropOnElement( bottom ); - - // -------------- DRAGSTART -------------- - // Listed on dragstart to mark internal and cross-editor drag & drop - // and save range and selected HTML. - - editable.attachListener( dropTarget, 'dragstart', fireDragEvent ); - - // Make sure to reset data transfer (in case dragend was not called or was canceled). - editable.attachListener( editor, 'dragstart', clipboard.resetDragDataTransfer, clipboard, null, 1 ); - - // Create a dataTransfer object and save it globally. - editable.attachListener( editor, 'dragstart', function( evt ) { - clipboard.initDragDataTransfer( evt, editor ); - }, null, null, 2 ); - - editable.attachListener( editor, 'dragstart', function() { - // Save drag range globally for cross editor D&D. - var dragRange = clipboard.dragRange = editor.getSelection().getRanges()[ 0 ]; - - // Store number of children, so we can later tell if any text node was split on drop. (http://dev.ckeditor.com/ticket/13011, http://dev.ckeditor.com/ticket/13447) - if ( CKEDITOR.env.ie && CKEDITOR.env.version < 10 ) { - clipboard.dragStartContainerChildCount = dragRange ? getContainerChildCount( dragRange.startContainer ) : null; - clipboard.dragEndContainerChildCount = dragRange ? getContainerChildCount( dragRange.endContainer ) : null; - } - }, null, null, 100 ); - - // -------------- DRAGEND -------------- - // Clean up on dragend. - - editable.attachListener( dropTarget, 'dragend', fireDragEvent ); - - // Init data transfer if someone wants to use it in dragend. - editable.attachListener( editor, 'dragend', clipboard.initDragDataTransfer, clipboard, null, 1 ); - - // When drag & drop is done we need to reset dataTransfer so the future - // external drop will be not recognize as internal. - editable.attachListener( editor, 'dragend', clipboard.resetDragDataTransfer, clipboard, null, 100 ); - - // -------------- DRAGOVER -------------- - // We need to call preventDefault on dragover because otherwise if - // we drop image it will overwrite document. - - editable.attachListener( dropTarget, 'dragover', function( evt ) { - // Edge requires this handler to have `preventDefault()` regardless of the situation. - if ( CKEDITOR.env.edge ) { - evt.data.preventDefault(); - return; - } - - var target = evt.data.getTarget(); - - // Prevent reloading page when dragging image on empty document (http://dev.ckeditor.com/ticket/12619). - if ( target && target.is && target.is( 'html' ) ) { - evt.data.preventDefault(); - return; - } - - // If we do not prevent default dragover on IE the file path - // will be loaded and we will lose content. On the other hand - // if we prevent it the cursor will not we shown, so we prevent - // dragover only on IE, on versions which support file API and only - // if the event contains files. - if ( CKEDITOR.env.ie && - CKEDITOR.plugins.clipboard.isFileApiSupported && - evt.data.$.dataTransfer.types.contains( 'Files' ) ) { - evt.data.preventDefault(); - } - } ); - - // -------------- DROP -------------- - - editable.attachListener( dropTarget, 'drop', function( evt ) { - // Do nothing if event was already prevented. (http://dev.ckeditor.com/ticket/13879) - if ( evt.data.$.defaultPrevented ) { - return; - } - - // Cancel native drop. - evt.data.preventDefault(); - - var target = evt.data.getTarget(), - readOnly = target.isReadOnly(); - - // Do nothing if drop on non editable element (http://dev.ckeditor.com/ticket/13015). - // The tag isn't editable (body is), but we want to allow drop on it - // (so it is possible to drop below editor contents). - if ( readOnly && !( target.type == CKEDITOR.NODE_ELEMENT && target.is( 'html' ) ) ) { - return; - } - - // Getting drop position is one of the most complex parts. - var dropRange = clipboard.getRangeAtDropPosition( evt, editor ), - dragRange = clipboard.dragRange; - - // Do nothing if it was not possible to get drop range. - if ( !dropRange ) { - return; - } - - // Fire drop. - fireDragEvent( evt, dragRange, dropRange ); - }, null, null, 9999 ); - - // Create dataTransfer or get it, if it was created before. - editable.attachListener( editor, 'drop', clipboard.initDragDataTransfer, clipboard, null, 1 ); - - // Execute drop action, fire paste. - editable.attachListener( editor, 'drop', function( evt ) { - var data = evt.data; - - if ( !data ) { - return; - } - - // Let user modify drag and drop range. - var dropRange = data.dropRange, - dragRange = data.dragRange, - dataTransfer = data.dataTransfer; - - if ( dataTransfer.getTransferType( editor ) == CKEDITOR.DATA_TRANSFER_INTERNAL ) { - // Execute drop with a timeout because otherwise selection, after drop, - // on IE is in the drag position, instead of drop position. - setTimeout( function() { - clipboard.internalDrop( dragRange, dropRange, dataTransfer, editor ); - }, 0 ); - } else if ( dataTransfer.getTransferType( editor ) == CKEDITOR.DATA_TRANSFER_CROSS_EDITORS ) { - crossEditorDrop( dragRange, dropRange, dataTransfer ); - } else { - externalDrop( dropRange, dataTransfer ); - } - }, null, null, 9999 ); - - // Cross editor drag and drop (drag in one Editor and drop in the other). - function crossEditorDrop( dragRange, dropRange, dataTransfer ) { - // Paste event should be fired before delete contents because otherwise - // Chrome have a problem with drop range (Chrome split the drop - // range container so the offset is bigger then container length). - dropRange.select(); - firePasteEvents( editor, { dataTransfer: dataTransfer, method: 'drop' }, 1 ); - - // Remove dragged content and make a snapshot. - dataTransfer.sourceEditor.fire( 'saveSnapshot' ); - - dataTransfer.sourceEditor.editable().extractHtmlFromRange( dragRange ); - - // Make some selection before saving snapshot, otherwise error will be thrown, because - // there will be no valid selection after content is removed. - dataTransfer.sourceEditor.getSelection().selectRanges( [ dragRange ] ); - dataTransfer.sourceEditor.fire( 'saveSnapshot' ); - } - - // Drop from external source. - function externalDrop( dropRange, dataTransfer ) { - // Paste content into the drop position. - dropRange.select(); - - firePasteEvents( editor, { dataTransfer: dataTransfer, method: 'drop' }, 1 ); - - // Usually we reset DataTranfer on dragend, - // but dragend is called on the same element as dragstart - // so it will not be called on on external drop. - clipboard.resetDragDataTransfer(); - } - - // Fire drag/drop events (dragstart, dragend, drop). - function fireDragEvent( evt, dragRange, dropRange ) { - var eventData = { - $: evt.data.$, - target: evt.data.getTarget() - }; - - if ( dragRange ) { - eventData.dragRange = dragRange; - } - if ( dropRange ) { - eventData.dropRange = dropRange; - } - - if ( editor.fire( evt.name, eventData ) === false ) { - evt.data.preventDefault(); - } - } - - function getContainerChildCount( container ) { - if ( container.type != CKEDITOR.NODE_ELEMENT ) { - container = container.getParent(); - } - - return container.getChildCount(); - } - } ); - } - - /** - * @singleton - * @class CKEDITOR.plugins.clipboard - */ - CKEDITOR.plugins.clipboard = { - /** - * True if the environment allows to set data on copy or cut manually. This value is false in IE, because this browser - * shows the security dialog window when the script tries to set clipboard data and on iOS, because custom data is - * not saved to clipboard there. - * - * @since 4.5 - * @readonly - * @property {Boolean} - */ - isCustomCopyCutSupported: !CKEDITOR.env.ie && !CKEDITOR.env.iOS, - - /** - * True if the environment supports MIME types and custom data types in dataTransfer/cliboardData getData/setData methods. - * - * @since 4.5 - * @readonly - * @property {Boolean} - */ - isCustomDataTypesSupported: !CKEDITOR.env.ie, - - /** - * True if the environment supports File API. - * - * @since 4.5 - * @readonly - * @property {Boolean} - */ - isFileApiSupported: !CKEDITOR.env.ie || CKEDITOR.env.version > 9, - - /** - * Main native paste event editable should listen to. - * - * **Note:** Safari does not like the {@link CKEDITOR.editor#beforePaste} event — it sometimes does not - * handle Ctrl+C properly. This is probably caused by some race condition between events. - * Chrome, Firefox and Edge work well with both events, so it is better to use {@link CKEDITOR.editor#paste} - * which will handle pasting from e.g. browsers' menu bars. - * IE7/8 does not like the {@link CKEDITOR.editor#paste} event for which it is throwing random errors. - * - * @since 4.5 - * @readonly - * @property {String} - */ - mainPasteEvent: ( CKEDITOR.env.ie && !CKEDITOR.env.edge ) ? 'beforepaste' : 'paste', - - /** - * Returns `true` if it is expected that a browser provides HTML data through the Clipboard API. - * If not, this method returns `false` and as a result CKEditor will use the paste bin. Read more in - * the [Clipboard Integration](http://docs.ckeditor.com/#!/guide/dev_clipboard-section-clipboard-api) guide. - * - * @since 4.5.2 - * @returns {Boolean} - */ - canClipboardApiBeTrusted: function( dataTransfer, editor ) { - // If it's an internal or cross-editor data transfer, then it means that custom cut/copy/paste support works - // and that the data were put manually on the data transfer so we can be sure that it's available. - if ( dataTransfer.getTransferType( editor ) != CKEDITOR.DATA_TRANSFER_EXTERNAL ) { - return true; - } - - // In Chrome we can trust Clipboard API, with the exception of Chrome on Android (in both - mobile and desktop modes), where - // clipboard API is not available so we need to check it (http://dev.ckeditor.com/ticket/13187). - if ( CKEDITOR.env.chrome && !dataTransfer.isEmpty() ) { - return true; - } - - // Because of a Firefox bug HTML data are not available in some cases (e.g. paste from Word), in such cases we - // need to use the pastebin (http://dev.ckeditor.com/ticket/13528, https://bugzilla.mozilla.org/show_bug.cgi?id=1183686). - if ( CKEDITOR.env.gecko && ( dataTransfer.getData( 'text/html' ) || dataTransfer.getFilesCount() ) ) { - return true; - } - - // Safari fixed clipboard in 10.1 (https://bugs.webkit.org/show_bug.cgi?id=19893) (http://dev.ckeditor.com/ticket/16982). - // However iOS version still doesn't work well enough (https://bugs.webkit.org/show_bug.cgi?id=19893#c34). - if ( CKEDITOR.env.safari && CKEDITOR.env.version >= 603 && !CKEDITOR.env.iOS ) { - return true; - } - - // In older Safari and IE HTML data is not available though the Clipboard API. - // In Edge things are a bit messy at the moment - - // https://connect.microsoft.com/IE/feedback/details/1572456/edge-clipboard-api-text-html-content-messed-up-in-event-clipboarddata - // It is safer to use the paste bin in unknown cases. - return false; - }, - - /** - * Returns the element that should be used as the target for the drop event. - * - * @since 4.5 - * @param {CKEDITOR.editor} editor The editor instance. - * @returns {CKEDITOR.dom.domObject} the element that should be used as the target for the drop event. - */ - getDropTarget: function( editor ) { - var editable = editor.editable(); - - // http://dev.ckeditor.com/ticket/11123 Firefox needs to listen on document, because otherwise event won't be fired. - // http://dev.ckeditor.com/ticket/11086 IE8 cannot listen on document. - if ( ( CKEDITOR.env.ie && CKEDITOR.env.version < 9 ) || editable.isInline() ) { - return editable; - } else { - return editor.document; - } - }, - - /** - * IE 8 & 9 split text node on drop so the first node contains the - * text before the drop position and the second contains the rest. If you - * drag the content from the same node you will be not be able to get - * it (the range becomes invalid), so you need to join them back. - * - * Note that the first node in IE 8 & 9 is the original node object - * but with shortened content. - * - * Before: - * --- Text Node A ---------------------------------- - * /\ - * Drag position - * - * After (IE 8 & 9): - * --- Text Node A ----- --- Text Node B ----------- - * /\ /\ - * Drop position Drag position - * (invalid) - * - * After (other browsers): - * --- Text Node A ---------------------------------- - * /\ /\ - * Drop position Drag position - * - * **Note:** This function is in the public scope for tests usage only. - * - * @since 4.5 - * @private - * @param {CKEDITOR.dom.range} dragRange The drag range. - * @param {CKEDITOR.dom.range} dropRange The drop range. - * @param {Number} preDragStartContainerChildCount The number of children of the drag range start container before the drop. - * @param {Number} preDragEndContainerChildCount The number of children of the drag range end container before the drop. - */ - fixSplitNodesAfterDrop: function( dragRange, dropRange, preDragStartContainerChildCount, preDragEndContainerChildCount ) { - var dropContainer = dropRange.startContainer; - - if ( - typeof preDragEndContainerChildCount != 'number' || - typeof preDragStartContainerChildCount != 'number' - ) { - return; - } - - // We are only concerned about ranges anchored in elements. - if ( dropContainer.type != CKEDITOR.NODE_ELEMENT ) { - return; - } - - if ( handleContainer( dragRange.startContainer, dropContainer, preDragStartContainerChildCount ) ) { - return; - } - - if ( handleContainer( dragRange.endContainer, dropContainer, preDragEndContainerChildCount ) ) { - return; - } - - function handleContainer( dragContainer, dropContainer, preChildCount ) { - var dragElement = dragContainer; - if ( dragElement.type == CKEDITOR.NODE_TEXT ) { - dragElement = dragContainer.getParent(); - } - - if ( dragElement.equals( dropContainer ) && preChildCount != dropContainer.getChildCount() ) { - applyFix( dropRange ); - return true; - } - } - - function applyFix( dropRange ) { - var nodeBefore = dropRange.startContainer.getChild( dropRange.startOffset - 1 ), - nodeAfter = dropRange.startContainer.getChild( dropRange.startOffset ); - - if ( - nodeBefore && nodeBefore.type == CKEDITOR.NODE_TEXT && - nodeAfter && nodeAfter.type == CKEDITOR.NODE_TEXT - ) { - var offset = nodeBefore.getLength(); - - nodeBefore.setText( nodeBefore.getText() + nodeAfter.getText() ); - nodeAfter.remove(); - - dropRange.setStart( nodeBefore, offset ); - dropRange.collapse( true ); - } - } - }, - - /** - * Checks whether turning the drag range into bookmarks will invalidate the drop range. - * This usually happens when the drop range shares the container with the drag range and is - * located after the drag range, but there are countless edge cases. - * - * This function is stricly related to {@link #internalDrop} which toggles - * order in which it creates bookmarks for both ranges based on a value returned - * by this method. In some cases this method returns a value which is not necessarily - * true in terms of what it was meant to check, but it is convenient, because - * we know how it is interpreted in {@link #internalDrop}, so the correct - * behavior of the entire algorithm is assured. - * - * **Note:** This function is in the public scope for tests usage only. - * - * @since 4.5 - * @private - * @param {CKEDITOR.dom.range} dragRange The first range to compare. - * @param {CKEDITOR.dom.range} dropRange The second range to compare. - * @returns {Boolean} `true` if the first range is before the second range. - */ - isDropRangeAffectedByDragRange: function( dragRange, dropRange ) { - var dropContainer = dropRange.startContainer, - dropOffset = dropRange.endOffset; - - // Both containers are the same and drop offset is at the same position or later. - // " A L] A " " M A " - // ^ ^ - if ( dragRange.endContainer.equals( dropContainer ) && dragRange.endOffset <= dropOffset ) { - return true; - } - - // Bookmark for drag start container will mess up with offsets. - // " O [L A " " M A " - // ^ ^ - if ( - dragRange.startContainer.getParent().equals( dropContainer ) && - dragRange.startContainer.getIndex() < dropOffset - ) { - return true; - } - - // Bookmark for drag end container will mess up with offsets. - // " O] L A " " M A " - // ^ ^ - if ( - dragRange.endContainer.getParent().equals( dropContainer ) && - dragRange.endContainer.getIndex() < dropOffset - ) { - return true; - } - - return false; - }, - - /** - * Internal drag and drop (drag and drop in the same editor instance). - * - * **Note:** This function is in the public scope for tests usage only. - * - * @since 4.5 - * @private - * @param {CKEDITOR.dom.range} dragRange The first range to compare. - * @param {CKEDITOR.dom.range} dropRange The second range to compare. - * @param {CKEDITOR.plugins.clipboard.dataTransfer} dataTransfer - * @param {CKEDITOR.editor} editor - */ - internalDrop: function( dragRange, dropRange, dataTransfer, editor ) { - var clipboard = CKEDITOR.plugins.clipboard, - editable = editor.editable(), - dragBookmark, dropBookmark, isDropRangeAffected; - - // Save and lock snapshot so there will be only - // one snapshot for both remove and insert content. - editor.fire( 'saveSnapshot' ); - editor.fire( 'lockSnapshot', { dontUpdate: 1 } ); - - if ( CKEDITOR.env.ie && CKEDITOR.env.version < 10 ) { - this.fixSplitNodesAfterDrop( - dragRange, - dropRange, - clipboard.dragStartContainerChildCount, - clipboard.dragEndContainerChildCount - ); - } - - // Because we manipulate multiple ranges we need to do it carefully, - // changing one range (event creating a bookmark) may make other invalid. - // We need to change ranges into bookmarks so we can manipulate them easily in the future. - // We can change the range which is later in the text before we change the preceding range. - // We call isDropRangeAffectedByDragRange to test the order of ranges. - isDropRangeAffected = this.isDropRangeAffectedByDragRange( dragRange, dropRange ); - if ( !isDropRangeAffected ) { - dragBookmark = dragRange.createBookmark( false ); - } - dropBookmark = dropRange.clone().createBookmark( false ); - if ( isDropRangeAffected ) { - dragBookmark = dragRange.createBookmark( false ); - } - - // Check if drop range is inside range. - // This is an edge case when we drop something on editable's margin/padding. - // That space is not treated as a part of the range we drag, so it is possible to drop there. - // When we drop, browser tries to find closest drop position and it finds it inside drag range. (http://dev.ckeditor.com/ticket/13453) - var startNode = dragBookmark.startNode, - endNode = dragBookmark.endNode, - dropNode = dropBookmark.startNode, - dropInsideDragRange = - // Must check endNode because dragRange could be collapsed in some edge cases (simulated DnD). - endNode && - ( startNode.getPosition( dropNode ) & CKEDITOR.POSITION_PRECEDING ) && - ( endNode.getPosition( dropNode ) & CKEDITOR.POSITION_FOLLOWING ); - - // If the drop range happens to be inside drag range change it's position to the beginning of the drag range. - if ( dropInsideDragRange ) { - // We only change position of bookmark span that is connected with dropBookmark. - // dropRange will be overwritten and set to the dropBookmark later. - dropNode.insertBefore( startNode ); - } - - // No we can safely delete content for the drag range... - dragRange = editor.createRange(); - dragRange.moveToBookmark( dragBookmark ); - editable.extractHtmlFromRange( dragRange, 1 ); - - // ...and paste content into the drop position. - dropRange = editor.createRange(); - dropRange.moveToBookmark( dropBookmark ); - - // We do not select drop range, because of may be in the place we can not set the selection - // (e.g. between blocks, in case of block widget D&D). We put range to the paste event instead. - firePasteEvents( editor, { dataTransfer: dataTransfer, method: 'drop', range: dropRange }, 1 ); - - editor.fire( 'unlockSnapshot' ); - }, - - /** - * Gets the range from the `drop` event. - * - * @since 4.5 - * @param {Object} domEvent A native DOM drop event object. - * @param {CKEDITOR.editor} editor The source editor instance. - * @returns {CKEDITOR.dom.range} range at drop position. - */ - getRangeAtDropPosition: function( dropEvt, editor ) { - var $evt = dropEvt.data.$, - x = $evt.clientX, - y = $evt.clientY, - $range, - defaultRange = editor.getSelection( true ).getRanges()[ 0 ], - range = editor.createRange(); - - // Make testing possible. - if ( dropEvt.data.testRange ) - return dropEvt.data.testRange; - - // Webkits. - if ( document.caretRangeFromPoint && editor.document.$.caretRangeFromPoint( x, y ) ) { - $range = editor.document.$.caretRangeFromPoint( x, y ); - range.setStart( CKEDITOR.dom.node( $range.startContainer ), $range.startOffset ); - range.collapse( true ); - } - // FF. - else if ( $evt.rangeParent ) { - range.setStart( CKEDITOR.dom.node( $evt.rangeParent ), $evt.rangeOffset ); - range.collapse( true ); - } - // IEs 9+. - // We check if editable is focused to make sure that it's an internal DnD. External DnD must use the second - // mechanism because of http://dev.ckeditor.com/ticket/13472#comment:6. - else if ( CKEDITOR.env.ie && CKEDITOR.env.version > 8 && defaultRange && editor.editable().hasFocus ) { - // On IE 9+ range by default is where we expected it. - // defaultRange may be undefined if dragover was canceled (file drop). - return defaultRange; - } - // IE 8 and all IEs if !defaultRange or external DnD. - else if ( document.body.createTextRange ) { - // To use this method we need a focus (which may be somewhere else in case of external drop). - editor.focus(); - - $range = editor.document.getBody().$.createTextRange(); - try { - var sucess = false; - - // If user drop between text line IEs moveToPoint throws exception: - // - // Lorem ipsum pulvinar purus et euismod - // - // dolor sit amet,| consectetur adipiscing - // * - // vestibulum tincidunt augue eget tempus. - // - // * - drop position - // | - expected cursor position - // - // So we try to call moveToPoint with +-1px up to +-20px above or - // below original drop position to find nearest good drop position. - for ( var i = 0; i < 20 && !sucess; i++ ) { - if ( !sucess ) { - try { - $range.moveToPoint( x, y - i ); - sucess = true; - } catch ( err ) { - } - } - if ( !sucess ) { - try { - $range.moveToPoint( x, y + i ); - sucess = true; - } catch ( err ) { - } - } - } - - if ( sucess ) { - var id = 'cke-temp-' + ( new Date() ).getTime(); - $range.pasteHTML( '\u200b' ); - - var span = editor.document.getById( id ); - range.moveToPosition( span, CKEDITOR.POSITION_BEFORE_START ); - span.remove(); - } else { - // If the fist method does not succeed we might be next to - // the short element (like header): - // - // Lorem ipsum pulvinar purus et euismod. - // - // - // SOME HEADER| * - // - // - // vestibulum tincidunt augue eget tempus. - // - // * - drop position - // | - expected cursor position - // - // In such situation elementFromPoint returns proper element. Using getClientRect - // it is possible to check if the cursor should be at the beginning or at the end - // of paragraph. - var $element = editor.document.$.elementFromPoint( x, y ), - element = new CKEDITOR.dom.element( $element ), - rect; - - if ( !element.equals( editor.editable() ) && element.getName() != 'html' ) { - rect = element.getClientRect(); - - if ( x < rect.left ) { - range.setStartAt( element, CKEDITOR.POSITION_AFTER_START ); - range.collapse( true ); - } else { - range.setStartAt( element, CKEDITOR.POSITION_BEFORE_END ); - range.collapse( true ); - } - } - // If drop happens on no element elementFromPoint returns html or body. - // - // * |Lorem ipsum pulvinar purus et euismod. - // - // vestibulum tincidunt augue eget tempus. - // - // * - drop position - // | - expected cursor position - // - // In such case we can try to use default selection. If startContainer is not - // 'editable' element it is probably proper selection. - else if ( defaultRange && defaultRange.startContainer && - !defaultRange.startContainer.equals( editor.editable() ) ) { - return defaultRange; - - // Otherwise we can not find any drop position and we have to return null - // and cancel drop event. - } else { - return null; - } - - } - } catch ( err ) { - return null; - } - } else { - return null; - } - - return range; - }, - - /** - * This function tries to link the `evt.data.dataTransfer` property of the {@link CKEDITOR.editor#dragstart}, - * {@link CKEDITOR.editor#dragend} and {@link CKEDITOR.editor#drop} events to a single - * {@link CKEDITOR.plugins.clipboard.dataTransfer} object. - * - * This method is automatically used by the core of the drag and drop functionality and - * usually does not have to be called manually when using the drag and drop events. - * - * This method behaves differently depending on whether the drag and drop events were fired - * artificially (to represent a non-native drag and drop) or whether they were caused by the native drag and drop. - * - * If the native event is not available, then it will create a new {@link CKEDITOR.plugins.clipboard.dataTransfer} - * instance (if it does not exist already) and will link it to this and all following event objects until - * the {@link #resetDragDataTransfer} method is called. It means that all three drag and drop events must be fired - * in order to ensure that the data transfer is bound correctly. - * - * If the native event is available, then the {@link CKEDITOR.plugins.clipboard.dataTransfer} is identified - * by its ID and a new instance is assigned to the `evt.data.dataTransfer` only if the ID changed or - * the {@link #resetDragDataTransfer} method was called. - * - * @since 4.5 - * @param {CKEDITOR.dom.event} [evt] A drop event object. - * @param {CKEDITOR.editor} [sourceEditor] The source editor instance. - */ - initDragDataTransfer: function( evt, sourceEditor ) { - // Create a new dataTransfer object based on the drop event. - // If this event was used on dragstart to create dataTransfer - // both dataTransfer objects will have the same id. - var nativeDataTransfer = evt.data.$ ? evt.data.$.dataTransfer : null, - dataTransfer = new this.dataTransfer( nativeDataTransfer, sourceEditor ); - - if ( !nativeDataTransfer ) { - // No native event. - if ( this.dragData ) { - dataTransfer = this.dragData; - } else { - this.dragData = dataTransfer; - } - } else { - // Native event. If there is the same id we will replace dataTransfer with the one - // created on drag, because it contains drag editor, drag content and so on. - // Otherwise (in case of drag from external source) we save new object to - // the global clipboard.dragData. - if ( this.dragData && dataTransfer.id == this.dragData.id ) { - dataTransfer = this.dragData; - } else { - this.dragData = dataTransfer; - } - } - - evt.data.dataTransfer = dataTransfer; - }, - - /** - * Removes the global {@link #dragData} so the next call to {@link #initDragDataTransfer} - * always creates a new instance of {@link CKEDITOR.plugins.clipboard.dataTransfer}. - * - * @since 4.5 - */ - resetDragDataTransfer: function() { - this.dragData = null; - }, - - /** - * Global object storing the data transfer of the current drag and drop operation. - * Do not use it directly, use {@link #initDragDataTransfer} and {@link #resetDragDataTransfer}. - * - * Note: This object is global (meaning that it is not related to a single editor instance) - * in order to handle drag and drop from one editor into another. - * - * @since 4.5 - * @private - * @property {CKEDITOR.plugins.clipboard.dataTransfer} dragData - */ - - /** - * Range object to save the drag range and remove its content after the drop. - * - * @since 4.5 - * @private - * @property {CKEDITOR.dom.range} dragRange - */ - - /** - * Initializes and links data transfer objects based on the paste event. If the data - * transfer object was already initialized on this event, the function will - * return that object. In IE it is not possible to link copy/cut and paste events - * so the method always returns a new object. The same happens if there is no paste event - * passed to the method. - * - * @since 4.5 - * @param {CKEDITOR.dom.event} [evt] A paste event object. - * @param {CKEDITOR.editor} [sourceEditor] The source editor instance. - * @returns {CKEDITOR.plugins.clipboard.dataTransfer} The data transfer object. - */ - initPasteDataTransfer: function( evt, sourceEditor ) { - if ( !this.isCustomCopyCutSupported ) { - // Edge does not support custom copy/cut, but it have some useful data in the clipboardData (http://dev.ckeditor.com/ticket/13755). - return new this.dataTransfer( ( CKEDITOR.env.edge && evt && evt.data.$ && evt.data.$.clipboardData ) || null, sourceEditor ); - } else if ( evt && evt.data && evt.data.$ ) { - var dataTransfer = new this.dataTransfer( evt.data.$.clipboardData, sourceEditor ); - - if ( this.copyCutData && dataTransfer.id == this.copyCutData.id ) { - dataTransfer = this.copyCutData; - dataTransfer.$ = evt.data.$.clipboardData; - } else { - this.copyCutData = dataTransfer; - } - - return dataTransfer; - } else { - return new this.dataTransfer( null, sourceEditor ); - } - }, - - /** - * Prevents dropping on the specified element. - * - * @since 4.5 - * @param {CKEDITOR.dom.element} element The element on which dropping should be disabled. - */ - preventDefaultDropOnElement: function( element ) { - element && element.on( 'dragover', preventDefaultSetDropEffectToNone ); - } - }; - - // Data type used to link drag and drop events. - // - // In IE URL data type is buggie and there is no way to mark drag & drop without - // modifying text data (which would be displayed if user drop content to the textarea) - // so we just read dragged text. - // - // In Chrome and Firefox we can use custom data types. - var clipboardIdDataType = CKEDITOR.plugins.clipboard.isCustomDataTypesSupported ? 'cke/id' : 'Text'; - /** - * Facade for the native `dataTransfer`/`clipboadData` object to hide all differences - * between browsers. - * - * @since 4.5 - * @class CKEDITOR.plugins.clipboard.dataTransfer - * @constructor Creates a class instance. - * @param {Object} [nativeDataTransfer] A native data transfer object. - * @param {CKEDITOR.editor} [editor] The source editor instance. If the editor is defined, dataValue will - * be created based on the editor content and the type will be 'html'. - */ - CKEDITOR.plugins.clipboard.dataTransfer = function( nativeDataTransfer, editor ) { - if ( nativeDataTransfer ) { - this.$ = nativeDataTransfer; - } - - this._ = { - metaRegExp: /^/i, - bodyRegExp: /([\s\S]*)<\/body>/i, - fragmentRegExp: //g, - - data: {}, - files: [], - - normalizeType: function( type ) { - type = type.toLowerCase(); - - if ( type == 'text' || type == 'text/plain' ) { - return 'Text'; // IE support only Text and URL; - } else if ( type == 'url' ) { - return 'URL'; // IE support only Text and URL; - } else { - return type; - } - } - }; - - // Check if ID is already created. - this.id = this.getData( clipboardIdDataType ); - - // If there is no ID we need to create it. Different browsers needs different ID. - if ( !this.id ) { - if ( clipboardIdDataType == 'Text' ) { - // For IE10+ only Text data type is supported and we have to compare dragged - // and dropped text. If the ID is not set it means that empty string was dragged - // (ex. image with no alt). We change null to empty string. - this.id = ''; - } else { - // String for custom data type. - this.id = 'cke-' + CKEDITOR.tools.getUniqueId(); - } - } - - // In IE10+ we can not use any data type besides text, so we do not call setData. - if ( clipboardIdDataType != 'Text' ) { - // Try to set ID so it will be passed from the drag to the drop event. - // On some browsers with some event it is not possible to setData so we - // need to catch exceptions. - try { - this.$.setData( clipboardIdDataType, this.id ); - } catch ( err ) {} - } - - if ( editor ) { - this.sourceEditor = editor; - - this.setData( 'text/html', editor.getSelectedHtml( 1 ) ); - - // Without setData( 'text', ... ) on dragstart there is no drop event in Safari. - // Also 'text' data is empty as drop to the textarea does not work if we do not put there text. - if ( clipboardIdDataType != 'Text' && !this.getData( 'text/plain' ) ) { - this.setData( 'text/plain', editor.getSelection().getSelectedText() ); - } - } - - /** - * Data transfer ID used to bind all dataTransfer - * objects based on the same event (e.g. in drag and drop events). - * - * @readonly - * @property {String} id - */ - - /** - * A native DOM event object. - * - * @readonly - * @property {Object} $ - */ - - /** - * Source editor — the editor where the drag starts. - * Might be undefined if the drag starts outside the editor (e.g. when dropping files to the editor). - * - * @readonly - * @property {CKEDITOR.editor} sourceEditor - */ - - /** - * Private properties and methods. - * - * @private - * @property {Object} _ - */ - }; - - /** - * Data transfer operation (drag and drop or copy and paste) started and ended in the same - * editor instance. - * - * @since 4.5 - * @readonly - * @property {Number} [=1] - * @member CKEDITOR - */ - CKEDITOR.DATA_TRANSFER_INTERNAL = 1; - - /** - * Data transfer operation (drag and drop or copy and paste) started in one editor - * instance and ended in another. - * - * @since 4.5 - * @readonly - * @property {Number} [=2] - * @member CKEDITOR - */ - CKEDITOR.DATA_TRANSFER_CROSS_EDITORS = 2; - - /** - * Data transfer operation (drag and drop or copy and paste) started outside of the editor. - * The source of the data may be a textarea, HTML, another application, etc. - * - * @since 4.5 - * @readonly - * @property {Number} [=3] - * @member CKEDITOR - */ - CKEDITOR.DATA_TRANSFER_EXTERNAL = 3; - - CKEDITOR.plugins.clipboard.dataTransfer.prototype = { - /** - * Facade for the native `getData` method. - * - * @param {String} type The type of data to retrieve. - * @param {Boolean} [getNative=false] Indicates if the whole, original content of the dataTransfer should be returned. - * Introduced in CKEditor 4.7.0. - * @returns {String} type Stored data for the given type or an empty string if the data for that type does not exist. - */ - getData: function( type, getNative ) { - function isEmpty( data ) { - return data === undefined || data === null || data === ''; - } - - function filterUnwantedCharacters( data ) { - if ( typeof data !== 'string' ) { - return data; - } - - var htmlEnd = data.indexOf( '' ); - - if ( htmlEnd !== -1 ) { - // Just cut everything after ``, so everything after htmlEnd index + length of ``. - // Required to workaround bug: https://bugs.chromium.org/p/chromium/issues/detail?id=696978 - return data.substring( 0, htmlEnd + 7 ); - } - - return data; - } - - type = this._.normalizeType( type ); - - var data = this._.data[ type ], - result; - - if ( isEmpty( data ) ) { - try { - data = this.$.getData( type ); - } catch ( e ) {} - } - - if ( isEmpty( data ) ) { - data = ''; - } - - // Some browsers add at the begging of the HTML data - // or surround it with ...(some content) and (some content) - // This code removes meta tags and returns only the contents of the element if found. Note that - // some significant content may be placed outside Start/EndFragment comments so it's kept. - // - // See http://dev.ckeditor.com/ticket/13583 for more details. - // Additionally http://dev.ckeditor.com/ticket/16847 adds a flag allowing to get the whole, original content. - if ( type == 'text/html' && !getNative ) { - data = data.replace( this._.metaRegExp, '' ); - - // Keep only contents of the element - result = this._.bodyRegExp.exec( data ); - if ( result && result.length ) { - data = result[ 1 ]; - - // Remove also comments. - data = data.replace( this._.fragmentRegExp, '' ); - } - } - // Firefox on Linux put files paths as a text/plain data if there are files - // in the dataTransfer object. We need to hide it, because files should be - // handled on paste only if dataValue is empty. - else if ( type == 'Text' && CKEDITOR.env.gecko && this.getFilesCount() && - data.substring( 0, 7 ) == 'file://' ) { - data = ''; - } - - return filterUnwantedCharacters( data ); - }, - - /** - * Facade for the native `setData` method. - * - * @param {String} type The type of data to retrieve. - * @param {String} value The data to add. - */ - setData: function( type, value ) { - type = this._.normalizeType( type ); - - this._.data[ type ] = value; - - // There is "Unexpected call to method or property access." error if you try - // to set data of unsupported type on IE. - if ( !CKEDITOR.plugins.clipboard.isCustomDataTypesSupported && type != 'URL' && type != 'Text' ) { - return; - } - - // If we use the text type to bind the ID, then if someone tries to set the text, we must also - // update ID accordingly. http://dev.ckeditor.com/ticket/13468. - if ( clipboardIdDataType == 'Text' && type == 'Text' ) { - this.id = value; - } - - try { - this.$.setData( type, value ); - } catch ( e ) {} - }, - - /** - * Gets the data transfer type. - * - * @param {CKEDITOR.editor} targetEditor The drop/paste target editor instance. - * @returns {Number} Possible values: {@link CKEDITOR#DATA_TRANSFER_INTERNAL}, - * {@link CKEDITOR#DATA_TRANSFER_CROSS_EDITORS}, {@link CKEDITOR#DATA_TRANSFER_EXTERNAL}. - */ - getTransferType: function( targetEditor ) { - if ( !this.sourceEditor ) { - return CKEDITOR.DATA_TRANSFER_EXTERNAL; - } else if ( this.sourceEditor == targetEditor ) { - return CKEDITOR.DATA_TRANSFER_INTERNAL; - } else { - return CKEDITOR.DATA_TRANSFER_CROSS_EDITORS; - } - }, - - /** - * Copies the data from the native data transfer to a private cache. - * This function is needed because the data from the native data transfer - * is available only synchronously to the event listener. It is not possible - * to get the data asynchronously, after a timeout, and the {@link CKEDITOR.editor#paste} - * event is fired asynchronously — hence the need for caching the data. - */ - cacheData: function() { - if ( !this.$ ) { - return; - } - - var that = this, - i, file; - - function getAndSetData( type ) { - type = that._.normalizeType( type ); - - var data = that.getData( type, true ); - if ( data ) { - that._.data[ type ] = data; - } - } - - // Copy data. - if ( CKEDITOR.plugins.clipboard.isCustomDataTypesSupported ) { - if ( this.$.types ) { - for ( i = 0; i < this.$.types.length; i++ ) { - getAndSetData( this.$.types[ i ] ); - } - } - } else { - getAndSetData( 'Text' ); - getAndSetData( 'URL' ); - } - - // Copy files references. - file = this._getImageFromClipboard(); - if ( ( this.$ && this.$.files ) || file ) { - this._.files = []; - - // Edge have empty files property with no length (http://dev.ckeditor.com/ticket/13755). - if ( this.$.files && this.$.files.length ) { - for ( i = 0; i < this.$.files.length; i++ ) { - this._.files.push( this.$.files[ i ] ); - } - } - - // Don't include $.items if both $.files and $.items contains files, because, - // according to spec and browsers behavior, they contain the same files. - if ( this._.files.length === 0 && file ) { - this._.files.push( file ); - } - } - }, - - /** - * Gets the number of files in the dataTransfer object. - * - * @returns {Number} The number of files. - */ - getFilesCount: function() { - if ( this._.files.length ) { - return this._.files.length; - } - - if ( this.$ && this.$.files && this.$.files.length ) { - return this.$.files.length; - } - - return this._getImageFromClipboard() ? 1 : 0; - }, - - /** - * Gets the file at the index given. - * - * @param {Number} i Index. - * @returns {File} File instance. - */ - getFile: function( i ) { - if ( this._.files.length ) { - return this._.files[ i ]; - } - - if ( this.$ && this.$.files && this.$.files.length ) { - return this.$.files[ i ]; - } - - // File or null if the file was not found. - return i === 0 ? this._getImageFromClipboard() : undefined; - }, - - /** - * Checks if the data transfer contains any data. - * - * @returns {Boolean} `true` if the object contains no data. - */ - isEmpty: function() { - var typesToCheck = {}, - type; - - // If dataTransfer contains files it is not empty. - if ( this.getFilesCount() ) { - return false; - } - - // Add custom types. - for ( type in this._.data ) { - typesToCheck[ type ] = 1; - } - - // Add native types. - if ( this.$ ) { - if ( CKEDITOR.plugins.clipboard.isCustomDataTypesSupported ) { - if ( this.$.types ) { - for ( var i = 0; i < this.$.types.length; i++ ) { - typesToCheck[ this.$.types[ i ] ] = 1; - } - } - } else { - typesToCheck.Text = 1; - typesToCheck.URL = 1; - } - } - - // Remove ID. - if ( clipboardIdDataType != 'Text' ) { - typesToCheck[ clipboardIdDataType ] = 0; - } - - for ( type in typesToCheck ) { - if ( typesToCheck[ type ] && this.getData( type ) !== '' ) { - return false; - } - } - - return true; - }, - - /** - * When the content of the clipboard is pasted in Chrome, the clipboard data object has an empty `files` property, - * but it is possible to get the file as `items[0].getAsFile();` (http://dev.ckeditor.com/ticket/12961). - * - * @private - * @returns {File} File instance or `null` if not found. - */ - _getImageFromClipboard: function() { - var file; - - if ( this.$ && this.$.items && this.$.items[ 0 ] ) { - try { - file = this.$.items[ 0 ].getAsFile(); - // Duck typing - if ( file && file.type ) { - return file; - } - } catch ( err ) { - // noop - } - } - - return undefined; - } - }; -} )(); - -/** - * The default content type that is used when pasted data cannot be clearly recognized as HTML or text. - * - * For example: `'foo'` may come from a plain text editor or a website. It is not possible to recognize the content - * type in this case, so the default type will be used. At the same time it is clear that `'example text'` is - * HTML and its origin is a web page, email or another rich text editor. - * - * **Note:** If content type is text, then styles of the paste context are preserved. - * - * CKEDITOR.config.clipboard_defaultContentType = 'text'; - * - * See also the {@link CKEDITOR.editor#paste} event and read more about the integration with clipboard - * in the [Clipboard Deep Dive guide](#!/guide/dev_clipboard). - * - * @since 4.0 - * @cfg {'html'/'text'} [clipboard_defaultContentType='html'] - * @member CKEDITOR.config - */ - -/** - * Fired after the user initiated a paste action, but before the data is inserted into the editor. - * The listeners to this event are able to process the content before its insertion into the document. - * - * Read more about the integration with clipboard in the [Clipboard Deep Dive guide](#!/guide/dev_clipboard). - * - * See also: - * - * * the {@link CKEDITOR.config#pasteFilter} option, - * * the {@link CKEDITOR.editor#drop} event, - * * the {@link CKEDITOR.plugins.clipboard.dataTransfer} class. - * - * @since 3.1 - * @event paste - * @member CKEDITOR.editor - * @param {CKEDITOR.editor} editor This editor instance. - * @param data - * @param {String} data.type The type of data in `data.dataValue`. Usually `'html'` or `'text'`, but for listeners - * with a priority smaller than `6` it may also be `'auto'` which means that the content type has not been recognised yet - * (this will be done by the content type sniffer that listens with priority `6`). - * @param {String} data.dataValue HTML to be pasted. - * @param {String} data.method Indicates the data transfer method. It could be drag and drop or copy and paste. - * Possible values: `'drop'`, `'paste'`. Introduced in CKEditor 4.5. - * @param {CKEDITOR.plugins.clipboard.dataTransfer} data.dataTransfer Facade for the native dataTransfer object - * which provides access to various data types and files, and passes some data between linked events - * (like drag and drop). Introduced in CKEditor 4.5. - * @param {Boolean} [data.dontFilter=false] Whether the {@link CKEDITOR.editor#pasteFilter paste filter} should not - * be applied to data. This option has no effect when `data.type` equals `'text'` which means that for instance - * {@link CKEDITOR.config#forcePasteAsPlainText} has a higher priority. Introduced in CKEditor 4.5. - */ - -/** - * Fired before the {@link #paste} event. Allows to preset data type. - * - * **Note:** This event is deprecated. Add a `0` priority listener for the - * {@link #paste} event instead. - * - * @deprecated - * @event beforePaste - * @member CKEDITOR.editor - */ - -/** - * Fired after the {@link #paste} event if content was modified. Note that if the paste - * event does not insert any data, the `afterPaste` event will not be fired. - * - * @event afterPaste - * @member CKEDITOR.editor - */ - -/** - * Facade for the native `drop` event. Fired when the native `drop` event occurs. - * - * **Note:** To manipulate dropped data, use the {@link CKEDITOR.editor#paste} event. - * Use the `drop` event only to control drag and drop operations (e.g. to prevent the ability to drop some content). - * - * Read more about integration with drag and drop in the [Clipboard Deep Dive guide](#!/guide/dev_clipboard). - * - * See also: - * - * * The {@link CKEDITOR.editor#paste} event, - * * The {@link CKEDITOR.editor#dragstart} and {@link CKEDITOR.editor#dragend} events, - * * The {@link CKEDITOR.plugins.clipboard.dataTransfer} class. - * - * @since 4.5 - * @event drop - * @member CKEDITOR.editor - * @param {CKEDITOR.editor} editor This editor instance. - * @param data - * @param {Object} data.$ Native drop event. - * @param {CKEDITOR.dom.node} data.target Drop target. - * @param {CKEDITOR.plugins.clipboard.dataTransfer} data.dataTransfer DataTransfer facade. - * @param {CKEDITOR.dom.range} data.dragRange Drag range, lets you manipulate the drag range. - * Note that dragged HTML is saved as `text/html` data on `dragstart` so if you change the drag range - * on drop, dropped HTML will not change. You need to change it manually using - * {@link CKEDITOR.plugins.clipboard.dataTransfer#setData dataTransfer.setData}. - * @param {CKEDITOR.dom.range} data.dropRange Drop range, lets you manipulate the drop range. - */ - -/** - * Facade for the native `dragstart` event. Fired when the native `dragstart` event occurs. - * - * This event can be canceled in order to block the drag start operation. It can also be fired to mimic the start of the drag and drop - * operation. For instance, the `widget` plugin uses this option to integrate its custom block widget drag and drop with - * the entire system. - * - * Read more about integration with drag and drop in the [Clipboard Deep Dive guide](#!/guide/dev_clipboard). - * - * See also: - * - * * The {@link CKEDITOR.editor#paste} event, - * * The {@link CKEDITOR.editor#drop} and {@link CKEDITOR.editor#dragend} events, - * * The {@link CKEDITOR.plugins.clipboard.dataTransfer} class. - * - * @since 4.5 - * @event dragstart - * @member CKEDITOR.editor - * @param {CKEDITOR.editor} editor This editor instance. - * @param data - * @param {Object} data.$ Native dragstart event. - * @param {CKEDITOR.dom.node} data.target Drag target. - * @param {CKEDITOR.plugins.clipboard.dataTransfer} data.dataTransfer DataTransfer facade. - */ - -/** - * Facade for the native `dragend` event. Fired when the native `dragend` event occurs. - * - * Read more about integration with drag and drop in the [Clipboard Deep Dive guide](#!/guide/dev_clipboard). - * - * See also: - * - * * The {@link CKEDITOR.editor#paste} event, - * * The {@link CKEDITOR.editor#drop} and {@link CKEDITOR.editor#dragend} events, - * * The {@link CKEDITOR.plugins.clipboard.dataTransfer} class. - * - * @since 4.5 - * @event dragend - * @member CKEDITOR.editor - * @param {CKEDITOR.editor} editor This editor instance. - * @param data - * @param {Object} data.$ Native dragend event. - * @param {CKEDITOR.dom.node} data.target Drag target. - * @param {CKEDITOR.plugins.clipboard.dataTransfer} data.dataTransfer DataTransfer facade. - */ - -/** - * Defines a filter which is applied to external data pasted or dropped into the editor. Possible values are: - * - * * `'plain-text'` – Content will be pasted as a plain text. - * * `'semantic-content'` – Known tags (except `div`, `span`) with all attributes (except - * `style` and `class`) will be kept. - * * `'h1 h2 p div'` – Custom rules compatible with {@link CKEDITOR.filter}. - * * `null` – Content will not be filtered by the paste filter (but it still may be filtered - * by [Advanced Content Filter](#!/guide/dev_advanced_content_filter)). This value can be used to - * disable the paste filter in Chrome and Safari, where this option defaults to `'semantic-content'`. - * - * Example: - * - * config.pasteFilter = 'plain-text'; - * - * Custom setting: - * - * config.pasteFilter = 'h1 h2 p ul ol li; img[!src, alt]; a[!href]'; - * - * Based on this configuration option, a proper {@link CKEDITOR.filter} instance will be defined and assigned to the editor - * as a {@link CKEDITOR.editor#pasteFilter}. You can tweak the paste filter settings on the fly on this object - * as well as delete or replace it. - * - * var editor = CKEDITOR.replace( 'editor', { - * pasteFilter: 'semantic-content' - * } ); - * - * editor.on( 'instanceReady', function() { - * // The result of this will be that all semantic content will be preserved - * // except tables. - * editor.pasteFilter.disallow( 'table' ); - * } ); - * - * Note that the paste filter is applied only to **external** data. There are three data sources: - * - * * copied and pasted in the same editor (internal), - * * copied from one editor and pasted into another (cross-editor), - * * coming from all other sources like websites, MS Word, etc. (external). - * - * If {@link CKEDITOR.config#allowedContent Advanced Content Filter} is not disabled, then - * it will also be applied to pasted and dropped data. The paste filter job is to "normalize" - * external data which often needs to be handled differently than content produced by the editor. - * - * This setting defaults to `'semantic-content'` in Chrome, Opera and Safari (all Blink and Webkit based browsers) - * due to messy HTML which these browsers keep in the clipboard. In other browsers it defaults to `null`. - * - * @since 4.5 - * @cfg {String} [pasteFilter='semantic-content' in Chrome and Safari and `null` in other browsers] - * @member CKEDITOR.config - */ - -/** - * {@link CKEDITOR.filter Content filter} which is used when external data is pasted or dropped into the editor - * or a forced paste as plain text occurs. - * - * This object might be used on the fly to define rules for pasted external content. - * This object is available and used if the {@link CKEDITOR.plugins.clipboard clipboard} plugin is enabled and - * {@link CKEDITOR.config#pasteFilter} or {@link CKEDITOR.config#forcePasteAsPlainText} was defined. - * - * To enable the filter: - * - * var editor = CKEDITOR.replace( 'editor', { - * pasteFilter: 'plain-text' - * } ); - * - * You can also modify the filter on the fly later on: - * - * editor.pasteFilter = new CKEDITOR.filter( 'p h1 h2; a[!href]' ); - * - * Note that the paste filter is only applied to **external** data. There are three data sources: - * - * * copied and pasted in the same editor (internal), - * * copied from one editor and pasted into another (cross-editor), - * * coming from all other sources like websites, MS Word, etc. (external). - * - * If {@link CKEDITOR.config#allowedContent Advanced Content Filter} is not disabled, then - * it will also be applied to pasted and dropped data. The paste filter job is to "normalize" - * external data which often needs to be handled differently than content produced by the editor. - * - * @since 4.5 - * @readonly - * @property {CKEDITOR.filter} [pasteFilter] - * @member CKEDITOR.editor - */ - -/** - * Duration of the notification displayed after pasting was blocked by the browser. - * - * @since 4.7.0 - * @cfg {Number} [clipboard_notificationDuration=10000] - * @member CKEDITOR.config - */ -CKEDITOR.config.clipboard_notificationDuration = 10000; diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/css/codemirror.min.css b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/css/codemirror.min.css old mode 100644 new mode 100755 index 062f36d..54651a1 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/css/codemirror.min.css +++ b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/css/codemirror.min.css @@ -1 +1 @@ -.CodeMirror{font-family:monospace;height:300px;color:#000}.CodeMirror-lines{padding:4px 0}.CodeMirror pre{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror div.CodeMirror-cursor{border-left:1px solid #000}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid #c0c0c0}.CodeMirror.cm-fat-cursor div.CodeMirror-cursor{width:auto;border:0;background:#7e7}.CodeMirror.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-animate-fat-cursor{width:auto;border:0;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}@-moz-keyframes blink{0%{background:#7e7}50%{background:none}100%{background:#7e7}}@-webkit-keyframes blink{0%{background:#7e7}50%{background:none}100%{background:#7e7}}@keyframes blink{0%{background:#7e7}50%{background:none}100%{background:#7e7}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-ruler{border-left:1px solid #ccc;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:bold}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta{color:#555}.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error{color:#f00}.cm-invalidchar{color:#f00}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0f0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#f22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll !important;margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:30px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;margin-bottom:-30px;*zoom:1;*display:inline}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;height:100%}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper{-webkit-user-select:none;-moz-user-select:none;user-select:none}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent}.CodeMirror-wrap pre{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;overflow:auto}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-measure pre{position:static}.CodeMirror div.CodeMirror-cursor{position:absolute;border-right:none;width:0}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror ::selection{background:#d7d4f0}.CodeMirror ::-moz-selection{background:#d7d4f0}.cm-searching{background:#ffa;background:rgba(255,255,0,.4)}.CodeMirror span{*vertical-align:text-bottom}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:''}span.CodeMirror-selectedtext{background:none}.CodeMirror{font:13px/1.4em monospace;text-align:left}.CodeMirror .activeline{background:#e8f2ff}.CodeMirror .CodeMirror-foldmarker{color:#00f;-ms-text-shadow:#b9f 1px 1px 2px,#b9f -1px -1px 2px,#b9f 1px -1px 2px,#b9f -1px 1px 2px;-webkit-text-shadow:#b9f 1px 1px 2px,#b9f -1px -1px 2px,#b9f 1px -1px 2px,#b9f -1px 1px 2px;text-shadow:#b9f 1px 1px 2px,#b9f -1px -1px 2px,#b9f 1px -1px 2px,#b9f -1px 1px 2px;font-family:arial;line-height:.3;cursor:pointer}.CodeMirror-matchingtag{background:#ff9600;background:rgba(255,150,0,.3)}.searchCodeButton span,.autoFormat span,.CommentSelectedRange span,.UncommentSelectedRange span{width:16px;height:16px;margin-left:6px}.searchCodeButton span{background:url("../icons/searchcode.png") no-repeat}.autoFormat span{background:url("../icons/autoformat.png") no-repeat}.CommentSelectedRange span{background:url("../icons/commentselectedrange.png") no-repeat}.UncommentSelectedRange span{background:url("../icons/uncommentselectedrange.png") no-repeat}.cke_reset_all .CodeMirror-scroll *{white-space:pre}.cke_reset_all .cm-s-cobalt *,.cke_reset_all .cm-s-erlang-dark *,.cke_reset_all .cm-s-lesser-dark *,.cke_reset_all .cm-s-monokai *,.cke_reset_all .cm-s-night *,.cke_reset_all .cm-s-rubyblue *,.cke_reset_all .cm-s-twilight *,.cke_reset_all .cm-s-xq-dark *,.cke_reset_all .cm-s-base16-dark *,.cke_reset_all .cm-s-3024-night *,.cke_reset_all .cm-s-the-matrix *,.cke_reset_all .cm-s-paraiso-dark *,.cke_reset_all .cm-s-paraiso-light *{color:inherit;font:inherit}.cm-s-cobalt .CodeMirror-selected{background:#b36539 !important}.cm-s-erlang-dark .CodeMirror-selected{background:#b36539 !important}.cm-s-lesser-dark .CodeMirror-selected{background:#45443b !important}.cm-s-monokai .CodeMirror-selected{background:#49483e !important}.cm-s-night .CodeMirror-selected{background:#447 !important}.cm-s-rubyblue .CodeMirror-selected{background:#38566f !important}.cm-s-twilight .CodeMirror-selected{background:#323232 !important}.cm-s-xq-dark .CodeMirror-selected{background:#a8f !important}.cm-s-the-matrix .CodeMirror-selected{background:#494949 !important}.cm-s-mbo .CodeMirror-selected{background:#716c62 !important}.cm-s-blackboard .activeline,.cm-s-cobalt .activeline,.cm-s-erlang-dark .activeline,.cm-s-lesser-dark .activeline,.cm-s-monokai .activeline,.cm-s-night .activeline,.cm-s-rubyblue .activeline,.cm-s-vibrant-ink .activeline,.cm-s-xq-dark .activeline,.cm-s-base16-dark .activeline,.cm-s-3024-night .activeline,.cm-s-paraiso-light .activeline,.cm-s-paraiso-dark .activeline,.cm-s-pastel-on-dark .activeline{background:#757575}.cm-s-pastel-on-dark .activeline{background:#404040}.cm-s-mbo .activeline{background:#716c62}.cm-s-twilight .activeline{background:#494949}.cm-s-the-matrix .activeline{background:#060}.CodeMirror-focused .cm-matchhighlight{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAFklEQVQI12NgYGBgkKzc8x9CMDAwAAAmhwSbidEoSQAAAABJRU5ErkJggg==);background-position:bottom;background-repeat:repeat-x}.CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px #000;-ms-box-shadow:2px 3px 5px #000;box-shadow:2px 3px 5px #000;border-radius:3px;border:1px solid #c0c0c0;background:#fff;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;max-width:19em;overflow:hidden;white-space:pre;color:#000;cursor:pointer}.CodeMirror-hint-active{background:#08f;color:#fff}.cm-trailingspace{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAACCAYAAAB/qH1jAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QUXCToH00Y1UgAAACFJREFUCNdjPMDBUc/AwNDAAAFMTAwMDA0OP34wQgX/AQBYgwYEx4f9lQAAAABJRU5ErkJggg==);background-position:bottom left;background-repeat:repeat-x}.CodeMirror-dialog{position:absolute;left:0;right:0;background:inherit;z-index:15;padding:.1em .8em;overflow:hidden;color:inherit}.CodeMirror-dialog-top{border-bottom:1px solid #eee;top:0}.CodeMirror-dialog-bottom{border-top:1px solid #eee;bottom:0}.CodeMirror-dialog input{border:none;outline:none;background:transparent;width:20em;color:inherit;font-family:monospace}.CodeMirror-dialog button{font-size:70%}.CodeMirror-foldmarker{color:#00f;text-shadow:#b9f 1px 1px 2px,#b9f -1px -1px 2px,#b9f 1px -1px 2px,#b9f -1px 1px 2px;font-family:arial;line-height:.3;cursor:pointer}.CodeMirror-foldgutter{width:.7em}.CodeMirror-foldgutter-open,.CodeMirror-foldgutter-folded{cursor:pointer}.CodeMirror-foldgutter-open:after{content:"▾"}.CodeMirror-foldgutter-folded:after{content:"▸"} \ No newline at end of file +.CodeMirror{font-family:monospace;height:300px;color:black;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:white}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:black}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:0;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:rgba(20,255,20,0.5);-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:-20px;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:bold}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta{color:#555}.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error{color:#f00}.cm-invalidchar{color:#f00}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:0;position:relative}.CodeMirror-sizer{position:relative;border-right:30px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-30px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:0}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:''}span.CodeMirror-selectedtext{background:0}.CodeMirror{font:13px/1.4em monospace;text-align:left}.CodeMirror .activeline{background:#e8f2ff}.CodeMirror .CodeMirror-foldmarker{color:blue;-ms-text-shadow:#b9f 1px 1px 2px,#b9f -1px -1px 2px,#b9f 1px -1px 2px,#b9f -1px 1px 2px;-webkit-text-shadow:#b9f 1px 1px 2px,#b9f -1px -1px 2px,#b9f 1px -1px 2px,#b9f -1px 1px 2px;text-shadow:#b9f 1px 1px 2px,#b9f -1px -1px 2px,#b9f 1px -1px 2px,#b9f -1px 1px 2px;font-family:arial;line-height:.3;cursor:pointer}.CodeMirror-matchingtag{background:#ff9600;background:rgba(255,150,0,0.3)}.searchCodeButton span,.autoFormat span,.CommentSelectedRange span,.UncommentSelectedRange span{width:16px;height:16px;margin-left:6px}.searchCodeButton span{background:url("../images/searchcode.png") no-repeat}.autoFormat span{background:url("../images/autoformat.png") no-repeat}.CommentSelectedRange span{background:url("../images/commentselectedrange.png") no-repeat}.UncommentSelectedRange span{background:url("../images/uncommentselectedrange.png") no-repeat}.cke_reset_all .CodeMirror-scroll *{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.cke_reset_all .cm-s-cobalt *,.cke_reset_all .cm-s-erlang-dark *,.cke_reset_all .cm-s-lesser-dark *,.cke_reset_all .cm-s-monokai *,.cke_reset_all .cm-s-night *,.cke_reset_all .cm-s-rubyblue *,.cke_reset_all .cm-s-twilight *,.cke_reset_all .cm-s-xq-dark *,.cke_reset_all .cm-s-base16-dark *,.cke_reset_all .cm-s-3024-night *,.cke_reset_all .cm-s-the-matrix *,.cke_reset_all .cm-s-paraiso-dark *,.cke_reset_all .cm-s-paraiso-light *{color:inherit;font:inherit}.cm-s-cobalt .CodeMirror-selected{background:#b36539!important}.cm-s-erlang-dark .CodeMirror-selected{background:#b36539!important}.cm-s-lesser-dark .CodeMirror-selected{background:#45443b!important}.cm-s-monokai .CodeMirror-selected{background:#49483e!important}.cm-s-night .CodeMirror-selected{background:#447!important}.cm-s-rubyblue .CodeMirror-selected{background:#38566f!important}.cm-s-twilight .CodeMirror-selected{background:#323232!important}.cm-s-xq-dark .CodeMirror-selected{background:#a8f!important}.cm-s-the-matrix .CodeMirror-selected{background:#494949!important}.cm-s-mbo .CodeMirror-selected{background:#716c62!important}.cm-s-blackboard .activeline,.cm-s-cobalt .activeline,.cm-s-erlang-dark .activeline,.cm-s-lesser-dark .activeline,.cm-s-monokai .activeline,.cm-s-night .activeline,.cm-s-rubyblue .activeline,.cm-s-vibrant-ink .activeline,.cm-s-xq-dark .activeline,.cm-s-base16-dark .activeline,.cm-s-3024-night .activeline,.cm-s-paraiso-light .activeline,.cm-s-paraiso-dark .activeline,.cm-s-pastel-on-dark .activeline{background:#757575}.cm-s-pastel-on-dark .activeline{background:#404040}.cm-s-mbo .activeline{background:#716c62}.cm-s-twilight .activeline{background:#494949}.cm-s-the-matrix .activeline{background:#060}.CodeMirror-focused .cm-matchhighlight{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAFklEQVQI12NgYGBgkKzc8x9CMDAwAAAmhwSbidEoSQAAAABJRU5ErkJggg==);background-position:bottom;background-repeat:repeat-x}.CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px #000;-ms-box-shadow:2px 3px 5px #000;box-shadow:2px 3px 5px #000;border-radius:3px;border:1px solid silver;background:white;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;max-width:19em;overflow:hidden;white-space:pre;color:black;cursor:pointer}.CodeMirror-hint-active{background:#08f;color:white}.cm-trailingspace{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAACCAYAAAB/qH1jAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QUXCToH00Y1UgAAACFJREFUCNdjPMDBUc/AwNDAAAFMTAwMDA0OP34wQgX/AQBYgwYEx4f9lQAAAABJRU5ErkJggg==);background-position:bottom left;background-repeat:repeat-x}.CodeMirror-dialog{position:absolute;left:0;right:0;background:inherit;z-index:15;padding:.1em .8em;overflow:hidden;color:inherit}.CodeMirror-dialog-top{border-bottom:1px solid #eee;top:0}.CodeMirror-dialog-bottom{border-top:1px solid #eee;bottom:0}.CodeMirror-dialog input{border:0;outline:0;background:transparent;width:20em;color:inherit;font-family:monospace}.CodeMirror-dialog button{font-size:70%}.CodeMirror-foldmarker{color:blue;text-shadow:#b9f 1px 1px 2px,#b9f -1px -1px 2px,#b9f 1px -1px 2px,#b9f -1px 1px 2px;font-family:arial;line-height:.3;cursor:pointer}.CodeMirror-foldgutter{width:.7em}.CodeMirror-foldgutter-open,.CodeMirror-foldgutter-folded{cursor:pointer}.CodeMirror-foldgutter-open:after{content:"\25BE"}.CodeMirror-foldgutter-folded:after{content:"\25B8"} \ No newline at end of file diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/icons/autocomplete.png b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/icons/autocomplete.png old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/icons/autoformat.png b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/icons/autoformat.png old mode 100644 new mode 100755 index 89eb3517485fab4686081b409275619e1c3dcd2a..3a5b3b31bd502c1e9117bca24a180c05f786478a GIT binary patch delta 287 zcmV+)0pR}90j~m(8Gi%-006c6H|hWY00Lr5M??VshmXv^00009a7bBm000XU000XU z0RWnu7ytkO2XskIMF-*m3JER&wp8250002MNklAccZfQ2ioqfS z$>bKKT!7VJkc@|2asx)IGq@GIl#C{e)hKc5F*(P_nRutSr+=@nU(ah`E|-~sg~ZfA zye%Zs;Nk(`A+WYMiKZn-6DxJ>2YGxBR$^iU_zDqs+6*I$6B}U9l_nwU$l|?!7O1bW zpr?-ZN-(T($N?T@f+S>?8yku`@nH9j9O^=f3LzPer0Fs;R#96D)L0sTfzGTxi)yH< lKre1xrLPiy9T@ZXHJ^!wR97*#myZAd002ovPDHLkV1iCZbI||* delta 193 zcmV;y06zb(0@4AH8Gir(0026epuGS90GUZdK~xx5WB6aw_Wyrp$A1XX*}?F?ZOZ@u z)2IE15YwkI{D%Nrrd$XEDsb5=*ZwP10A$Ah?DVvR`Tr4Se6fz56l3=vVaDv}od4lY z7Z7Gx#g?y0jm?G&oOBE|7jliT_yRLD(LX3ZyU^QzF4WL>Iy$!NfpYOK=1@Z?s44yc vnXDpq4r0cy-#@@cfB*Lm?otF`An02FO!mY2l}9aO00000NkvXXu0mjfp`Toy diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/icons/commentselectedrange.png b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/icons/commentselectedrange.png old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/icons/searchcode.png b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/icons/searchcode.png old mode 100644 new mode 100755 index 1a6f491f00c09856c181dfa3b85eb75add918bea..79e1cad3a20bf9b4fefe0ced91a449b21c35be94 GIT binary patch delta 216 zcmbQi+{QdXg>_nhPl)S8ooV%*rhID|7#J8!g8YIR9G=}s196hP-CYmdKI;Vst05+LTjQ{`u delta 234 zcmZo;p20jpg=1!bPl)UP|NkdyPOInbi_TtF()9Fhh;)yNjIaIaNAr{|KgJBa4oTVOIPFGz2Dfc?+Nd^(Aw1!ROIU1zJTHT zwz(n!vsg2tikVw?Flw)e>l9S(QvG3hH)yHdjO;4zSLfr5Q%d(<{+cS=Qs1z!a6ovfkd_iPj;Ok4T^jZeb8+WSBKa0w~B{;_2(k{)mx_Q`PLP>~bEUP^zbkV~E7% z-u}B>4GKK1=YJ_4G5NY`!=>-_r@T_t?v^Cj*H|a>{K$GdW$Qe#4bP)GyFbg^t#)y5 zQ*i9x#dBm|w~=>><+7I%MhmRBgg1Pe#ds#zxAa5SZGprG+DGqf=Qp{`;`ZkXt5Gr2 V_fwo6>_8hCJYD@<);T3K0RThBQm+62 delta 172 zcmV;d08{_c0-XYoDH1?HKub$YS65ecb#{%7jirWxkvmj>jj@2k0001TNkl~`Kng`H)22WQ%mvv4F FO#raGP;dYM literal 0 HcmV?d00001 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/images/autoformat.png b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/images/autoformat.png new file mode 100755 index 0000000000000000000000000000000000000000..3a5b3b31bd502c1e9117bca24a180c05f786478a GIT binary patch literal 303 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!60wlNoGJgf6n3BBRT^Rni_n+Ah4nJ za0`PlBg3pY5H=O_D76doO+DgLT;Y`3LWrtaSYKozx3ipF2_WPV;}#QcUTp5 z9aLgI`9y3)OSMz9UYS=;U0jNieM?>%8HEK#b6ts$ vYG^#S#;!YS#VQB=yx67dh3aKLe>a`q*%lIRxP5v*&@T+0u6{1-oD!Mlpo literal 0 HcmV?d00001 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/images/commentselectedrange.png b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/images/commentselectedrange.png new file mode 100755 index 0000000000000000000000000000000000000000..d29f3c9bc95eb0c10147da48ce7723312b57ad64 GIT binary patch literal 160 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!73?$#)eFPE^4e$wZ{r~^J0}!;CdwY9_hliJz zmi6}bP71zuAEKx5dLZ9G#p{{R}o;OXk;vd$@?2>{6V BE+7B^ literal 0 HcmV?d00001 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/images/searchcode.png b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/images/searchcode.png new file mode 100755 index 0000000000000000000000000000000000000000..79e1cad3a20bf9b4fefe0ced91a449b21c35be94 GIT binary patch literal 390 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbMfv;dzF*V@|JVlc3^wT*~~sH&=h zhyb~cj*f0_ZazLfK|w)4srdN#)YR1M?CiqA!m_e5pt8!!%9@%QAOpySXk4*k#p>0o zA?)wpzXKV~&CTo9t=qV9l*!&%@FS7$R{ww7Zk5K|!LqJ@RI4e1OE> z|IW`0m$Kd7_ft7RrRd-Su_rvsbN0TIw0M_&>WyFSoAbqOhEW%y@*hY%P&TRh!O?rp zDg9r=;@18P8D}<5Y$!>P%d&EEb=P>w!78g5=%xDOP`rN7QP$M!Cw=DwEoJa@^>bP0 Hl+XkK^7W%T literal 0 HcmV?d00001 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/images/uncommentselectedrange.png b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/images/uncommentselectedrange.png new file mode 100755 index 0000000000000000000000000000000000000000..c5eda2e9460bdc1a728fdd666e166e2f906ddc2c GIT binary patch literal 338 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbK}T7XZ8>(aJH2L}glZ}0H%@Y2$< z-rnBj4K*t@h1T}AZV0g0)Zek$(_m+W-7bCM{XtfTq8yG!yPqx!JCo*h;q2K02n0#He;nMf|Q(mcRcS{oNYpj!beq=qKvUQ%=hUZb8 z-JfOdR=c+;IQH-2IkK;dDNYY|poI*cu6{1-oD!M<62gYn literal 0 HcmV?d00001 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/js/beautify.min.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/js/beautify.min.js old mode 100644 new mode 100755 index 0bb495f..48fda91 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/js/beautify.min.js +++ b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/js/beautify.min.js @@ -1 +1,2 @@ -(function(){function n(n,t){for(var i=0;ii&&(i=n.line_indent_level)),{mode:t,parent:n,last_text:n?n.last_text:"",last_word:n?n.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,if_block:!1,else_block:!1,do_block:!1,do_while:!1,in_case_statement:!1,in_case:!1,case_body:!1,indentation_level:i,line_indent_level:n?n.line_indent_level:i,start_line_index:l.get_line_number(),ternary_depth:0}}function pt(n){var i=n.newlines,r=c.keep_array_indentation&&d(u.mode),t;if(r)for(t=0;t0);else if(c.max_preserve_newlines&&i>c.max_preserve_newlines&&(i=c.max_preserve_newlines),c.preserve_newlines&&n.newlines>1)for(a(),t=1;t=c.wrap_line_length&&a(!1,!0)}}function a(n,i){if(!i&&u.last_text!==";"&&u.last_text!==","&&u.last_text!=="="&&o!=="TK_OPERATOR")while(u.mode===t.Statement&&!u.if_block&&!u.do_block)b();l.add_new_line(n)&&(u.multiline_frame=!0)}function kt(){if(l.just_added_newline())if(c.keep_array_indentation&&d(u.mode)&&e.wanted_newline){l.current_line.push("");for(var n=0;n0&&(!u.parent||u.indentation_level>u.parent.indentation_level)&&(u.indentation_level-=1)}function nt(n){u?(et.push(u),p=u):p=yt(null,n);u=yt(p,n)}function d(n){return n===t.ArrayLiteral}function ut(i){return n(i,[t.Expression,t.ForInitializer,t.Conditional])}function b(){et.length>0&&(p=u,u=et.pop(),p.mode===t.Statement&&l.remove_redundant_indentation(p))}function ot(){return u.parent.mode===t.ObjectLiteral&&u.mode===t.Statement&&(u.last_text===":"&&u.ternary_depth===0||o==="TK_RESERVED"&&n(u.last_text,["get","set"]))}function tt(){return o==="TK_RESERVED"&&n(u.last_text,["var","let","const"])&&e.type==="TK_WORD"||o==="TK_RESERVED"&&u.last_text==="do"||o==="TK_RESERVED"&&u.last_text==="return"&&!e.wanted_newline||o==="TK_RESERVED"&&u.last_text==="else"&&!(e.type==="TK_RESERVED"&&e.text==="if")||o==="TK_END_EXPR"&&(p.mode===t.ForInitializer||p.mode===t.Conditional)||o==="TK_WORD"&&u.mode===t.BlockStatement&&!u.in_case&&!(e.text==="--"||e.text==="++")&&e.type!=="TK_WORD"&&e.type!=="TK_RESERVED"||u.mode===t.ObjectLiteral&&(u.last_text===":"&&u.ternary_depth===0||o==="TK_RESERVED"&&n(u.last_text,["get","set"]))?(nt(t.Statement),rt(),o==="TK_RESERVED"&&n(u.last_text,["var","let","const"])&&e.type==="TK_WORD"&&(u.declaration_statement=!0),ot()||k(e.type==="TK_RESERVED"&&n(e.text,["do","for","if","while"])),!0):!1}function gt(n,t){for(var r,i=0;i=ct.length?null:ct[t]}function ti(){tt();var i=t.Expression;if(e.text==="["){if(o==="TK_WORD"||u.last_text===")"){o==="TK_RESERVED"&&n(u.last_text,g.line_starters)&&(l.space_before_token=!0);nt(i);v();rt();c.space_in_paren&&(l.space_before_token=!0);return}i=t.ArrayLiteral;d(u.mode)&&(u.last_text==="["||u.last_text===","&&(w==="]"||w==="}"))&&(c.keep_array_indentation||a())}else o==="TK_RESERVED"&&u.last_text==="for"?i=t.ForInitializer:o==="TK_RESERVED"&&n(u.last_text,["if","while"])&&(i=t.Conditional);u.last_text===";"||o==="TK_START_BLOCK"?a():o==="TK_END_EXPR"||o==="TK_START_EXPR"||o==="TK_END_BLOCK"||u.last_text==="."?k(e.wanted_newline):o==="TK_RESERVED"&&e.text==="("||o==="TK_WORD"||o==="TK_OPERATOR"?o==="TK_RESERVED"&&(u.last_word==="function"||u.last_word==="typeof")||u.last_text==="*"&&w==="function"?c.space_after_anon_function&&(l.space_before_token=!0):o==="TK_RESERVED"&&(n(u.last_text,g.line_starters)||u.last_text==="catch")&&c.space_before_conditional&&(l.space_before_token=!0):l.space_before_token=!0;e.text==="("&&(o==="TK_EQUALS"||o==="TK_OPERATOR")&&(ot()||k());nt(i);v();c.space_in_paren&&(l.space_before_token=!0);rt()}function ii(){while(u.mode===t.Statement)b();u.multiline_frame&&k(e.text==="]"&&d(u.mode)&&!c.keep_array_indentation);c.space_in_paren&&(o!=="TK_START_EXPR"||c.space_in_empty_paren?l.space_before_token=!0:(l.trim(),l.space_before_token=!1));e.text==="]"&&c.keep_array_indentation?(v(),b()):(b(),v());l.remove_redundant_indentation(p);u.do_while&&p.mode===t.Conditional&&(p.mode=t.Expression,u.do_block=!1,u.do_while=!1)}function ri(){var i=ht(1),r=ht(2),f,e;r&&(r.text===":"&&n(i.type,["TK_STRING","TK_WORD","TK_RESERVED"])||n(i.text,["get","set"])&&n(r.type,["TK_WORD","TK_RESERVED"]))?n(w,["class","interface"])?nt(t.BlockStatement):nt(t.ObjectLiteral):nt(t.BlockStatement);f=!i.comments_before.length&&i.text==="}";e=f&&u.last_word==="function"&&o==="TK_END_EXPR";c.brace_style==="expand"?o!=="TK_OPERATOR"&&(e||o==="TK_EQUALS"||o==="TK_RESERVED"&&st(u.last_text)&&u.last_text!=="else")?l.space_before_token=!0:a(!1,!0):o!=="TK_OPERATOR"&&o!=="TK_START_EXPR"?o==="TK_START_BLOCK"?a():l.space_before_token=!0:d(p.mode)&&u.last_text===","&&(w==="}"?l.space_before_token=!0:a());v();rt()}function ui(){while(u.mode===t.Statement)b();var n=o==="TK_START_BLOCK";c.brace_style==="expand"?n||a():n||(d(u.mode)&&c.keep_array_indentation?(c.keep_array_indentation=!1,a(),c.keep_array_indentation=!0):a());b();v()}function wt(){var i,r;if(e.type==="TK_RESERVED"&&u.mode!==t.ObjectLiteral&&n(e.text,["set","get"])&&(e.type="TK_WORD"),e.type==="TK_RESERVED"&&u.mode===t.ObjectLiteral&&(i=ht(1),i.text==":"&&(e.type="TK_WORD")),tt()||!e.wanted_newline||ut(u.mode)||o==="TK_OPERATOR"&&u.last_text!=="--"&&u.last_text!=="++"||o==="TK_EQUALS"||!c.preserve_newlines&&o==="TK_RESERVED"&&n(u.last_text,["var","let","const","set","get"])||a(),u.do_block&&!u.do_while){if(e.type==="TK_RESERVED"&&e.text==="while"){l.space_before_token=!0;v();l.space_before_token=!0;u.do_while=!0;return}a();u.do_block=!1}if(u.if_block)if(u.else_block||e.type!=="TK_RESERVED"||e.text!=="else"){while(u.mode===t.Statement)b();u.if_block=!1;u.else_block=!1}else u.else_block=!0;if(e.type==="TK_RESERVED"&&(e.text==="case"||e.text==="default"&&u.in_case_statement)){a();(u.case_body||c.jslint_happy)&&(dt(),u.case_body=!1);v();u.in_case=!0;u.in_case_statement=!0;return}if(e.type==="TK_RESERVED"&&e.text==="function"&&((n(u.last_text,["}",";"])||l.just_added_newline()&&!n(u.last_text,["[","{",":","=",","]))&&(l.just_added_blankline()||e.comments_before.length||(a(),a(!0))),o==="TK_RESERVED"||o==="TK_WORD"?o==="TK_RESERVED"&&n(u.last_text,["get","set","new","return","export"])?l.space_before_token=!0:o==="TK_RESERVED"&&u.last_text==="default"&&w==="export"?l.space_before_token=!0:a():o==="TK_OPERATOR"||u.last_text==="="?l.space_before_token=!0:!u.multiline_frame&&(ut(u.mode)||d(u.mode))||a()),(o==="TK_COMMA"||o==="TK_START_EXPR"||o==="TK_EQUALS"||o==="TK_OPERATOR")&&(ot()||k()),e.type==="TK_RESERVED"&&n(e.text,["function","get","set"])){v();u.last_word=e.text;return}y="NONE";o==="TK_END_BLOCK"?e.type==="TK_RESERVED"&&n(e.text,["else","catch","finally"])?c.brace_style==="expand"||c.brace_style==="end-expand"?y="NEWLINE":(y="SPACE",l.space_before_token=!0):y="NEWLINE":o==="TK_SEMICOLON"&&u.mode===t.BlockStatement?y="NEWLINE":o==="TK_SEMICOLON"&&ut(u.mode)?y="SPACE":o==="TK_STRING"?y="NEWLINE":o==="TK_RESERVED"||o==="TK_WORD"||u.last_text==="*"&&w==="function"?y="SPACE":o==="TK_START_BLOCK"?y="NEWLINE":o==="TK_END_EXPR"&&(l.space_before_token=!0,y="NEWLINE");e.type==="TK_RESERVED"&&n(e.text,g.line_starters)&&u.last_text!==")"&&(y=u.last_text==="else"||u.last_text==="export"?"SPACE":"NEWLINE");e.type==="TK_RESERVED"&&n(e.text,["else","catch","finally"])?o!=="TK_END_BLOCK"||c.brace_style==="expand"||c.brace_style==="end-expand"?a():(l.trim(!0),r=l.current_line,r.last()!=="}"&&a(),l.space_before_token=!0):y==="NEWLINE"?o==="TK_RESERVED"&&st(u.last_text)?l.space_before_token=!0:o!=="TK_END_EXPR"?o==="TK_START_EXPR"&&e.type==="TK_RESERVED"&&n(e.text,["var","let","const"])||u.last_text===":"||(e.type==="TK_RESERVED"&&e.text==="if"&&u.last_text==="else"?l.space_before_token=!0:a()):e.type==="TK_RESERVED"&&n(e.text,g.line_starters)&&u.last_text!==")"&&a():u.multiline_frame&&d(u.mode)&&u.last_text===","&&w==="}"?a():y==="SPACE"&&(l.space_before_token=!0);v();u.last_word=e.text;e.type==="TK_RESERVED"&&e.text==="do"&&(u.do_block=!0);e.type==="TK_RESERVED"&&e.text==="if"&&(u.if_block=!0)}function fi(){for(tt()&&(l.space_before_token=!1);u.mode===t.Statement&&!u.if_block&&!u.do_block;)b();v()}function ei(){tt()?l.space_before_token=!0:o==="TK_RESERVED"||o==="TK_WORD"?l.space_before_token=!0:o==="TK_COMMA"||o==="TK_START_EXPR"||o==="TK_EQUALS"||o==="TK_OPERATOR"?ot()||k():a();v()}function oi(){tt();u.declaration_statement&&(u.declaration_assignment=!0);l.space_before_token=!0;v();l.space_before_token=!0}function si(){if(u.declaration_statement){ut(u.parent.mode)&&(u.declaration_assignment=!1);v();u.declaration_assignment?(u.declaration_assignment=!1,a(!1,!0)):l.space_before_token=!0;return}v();u.mode===t.ObjectLiteral||u.mode===t.Statement&&u.parent.mode===t.ObjectLiteral?(u.mode===t.Statement&&b(),a()):l.space_before_token=!0}function hi(){if(tt(),o==="TK_RESERVED"&&st(u.last_text)){l.space_before_token=!0;v();return}if(e.text==="*"&&o==="TK_DOT"){v();return}if(e.text===":"&&u.in_case){u.case_body=!0;rt();v();a();u.in_case=!1;return}if(e.text==="::"){v();return}e.wanted_newline&&(e.text==="--"||e.text==="++")&&a(!1,!0);o==="TK_OPERATOR"&&k();var i=!0,r=!0;n(e.text,["--","++","!","~"])||n(e.text,["-","+"])&&(n(o,["TK_START_BLOCK","TK_START_EXPR","TK_EQUALS","TK_OPERATOR"])||n(u.last_text,g.line_starters)||u.last_text===",")?(i=!1,r=!1,u.last_text===";"&&ut(u.mode)&&(i=!0),o==="TK_RESERVED"||o==="TK_END_EXPR"?i=!0:o==="TK_OPERATOR"&&(i=n(e.text,["--","-"])&&n(u.last_text,["--","-"])||n(e.text,["++","+"])&&n(u.last_text,["++","+"])),(u.mode===t.BlockStatement||u.mode===t.Statement)&&(u.last_text==="{"||u.last_text===";")&&a()):e.text===":"?u.ternary_depth===0?i=!1:u.ternary_depth-=1:e.text==="?"?u.ternary_depth+=1:e.text==="*"&&o==="TK_RESERVED"&&u.last_text==="function"&&(i=!1,r=!1);l.space_before_token=l.space_before_token||i;v();l.space_before_token=r}function ci(){var n=bt(e.text),t,i=!1,r=!1,u=e.whitespace_before.join(""),o=u.length;for(a(!1,!0),n.length>1&&(gt(n.slice(1),"*")?i=!0:ni(n.slice(1),u)&&(r=!0)),v(n[0]),t=1;to?v(n[t].substring(o)):l.add_token(n[t]);a(!1,!0)}function li(){l.space_before_token=!0;v();l.space_before_token=!0}function ai(){e.wanted_newline?a(!1,!0):l.trim(!0);l.space_before_token=!0;v();a(!1,!0)}function vi(){tt();o==="TK_RESERVED"&&st(u.last_text)?l.space_before_token=!0:k(u.last_text===")"&&c.break_chained_methods);v()}function yi(){v();e.text[e.text.length-1]==="\n"&&a()}function pi(){while(u.mode===t.Statement)b()}var l,ct=[],lt,g,e,o,w,ft,u,p,et,y,at,c,vt="",it;for(at={TK_START_EXPR:ti,TK_END_EXPR:ii,TK_START_BLOCK:ri,TK_END_BLOCK:ui,TK_WORD:wt,TK_RESERVED:wt,TK_SEMICOLON:fi,TK_STRING:ei,TK_EQUALS:oi,TK_OPERATOR:hi,TK_COMMA:si,TK_BLOCK_COMMENT:ci,TK_INLINE_COMMENT:li,TK_COMMENT:ai,TK_DOT:vi,TK_UNKNOWN:yi,TK_EOF:pi},r=r?r:{},c={},r.braces_on_own_line!==undefined&&(c.brace_style=r.braces_on_own_line?"expand":"collapse"),c.brace_style=r.brace_style?r.brace_style:c.brace_style?c.brace_style:"collapse",c.brace_style==="expand-strict"&&(c.brace_style="expand"),c.indent_size=r.indent_size?parseInt(r.indent_size,10):4,c.indent_char=r.indent_char?r.indent_char:" ",c.preserve_newlines=r.preserve_newlines===undefined?!0:r.preserve_newlines,c.break_chained_methods=r.break_chained_methods===undefined?!1:r.break_chained_methods,c.max_preserve_newlines=r.max_preserve_newlines===undefined?0:parseInt(r.max_preserve_newlines,10),c.space_in_paren=r.space_in_paren===undefined?!1:r.space_in_paren,c.space_in_empty_paren=r.space_in_empty_paren===undefined?!1:r.space_in_empty_paren,c.jslint_happy=r.jslint_happy===undefined?!1:r.jslint_happy,c.space_after_anon_function=r.space_after_anon_function===undefined?!1:r.space_after_anon_function,c.keep_array_indentation=r.keep_array_indentation===undefined?!1:r.keep_array_indentation,c.space_before_conditional=r.space_before_conditional===undefined?!0:r.space_before_conditional,c.unescape_strings=r.unescape_strings===undefined?!1:r.unescape_strings,c.wrap_line_length=r.wrap_line_length===undefined?0:parseInt(r.wrap_line_length,10),c.e4x=r.e4x===undefined?!1:r.e4x,c.end_with_newline=r.end_with_newline===undefined?!1:r.end_with_newline,c.jslint_happy&&(c.space_after_anon_function=!0),r.indent_with_tabs&&(c.indent_char="\t",c.indent_size=1),ft="";c.indent_size>0;)ft+=c.indent_char,c.indent_size-=1;if(it=0,i&&i.length){while(i.charAt(it)===" "||i.charAt(it)==="\t")vt+=i.charAt(it),it+=1;i=i.substring(it)}o="TK_START_BLOCK";w="";l=new s(ft,vt);et=[];nt(t.BlockStatement);this.beautify=function(){var n,r,t;for(g=new h(i,c,ft),ct=g.tokenize(),lt=0;n=ht();){for(t=0;t1){for(var u=0;u1&&this.current_line.get_item_count()===0;)r.pop(),this.current_line=r[r.length-1],this.current_line.trim(n,i)};this.just_added_newline=function(){return this.current_line.get_item_count()===0};this.just_added_blankline=function(){if(this.just_added_newline()){if(r.length===1)return!0;var n=r[r.length-2];return n.get_item_count()===0}return!1}}function h(t,r,e){function w(){var nt,d,w,rt,ct,et,pt,st,lt,ut;if(c=0,l=[],o>=s)return["","TK_EOF"];for(d=h.length?h[h.length-1]:new u("TK_START_BLOCK","{"),w=t.charAt(o),o+=1;n(w,b);){if(w==="\n"?(c+=1,l=[]):c&&(w===e?l.push(e):w!=="\r"&&l.push(" ")),o>=s)return["","TK_EOF"];w=t.charAt(o);o+=1}if(v.test(w)){var ft=!0,ht=!0,at=v;for(w==="0"&&o=s)break;return o+=2,ct&&c===0?["/*"+rt+"*/","TK_INLINE_COMMENT"]:["/*"+rt+"*/","TK_BLOCK_COMMENT"]}if(t.charAt(o)==="/"){for(rt=w;t.charAt(o)!=="\r"&&t.charAt(o)!=="\n";)if(rt+=t.charAt(o),o+=1,o>=s)break;return[rt,"TK_COMMENT"]}}if(w==="`"||w==="'"||w==='"'||(w==="/"||r.e4x&&w==="<"&&t.slice(o-1).match(/^<([-a-zA-Z:0-9_.]+|{[^{}]*}|!\[CDATA\[[\s\S]*?\]\])\s*([-a-zA-Z:0-9_.]+=('[^']*'|"[^"]*"|{[^{}]*})\s*)*\/?\s*>/))&&(d.type==="TK_RESERVED"&&n(d.text,["return","case","throw","else","do","typeof","yield"])||d.type==="TK_END_EXPR"&&d.text===")"&&d.parent&&d.parent.type==="TK_RESERVED"&&n(d.parent.text,["if","while","for"])||n(d.type,["TK_COMMENT","TK_START_EXPR","TK_START_BLOCK","TK_END_BLOCK","TK_OPERATOR","TK_EQUALS","TK_EOF","TK_SEMICOLON","TK_COMMA"]))){var tt=w,it=!1,vt=!1;if(nt=w,tt==="/")for(et=!1;o/g,ot=t.slice(o-1),g=yt.exec(ot);if(g&&g.index===0){for(pt=g[2],st=0;g;){var bt=!!g[1],wt=g[2],kt=!!g[g.length-1]||wt.slice(0,8)==="![CDATA[";if(wt!==pt||kt||(bt?--st:++st),st<=0)break;g=yt.exec(ot)}return lt=g?g.index+g[0].length:ot.length,o+=lt-1,[ot.slice(0,lt),"TK_STRING"]}}else while(o")return a=!1,o+=2,["-->","TK_COMMENT"];if(w===".")return[w,"TK_DOT"];if(n(w,y)){while(o=s)break;return w===","?[w,"TK_COMMA"]:w==="="?[w,"TK_EQUALS"]:[w,"TK_OPERATOR"]}return[w,"TK_UNKNOWN"]}function k(n){for(var e=!1,u="",r=0,f="",t=0,i;e||r=0&&t<32){u+=i==="x"?"\\x"+f:"\\u"+f;continue}else if(t===34||t===39||t===92)u+="\\"+String.fromCharCode(t);else{if(i==="x"&&t>126&&t<=255)return n;u+=String.fromCharCode(t)}}else i==="\\"?e=!0:u+=i;return u}var b="\n\r\t ".split(""),v=/[0-9]/,y=("+ - * / % & ++ -- = += -= *= /= %= == === != !== > < >= <= >> << >>> >>>= >>= <<= && &= | || ! ~ , : ? ^ ^= |= :: =>"+" <%= <% %> ").split(" "),p,c,l,a,h,o,s;this.line_starters="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,yield,import,export".split(",");p=this.line_starters.concat(["do","in","else","get","set","new","catch","finally","typeof"]);this.tokenize=function(){s=t.length;o=0;a=!1;h=[];for(var n,f,r,i=null,v=[],e=[];!(f&&f.type==="TK_EOF");){for(r=w(),n=new u(r[1],r[0],c,l);n.type==="TK_INLINE_COMMENT"||n.type==="TK_COMMENT"||n.type==="TK_BLOCK_COMMENT"||n.type==="TK_UNKNOWN";)e.push(n),r=w(),n=new u(r[1],r[0],c,l);e.length&&(n.comments_before=e,e=[]);n.type==="TK_START_BLOCK"||n.type==="TK_START_EXPR"?(n.parent=f,i=n,v.push(n)):(n.type==="TK_END_BLOCK"||n.type==="TK_END_EXPR")&&i&&(n.text==="]"&&i.text==="["||n.text===")"&&i.text==="("||n.text==="}"&&i.text==="}")&&(n.parent=i.parent,i=v.pop());h.push(n);f=n}return h}}var i={},t,u;(function(n){var t="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",i=new RegExp("["+t+"]"),r=new RegExp("["+t+"̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‌‍‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"),u=n.newline=/[\n\r\u2028\u2029]/,f=n.isIdentifierStart=function(n){return n<65?n===36:n<91?!0:n<97?n===95:n<123?!0:n>=170&&i.test(String.fromCharCode(n))},e=n.isIdentifierChar=function(n){return n<48?n===36:n<58?!0:n<65?!1:n<91?!0:n<97?n===95:n<123?!0:n>=170&&r.test(String.fromCharCode(n))}})(i);t={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};u=function(n,t,i,r){this.type=n;this.text=t;this.comments_before=[];this.newlines=i||0;this.wanted_newline=i>0;this.whitespace_before=r||[];this.parent=null};typeof define=="function"&&define.amd?define([],function(){return{js_beautify:r}}):typeof exports!="undefined"?exports.js_beautify=r:typeof window!="undefined"?window.js_beautify=r:typeof global!="undefined"&&(global.js_beautify=r)})(),function(){function i(n){return n.replace(/^\s+/g,"")}function t(n){return n.replace(/\s+$/g,"")}function n(n,r,u,f){function ft(){return this.pos=0,this.token="",this.current_mode="CONTENT",this.tags={parent:"parent1",parentcount:1,parent1:""},this.tag_type="",this.token_text=this.last_token=this.last_text=this.token_type="",this.newlines=0,this.indent_content=k,this.Utils={whitespace:"\n\r\t ".split(""),single_token:"br,input,link,meta,!doctype,basefont,base,area,hr,wbr,param,img,isindex,?xml,embed,?php,?,?=".split(","),extra_liners:"head,body,/html".split(","),in_array:function(n,t){for(var i=0;i=this.wrap_line_length?(this.print_newline(!1,n),this.print_indentation(n)):(this.line_char_count++,n.push(" "))},this.get_content=function(){for(var i="",n=[],t;this.input.charAt(this.pos)!=="<";){if(this.pos>=this.input.length)return n.length?n.join(""):["","TK_EOF"];if(this.traverse_whitespace()){this.space_or_wrap(n);continue}if(o)if(t=this.input.substr(this.pos,3),t==="{{#"||t==="{{/")break;else if(this.input.substr(this.pos,2)==="{{"&&this.get_tag(!0)==="{{else}}")break;i=this.input.charAt(this.pos);this.pos++;this.line_char_count++;n.push(i)}return n.length?n.join(""):""},this.get_contents_to=function(n){var i,t;if(this.pos===this.input.length)return["","TK_EOF"];var r="",u=new RegExp("<\/"+n+"\\s*>","igm");return u.lastIndex=this.pos,i=u.exec(this.input),t=i?i.index:this.input.length,this.pos=this.input.length)return n&&(this.pos=c,this.line_char_count=l),t.length?t.join(""):["","TK_EOF"];if(r=this.input.charAt(this.pos),this.pos++,this.Utils.in_array(r,this.Utils.whitespace)){f=!0;continue}if((r==="'"||r==='"')&&(r+=this.get_unformatted(r),f=!0),r==="="&&(f=!1),t.length&&t[t.length-1]!=="="&&r!==">"&&f&&(this.space_or_wrap(t),f=!1),o&&e==="<"&&r+this.input.charAt(this.pos)==="{{"&&(r+=this.get_unformatted("}}"),t.length&&t[t.length-1]!==" "&&t[t.length-1]!=="<"&&(r=" "+r),f=!0),r!=="<"||e||(s=this.pos-1,e="<"),o&&!e&&t.length>=2&&t[t.length-1]==="{"&&t[t.length-2]=="{"&&(s=r==="#"||r==="/"?this.pos-3:this.pos-2,e="{"),this.line_char_count++,t.push(r),t[1]&&t[1]==="!"){t=[this.get_comment(s)];break}if(o&&e==="{"&&t.length>2&&t[t.length-2]==="}"&&t[t.length-1]==="}")break}while(r!==">");return i=t.join(""),v=i.indexOf(" ")!==-1?i.indexOf(" "):i[0]==="{"?i.indexOf("}"):i.indexOf(">"),y=i[0]!=="<"&&o?i[2]==="#"?3:2:1,u=i.substring(y,v).toLowerCase(),i.charAt(i.length-2)==="/"||this.Utils.in_array(u,this.Utils.single_token)?n||(this.tag_type="SINGLE"):o&&i[0]==="{"&&u==="else"?n||(this.indent_to_tag("if"),this.tag_type="HANDLEBARS_ELSE",this.indent_content=!0,this.traverse_whitespace()):this.is_unformatted(u,a)?(h=this.get_unformatted("<\/"+u+">",i),t.push(h),p=this.pos-1,this.tag_type="SINGLE"):u==="script"&&(i.search("type")===-1||i.search("type")>-1&&i.search(/\b(text|application)\/(x-)?(javascript|ecmascript|jscript|livescript)/)>-1)?n||(this.record_tag(u),this.tag_type="SCRIPT"):u==="style"&&(i.search("type")===-1||i.search("type")>-1&&i.search("text/css")>-1)?n||(this.record_tag(u),this.tag_type="STYLE"):u.charAt(0)==="!"?n||(this.tag_type="SINGLE",this.traverse_whitespace()):n||(u.charAt(0)==="/"?(this.retrieve_tag(u.substring(1)),this.tag_type="END"):(this.record_tag(u),u.toLowerCase()!=="html"&&(this.indent_content=!0),this.tag_type="START"),this.traverse_whitespace()&&this.space_or_wrap(t),this.Utils.in_array(u,this.Utils.extra_liners)&&(this.print_newline(!1,this.output),this.output.length&&this.output[this.output.length-2]!=="\n"&&this.print_newline(!0,this.output))),n&&(this.pos=c,this.line_char_count=l),t.join("")},this.get_comment=function(n){var t="",i=">",r=!1;for(this.pos=n,input_char=this.input.charAt(this.pos),this.pos++;this.pos<=this.input.length;){if(t+=input_char,t[t.length-1]===i[i.length-1]&&t.indexOf(i)!==-1)break;!r&&t.length<10&&(t.indexOf("",r=!0):t.indexOf("",r=!0):t.indexOf("",r=!0):t.indexOf("",r=!0));input_char=this.input.charAt(this.pos);this.pos++}return t},this.get_unformatted=function(n,t){if(t&&t.toLowerCase().indexOf(n)!==-1)return"";var r="",i="",u=0,f=!0;do{if(this.pos>=this.input.length)return i;if(r=this.input.charAt(this.pos),this.pos++,this.Utils.in_array(r,this.Utils.whitespace)){if(!f){this.line_char_count--;continue}if(r==="\n"||r==="\r"){i+="\n";this.line_char_count=0;continue}}i+=r;this.line_char_count++;f=!0;o&&r==="{"&&i.length&&i[i.length-2]==="{"&&(i+=this.get_unformatted("}}"),u=i.length)}while(i.toLowerCase().indexOf(n,u)===-1);return i},this.get_token=function(){var n,t,i;return this.last_token==="TK_TAG_SCRIPT"||this.last_token==="TK_TAG_STYLE"?(t=this.last_token.substr(7),n=this.get_contents_to(t),typeof n!="string")?n:[n,"TK_"+t]:this.current_mode==="CONTENT"?(n=this.get_content(),typeof n!="string"?n:[n,"TK_CONTENT"]):this.current_mode==="TAG"?(n=this.get_tag(),typeof n!="string"?n:(i="TK_TAG_"+this.tag_type,[n,i])):void 0},this.get_full_indent=function(n){return(n=this.indent_level+n||0,n<1)?"":Array(n+1).join(this.indent_string)},this.is_unformatted=function(n,t){if(!this.Utils.in_array(n,t))return!1;if(n.toLowerCase()!=="a"||!this.Utils.in_array("a",t))return!0;var r=this.get_tag(!0),i=(r||"").match(/^\s*<\s*\/?([a-z]*)\s*[^>]*>\s*$/);return!i||this.Utils.in_array(i,t)?!0:!1},this.printer=function(n,r,u,f,e){this.input=n||"";this.output=[];this.indent_character=r;this.indent_string="";this.indent_size=u;this.brace_style=e;this.indent_level=0;this.wrap_line_length=f;this.line_char_count=0;for(var o=0;o0&&(n=t(n));n&&n!==""&&(n.length>1&&n[n.length-1]==="\n"?(this.output.push(n.slice(0,-1)),this.print_newline(!1,this.output)):this.output.push(n));for(var i=0;i0,this.output);this.newlines=0};this.indent=function(){this.indent_level++};this.unindent=function(){this.indent_level>0&&this.indent_level--}},this}var e,k,d,g,nt,tt,a,v,it,o,rt,y,ut,c,p,s,l,h,w,b;for(r=r||{},(r.wrap_line_length===undefined||parseInt(r.wrap_line_length,10)===0)&&r.max_char!==undefined&&parseInt(r.max_char,10)!==0&&(r.wrap_line_length=r.max_char),k=r.indent_inner_html===undefined?!1:r.indent_inner_html,d=r.indent_size===undefined?4:parseInt(r.indent_size,10),g=r.indent_char===undefined?" ":r.indent_char,tt=r.brace_style===undefined?"collapse":r.brace_style,nt=parseInt(r.wrap_line_length,10)===0?32786:parseInt(r.wrap_line_length||250,10),a=r.unformatted||["a","span","img","bdo","em","strong","dfn","code","samp","kbd","var","cite","abbr","acronym","q","sub","sup","tt","i","b","big","small","u","s","strike","font","ins","del","pre","address","dt","h1","h2","h3","h4","h5","h6"],v=r.preserve_newlines===undefined?!0:r.preserve_newlines,it=v?isNaN(parseInt(r.max_preserve_newlines,10))?32786:parseInt(r.max_preserve_newlines,10):0,o=r.indent_handlebars===undefined?!1:r.indent_handlebars,rt=r.end_with_newline===undefined?!1:r.end_with_newline,e=new ft,e.printer(n,g,d,nt,tt);;){if(y=e.get_token(),e.token_text=y[0],e.token_type=y[1],e.token_type==="TK_EOF")break;switch(e.token_type){case"TK_TAG_START":e.print_newline(!1,e.output);e.print_token(e.token_text);e.indent_content&&(e.indent(),e.indent_content=!1);e.current_mode="CONTENT";break;case"TK_TAG_STYLE":case"TK_TAG_SCRIPT":e.print_newline(!1,e.output);e.print_token(e.token_text);e.current_mode="CONTENT";break;case"TK_TAG_END":e.last_token==="TK_CONTENT"&&e.last_text===""&&(ut=e.token_text.match(/\w+/)[0],c=null,e.output.length&&(c=e.output[e.output.length-1].match(/(?:<|{{#)\s*(\w+)/)),(c===null||c[1]!==ut)&&e.print_newline(!1,e.output));e.print_token(e.token_text);e.current_mode="CONTENT";break;case"TK_TAG_SINGLE":p=e.token_text.match(/^\s*<([a-z-]+)/i);p&&e.Utils.in_array(p[1],a)||e.print_newline(!1,e.output);e.print_token(e.token_text);e.current_mode="CONTENT";break;case"TK_TAG_HANDLEBARS_ELSE":e.print_token(e.token_text);e.indent_content&&(e.indent(),e.indent_content=!1);e.current_mode="CONTENT";break;case"TK_CONTENT":e.print_token(e.token_text);e.current_mode="TAG";break;case"TK_STYLE":case"TK_SCRIPT":if(e.token_text!==""){if(e.print_newline(!1,e.output),s=e.token_text,h=1,e.token_type==="TK_SCRIPT"?l=typeof u=="function"&&u:e.token_type==="TK_STYLE"&&(l=typeof f=="function"&&f),r.indent_scripts==="keep"?h=0:r.indent_scripts==="separate"&&(h=-e.indent_level),w=e.get_full_indent(h),l)s=l(s.replace(/^\s*/,w),r);else{var et=s.match(/^\s*/)[0],ot=et.match(/[^\n\r]*$/)[0].split(e.indent_string).length-1,st=e.get_full_indent(h-ot);s=s.replace(/^\s*/,w).replace(/\r\n|\r|\n/g,"\n"+st).replace(/\s+$/,"")}s&&(e.print_token_raw(s),e.print_newline(!0,e.output))}e.current_mode="TAG";break;default:e.token_text!==""&&e.print_token(e.token_text)}e.last_token=e.token_type;e.last_text=e.token_text}return b=e.output.join("").replace(/[\r\n\t ]+$/,""),rt&&(b+="\n"),b}if(typeof define=="function"&&define.amd)define(["require","./beautify","./beautify-css"],function(t){var i=t("./beautify"),r=t("./beautify-css");return{html_beautify:function(t,u){return n(t,u,i.js_beautify,r.css_beautify)}}});else if(typeof exports!="undefined"){var r=require("./beautify.js"),u=require("./beautify-css.js");exports.html_beautify=function(t,i){return n(t,i,r.js_beautify,u.css_beautify)}}else typeof window!="undefined"?window.html_beautify=function(t,i){return n(t,i,window.js_beautify,window.css_beautify)}:typeof global!="undefined"&&(global.html_beautify=function(t,i){return n(t,i,global.js_beautify,global.css_beautify)})}() \ No newline at end of file +!function(){var e=function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=6)}([function(e,t){var n="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",i=new RegExp("["+n+"]"),r=new RegExp("["+n+"̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‌‍‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]");t.newline=/[\n\r\u2028\u2029]/,t.lineBreak=new RegExp("\r\n|"+t.newline.source),t.allLineBreaks=new RegExp(t.lineBreak.source,"g"),t.isIdentifierStart=function(e){return e<65?36===e||64===e:e<91||(e<97?95===e:e<123||e>=170&&i.test(String.fromCharCode(e)))},t.isIdentifierChar=function(e){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||e>=170&&r.test(String.fromCharCode(e))))}},function(e,t,n){function i(e,t){if(!t.multiline_frame&&t.mode!==T.ForInitializer&&t.mode!==T.Conditional){var n=t.start_line_index;e.remove_indent(n)}}function r(e,t){for(var n=0;nn&&(n=e.line_indent_level)),{mode:t,parent:e,last_text:e?e.last_text:"",last_word:e?e.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,indentation_level:n,line_indent_level:e?e.line_indent_level:n,start_line_index:Q.get_line_number(),ternary_depth:0}}function o(e,t){for(var n=e.newlines,i=ae.keep_array_indentation&&K(te.mode),r=q,s=0;s0,t);else if(ae.max_preserve_newlines&&n>ae.max_preserve_newlines&&(n=ae.max_preserve_newlines),ae.preserve_newlines&&e.newlines>1){x(!1,t);for(var _=1;_=ae.wrap_line_length&&x(!1,!0)}}}function x(e,t){if(!t&&";"!==te.last_text&&","!==te.last_text&&"="!==te.last_text&&"TK_OPERATOR"!==H)for(var n=N(1);!(te.mode!==T.Statement||te.if_block&&n&&"TK_RESERVED"===n.type&&"else"===n.text||te.do_block);)k();Q.add_new_line(e)&&(te.multiline_frame=!0)}function m(){Q.just_added_newline()&&(ae.keep_array_indentation&&K(te.mode)&&q.wanted_newline?(Q.current_line.push(q.whitespace_before),Q.space_before_token=!1):Q.set_indent(te.indentation_level)&&(te.line_indent_level=te.indentation_level))}function g(e){if(Q.raw)return void Q.add_raw_token(q);if(ae.comma_first&&"TK_COMMA"===H&&Q.just_added_newline()&&","===Q.previous_line.last()){var t=Q.previous_line.pop();Q.previous_line.is_empty()&&(Q.previous_line.push(t),Q.trim(!0),Q.current_line.pop(),Q.trim()),m(),Q.add_token(","),Q.space_before_token=!0}e=e||q.text,m(),Q.add_token(e)}function b(){te.indentation_level+=1}function v(){te.indentation_level>0&&(!te.parent||te.indentation_level>te.parent.indentation_level)&&(te.indentation_level-=1)}function w(e){te?(ie.push(te),ne=te):ne=n(null,e),te=n(ne,e)}function K(e){return e===T.ArrayLiteral}function R(e){return r(e,[T.Expression,T.ForInitializer,T.Conditional])}function k(){ie.length>0&&(ne=te,te=ie.pop(),ne.mode!==T.Statement||ae.unindent_chained_methods||i(Q,ne))}function y(){return te.parent.mode===T.ObjectLiteral&&te.mode===T.Statement&&(":"===te.last_text&&0===te.ternary_depth||"TK_RESERVED"===H&&r(te.last_text,["get","set"]))}function O(){return!!("TK_RESERVED"===H&&r(te.last_text,["var","let","const"])&&"TK_WORD"===q.type||"TK_RESERVED"===H&&"do"===te.last_text||"TK_RESERVED"===H&&r(te.last_text,ue)&&!q.wanted_newline||"TK_RESERVED"===H&&"else"===te.last_text&&("TK_RESERVED"!==q.type||"if"!==q.text||q.comments_before.length)||"TK_END_EXPR"===H&&(ne.mode===T.ForInitializer||ne.mode===T.Conditional)||"TK_WORD"===H&&te.mode===T.BlockStatement&&!te.in_case&&"--"!==q.text&&"++"!==q.text&&"function"!==J&&"TK_WORD"!==q.type&&"TK_RESERVED"!==q.type||te.mode===T.ObjectLiteral&&(":"===te.last_text&&0===te.ternary_depth||"TK_RESERVED"===H&&r(te.last_text,["get","set"])))&&(w(T.Statement),ae.unindent_chained_methods||b(),o(q,!0),y()||E("TK_RESERVED"===q.type&&r(q.text,["do","for","if","while"])),!0)}function S(e,t){for(var n=0;n=_e.length?null:_e[t]}function D(){O()||o(q);var e=T.Expression;if("["===q.text){if("TK_WORD"===H||")"===te.last_text)return"TK_RESERVED"===H&&r(te.last_text,Y.line_starters)&&(Q.space_before_token=!0),w(e),g(),b(),void(ae.space_in_paren&&(Q.space_before_token=!0));e=T.ArrayLiteral,K(te.mode)&&("["!==te.last_text&&(","!==te.last_text||"]"!==J&&"}"!==J)||ae.keep_array_indentation||x())}else"TK_RESERVED"===H&&"for"===te.last_text?e=T.ForInitializer:"TK_RESERVED"===H&&r(te.last_text,["if","while"])&&(e=T.Conditional);";"===te.last_text||"TK_START_BLOCK"===H?x():"TK_END_EXPR"===H||"TK_START_EXPR"===H||"TK_END_BLOCK"===H||"."===te.last_text?E(q.wanted_newline):"TK_RESERVED"===H&&"("===q.text||"TK_WORD"===H||"TK_OPERATOR"===H?"TK_RESERVED"===H&&("function"===te.last_word||"typeof"===te.last_word)||"*"===te.last_text&&(r(J,["function","yield"])||te.mode===T.ObjectLiteral&&r(J,["{",","]))?ae.space_after_anon_function&&(Q.space_before_token=!0):"TK_RESERVED"!==H||!r(te.last_text,Y.line_starters)&&"catch"!==te.last_text||ae.space_before_conditional&&(Q.space_before_token=!0):Q.space_before_token=!0,"("===q.text&&"TK_RESERVED"===H&&r(te.last_word,["await","async"])&&(Q.space_before_token=!0),"("===q.text&&("TK_EQUALS"!==H&&"TK_OPERATOR"!==H||y()||E()),"("===q.text&&"TK_WORD"!==H&&"TK_RESERVED"!==H&&E(),w(e),g(),ae.space_in_paren&&(Q.space_before_token=!0),b()}function L(){for(;te.mode===T.Statement;)k();o(q),te.multiline_frame&&E("]"===q.text&&K(te.mode)&&!ae.keep_array_indentation),ae.space_in_paren&&("TK_START_EXPR"!==H||ae.space_in_empty_paren?Q.space_before_token=!0:(Q.trim(),Q.space_before_token=!1)),"]"===q.text&&ae.keep_array_indentation?(g(),k()):(k(),g()),i(Q,ne),te.do_while&&ne.mode===T.Conditional&&(ne.mode=T.Expression,te.do_block=!1,te.do_while=!1)}function j(){o(q);var e=N(1),t=N(2);w(t&&(r(t.text,[":",","])&&r(e.type,["TK_STRING","TK_WORD","TK_RESERVED"])||r(e.text,["get","set","..."])&&r(t.type,["TK_WORD","TK_RESERVED"]))?r(J,["class","interface"])?T.BlockStatement:T.ObjectLiteral:"TK_OPERATOR"===H&&"=>"===te.last_text?T.BlockStatement:r(H,["TK_EQUALS","TK_START_EXPR","TK_COMMA","TK_OPERATOR"])||"TK_RESERVED"===H&&r(te.last_text,["return","throw","import","default"])?T.ObjectLiteral:T.BlockStatement);var n=!e.comments_before.length&&"}"===e.text,i=n&&"function"===te.last_word&&"TK_END_EXPR"===H;if(ae.brace_preserve_inline){var s=0,a=null;te.inline_frame=!0;do{if(s+=1,a=N(s),a.wanted_newline){te.inline_frame=!1;break}}while("TK_EOF"!==a.type&&("TK_END_BLOCK"!==a.type||a.opened!==q))}("expand"===ae.brace_style||"none"===ae.brace_style&&q.wanted_newline)&&!te.inline_frame?"TK_OPERATOR"!==H&&(i||"TK_EQUALS"===H||"TK_RESERVED"===H&&C(te.last_text)&&"else"!==te.last_text)?Q.space_before_token=!0:x(!1,!0):(!K(ne.mode)||"TK_START_EXPR"!==H&&"TK_COMMA"!==H||(("TK_COMMA"===H||ae.space_in_paren)&&(Q.space_before_token=!0),("TK_COMMA"===H||"TK_START_EXPR"===H&&te.inline_frame)&&(E(),ne.multiline_frame=ne.multiline_frame||te.multiline_frame,te.multiline_frame=!1)),"TK_OPERATOR"!==H&&"TK_START_EXPR"!==H&&("TK_START_BLOCK"!==H||te.inline_frame?Q.space_before_token=!0:x())),g(),b()}function I(){for(o(q);te.mode===T.Statement;)k();var e="TK_START_BLOCK"===H;te.inline_frame&&!e?Q.space_before_token=!0:"expand"===ae.brace_style?e||x():e||(K(te.mode)&&ae.keep_array_indentation?(ae.keep_array_indentation=!1,x(),ae.keep_array_indentation=!0):x()),k(),g()}function B(){if("TK_RESERVED"===q.type)if(r(q.text,["set","get"])&&te.mode!==T.ObjectLiteral)q.type="TK_WORD";else if(r(q.text,["as","from"])&&!te.import_block)q.type="TK_WORD";else if(te.mode===T.ObjectLiteral){var e=N(1);":"===e.text&&(q.type="TK_WORD")}if(O()?"TK_RESERVED"===H&&r(te.last_text,["var","let","const"])&&"TK_WORD"===q.type&&(te.declaration_statement=!0):!q.wanted_newline||R(te.mode)||"TK_OPERATOR"===H&&"--"!==te.last_text&&"++"!==te.last_text||"TK_EQUALS"===H||!ae.preserve_newlines&&"TK_RESERVED"===H&&r(te.last_text,["var","let","const","set","get"])?o(q):(o(q),x()),te.do_block&&!te.do_while){if("TK_RESERVED"===q.type&&"while"===q.text)return Q.space_before_token=!0,g(),Q.space_before_token=!0,void(te.do_while=!0);x(),te.do_block=!1}if(te.if_block)if(te.else_block||"TK_RESERVED"!==q.type||"else"!==q.text){for(;te.mode===T.Statement;)k();te.if_block=!1,te.else_block=!1}else te.else_block=!0;if("TK_RESERVED"===q.type&&("case"===q.text||"default"===q.text&&te.in_case_statement))return x(),(te.case_body||ae.jslint_happy)&&(v(),te.case_body=!1),g(),te.in_case=!0,void(te.in_case_statement=!0);if("TK_COMMA"!==H&&"TK_START_EXPR"!==H&&"TK_EQUALS"!==H&&"TK_OPERATOR"!==H||y()||E(),"TK_RESERVED"===q.type&&"function"===q.text)return(r(te.last_text,["}",";"])||Q.just_added_newline()&&!r(te.last_text,["(","[","{",":","=",","])&&"TK_OPERATOR"!==H)&&(Q.just_added_blankline()||q.comments_before.length||(x(),x(!0))),"TK_RESERVED"===H||"TK_WORD"===H?"TK_RESERVED"===H&&(r(te.last_text,["get","set","new","export","async"])||r(te.last_text,ue))?Q.space_before_token=!0:"TK_RESERVED"===H&&"default"===te.last_text&&"export"===J?Q.space_before_token=!0:x():"TK_OPERATOR"===H||"="===te.last_text?Q.space_before_token=!0:(te.multiline_frame||!R(te.mode)&&!K(te.mode))&&x(),g(),void(te.last_word=q.text);if(re="NONE","TK_END_BLOCK"===H?ne.inline_frame?re="SPACE":"TK_RESERVED"===q.type&&r(q.text,["else","catch","finally","from"])?"expand"===ae.brace_style||"end-expand"===ae.brace_style||"none"===ae.brace_style&&q.wanted_newline?re="NEWLINE":(re="SPACE",Q.space_before_token=!0):re="NEWLINE":"TK_SEMICOLON"===H&&te.mode===T.BlockStatement?re="NEWLINE":"TK_SEMICOLON"===H&&R(te.mode)?re="SPACE":"TK_STRING"===H?re="NEWLINE":"TK_RESERVED"===H||"TK_WORD"===H||"*"===te.last_text&&(r(J,["function","yield"])||te.mode===T.ObjectLiteral&&r(J,["{",","]))?re="SPACE":"TK_START_BLOCK"===H?re=te.inline_frame?"SPACE":"NEWLINE":"TK_END_EXPR"===H&&(Q.space_before_token=!0,re="NEWLINE"),"TK_RESERVED"===q.type&&r(q.text,Y.line_starters)&&")"!==te.last_text&&(re=te.inline_frame||"else"===te.last_text||"export"===te.last_text?"SPACE":"NEWLINE"),"TK_RESERVED"===q.type&&r(q.text,["else","catch","finally"]))if(("TK_END_BLOCK"!==H||ne.mode!==T.BlockStatement||"expand"===ae.brace_style||"end-expand"===ae.brace_style||"none"===ae.brace_style&&q.wanted_newline)&&!te.inline_frame)x();else{Q.trim(!0);var t=Q.current_line;"}"!==t.last()&&x(),Q.space_before_token=!0}else"NEWLINE"===re?"TK_RESERVED"===H&&C(te.last_text)?Q.space_before_token=!0:"TK_END_EXPR"!==H?"TK_START_EXPR"===H&&"TK_RESERVED"===q.type&&r(q.text,["var","let","const"])||":"===te.last_text||("TK_RESERVED"===q.type&&"if"===q.text&&"else"===te.last_text?Q.space_before_token=!0:x()):"TK_RESERVED"===q.type&&r(q.text,Y.line_starters)&&")"!==te.last_text&&x():te.multiline_frame&&K(te.mode)&&","===te.last_text&&"}"===J?x():"SPACE"===re&&(Q.space_before_token=!0);g(),te.last_word=q.text,"TK_RESERVED"===q.type&&("do"===q.text?te.do_block=!0:"if"===q.text?te.if_block=!0:"import"===q.text?te.import_block=!0:te.import_block&&"TK_RESERVED"===q.type&&"from"===q.text&&(te.import_block=!1))}function P(){O()?Q.space_before_token=!1:o(q);for(var e=N(1);!(te.mode!==T.Statement||te.if_block&&e&&"TK_RESERVED"===e.type&&"else"===e.text||te.do_block);)k();te.import_block&&(te.import_block=!1),g()}function M(){O()?Q.space_before_token=!0:(o(q),"TK_RESERVED"===H||"TK_WORD"===H||te.inline_frame?Q.space_before_token=!0:"TK_COMMA"===H||"TK_START_EXPR"===H||"TK_EQUALS"===H||"TK_OPERATOR"===H?y()||E():x()),g()}function V(){O()||o(q),te.declaration_statement&&(te.declaration_assignment=!0),Q.space_before_token=!0,g(),Q.space_before_token=!0}function U(){o(q,!0),g(),Q.space_before_token=!0,te.declaration_statement?(R(te.parent.mode)&&(te.declaration_assignment=!1),te.declaration_assignment?(te.declaration_assignment=!1,x(!1,!0)):ae.comma_first&&E()):te.mode===T.ObjectLiteral||te.mode===T.Statement&&te.parent.mode===T.ObjectLiteral?(te.mode===T.Statement&&k(),te.inline_frame||x()):ae.comma_first&&E()}function W(){var e="*"===q.text&&("TK_RESERVED"===H&&r(te.last_text,["function","yield"])||r(H,["TK_START_BLOCK","TK_COMMA","TK_END_BLOCK","TK_SEMICOLON"])),t=r(q.text,["-","+"])&&(r(H,["TK_START_BLOCK","TK_START_EXPR","TK_EQUALS","TK_OPERATOR"])||r(te.last_text,Y.line_starters)||","===te.last_text);if(O());else{o(q,!e)}if("TK_RESERVED"===H&&C(te.last_text))return Q.space_before_token=!0,void g();if("*"===q.text&&"TK_DOT"===H)return void g();if("::"===q.text)return void g();if("TK_OPERATOR"===H&&r(ae.operator_position,d)&&E(),":"===q.text&&te.in_case)return te.case_body=!0,b(),g(),x(),void(te.in_case=!1);var n=!0,i=!0,s=!1;if(":"===q.text?0===te.ternary_depth?n=!1:(te.ternary_depth-=1,s=!0):"?"===q.text&&(te.ternary_depth+=1),!t&&!e&&ae.preserve_newlines&&r(q.text,Y.positionable_operators)){var a=":"===q.text,_=a&&s,l=a&&!s;switch(ae.operator_position){case f.before_newline:return Q.space_before_token=!l,g(),a&&!_||E(),void(Q.space_before_token=!0);case f.after_newline:return Q.space_before_token=!0,!a||_?N(1).wanted_newline?x(!1,!0):E():Q.space_before_token=!1,g(),void(Q.space_before_token=!0);case f.preserve_newline:return l||E(),n=!(Q.just_added_newline()||l),Q.space_before_token=n,g(),void(Q.space_before_token=!0)}}if(e){E(),n=!1;var c=N(1);i=c&&r(c.type,["TK_WORD","TK_RESERVED"])}else"..."===q.text?(E(),n="TK_START_BLOCK"===H,i=!1):(r(q.text,["--","++","!","~"])||t)&&(n=!1,i=!1,!q.wanted_newline||"--"!==q.text&&"++"!==q.text||x(!1,!0),";"===te.last_text&&R(te.mode)&&(n=!0),"TK_RESERVED"===H?n=!0:"TK_END_EXPR"===H?n=!("]"===te.last_text&&("--"===q.text||"++"===q.text)):"TK_OPERATOR"===H&&(n=r(q.text,["--","-","++","+"])&&r(te.last_text,["--","-","++","+"]),r(q.text,["+","-"])&&r(te.last_text,["--","++"])&&(i=!0)),(te.mode!==T.BlockStatement||te.inline_frame)&&te.mode!==T.Statement||"{"!==te.last_text&&";"!==te.last_text||x());Q.space_before_token=Q.space_before_token||n,g(),Q.space_before_token=i}function z(e){if(Q.raw)return Q.add_raw_token(q),void(q.directives&&"end"===q.directives.preserve&&(Q.raw=ae.test_output_raw));if(q.directives)return x(!1,e),g(),"start"===q.directives.preserve&&(Q.raw=!0),void x(!1,!0);if(!c.newline.test(q.text)&&!q.wanted_newline)return Q.space_before_token=!0,g(),void(Q.space_before_token=!0);var t,n=p(q.text),i=!1,r=!1,s=q.whitespace_before,_=s.length;for(x(!1,e),n.length>1&&(i=S(n.slice(1),"*"),r=A(n.slice(1),s)),g(n[0]),t=1;t_?g(n[t].substring(_)):Q.add_token(n[t]);x(!1,e)}function X(e){q.wanted_newline?x(!1,e):Q.trim(!0),Q.space_before_token=!0,g(),x(!1,e)}function G(){O()||o(q,!0),"TK_RESERVED"===H&&C(te.last_text)?Q.space_before_token=!0:E(")"===te.last_text&&ae.break_chained_methods),g()}function F(e){g(),"\n"===q.text[q.text.length-1]&&x(!1,e)}function $(){for(;te.mode===T.Statement;)k();o(q)}var Q,Z,Y,q,H,J,ee,te,ne,ie,re,se,ae,_e=[],oe="";se={TK_START_EXPR:D,TK_END_EXPR:L,TK_START_BLOCK:j,TK_END_BLOCK:I,TK_WORD:B,TK_RESERVED:B,TK_SEMICOLON:P,TK_STRING:M,TK_EQUALS:V,TK_OPERATOR:W,TK_COMMA:U,TK_BLOCK_COMMENT:z,TK_COMMENT:X,TK_DOT:G,TK_UNKNOWN:F,TK_EOF:$},t=t||{},t=l(t,"js"),ae={},"expand-strict"===t.brace_style?t.brace_style="expand":"collapse-preserve-inline"===t.brace_style?t.brace_style="collapse,preserve-inline":void 0!==t.braces_on_own_line?t.brace_style=t.braces_on_own_line?"expand":"collapse":t.brace_style||(t.brace_style="collapse");var le=t.brace_style.split(/[^a-zA-Z0-9_\-]+/);ae.brace_preserve_inline=!1,ae.brace_style="collapse";for(var ce=0;ce0;)ee+=ae.indent_char,ae.indent_size-=1;var he=0;if(e&&e.length){for(;" "===e.charAt(he)||"\t"===e.charAt(he);)he+=1;oe=e.substring(0,he),e=e.substring(he)}H="TK_START_BLOCK",J="",Q=new h(ee,oe),Q.raw=ae.test_output_raw,ie=[],w(T.BlockStatement),this.beautify=function(){for(Y=new u(e,ae,ee),_e=Y.tokenize(),Z=0,q=N();q;)se[q.type](),J=te.last_text,H=q.type,te.last_text=q.text,Z+=1,q=N();return Q.get_code(ae.end_with_newline,ae.eol)};var ue=["break","continue","return","throw","yield"]}var l=n(3).mergeOpts,c=n(0),h=n(4).Output,u=n(7).Tokenizer,p=["before-newline","after-newline","preserve-newline"],f=function(e){for(var t={},n=0;n=0&&e=0&&e0&&(n-=1,t-=e.indent_length)},this.trim=function(){for(;" "===this.last();)i.pop(),t-=1;r=0===i.length},this.toString=function(){var t="";return this._empty||(n>=0&&(t=e.indent_cache[n]),t+=i.join("")),t}}function i(e,t){t=t||"",this.indent_cache=[t],this.baseIndentLength=t.length,this.indent_length=e.length,this.raw=!1;var i=[];this.baseIndentString=t,this.indent_string=e,this.previous_line=null,this.current_line=null,this.space_before_token=!1,this.add_outputline=function(){this.previous_line=this.current_line,this.current_line=new n(this),i.push(this.current_line)},this.add_outputline(),this.get_line_number=function(){return i.length},this.add_new_line=function(e){return(1!==this.get_line_number()||!this.just_added_newline())&&(!(!e&&this.just_added_newline())&&(this.raw||this.add_outputline(),!0))},this.get_code=function(e,t){var n=i.join("\n").replace(/[\r\n\t ]+$/,"");return e&&(n+="\n"),"\n"!==t&&(n=n.replace(/[\n]/g,t)),n},this.set_indent=function(e){if(i.length>1){for(;e>=this.indent_cache.length;)this.indent_cache.push(this.indent_cache[this.indent_cache.length-1]+this.indent_string);return this.current_line.set_indent(e),!0}return this.current_line.set_indent(0),!1},this.add_raw_token=function(e){for(var t=0;t1&&this.current_line.is_empty();)i.pop(),this.current_line=i[i.length-1],this.current_line.trim();this.previous_line=i.length>1?i[i.length-2]:null},this.just_added_newline=function(){return this.current_line.is_empty()},this.just_added_blankline=function(){if(this.just_added_newline()){if(1===i.length)return!0;return i[i.length-2].is_empty()}return!1}}e.exports.Output=i},function(e,t){function n(e,t,n,i,r){this.type=e,this.text=t,this.comments_before=[],this.comments_after=[],this.newlines=n||0,this.wanted_newline=n>0,this.whitespace_before=i||"",this.parent=r||null,this.opened=null,this.directives=null}e.exports.Token=n},function(e,t,n){function i(e,t){return new r(e,t).beautify()}var r=n(1).Beautifier;e.exports=i},function(e,t,n){function i(e){return e.replace(/^\s+|\s+$/g,"")}function r(e,t){for(var n=0;n/g;if("`"===a||"'"===a||'"'===a||("/"===a||t.e4x&&"<"===a&&g.test(D,-1))&&("TK_RESERVED"===K.type&&r(K.text,["return","case","throw","else","do","typeof","yield"])||"TK_END_EXPR"===K.type&&")"===K.text&&K.parent&&"TK_RESERVED"===K.parent.type&&r(K.parent.text,["if","while","for"])||r(K.type,["TK_COMMENT","TK_START_EXPR","TK_START_BLOCK","TK_END_BLOCK","TK_OPERATOR","TK_EQUALS","TK_EOF","TK_SEMICOLON","TK_COMMA"]))){var L=a,j=!1,I=!1;if(e=a,"/"===L)for(var B=!1;g.hasNext()&&(j||B||g.peek()!==L)&&!g.testChar(o.newline);)e+=g.peek(),j?j=!1:(j="\\"===g.peek(),"["===g.peek()?B=!0:"]"===g.peek()&&(B=!1)),g.next();else if(t.e4x&&"<"===L){var P=/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[\s\S]+?}|!\[CDATA\[[\s\S]*?\]\])(\s+{[\s\S]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{[\s\S]+?}))*\s*(\/?)\s*>/g;g.back();var M="",V=g.match(D);if(V){for(var U=V[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),W=0===U.indexOf("{"),z=0;V;){var X=!!V[1],G=V[2],F=!!V[V.length-1]||"![CDATA["===G.slice(0,8);if(!F&&(G===U||W&&G.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(X?--z:++z),M+=V[0],z<=0)break;V=g.match(P)}return V||(M+=g.match(/[\s\S]*/g)[0]),M=M.replace(o.allLineBreaks,"\n"),[M,"TK_STRING"]}}else{var $=function(t,n,i){for(var r;g.hasNext()&&(r=g.peek(),j||r!==t&&(n||!o.newline.test(r)));)(j||n)&&o.newline.test(r)?("\r"===r&&"\n"===g.peek(1)&&(g.next(),r=g.peek()),e+="\n"):e+=r,j?("x"!==r&&"u"!==r||(I=!0),j=!1):j="\\"===r,g.next(),i&&-1!==e.indexOf(i,e.length-i.length)&&("`"===t?$("}",n,"`"):$("`",n,"${"),g.hasNext()&&(e+=g.next()))};"`"===L?$("`",!0,"${"):$(L)}if(I&&t.unescape_strings&&(e=l(e)),g.peek()===L&&(e+=L,g.next(),"/"===L))for(;g.hasNext()&&o.isIdentifierStart(g.peekCharCode());)e+=g.next();return[e,"TK_STRING"]}if("#"===a){if(0===m.length&&"!"===g.peek()){for(e=a;g.hasNext()&&"\n"!==a;)a=g.next(),e+=a;return[i(e)+"\n","TK_UNKNOWN"]}var Q="#";if(g.hasNext()&&g.testChar(h)){do{a=g.next(),Q+=a}while(g.hasNext()&&"#"!==a&&"="!==a);return"#"===a||("["===g.peek()&&"]"===g.peek(1)?(Q+="[]",g.next(),g.next()):"{"===g.peek()&&"}"===g.peek(1)&&(Q+="{}",g.next(),g.next())),[Q,"TK_WORD"]}}if("<"===a&&("?"===g.peek()||"%"===g.peek())){g.back();var Z=g.match(y);if(Z)return a=Z[0],a=a.replace(o.allLineBreaks,"\n"),[a,"TK_STRING"]}if("<"===a&&g.match(/\!--/g)){for(a="\x3c!--";g.hasNext()&&!g.testChar(o.newline);)a+=g.next();return x=!0,[a,"TK_COMMENT"]}if("-"===a&&x&&g.match(/->/g))return x=!1,["--\x3e","TK_COMMENT"];if("."===a)return"."===g.peek()&&"."===g.peek(1)?(a+=g.next()+g.next(),[a,"TK_OPERATOR"]):[a,"TK_DOT"];if(r(a,d)){for(;g.hasNext()&&r(a+g.peek(),d)&&(a+=g.next(),g.hasNext()););return","===a?[a,"TK_COMMA"]:"="===a?[a,"TK_EQUALS"]:[a,"TK_OPERATOR"]}return[a,"TK_UNKNOWN"]}function l(e){for(var t="",n=0,i=new a(e),r=null;i.hasNext();)if(r=i.match(/([\s]|[^\\]|\\\\)+/g),r&&(t+=r[0]),"\\"===i.peek()){if(i.next(),"x"===i.peek())r=i.match(/x([0-9A-Fa-f]{2})/g);else{if("u"!==i.peek()){t+="\\",i.hasNext()&&(t+=i.next());continue}r=i.match(/u([0-9A-Fa-f]{4})/g)}if(!r)return e;if((n=parseInt(r[1],16))>126&&n<=255&&0===r[0].indexOf("x"))return e;if(n>=0&&n<32){t+="\\"+r[0];continue}t+=34===n||39===n||92===n?"\\"+String.fromCharCode(n):String.fromCharCode(n)}return t}var c="\n\r\t ".split(""),h=/[0-9]/,u=/[01]/,p=/[01234567]/,f=/[0123456789abcdefABCDEF]/;this.positionable_operators="!= !== % & && * ** + - / : < << <= == === > >= >> >>> ? ^ | ||".split(" ");var d=this.positionable_operators.concat("! %= &= *= **= ++ += , -- -= /= :: <<= = => >>= >>>= ^= |= ~ ...".split(" "));this.line_starters="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(",");var T,E,x,m,g,b=this.line_starters.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as"]),v=/([\s\S]*?)((?:\*\/)|$)/g,w=/([^\n\r\u2028\u2029]*)/g,K=/\/\* beautify( \w+[:]\w+)+ \*\//g,R=/ (\w+)[:](\w+)/g,k=/([\s\S]*?)((?:\/\*\sbeautify\signore:end\s\*\/)|$)/g,y=/((<\?php|<\?=)[\s\S]*?\?>)|(<%[\s\S]*?%>)/g;this.tokenize=function(){g=new a(e),x=!1,m=[];for(var t,n,i,r=null,o=[],l=[];!n||"TK_EOF"!==n.type;){for(i=s(),t=new _(i[1],i[0],T,E);"TK_COMMENT"===t.type||"TK_BLOCK_COMMENT"===t.type||"TK_UNKNOWN"===t.type;)"TK_BLOCK_COMMENT"===t.type&&(t.directives=i[2]),l.push(t),i=s(),t=new _(i[1],i[0],T,E);l.length&&(t.comments_before=l,l=[]),"TK_START_BLOCK"===t.type||"TK_START_EXPR"===t.type?(t.parent=n,o.push(r),r=t):("TK_END_BLOCK"===t.type||"TK_END_EXPR"===t.type)&&r&&("]"===t.text&&"["===r.text||")"===t.text&&"("===r.text||"}"===t.text&&"{"===r.text)&&(t.parent=r.parent,t.opened=r,r=o.pop()),m.push(t),n=t}return m}}var a=n(2).InputScanner,_=n(5).Token,o=n(0);e.exports.Tokenizer=s}]),t=e;"function"==typeof define&&define.amd?define("beautify.js",[],function(){return{js_beautify:t}}):"undefined"!=typeof exports?exports.js_beautify=t:"undefined"!=typeof window?window.js_beautify=t:"undefined"!=typeof global&&(global.js_beautify=t)}(),function(){var e=function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})}, +t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=3)}([function(e,t,n){function i(e){return e.replace(/^\s+/g,"")}function r(e){return e.replace(/\s+$/g,"")}function s(e,t,n,s){function _(){function e(e){var t="";return{add:function(n){var i=t+n.toLowerCase();t=i.length<=e.length?i:i.substr(i.length-e.length,e.length)},doesNotMatch:function(){return-1===t.indexOf(e)}}}return this.pos=0,this.token="",this.current_mode="CONTENT",this.tags={parent:"parent1",parentcount:1,parent1:""},this.tag_type="",this.token_text=this.last_token=this.last_text=this.token_type="",this.newlines=0,this.indent_content=h,this.indent_body_inner_html=u,this.indent_head_inner_html=p,this.Utils={whitespace:"\n\r\t ".split(""),single_token:t.void_elements||["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","?php","basefont","isindex"],extra_liners:S,in_array:function(e,t){for(var n=0;n=this.wrap_line_length?(this.print_newline(!1,e),this.print_indentation(e),!0):(this.line_char_count++,e.push(" "),!1)},this.get_content=function(){for(var e="",t=[],n=0;"<"!==this.input.charAt(this.pos)||2===n;){if(this.pos>=this.input.length)return t.length?t.join(""):["","TK_EOF"];if(n<2&&this.traverse_whitespace())this.space_or_wrap(t);else{if(e=this.input.charAt(this.pos),v){if("{"===e?n+=1:n<2&&(n=0),"}"===e&&n>0&&0==n--)break;var i=this.input.substr(this.pos,3);if("{{#"===i||"{{/"===i)break;if("{{!"===i)return[this.get_tag(),"TK_TAG_HANDLEBARS_COMMENT"];if("{{"===this.input.substr(this.pos,2)&&"{{else}}"===this.get_tag(!0))break}this.pos++,this.line_char_count++,t.push(e)}}return t.length?t.join(""):""},this.get_contents_to=function(e){if(this.pos===this.input.length)return["","TK_EOF"];var t="",n=new RegExp("","igm");n.lastIndex=this.pos;var i=n.exec(this.input),r=i?i.index:this.input.length;return this.pos=this.input.length)return e&&(this.pos=c,this.line_char_count=h),s.length?s.join(""):["","TK_EOF"];if(r=this.input.charAt(this.pos),this.pos++,this.Utils.in_array(r,this.Utils.whitespace))_=!0;else{if("'"!==r&&'"'!==r||(r+=this.get_unformatted(r),_=!0),"="===r&&(_=!1),i=this.input.substr(this.pos-1),!k||!l||u||">"!==r&&"/"!==r||i.match(/^\/?\s*>/)&&(_=!1,u=!0,this.print_newline(!1,s),this.print_indentation(s)),s.length&&"="!==s[s.length-1]&&">"!==r&&_){var p=this.space_or_wrap(s),f=p&&"/"!==r&&!R;if(_=!1,R&&"/"!==r){var d=!1;if(k&&o){d=!(null!==i.match(/^\S*(="([^"]|\\")*")?\s*\/?\s*>/))}o&&!d||(this.print_newline(!1,s),this.print_indentation(s),f=!0)}if(f){l=!0;var T=K;y&&(T=s.indexOf(" ")+1);for(var E=0;E=2&&"{"===s[s.length-1]&&"{"===s[s.length-2]&&(t="#"===r||"/"===r||"!"===r?this.pos-3:this.pos-2,n="{"),this.line_char_count++,s.push(r),s[1]&&("!"===s[1]||"?"===s[1]||"%"===s[1])){s=[this.get_comment(t)];break}if(v&&s[1]&&"{"===s[1]&&s[2]&&"!"===s[2]){s=[this.get_comment(t)];break}if(v&&"{"===n&&s.length>2&&"}"===s[s.length-2]&&"}"===s[s.length-1])break}}while(">"!==r);var b,w,O=s.join("");b=-1!==O.indexOf(" ")?O.indexOf(" "):-1!==O.indexOf("\n")?O.indexOf("\n"):"{"===O.charAt(0)?O.indexOf("}"):O.indexOf(">"),w="<"!==O.charAt(0)&&v?"#"===O.charAt(2)?3:2:1;var S=O.substring(w,b).toLowerCase();return"/"===O.charAt(O.length-2)||this.Utils.in_array(S,this.Utils.single_token)?e||(this.tag_type="SINGLE"):v&&"{"===O.charAt(0)&&"else"===S?e||(this.indent_to_tag("if"),this.tag_type="HANDLEBARS_ELSE",this.indent_content=!0,this.traverse_whitespace()):this.is_unformatted(S,x)||this.is_unformatted(S,m)?(a=this.get_unformatted("",O),s.push(a),this.pos-1,this.tag_type="SINGLE"):"script"===S&&(-1===O.search("type")||O.search("type")>-1&&O.search(/\b(text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect)/)>-1)?e||(this.record_tag(S),this.tag_type="SCRIPT"):"style"===S&&(-1===O.search("type")||O.search("type")>-1&&O.search("text/css")>-1)?e||(this.record_tag(S),this.tag_type="STYLE"):"!"===S.charAt(0)?e||(this.tag_type="SINGLE",this.traverse_whitespace()):e||("/"===S.charAt(0)?(this.retrieve_tag(S.substring(1)),this.tag_type="END"):(this.record_tag(S),"html"!==S.toLowerCase()&&(this.indent_content=!0),this.tag_type="START"),this.traverse_whitespace()&&this.space_or_wrap(s),this.Utils.in_array(S,this.Utils.extra_liners)&&(this.print_newline(!1,this.output),this.output.length&&"\n"!==this.output[this.output.length-2]&&this.print_newline(!0,this.output))),e&&(this.pos=c,this.line_char_count=h),s.join("")},this.get_comment=function(e){var t="",n=">",i=!1;this.pos=e;var r=this.input.charAt(this.pos);for(this.pos++;this.pos<=this.input.length&&(t+=r,t.charAt(t.length-1)!==n.charAt(n.length-1)||-1===t.indexOf(n));)!i&&t.length<10&&(0===t.indexOf("",i=!0):0===t.indexOf("",i=!0):0===t.indexOf("",i=!0):0===t.indexOf("\x3c!--")?(n="--\x3e",i=!0):0===t.indexOf("{{!--")?(n="--}}",i=!0):0===t.indexOf("{{!")?5===t.length&&-1===t.indexOf("{{!--")&&(n="}}",i=!0):0===t.indexOf("",i=!0):0===t.indexOf("<%")&&(n="%>",i=!0)),r=this.input.charAt(this.pos),this.pos++;return t},this.get_unformatted=function(t,n){if(n&&-1!==n.toLowerCase().indexOf(t))return"";var i="",r="",s=!0,a=e(t);do{if(this.pos>=this.input.length)return r;if(i=this.input.charAt(this.pos),this.pos++,this.Utils.in_array(i,this.Utils.whitespace)){if(!s){this.line_char_count--;continue}if("\n"===i||"\r"===i){r+="\n",this.line_char_count=0;continue}}r+=i,a.add(i),this.line_char_count++,s=!0,v&&"{"===i&&r.length&&"{"===r.charAt(r.length-2)&&(r+=this.get_unformatted("}}"))}while(a.doesNotMatch());return r},this.get_token=function(){var e;if("TK_TAG_SCRIPT"===this.last_token||"TK_TAG_STYLE"===this.last_token){var t=this.last_token.substr(7);return e=this.get_contents_to(t),"string"!=typeof e?e:[e,"TK_"+t]}if("CONTENT"===this.current_mode)return e=this.get_content(),"string"!=typeof e?e:[e,"TK_CONTENT"];if("TAG"===this.current_mode){if("string"!=typeof(e=this.get_tag()))return e;return[e,"TK_TAG_"+this.tag_type]}},this.get_full_indent=function(e){return e=this.indent_level+e||0,e<1?"":Array(e+1).join(this.indent_string)},this.is_unformatted=function(e,t){if(!this.Utils.in_array(e,t))return!1;if("a"!==e.toLowerCase()||!this.Utils.in_array("a",t))return!0;var n=this.get_tag(!0),i=(n||"").match(/^\s*<\s*\/?([a-z]*)\s*[^>]*>\s*$/);return!(i&&!this.Utils.in_array(i[1],t))},this.printer=function(e,t,n,s,a){this.input=e||"",this.input=this.input.replace(/\r\n|[\r\u2028\u2029]/g,"\n"),this.output=[],this.indent_character=t,this.indent_string="",this.indent_size=n,this.brace_style=a,this.indent_level=0,this.wrap_line_length=s,this.line_char_count=0;for(var _=0;_0&&(e=r(e)),e&&""!==e&&(e.length>1&&"\n"===e.charAt(e.length-1)?(this.output.push(e.slice(0,-1)),this.print_newline(!1,this.output)):this.output.push(e));for(var t=0;t0,this.output);this.newlines=0},this.indent=function(){this.indent_level++},this.unindent=function(){this.indent_level>0&&this.indent_level--}},this}e=e||"";var c,h,u,p,f,d,T,E,x,m,g,b,v,w,K,R,k,y,O,S,A;t=t||{},t=a(t,"html"),void 0!==t.wrap_line_length&&0!==parseInt(t.wrap_line_length,10)||void 0===t.max_char||0===parseInt(t.max_char,10)||(t.wrap_line_length=t.max_char),h=void 0!==t.indent_inner_html&&t.indent_inner_html,u=void 0===t.indent_body_inner_html||t.indent_body_inner_html,p=void 0===t.indent_head_inner_html||t.indent_head_inner_html,f=void 0===t.indent_size?4:parseInt(t.indent_size,10),d=void 0===t.indent_char?" ":t.indent_char,E=void 0===t.brace_style?"collapse":t.brace_style,T=0===parseInt(t.wrap_line_length,10)?32786:parseInt(t.wrap_line_length||250,10),x=t.unformatted||["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","address","big","dt","ins","strike","tt"],m=t.content_unformatted||["pre"],g=void 0===t.preserve_newlines||t.preserve_newlines,b=g?isNaN(parseInt(t.max_preserve_newlines,10))?32786:parseInt(t.max_preserve_newlines,10):0,v=void 0!==t.indent_handlebars&&t.indent_handlebars,w=void 0===t.wrap_attributes?"auto":t.wrap_attributes,K=isNaN(parseInt(t.wrap_attributes_indent_size,10))?f:parseInt(t.wrap_attributes_indent_size,10),R="force"===w.substr(0,"force".length),k="force-expand-multiline"===w,y="force-aligned"===w,O=void 0!==t.end_with_newline&&t.end_with_newline,S="object"==typeof t.extra_liners&&t.extra_liners?t.extra_liners.concat():"string"==typeof t.extra_liners?t.extra_liners.split(","):"head,body,/html".split(","),A=t.eol?t.eol:"auto",t.indent_with_tabs&&(d="\t",f=1),"auto"===A&&(A="\n",e&&o.test(e||"")&&(A=e.match(o)[0])),A=A.replace(/\\r/,"\r").replace(/\\n/,"\n"),e=e.replace(l,"\n"),this.beautify=function(){for(c=new _,c.printer(e,d,f,T,E);;){var i=c.get_token();if(c.token_text=i[0],c.token_type=i[1],"TK_EOF"===c.token_type)break;switch(c.token_type){case"TK_TAG_START":c.print_newline(!1,c.output),c.print_token(c.token_text),c.indent_content&&(!c.indent_body_inner_html&&c.token_text.match(//)||!c.indent_head_inner_html&&c.token_text.match(//)||c.indent(),c.indent_content=!1),c.current_mode="CONTENT";break;case"TK_TAG_STYLE":case"TK_TAG_SCRIPT":c.print_newline(!1,c.output),c.print_token(c.token_text),c.current_mode="CONTENT";break;case"TK_TAG_END":if("TK_CONTENT"===c.last_token&&""===c.last_text){var r=(c.token_text.match(/\w+/)||[])[0],a=null;c.output.length&&(a=c.output[c.output.length-1].match(/(?:<|{{#)\s*(\w+)/)),(null===a||a[1]!==r&&!c.Utils.in_array(a[1],x))&&c.print_newline(!1,c.output)}c.print_token(c.token_text),c.current_mode="CONTENT";break;case"TK_TAG_SINGLE":var o=c.token_text.match(/^\s*<([a-z-]+)/i);o&&c.Utils.in_array(o[1],x)||c.print_newline(!1,c.output),c.print_token(c.token_text),c.current_mode="CONTENT";break;case"TK_TAG_HANDLEBARS_ELSE":for(var l=!1,h=c.output.length-1;h>=0&&"\n"!==c.output[h];h--)if(c.output[h].match(/{{#if/)){l=!0;break}l||c.print_newline(!1,c.output),c.print_token(c.token_text),c.indent_content&&(c.indent(),c.indent_content=!1),c.current_mode="CONTENT";break;case"TK_TAG_HANDLEBARS_COMMENT":case"TK_CONTENT":c.print_token(c.token_text),c.current_mode="TAG";break;case"TK_STYLE":case"TK_SCRIPT":if(""!==c.token_text){c.print_newline(!1,c.output);var u,p=c.token_text,m=1;"TK_SCRIPT"===c.token_type?u="function"==typeof n&&n:"TK_STYLE"===c.token_type&&(u="function"==typeof s&&s),"keep"===t.indent_scripts?m=0:"separate"===t.indent_scripts&&(m=-c.indent_level);var g=c.get_full_indent(m);if(u){var b=function(){this.eol="\n"};b.prototype=t;var v=new b;p=u(p.replace(/^\s*/,g),v)}else{var w=p.match(/^\s*/)[0],K=w.match(/[^\n\r]*$/)[0].split(c.indent_string).length-1,R=c.get_full_indent(m-K);p=p.replace(/^\s*/,g).replace(/\r\n|\r|\n/g,"\n"+R).replace(/\s+$/,"")}p&&(c.print_token_raw(p),c.print_newline(!0,c.output))}c.current_mode="TAG";break;default:""!==c.token_text&&c.print_token(c.token_text)}c.last_token=c.token_type,c.last_text=c.token_text}var k=c.output.join("").replace(/[\r\n\t ]+$/,"");return O&&(k+="\n"),"\n"!==A&&(k=k.replace(/[\n]/g,A)),k}}var a=n(2).mergeOpts,_=n(1),o=_.lineBreak,l=_.allLineBreaks;e.exports.Beautifier=s},function(e,t){var n="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",i=new RegExp("["+n+"]"),r=new RegExp("["+n+"̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‌‍‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]");t.newline=/[\n\r\u2028\u2029]/,t.lineBreak=new RegExp("\r\n|"+t.newline.source),t.allLineBreaks=new RegExp(t.lineBreak.source,"g"),t.isIdentifierStart=function(e){return e<65?36===e||64===e:e<91||(e<97?95===e:e<123||e>=170&&i.test(String.fromCharCode(e)))},t.isIdentifierChar=function(e){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||e>=170&&r.test(String.fromCharCode(e))))}},function(e,t){function n(e,t){var n,i={};for(n in e)n!==t&&(i[n]=e[n]);if(t in e)for(n in e[t])i[n]=e[t][n];return i}e.exports.mergeOpts=n},function(e,t,n){function i(e,t,n,i){return new r(e,t,n,i).beautify()}var r=n(0).Beautifier;e.exports=i}]),t=e;if("function"==typeof define&&define.amd)define("beautify-html.js",["require","./beautify","./beautify-css"],function(e){var n=e("./beautify"),i=e("./beautify-css");return{html_beautify:function(e,r){return t(e,r,n.js_beautify,i.css_beautify)}}});else if("undefined"!=typeof exports){var n=require("./beautify.js"),i=require("./beautify-css.js");exports.html_beautify=function(e,r){return t(e,r,n.js_beautify,i.css_beautify)}}else"undefined"!=typeof window?window.html_beautify=function(e,n){return t(e,n,window.js_beautify,window.css_beautify)}:"undefined"!=typeof global&&(global.html_beautify=function(e,n){return t(e,n,global.js_beautify,global.css_beautify)})}(),function(e){"function"==typeof e.define&&(e.define("beautify",["beautify.js"],function(e){return e}),e.define("beautify-css",[],function(){return{css_beautify:void 0}}),e.define("beautifyModule",["beautify","beautify-html.js"],function(t,n){e.js_beautify=t.js_beautify,e.html_beautify=n.html_beautify}))}(this); \ No newline at end of file diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/js/codemirror.addons.min.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/js/codemirror.addons.min.js old mode 100644 new mode 100755 index 3601515..d6e29fa --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/js/codemirror.addons.min.js +++ b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/js/codemirror.addons.min.js @@ -1 +1,2 @@ -(function(n){typeof exports=="object"&&typeof module=="object"?n(require("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)})(function(n){function r(n,t){return t=="pairs"&&typeof n=="string"?n:typeof n=="object"&&n[t]!=null?n[t]:o[t]}function h(n){return function(t){return a(t,n)}}function e(n){var t=n.state.closeBrackets,i;return t?(i=n.getModeAt(n.getCursor()),i.closeBrackets||t):null}function c(i){var c=e(i),l,f,h,u,o;if(!c||i.getOption("disableInput"))return n.Pass;for(l=r(c,"pairs"),f=i.listSelections(),u=0;u=0;u--)o=f[u].head,i.replaceRange("",t(o.line,o.ch-1),t(o.line,o.ch+1))}function l(t){var o=e(t),h=o&&r(o,"explode"),i,u,f;if(!h||t.getOption("disableInput"))return n.Pass;for(i=t.listSelections(),u=0;u=0&&i.getRange(f,t(f.line,f.ch+3))==u+u+u?"skipThree":"skip";else if(k&&f.ch>1&&g.indexOf(u)>=0&&i.getRange(t(f.line,f.ch-2),f)==u+u&&(f.ch<=2||i.getRange(t(f.line,f.ch-3),t(f.line,f.ch-2))!=u))c="addFour";else if(k)if(!n.isWordChar(a)&&y(i,f,u))c="both";else return n.Pass;else if(d&&(i.getLine(f.line).length==f.ch||v(a,l)||/\s/.test(a)))c="both";else return n.Pass;if(s){if(s!=c)return n.Pass}else s=c}h=o%2?l.charAt(o-1):u;w=o%2?u:l.charAt(o+1);i.operation(function(){var t,n;if(s=="skip")i.execCommand("goCharRight");else if(s=="skipThree")for(n=0;n<3;n++)i.execCommand("goCharRight");else if(s=="surround"){for(t=i.getSelections(),n=0;n-1&&i%2==1}function s(n,i){var r=n.getRange(t(i.line,i.ch-1),t(i.line,i.ch+1));return r.length==2?r:null}function y(t,i,r){var e=t.getLine(i.line),f=t.getTokenAt(i),u,o;if(/\bstring2?\b/.test(f.type))return!1;for(u=new n.StringStream(e.slice(0,i.ch)+r+e.slice(i.ch),4),u.pos=u.start=f.start;;){if(o=t.getMode().token(u,f.state),u.pos>=i.ch+1)return/\bstring2?\b/.test(o);u.start=u.pos}}var o={pairs:"()[]{}''\"\"",triples:"",explode:"[]{}"},t=n.Pos,u,f,i;for(n.defineOption("autoCloseBrackets",!1,function(t,i,r){r&&r!=n.Init&&(t.removeKeyMap(f),t.state.closeBrackets=null);i&&(t.state.closeBrackets=i,t.addKeyMap(f))}),u=o.pairs+"`",f={Backspace:c,Enter:l},i=0;is.ch&&(c=c.slice(0,c.length-o.end+s.ch)),b=c.toLowerCase(),!c||o.type=="string"&&(o.end!=s.ch||!/[\"\']/.test(o.string.charAt(o.string.length-1))||o.string.length==1)||o.type=="tag"&&a.type=="closeTag"||o.string.indexOf("/")==o.string.length-1||g&&i(g,b)>-1||r(t,c,s,a,!0))return n.Pass;y=nt&&i(nt,b)>-1;p[e]={indent:y,text:">"+(y?"\n\n":"")+"<\/"+c+">",newPos:y?n.Pos(s.line+1,0):n.Pos(s.line,s.ch+1)}}for(e=h.length-1;e>=0;e--)l=p[e],t.replaceRange(l.text,h[e].head,h[e].anchor,"+insert"),k=t.listSelections().slice(0),k[e]={head:l.newPos,anchor:l.newPos},t.setSelections(k),l.indent&&(t.indentLine(l.newPos.line,null,!0),t.indentLine(l.newPos.line+1,null,!0))}function t(t,i){for(var f=t.listSelections(),o=[],c=i?"/":"<\/",u=0;u";else if(t.getMode().name=="htmlmixed"&&h.mode.name=="css")o[u]=c+"style>";else return n.Pass;else{if(!e.context||!e.context.tagName||r(t,e.context.tagName,l,e))return n.Pass;o[u]=c+e.context.tagName+">"}}for(t.replaceSelections(o),f=t.listSelections(),u=0;u'"]=function(n){return e(n)});t.addKeyMap(u)}});var u=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],f=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];n.commands.closeTag=function(n){return t(n)}}),function(n){typeof exports=="object"&&typeof module=="object"?n(require("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}(function(n){function r(t){var o,i,v,h,s,f,y,r,l,c,p,a,e;if(t.getOption("disableInput"))return n.Pass;for(o=t.listSelections(),v=[],h=0;h=l))if(f.string.indexOf(i.blockCommentStart)==0){if(r=c.slice(0,f.start),!/^\s*$/.test(r))for(r="",p=0;pf.start&&/^\s*$/.test(c.slice(0,e))&&(r=c.slice(0,e));r!=null&&(r+=i.blockCommentContinue)}if(r==null&&i.lineComment&&u(t)&&(a=t.getLine(s.line),e=a.indexOf(i.lineComment),e>-1&&(r=a.slice(0,e),/\S/.test(r)?r=null:r+=i.lineComment+a.slice(e+i.lineComment.length).match(/^\s*/)[0])),r==null)return n.Pass;v[h]="\n"+r}t.operation(function(){for(var n=o.length-1;n>=0;n--)t.replaceRange(v[n],o[n].from(),o[n].to(),"+insert")})}function u(n){var t=n.getOption("continueComments");return t&&typeof t=="object"?t.continueLineComment!==!1:!0}for(var i=["clike","css","javascript"],t=0;t=0&&r[l.text.charAt(o)]||r[l.text.charAt(++o)],h,a,s;return c?(h=c.charAt(1)==">"?1:-1,u&&h>0!=(o==i.ch))?null:(a=n.getTokenTypeAt(t(i.line,o+1)),s=f(n,t(i.line,o+(h>0?1:0)),h,a||null,e),s==null)?null:{from:t(i.line,o),to:s&&s.pos,match:s&&s.ch==c.charAt(0),forward:h>0}:null}function f(n,i,u,f,e){for(var h,s,v,c,y,p=e&&e.maxScanLineLength||1e4,a=e&&e.maxScanLines||1e3,l=[],w=e&&e.bracketRegex?e.bracketRegex:/[(){}[\]]/,b=u>0?Math.min(i.line+a,n.lastLine()+1):Math.max(n.firstLine()-1,i.line-a),o=i.line;o!=b;o+=u)if((h=n.getLine(o),h)&&(s=u>0?0:h.length-1,v=u>0?h.length:-1,!(h.length>p)))for(o==i.line&&(s=i.ch-(u<0?1:0));s!=v;s+=u)if(c=h.charAt(s),w.test(c)&&(f===undefined||n.getTokenTypeAt(t(o,s+1))==f))if(y=r[c],y.charAt(1)==">"==u>0)l.push(c);else if(l.length)l.pop();else return{pos:t(o,s),ch:c};return o-u==(u>0?n.lastLine():n.firstLine())?!1:null}function e(n,i,r){for(var f,c,l,a=n.state.matchBrackets.maxHighlightLineLength||1e3,e=[],h=n.listSelections(),o=0;o",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<"},i=null;n.defineOption("matchBrackets",!1,function(t,i,r){if(r&&r!=n.Init&&t.off("cursorActivity",o),i){t.state.matchBrackets=typeof i=="object"?i:{};t.on("cursorActivity",o)}});n.defineExtension("matchBrackets",function(){e(this,!0)});n.defineExtension("findMatchingBracket",function(n,t,i){return u(this,n,t,i)});n.defineExtension("scanForBracket",function(n,t,i,r){return f(this,n,t,i,r)})}),function(n){typeof exports=="object"&&typeof module=="object"?n(require("../../lib/codemirror"),require("../fold/xml-fold")):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../fold/xml-fold"],n):n(CodeMirror)}(function(n){"use strict";function i(n){n.state.tagHit&&n.state.tagHit.clear();n.state.tagOther&&n.state.tagOther.clear();n.state.tagHit=n.state.tagOther=null}function t(t){t.state.failedTagMatch=!1;t.operation(function(){var f,u,r,e,o;(i(t),t.somethingSelected())||(f=t.getCursor(),u=t.getViewport(),u.from=Math.min(u.from,f.line),u.to=Math.max(f.line+1,u.to),r=n.findMatchingTag(t,f,u),r)&&(t.state.matchBothTags&&(e=r.at=="open"?r.open:r.close,e&&(t.state.tagHit=t.markText(e.from,e.to,{className:"CodeMirror-matchingtag"}))),o=r.at=="close"?r.open:r.close,o?t.state.tagOther=t.markText(o.from,o.to,{className:"CodeMirror-matchingtag"}):t.state.failedTagMatch=!0)})}function r(n){n.state.failedTagMatch&&t(n)}n.defineOption("matchTags",!1,function(u,f,e){if(e&&e!=n.Init&&(u.off("cursorActivity",t),u.off("viewportChange",r),i(u)),f){u.state.matchBothTags=typeof f=="object"&&f.bothTags;u.on("cursorActivity",t);u.on("viewportChange",r);t(u)}});n.commands.toMatchingTag=function(t){var i=n.findMatchingTag(t,t.getCursor()),r;i&&(r=i.at=="close"?i.open:i.close,r&&t.extendSelection(r.to,r.from))}}),function(n){typeof exports=="object"&&typeof module=="object"?n(require("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}(function(n){n.defineOption("showTrailingSpace",!1,function(t,i,r){r==n.Init&&(r=!1);r&&!i?t.removeOverlay("trailingspace"):!r&&i&&t.addOverlay({token:function(n){for(var i=n.string.length,t=i;t&&/\s/.test(n.string.charAt(t-1));--t);return t>n.pos?(n.pos=t,null):(n.pos=i,"trailingspace")},name:"trailingspace"})})}),function(n){typeof exports=="object"&&typeof module=="object"?n(require("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}(function(n){"use strict";function i(i,u,f,e){function a(n){var t=s(i,u),f,r;if(!t||t.to.line-t.from.linei.firstLine())u=n.Pos(u.line-1,0),o=a(!1);if(o&&!o.cleared&&e!=="unfold"){h=r(i,f);n.on(h,"mousedown",function(t){c.clear();n.e_preventDefault(t)});c=i.markText(o.from,o.to,{replacedWith:h,clearOnEnter:!0,__isFold:!0});c.on("clear",function(t,r){n.signal(i,"unfold",i,t,r)});n.signal(i,"fold",i,o.from,o.to)}}function r(n,i){var r=t(n,i,"widget"),u;return typeof r=="string"&&(u=document.createTextNode(r),r=document.createElement("span"),r.appendChild(u),r.className="CodeMirror-foldmarker"),r}function t(n,t,i){if(t&&t[i]!==undefined)return t[i];var r=n.options.foldOptions;return r&&r[i]!==undefined?r[i]:u[i]}n.newFoldFunction=function(n,t){return function(r,u){i(r,u,{rangeFinder:n,widget:t})}};n.defineExtension("foldCode",function(n,t,r){i(this,n,t,r)});n.defineExtension("isFolded",function(n){for(var i=this.findMarksAt(n),t=0;t=h&&(c=e(r.indicatorOpen)));n.setGutterMarker(t,r.gutter,c);++o})}function t(n){var t=n.getViewport(),r=n.state.foldGutter;r&&(n.operation(function(){i(n,t.from,t.to)}),r.from=t.from,r.to=t.to)}function o(n,t,i){var o=n.state.foldGutter,r,e;o&&(r=o.options,i==r.gutter)&&(e=f(n,t),e?e.clear():n.foldCode(u(t,0),r.rangeFinder))}function s(n){var i=n.state.foldGutter,r;i&&(r=i.options,i.from=i.to=0,clearTimeout(i.changeUpdate),i.changeUpdate=setTimeout(function(){t(n)},r.foldOnChangeTimeSpan||600))}function h(n){var r=n.state.foldGutter,u;r&&(u=r.options,clearTimeout(r.changeUpdate),r.changeUpdate=setTimeout(function(){var u=n.getViewport();r.from==r.to||u.from-r.to>20||r.from-u.to>20?t(n):n.operation(function(){u.fromr.to&&(i(n,r.to,u.to),r.to=u.to)})},u.updateViewportTimeSpan||400))}function r(n,t){var u=n.state.foldGutter,r;u&&(r=t.line,r>=u.from&&rt.lastLine()||(r=t.getTokenAt(n.Pos(i,1)),/\S/.test(r.string)||(r=t.getTokenAt(n.Pos(i,r.end+1))),r.type!="keyword"||r.string!="import"))return null;for(u=i,e=Math.min(t.lastLine(),i+10);u<=e;++u)if(o=t.getLine(u),f=o.indexOf(";"),f!=-1)return{startCh:r.end,end:n.Pos(u,f)}}var i=i.line,f=r(i),o,u,e;if(!f||r(i-1)||(o=r(i-2))&&o.end.line==i-1)return null;for(u=f.end;;){if(e=r(u.line+1),e==null)break;u=e.end}return{from:t.clipPos(n.Pos(i,f.startCh+1)),to:u}});n.registerHelper("fold","include",function(t,i){function u(i){if(it.lastLine())return null;var r=t.getTokenAt(n.Pos(i,1));return/\S/.test(r.string)||(r=t.getTokenAt(n.Pos(i,r.end+1))),r.type=="meta"&&r.string.slice(0,8)=="#include"?r.start+8:void 0}var i=i.line,f=u(i),r,e;if(f==null||u(i-1)!=null)return null;for(r=i;;){if(e=u(r+1),e==null)break;++r}return{from:n.Pos(i,f+1),to:t.clipPos(n.Pos(r))}})}),function(n){typeof exports=="object"&&typeof module=="object"?n(require("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}(function(n){"use strict";n.registerGlobalHelper("fold","comment",function(n){return n.blockCommentStart&&n.blockCommentEnd},function(t,i){var k=t.getModeAt(i),c=k.blockCommentStart,d=k.blockCommentEnd,u,p,l,s,a,f,w,g,v,b,e,o,r,h,y;if(c&&d){for(u=i.line,p=t.getLine(u),s=i.ch,a=0;;){if(f=s<=0?-1:p.lastIndexOf(c,s-1),f==-1){if(a==1)return;a=1;s=p.length;continue}if(a==1&&fl)u=r;else if(/\S/.test(e))break;if(u)return{from:n.Pos(i.line,f.length),to:n.Pos(u,t.getLine(u).length)}}})}),function(n){typeof exports=="object"&&typeof module=="object"?n(require("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}(function(n){"use strict";function v(n,t){return n.line-t.line||n.ch-t.ch}function i(n,t,i,r){this.line=t;this.ch=i;this.cm=n;this.text=n.getLine(t);this.min=r?r.from:n.firstLine();this.max=r?r.to-1:n.lastLine()}function u(n,i){var r=n.cm.getTokenTypeAt(t(n.line,i));return r&&/\btag\b/.test(r)}function h(n){if(!(n.line>=n.max))return n.ch=0,n.text=n.cm.getLine(++n.line),!0}function c(n){if(!(n.line<=n.min))return n.text=n.cm.getLine(--n.line),n.ch=n.text.length,!0}function e(n){for(var t,i,r;;){if(t=n.text.indexOf(">",n.ch),t==-1)if(h(n))continue;else return;if(!u(n,t+1)){n.ch=t+1;continue}return i=n.text.lastIndexOf("/",t),r=i>-1&&!/\S/.test(n.text.slice(i+1,t)),n.ch=t+1,r?"selfClose":"regular"}}function o(n){for(var t,i;;){if(t=n.ch?n.text.lastIndexOf("<",n.ch-1):-1,t==-1)if(c(n))continue;else return;if(!u(n,t+1)){n.ch=t;continue}if(r.lastIndex=t,n.ch=t,i=r.exec(n.text),i&&i.index==t)return i}}function l(n){for(;;){r.lastIndex=n.ch;var t=r.exec(n.text);if(!t)if(h(n))continue;else return;if(!u(n,t.index+1)){n.ch=t.index+1;continue}return n.ch=t.index+t[0].length,t}}function p(n){for(var t,i,r;;){if(t=n.ch?n.text.lastIndexOf(">",n.ch-1):-1,t==-1)if(c(n))continue;else return;if(!u(n,t+1)){n.ch=t;continue}return i=n.text.lastIndexOf("/",t),r=i>-1&&!/\S/.test(n.text.slice(i+1,t)),n.ch=t+1,r?"selfClose":"regular"}}function f(n,i){for(var f=[],u;;){var r=l(n),o,s=n.line,h=n.ch-(r?r[0].length:0);if(!r||!(o=e(n)))return;if(o!="selfClose")if(r[1]){for(u=f.length-1;u>=0;--u)if(f[u]==r[2]){f.length=u;break}if(u<0&&(!i||i==r[2]))return{tag:r[2],from:t(s,h),to:t(n.line,n.ch)}}else f.push(r[2])}}function a(n,i){for(var f=[],e,u;;){if(e=p(n),!e)return;if(e=="selfClose"){o(n);continue}var s=n.line,h=n.ch,r=o(n);if(!r)return;if(r[1])f.push(r[2]);else{for(u=f.length-1;u>=0;--u)if(f[u]==r[2]){f.length=u;break}if(u<0&&(!i||i==r[2]))return{tag:r[2],from:t(n.line,n.ch),to:t(s,h)}}}}var t=n.Pos,s="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",y=s+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",r=new RegExp("<(/?)(["+s+"]["+y+"]*)","g");n.registerHelper("fold","xml",function(n,r){for(var u=new i(n,r.line,0),o,h,r,s;;){if(o=l(u),!o||u.line!=r.line||!(h=e(u)))return;if(!o[1]&&h!="selfClose")return r=t(u.line,u.ch),s=f(u,o[2]),s&&{from:r,to:s.from}}});n.findMatchingTag=function(n,r,u){var s=new i(n,r.line,r.ch,u),l;if(s.text.indexOf(">")!=-1||s.text.indexOf("<")!=-1){var c=e(s),y=c&&t(s.line,s.ch),h=c&&o(s);if(c&&h&&!(v(s,r)>0))return(l={from:t(s.line,s.ch),to:y,tag:h[2]},c=="selfClose")?{open:l,close:null,at:"open"}:h[1]?{open:a(s,h[2]),close:l,at:"close"}:(s=new i(n,y.line,y.ch,u),{open:l,close:f(s,h[2]),at:"open"})}};n.findEnclosingTag=function(n,t,r){for(var s=new i(n,t.line,t.ch,r),u,o,e;;){if(u=a(s),!u)break;if(o=new i(n,t.line,t.ch,r),e=f(o,u.tag),e)return{open:u,close:e}}};n.scanForClosingTag=function(n,t,r,u){var e=new i(n,t.line,t.ch,u?{from:0,to:u}:null);return f(e,r)}}),function(){CodeMirror.defineExtension("autoFormatAll",function(n,t){function v(){h+="\n";f=!0;++a}for(var i,r=this,u=r.getMode(),o=r.getRange(n,t).split("\n"),s=CodeMirror.copyState(u,r.getTokenAt(n).state),y=r.getOption("tabSize"),h="",a=0,f=n.ch==0,e=0;er&&(f+=e(t.substring(r,u[i].start)),r=u[i].start),u[i].start<=r&&u[i].end>=r&&(f+=t.substring(r,u[i].end),r=u[i].end);r",noBreak:!1,noBreakEmpty:null,tagType:"",tagName:"",isXML:!1,newlineAfterToken:function(n,t,i){var o="a|b|bdi|bdo|big|center|cite|del|em|font|i|img|ins|s|small|span|strike|strong|sub|sup|u",e="label|li|option|textarea|title|"+o,f=!1,r=null,u="",s;if(this.isXML=this.configuration=="xml"?!0:!1,n=="comment"||/"))}else{if(G.match("DOCTYPE",true,true)){G.eatWhile(/[\w\._\-]/);return D(A(1))}else{return null}}}}else{if(G.eat("?")){G.eatWhile(/[\w\._\-]/);F.tokenize=x("meta","?>");return"meta"}else{g=G.eat("/")?"closeTag":"openTag";F.tokenize=o;return"tag bracket"}}}else{if(E=="&"){var C;if(G.eat("#")){if(G.eat("x")){C=G.eatWhile(/[a-fA-F\d]/)&&G.eat(";")}else{C=G.eatWhile(/[\d]/)&&G.eat(";")}}else{C=G.eatWhile(/[\w\.\-:]/)&&G.eat(";")}return C?"atom":"error"}else{G.eatWhile(/[^&<]/);return null}}}p.isInText=true;function o(F,E){var D=F.next();if(D==">"||(D=="/"&&F.eat(">"))){E.tokenize=p;g=D==">"?"endTag":"selfcloseTag";return"tag bracket"}else{if(D=="="){g="equals";return null}else{if(D=="<"){E.tokenize=p;E.state=n;E.tagName=E.tagStart=null;var C=E.tokenize(F,E);return C?C+" tag error":"tag error"}else{if(/[\'\"]/.test(D)){E.tokenize=k(D);E.stringStartCol=F.column();return E.tokenize(F,E)}else{F.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/);return"word"}}}}}function k(C){var D=function(F,E){while(!F.eol()){if(F.next()==C){E.tokenize=o;break}}return"string"};D.isInAttribute=true;return D}function x(D,C){return function(F,E){while(!F.eol()){if(F.match(C)){E.tokenize=p;break}F.next()}return D}}function A(C){return function(F,E){var D;while((D=F.next())!=null){if(D=="<"){E.tokenize=A(C+1);return E.tokenize(F,E)}else{if(D==">"){if(C==1){E.tokenize=p;break}else{E.tokenize=A(C-1);return E.tokenize(F,E)}}}}return"meta"}}function t(D,C,E){this.prev=D.context;this.tagName=C;this.indent=D.indented;this.startOfLine=E;if(z.doNotIndent.hasOwnProperty(C)||(D.context&&D.context.noIndent)){this.noIndent=true}}function w(C){if(C.context){C.context=C.context.prev}}function s(E,D){var C;while(true){if(!E.context){return}C=E.context.tagName;if(!z.contextGrabbers.hasOwnProperty(C)||!z.contextGrabbers[C].hasOwnProperty(D)){return}w(E)}}function n(C,E,D){if(C=="openTag"){D.tagStart=E.column();return d}else{if(C=="closeTag"){return v}else{return n}}}function d(C,E,D){if(C=="word"){D.tagName=E.current();h="tag";return e}else{if(z.allowMissingTagName&&C=="endTag"){h="tag bracket";return e(C,E,D)}else{h="error";return d}}}function v(D,F,E){if(D=="word"){var C=F.current();if(E.context&&E.context.tagName!=C&&z.implicitlyClosed.hasOwnProperty(E.context.tagName)){w(E)}if((E.context&&E.context.tagName==C)||z.matchClosing===false){h="tag";return u}else{h="tag error";return B}}else{if(z.allowMissingTagName&&D=="endTag"){h="tag bracket";return u(D,F,E)}else{h="error";return B}}}function u(D,C,E){if(D!="endTag"){h="error";return u}w(E);return n}function B(C,E,D){h="error";return u(C,E,D)}function e(F,D,G){if(F=="word"){h="attribute";return j}else{if(F=="endTag"||F=="selfcloseTag"){var E=G.tagName,C=G.tagStart;G.tagName=G.tagStart=null;if(F=="selfcloseTag"||z.autoSelfClosers.hasOwnProperty(E)){s(G,E)}else{s(G,E);G.context=new t(G,E,C==G.indented)}return n}}h="error";return e}function j(C,E,D){if(C=="equals"){return q}if(!z.allowMissing){h="error"}return e(C,E,D)}function q(C,E,D){if(C=="string"){return i}if(C=="word"&&z.allowUnquoted){h="string";return e}h="error";return e(C,E,D)}function i(C,E,D){if(C=="string"){return i}return e(C,E,D)}return{startState:function(C){var D={tokenize:p,state:n,indented:C||0,tagName:null,tagStart:null,context:null};if(C!=null){D.baseIndent=C}return D},token:function(E,D){if(!D.tagName&&E.sol()){D.indented=E.indentation()}if(E.eatSpace()){return null}g=null;var C=D.tokenize(E,D);if((C||g)&&C!="comment"){h=null;D.state=D.state(g||C,E,D);if(h){C=h=="error"?C+" error":h}}return C},indent:function(H,D,G){var F=H.context;if(H.tokenize.isInAttribute){if(H.tagStart==H.indented){return H.stringStartCol+1}else{return H.indented+r}}if(F&&F.noIndent){return a.Pass}if(H.tokenize!=o&&H.tokenize!=p){return G?G.match(/^(\s*)/)[0].length:0}if(H.tagName){if(z.multilineTagIndentPastTag!==false){return H.tagStart+H.tagName.length+2}else{return H.tagStart+r*(z.multilineTagIndentFactor||1)}}if(z.alignCDATA&&/$/,blockCommentStart:"",configuration:z.htmlMode?"html":"xml",helperType:z.htmlMode?"html":"xml",skipAttribute:function(C){if(C.state==q){C.state=e}}}});a.defineMIME("text/xml","xml");a.defineMIME("application/xml","xml");if(!a.mimeModes.hasOwnProperty("text/html")){a.defineMIME("text/html",{name:"xml",htmlMode:true})}});(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(a){a.defineMode("javascript",function(ao,aA){var p=ao.indentUnit;var F=aA.statementIndent;var aT=aA.jsonld;var E=aA.json||aT;var h=aA.typescript;var aL=aA.wordCharacters||/[\w$\xa1-\uffff]/;var aJ=function(){function a7(bb){return{type:bb,style:"keyword"}}var a4=a7("keyword a"),ba=a7("keyword b"),a9=a7("keyword c"),a8=a7("keyword d");var a5=a7("operator"),a6={type:"atom",style:"atom"};return{"if":a7("if"),"while":a4,"with":a4,"else":ba,"do":ba,"try":ba,"finally":ba,"return":a8,"break":a8,"continue":a8,"new":a7("new"),"delete":a9,"void":a9,"throw":a9,"debugger":a7("debugger"),"var":a7("var"),"const":a7("var"),let:a7("var"),"function":a7("function"),"catch":a7("catch"),"for":a7("for"),"switch":a7("switch"),"case":a7("case"),"default":a7("default"),"in":a5,"typeof":a5,"instanceof":a5,"true":a6,"false":a6,"null":a6,"undefined":a6,"NaN":a6,"Infinity":a6,"this":a7("this"),"class":a7("class"),"super":a7("atom"),yield:a9,"export":a7("export"),"import":a7("import"),"extends":a9,await:a9}}();var Z=/[+\-*&%=<>!?|~^@]/;var aI=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function K(a7){var a5=false,a4,a6=false;while((a4=a7.next())!=null){if(!a5){if(a4=="/"&&!a6){return}if(a4=="["){a6=true}else{if(a6&&a4=="]"){a6=false}}}a5=!a5&&a4=="\\"}}var ae,L;function T(a6,a5,a4){ae=a6;L=a4;return a5}function ag(a8,a6){var a4=a8.next();if(a4=='"'||a4=="'"){a6.tokenize=ad(a4);return a6.tokenize(a8,a6)}else{if(a4=="."&&a8.match(/^\d+(?:[eE][+\-]?\d+)?/)){return T("number","number")}else{if(a4=="."&&a8.match("..")){return T("spread","meta")}else{if(/[\[\]{}\(\),;\:\.]/.test(a4)){return T(a4)}else{if(a4=="="&&a8.eat(">")){return T("=>","operator")}else{if(a4=="0"&&a8.match(/^(?:x[\da-f]+|o[0-7]+|b[01]+)n?/i)){return T("number","number")}else{if(/\d/.test(a4)){a8.match(/^\d*(?:n|(?:\.\d*)?(?:[eE][+\-]?\d+)?)?/);return T("number","number")}else{if(a4=="/"){if(a8.eat("*")){a6.tokenize=aS;return aS(a8,a6)}else{if(a8.eat("/")){a8.skipToEnd();return T("comment","comment")}else{if(a1(a8,a6,1)){K(a8);a8.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/);return T("regexp","string-2")}else{a8.eat("=");return T("operator","operator",a8.current())}}}}else{if(a4=="`"){a6.tokenize=aV;return aV(a8,a6)}else{if(a4=="#"){a8.skipToEnd();return T("error","error")}else{if(Z.test(a4)){if(a4!=">"||!a6.lexical||a6.lexical.type!=">"){if(a8.eat("=")){if(a4=="!"||a4=="="){a8.eat("=")}}else{if(/[<>*+\-]/.test(a4)){a8.eat(a4);if(a4==">"){a8.eat(a4)}}}}return T("operator","operator",a8.current())}else{if(aL.test(a4)){a8.eatWhile(aL);var a7=a8.current();if(a6.lastType!="."){if(aJ.propertyIsEnumerable(a7)){var a5=aJ[a7];return T(a5.type,a5.style,a7)}if(a7=="async"&&a8.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,false)){return T("async","keyword",a7)}}return T("variable","variable",a7)}}}}}}}}}}}}}function ad(a4){return function(a8,a6){var a7=false,a5;if(aT&&a8.peek()=="@"&&a8.match(aI)){a6.tokenize=ag;return T("jsonld-keyword","meta")}while((a5=a8.next())!=null){if(a5==a4&&!a7){break}a7=!a7&&a5=="\\"}if(!a7){a6.tokenize=ag}return T("string","string")}}function aS(a7,a6){var a4=false,a5;while(a5=a7.next()){if(a5=="/"&&a4){a6.tokenize=ag;break}a4=(a5=="*")}return T("comment","comment")}function aV(a7,a5){var a6=false,a4;while((a4=a7.next())!=null){if(!a6&&(a4=="`"||a4=="$"&&a7.eat("{"))){a5.tokenize=ag;break}a6=!a6&&a4=="\\"}return T("quasi","string-2",a7.current())}var q="([{}])";function aP(bc,a6){if(a6.fatArrowAt){a6.fatArrowAt=null}var bb=bc.string.indexOf("=>",bc.start);if(bb<0){return}if(h){var a8=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(bc.string.slice(bc.start,bb));if(a8){bb=a8.index}}var a9=0,a7=false;for(var ba=bb-1;ba>=0;--ba){var a4=bc.string.charAt(ba);var a5=q.indexOf(a4);if(a5>=0&&a5<3){if(!a9){++ba;break}if(--a9==0){if(a4=="("){a7=true}break}}else{if(a5>=3&&a5<6){++a9}else{if(aL.test(a4)){a7=true}else{if(/["'\/]/.test(a4)){return}else{if(a7&&!a9){++ba;break}}}}}}if(a7&&!a9){a6.fatArrowAt=ba}}var b={atom:true,number:true,variable:true,string:true,regexp:true,"this":true,"jsonld-keyword":true};function R(a9,a5,a4,a8,a6,a7){this.indented=a9;this.column=a5;this.type=a4;this.prev=a6;this.info=a7;if(a8!=null){this.align=a8}}function x(a7,a6){for(var a5=a7.localVars;a5;a5=a5.next){if(a5.name==a6){return true}}for(var a4=a7.context;a4;a4=a4.prev){for(var a5=a4.vars;a5;a5=a5.next){if(a5.name==a6){return true}}}}function g(a8,a5,a4,a7,a9){var ba=a8.cc;J.state=a8;J.stream=a9;J.marked=null,J.cc=ba;J.style=a5;if(!a8.lexical.hasOwnProperty("align")){a8.lexical.align=true}while(true){var a6=ba.length?ba.pop():E?aE:aZ;if(a6(a4,a7)){while(ba.length&&ba[ba.length-1].lex){ba.pop()()}if(J.marked){return J.marked}if(a4=="variable"&&x(a8,a7)){return"variable-2"}return a5}}}var J={state:null,column:null,marked:null,cc:null};function ap(){for(var a4=arguments.length-1;a4>=0;a4--){J.cc.push(arguments[a4])}}function av(){ap.apply(null,arguments);return true}function f(a5,a6){for(var a4=a6;a4;a4=a4.next){if(a4.name==a5){return true}}return false}function aO(a4){var a5=J.state;J.marked="def";if(a5.context){if(a5.lexical.info=="var"&&a5.context&&a5.context.block){var a6=aN(a4,a5.context);if(a6!=null){a5.context=a6;return}}else{if(!f(a4,a5.localVars)){a5.localVars=new a0(a4,a5.localVars);return}}}if(aA.globalVars&&!f(a4,a5.globalVars)){a5.globalVars=new a0(a4,a5.globalVars)}}function aN(a5,a6){if(!a6){return null}else{if(a6.block){var a4=aN(a5,a6.prev);if(!a4){return null}if(a4==a6.prev){return a6}return new Q(a4,a6.vars,true)}else{if(f(a5,a6.vars)){return a6}else{return new Q(a6.prev,new a0(a5,a6.vars),false)}}}}function aB(a4){return a4=="public"||a4=="private"||a4=="protected"||a4=="abstract"||a4=="readonly"}function Q(a4,a5,a6){this.prev=a4;this.vars=a5;this.block=a6}function a0(a4,a5){this.name=a4;this.next=a5}var v=new a0("this",new a0("arguments",null));function B(){J.state.context=new Q(J.state.context,J.state.localVars,false);J.state.localVars=v}function am(){J.state.context=new Q(J.state.context,J.state.localVars,true);J.state.localVars=null}function C(){J.state.localVars=J.state.context.vars;J.state.context=J.state.context.prev}C.lex=true;function aX(a5,a6){var a4=function(){var a9=J.state,a7=a9.indented;if(a9.lexical.type=="stat"){a7=a9.lexical.indented}else{for(var a8=a9.lexical;a8&&a8.type==")"&&a8.align;a8=a8.prev){a7=a8.indented}}a9.lexical=new R(a7,J.stream.column(),a5,null,a9.lexical,a6)};a4.lex=true;return a4}function i(){var a4=J.state;if(a4.lexical.prev){if(a4.lexical.type==")"){a4.indented=a4.lexical.indented}a4.lexical=a4.lexical.prev}}i.lex=true;function w(a4){function a5(a6){if(a6==a4){return av()}else{if(a4==";"||a6=="}"||a6==")"||a6=="]"){return ap()}else{return av(a5)}}}return a5}function aZ(a4,a5){if(a4=="var"){return av(aX("vardef",a5),c,w(";"),i)}if(a4=="keyword a"){return av(aX("form"),aF,aZ,i)}if(a4=="keyword b"){return av(aX("form"),aZ,i)}if(a4=="keyword d"){return J.stream.match(/^\s*$/,false)?av():av(aX("stat"),az,w(";"),i)}if(a4=="debugger"){return av(w(";"))}if(a4=="{"){return av(aX("}"),am,D,i,C)}if(a4==";"){return av()}if(a4=="if"){if(J.state.lexical.info=="else"&&J.state.cc[J.state.cc.length-1]==i){J.state.cc.pop()()}return av(aX("form"),aF,aZ,i,d)}if(a4=="function"){return av(U)}if(a4=="for"){return av(aX("form"),z,aZ,i)}if(a4=="class"||(h&&a5=="interface")){J.marked="keyword";return av(aX("form"),aj,i)}if(a4=="variable"){if(h&&a5=="declare"){J.marked="keyword";return av(aZ)}else{if(h&&(a5=="module"||a5=="enum"||a5=="type")&&J.stream.match(/^\s*\w/,false)){J.marked="keyword";if(a5=="enum"){return av(aM)}else{if(a5=="type"){return av(k,w("operator"),k,w(";"))}else{return av(aX("form"),j,w("{"),aX("}"),D,i,i)}}}else{if(h&&a5=="namespace"){J.marked="keyword";return av(aX("form"),aE,D,i)}else{if(h&&a5=="abstract"){J.marked="keyword";return av(aZ)}else{return av(aX("stat"),a2)}}}}}if(a4=="switch"){return av(aX("form"),aF,w("{"),aX("}","switch"),am,D,i,i,C)}if(a4=="case"){return av(aE,w(":"))}if(a4=="default"){return av(w(":"))}if(a4=="catch"){return av(aX("form"),B,X,aZ,i,C)}if(a4=="export"){return av(aX("stat"),aY,i)}if(a4=="import"){return av(aX("stat"),aw,i)}if(a4=="async"){return av(aZ)}if(a5=="@"){return av(aE,aZ)}return ap(aX("stat"),aE,w(";"),i)}function X(a4){if(a4=="("){return av(au,w(")"))}}function aE(a4,a5){return an(a4,a5,false)}function aW(a4,a5){return an(a4,a5,true)}function aF(a4){if(a4!="("){return ap()}return av(aX(")"),aE,w(")"),i)}function an(a5,a6,a8){if(J.state.fatArrowAt==J.stream.start){var a4=a8?V:ak;if(a5=="("){return av(B,aX(")"),aK(au,")"),i,w("=>"),a4,C)}else{if(a5=="variable"){return ap(B,j,w("=>"),a4,C)}}}var a7=a8?l:ar;if(b.hasOwnProperty(a5)){return av(a7)}if(a5=="function"){return av(U,a7)}if(a5=="class"||(h&&a6=="interface")){J.marked="keyword";return av(aX("form"),O,i)}if(a5=="keyword c"||a5=="async"){return av(a8?aW:aE)}if(a5=="("){return av(aX(")"),az,w(")"),i,a7)}if(a5=="operator"||a5=="spread"){return av(a8?aW:aE)}if(a5=="["){return av(aX("]"),r,i,a7)}if(a5=="{"){return aQ(y,"}",null,a7)}if(a5=="quasi"){return ap(aa,a7)}if(a5=="new"){return av(N(a8))}if(a5=="import"){return av(aE)}return av()}function az(a4){if(a4.match(/[;\}\)\],]/)){return ap()}return ap(aE)}function ar(a4,a5){if(a4==","){return av(aE)}return l(a4,a5,false)}function l(a4,a6,a8){var a5=a8==false?ar:l;var a7=a8==false?aE:aW;if(a4=="=>"){return av(B,a8?V:ak,C)}if(a4=="operator"){if(/\+\+|--/.test(a6)||h&&a6=="!"){return av(a5)}if(h&&a6=="<"&&J.stream.match(/^([^>]|<.*?>)*>\s*\(/,false)){return av(aX(">"),aK(k,">"),i,a5)}if(a6=="?"){return av(aE,w(":"),a7)}return av(a7)}if(a4=="quasi"){return ap(aa,a5)}if(a4==";"){return}if(a4=="("){return aQ(aW,")","call",a5)}if(a4=="."){return av(aC,a5)}if(a4=="["){return av(aX("]"),az,w("]"),i,a5)}if(h&&a6=="as"){J.marked="keyword";return av(k,a5)}if(a4=="regexp"){J.state.lastType=J.marked="operator";J.stream.backUp(J.stream.pos-J.stream.start-1);return av(a7)}}function aa(a4,a5){if(a4!="quasi"){return ap()}if(a5.slice(a5.length-2)!="${"){return av(aa)}return av(aE,u)}function u(a4){if(a4=="}"){J.marked="string-2";J.state.tokenize=aV;return av(aa)}}function ak(a4){aP(J.stream,J.state);return ap(a4=="{"?aZ:aE)}function V(a4){aP(J.stream,J.state);return ap(a4=="{"?aZ:aW)}function N(a4){return function(a5){if(a5=="."){return av(a4?s:ai)}else{if(a5=="variable"&&h){return av(e,a4?l:ar)}else{return ap(a4?aW:aE)}}}}function ai(a4,a5){if(a5=="target"){J.marked="keyword";return av(ar)}}function s(a4,a5){if(a5=="target"){J.marked="keyword";return av(l)}}function a2(a4){if(a4==":"){return av(i,aZ)}return ap(ar,w(";"),i)}function aC(a4){if(a4=="variable"){J.marked="property";return av()}}function y(a5,a6){if(a5=="async"){J.marked="property";return av(y)}else{if(a5=="variable"||J.style=="keyword"){J.marked="property";if(a6=="get"||a6=="set"){return av(P)}var a4;if(h&&J.state.fatArrowAt==J.stream.start&&(a4=J.stream.match(/^\s*:\s*/,false))){J.state.fatArrowAt=J.stream.pos+a4[0].length}return av(S)}else{if(a5=="number"||a5=="string"){J.marked=aT?"property":(J.style+" property");return av(S)}else{if(a5=="jsonld-keyword"){return av(S)}else{if(h&&aB(a6)){J.marked="keyword";return av(y)}else{if(a5=="["){return av(aE,af,w("]"),S)}else{if(a5=="spread"){return av(aW,S)}else{if(a6=="*"){J.marked="keyword";return av(y)}else{if(a5==":"){return ap(S)}}}}}}}}}}function P(a4){if(a4!="variable"){return ap(S)}J.marked="property";return av(U)}function S(a4){if(a4==":"){return av(aW)}if(a4=="("){return ap(U)}}function aK(a7,a4,a5){function a6(a9,ba){if(a5?a5.indexOf(a9)>-1:a9==","){var a8=J.state.lexical;if(a8.info=="call"){a8.pos=(a8.pos||0)+1}return av(function(bb,bc){if(bb==a4||bc==a4){return ap()}return ap(a7)},a6)}if(a9==a4||ba==a4){return av()}return av(w(a4))}return function(a8,a9){if(a8==a4||a9==a4){return av()}return ap(a7,a6)}}function aQ(a7,a4,a6){for(var a5=3;a5"),k)}}function ac(a4){if(a4=="=>"){return av(k)}}function aD(a4,a5){if(a4=="variable"||J.style=="keyword"){J.marked="property";return av(aD)}else{if(a5=="?"){return av(aD)}else{if(a4==":"){return av(k)}else{if(a4=="["){return av(aE,af,w("]"),aD)}}}}}function aq(a4,a5){if(a4=="variable"&&J.stream.match(/^\s*[?:]/,false)||a5=="?"){return av(aq)}if(a4==":"){return av(k)}return ap(k)}function M(a4,a5){if(a5=="<"){return av(aX(">"),aK(k,">"),i,M)}if(a5=="|"||a4=="."||a5=="&"){return av(k)}if(a4=="["){return av(w("]"),M)}if(a5=="extends"||a5=="implements"){J.marked="keyword";return av(k)}}function e(a4,a5){if(a5=="<"){return av(aX(">"),aK(k,">"),i,M)}}function o(){return ap(k,ah)}function ah(a4,a5){if(a5=="="){return av(k)}}function c(a4,a5){if(a5=="enum"){J.marked="keyword";return av(aM)}return ap(j,af,at,al)}function j(a4,a5){if(h&&aB(a5)){J.marked="keyword";return av(j)}if(a4=="variable"){aO(a5);return av()}if(a4=="spread"){return av(j)}if(a4=="["){return aQ(j,"]")}if(a4=="{"){return aQ(aU,"}")}}function aU(a4,a5){if(a4=="variable"&&!J.stream.match(/^\s*:/,false)){aO(a5);return av(at)}if(a4=="variable"){J.marked="property"}if(a4=="spread"){return av(j)}if(a4=="}"){return ap()}return av(w(":"),j,at)}function at(a4,a5){if(a5=="="){return av(aW)}}function al(a4){if(a4==","){return av(c)}}function d(a4,a5){if(a4=="keyword b"&&a5=="else"){return av(aX("form","else"),aZ,i)}}function z(a4,a5){if(a5=="await"){return av(z)}if(a4=="("){return av(aX(")"),I,w(")"),i)}}function I(a4){if(a4=="var"){return av(c,w(";"),H)}if(a4==";"){return av(H)}if(a4=="variable"){return av(A)}return ap(aE,w(";"),H)}function A(a4,a5){if(a5=="in"||a5=="of"){J.marked="keyword";return av(aE)}return av(ar,H)}function H(a4,a5){if(a4==";"){return av(G)}if(a5=="in"||a5=="of"){J.marked="keyword";return av(aE)}return ap(aE,w(";"),G)}function G(a4){if(a4!=")"){av(aE)}}function U(a4,a5){if(a5=="*"){J.marked="keyword";return av(U)}if(a4=="variable"){aO(a5);return av(U)}if(a4=="("){return av(B,aX(")"),aK(au,")"),i,W,aZ,C)}if(h&&a5=="<"){return av(aX(">"),aK(o,">"),i,U)}}function au(a4,a5){if(a5=="@"){av(aE,au)}if(a4=="spread"){return av(au)}if(h&&aB(a5)){J.marked="keyword";return av(au)}return ap(j,af,at)}function O(a4,a5){if(a4=="variable"){return aj(a4,a5)}return Y(a4,a5)}function aj(a4,a5){if(a4=="variable"){aO(a5);return av(Y)}}function Y(a4,a5){if(a5=="<"){return av(aX(">"),aK(o,">"),i,Y)}if(a5=="extends"||a5=="implements"||(h&&a4==",")){if(a5=="implements"){J.marked="keyword"}return av(h?k:aE,Y)}if(a4=="{"){return av(aX("}"),t,i)}}function t(a4,a5){if(a4=="async"||(a4=="variable"&&(a5=="static"||a5=="get"||a5=="set"||(h&&aB(a5)))&&J.stream.match(/^\s+[\w$\xa1-\uffff]/,false))){J.marked="keyword";return av(t)}if(a4=="variable"||J.style=="keyword"){J.marked="property";return av(h?a3:U,t)}if(a4=="["){return av(aE,af,w("]"),h?a3:U,t)}if(a5=="*"){J.marked="keyword";return av(t)}if(a4==";"){return av(t)}if(a4=="}"){return av()}if(a5=="@"){return av(aE,t)}}function a3(a4,a5){if(a5=="?"){return av(a3)}if(a4==":"){return av(k,at)}if(a5=="="){return av(aW)}return ap(U)}function aY(a4,a5){if(a5=="*"){J.marked="keyword";return av(ay,w(";"))}if(a5=="default"){J.marked="keyword";return av(aE,w(";"))}if(a4=="{"){return av(aK(ax,"}"),ay,w(";"))}return ap(aZ)}function ax(a4,a5){if(a5=="as"){J.marked="keyword";return av(w("variable"))}if(a4=="variable"){return ap(aW,ax)}}function aw(a4){if(a4=="string"){return av()}if(a4=="("){return ap(aE)}return ap(aH,n,ay)}function aH(a4,a5){if(a4=="{"){return aQ(aH,"}")}if(a4=="variable"){aO(a5)}if(a5=="*"){J.marked="keyword"}return av(m)}function n(a4){if(a4==","){return av(aH,n)}}function m(a4,a5){if(a5=="as"){J.marked="keyword";return av(aH)}}function ay(a4,a5){if(a5=="from"){J.marked="keyword";return av(aE)}}function r(a4){if(a4=="]"){return av()}return ap(aK(aW,"]"))}function aM(){return ap(aX("form"),j,w("{"),aX("}"),aK(aR,"}"),i,i)}function aR(){return ap(j,at)}function aG(a5,a4){return a5.lastType=="operator"||a5.lastType==","||Z.test(a4.charAt(0))||/[,.]/.test(a4.charAt(0))}function a1(a6,a5,a4){return a5.tokenize==ag&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(a5.lastType)||(a5.lastType=="quasi"&&/\{\s*$/.test(a6.string.slice(0,a6.pos-(a4||0))))}return{startState:function(a5){var a4={tokenize:ag,lastType:"sof",cc:[],lexical:new R((a5||0)-p,0,"block",false),localVars:aA.localVars,context:aA.localVars&&new Q(null,null,false),indented:a5||0};if(aA.globalVars&&typeof aA.globalVars=="object"){a4.globalVars=aA.globalVars}return a4},token:function(a6,a5){if(a6.sol()){if(!a5.lexical.hasOwnProperty("align")){a5.lexical.align=false}a5.indented=a6.indentation();aP(a6,a5)}if(a5.tokenize!=aS&&a6.eatSpace()){return null}var a4=a5.tokenize(a6,a5);if(ae=="comment"){return a4}a5.lastType=ae=="operator"&&(L=="++"||L=="--")?"incdec":ae;return g(a5,a4,ae,L,a6)},indent:function(a4,a7){if(a4.tokenize==aS){return a.Pass}if(a4.tokenize!=ag){return 0}var bb=a7&&a7.charAt(0),bc=a4.lexical,ba;if(!/^\s*else\b/.test(a7)){for(var a6=a4.cc.length-1;a6>=0;--a6){var a8=a4.cc[a6];if(a8==i){bc=bc.prev}else{if(a8!=d){break}}}}while((bc.type=="stat"||bc.type=="form")&&(bb=="}"||((ba=a4.cc[a4.cc.length-1])&&(ba==ar||ba==l)&&!/^[,\.=+\-*:?[\(]/.test(a7)))){bc=bc.prev}if(F&&bc.type==")"&&bc.prev.type=="stat"){bc=bc.prev}var a9=bc.type,a5=bb==a9;if(a9=="vardef"){return bc.indented+(a4.lastType=="operator"||a4.lastType==","?bc.info.length+1:0)}else{if(a9=="form"&&bb=="{"){return bc.indented}else{if(a9=="form"){return bc.indented+p}else{if(a9=="stat"){return bc.indented+(aG(a4,a7)?F||p:0)}else{if(bc.info=="switch"&&!a5&&aA.doubleIndentSwitch!=false){return bc.indented+(/^(?:case|default)\b/.test(a7)?p:2*p)}else{if(bc.align){return bc.column+(a5?0:1)}else{return bc.indented+(a5?0:p)}}}}}}},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:E?null:"/*",blockCommentEnd:E?null:"*/",blockCommentContinue:E?null:" * ",lineComment:E?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:E?"json":"javascript",jsonldMode:aT,jsonMode:E,expressionAllowed:a1,skipExpression:function(a4){var a5=a4.cc[a4.cc.length-1];if(a5==aE||a5==aW){a4.cc.pop()}}}});a.registerHelper("wordChars","javascript",/[\w$]/);a.defineMIME("text/javascript","javascript");a.defineMIME("text/ecmascript","javascript");a.defineMIME("application/javascript","javascript");a.defineMIME("application/x-javascript","javascript");a.defineMIME("application/ecmascript","javascript");a.defineMIME("application/json",{name:"javascript",json:true});a.defineMIME("application/x-json",{name:"javascript",json:true});a.defineMIME("application/ld+json",{name:"javascript",jsonld:true});a.defineMIME("text/typescript",{name:"javascript",typescript:true});a.defineMIME("application/typescript",{name:"javascript",typescript:true})});(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(r){r.defineMode("css",function(Z,J){var D=J.inline;if(!J.propertyKeywords){J=r.resolveMode("text/css")}var Q=Z.indentUnit,A=J.tokenHooks,y=J.documentTypes||{},Y=J.mediaTypes||{},L=J.mediaFeatures||{},P=J.mediaValueKeywords||{},I=J.propertyKeywords||{},B=J.nonStandardPropertyKeywords||{},E=J.fontProperties||{},X=J.counterDescriptors||{},O=J.colorKeywords||{},T=J.valueKeywords||{},M=J.allowNested,S=J.lineComment,V=J.supportsAtComponent===true;var C,N;function aa(ad,ae){C=ae;return ad}function ac(ag,af){var ae=ag.next();if(A[ae]){var ad=A[ae](ag,af);if(ad!==false){return ad}}if(ae=="@"){ag.eatWhile(/[\w\\\-]/);return aa("def",ag.current())}else{if(ae=="="||(ae=="~"||ae=="|")&&ag.eat("=")){return aa(null,"compare")}else{if(ae=='"'||ae=="'"){af.tokenize=K(ae);return af.tokenize(ag,af)}else{if(ae=="#"){ag.eatWhile(/[\w\\\-]/);return aa("atom","hash")}else{if(ae=="!"){ag.match(/^\s*\w*/);return aa("keyword","important")}else{if(/\d/.test(ae)||ae=="."&&ag.eat(/\d/)){ag.eatWhile(/[\w.%]/);return aa("number","unit")}else{if(ae==="-"){if(/[\d.]/.test(ag.peek())){ag.eatWhile(/[\w.%]/);return aa("number","unit")}else{if(ag.match(/^-[\w\\\-]+/)){ag.eatWhile(/[\w\\\-]/);if(ag.match(/^\s*:/,false)){return aa("variable-2","variable-definition")}return aa("variable-2","variable")}else{if(ag.match(/^\w+-/)){return aa("meta","meta")}}}}else{if(/[,+>*\/]/.test(ae)){return aa(null,"select-op")}else{if(ae=="."&&ag.match(/^-?[_a-z][_a-z0-9-]*/i)){return aa("qualifier","qualifier")}else{if(/[:;{}\[\]\(\)]/.test(ae)){return aa(null,ae)}else{if(((ae=="u"||ae=="U")&&ag.match(/rl(-prefix)?\(/i))||((ae=="d"||ae=="D")&&ag.match("omain(",true,true))||((ae=="r"||ae=="R")&&ag.match("egexp(",true,true))){ag.backUp(1);af.tokenize=ab;return aa("property","word")}else{if(/[\w\\\-]/.test(ae)){ag.eatWhile(/[\w\\\-]/);return aa("property","word")}else{return aa(null,null)}}}}}}}}}}}}}function K(ad){return function(ah,af){var ag=false,ae;while((ae=ah.next())!=null){if(ae==ad&&!ag){if(ad==")"){ah.backUp(1)}break}ag=!ag&&ae=="\\"}if(ae==ad||!ag&&ad!=")"){af.tokenize=null}return aa("string","string")}}function ab(ae,ad){ae.next();if(!ae.match(/\s*[\"\')]/,false)){ad.tokenize=K(")")}else{ad.tokenize=null}return aa(null,"(")}function R(ae,ad,af){this.type=ae;this.indent=ad;this.prev=af}function G(af,ag,ae,ad){af.context=new R(ae,ag.indentation()+(ad===false?0:Q),af.context);return ae}function U(ad){if(ad.context.prev){ad.context=ad.context.prev}return ad.context.type}function z(ad,af,ae){return F[ae.context.type](ad,af,ae)}function W(ae,ag,af,ah){for(var ad=ah||1;ad>0;ad--){af.context=af.context.prev}return z(ae,ag,af)}function H(ae){var ad=ae.current().toLowerCase();if(T.hasOwnProperty(ad)){N="atom"}else{if(O.hasOwnProperty(ad)){N="keyword"}else{N="variable"}}}var F={};F.top=function(ad,af,ae){if(ad=="{"){return G(ae,af,"block")}else{if(ad=="}"&&ae.context.prev){return U(ae)}else{if(V&&/@component/i.test(ad)){return G(ae,af,"atComponentBlock")}else{if(/^@(-moz-)?document$/i.test(ad)){return G(ae,af,"documentTypes")}else{if(/^@(media|supports|(-moz-)?document|import)$/i.test(ad)){return G(ae,af,"atBlock")}else{if(/^@(font-face|counter-style)/i.test(ad)){ae.stateArg=ad;return"restricted_atBlock_before"}else{if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(ad)){return"keyframes"}else{if(ad&&ad.charAt(0)=="@"){return G(ae,af,"at")}else{if(ad=="hash"){N="builtin"}else{if(ad=="word"){N="tag"}else{if(ad=="variable-definition"){return"maybeprop"}else{if(ad=="interpolation"){return G(ae,af,"interpolation")}else{if(ad==":"){return"pseudo"}else{if(M&&ad=="("){return G(ae,af,"parens")}}}}}}}}}}}}}}return ae.context.type};F.block=function(ad,ag,ae){if(ad=="word"){var af=ag.current().toLowerCase();if(I.hasOwnProperty(af)){N="property";return"maybeprop"}else{if(B.hasOwnProperty(af)){N="string-2";return"maybeprop"}else{if(M){N=ag.match(/^\s*:(?:\s|$)/,false)?"property":"tag";return"block"}else{N+=" error";return"maybeprop"}}}}else{if(ad=="meta"){return"block"}else{if(!M&&(ad=="hash"||ad=="qualifier")){N="error";return"block"}else{return F.top(ad,ag,ae)}}}};F.maybeprop=function(ad,af,ae){if(ad==":"){return G(ae,af,"prop")}return z(ad,af,ae)};F.prop=function(ad,af,ae){if(ad==";"){return U(ae)}if(ad=="{"&&M){return G(ae,af,"propBlock")}if(ad=="}"||ad=="{"){return W(ad,af,ae)}if(ad=="("){return G(ae,af,"parens")}if(ad=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(af.current())){N+=" error"}else{if(ad=="word"){H(af)}else{if(ad=="interpolation"){return G(ae,af,"interpolation")}}}return"prop"};F.propBlock=function(ae,ad,af){if(ae=="}"){return U(af)}if(ae=="word"){N="property";return"maybeprop"}return af.context.type};F.parens=function(ad,af,ae){if(ad=="{"||ad=="}"){return W(ad,af,ae)}if(ad==")"){return U(ae)}if(ad=="("){return G(ae,af,"parens")}if(ad=="interpolation"){return G(ae,af,"interpolation")}if(ad=="word"){H(af)}return"parens"};F.pseudo=function(ad,af,ae){if(ad=="meta"){return"pseudo"}if(ad=="word"){N="variable-3";return ae.context.type}return z(ad,af,ae)};F.documentTypes=function(ad,af,ae){if(ad=="word"&&y.hasOwnProperty(af.current())){N="tag";return ae.context.type}else{return F.atBlock(ad,af,ae)}};F.atBlock=function(ad,ag,ae){if(ad=="("){return G(ae,ag,"atBlock_parens")}if(ad=="}"||ad==";"){return W(ad,ag,ae)}if(ad=="{"){return U(ae)&&G(ae,ag,M?"block":"top")}if(ad=="interpolation"){return G(ae,ag,"interpolation")}if(ad=="word"){var af=ag.current().toLowerCase();if(af=="only"||af=="not"||af=="and"||af=="or"){N="keyword"}else{if(Y.hasOwnProperty(af)){N="attribute"}else{if(L.hasOwnProperty(af)){N="property"}else{if(P.hasOwnProperty(af)){N="keyword"}else{if(I.hasOwnProperty(af)){N="property"}else{if(B.hasOwnProperty(af)){N="string-2"}else{if(T.hasOwnProperty(af)){N="atom"}else{if(O.hasOwnProperty(af)){N="keyword"}else{N="error"}}}}}}}}}return ae.context.type};F.atComponentBlock=function(ad,af,ae){if(ad=="}"){return W(ad,af,ae)}if(ad=="{"){return U(ae)&&G(ae,af,M?"block":"top",false)}if(ad=="word"){N="error"}return ae.context.type};F.atBlock_parens=function(ad,af,ae){if(ad==")"){return U(ae)}if(ad=="{"||ad=="}"){return W(ad,af,ae,2)}return F.atBlock(ad,af,ae)};F.restricted_atBlock_before=function(ad,af,ae){if(ad=="{"){return G(ae,af,"restricted_atBlock")}if(ad=="word"&&ae.stateArg=="@counter-style"){N="variable";return"restricted_atBlock_before"}return z(ad,af,ae)};F.restricted_atBlock=function(ad,af,ae){if(ad=="}"){ae.stateArg=null;return U(ae)}if(ad=="word"){if((ae.stateArg=="@font-face"&&!E.hasOwnProperty(af.current().toLowerCase()))||(ae.stateArg=="@counter-style"&&!X.hasOwnProperty(af.current().toLowerCase()))){N="error"}else{N="property"}return"maybeprop"}return"restricted_atBlock"};F.keyframes=function(ad,af,ae){if(ad=="word"){N="variable";return"keyframes"}if(ad=="{"){return G(ae,af,"top")}return z(ad,af,ae)};F.at=function(ad,af,ae){if(ad==";"){return U(ae)}if(ad=="{"||ad=="}"){return W(ad,af,ae)}if(ad=="word"){N="tag"}else{if(ad=="hash"){N="builtin"}}return"at"};F.interpolation=function(ad,af,ae){if(ad=="}"){return U(ae)}if(ad=="{"||ad==";"){return W(ad,af,ae)}if(ad=="word"){N="variable"}else{if(ad!="variable"&&ad!="("&&ad!=")"){N="error"}}return"interpolation"};return{startState:function(ad){return{tokenize:null,state:D?"block":"top",stateArg:null,context:new R(D?"block":"top",ad||0,null)}},token:function(af,ae){if(!ae.tokenize&&af.eatSpace()){return null}var ad=(ae.tokenize||ac)(af,ae);if(ad&&typeof ad=="object"){C=ad[1];ad=ad[0]}N=ad;if(C!="comment"){ae.state=F[ae.state](C,af,ae)}return N},indent:function(ah,af){var ae=ah.context,ag=af&&af.charAt(0);var ad=ae.indent;if(ae.type=="prop"&&(ag=="}"||ag==")")){ae=ae.prev}if(ae.prev){if(ag=="}"&&(ae.type=="block"||ae.type=="top"||ae.type=="interpolation"||ae.type=="restricted_atBlock")){ae=ae.prev;ad=ae.indent}else{if(ag==")"&&(ae.type=="parens"||ae.type=="atBlock_parens")||ag=="{"&&(ae.type=="at"||ae.type=="atBlock")){ad=Math.max(0,ae.indent-Q)}}}return ad},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:S,fold:"brace"}});function g(A){var z={};for(var y=0;y-1){n.backUp(m.length-l)}else{if(m.match(/<\/?$/)){n.backUp(m.length);if(!n.match(j,false)){n.match(m)}}}return k}var e={};function c(j){var k=e[j];if(k){return k}return e[j]=new RegExp("\\s+"+j+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*")}function a(l,j){var k=l.match(c(j));return k?/^\s*(.*?)\s*$/.exec(k[2])[1]:""}function i(k,j){return new RegExp((j?"^":"")+"","i")}function h(o,n){for(var j in o){var k=n[j]||(n[j]=[]);var m=o[j];for(var l=m.length-1;l>=0;l--){k.unshift(m[l])}}}function b(l,m){for(var k=0;k=0;m--){j.script.unshift(["type",n[m].matches,n[m].mode])}}function l(z,r){var s=q.token(z,r.htmlState),A=/\btag\b/.test(s),u;if(A&&!/[<>\s\/]/.test(z.current())&&(u=r.htmlState.tagName&&r.htmlState.tagName.toLowerCase())&&j.hasOwnProperty(u)){r.inTag=u+" "}else{if(r.inTag&&A&&/>$/.test(z.current())){var t=/^([\S]+) (.*)/.exec(r.inTag);r.inTag=null;var y=z.current()==">"&&b(j[t[1]],t[2]);var x=d.getMode(k,y);var w=i(t[1],true),v=i(t[1],false);r.token=function(C,B){if(C.match(w,false)){B.token=l;B.localState=B.localMode=null;return null}return f(C,v,B.localMode.token(C,B.localState))};r.localMode=x;r.localState=d.startState(x,q.indent(r.htmlState,""))}else{if(r.inTag){r.inTag+=z.current();if(z.eol()){r.inTag+=" "}}}}return s}return{startState:function(){var r=d.startState(q);return{token:l,inTag:null,localMode:null,localState:null,htmlState:r}},copyState:function(s){var r;if(s.localState){r=d.copyState(s.localMode,s.localState)}return{token:s.token,inTag:s.inTag,localMode:s.localMode,localState:r,htmlState:d.copyState(q,s.htmlState)}},token:function(s,r){return r.token(s,r)},indent:function(t,s,r){if(!t.localMode||/^\s*<\//.test(s)){return q.indent(t.htmlState,s)}else{if(t.localMode.indent){return t.localMode.indent(t.localState,s,r)}else{return d.Pass}}},innerMode:function(r){return{state:r.localState||r.htmlState,mode:r.localMode||q}}}},"xml","javascript","css");d.defineMIME("text/html","htmlmixed")});CodeMirror.defineMode("bbcodemixed",function(c){var f,e,g,d,h=CodeMirror.getMode(c,"htmlmixed"),b=CodeMirror.getMode(c,"bbcode"),f={bbCodeLiteral:"literal"};if(c.hasOwnProperty("bbCodeLiteral")){f.bbCodeLiteral=c.bbCodeLiteral}function a(i){return i.replace(/([\[\]\.\-\+\<\>\?\:\(\)\{\}])/g,"\\$1")}e={hasLeftDelimeter:/.*\[/,htmlHasLeftDelimeter:/[^\<\>]*\[/,literalOpen:new RegExp(a("["+f.bbCodeLiteral+"]")),literalClose:new RegExp(a("[/"+f.bbCodeLiteral+"]"))};g={chain:function(j,i,k){i.tokenize=k;return k(j,i)},cleanChain:function(j,i,k){i.tokenize=null;i.localState=null;i.localMode=null;return(typeof k=="string")?(k?k:null):k(j,i)},maybeBackup:function(o,j,k){j=a(j);var n=o.current();var l=n.search(j),i;if(l>-1){o.backUp(n.length-l)}else{if(i=n.match(/<\/?$/)){o.backUp(n.length);if(!o.match(j,false)){o.match(n[0])}}}return k}};d={html:function(j,i){if(!i.inLiteral&&j.match(e.htmlHasLeftDelimeter,false)&&i.htmlMixedState.htmlState.tagName===null){i.tokenize=d.bbcode;i.localMode=b;i.localState=b.startState(h.indent(i.htmlMixedState,""));return g.maybeBackup(j,"[",b.token(j,i.localState))}else{if(!i.inLiteral&&j.match("[",false)){i.tokenize=d.bbcode;i.localMode=b;i.localState=b.startState(h.indent(i.htmlMixedState,""));return g.maybeBackup(j,"[",b.token(j,i.localState))}}return h.token(j,i.htmlMixedState)},bbcode:function(j,i){if(j.match("]",false)){j.eat("]");i.tokenize=d.html;i.localMode=h;i.localState=i.htmlMixedState;return"tag"}return g.maybeBackup(j,"]",b.token(j,i.localState))},inBlock:function(j,i){return function(l,k){while(!l.eol()){if(l.match(i)){g.cleanChain(l,k,"");break}l.next()}return j}}};return{startState:function(){var i=h.startState();return{token:d.html,localMode:null,localState:null,htmlMixedState:i,tokenize:null,inLiteral:false}},copyState:function(k){var j=null,i=(k.tokenize||k.token);if(k.localState){j=CodeMirror.copyState((i!=d.html?b:h),k.localState)}return{token:k.token,tokenize:k.tokenize,localMode:k.localMode,localState:j,htmlMixedState:CodeMirror.copyState(h,k.htmlMixedState),inLiteral:k.inLiteral}},token:function(k,j){if(k.match("[",false)){if(!j.inLiteral&&k.match(e.literalOpen,true)){j.inLiteral=true;return"keyword"}else{if(j.inLiteral&&k.match(e.literalClose,true)){j.inLiteral=false;return"keyword"}}}if(j.inLiteral&&j.localState!=j.htmlMixedState){j.tokenize=d.html;j.localMode=h;j.localState=j.htmlMixedState}var i=(j.tokenize||j.token)(k,j);return i},indent:function(j,i){if(j.localMode==b||(j.inLiteral&&!j.localMode)||e.hasLeftDelimeter.test(i)){return CodeMirror.Pass}return h.indent(j.htmlMixedState,i)},innerMode:function(i){return{state:i.localState||i.htmlMixedState,mode:i.localMode||h}}}},"xml","javascript","css");CodeMirror.defineMIME("text/x-bbcode","bbcodemixed"); \ No newline at end of file diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/js/codemirror.mode.handlebars.min.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/js/codemirror.mode.handlebars.min.js new file mode 100755 index 0000000..18924bc --- /dev/null +++ b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/js/codemirror.mode.handlebars.min.js @@ -0,0 +1 @@ +!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/mode/simple.js",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t){if(!e.hasOwnProperty(t))throw new Error("Undefined state "+t+" in simple mode")}function n(e,t){if(!e)return/(?:)/;var n="";return e instanceof RegExp?(e.ignoreCase&&(n="i"),e=e.source):e=String(e),new RegExp((!1===t?"":"^")+"(?:"+e+")",n)}function r(e){if(!e)return null;if(e.apply)return e;if("string"==typeof e)return e.replace(/\./g," ");for(var t=[],n=0;n2&&c.token&&"string"!=typeof c.token){r.pending=[];for(var m=2;m-1)return e.Pass;var a=r.indent.length-1,l=t[r.state];e:for(;;){for(var s=0;s-1?o+t.length:o}var i=t.exec(n?e.slice(n):e);return i?i.index+n+(r?i[0].length:0):-1}var r=Array.prototype.slice.call(arguments,1);return{startState:function(){return{outer:e.startState(t),innerActive:null,inner:null}},copyState:function(n){return{outer:e.copyState(t,n.outer),innerActive:n.innerActive,inner:n.innerActive&&e.copyState(n.innerActive.mode,n.inner)}},token:function(o,i){if(i.innerActive){var a=i.innerActive,l=o.string;if(!a.close&&o.sol())return i.innerActive=i.inner=null,this.token(o,i);var d=a.close?n(l,a.close,o.pos,a.parseDelimiters):-1;if(d==o.pos&&!a.parseDelimiters)return o.match(a.close),i.innerActive=i.inner=null,a.delimStyle&&a.delimStyle+" "+a.delimStyle+"-close";d>-1&&(o.string=l.slice(0,d));var s=a.mode.token(o,i.inner);return d>-1&&(o.string=l),d==o.pos&&a.parseDelimiters&&(i.innerActive=i.inner=null),a.innerStyle&&(s=s?s+" "+a.innerStyle:a.innerStyle),s}for(var c=1/0,l=o.string,u=0;u|[#\/]([A-Za-z_]\w*)/,token:"keyword"},{regex:/(?:else|this)\b/,token:"keyword"},{regex:/\d+/i,token:"number"},{regex:/=|~|@|true|false/,token:"atom"},{regex:/(?:\.\.\/)*(?:[A-Za-z_][\w\.]*)+/,token:"variable-2"}],dash_comment:[{regex:/--\}\}/,pop:!0,token:"comment"},{regex:/./,token:"comment"}],comment:[{regex:/\}\}/,pop:!0,token:"comment"},{regex:/./,token:"comment"}],meta:{blockCommentStart:"{{--",blockCommentEnd:"--}}"}}),e.defineMode("handlebars",function(t,n){var r=e.getMode(t,"handlebars-tags");return n&&n.base?e.multiplexingMode(e.getMode(t,n.base),{open:"{{",close:"}}",mode:r,parseDelimiters:!0}):r}),e.defineMIME("text/x-handlebars-template","handlebars")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("mode/xml/xml.js",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",function(r,o){function i(e,t){function n(n){return t.tokenize=n,n(e,t)}var r=e.next();if("<"==r)return e.eat("!")?e.eat("[")?e.match("CDATA[")?n(d("atom","]]>")):null:e.match("--")?n(d("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(s(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=d("meta","?>"),"meta"):(T=e.eat("/")?"closeTag":"openTag",t.tokenize=a,"tag bracket");if("&"==r){var o;return o=e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"),o?"atom":"error"}return e.eatWhile(/[^&<]/),null}function a(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=i,T=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return T="equals",null;if("<"==n){t.tokenize=i,t.state=m,t.tagName=t.tagStart=null;var r=t.tokenize(e,t);return r?r+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=l(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function l(e){var t=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=a;break}return"string"};return t.isInAttribute=!0,t}function d(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=i;break}n.next()}return e}}function s(e){return function(t,n){for(var r;null!=(r=t.next());){if("<"==r)return n.tokenize=s(e+1),n.tokenize(t,n);if(">"==r){if(1==e){n.tokenize=i;break}return n.tokenize=s(e-1),n.tokenize(t,n)}}return"meta"}}function c(e,t,n){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=n,(w.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function u(e){e.context&&(e.context=e.context.prev)}function f(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!w.contextGrabbers.hasOwnProperty(n)||!w.contextGrabbers[n].hasOwnProperty(t))return;u(e)}}function m(e,t,n){return"openTag"==e?(n.tagStart=t.column(),p):"closeTag"==e?g:m}function p(e,t,n){return"word"==e?(n.tagName=t.current(),C="tag",v):w.allowMissingTagName&&"endTag"==e?(C="tag bracket",v(e,t,n)):(C="error",p)}function g(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&w.implicitlyClosed.hasOwnProperty(n.context.tagName)&&u(n),n.context&&n.context.tagName==r||!1===w.matchClosing?(C="tag",h):(C="tag error",x)}return w.allowMissingTagName&&"endTag"==e?(C="tag bracket",h(e,t,n)):(C="error",x)}function h(e,t,n){return"endTag"!=e?(C="error",h):(u(n),m)}function x(e,t,n){return C="error",h(e,t,n)}function v(e,t,n){if("word"==e)return C="attribute",k;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,o=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||w.autoSelfClosers.hasOwnProperty(r)?f(n,r):(f(n,r),n.context=new c(n,r,o==n.indented)),m}return C="error",v}function k(e,t,n){return"equals"==e?b:(w.allowMissing||(C="error"),v(e,t,n))}function b(e,t,n){return"string"==e?S:"word"==e&&w.allowUnquoted?(C="string",v):(C="error",v(e,t,n))}function S(e,t,n){return"string"==e?S:v(e,t,n)}var y=r.indentUnit,w={},M=o.htmlMode?t:n;for(var A in M)w[A]=M[A];for(var A in o)w[A]=o[A];var T,C;return i.isInText=!0,{startState:function(e){var t={tokenize:i,state:m,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;T=null;var n=t.tokenize(e,t);return(n||T)&&"comment"!=n&&(C=null,t.state=t.state(T||n,e,t),C&&(n="error"==C?n+" error":C)),n},indent:function(t,n,r){var o=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+y;if(o&&o.noIndent)return e.Pass;if(t.tokenize!=a&&t.tokenize!=i)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==w.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+y*(w.multilineTagIndentFactor||1);if(w.alignCDATA&&/$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:w.htmlMode?"html":"xml",helperType:w.htmlMode?"html":"xml",skipAttribute:function(e){e.state==b&&(e.state=v)}}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}),function(e){"function"==typeof e.define&&e.define("modeHandlebars",["mode/handlebars/handlebars.js"],function(){})}(this); \ No newline at end of file diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/js/codemirror.mode.htmlmixed.min.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/js/codemirror.mode.htmlmixed.min.js old mode 100644 new mode 100755 index dd3787f..1c8b271 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/js/codemirror.mode.htmlmixed.min.js +++ b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/js/codemirror.mode.htmlmixed.min.js @@ -1 +1,2 @@ -(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(a){a.defineMode("xml",function(y,k){var p=y.indentUnit;var x=k.multilineTagIndentFactor||1;var d=k.multilineTagIndentPastTag;if(d==null){d=true}var w=k.htmlMode?{autoSelfClosers:{area:true,base:true,br:true,col:true,command:true,embed:true,frame:true,hr:true,img:true,input:true,keygen:true,link:true,meta:true,param:true,source:true,track:true,wbr:true,menuitem:true},implicitlyClosed:{dd:true,li:true,optgroup:true,option:true,p:true,rp:true,rt:true,tbody:true,td:true,tfoot:true,th:true,tr:true},contextGrabbers:{dd:{dd:true,dt:true},dt:{dd:true,dt:true},li:{li:true},option:{option:true,optgroup:true},optgroup:{optgroup:true},p:{address:true,article:true,aside:true,blockquote:true,dir:true,div:true,dl:true,fieldset:true,footer:true,form:true,h1:true,h2:true,h3:true,h4:true,h5:true,h6:true,header:true,hgroup:true,hr:true,menu:true,nav:true,ol:true,p:true,pre:true,section:true,table:true,ul:true},rp:{rp:true,rt:true},rt:{rp:true,rt:true},tbody:{tbody:true,tfoot:true},td:{td:true,th:true},tfoot:{tbody:true},th:{td:true,th:true},thead:{tbody:true,tfoot:true},tr:{tr:true}},doNotIndent:{pre:true},allowUnquoted:true,allowMissing:true,caseFold:true}:{autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:false,allowMissing:false,caseFold:false};var c=k.alignCDATA;var f,g;function n(F,E){function C(G){E.tokenize=G;return G(F,E)}var D=F.next();if(D=="<"){if(F.eat("!")){if(F.eat("[")){if(F.match("CDATA[")){return C(v("atom","]]>"))}else{return null}}else{if(F.match("--")){return C(v("comment","-->"))}else{if(F.match("DOCTYPE",true,true)){F.eatWhile(/[\w\._\-]/);return C(z(1))}else{return null}}}}else{if(F.eat("?")){F.eatWhile(/[\w\._\-]/);E.tokenize=v("meta","?>");return"meta"}else{f=F.eat("/")?"closeTag":"openTag";E.tokenize=m;return"tag bracket"}}}else{if(D=="&"){var B;if(F.eat("#")){if(F.eat("x")){B=F.eatWhile(/[a-fA-F\d]/)&&F.eat(";")}else{B=F.eatWhile(/[\d]/)&&F.eat(";")}}else{B=F.eatWhile(/[\w\.\-:]/)&&F.eat(";")}return B?"atom":"error"}else{F.eatWhile(/[^&<]/);return null}}}function m(E,D){var C=E.next();if(C==">"||(C=="/"&&E.eat(">"))){D.tokenize=n;f=C==">"?"endTag":"selfcloseTag";return"tag bracket"}else{if(C=="="){f="equals";return null}else{if(C=="<"){D.tokenize=n;D.state=l;D.tagName=D.tagStart=null;var B=D.tokenize(E,D);return B?B+" tag error":"tag error"}else{if(/[\'\"]/.test(C)){D.tokenize=j(C);D.stringStartCol=E.column();return D.tokenize(E,D)}else{E.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/);return"word"}}}}}function j(B){var C=function(E,D){while(!E.eol()){if(E.next()==B){D.tokenize=m;break}}return"string"};C.isInAttribute=true;return C}function v(C,B){return function(E,D){while(!E.eol()){if(E.match(B)){D.tokenize=n;break}E.next()}return C}}function z(B){return function(E,D){var C;while((C=E.next())!=null){if(C=="<"){D.tokenize=z(B+1);return D.tokenize(E,D)}else{if(C==">"){if(B==1){D.tokenize=n;break}else{D.tokenize=z(B-1);return D.tokenize(E,D)}}}}return"meta"}}function r(C,B,D){this.prev=C.context;this.tagName=B;this.indent=C.indented;this.startOfLine=D;if(w.doNotIndent.hasOwnProperty(B)||(C.context&&C.context.noIndent)){this.noIndent=true}}function u(B){if(B.context){B.context=B.context.prev}}function q(D,C){var B;while(true){if(!D.context){return}B=D.context.tagName;if(!w.contextGrabbers.hasOwnProperty(B)||!w.contextGrabbers[B].hasOwnProperty(C)){return}u(D)}}function l(B,D,C){if(B=="openTag"){C.tagStart=D.column();return b}else{if(B=="closeTag"){return t}else{return l}}}function b(B,D,C){if(B=="word"){C.tagName=D.current();g="tag";return e}else{g="error";return b}}function t(C,E,D){if(C=="word"){var B=E.current();if(D.context&&D.context.tagName!=B&&w.implicitlyClosed.hasOwnProperty(D.context.tagName)){u(D)}if(D.context&&D.context.tagName==B){g="tag";return s}else{g="tag error";return A}}else{g="error";return A}}function s(C,B,D){if(C!="endTag"){g="error";return s}u(D);return l}function A(B,D,C){g="error";return s(B,D,C)}function e(E,C,F){if(E=="word"){g="attribute";return i}else{if(E=="endTag"||E=="selfcloseTag"){var D=F.tagName,B=F.tagStart;F.tagName=F.tagStart=null;if(E=="selfcloseTag"||w.autoSelfClosers.hasOwnProperty(D)){q(F,D)}else{q(F,D);F.context=new r(F,D,B==F.indented)}return l}}g="error";return e}function i(B,D,C){if(B=="equals"){return o}if(!w.allowMissing){g="error"}return e(B,D,C)}function o(B,D,C){if(B=="string"){return h}if(B=="word"&&w.allowUnquoted){g="string";return e}g="error";return e(B,D,C)}function h(B,D,C){if(B=="string"){return h}return e(B,D,C)}return{startState:function(){return{tokenize:n,state:l,indented:0,tagName:null,tagStart:null,context:null}},token:function(D,C){if(!C.tagName&&D.sol()){C.indented=D.indentation()}if(D.eatSpace()){return null}f=null;var B=C.tokenize(D,C);if((B||f)&&B!="comment"){g=null;C.state=C.state(f||B,D,C);if(g){B=g=="error"?B+" error":g}}return B},indent:function(G,C,F){var E=G.context;if(G.tokenize.isInAttribute){if(G.tagStart==G.indented){return G.stringStartCol+1}else{return G.indented+p}}if(E&&E.noIndent){return a.Pass}if(G.tokenize!=m&&G.tokenize!=n){return F?F.match(/^(\s*)/)[0].length:0}if(G.tagName){if(d){return G.tagStart+G.tagName.length+2}else{return G.tagStart+p*x}}if(c&&/$/,blockCommentStart:"",configuration:k.htmlMode?"html":"xml",helperType:k.htmlMode?"html":"xml"}});a.defineMIME("text/xml","xml");a.defineMIME("application/xml","xml");if(!a.mimeModes.hasOwnProperty("text/html")){a.defineMIME("text/html",{name:"xml",htmlMode:true})}});(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(a){a.defineMode("javascript",function(Z,aj){var l=Z.indentUnit;var A=aj.statementIndent;var aB=aj.jsonld;var z=aj.json||aB;var g=aj.typescript;var au=aj.wordCharacters||/[\w$\xa1-\uffff]/;var ar=function(){function aR(aT){return{type:aT,style:"keyword"}}var aM=aR("keyword a"),aK=aR("keyword b"),aJ=aR("keyword c");var aL=aR("operator"),aP={type:"atom",style:"atom"};var aN={"if":aR("if"),"while":aM,"with":aM,"else":aK,"do":aK,"try":aK,"finally":aK,"return":aJ,"break":aJ,"continue":aJ,"new":aJ,"delete":aJ,"throw":aJ,"debugger":aJ,"var":aR("var"),"const":aR("var"),let:aR("var"),"function":aR("function"),"catch":aR("catch"),"for":aR("for"),"switch":aR("switch"),"case":aR("case"),"default":aR("default"),"in":aL,"typeof":aL,"instanceof":aL,"true":aP,"false":aP,"null":aP,"undefined":aP,"NaN":aP,"Infinity":aP,"this":aR("this"),module:aR("module"),"class":aR("class"),"super":aR("atom"),yield:aJ,"export":aR("export"),"import":aR("import"),"extends":aJ};if(g){var aS={type:"variable",style:"variable-3"};var aO={"interface":aR("interface"),"extends":aR("extends"),constructor:aR("constructor"),"public":aR("public"),"private":aR("private"),"protected":aR("protected"),"static":aR("static"),string:aS,number:aS,bool:aS,any:aS};for(var aQ in aO){aN[aQ]=aO[aQ]}}return aN}();var P=/[+\-*&%=<>!?|~^]/;var aq=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function F(aM){var aK=false,aJ,aL=false;while((aJ=aM.next())!=null){if(!aK){if(aJ=="/"&&!aL){return}if(aJ=="["){aL=true}else{if(aL&&aJ=="]"){aL=false}}}aK=!aK&&aJ=="\\"}}var S,G;function L(aL,aK,aJ){S=aL;G=aJ;return aK}function U(aN,aL){var aJ=aN.next();if(aJ=='"'||aJ=="'"){aL.tokenize=R(aJ);return aL.tokenize(aN,aL)}else{if(aJ=="."&&aN.match(/^\d+(?:[eE][+\-]?\d+)?/)){return L("number","number")}else{if(aJ=="."&&aN.match("..")){return L("spread","meta")}else{if(/[\[\]{}\(\),;\:\.]/.test(aJ)){return L(aJ)}else{if(aJ=="="&&aN.eat(">")){return L("=>","operator")}else{if(aJ=="0"&&aN.eat(/x/i)){aN.eatWhile(/[\da-f]/i);return L("number","number")}else{if(/\d/.test(aJ)){aN.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/);return L("number","number")}else{if(aJ=="/"){if(aN.eat("*")){aL.tokenize=aA;return aA(aN,aL)}else{if(aN.eat("/")){aN.skipToEnd();return L("comment","comment")}else{if(aL.lastType=="operator"||aL.lastType=="keyword c"||aL.lastType=="sof"||/^[\[{}\(,;:]$/.test(aL.lastType)){F(aN);aN.match(/^\b(([gimyu])(?![gimyu]*\2))+\b/);return L("regexp","string-2")}else{aN.eatWhile(P);return L("operator","operator",aN.current())}}}}else{if(aJ=="`"){aL.tokenize=aC;return aC(aN,aL)}else{if(aJ=="#"){aN.skipToEnd();return L("error","error")}else{if(P.test(aJ)){aN.eatWhile(P);return L("operator","operator",aN.current())}else{if(au.test(aJ)){aN.eatWhile(au);var aM=aN.current(),aK=ar.propertyIsEnumerable(aM)&&ar[aM];return(aK&&aL.lastType!=".")?L(aK.type,aK.style,aM):L("variable","variable",aM)}}}}}}}}}}}}}function R(aJ){return function(aN,aL){var aM=false,aK;if(aB&&aN.peek()=="@"&&aN.match(aq)){aL.tokenize=U;return L("jsonld-keyword","meta")}while((aK=aN.next())!=null){if(aK==aJ&&!aM){break}aM=!aM&&aK=="\\"}if(!aM){aL.tokenize=U}return L("string","string")}}function aA(aM,aL){var aJ=false,aK;while(aK=aM.next()){if(aK=="/"&&aJ){aL.tokenize=U;break}aJ=(aK=="*")}return L("comment","comment")}function aC(aM,aK){var aL=false,aJ;while((aJ=aM.next())!=null){if(!aL&&(aJ=="`"||aJ=="$"&&aM.eat("{"))){aK.tokenize=U;break}aL=!aL&&aJ=="\\"}return L("quasi","string-2",aM.current())}var m="([{}])";function ax(aP,aM){if(aM.fatArrowAt){aM.fatArrowAt=null}var aL=aP.string.indexOf("=>",aP.start);if(aL<0){return}var aO=0,aK=false;for(var aQ=aL-1;aQ>=0;--aQ){var aJ=aP.string.charAt(aQ);var aN=m.indexOf(aJ);if(aN>=0&&aN<3){if(!aO){++aQ;break}if(--aO==0){break}}else{if(aN>=3&&aN<6){++aO}else{if(au.test(aJ)){aK=true}else{if(/["'\/]/.test(aJ)){return}else{if(aK&&!aO){++aQ;break}}}}}}if(aK&&!aO){aM.fatArrowAt=aQ}}var b={atom:true,number:true,variable:true,string:true,regexp:true,"this":true,"jsonld-keyword":true};function J(aO,aK,aJ,aN,aL,aM){this.indented=aO;this.column=aK;this.type=aJ;this.prev=aL;this.info=aM;if(aN!=null){this.align=aN}}function s(aM,aL){for(var aK=aM.localVars;aK;aK=aK.next){if(aK.name==aL){return true}}for(var aJ=aM.context;aJ;aJ=aJ.prev){for(var aK=aJ.vars;aK;aK=aK.next){if(aK.name==aL){return true}}}}function f(aN,aK,aJ,aM,aO){var aP=aN.cc;D.state=aN;D.stream=aO;D.marked=null,D.cc=aP;D.style=aK;if(!aN.lexical.hasOwnProperty("align")){aN.lexical.align=true}while(true){var aL=aP.length?aP.pop():z?an:aH;if(aL(aJ,aM)){while(aP.length&&aP[aP.length-1].lex){aP.pop()()}if(D.marked){return D.marked}if(aJ=="variable"&&s(aN,aM)){return"variable-2"}return aK}}}var D={state:null,column:null,marked:null,cc:null};function aa(){for(var aJ=arguments.length-1;aJ>=0;aJ--){D.cc.push(arguments[aJ])}}function ae(){aa.apply(null,arguments);return true}function aw(aK){function aJ(aN){for(var aM=aN;aM;aM=aM.next){if(aM.name==aK){return true}}return false}var aL=D.state;if(aL.context){D.marked="def";if(aJ(aL.localVars)){return}aL.localVars={name:aK,next:aL.localVars}}else{if(aJ(aL.globalVars)){return}if(aj.globalVars){aL.globalVars={name:aK,next:aL.globalVars}}}}var q={name:"this",next:{name:"arguments"}};function w(){D.state.context={prev:D.state.context,vars:D.state.localVars};D.state.localVars=q}function x(){D.state.localVars=D.state.context.vars;D.state.context=D.state.context.prev}function aF(aK,aL){var aJ=function(){var aO=D.state,aM=aO.indented;if(aO.lexical.type=="stat"){aM=aO.lexical.indented}else{for(var aN=aO.lexical;aN&&aN.type==")"&&aN.align;aN=aN.prev){aM=aN.indented}}aO.lexical=new J(aM,D.stream.column(),aK,null,aO.lexical,aL)};aJ.lex=true;return aJ}function h(){var aJ=D.state;if(aJ.lexical.prev){if(aJ.lexical.type==")"){aJ.indented=aJ.lexical.indented}aJ.lexical=aJ.lexical.prev}}h.lex=true;function r(aJ){function aK(aL){if(aL==aJ){return ae()}else{if(aJ==";"){return aa()}else{return ae(aK)}}}return aK}function aH(aJ,aK){if(aJ=="var"){return ae(aF("vardef",aK.length),d,r(";"),h)}if(aJ=="keyword a"){return ae(aF("form"),an,aH,h)}if(aJ=="keyword b"){return ae(aF("form"),aH,h)}if(aJ=="{"){return ae(aF("}"),y,h)}if(aJ==";"){return ae()}if(aJ=="if"){if(D.state.lexical.info=="else"&&D.state.cc[D.state.cc.length-1]==h){D.state.cc.pop()()}return ae(aF("form"),an,aH,h,e)}if(aJ=="function"){return ae(M)}if(aJ=="for"){return ae(aF("form"),u,aH,h)}if(aJ=="variable"){return ae(aF("stat"),aI)}if(aJ=="switch"){return ae(aF("form"),an,aF("}","switch"),r("{"),y,h,h)}if(aJ=="case"){return ae(an,r(":"))}if(aJ=="default"){return ae(r(":"))}if(aJ=="catch"){return ae(aF("form"),w,r("("),af,r(")"),aH,h,x)}if(aJ=="module"){return ae(aF("form"),w,H,x,h)}if(aJ=="class"){return ae(aF("form"),V,h)}if(aJ=="export"){return ae(aF("form"),aG,h)}if(aJ=="import"){return ae(aF("form"),ag,h)}return aa(aF("stat"),an,r(";"),h)}function an(aJ){return Y(aJ,false)}function aE(aJ){return Y(aJ,true)}function Y(aK,aM){if(D.state.fatArrowAt==D.stream.start){var aJ=aM?N:W;if(aK=="("){return ae(w,aF(")"),at(i,")"),h,r("=>"),aJ,x)}else{if(aK=="variable"){return aa(w,i,r("=>"),aJ,x)}}}var aL=aM?j:ab;if(b.hasOwnProperty(aK)){return ae(aL)}if(aK=="function"){return ae(M,aL)}if(aK=="keyword c"){return ae(aM?ak:ai)}if(aK=="("){return ae(aF(")"),ai,az,r(")"),h,aL)}if(aK=="operator"||aK=="spread"){return ae(aM?aE:an)}if(aK=="["){return ae(aF("]"),n,h,aL)}if(aK=="{"){return ay(t,"}",null,aL)}if(aK=="quasi"){return aa(Q,aL)}return ae()}function ai(aJ){if(aJ.match(/[;\}\)\],]/)){return aa()}return aa(an)}function ak(aJ){if(aJ.match(/[;\}\)\],]/)){return aa()}return aa(aE)}function ab(aJ,aK){if(aJ==","){return ae(an)}return j(aJ,aK,false)}function j(aJ,aL,aN){var aK=aN==false?ab:j;var aM=aN==false?an:aE;if(aJ=="=>"){return ae(w,aN?N:W,x)}if(aJ=="operator"){if(/\+\+|--/.test(aL)){return ae(aK)}if(aL=="?"){return ae(an,r(":"),aM)}return ae(aM)}if(aJ=="quasi"){return aa(Q,aK)}if(aJ==";"){return}if(aJ=="("){return ay(aE,")","call",aK)}if(aJ=="."){return ae(al,aK)}if(aJ=="["){return ae(aF("]"),ai,r("]"),h,aK)}}function Q(aJ,aK){if(aJ!="quasi"){return aa()}if(aK.slice(aK.length-2)!="${"){return ae(Q)}return ae(an,p)}function p(aJ){if(aJ=="}"){D.marked="string-2";D.state.tokenize=aC;return ae(Q)}}function W(aJ){ax(D.stream,D.state);return aa(aJ=="{"?aH:an)}function N(aJ){ax(D.stream,D.state);return aa(aJ=="{"?aH:aE)}function aI(aJ){if(aJ==":"){return ae(h,aH)}return aa(ab,r(";"),h)}function al(aJ){if(aJ=="variable"){D.marked="property";return ae()}}function t(aJ,aK){if(aJ=="variable"||D.style=="keyword"){D.marked="property";if(aK=="get"||aK=="set"){return ae(I)}return ae(K)}else{if(aJ=="number"||aJ=="string"){D.marked=aB?"property":(D.style+" property");return ae(K)}else{if(aJ=="jsonld-keyword"){return ae(K)}else{if(aJ=="["){return ae(an,r("]"),K)}}}}}function I(aJ){if(aJ!="variable"){return aa(K)}D.marked="property";return ae(M)}function K(aJ){if(aJ==":"){return ae(aE)}if(aJ=="("){return aa(M)}}function at(aL,aJ){function aK(aN){if(aN==","){var aM=D.state.lexical;if(aM.info=="call"){aM.pos=(aM.pos||0)+1}return ae(aL,aK)}if(aN==aJ){return ae()}return ae(r(aJ))}return function(aM){if(aM==aJ){return ae()}return aa(aL,aK)}}function ay(aM,aJ,aL){for(var aK=3;aK=0;--aL){var aQ=aP.cc[aL];if(aQ==h){aM=aM.prev}else{if(aQ!=e){break}}}}if(aM.type=="stat"&&aO=="}"){aM=aM.prev}if(A&&aM.type==")"&&aM.prev.type=="stat"){aM=aM.prev}var aN=aM.type,aK=aO==aN;if(aN=="vardef"){return aM.indented+(aP.lastType=="operator"||aP.lastType==","?aM.info+1:0)}else{if(aN=="form"&&aO=="{"){return aM.indented}else{if(aN=="form"){return aM.indented+l}else{if(aN=="stat"){return aM.indented+(ao(aP,aJ)?A||l:0)}else{if(aM.info=="switch"&&!aK&&aj.doubleIndentSwitch!=false){return aM.indented+(/^(?:case|default)\b/.test(aJ)?l:2*l)}else{if(aM.align){return aM.column+(aK?0:1)}else{return aM.indented+(aK?0:l)}}}}}}},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:z?null:"/*",blockCommentEnd:z?null:"*/",lineComment:z?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:z?"json":"javascript",jsonldMode:aB,jsonMode:z}});a.registerHelper("wordChars","javascript",/[\w$]/);a.defineMIME("text/javascript","javascript");a.defineMIME("text/ecmascript","javascript");a.defineMIME("application/javascript","javascript");a.defineMIME("application/x-javascript","javascript");a.defineMIME("application/ecmascript","javascript");a.defineMIME("application/json",{name:"javascript",json:true});a.defineMIME("application/x-json",{name:"javascript",json:true});a.defineMIME("application/ld+json",{name:"javascript",jsonld:true});a.defineMIME("text/typescript",{name:"javascript",typescript:true});a.defineMIME("application/typescript",{name:"javascript",typescript:true})});(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(p){p.defineMode("css",function(T,G){if(!G.propertyKeywords){G=p.resolveMode("text/css")}var M=T.indentUnit,y=G.tokenHooks,w=G.documentTypes||{},S=G.mediaTypes||{},I=G.mediaFeatures||{},F=G.propertyKeywords||{},z=G.nonStandardPropertyKeywords||{},B=G.fontProperties||{},R=G.counterDescriptors||{},L=G.colorKeywords||{},O=G.valueKeywords||{},J=G.allowNested;var A,K;function U(X,Y){A=Y;return X}function W(aa,Z){var Y=aa.next();if(y[Y]){var X=y[Y](aa,Z);if(X!==false){return X}}if(Y=="@"){aa.eatWhile(/[\w\\\-]/);return U("def",aa.current())}else{if(Y=="="||(Y=="~"||Y=="|")&&aa.eat("=")){return U(null,"compare")}else{if(Y=='"'||Y=="'"){Z.tokenize=H(Y);return Z.tokenize(aa,Z)}else{if(Y=="#"){aa.eatWhile(/[\w\\\-]/);return U("atom","hash")}else{if(Y=="!"){aa.match(/^\s*\w*/);return U("keyword","important")}else{if(/\d/.test(Y)||Y=="."&&aa.eat(/\d/)){aa.eatWhile(/[\w.%]/);return U("number","unit")}else{if(Y==="-"){if(/[\d.]/.test(aa.peek())){aa.eatWhile(/[\w.%]/);return U("number","unit")}else{if(aa.match(/^-[\w\\\-]+/)){aa.eatWhile(/[\w\\\-]/);if(aa.match(/^\s*:/,false)){return U("variable-2","variable-definition")}return U("variable-2","variable")}else{if(aa.match(/^\w+-/)){return U("meta","meta")}}}}else{if(/[,+>*\/]/.test(Y)){return U(null,"select-op")}else{if(Y=="."&&aa.match(/^-?[_a-z][_a-z0-9-]*/i)){return U("qualifier","qualifier")}else{if(/[:;{}\[\]\(\)]/.test(Y)){return U(null,Y)}else{if((Y=="u"&&aa.match(/rl(-prefix)?\(/))||(Y=="d"&&aa.match("omain("))||(Y=="r"&&aa.match("egexp("))){aa.backUp(1);Z.tokenize=V;return U("property","word")}else{if(/[\w\\\-]/.test(Y)){aa.eatWhile(/[\w\\\-]/);return U("property","word")}else{return U(null,null)}}}}}}}}}}}}}function H(X){return function(ab,Z){var aa=false,Y;while((Y=ab.next())!=null){if(Y==X&&!aa){if(X==")"){ab.backUp(1)}break}aa=!aa&&Y=="\\"}if(Y==X||!aa&&X!=")"){Z.tokenize=null}return U("string","string")}}function V(Y,X){Y.next();if(!Y.match(/\s*[\"\')]/,false)){X.tokenize=H(")")}else{X.tokenize=null}return U(null,"(")}function N(Y,X,Z){this.type=Y;this.indent=X;this.prev=Z}function D(Y,Z,X){Y.context=new N(X,Z.indentation()+M,Y.context);return X}function P(X){X.context=X.context.prev;return X.context.type}function x(X,Z,Y){return C[Y.context.type](X,Z,Y)}function Q(Y,aa,Z,ab){for(var X=ab||1;X>0;X--){Z.context=Z.context.prev}return x(Y,aa,Z)}function E(Y){var X=Y.current().toLowerCase();if(O.hasOwnProperty(X)){K="atom"}else{if(L.hasOwnProperty(X)){K="keyword"}else{K="variable"}}}var C={};C.top=function(X,Z,Y){if(X=="{"){return D(Y,Z,"block")}else{if(X=="}"&&Y.context.prev){return P(Y)}else{if(/@(media|supports|(-moz-)?document)/.test(X)){return D(Y,Z,"atBlock")}else{if(/@(font-face|counter-style)/.test(X)){Y.stateArg=X;return"restricted_atBlock_before"}else{if(/^@(-(moz|ms|o|webkit)-)?keyframes$/.test(X)){return"keyframes"}else{if(X&&X.charAt(0)=="@"){return D(Y,Z,"at")}else{if(X=="hash"){K="builtin"}else{if(X=="word"){K="tag"}else{if(X=="variable-definition"){return"maybeprop"}else{if(X=="interpolation"){return D(Y,Z,"interpolation")}else{if(X==":"){return"pseudo"}else{if(J&&X=="("){return D(Y,Z,"parens")}}}}}}}}}}}}return Y.context.type};C.block=function(X,aa,Y){if(X=="word"){var Z=aa.current().toLowerCase();if(F.hasOwnProperty(Z)){K="property";return"maybeprop"}else{if(z.hasOwnProperty(Z)){K="string-2";return"maybeprop"}else{if(J){K=aa.match(/^\s*:(?:\s|$)/,false)?"property":"tag";return"block"}else{K+=" error";return"maybeprop"}}}}else{if(X=="meta"){return"block"}else{if(!J&&(X=="hash"||X=="qualifier")){K="error";return"block"}else{return C.top(X,aa,Y)}}}};C.maybeprop=function(X,Z,Y){if(X==":"){return D(Y,Z,"prop")}return x(X,Z,Y)};C.prop=function(X,Z,Y){if(X==";"){return P(Y)}if(X=="{"&&J){return D(Y,Z,"propBlock")}if(X=="}"||X=="{"){return Q(X,Z,Y)}if(X=="("){return D(Y,Z,"parens")}if(X=="hash"&&!/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(Z.current())){K+=" error"}else{if(X=="word"){E(Z)}else{if(X=="interpolation"){return D(Y,Z,"interpolation")}}}return"prop"};C.propBlock=function(Y,X,Z){if(Y=="}"){return P(Z)}if(Y=="word"){K="property";return"maybeprop"}return Z.context.type};C.parens=function(X,Z,Y){if(X=="{"||X=="}"){return Q(X,Z,Y)}if(X==")"){return P(Y)}if(X=="("){return D(Y,Z,"parens")}if(X=="interpolation"){return D(Y,Z,"interpolation")}if(X=="word"){E(Z)}return"parens"};C.pseudo=function(X,Z,Y){if(X=="word"){K="variable-3";return Y.context.type}return x(X,Z,Y)};C.atBlock=function(X,aa,Y){if(X=="("){return D(Y,aa,"atBlock_parens")}if(X=="}"){return Q(X,aa,Y)}if(X=="{"){return P(Y)&&D(Y,aa,J?"block":"top")}if(X=="word"){var Z=aa.current().toLowerCase();if(Z=="only"||Z=="not"||Z=="and"||Z=="or"){K="keyword"}else{if(w.hasOwnProperty(Z)){K="tag"}else{if(S.hasOwnProperty(Z)){K="attribute"}else{if(I.hasOwnProperty(Z)){K="property"}else{if(F.hasOwnProperty(Z)){K="property"}else{if(z.hasOwnProperty(Z)){K="string-2"}else{if(O.hasOwnProperty(Z)){K="atom"}else{K="error"}}}}}}}}return Y.context.type};C.atBlock_parens=function(X,Z,Y){if(X==")"){return P(Y)}if(X=="{"||X=="}"){return Q(X,Z,Y,2)}return C.atBlock(X,Z,Y)};C.restricted_atBlock_before=function(X,Z,Y){if(X=="{"){return D(Y,Z,"restricted_atBlock")}if(X=="word"&&Y.stateArg=="@counter-style"){K="variable";return"restricted_atBlock_before"}return x(X,Z,Y)};C.restricted_atBlock=function(X,Z,Y){if(X=="}"){Y.stateArg=null;return P(Y)}if(X=="word"){if((Y.stateArg=="@font-face"&&!B.hasOwnProperty(Z.current().toLowerCase()))||(Y.stateArg=="@counter-style"&&!R.hasOwnProperty(Z.current().toLowerCase()))){K="error"}else{K="property"}return"maybeprop"}return"restricted_atBlock"};C.keyframes=function(X,Z,Y){if(X=="word"){K="variable";return"keyframes"}if(X=="{"){return D(Y,Z,"top")}return x(X,Z,Y)};C.at=function(X,Z,Y){if(X==";"){return P(Y)}if(X=="{"||X=="}"){return Q(X,Z,Y)}if(X=="word"){K="tag"}else{if(X=="hash"){K="builtin"}}return"at"};C.interpolation=function(X,Z,Y){if(X=="}"){return P(Y)}if(X=="{"||X==";"){return Q(X,Z,Y)}if(X=="word"){K="variable"}else{if(X!="variable"&&X!="("&&X!=")"){K="error"}}return"interpolation"};return{startState:function(X){return{tokenize:null,state:"top",stateArg:null,context:new N("top",X||0,null)}},token:function(Z,Y){if(!Y.tokenize&&Z.eatSpace()){return null}var X=(Y.tokenize||W)(Z,Y);if(X&&typeof X=="object"){A=X[1];X=X[0]}K=X;Y.state=C[Y.state](A,Z,Y);return K},indent:function(ab,Z){var Y=ab.context,aa=Z&&Z.charAt(0);var X=Y.indent;if(Y.type=="prop"&&(aa=="}"||aa==")")){Y=Y.prev}if(Y.prev&&(aa=="}"&&(Y.type=="block"||Y.type=="top"||Y.type=="interpolation"||Y.type=="restricted_atBlock")||aa==")"&&(Y.type=="parens"||Y.type=="atBlock_parens")||aa=="{"&&(Y.type=="at"||Y.type=="atBlock"))){X=Y.indent-M;Y=Y.prev}return X},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",fold:"brace"}});function g(y){var x={};for(var w=0;w"){var u=t.string.slice(Math.max(0,t.pos-100),t.pos).match(/\btype\s*=\s*("[^"]+"|'[^']+'|\S+)[^<]*$/i);u=u?u[1]:"";if(u&&/[\"\']/.test(u.charAt(0))){u=u.slice(1,u.length-1)}for(var o=0;o"){r.token=g;r.localMode=n;r.localState=n.startState(b.indent(r.htmlState,""))}}return q}function h(r,i,o){var q=r.current();var p=q.search(i);if(p>-1){r.backUp(q.length-p)}else{if(q.match(/<\/?$/)){r.backUp(q.length);if(!r.match(i,false)){r.match(q)}}}return o}function m(o,i){if(o.match(/^<\/\s*script\s*>/i,false)){i.token=f;i.localState=i.localMode=null;return null}return h(o,/<\/\s*script\s*>/,i.localMode.token(o,i.localState))}function g(o,i){if(o.match(/^<\/\s*style\s*>/i,false)){i.token=f;i.localState=i.localMode=null;return null}return h(o,/<\/\s*style\s*>/,n.token(o,i.localState))}return{startState:function(){var i=b.startState();return{token:f,localMode:null,localState:null,htmlState:i}},copyState:function(o){if(o.localState){var i=a.copyState(o.localMode,o.localState)}return{token:o.token,localMode:o.localMode,localState:i,htmlState:a.copyState(b,o.htmlState)}},token:function(o,i){return i.token(o,i)},indent:function(o,i){if(!o.localMode||/^\s*<\//.test(i)){return b.indent(o.htmlState,i)}else{if(o.localMode.indent){return o.localMode.indent(o.localState,i)}else{return a.Pass}}},innerMode:function(i){return{state:i.localState||i.htmlState,mode:i.localMode||b}}}},"xml","javascript","css");a.defineMIME("text/html","htmlmixed")});(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"),require("../htmlmixed/htmlmixed"),require("../../addon/mode/multiplex"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror","../htmlmixed/htmlmixed","../../addon/mode/multiplex"],a)}else{a(CodeMirror)}}})(function(a){a.defineMode("htmlembedded",function(b,c){return a.multiplexingMode(a.getMode(b,"htmlmixed"),{open:c.open||c.scriptStartRegex||"<%",close:c.close||c.scriptEndRegex||"%>",mode:a.getMode(b,c.scriptingModeSpec)})},"htmlmixed");a.defineMIME("application/x-ejs",{name:"htmlembedded",scriptingModeSpec:"javascript"});a.defineMIME("application/x-aspx",{name:"htmlembedded",scriptingModeSpec:"text/x-csharp"});a.defineMIME("application/x-jsp",{name:"htmlembedded",scriptingModeSpec:"text/x-java"});a.defineMIME("application/x-erb",{name:"htmlembedded",scriptingModeSpec:"ruby"})}); \ No newline at end of file +!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("mode/xml/xml",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},r={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",function(n,o){function a(e,t){function r(r){return t.tokenize=r,r(e,t)}var n=e.next();if("<"==n)return e.eat("!")?e.eat("[")?e.match("CDATA[")?r(s("atom","]]>")):null:e.match("--")?r(s("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),r(c(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=s("meta","?>"),"meta"):(S=e.eat("/")?"closeTag":"openTag",t.tokenize=i,"tag bracket");if("&"==n){var o;return o=e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"),o?"atom":"error"}return e.eatWhile(/[^&<]/),null}function i(e,t){var r=e.next();if(">"==r||"/"==r&&e.eat(">"))return t.tokenize=a,S=">"==r?"endTag":"selfcloseTag","tag bracket";if("="==r)return S="equals",null;if("<"==r){t.tokenize=a,t.state=m,t.tagName=t.tagStart=null;var n=t.tokenize(e,t);return n?n+" tag error":"tag error"}return/[\'\"]/.test(r)?(t.tokenize=l(r),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function l(e){var t=function(t,r){for(;!t.eol();)if(t.next()==e){r.tokenize=i;break}return"string"};return t.isInAttribute=!0,t}function s(e,t){return function(r,n){for(;!r.eol();){if(r.match(t)){n.tokenize=a;break}r.next()}return e}}function c(e){return function(t,r){for(var n;null!=(n=t.next());){if("<"==n)return r.tokenize=c(e+1),r.tokenize(t,r);if(">"==n){if(1==e){r.tokenize=a;break}return r.tokenize=c(e-1),r.tokenize(t,r)}}return"meta"}}function d(e,t,r){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=r,(M.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function u(e){e.context&&(e.context=e.context.prev)}function p(e,t){for(var r;;){if(!e.context)return;if(r=e.context.tagName,!M.contextGrabbers.hasOwnProperty(r)||!M.contextGrabbers[r].hasOwnProperty(t))return;u(e)}}function m(e,t,r){return"openTag"==e?(r.tagStart=t.column(),f):"closeTag"==e?h:m}function f(e,t,r){return"word"==e?(r.tagName=t.current(),T="tag",y):M.allowMissingTagName&&"endTag"==e?(T="tag bracket",y(e,t,r)):(T="error",f)}function h(e,t,r){if("word"==e){var n=t.current();return r.context&&r.context.tagName!=n&&M.implicitlyClosed.hasOwnProperty(r.context.tagName)&&u(r),r.context&&r.context.tagName==n||!1===M.matchClosing?(T="tag",g):(T="tag error",b)}return M.allowMissingTagName&&"endTag"==e?(T="tag bracket",g(e,t,r)):(T="error",b)}function g(e,t,r){return"endTag"!=e?(T="error",g):(u(r),m)}function b(e,t,r){return T="error",g(e,t,r)}function y(e,t,r){if("word"==e)return T="attribute",k;if("endTag"==e||"selfcloseTag"==e){var n=r.tagName,o=r.tagStart;return r.tagName=r.tagStart=null,"selfcloseTag"==e||M.autoSelfClosers.hasOwnProperty(n)?p(r,n):(p(r,n),r.context=new d(r,n,o==r.indented)),m}return T="error",y}function k(e,t,r){return"equals"==e?v:(M.allowMissing||(T="error"),y(e,t,r))}function v(e,t,r){return"string"==e?w:"word"==e&&M.allowUnquoted?(T="string",y):(T="error",y(e,t,r))}function w(e,t,r){return"string"==e?w:y(e,t,r)}var x=n.indentUnit,M={},z=o.htmlMode?t:r;for(var j in z)M[j]=z[j];for(var j in o)M[j]=o[j];var S,T;return a.isInText=!0,{startState:function(e){var t={tokenize:a,state:m,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;S=null;var r=t.tokenize(e,t);return(r||S)&&"comment"!=r&&(T=null,t.state=t.state(S||r,e,t),T&&(r="error"==T?r+" error":T)),r},indent:function(t,r,n){var o=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+x;if(o&&o.noIndent)return e.Pass;if(t.tokenize!=i&&t.tokenize!=a)return n?n.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==M.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+x*(M.multilineTagIndentFactor||1);if(M.alignCDATA&&/$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:M.htmlMode?"html":"xml",helperType:M.htmlMode?"html":"xml",skipAttribute:function(e){e.state==v&&(e.state=y)}}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("mode/javascript/javascript",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("javascript",function(t,r){function n(e){for(var t,r=!1,n=!1;null!=(t=e.next());){if(!r){if("/"==t&&!n)return;"["==t?n=!0:n&&"]"==t&&(n=!1)}r=!r&&"\\"==t}}function o(e,t,r){return Ve=e,Be=r,t}function a(e,t){var r=e.next();if('"'==r||"'"==r)return t.tokenize=i(r),t.tokenize(e,t);if("."==r&&e.match(/^\d+(?:[eE][+\-]?\d+)?/))return o("number","number");if("."==r&&e.match(".."))return o("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return o(r);if("="==r&&e.eat(">"))return o("=>","operator");if("0"==r&&e.match(/^(?:x[\da-f]+|o[0-7]+|b[01]+)n?/i))return o("number","number");if(/\d/.test(r))return e.match(/^\d*(?:n|(?:\.\d*)?(?:[eE][+\-]?\d+)?)?/),o("number","number");if("/"==r)return e.eat("*")?(t.tokenize=l,l(e,t)):e.eat("/")?(e.skipToEnd(),o("comment","comment")):$e(e,t,1)?(n(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),o("regexp","string-2")):(e.eat("="),o("operator","operator",e.current()));if("`"==r)return t.tokenize=s,s(e,t);if("#"==r)return e.skipToEnd(),o("error","error");if(Ge.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),o("operator","operator",e.current());if(Ue.test(r)){e.eatWhile(Ue);var a=e.current();if("."!=t.lastType){if(He.propertyIsEnumerable(a)){var c=He[a];return o(c.type,c.style,a)}if("async"==a&&e.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return o("async","keyword",a)}return o("variable","variable",a)}}function i(e){return function(t,r){var n,i=!1;if(Le&&"@"==t.peek()&&t.match(Re))return r.tokenize=a,o("jsonld-keyword","meta");for(;null!=(n=t.next())&&(n!=e||i);)i=!i&&"\\"==n;return i||(r.tokenize=a),o("string","string")}}function l(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=a;break}n="*"==r}return o("comment","comment")}function s(e,t){for(var r,n=!1;null!=(r=e.next());){if(!n&&("`"==r||"$"==r&&e.eat("{"))){t.tokenize=a;break}n=!n&&"\\"==r}return o("quasi","string-2",e.current())}function c(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var r=e.string.indexOf("=>",e.start);if(!(r<0)){if(Fe){var n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,r));n&&(r=n.index)}for(var o=0,a=!1,i=r-1;i>=0;--i){var l=e.string.charAt(i),s=Ye.indexOf(l);if(s>=0&&s<3){if(!o){++i;break}if(0==--o){"("==l&&(a=!0);break}}else if(s>=3&&s<6)++o;else if(Ue.test(l))a=!0;else{if(/["'\/]/.test(l))return;if(a&&!o){++i;break}}}a&&!o&&(t.fatArrowAt=i)}}function d(e,t,r,n,o,a){this.indented=e,this.column=t,this.type=r,this.prev=o,this.info=a,null!=n&&(this.align=n)}function u(e,t){for(var r=e.localVars;r;r=r.next)if(r.name==t)return!0;for(var n=e.context;n;n=n.prev)for(var r=n.vars;r;r=r.next)if(r.name==t)return!0}function p(e,t,r,n,o){var a=e.cc;for(Ze.state=e,Ze.stream=o,Ze.marked=null,Ze.cc=a,Ze.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;){if((a.length?a.pop():De?C:T)(r,n)){for(;a.length&&a[a.length-1].lex;)a.pop()();return Ze.marked?Ze.marked:"variable"==r&&u(e,n)?"variable-2":t}}}function m(){for(var e=arguments.length-1;e>=0;e--)Ze.cc.push(arguments[e])}function f(){return m.apply(null,arguments),!0}function h(e,t){for(var r=t;r;r=r.next)if(r.name==e)return!0;return!1}function g(e){var t=Ze.state;if(Ze.marked="def",t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var n=b(e,t.context);if(null!=n)return void(t.context=n)}else if(!h(e,t.localVars))return void(t.localVars=new v(e,t.localVars));r.globalVars&&!h(e,t.globalVars)&&(t.globalVars=new v(e,t.globalVars))}function b(e,t){if(t){if(t.block){var r=b(e,t.prev);return r?r==t.prev?t:new k(r,t.vars,!0):null}return h(e,t.vars)?t:new k(t.prev,new v(e,t.vars),!1)}return null}function y(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function k(e,t,r){this.prev=e,this.vars=t,this.block=r}function v(e,t){this.name=e,this.next=t}function w(){Ze.state.context=new k(Ze.state.context,Ze.state.localVars,!1),Ze.state.localVars=Je}function x(){Ze.state.context=new k(Ze.state.context,Ze.state.localVars,!0),Ze.state.localVars=null}function M(){Ze.state.localVars=Ze.state.context.vars,Ze.state.context=Ze.state.context.prev}function z(e,t){var r=function(){var r=Ze.state,n=r.indented;if("stat"==r.lexical.type)n=r.lexical.indented;else for(var o=r.lexical;o&&")"==o.type&&o.align;o=o.prev)n=o.indented;r.lexical=new d(n,Ze.stream.column(),e,null,r.lexical,t)};return r.lex=!0,r}function j(){var e=Ze.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function S(e){function t(r){return r==e?f():";"==e||"}"==r||")"==r||"]"==r?m():f(t)}return t}function T(e,t){return"var"==e?f(z("vardef",t),se,S(";"),j):"keyword a"==e?f(z("form"),P,T,j):"keyword b"==e?f(z("form"),T,j):"keyword d"==e?Ze.stream.match(/^\s*$/,!1)?f():f(z("stat"),E,S(";"),j):"debugger"==e?f(S(";")):"{"==e?f(z("}"),x,X,j,M):";"==e?f():"if"==e?("else"==Ze.state.lexical.info&&Ze.state.cc[Ze.state.cc.length-1]==j&&Ze.state.cc.pop()(),f(z("form"),P,T,j,me)):"function"==e?f(ke):"for"==e?f(z("form"),fe,T,j):"class"==e||Fe&&"interface"==t?(Ze.marked="keyword",f(z("form"),xe,j)):"variable"==e?Fe&&"declare"==t?(Ze.marked="keyword",f(T)):Fe&&("module"==t||"enum"==t||"type"==t)&&Ze.stream.match(/^\s*\w/,!1)?(Ze.marked="keyword","enum"==t?f(Oe):"type"==t?f(ee,S("operator"),ee,S(";")):f(z("form"),ce,S("{"),z("}"),X,j,j)):Fe&&"namespace"==t?(Ze.marked="keyword",f(z("form"),C,X,j)):Fe&&"abstract"==t?(Ze.marked="keyword",f(T)):f(z("stat"),D):"switch"==e?f(z("form"),P,S("{"),z("}","switch"),x,X,j,j,M):"case"==e?f(C,S(":")):"default"==e?f(S(":")):"catch"==e?f(z("form"),w,A,T,j,M):"export"==e?f(z("stat"),Se,j):"import"==e?f(z("stat"),Ae,j):"async"==e?f(T):"@"==t?f(C,T):m(z("stat"),C,S(";"),j)}function A(e){if("("==e)return f(ve,S(")"))}function C(e,t){return I(e,t,!1)}function q(e,t){return I(e,t,!0)}function P(e){return"("!=e?m():f(z(")"),C,S(")"),j)}function I(e,t,r){if(Ze.state.fatArrowAt==Ze.stream.start){var n=r?B:V;if("("==e)return f(w,z(")"),R(ve,")"),j,S("=>"),n,M);if("variable"==e)return m(w,ce,S("=>"),n,M)}var o=r?N:O;return Xe.hasOwnProperty(e)?f(o):"function"==e?f(ke,o):"class"==e||Fe&&"interface"==t?(Ze.marked="keyword",f(z("form"),we,j)):"keyword c"==e||"async"==e?f(r?q:C):"("==e?f(z(")"),E,S(")"),j,o):"operator"==e||"spread"==e?f(r?q:C):"["==e?f(z("]"),Ee,j,o):"{"==e?Y(U,"}",null,o):"quasi"==e?m(K,o):"new"==e?f(_(r)):"import"==e?f(C):f()}function E(e){return e.match(/[;\}\)\],]/)?m():m(C)}function O(e,t){return","==e?f(C):N(e,t,!1)}function N(e,t,r){var n=0==r?O:N,o=0==r?C:q;return"=>"==e?f(w,r?B:V,M):"operator"==e?/\+\+|--/.test(t)||Fe&&"!"==t?f(n):Fe&&"<"==t&&Ze.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?f(z(">"),R(ee,">"),j,n):"?"==t?f(C,S(":"),o):f(o):"quasi"==e?m(K,n):";"!=e?"("==e?Y(q,")","call",n):"."==e?f(F,n):"["==e?f(z("]"),E,S("]"),j,n):Fe&&"as"==t?(Ze.marked="keyword",f(ee,n)):"regexp"==e?(Ze.state.lastType=Ze.marked="operator",Ze.stream.backUp(Ze.stream.pos-Ze.stream.start-1),f(o)):void 0:void 0}function K(e,t){return"quasi"!=e?m():"${"!=t.slice(t.length-2)?f(K):f(C,$)}function $(e){if("}"==e)return Ze.marked="string-2",Ze.state.tokenize=s,f(K)}function V(e){return c(Ze.stream,Ze.state),m("{"==e?T:C)}function B(e){return c(Ze.stream,Ze.state),m("{"==e?T:q)}function _(e){return function(t){return"."==t?f(e?L:W):"variable"==t&&Fe?f(ae,e?N:O):m(e?q:C)}}function W(e,t){if("target"==t)return Ze.marked="keyword",f(O)}function L(e,t){if("target"==t)return Ze.marked="keyword",f(N)}function D(e){return":"==e?f(j,T):m(O,S(";"),j)}function F(e){if("variable"==e)return Ze.marked="property",f()}function U(e,t){if("async"==e)return Ze.marked="property",f(U);if("variable"==e||"keyword"==Ze.style){if(Ze.marked="property","get"==t||"set"==t)return f(H);var r;return Fe&&Ze.state.fatArrowAt==Ze.stream.start&&(r=Ze.stream.match(/^\s*:\s*/,!1))&&(Ze.state.fatArrowAt=Ze.stream.pos+r[0].length),f(G)}return"number"==e||"string"==e?(Ze.marked=Le?"property":Ze.style+" property",f(G)):"jsonld-keyword"==e?f(G):Fe&&y(t)?(Ze.marked="keyword",f(U)):"["==e?f(C,Z,S("]"),G):"spread"==e?f(q,G):"*"==t?(Ze.marked="keyword",f(U)):":"==e?m(G):void 0}function H(e){return"variable"!=e?m(G):(Ze.marked="property",f(ke))}function G(e){return":"==e?f(q):"("==e?m(ke):void 0}function R(e,t,r){function n(o,a){if(r?r.indexOf(o)>-1:","==o){var i=Ze.state.lexical;return"call"==i.info&&(i.pos=(i.pos||0)+1),f(function(r,n){return r==t||n==t?m():m(e)},n)}return o==t||a==t?f():f(S(t))}return function(r,o){return r==t||o==t?f():m(e,n)}}function Y(e,t,r){for(var n=3;n"),ee):void 0}function te(e){if("=>"==e)return f(ee)}function re(e,t){return"variable"==e||"keyword"==Ze.style?(Ze.marked="property",f(re)):"?"==t?f(re):":"==e?f(ee):"["==e?f(C,Z,S("]"),re):void 0}function ne(e,t){return"variable"==e&&Ze.stream.match(/^\s*[?:]/,!1)||"?"==t?f(ne):":"==e?f(ee):m(ee)}function oe(e,t){return"<"==t?f(z(">"),R(ee,">"),j,oe):"|"==t||"."==e||"&"==t?f(ee):"["==e?f(S("]"),oe):"extends"==t||"implements"==t?(Ze.marked="keyword",f(ee)):void 0}function ae(e,t){if("<"==t)return f(z(">"),R(ee,">"),j,oe)}function ie(){return m(ee,le)}function le(e,t){if("="==t)return f(ee)}function se(e,t){return"enum"==t?(Ze.marked="keyword",f(Oe)):m(ce,Z,ue,pe)}function ce(e,t){return Fe&&y(t)?(Ze.marked="keyword",f(ce)):"variable"==e?(g(t),f()):"spread"==e?f(ce):"["==e?Y(ce,"]"):"{"==e?Y(de,"}"):void 0}function de(e,t){return"variable"!=e||Ze.stream.match(/^\s*:/,!1)?("variable"==e&&(Ze.marked="property"),"spread"==e?f(ce):"}"==e?m():f(S(":"),ce,ue)):(g(t),f(ue))}function ue(e,t){if("="==t)return f(q)}function pe(e){if(","==e)return f(se)}function me(e,t){if("keyword b"==e&&"else"==t)return f(z("form","else"),T,j)}function fe(e,t){return"await"==t?f(fe):"("==e?f(z(")"),he,S(")"),j):void 0}function he(e){return"var"==e?f(se,S(";"),be):";"==e?f(be):"variable"==e?f(ge):m(C,S(";"),be)}function ge(e,t){return"in"==t||"of"==t?(Ze.marked="keyword",f(C)):f(O,be)}function be(e,t){return";"==e?f(ye):"in"==t||"of"==t?(Ze.marked="keyword",f(C)):m(C,S(";"),ye)}function ye(e){")"!=e&&f(C)}function ke(e,t){return"*"==t?(Ze.marked="keyword",f(ke)):"variable"==e?(g(t),f(ke)):"("==e?f(w,z(")"),R(ve,")"),j,J,T,M):Fe&&"<"==t?f(z(">"),R(ie,">"),j,ke):void 0}function ve(e,t){return"@"==t&&f(C,ve),"spread"==e?f(ve):Fe&&y(t)?(Ze.marked="keyword",f(ve)):m(ce,Z,ue)}function we(e,t){return"variable"==e?xe(e,t):Me(e,t)}function xe(e,t){if("variable"==e)return g(t),f(Me)}function Me(e,t){return"<"==t?f(z(">"),R(ie,">"),j,Me):"extends"==t||"implements"==t||Fe&&","==e?("implements"==t&&(Ze.marked="keyword"),f(Fe?ee:C,Me)):"{"==e?f(z("}"),ze,j):void 0}function ze(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||Fe&&y(t))&&Ze.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(Ze.marked="keyword",f(ze)):"variable"==e||"keyword"==Ze.style?(Ze.marked="property",f(Fe?je:ke,ze)):"["==e?f(C,Z,S("]"),Fe?je:ke,ze):"*"==t?(Ze.marked="keyword",f(ze)):";"==e?f(ze):"}"==e?f():"@"==t?f(C,ze):void 0}function je(e,t){return"?"==t?f(je):":"==e?f(ee,ue):"="==t?f(q):m(ke)}function Se(e,t){return"*"==t?(Ze.marked="keyword",f(Ie,S(";"))):"default"==t?(Ze.marked="keyword",f(C,S(";"))):"{"==e?f(R(Te,"}"),Ie,S(";")):m(T)}function Te(e,t){return"as"==t?(Ze.marked="keyword",f(S("variable"))):"variable"==e?m(q,Te):void 0}function Ae(e){return"string"==e?f():"("==e?m(C):m(Ce,qe,Ie)}function Ce(e,t){return"{"==e?Y(Ce,"}"):("variable"==e&&g(t),"*"==t&&(Ze.marked="keyword"),f(Pe))}function qe(e){if(","==e)return f(Ce,qe)}function Pe(e,t){if("as"==t)return Ze.marked="keyword",f(Ce)}function Ie(e,t){if("from"==t)return Ze.marked="keyword",f(C)}function Ee(e){return"]"==e?f():m(R(q,"]"))}function Oe(){return m(z("form"),ce,S("{"),z("}"),R(Ne,"}"),j,j)}function Ne(){return m(ce,ue)}function Ke(e,t){return"operator"==e.lastType||","==e.lastType||Ge.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function $e(e,t,r){return t.tokenize==a&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(r||0)))}var Ve,Be,_e=t.indentUnit,We=r.statementIndent,Le=r.jsonld,De=r.json||Le,Fe=r.typescript,Ue=r.wordCharacters||/[\w$\xa1-\uffff]/,He=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),r=e("keyword b"),n=e("keyword c"),o=e("keyword d"),a=e("operator"),i={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:r,do:r,try:r,finally:r,return:o,break:o,continue:o,new:e("new"),delete:n,void:n,throw:n,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:a,typeof:a,instanceof:a,true:i,false:i,null:i,undefined:i,NaN:i,Infinity:i,this:e("this"),class:e("class"),super:e("atom"),yield:n,export:e("export"),import:e("import"),extends:n,await:n}}(),Ge=/[+\-*&%=<>!?|~^@]/,Re=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/,Ye="([{}])",Xe={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0},Ze={state:null,column:null,marked:null,cc:null},Je=new v("this",new v("arguments",null));return M.lex=!0,j.lex=!0,{startState:function(e){var t={tokenize:a,lastType:"sof",cc:[],lexical:new d((e||0)-_e,0,"block",!1),localVars:r.localVars,context:r.localVars&&new k(null,null,!1),indented:e||0};return r.globalVars&&"object"==typeof r.globalVars&&(t.globalVars=r.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),c(e,t)),t.tokenize!=l&&e.eatSpace())return null;var r=t.tokenize(e,t);return"comment"==Ve?r:(t.lastType="operator"!=Ve||"++"!=Be&&"--"!=Be?Ve:"incdec",p(t,r,Ve,Be,e))},indent:function(t,n){if(t.tokenize==l)return e.Pass;if(t.tokenize!=a)return 0;var o,i=n&&n.charAt(0),s=t.lexical;if(!/^\s*else\b/.test(n))for(var c=t.cc.length-1;c>=0;--c){var d=t.cc[c];if(d==j)s=s.prev;else if(d!=me)break}for(;("stat"==s.type||"form"==s.type)&&("}"==i||(o=t.cc[t.cc.length-1])&&(o==O||o==N)&&!/^[,\.=+\-*:?[\(]/.test(n));)s=s.prev;We&&")"==s.type&&"stat"==s.prev.type&&(s=s.prev);var u=s.type,p=i==u;return"vardef"==u?s.indented+("operator"==t.lastType||","==t.lastType?s.info.length+1:0):"form"==u&&"{"==i?s.indented:"form"==u?s.indented+_e:"stat"==u?s.indented+(Ke(t,n)?We||_e:0):"switch"!=s.info||p||0==r.doubleIndentSwitch?s.align?s.column+(p?0:1):s.indented+(p?0:_e):s.indented+(/^(?:case|default)\b/.test(n)?_e:2*_e)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:De?null:"/*",blockCommentEnd:De?null:"*/",blockCommentContinue:De?null:" * ",lineComment:De?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:De?"json":"javascript",jsonldMode:Le,jsonMode:De,expressionAllowed:$e,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=C&&t!=q||e.cc.pop()}}}),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("mode/css/css",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e){for(var t={},r=0;r*\/]/.test(r)?n(null,"select-op"):"."==r&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?n("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(r)?n(null,r):("u"==r||"U"==r)&&e.match(/rl(-prefix)?\(/i)||("d"==r||"D"==r)&&e.match("omain(",!0,!0)||("r"==r||"R"==r)&&e.match("egexp(",!0,!0)?(e.backUp(1),t.tokenize=i,n("property","word")):/[\w\\\-]/.test(r)?(e.eatWhile(/[\w\\\-]/),n("property","word")):n(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),n("number","unit")):e.match(/^-[\w\\\-]+/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?n("variable-2","variable-definition"):n("variable-2","variable")):e.match(/^\w+-/)?n("meta","meta"):void 0}function a(e){return function(t,r){for(var o,a=!1;null!=(o=t.next());){if(o==e&&!a){")"==e&&t.backUp(1);break}a=!a&&"\\"==o}return(o==e||!a&&")"!=e)&&(r.tokenize=null),n("string","string")}}function i(e,t){return e.next(),e.match(/\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=a(")"),n(null,"(")}function l(e,t,r){this.type=e,this.indent=t,this.prev=r}function s(e,t,r,n){return e.context=new l(r,t.indentation()+(!1===n?0:g),e.context),r}function c(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function d(e,t,r){return P[r.context.type](e,t,r)}function u(e,t,r,n){for(var o=n||1;o>0;o--)r.context=r.context.prev;return d(e,t,r)}function p(e){var t=e.current().toLowerCase();h=T.hasOwnProperty(t)?"atom":S.hasOwnProperty(t)?"keyword":"variable"}var m=r.inline;r.propertyKeywords||(r=e.resolveMode("text/css"));var f,h,g=t.indentUnit,b=r.tokenHooks,y=r.documentTypes||{},k=r.mediaTypes||{},v=r.mediaFeatures||{},w=r.mediaValueKeywords||{},x=r.propertyKeywords||{},M=r.nonStandardPropertyKeywords||{},z=r.fontProperties||{},j=r.counterDescriptors||{},S=r.colorKeywords||{},T=r.valueKeywords||{},A=r.allowNested,C=r.lineComment,q=!0===r.supportsAtComponent,P={};return P.top=function(e,t,r){if("{"==e)return s(r,t,"block");if("}"==e&&r.context.prev)return c(r);if(q&&/@component/i.test(e))return s(r,t,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return s(r,t,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return s(r,t,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return r.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return s(r,t,"at");if("hash"==e)h="builtin";else if("word"==e)h="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return s(r,t,"interpolation");if(":"==e)return"pseudo";if(A&&"("==e)return s(r,t,"parens")}return r.context.type},P.block=function(e,t,r){if("word"==e){var n=t.current().toLowerCase();return x.hasOwnProperty(n)?(h="property","maybeprop"):M.hasOwnProperty(n)?(h="string-2","maybeprop"):A?(h=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(h+=" error","maybeprop")}return"meta"==e?"block":A||"hash"!=e&&"qualifier"!=e?P.top(e,t,r):(h="error","block")},P.maybeprop=function(e,t,r){return":"==e?s(r,t,"prop"):d(e,t,r)},P.prop=function(e,t,r){if(";"==e)return c(r);if("{"==e&&A)return s(r,t,"propBlock");if("}"==e||"{"==e)return u(e,t,r);if("("==e)return s(r,t,"parens");if("hash"!=e||/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(t.current())){if("word"==e)p(t);else if("interpolation"==e)return s(r,t,"interpolation")}else h+=" error";return"prop"},P.propBlock=function(e,t,r){return"}"==e?c(r):"word"==e?(h="property","maybeprop"):r.context.type},P.parens=function(e,t,r){return"{"==e||"}"==e?u(e,t,r):")"==e?c(r):"("==e?s(r,t,"parens"):"interpolation"==e?s(r,t,"interpolation"):("word"==e&&p(t),"parens")},P.pseudo=function(e,t,r){return"meta"==e?"pseudo":"word"==e?(h="variable-3",r.context.type):d(e,t,r)},P.documentTypes=function(e,t,r){return"word"==e&&y.hasOwnProperty(t.current())?(h="tag",r.context.type):P.atBlock(e,t,r)},P.atBlock=function(e,t,r){if("("==e)return s(r,t,"atBlock_parens");if("}"==e||";"==e)return u(e,t,r);if("{"==e)return c(r)&&s(r,t,A?"block":"top");if("interpolation"==e)return s(r,t,"interpolation");if("word"==e){var n=t.current().toLowerCase();h="only"==n||"not"==n||"and"==n||"or"==n?"keyword":k.hasOwnProperty(n)?"attribute":v.hasOwnProperty(n)?"property":w.hasOwnProperty(n)?"keyword":x.hasOwnProperty(n)?"property":M.hasOwnProperty(n)?"string-2":T.hasOwnProperty(n)?"atom":S.hasOwnProperty(n)?"keyword":"error"}return r.context.type},P.atComponentBlock=function(e,t,r){return"}"==e?u(e,t,r):"{"==e?c(r)&&s(r,t,A?"block":"top",!1):("word"==e&&(h="error"),r.context.type)},P.atBlock_parens=function(e,t,r){return")"==e?c(r):"{"==e||"}"==e?u(e,t,r,2):P.atBlock(e,t,r)},P.restricted_atBlock_before=function(e,t,r){return"{"==e?s(r,t,"restricted_atBlock"):"word"==e&&"@counter-style"==r.stateArg?(h="variable","restricted_atBlock_before"):d(e,t,r)},P.restricted_atBlock=function(e,t,r){return"}"==e?(r.stateArg=null,c(r)):"word"==e?(h="@font-face"==r.stateArg&&!z.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==r.stateArg&&!j.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},P.keyframes=function(e,t,r){return"word"==e?(h="variable","keyframes"):"{"==e?s(r,t,"top"):d(e,t,r)},P.at=function(e,t,r){return";"==e?c(r):"{"==e||"}"==e?u(e,t,r):("word"==e?h="tag":"hash"==e&&(h="builtin"),"at")},P.interpolation=function(e,t,r){return"}"==e?c(r):"{"==e||";"==e?u(e,t,r):("word"==e?h="variable":"variable"!=e&&"("!=e&&")"!=e&&(h="error"),"interpolation")},{startState:function(e){return{tokenize:null,state:m?"block":"top",stateArg:null,context:new l(m?"block":"top",e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var r=(t.tokenize||o)(e,t);return r&&"object"==typeof r&&(f=r[1],r=r[0]),h=r,"comment"!=f&&(t.state=P[t.state](f,e,t)),h},indent:function(e,t){var r=e.context,n=t&&t.charAt(0),o=r.indent;return"prop"!=r.type||"}"!=n&&")"!=n||(r=r.prev),r.prev&&("}"!=n||"block"!=r.type&&"top"!=r.type&&"interpolation"!=r.type&&"restricted_atBlock"!=r.type?(")"!=n||"parens"!=r.type&&"atBlock_parens"!=r.type)&&("{"!=n||"at"!=r.type&&"atBlock"!=r.type)||(o=Math.max(0,r.indent-g)):(r=r.prev,o=r.indent)),o},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:C,fold:"brace"}}) +;var n=["domain","regexp","url","url-prefix"],o=t(n),a=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],i=t(a),l=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover"],s=t(l),c=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive"],d=t(c),u=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],p=t(u),m=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],f=t(m),h=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],g=t(h),b=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],y=t(b),k=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],v=t(k),w=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],x=t(w),M=n.concat(a).concat(l).concat(c).concat(u).concat(m).concat(k).concat(w);e.registerHelper("hintWords","css",M),e.defineMIME("text/css",{documentTypes:o,mediaTypes:i,mediaFeatures:s,mediaValueKeywords:d,propertyKeywords:p,nonStandardPropertyKeywords:f,fontProperties:g,counterDescriptors:y,colorKeywords:v,valueKeywords:x,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=r,r(e,t))}},name:"css"}),e.defineMIME("text/x-scss",{mediaTypes:i,mediaFeatures:s,mediaValueKeywords:d,propertyKeywords:p,nonStandardPropertyKeywords:f,colorKeywords:v,valueKeywords:x,fontProperties:g,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=r,r(e,t)):["operator","operator"]},":":function(e){return!!e.match(/\s*\{/,!1)&&[null,null]},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(e){return!!e.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),e.defineMIME("text/x-less",{mediaTypes:i,mediaFeatures:s,mediaValueKeywords:d,propertyKeywords:p,nonStandardPropertyKeywords:f,colorKeywords:v,valueKeywords:x,fontProperties:g,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=r,r(e,t)):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),e.defineMIME("text/x-gss",{documentTypes:o,mediaTypes:i,mediaFeatures:s,propertyKeywords:p,nonStandardPropertyKeywords:f,fontProperties:g,counterDescriptors:y,colorKeywords:v,valueKeywords:x,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=r,r(e,t))}},name:"css",helperType:"gss"})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../xml/xml"),require("../javascript/javascript"),require("../css/css")):"function"==typeof define&&define.amd?define("mode/htmlmixed/htmlmixed",["../../lib/codemirror","../xml/xml","../javascript/javascript","../css/css"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t,r){var n=e.current(),o=n.search(t);return o>-1?e.backUp(n.length-o):n.match(/<\/?$/)&&(e.backUp(n.length),e.match(t,!1)||e.match(n)),r}function r(e){var t=s[e];return t||(s[e]=new RegExp("\\s+"+e+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*"))}function n(e,t){var n=e.match(r(t));return n?/^\s*(.*?)\s*$/.exec(n[2])[1]:""}function o(e,t){return new RegExp((t?"^":"")+"","i")}function a(e,t){for(var r in e)for(var n=t[r]||(t[r]=[]),o=e[r],a=o.length-1;a>=0;a--)n.unshift(o[a])}function i(e,t){for(var r=0;r\s\/]/.test(n.current())&&(l=a.htmlState.tagName&&a.htmlState.tagName.toLowerCase())&&d.hasOwnProperty(l))a.inTag=l+" ";else if(a.inTag&&p&&/>$/.test(n.current())){var m=/^([\S]+) (.*)/.exec(a.inTag);a.inTag=null;var f=">"==n.current()&&i(d[m[1]],m[2]),h=e.getMode(r,f),g=o(m[1],!0),b=o(m[1],!1);a.token=function(e,r){return e.match(g,!1)?(r.token=s,r.localState=r.localMode=null,null):t(e,b,r.localMode.token(e,r.localState))},a.localMode=h,a.localState=e.startState(h,c.indent(a.htmlState,""))}else a.inTag&&(a.inTag+=n.current(),n.eol()&&(a.inTag+=" "));return u}var c=e.getMode(r,{name:"xml",htmlMode:!0,multilineTagIndentFactor:n.multilineTagIndentFactor,multilineTagIndentPastTag:n.multilineTagIndentPastTag}),d={},u=n&&n.tags,p=n&&n.scriptTypes;if(a(l,d),u&&a(u,d),p)for(var m=p.length-1;m>=0;m--)d.script.unshift(["type",p[m].matches,p[m].mode]);return{startState:function(){return{token:s,inTag:null,localMode:null,localState:null,htmlState:e.startState(c)}},copyState:function(t){var r;return t.localState&&(r=e.copyState(t.localMode,t.localState)),{token:t.token,inTag:t.inTag,localMode:t.localMode,localState:r,htmlState:e.copyState(c,t.htmlState)}},token:function(e,t){return t.token(e,t)},indent:function(t,r,n){return!t.localMode||/^\s*<\//.test(r)?c.indent(t.htmlState,r):t.localMode.indent?t.localMode.indent(t.localState,r,n):e.Pass},innerMode:function(e){return{state:e.localState||e.htmlState,mode:e.localMode||c}}}},"xml","javascript","css"),e.defineMIME("text/html","htmlmixed")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/mode/multiplex",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.multiplexingMode=function(t){function r(e,t,r,n){if("string"==typeof t){var o=e.indexOf(t,r);return n&&o>-1?o+t.length:o}var a=t.exec(r?e.slice(r):e);return a?a.index+r+(n?a[0].length:0):-1}var n=Array.prototype.slice.call(arguments,1);return{startState:function(){return{outer:e.startState(t),innerActive:null,inner:null}},copyState:function(r){return{outer:e.copyState(t,r.outer),innerActive:r.innerActive,inner:r.innerActive&&e.copyState(r.innerActive.mode,r.inner)}},token:function(o,a){if(a.innerActive){var i=a.innerActive,l=o.string;if(!i.close&&o.sol())return a.innerActive=a.inner=null,this.token(o,a);var s=i.close?r(l,i.close,o.pos,i.parseDelimiters):-1;if(s==o.pos&&!i.parseDelimiters)return o.match(i.close),a.innerActive=a.inner=null,i.delimStyle&&i.delimStyle+" "+i.delimStyle+"-close";s>-1&&(o.string=l.slice(0,s));var c=i.mode.token(o,a.inner);return s>-1&&(o.string=l),s==o.pos&&i.parseDelimiters&&(a.innerActive=a.inner=null),i.innerStyle&&(c=c?c+" "+i.innerStyle:i.innerStyle),c}for(var d=1/0,l=o.string,u=0;u";return e.multiplexingMode(e.getMode(t,"htmlmixed"),{open:r.openComment||"<%--",close:n,delimStyle:"comment",mode:{token:function(e){return e.skipTo(n)||e.skipToEnd(),"comment"}}},{open:r.open||r.scriptStartRegex||"<%",close:r.close||r.scriptEndRegex||"%>",mode:e.getMode(t,r.scriptingModeSpec)})},"htmlmixed"),e.defineMIME("application/x-ejs",{name:"htmlembedded",scriptingModeSpec:"javascript"}),e.defineMIME("application/x-aspx",{name:"htmlembedded",scriptingModeSpec:"text/x-csharp"}),e.defineMIME("application/x-jsp",{name:"htmlembedded",scriptingModeSpec:"text/x-java"}),e.defineMIME("application/x-erb",{name:"htmlembedded",scriptingModeSpec:"ruby"})}),function(e){"function"==typeof define&&define("modeHtml",["mode/htmlembedded/htmlembedded.js"],function(){})}(); \ No newline at end of file diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/js/codemirror.mode.javascript.min.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/js/codemirror.mode.javascript.min.js old mode 100644 new mode 100755 index b3cc3d6..ce745ef --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/js/codemirror.mode.javascript.min.js +++ b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/js/codemirror.mode.javascript.min.js @@ -1 +1 @@ -(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(a){a.defineMode("javascript",function(Z,aj){var l=Z.indentUnit;var A=aj.statementIndent;var aB=aj.jsonld;var z=aj.json||aB;var g=aj.typescript;var au=aj.wordCharacters||/[\w$\xa1-\uffff]/;var ar=function(){function aR(aT){return{type:aT,style:"keyword"}}var aM=aR("keyword a"),aK=aR("keyword b"),aJ=aR("keyword c");var aL=aR("operator"),aP={type:"atom",style:"atom"};var aN={"if":aR("if"),"while":aM,"with":aM,"else":aK,"do":aK,"try":aK,"finally":aK,"return":aJ,"break":aJ,"continue":aJ,"new":aJ,"delete":aJ,"throw":aJ,"debugger":aJ,"var":aR("var"),"const":aR("var"),let:aR("var"),"function":aR("function"),"catch":aR("catch"),"for":aR("for"),"switch":aR("switch"),"case":aR("case"),"default":aR("default"),"in":aL,"typeof":aL,"instanceof":aL,"true":aP,"false":aP,"null":aP,"undefined":aP,"NaN":aP,"Infinity":aP,"this":aR("this"),module:aR("module"),"class":aR("class"),"super":aR("atom"),yield:aJ,"export":aR("export"),"import":aR("import"),"extends":aJ};if(g){var aS={type:"variable",style:"variable-3"};var aO={"interface":aR("interface"),"extends":aR("extends"),constructor:aR("constructor"),"public":aR("public"),"private":aR("private"),"protected":aR("protected"),"static":aR("static"),string:aS,number:aS,bool:aS,any:aS};for(var aQ in aO){aN[aQ]=aO[aQ]}}return aN}();var P=/[+\-*&%=<>!?|~^]/;var aq=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function F(aM){var aK=false,aJ,aL=false;while((aJ=aM.next())!=null){if(!aK){if(aJ=="/"&&!aL){return}if(aJ=="["){aL=true}else{if(aL&&aJ=="]"){aL=false}}}aK=!aK&&aJ=="\\"}}var S,G;function L(aL,aK,aJ){S=aL;G=aJ;return aK}function U(aN,aL){var aJ=aN.next();if(aJ=='"'||aJ=="'"){aL.tokenize=R(aJ);return aL.tokenize(aN,aL)}else{if(aJ=="."&&aN.match(/^\d+(?:[eE][+\-]?\d+)?/)){return L("number","number")}else{if(aJ=="."&&aN.match("..")){return L("spread","meta")}else{if(/[\[\]{}\(\),;\:\.]/.test(aJ)){return L(aJ)}else{if(aJ=="="&&aN.eat(">")){return L("=>","operator")}else{if(aJ=="0"&&aN.eat(/x/i)){aN.eatWhile(/[\da-f]/i);return L("number","number")}else{if(/\d/.test(aJ)){aN.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/);return L("number","number")}else{if(aJ=="/"){if(aN.eat("*")){aL.tokenize=aA;return aA(aN,aL)}else{if(aN.eat("/")){aN.skipToEnd();return L("comment","comment")}else{if(aL.lastType=="operator"||aL.lastType=="keyword c"||aL.lastType=="sof"||/^[\[{}\(,;:]$/.test(aL.lastType)){F(aN);aN.match(/^\b(([gimyu])(?![gimyu]*\2))+\b/);return L("regexp","string-2")}else{aN.eatWhile(P);return L("operator","operator",aN.current())}}}}else{if(aJ=="`"){aL.tokenize=aC;return aC(aN,aL)}else{if(aJ=="#"){aN.skipToEnd();return L("error","error")}else{if(P.test(aJ)){aN.eatWhile(P);return L("operator","operator",aN.current())}else{if(au.test(aJ)){aN.eatWhile(au);var aM=aN.current(),aK=ar.propertyIsEnumerable(aM)&&ar[aM];return(aK&&aL.lastType!=".")?L(aK.type,aK.style,aM):L("variable","variable",aM)}}}}}}}}}}}}}function R(aJ){return function(aN,aL){var aM=false,aK;if(aB&&aN.peek()=="@"&&aN.match(aq)){aL.tokenize=U;return L("jsonld-keyword","meta")}while((aK=aN.next())!=null){if(aK==aJ&&!aM){break}aM=!aM&&aK=="\\"}if(!aM){aL.tokenize=U}return L("string","string")}}function aA(aM,aL){var aJ=false,aK;while(aK=aM.next()){if(aK=="/"&&aJ){aL.tokenize=U;break}aJ=(aK=="*")}return L("comment","comment")}function aC(aM,aK){var aL=false,aJ;while((aJ=aM.next())!=null){if(!aL&&(aJ=="`"||aJ=="$"&&aM.eat("{"))){aK.tokenize=U;break}aL=!aL&&aJ=="\\"}return L("quasi","string-2",aM.current())}var m="([{}])";function ax(aP,aM){if(aM.fatArrowAt){aM.fatArrowAt=null}var aL=aP.string.indexOf("=>",aP.start);if(aL<0){return}var aO=0,aK=false;for(var aQ=aL-1;aQ>=0;--aQ){var aJ=aP.string.charAt(aQ);var aN=m.indexOf(aJ);if(aN>=0&&aN<3){if(!aO){++aQ;break}if(--aO==0){break}}else{if(aN>=3&&aN<6){++aO}else{if(au.test(aJ)){aK=true}else{if(/["'\/]/.test(aJ)){return}else{if(aK&&!aO){++aQ;break}}}}}}if(aK&&!aO){aM.fatArrowAt=aQ}}var b={atom:true,number:true,variable:true,string:true,regexp:true,"this":true,"jsonld-keyword":true};function J(aO,aK,aJ,aN,aL,aM){this.indented=aO;this.column=aK;this.type=aJ;this.prev=aL;this.info=aM;if(aN!=null){this.align=aN}}function s(aM,aL){for(var aK=aM.localVars;aK;aK=aK.next){if(aK.name==aL){return true}}for(var aJ=aM.context;aJ;aJ=aJ.prev){for(var aK=aJ.vars;aK;aK=aK.next){if(aK.name==aL){return true}}}}function f(aN,aK,aJ,aM,aO){var aP=aN.cc;D.state=aN;D.stream=aO;D.marked=null,D.cc=aP;D.style=aK;if(!aN.lexical.hasOwnProperty("align")){aN.lexical.align=true}while(true){var aL=aP.length?aP.pop():z?an:aH;if(aL(aJ,aM)){while(aP.length&&aP[aP.length-1].lex){aP.pop()()}if(D.marked){return D.marked}if(aJ=="variable"&&s(aN,aM)){return"variable-2"}return aK}}}var D={state:null,column:null,marked:null,cc:null};function aa(){for(var aJ=arguments.length-1;aJ>=0;aJ--){D.cc.push(arguments[aJ])}}function ae(){aa.apply(null,arguments);return true}function aw(aK){function aJ(aN){for(var aM=aN;aM;aM=aM.next){if(aM.name==aK){return true}}return false}var aL=D.state;if(aL.context){D.marked="def";if(aJ(aL.localVars)){return}aL.localVars={name:aK,next:aL.localVars}}else{if(aJ(aL.globalVars)){return}if(aj.globalVars){aL.globalVars={name:aK,next:aL.globalVars}}}}var q={name:"this",next:{name:"arguments"}};function w(){D.state.context={prev:D.state.context,vars:D.state.localVars};D.state.localVars=q}function x(){D.state.localVars=D.state.context.vars;D.state.context=D.state.context.prev}function aF(aK,aL){var aJ=function(){var aO=D.state,aM=aO.indented;if(aO.lexical.type=="stat"){aM=aO.lexical.indented}else{for(var aN=aO.lexical;aN&&aN.type==")"&&aN.align;aN=aN.prev){aM=aN.indented}}aO.lexical=new J(aM,D.stream.column(),aK,null,aO.lexical,aL)};aJ.lex=true;return aJ}function h(){var aJ=D.state;if(aJ.lexical.prev){if(aJ.lexical.type==")"){aJ.indented=aJ.lexical.indented}aJ.lexical=aJ.lexical.prev}}h.lex=true;function r(aJ){function aK(aL){if(aL==aJ){return ae()}else{if(aJ==";"){return aa()}else{return ae(aK)}}}return aK}function aH(aJ,aK){if(aJ=="var"){return ae(aF("vardef",aK.length),d,r(";"),h)}if(aJ=="keyword a"){return ae(aF("form"),an,aH,h)}if(aJ=="keyword b"){return ae(aF("form"),aH,h)}if(aJ=="{"){return ae(aF("}"),y,h)}if(aJ==";"){return ae()}if(aJ=="if"){if(D.state.lexical.info=="else"&&D.state.cc[D.state.cc.length-1]==h){D.state.cc.pop()()}return ae(aF("form"),an,aH,h,e)}if(aJ=="function"){return ae(M)}if(aJ=="for"){return ae(aF("form"),u,aH,h)}if(aJ=="variable"){return ae(aF("stat"),aI)}if(aJ=="switch"){return ae(aF("form"),an,aF("}","switch"),r("{"),y,h,h)}if(aJ=="case"){return ae(an,r(":"))}if(aJ=="default"){return ae(r(":"))}if(aJ=="catch"){return ae(aF("form"),w,r("("),af,r(")"),aH,h,x)}if(aJ=="module"){return ae(aF("form"),w,H,x,h)}if(aJ=="class"){return ae(aF("form"),V,h)}if(aJ=="export"){return ae(aF("form"),aG,h)}if(aJ=="import"){return ae(aF("form"),ag,h)}return aa(aF("stat"),an,r(";"),h)}function an(aJ){return Y(aJ,false)}function aE(aJ){return Y(aJ,true)}function Y(aK,aM){if(D.state.fatArrowAt==D.stream.start){var aJ=aM?N:W;if(aK=="("){return ae(w,aF(")"),at(i,")"),h,r("=>"),aJ,x)}else{if(aK=="variable"){return aa(w,i,r("=>"),aJ,x)}}}var aL=aM?j:ab;if(b.hasOwnProperty(aK)){return ae(aL)}if(aK=="function"){return ae(M,aL)}if(aK=="keyword c"){return ae(aM?ak:ai)}if(aK=="("){return ae(aF(")"),ai,az,r(")"),h,aL)}if(aK=="operator"||aK=="spread"){return ae(aM?aE:an)}if(aK=="["){return ae(aF("]"),n,h,aL)}if(aK=="{"){return ay(t,"}",null,aL)}if(aK=="quasi"){return aa(Q,aL)}return ae()}function ai(aJ){if(aJ.match(/[;\}\)\],]/)){return aa()}return aa(an)}function ak(aJ){if(aJ.match(/[;\}\)\],]/)){return aa()}return aa(aE)}function ab(aJ,aK){if(aJ==","){return ae(an)}return j(aJ,aK,false)}function j(aJ,aL,aN){var aK=aN==false?ab:j;var aM=aN==false?an:aE;if(aJ=="=>"){return ae(w,aN?N:W,x)}if(aJ=="operator"){if(/\+\+|--/.test(aL)){return ae(aK)}if(aL=="?"){return ae(an,r(":"),aM)}return ae(aM)}if(aJ=="quasi"){return aa(Q,aK)}if(aJ==";"){return}if(aJ=="("){return ay(aE,")","call",aK)}if(aJ=="."){return ae(al,aK)}if(aJ=="["){return ae(aF("]"),ai,r("]"),h,aK)}}function Q(aJ,aK){if(aJ!="quasi"){return aa()}if(aK.slice(aK.length-2)!="${"){return ae(Q)}return ae(an,p)}function p(aJ){if(aJ=="}"){D.marked="string-2";D.state.tokenize=aC;return ae(Q)}}function W(aJ){ax(D.stream,D.state);return aa(aJ=="{"?aH:an)}function N(aJ){ax(D.stream,D.state);return aa(aJ=="{"?aH:aE)}function aI(aJ){if(aJ==":"){return ae(h,aH)}return aa(ab,r(";"),h)}function al(aJ){if(aJ=="variable"){D.marked="property";return ae()}}function t(aJ,aK){if(aJ=="variable"||D.style=="keyword"){D.marked="property";if(aK=="get"||aK=="set"){return ae(I)}return ae(K)}else{if(aJ=="number"||aJ=="string"){D.marked=aB?"property":(D.style+" property");return ae(K)}else{if(aJ=="jsonld-keyword"){return ae(K)}else{if(aJ=="["){return ae(an,r("]"),K)}}}}}function I(aJ){if(aJ!="variable"){return aa(K)}D.marked="property";return ae(M)}function K(aJ){if(aJ==":"){return ae(aE)}if(aJ=="("){return aa(M)}}function at(aL,aJ){function aK(aN){if(aN==","){var aM=D.state.lexical;if(aM.info=="call"){aM.pos=(aM.pos||0)+1}return ae(aL,aK)}if(aN==aJ){return ae()}return ae(r(aJ))}return function(aM){if(aM==aJ){return ae()}return aa(aL,aK)}}function ay(aM,aJ,aL){for(var aK=3;aK=0;--aL){var aQ=aP.cc[aL];if(aQ==h){aM=aM.prev}else{if(aQ!=e){break}}}}if(aM.type=="stat"&&aO=="}"){aM=aM.prev}if(A&&aM.type==")"&&aM.prev.type=="stat"){aM=aM.prev}var aN=aM.type,aK=aO==aN;if(aN=="vardef"){return aM.indented+(aP.lastType=="operator"||aP.lastType==","?aM.info+1:0)}else{if(aN=="form"&&aO=="{"){return aM.indented}else{if(aN=="form"){return aM.indented+l}else{if(aN=="stat"){return aM.indented+(ao(aP,aJ)?A||l:0)}else{if(aM.info=="switch"&&!aK&&aj.doubleIndentSwitch!=false){return aM.indented+(/^(?:case|default)\b/.test(aJ)?l:2*l)}else{if(aM.align){return aM.column+(aK?0:1)}else{return aM.indented+(aK?0:l)}}}}}}},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:z?null:"/*",blockCommentEnd:z?null:"*/",lineComment:z?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:z?"json":"javascript",jsonldMode:aB,jsonMode:z}});a.registerHelper("wordChars","javascript",/[\w$]/);a.defineMIME("text/javascript","javascript");a.defineMIME("text/ecmascript","javascript");a.defineMIME("application/javascript","javascript");a.defineMIME("application/x-javascript","javascript");a.defineMIME("application/ecmascript","javascript");a.defineMIME("application/json",{name:"javascript",json:true});a.defineMIME("application/x-json",{name:"javascript",json:true});a.defineMIME("application/ld+json",{name:"javascript",jsonld:true});a.defineMIME("text/typescript",{name:"javascript",typescript:true});a.defineMIME("application/typescript",{name:"javascript",typescript:true})}); \ No newline at end of file +!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("mode/javascript/javascript.js",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("javascript",function(t,r){function n(e){for(var t,r=!1,n=!1;null!=(t=e.next());){if(!r){if("/"==t&&!n)return;"["==t?n=!0:n&&"]"==t&&(n=!1)}r=!r&&"\\"==t}}function a(e,t,r){return Ue=e,Be=r,t}function i(e,t){var r=e.next();if('"'==r||"'"==r)return t.tokenize=o(r),t.tokenize(e,t);if("."==r&&e.match(/^\d+(?:[eE][+\-]?\d+)?/))return a("number","number");if("."==r&&e.match(".."))return a("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return a(r);if("="==r&&e.eat(">"))return a("=>","operator");if("0"==r&&e.match(/^(?:x[\da-f]+|o[0-7]+|b[01]+)n?/i))return a("number","number");if(/\d/.test(r))return e.match(/^\d*(?:n|(?:\.\d*)?(?:[eE][+\-]?\d+)?)?/),a("number","number");if("/"==r)return e.eat("*")?(t.tokenize=c,c(e,t)):e.eat("/")?(e.skipToEnd(),a("comment","comment")):Ne(e,t,1)?(n(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),a("regexp","string-2")):(e.eat("="),a("operator","operator",e.current()));if("`"==r)return t.tokenize=s,s(e,t);if("#"==r)return e.skipToEnd(),a("error","error");if(Le.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),a("operator","operator",e.current());if(Ge.test(r)){e.eatWhile(Ge);var i=e.current();if("."!=t.lastType){if(Ke.propertyIsEnumerable(i)){var u=Ke[i];return a(u.type,u.style,i)}if("async"==i&&e.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return a("async","keyword",i)}return a("variable","variable",i)}}function o(e){return function(t,r){var n,o=!1;if(We&&"@"==t.peek()&&t.match(Qe))return r.tokenize=i,a("jsonld-keyword","meta");for(;null!=(n=t.next())&&(n!=e||o);)o=!o&&"\\"==n;return o||(r.tokenize=i),a("string","string")}}function c(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=i;break}n="*"==r}return a("comment","comment")}function s(e,t){for(var r,n=!1;null!=(r=e.next());){if(!n&&("`"==r||"$"==r&&e.eat("{"))){t.tokenize=i;break}n=!n&&"\\"==r}return a("quasi","string-2",e.current())}function u(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var r=e.string.indexOf("=>",e.start);if(!(r<0)){if(Fe){var n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,r));n&&(r=n.index)}for(var a=0,i=!1,o=r-1;o>=0;--o){var c=e.string.charAt(o),s=Re.indexOf(c);if(s>=0&&s<3){if(!a){++o;break}if(0==--a){"("==c&&(i=!0);break}}else if(s>=3&&s<6)++a;else if(Ge.test(c))i=!0;else{if(/["'\/]/.test(c))return;if(i&&!a){++o;break}}}i&&!a&&(t.fatArrowAt=o)}}function f(e,t,r,n,a,i){this.indented=e,this.column=t,this.type=r,this.prev=a,this.info=i,null!=n&&(this.align=n)}function l(e,t){for(var r=e.localVars;r;r=r.next)if(r.name==t)return!0;for(var n=e.context;n;n=n.prev)for(var r=n.vars;r;r=r.next)if(r.name==t)return!0}function d(e,t,r,n,a){var i=e.cc;for(Ye.state=e,Ye.stream=a,Ye.marked=null,Ye.cc=i,Ye.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;){if((i.length?i.pop():De?I:E)(r,n)){for(;i.length&&i[i.length-1].lex;)i.pop()();return Ye.marked?Ye.marked:"variable"==r&&l(e,n)?"variable-2":t}}}function p(){for(var e=arguments.length-1;e>=0;e--)Ye.cc.push(arguments[e])}function m(){return p.apply(null,arguments),!0}function v(e,t){for(var r=t;r;r=r.next)if(r.name==e)return!0;return!1}function k(e){var t=Ye.state;if(Ye.marked="def",t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var n=y(e,t.context);if(null!=n)return void(t.context=n)}else if(!v(e,t.localVars))return void(t.localVars=new x(e,t.localVars));r.globalVars&&!v(e,t.globalVars)&&(t.globalVars=new x(e,t.globalVars))}function y(e,t){if(t){if(t.block){var r=y(e,t.prev);return r?r==t.prev?t:new b(r,t.vars,!0):null}return v(e,t.vars)?t:new b(t.prev,new x(e,t.vars),!1)}return null}function w(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function b(e,t,r){this.prev=e,this.vars=t,this.block=r}function x(e,t){this.name=e,this.next=t}function h(){Ye.state.context=new b(Ye.state.context,Ye.state.localVars,!1),Ye.state.localVars=Ze}function g(){Ye.state.context=new b(Ye.state.context,Ye.state.localVars,!0),Ye.state.localVars=null}function j(){Ye.state.localVars=Ye.state.context.vars,Ye.state.context=Ye.state.context.prev}function M(e,t){var r=function(){var r=Ye.state,n=r.indented;if("stat"==r.lexical.type)n=r.lexical.indented;else for(var a=r.lexical;a&&")"==a.type&&a.align;a=a.prev)n=a.indented;r.lexical=new f(n,Ye.stream.column(),e,null,r.lexical,t)};return r.lex=!0,r}function V(){var e=Ye.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function A(e){function t(r){return r==e?m():";"==e||"}"==r||")"==r||"]"==r?p():m(t)}return t}function E(e,t){return"var"==e?m(M("vardef",t),se,A(";"),V):"keyword a"==e?m(M("form"),$,E,V):"keyword b"==e?m(M("form"),E,V):"keyword d"==e?Ye.stream.match(/^\s*$/,!1)?m():m(M("stat"),q,A(";"),V):"debugger"==e?m(A(";")):"{"==e?m(M("}"),g,X,V,j):";"==e?m():"if"==e?("else"==Ye.state.lexical.info&&Ye.state.cc[Ye.state.cc.length-1]==V&&Ye.state.cc.pop()(),m(M("form"),$,E,V,pe)):"function"==e?m(be):"for"==e?m(M("form"),me,E,V):"class"==e||Fe&&"interface"==t?(Ye.marked="keyword",m(M("form"),ge,V)):"variable"==e?Fe&&"declare"==t?(Ye.marked="keyword",m(E)):Fe&&("module"==t||"enum"==t||"type"==t)&&Ye.stream.match(/^\s*\w/,!1)?(Ye.marked="keyword","enum"==t?m(Oe):"type"==t?m(ee,A("operator"),ee,A(";")):m(M("form"),ue,A("{"),M("}"),X,V,V)):Fe&&"namespace"==t?(Ye.marked="keyword",m(M("form"),I,X,V)):Fe&&"abstract"==t?(Ye.marked="keyword",m(E)):m(M("stat"),D):"switch"==e?m(M("form"),$,A("{"),M("}","switch"),g,X,V,V,j):"case"==e?m(I,A(":")):"default"==e?m(A(":")):"catch"==e?m(M("form"),h,z,E,V,j):"export"==e?m(M("stat"),Ae,V):"import"==e?m(M("stat"),ze,V):"async"==e?m(E):"@"==t?m(I,E):p(M("stat"),I,A(";"),V)}function z(e){if("("==e)return m(xe,A(")"))}function I(e,t){return C(e,t,!1)}function T(e,t){return C(e,t,!0)}function $(e){return"("!=e?p():m(M(")"),I,A(")"),V)}function C(e,t,r){if(Ye.state.fatArrowAt==Ye.stream.start){var n=r?B:U;if("("==e)return m(h,M(")"),Q(xe,")"),V,A("=>"),n,j);if("variable"==e)return p(h,ue,A("=>"),n,j)}var a=r?P:O;return Xe.hasOwnProperty(e)?m(a):"function"==e?m(be,a):"class"==e||Fe&&"interface"==t?(Ye.marked="keyword",m(M("form"),he,V)):"keyword c"==e||"async"==e?m(r?T:I):"("==e?m(M(")"),q,A(")"),V,a):"operator"==e||"spread"==e?m(r?T:I):"["==e?m(M("]"),qe,V,a):"{"==e?R(G,"}",null,a):"quasi"==e?p(S,a):"new"==e?m(H(r)):"import"==e?m(I):m()}function q(e){return e.match(/[;\}\)\],]/)?p():p(I)}function O(e,t){return","==e?m(I):P(e,t,!1)}function P(e,t,r){var n=0==r?O:P,a=0==r?I:T;return"=>"==e?m(h,r?B:U,j):"operator"==e?/\+\+|--/.test(t)||Fe&&"!"==t?m(n):Fe&&"<"==t&&Ye.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?m(M(">"),Q(ee,">"),V,n):"?"==t?m(I,A(":"),a):m(a):"quasi"==e?p(S,n):";"!=e?"("==e?R(T,")","call",n):"."==e?m(F,n):"["==e?m(M("]"),q,A("]"),V,n):Fe&&"as"==t?(Ye.marked="keyword",m(ee,n)):"regexp"==e?(Ye.state.lastType=Ye.marked="operator",Ye.stream.backUp(Ye.stream.pos-Ye.stream.start-1),m(a)):void 0:void 0}function S(e,t){return"quasi"!=e?p():"${"!=t.slice(t.length-2)?m(S):m(I,N)}function N(e){if("}"==e)return Ye.marked="string-2",Ye.state.tokenize=s,m(S)}function U(e){return u(Ye.stream,Ye.state),p("{"==e?E:I)}function B(e){return u(Ye.stream,Ye.state),p("{"==e?E:T)}function H(e){return function(t){return"."==t?m(e?W:J):"variable"==t&&Fe?m(ie,e?P:O):p(e?T:I)}}function J(e,t){if("target"==t)return Ye.marked="keyword",m(O)}function W(e,t){if("target"==t)return Ye.marked="keyword",m(P)}function D(e){return":"==e?m(V,E):p(O,A(";"),V)}function F(e){if("variable"==e)return Ye.marked="property",m()}function G(e,t){if("async"==e)return Ye.marked="property",m(G);if("variable"==e||"keyword"==Ye.style){if(Ye.marked="property","get"==t||"set"==t)return m(K);var r;return Fe&&Ye.state.fatArrowAt==Ye.stream.start&&(r=Ye.stream.match(/^\s*:\s*/,!1))&&(Ye.state.fatArrowAt=Ye.stream.pos+r[0].length),m(L)}return"number"==e||"string"==e?(Ye.marked=We?"property":Ye.style+" property",m(L)):"jsonld-keyword"==e?m(L):Fe&&w(t)?(Ye.marked="keyword",m(G)):"["==e?m(I,Y,A("]"),L):"spread"==e?m(T,L):"*"==t?(Ye.marked="keyword",m(G)):":"==e?p(L):void 0}function K(e){return"variable"!=e?p(L):(Ye.marked="property",m(be))}function L(e){return":"==e?m(T):"("==e?p(be):void 0}function Q(e,t,r){function n(a,i){if(r?r.indexOf(a)>-1:","==a){var o=Ye.state.lexical;return"call"==o.info&&(o.pos=(o.pos||0)+1),m(function(r,n){return r==t||n==t?p():p(e)},n)}return a==t||i==t?m():m(A(t))}return function(r,a){return r==t||a==t?m():p(e,n)}}function R(e,t,r){for(var n=3;n"),ee):void 0}function te(e){if("=>"==e)return m(ee)}function re(e,t){return"variable"==e||"keyword"==Ye.style?(Ye.marked="property",m(re)):"?"==t?m(re):":"==e?m(ee):"["==e?m(I,Y,A("]"),re):void 0}function ne(e,t){return"variable"==e&&Ye.stream.match(/^\s*[?:]/,!1)||"?"==t?m(ne):":"==e?m(ee):p(ee)}function ae(e,t){return"<"==t?m(M(">"),Q(ee,">"),V,ae):"|"==t||"."==e||"&"==t?m(ee):"["==e?m(A("]"),ae):"extends"==t||"implements"==t?(Ye.marked="keyword",m(ee)):void 0}function ie(e,t){if("<"==t)return m(M(">"),Q(ee,">"),V,ae)}function oe(){return p(ee,ce)}function ce(e,t){if("="==t)return m(ee)}function se(e,t){return"enum"==t?(Ye.marked="keyword",m(Oe)):p(ue,Y,le,de)}function ue(e,t){return Fe&&w(t)?(Ye.marked="keyword",m(ue)):"variable"==e?(k(t),m()):"spread"==e?m(ue):"["==e?R(ue,"]"):"{"==e?R(fe,"}"):void 0}function fe(e,t){return"variable"!=e||Ye.stream.match(/^\s*:/,!1)?("variable"==e&&(Ye.marked="property"),"spread"==e?m(ue):"}"==e?p():m(A(":"),ue,le)):(k(t),m(le))}function le(e,t){if("="==t)return m(T)}function de(e){if(","==e)return m(se)}function pe(e,t){if("keyword b"==e&&"else"==t)return m(M("form","else"),E,V)}function me(e,t){return"await"==t?m(me):"("==e?m(M(")"),ve,A(")"),V):void 0}function ve(e){return"var"==e?m(se,A(";"),ye):";"==e?m(ye):"variable"==e?m(ke):p(I,A(";"),ye)}function ke(e,t){return"in"==t||"of"==t?(Ye.marked="keyword",m(I)):m(O,ye)}function ye(e,t){return";"==e?m(we):"in"==t||"of"==t?(Ye.marked="keyword",m(I)):p(I,A(";"),we)}function we(e){")"!=e&&m(I)}function be(e,t){return"*"==t?(Ye.marked="keyword",m(be)):"variable"==e?(k(t),m(be)):"("==e?m(h,M(")"),Q(xe,")"),V,Z,E,j):Fe&&"<"==t?m(M(">"),Q(oe,">"),V,be):void 0}function xe(e,t){return"@"==t&&m(I,xe),"spread"==e?m(xe):Fe&&w(t)?(Ye.marked="keyword",m(xe)):p(ue,Y,le)}function he(e,t){return"variable"==e?ge(e,t):je(e,t)}function ge(e,t){if("variable"==e)return k(t),m(je)}function je(e,t){return"<"==t?m(M(">"),Q(oe,">"),V,je):"extends"==t||"implements"==t||Fe&&","==e?("implements"==t&&(Ye.marked="keyword"),m(Fe?ee:I,je)):"{"==e?m(M("}"),Me,V):void 0}function Me(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||Fe&&w(t))&&Ye.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(Ye.marked="keyword",m(Me)):"variable"==e||"keyword"==Ye.style?(Ye.marked="property",m(Fe?Ve:be,Me)):"["==e?m(I,Y,A("]"),Fe?Ve:be,Me):"*"==t?(Ye.marked="keyword",m(Me)):";"==e?m(Me):"}"==e?m():"@"==t?m(I,Me):void 0}function Ve(e,t){return"?"==t?m(Ve):":"==e?m(ee,le):"="==t?m(T):p(be)}function Ae(e,t){return"*"==t?(Ye.marked="keyword",m(Ce,A(";"))):"default"==t?(Ye.marked="keyword",m(I,A(";"))):"{"==e?m(Q(Ee,"}"),Ce,A(";")):p(E)}function Ee(e,t){return"as"==t?(Ye.marked="keyword",m(A("variable"))):"variable"==e?p(T,Ee):void 0}function ze(e){return"string"==e?m():"("==e?p(I):p(Ie,Te,Ce)}function Ie(e,t){return"{"==e?R(Ie,"}"):("variable"==e&&k(t),"*"==t&&(Ye.marked="keyword"),m($e))}function Te(e){if(","==e)return m(Ie,Te)}function $e(e,t){if("as"==t)return Ye.marked="keyword",m(Ie)}function Ce(e,t){if("from"==t)return Ye.marked="keyword",m(I)}function qe(e){return"]"==e?m():p(Q(T,"]"))}function Oe(){return p(M("form"),ue,A("{"),M("}"),Q(Pe,"}"),V,V)}function Pe(){return p(ue,le)}function Se(e,t){return"operator"==e.lastType||","==e.lastType||Le.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function Ne(e,t,r){return t.tokenize==i&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(r||0)))}var Ue,Be,He=t.indentUnit,Je=r.statementIndent,We=r.jsonld,De=r.json||We,Fe=r.typescript,Ge=r.wordCharacters||/[\w$\xa1-\uffff]/,Ke=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),r=e("keyword b"),n=e("keyword c"),a=e("keyword d"),i=e("operator"),o={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:r,do:r,try:r,finally:r,return:a,break:a,continue:a,new:e("new"),delete:n,void:n,throw:n,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:i,typeof:i,instanceof:i,true:o,false:o,null:o,undefined:o,NaN:o,Infinity:o,this:e("this"),class:e("class"),super:e("atom"),yield:n,export:e("export"),import:e("import"),extends:n,await:n}}(),Le=/[+\-*&%=<>!?|~^@]/,Qe=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/,Re="([{}])",Xe={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0},Ye={state:null,column:null,marked:null,cc:null},Ze=new x("this",new x("arguments",null));return j.lex=!0,V.lex=!0,{startState:function(e){var t={tokenize:i,lastType:"sof",cc:[],lexical:new f((e||0)-He,0,"block",!1),localVars:r.localVars,context:r.localVars&&new b(null,null,!1),indented:e||0};return r.globalVars&&"object"==typeof r.globalVars&&(t.globalVars=r.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),u(e,t)),t.tokenize!=c&&e.eatSpace())return null;var r=t.tokenize(e,t);return"comment"==Ue?r:(t.lastType="operator"!=Ue||"++"!=Be&&"--"!=Be?Ue:"incdec",d(t,r,Ue,Be,e))},indent:function(t,n){if(t.tokenize==c)return e.Pass;if(t.tokenize!=i)return 0;var a,o=n&&n.charAt(0),s=t.lexical;if(!/^\s*else\b/.test(n))for(var u=t.cc.length-1;u>=0;--u){var f=t.cc[u];if(f==V)s=s.prev;else if(f!=pe)break}for(;("stat"==s.type||"form"==s.type)&&("}"==o||(a=t.cc[t.cc.length-1])&&(a==O||a==P)&&!/^[,\.=+\-*:?[\(]/.test(n));)s=s.prev;Je&&")"==s.type&&"stat"==s.prev.type&&(s=s.prev);var l=s.type,d=o==l;return"vardef"==l?s.indented+("operator"==t.lastType||","==t.lastType?s.info.length+1:0):"form"==l&&"{"==o?s.indented:"form"==l?s.indented+He:"stat"==l?s.indented+(Se(t,n)?Je||He:0):"switch"!=s.info||d||0==r.doubleIndentSwitch?s.align?s.column+(d?0:1):s.indented+(d?0:He):s.indented+(/^(?:case|default)\b/.test(n)?He:2*He)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:De?null:"/*",blockCommentEnd:De?null:"*/",blockCommentContinue:De?null:" * ",lineComment:De?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:De?"json":"javascript",jsonldMode:We,jsonMode:De,expressionAllowed:Ne,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=I&&t!=T||e.cc.pop()}}}),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}),function(e){"function"==typeof e.define&&e.define("modeJs",["mode/javascript/javascript.js"],function(){})}(this); \ No newline at end of file diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/js/codemirror.mode.php.min.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/js/codemirror.mode.php.min.js old mode 100644 new mode 100755 index 5040ec4..f520a13 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/js/codemirror.mode.php.min.js +++ b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/js/codemirror.mode.php.min.js @@ -1 +1,3 @@ -(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"),require("../xml/xml"),require("../javascript/javascript"),require("../css/css"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror","../xml/xml","../javascript/javascript","../css/css"],a)}else{a(CodeMirror)}}})(function(a){a.defineMode("htmlmixed",function(c,d){var b=a.getMode(c,{name:"xml",htmlMode:true,multilineTagIndentFactor:d.multilineTagIndentFactor,multilineTagIndentPastTag:d.multilineTagIndentPastTag});var n=a.getMode(c,"css");var l=[],k=d&&d.scriptTypes;l.push({matches:/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^$/i,mode:a.getMode(c,"javascript")});if(k){for(var e=0;e"){var u=t.string.slice(Math.max(0,t.pos-100),t.pos).match(/\btype\s*=\s*("[^"]+"|'[^']+'|\S+)[^<]*$/i);u=u?u[1]:"";if(u&&/[\"\']/.test(u.charAt(0))){u=u.slice(1,u.length-1)}for(var o=0;o"){r.token=g;r.localMode=n;r.localState=n.startState(b.indent(r.htmlState,""))}}return q}function h(r,i,o){var q=r.current();var p=q.search(i);if(p>-1){r.backUp(q.length-p)}else{if(q.match(/<\/?$/)){r.backUp(q.length);if(!r.match(i,false)){r.match(q)}}}return o}function m(o,i){if(o.match(/^<\/\s*script\s*>/i,false)){i.token=f;i.localState=i.localMode=null;return null}return h(o,/<\/\s*script\s*>/,i.localMode.token(o,i.localState))}function g(o,i){if(o.match(/^<\/\s*style\s*>/i,false)){i.token=f;i.localState=i.localMode=null;return null}return h(o,/<\/\s*style\s*>/,n.token(o,i.localState))}return{startState:function(){var i=b.startState();return{token:f,localMode:null,localState:null,htmlState:i}},copyState:function(o){if(o.localState){var i=a.copyState(o.localMode,o.localState)}return{token:o.token,localMode:o.localMode,localState:i,htmlState:a.copyState(b,o.htmlState)}},token:function(o,i){return i.token(o,i)},indent:function(o,i){if(!o.localMode||/^\s*<\//.test(i)){return b.indent(o.htmlState,i)}else{if(o.localMode.indent){return o.localMode.indent(o.localState,i)}else{return a.Pass}}},innerMode:function(i){return{state:i.localState||i.htmlState,mode:i.localMode||b}}}},"xml","javascript","css");a.defineMIME("text/html","htmlmixed")});(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(a){a.defineMode("xml",function(y,k){var p=y.indentUnit;var x=k.multilineTagIndentFactor||1;var d=k.multilineTagIndentPastTag;if(d==null){d=true}var w=k.htmlMode?{autoSelfClosers:{area:true,base:true,br:true,col:true,command:true,embed:true,frame:true,hr:true,img:true,input:true,keygen:true,link:true,meta:true,param:true,source:true,track:true,wbr:true,menuitem:true},implicitlyClosed:{dd:true,li:true,optgroup:true,option:true,p:true,rp:true,rt:true,tbody:true,td:true,tfoot:true,th:true,tr:true},contextGrabbers:{dd:{dd:true,dt:true},dt:{dd:true,dt:true},li:{li:true},option:{option:true,optgroup:true},optgroup:{optgroup:true},p:{address:true,article:true,aside:true,blockquote:true,dir:true,div:true,dl:true,fieldset:true,footer:true,form:true,h1:true,h2:true,h3:true,h4:true,h5:true,h6:true,header:true,hgroup:true,hr:true,menu:true,nav:true,ol:true,p:true,pre:true,section:true,table:true,ul:true},rp:{rp:true,rt:true},rt:{rp:true,rt:true},tbody:{tbody:true,tfoot:true},td:{td:true,th:true},tfoot:{tbody:true},th:{td:true,th:true},thead:{tbody:true,tfoot:true},tr:{tr:true}},doNotIndent:{pre:true},allowUnquoted:true,allowMissing:true,caseFold:true}:{autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:false,allowMissing:false,caseFold:false};var c=k.alignCDATA;var f,g;function n(F,E){function C(G){E.tokenize=G;return G(F,E)}var D=F.next();if(D=="<"){if(F.eat("!")){if(F.eat("[")){if(F.match("CDATA[")){return C(v("atom","]]>"))}else{return null}}else{if(F.match("--")){return C(v("comment","-->"))}else{if(F.match("DOCTYPE",true,true)){F.eatWhile(/[\w\._\-]/);return C(z(1))}else{return null}}}}else{if(F.eat("?")){F.eatWhile(/[\w\._\-]/);E.tokenize=v("meta","?>");return"meta"}else{f=F.eat("/")?"closeTag":"openTag";E.tokenize=m;return"tag bracket"}}}else{if(D=="&"){var B;if(F.eat("#")){if(F.eat("x")){B=F.eatWhile(/[a-fA-F\d]/)&&F.eat(";")}else{B=F.eatWhile(/[\d]/)&&F.eat(";")}}else{B=F.eatWhile(/[\w\.\-:]/)&&F.eat(";")}return B?"atom":"error"}else{F.eatWhile(/[^&<]/);return null}}}function m(E,D){var C=E.next();if(C==">"||(C=="/"&&E.eat(">"))){D.tokenize=n;f=C==">"?"endTag":"selfcloseTag";return"tag bracket"}else{if(C=="="){f="equals";return null}else{if(C=="<"){D.tokenize=n;D.state=l;D.tagName=D.tagStart=null;var B=D.tokenize(E,D);return B?B+" tag error":"tag error"}else{if(/[\'\"]/.test(C)){D.tokenize=j(C);D.stringStartCol=E.column();return D.tokenize(E,D)}else{E.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/);return"word"}}}}}function j(B){var C=function(E,D){while(!E.eol()){if(E.next()==B){D.tokenize=m;break}}return"string"};C.isInAttribute=true;return C}function v(C,B){return function(E,D){while(!E.eol()){if(E.match(B)){D.tokenize=n;break}E.next()}return C}}function z(B){return function(E,D){var C;while((C=E.next())!=null){if(C=="<"){D.tokenize=z(B+1);return D.tokenize(E,D)}else{if(C==">"){if(B==1){D.tokenize=n;break}else{D.tokenize=z(B-1);return D.tokenize(E,D)}}}}return"meta"}}function r(C,B,D){this.prev=C.context;this.tagName=B;this.indent=C.indented;this.startOfLine=D;if(w.doNotIndent.hasOwnProperty(B)||(C.context&&C.context.noIndent)){this.noIndent=true}}function u(B){if(B.context){B.context=B.context.prev}}function q(D,C){var B;while(true){if(!D.context){return}B=D.context.tagName;if(!w.contextGrabbers.hasOwnProperty(B)||!w.contextGrabbers[B].hasOwnProperty(C)){return}u(D)}}function l(B,D,C){if(B=="openTag"){C.tagStart=D.column();return b}else{if(B=="closeTag"){return t}else{return l}}}function b(B,D,C){if(B=="word"){C.tagName=D.current();g="tag";return e}else{g="error";return b}}function t(C,E,D){if(C=="word"){var B=E.current();if(D.context&&D.context.tagName!=B&&w.implicitlyClosed.hasOwnProperty(D.context.tagName)){u(D)}if(D.context&&D.context.tagName==B){g="tag";return s}else{g="tag error";return A}}else{g="error";return A}}function s(C,B,D){if(C!="endTag"){g="error";return s}u(D);return l}function A(B,D,C){g="error";return s(B,D,C)}function e(E,C,F){if(E=="word"){g="attribute";return i}else{if(E=="endTag"||E=="selfcloseTag"){var D=F.tagName,B=F.tagStart;F.tagName=F.tagStart=null;if(E=="selfcloseTag"||w.autoSelfClosers.hasOwnProperty(D)){q(F,D)}else{q(F,D);F.context=new r(F,D,B==F.indented)}return l}}g="error";return e}function i(B,D,C){if(B=="equals"){return o}if(!w.allowMissing){g="error"}return e(B,D,C)}function o(B,D,C){if(B=="string"){return h}if(B=="word"&&w.allowUnquoted){g="string";return e}g="error";return e(B,D,C)}function h(B,D,C){if(B=="string"){return h}return e(B,D,C)}return{startState:function(){return{tokenize:n,state:l,indented:0,tagName:null,tagStart:null,context:null}},token:function(D,C){if(!C.tagName&&D.sol()){C.indented=D.indentation()}if(D.eatSpace()){return null}f=null;var B=C.tokenize(D,C);if((B||f)&&B!="comment"){g=null;C.state=C.state(f||B,D,C);if(g){B=g=="error"?B+" error":g}}return B},indent:function(G,C,F){var E=G.context;if(G.tokenize.isInAttribute){if(G.tagStart==G.indented){return G.stringStartCol+1}else{return G.indented+p}}if(E&&E.noIndent){return a.Pass}if(G.tokenize!=m&&G.tokenize!=n){return F?F.match(/^(\s*)/)[0].length:0}if(G.tagName){if(d){return G.tagStart+G.tagName.length+2}else{return G.tagStart+p*x}}if(c&&/$/,blockCommentStart:"",configuration:k.htmlMode?"html":"xml",helperType:k.htmlMode?"html":"xml"}});a.defineMIME("text/xml","xml");a.defineMIME("application/xml","xml");if(!a.mimeModes.hasOwnProperty("text/html")){a.defineMIME("text/html",{name:"xml",htmlMode:true})}});(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(a){a.defineMode("javascript",function(Z,aj){var l=Z.indentUnit;var A=aj.statementIndent;var aB=aj.jsonld;var z=aj.json||aB;var g=aj.typescript;var au=aj.wordCharacters||/[\w$\xa1-\uffff]/;var ar=function(){function aR(aT){return{type:aT,style:"keyword"}}var aM=aR("keyword a"),aK=aR("keyword b"),aJ=aR("keyword c");var aL=aR("operator"),aP={type:"atom",style:"atom"};var aN={"if":aR("if"),"while":aM,"with":aM,"else":aK,"do":aK,"try":aK,"finally":aK,"return":aJ,"break":aJ,"continue":aJ,"new":aJ,"delete":aJ,"throw":aJ,"debugger":aJ,"var":aR("var"),"const":aR("var"),let:aR("var"),"function":aR("function"),"catch":aR("catch"),"for":aR("for"),"switch":aR("switch"),"case":aR("case"),"default":aR("default"),"in":aL,"typeof":aL,"instanceof":aL,"true":aP,"false":aP,"null":aP,"undefined":aP,"NaN":aP,"Infinity":aP,"this":aR("this"),module:aR("module"),"class":aR("class"),"super":aR("atom"),yield:aJ,"export":aR("export"),"import":aR("import"),"extends":aJ};if(g){var aS={type:"variable",style:"variable-3"};var aO={"interface":aR("interface"),"extends":aR("extends"),constructor:aR("constructor"),"public":aR("public"),"private":aR("private"),"protected":aR("protected"),"static":aR("static"),string:aS,number:aS,bool:aS,any:aS};for(var aQ in aO){aN[aQ]=aO[aQ]}}return aN}();var P=/[+\-*&%=<>!?|~^]/;var aq=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function F(aM){var aK=false,aJ,aL=false;while((aJ=aM.next())!=null){if(!aK){if(aJ=="/"&&!aL){return}if(aJ=="["){aL=true}else{if(aL&&aJ=="]"){aL=false}}}aK=!aK&&aJ=="\\"}}var S,G;function L(aL,aK,aJ){S=aL;G=aJ;return aK}function U(aN,aL){var aJ=aN.next();if(aJ=='"'||aJ=="'"){aL.tokenize=R(aJ);return aL.tokenize(aN,aL)}else{if(aJ=="."&&aN.match(/^\d+(?:[eE][+\-]?\d+)?/)){return L("number","number")}else{if(aJ=="."&&aN.match("..")){return L("spread","meta")}else{if(/[\[\]{}\(\),;\:\.]/.test(aJ)){return L(aJ)}else{if(aJ=="="&&aN.eat(">")){return L("=>","operator")}else{if(aJ=="0"&&aN.eat(/x/i)){aN.eatWhile(/[\da-f]/i);return L("number","number")}else{if(/\d/.test(aJ)){aN.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/);return L("number","number")}else{if(aJ=="/"){if(aN.eat("*")){aL.tokenize=aA;return aA(aN,aL)}else{if(aN.eat("/")){aN.skipToEnd();return L("comment","comment")}else{if(aL.lastType=="operator"||aL.lastType=="keyword c"||aL.lastType=="sof"||/^[\[{}\(,;:]$/.test(aL.lastType)){F(aN);aN.match(/^\b(([gimyu])(?![gimyu]*\2))+\b/);return L("regexp","string-2")}else{aN.eatWhile(P);return L("operator","operator",aN.current())}}}}else{if(aJ=="`"){aL.tokenize=aC;return aC(aN,aL)}else{if(aJ=="#"){aN.skipToEnd();return L("error","error")}else{if(P.test(aJ)){aN.eatWhile(P);return L("operator","operator",aN.current())}else{if(au.test(aJ)){aN.eatWhile(au);var aM=aN.current(),aK=ar.propertyIsEnumerable(aM)&&ar[aM];return(aK&&aL.lastType!=".")?L(aK.type,aK.style,aM):L("variable","variable",aM)}}}}}}}}}}}}}function R(aJ){return function(aN,aL){var aM=false,aK;if(aB&&aN.peek()=="@"&&aN.match(aq)){aL.tokenize=U;return L("jsonld-keyword","meta")}while((aK=aN.next())!=null){if(aK==aJ&&!aM){break}aM=!aM&&aK=="\\"}if(!aM){aL.tokenize=U}return L("string","string")}}function aA(aM,aL){var aJ=false,aK;while(aK=aM.next()){if(aK=="/"&&aJ){aL.tokenize=U;break}aJ=(aK=="*")}return L("comment","comment")}function aC(aM,aK){var aL=false,aJ;while((aJ=aM.next())!=null){if(!aL&&(aJ=="`"||aJ=="$"&&aM.eat("{"))){aK.tokenize=U;break}aL=!aL&&aJ=="\\"}return L("quasi","string-2",aM.current())}var m="([{}])";function ax(aP,aM){if(aM.fatArrowAt){aM.fatArrowAt=null}var aL=aP.string.indexOf("=>",aP.start);if(aL<0){return}var aO=0,aK=false;for(var aQ=aL-1;aQ>=0;--aQ){var aJ=aP.string.charAt(aQ);var aN=m.indexOf(aJ);if(aN>=0&&aN<3){if(!aO){++aQ;break}if(--aO==0){break}}else{if(aN>=3&&aN<6){++aO}else{if(au.test(aJ)){aK=true}else{if(/["'\/]/.test(aJ)){return}else{if(aK&&!aO){++aQ;break}}}}}}if(aK&&!aO){aM.fatArrowAt=aQ}}var b={atom:true,number:true,variable:true,string:true,regexp:true,"this":true,"jsonld-keyword":true};function J(aO,aK,aJ,aN,aL,aM){this.indented=aO;this.column=aK;this.type=aJ;this.prev=aL;this.info=aM;if(aN!=null){this.align=aN}}function s(aM,aL){for(var aK=aM.localVars;aK;aK=aK.next){if(aK.name==aL){return true}}for(var aJ=aM.context;aJ;aJ=aJ.prev){for(var aK=aJ.vars;aK;aK=aK.next){if(aK.name==aL){return true}}}}function f(aN,aK,aJ,aM,aO){var aP=aN.cc;D.state=aN;D.stream=aO;D.marked=null,D.cc=aP;D.style=aK;if(!aN.lexical.hasOwnProperty("align")){aN.lexical.align=true}while(true){var aL=aP.length?aP.pop():z?an:aH;if(aL(aJ,aM)){while(aP.length&&aP[aP.length-1].lex){aP.pop()()}if(D.marked){return D.marked}if(aJ=="variable"&&s(aN,aM)){return"variable-2"}return aK}}}var D={state:null,column:null,marked:null,cc:null};function aa(){for(var aJ=arguments.length-1;aJ>=0;aJ--){D.cc.push(arguments[aJ])}}function ae(){aa.apply(null,arguments);return true}function aw(aK){function aJ(aN){for(var aM=aN;aM;aM=aM.next){if(aM.name==aK){return true}}return false}var aL=D.state;if(aL.context){D.marked="def";if(aJ(aL.localVars)){return}aL.localVars={name:aK,next:aL.localVars}}else{if(aJ(aL.globalVars)){return}if(aj.globalVars){aL.globalVars={name:aK,next:aL.globalVars}}}}var q={name:"this",next:{name:"arguments"}};function w(){D.state.context={prev:D.state.context,vars:D.state.localVars};D.state.localVars=q}function x(){D.state.localVars=D.state.context.vars;D.state.context=D.state.context.prev}function aF(aK,aL){var aJ=function(){var aO=D.state,aM=aO.indented;if(aO.lexical.type=="stat"){aM=aO.lexical.indented}else{for(var aN=aO.lexical;aN&&aN.type==")"&&aN.align;aN=aN.prev){aM=aN.indented}}aO.lexical=new J(aM,D.stream.column(),aK,null,aO.lexical,aL)};aJ.lex=true;return aJ}function h(){var aJ=D.state;if(aJ.lexical.prev){if(aJ.lexical.type==")"){aJ.indented=aJ.lexical.indented}aJ.lexical=aJ.lexical.prev}}h.lex=true;function r(aJ){function aK(aL){if(aL==aJ){return ae()}else{if(aJ==";"){return aa()}else{return ae(aK)}}}return aK}function aH(aJ,aK){if(aJ=="var"){return ae(aF("vardef",aK.length),d,r(";"),h)}if(aJ=="keyword a"){return ae(aF("form"),an,aH,h)}if(aJ=="keyword b"){return ae(aF("form"),aH,h)}if(aJ=="{"){return ae(aF("}"),y,h)}if(aJ==";"){return ae()}if(aJ=="if"){if(D.state.lexical.info=="else"&&D.state.cc[D.state.cc.length-1]==h){D.state.cc.pop()()}return ae(aF("form"),an,aH,h,e)}if(aJ=="function"){return ae(M)}if(aJ=="for"){return ae(aF("form"),u,aH,h)}if(aJ=="variable"){return ae(aF("stat"),aI)}if(aJ=="switch"){return ae(aF("form"),an,aF("}","switch"),r("{"),y,h,h)}if(aJ=="case"){return ae(an,r(":"))}if(aJ=="default"){return ae(r(":"))}if(aJ=="catch"){return ae(aF("form"),w,r("("),af,r(")"),aH,h,x)}if(aJ=="module"){return ae(aF("form"),w,H,x,h)}if(aJ=="class"){return ae(aF("form"),V,h)}if(aJ=="export"){return ae(aF("form"),aG,h)}if(aJ=="import"){return ae(aF("form"),ag,h)}return aa(aF("stat"),an,r(";"),h)}function an(aJ){return Y(aJ,false)}function aE(aJ){return Y(aJ,true)}function Y(aK,aM){if(D.state.fatArrowAt==D.stream.start){var aJ=aM?N:W;if(aK=="("){return ae(w,aF(")"),at(i,")"),h,r("=>"),aJ,x)}else{if(aK=="variable"){return aa(w,i,r("=>"),aJ,x)}}}var aL=aM?j:ab;if(b.hasOwnProperty(aK)){return ae(aL)}if(aK=="function"){return ae(M,aL)}if(aK=="keyword c"){return ae(aM?ak:ai)}if(aK=="("){return ae(aF(")"),ai,az,r(")"),h,aL)}if(aK=="operator"||aK=="spread"){return ae(aM?aE:an)}if(aK=="["){return ae(aF("]"),n,h,aL)}if(aK=="{"){return ay(t,"}",null,aL)}if(aK=="quasi"){return aa(Q,aL)}return ae()}function ai(aJ){if(aJ.match(/[;\}\)\],]/)){return aa()}return aa(an)}function ak(aJ){if(aJ.match(/[;\}\)\],]/)){return aa()}return aa(aE)}function ab(aJ,aK){if(aJ==","){return ae(an)}return j(aJ,aK,false)}function j(aJ,aL,aN){var aK=aN==false?ab:j;var aM=aN==false?an:aE;if(aJ=="=>"){return ae(w,aN?N:W,x)}if(aJ=="operator"){if(/\+\+|--/.test(aL)){return ae(aK)}if(aL=="?"){return ae(an,r(":"),aM)}return ae(aM)}if(aJ=="quasi"){return aa(Q,aK)}if(aJ==";"){return}if(aJ=="("){return ay(aE,")","call",aK)}if(aJ=="."){return ae(al,aK)}if(aJ=="["){return ae(aF("]"),ai,r("]"),h,aK)}}function Q(aJ,aK){if(aJ!="quasi"){return aa()}if(aK.slice(aK.length-2)!="${"){return ae(Q)}return ae(an,p)}function p(aJ){if(aJ=="}"){D.marked="string-2";D.state.tokenize=aC;return ae(Q)}}function W(aJ){ax(D.stream,D.state);return aa(aJ=="{"?aH:an)}function N(aJ){ax(D.stream,D.state);return aa(aJ=="{"?aH:aE)}function aI(aJ){if(aJ==":"){return ae(h,aH)}return aa(ab,r(";"),h)}function al(aJ){if(aJ=="variable"){D.marked="property";return ae()}}function t(aJ,aK){if(aJ=="variable"||D.style=="keyword"){D.marked="property";if(aK=="get"||aK=="set"){return ae(I)}return ae(K)}else{if(aJ=="number"||aJ=="string"){D.marked=aB?"property":(D.style+" property");return ae(K)}else{if(aJ=="jsonld-keyword"){return ae(K)}else{if(aJ=="["){return ae(an,r("]"),K)}}}}}function I(aJ){if(aJ!="variable"){return aa(K)}D.marked="property";return ae(M)}function K(aJ){if(aJ==":"){return ae(aE)}if(aJ=="("){return aa(M)}}function at(aL,aJ){function aK(aN){if(aN==","){var aM=D.state.lexical;if(aM.info=="call"){aM.pos=(aM.pos||0)+1}return ae(aL,aK)}if(aN==aJ){return ae()}return ae(r(aJ))}return function(aM){if(aM==aJ){return ae()}return aa(aL,aK)}}function ay(aM,aJ,aL){for(var aK=3;aK=0;--aL){var aQ=aP.cc[aL];if(aQ==h){aM=aM.prev}else{if(aQ!=e){break}}}}if(aM.type=="stat"&&aO=="}"){aM=aM.prev}if(A&&aM.type==")"&&aM.prev.type=="stat"){aM=aM.prev}var aN=aM.type,aK=aO==aN;if(aN=="vardef"){return aM.indented+(aP.lastType=="operator"||aP.lastType==","?aM.info+1:0)}else{if(aN=="form"&&aO=="{"){return aM.indented}else{if(aN=="form"){return aM.indented+l}else{if(aN=="stat"){return aM.indented+(ao(aP,aJ)?A||l:0)}else{if(aM.info=="switch"&&!aK&&aj.doubleIndentSwitch!=false){return aM.indented+(/^(?:case|default)\b/.test(aJ)?l:2*l)}else{if(aM.align){return aM.column+(aK?0:1)}else{return aM.indented+(aK?0:l)}}}}}}},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:z?null:"/*",blockCommentEnd:z?null:"*/",lineComment:z?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:z?"json":"javascript",jsonldMode:aB,jsonMode:z}});a.registerHelper("wordChars","javascript",/[\w$]/);a.defineMIME("text/javascript","javascript");a.defineMIME("text/ecmascript","javascript");a.defineMIME("application/javascript","javascript");a.defineMIME("application/x-javascript","javascript");a.defineMIME("application/ecmascript","javascript");a.defineMIME("application/json",{name:"javascript",json:true});a.defineMIME("application/x-json",{name:"javascript",json:true});a.defineMIME("application/ld+json",{name:"javascript",jsonld:true});a.defineMIME("text/typescript",{name:"javascript",typescript:true});a.defineMIME("application/typescript",{name:"javascript",typescript:true})});(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(p){p.defineMode("css",function(T,G){if(!G.propertyKeywords){G=p.resolveMode("text/css")}var M=T.indentUnit,y=G.tokenHooks,w=G.documentTypes||{},S=G.mediaTypes||{},I=G.mediaFeatures||{},F=G.propertyKeywords||{},z=G.nonStandardPropertyKeywords||{},B=G.fontProperties||{},R=G.counterDescriptors||{},L=G.colorKeywords||{},O=G.valueKeywords||{},J=G.allowNested;var A,K;function U(X,Y){A=Y;return X}function W(aa,Z){var Y=aa.next();if(y[Y]){var X=y[Y](aa,Z);if(X!==false){return X}}if(Y=="@"){aa.eatWhile(/[\w\\\-]/);return U("def",aa.current())}else{if(Y=="="||(Y=="~"||Y=="|")&&aa.eat("=")){return U(null,"compare")}else{if(Y=='"'||Y=="'"){Z.tokenize=H(Y);return Z.tokenize(aa,Z)}else{if(Y=="#"){aa.eatWhile(/[\w\\\-]/);return U("atom","hash")}else{if(Y=="!"){aa.match(/^\s*\w*/);return U("keyword","important")}else{if(/\d/.test(Y)||Y=="."&&aa.eat(/\d/)){aa.eatWhile(/[\w.%]/);return U("number","unit")}else{if(Y==="-"){if(/[\d.]/.test(aa.peek())){aa.eatWhile(/[\w.%]/);return U("number","unit")}else{if(aa.match(/^-[\w\\\-]+/)){aa.eatWhile(/[\w\\\-]/);if(aa.match(/^\s*:/,false)){return U("variable-2","variable-definition")}return U("variable-2","variable")}else{if(aa.match(/^\w+-/)){return U("meta","meta")}}}}else{if(/[,+>*\/]/.test(Y)){return U(null,"select-op")}else{if(Y=="."&&aa.match(/^-?[_a-z][_a-z0-9-]*/i)){return U("qualifier","qualifier")}else{if(/[:;{}\[\]\(\)]/.test(Y)){return U(null,Y)}else{if((Y=="u"&&aa.match(/rl(-prefix)?\(/))||(Y=="d"&&aa.match("omain("))||(Y=="r"&&aa.match("egexp("))){aa.backUp(1);Z.tokenize=V;return U("property","word")}else{if(/[\w\\\-]/.test(Y)){aa.eatWhile(/[\w\\\-]/);return U("property","word")}else{return U(null,null)}}}}}}}}}}}}}function H(X){return function(ab,Z){var aa=false,Y;while((Y=ab.next())!=null){if(Y==X&&!aa){if(X==")"){ab.backUp(1)}break}aa=!aa&&Y=="\\"}if(Y==X||!aa&&X!=")"){Z.tokenize=null}return U("string","string")}}function V(Y,X){Y.next();if(!Y.match(/\s*[\"\')]/,false)){X.tokenize=H(")")}else{X.tokenize=null}return U(null,"(")}function N(Y,X,Z){this.type=Y;this.indent=X;this.prev=Z}function D(Y,Z,X){Y.context=new N(X,Z.indentation()+M,Y.context);return X}function P(X){X.context=X.context.prev;return X.context.type}function x(X,Z,Y){return C[Y.context.type](X,Z,Y)}function Q(Y,aa,Z,ab){for(var X=ab||1;X>0;X--){Z.context=Z.context.prev}return x(Y,aa,Z)}function E(Y){var X=Y.current().toLowerCase();if(O.hasOwnProperty(X)){K="atom"}else{if(L.hasOwnProperty(X)){K="keyword"}else{K="variable"}}}var C={};C.top=function(X,Z,Y){if(X=="{"){return D(Y,Z,"block")}else{if(X=="}"&&Y.context.prev){return P(Y)}else{if(/@(media|supports|(-moz-)?document)/.test(X)){return D(Y,Z,"atBlock")}else{if(/@(font-face|counter-style)/.test(X)){Y.stateArg=X;return"restricted_atBlock_before"}else{if(/^@(-(moz|ms|o|webkit)-)?keyframes$/.test(X)){return"keyframes"}else{if(X&&X.charAt(0)=="@"){return D(Y,Z,"at")}else{if(X=="hash"){K="builtin"}else{if(X=="word"){K="tag"}else{if(X=="variable-definition"){return"maybeprop"}else{if(X=="interpolation"){return D(Y,Z,"interpolation")}else{if(X==":"){return"pseudo"}else{if(J&&X=="("){return D(Y,Z,"parens")}}}}}}}}}}}}return Y.context.type};C.block=function(X,aa,Y){if(X=="word"){var Z=aa.current().toLowerCase();if(F.hasOwnProperty(Z)){K="property";return"maybeprop"}else{if(z.hasOwnProperty(Z)){K="string-2";return"maybeprop"}else{if(J){K=aa.match(/^\s*:(?:\s|$)/,false)?"property":"tag";return"block"}else{K+=" error";return"maybeprop"}}}}else{if(X=="meta"){return"block"}else{if(!J&&(X=="hash"||X=="qualifier")){K="error";return"block"}else{return C.top(X,aa,Y)}}}};C.maybeprop=function(X,Z,Y){if(X==":"){return D(Y,Z,"prop")}return x(X,Z,Y)};C.prop=function(X,Z,Y){if(X==";"){return P(Y)}if(X=="{"&&J){return D(Y,Z,"propBlock")}if(X=="}"||X=="{"){return Q(X,Z,Y)}if(X=="("){return D(Y,Z,"parens")}if(X=="hash"&&!/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(Z.current())){K+=" error"}else{if(X=="word"){E(Z)}else{if(X=="interpolation"){return D(Y,Z,"interpolation")}}}return"prop"};C.propBlock=function(Y,X,Z){if(Y=="}"){return P(Z)}if(Y=="word"){K="property";return"maybeprop"}return Z.context.type};C.parens=function(X,Z,Y){if(X=="{"||X=="}"){return Q(X,Z,Y)}if(X==")"){return P(Y)}if(X=="("){return D(Y,Z,"parens")}if(X=="interpolation"){return D(Y,Z,"interpolation")}if(X=="word"){E(Z)}return"parens"};C.pseudo=function(X,Z,Y){if(X=="word"){K="variable-3";return Y.context.type}return x(X,Z,Y)};C.atBlock=function(X,aa,Y){if(X=="("){return D(Y,aa,"atBlock_parens")}if(X=="}"){return Q(X,aa,Y)}if(X=="{"){return P(Y)&&D(Y,aa,J?"block":"top")}if(X=="word"){var Z=aa.current().toLowerCase();if(Z=="only"||Z=="not"||Z=="and"||Z=="or"){K="keyword"}else{if(w.hasOwnProperty(Z)){K="tag"}else{if(S.hasOwnProperty(Z)){K="attribute"}else{if(I.hasOwnProperty(Z)){K="property"}else{if(F.hasOwnProperty(Z)){K="property"}else{if(z.hasOwnProperty(Z)){K="string-2"}else{if(O.hasOwnProperty(Z)){K="atom"}else{K="error"}}}}}}}}return Y.context.type};C.atBlock_parens=function(X,Z,Y){if(X==")"){return P(Y)}if(X=="{"||X=="}"){return Q(X,Z,Y,2)}return C.atBlock(X,Z,Y)};C.restricted_atBlock_before=function(X,Z,Y){if(X=="{"){return D(Y,Z,"restricted_atBlock")}if(X=="word"&&Y.stateArg=="@counter-style"){K="variable";return"restricted_atBlock_before"}return x(X,Z,Y)};C.restricted_atBlock=function(X,Z,Y){if(X=="}"){Y.stateArg=null;return P(Y)}if(X=="word"){if((Y.stateArg=="@font-face"&&!B.hasOwnProperty(Z.current().toLowerCase()))||(Y.stateArg=="@counter-style"&&!R.hasOwnProperty(Z.current().toLowerCase()))){K="error"}else{K="property"}return"maybeprop"}return"restricted_atBlock"};C.keyframes=function(X,Z,Y){if(X=="word"){K="variable";return"keyframes"}if(X=="{"){return D(Y,Z,"top")}return x(X,Z,Y)};C.at=function(X,Z,Y){if(X==";"){return P(Y)}if(X=="{"||X=="}"){return Q(X,Z,Y)}if(X=="word"){K="tag"}else{if(X=="hash"){K="builtin"}}return"at"};C.interpolation=function(X,Z,Y){if(X=="}"){return P(Y)}if(X=="{"||X==";"){return Q(X,Z,Y)}if(X=="word"){K="variable"}else{if(X!="variable"&&X!="("&&X!=")"){K="error"}}return"interpolation"};return{startState:function(X){return{tokenize:null,state:"top",stateArg:null,context:new N("top",X||0,null)}},token:function(Z,Y){if(!Y.tokenize&&Z.eatSpace()){return null}var X=(Y.tokenize||W)(Z,Y);if(X&&typeof X=="object"){A=X[1];X=X[0]}K=X;Y.state=C[Y.state](A,Z,Y);return K},indent:function(ab,Z){var Y=ab.context,aa=Z&&Z.charAt(0);var X=Y.indent;if(Y.type=="prop"&&(aa=="}"||aa==")")){Y=Y.prev}if(Y.prev&&(aa=="}"&&(Y.type=="block"||Y.type=="top"||Y.type=="interpolation"||Y.type=="restricted_atBlock")||aa==")"&&(Y.type=="parens"||Y.type=="atBlock_parens")||aa=="{"&&(Y.type=="at"||Y.type=="atBlock"))){X=Y.indent-M;Y=Y.prev}return X},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",fold:"brace"}});function g(y){var x={};for(var w=0;w!?|\/]/;var J,r;function N(S,Q){var P=S.next();if(n[P]){var O=n[P](S,Q);if(O!==false){return O}}if(P=='"'||P=="'"){Q.tokenize=t(P);return Q.tokenize(S,Q)}if(/[\[\]{}\(\),;\:\.]/.test(P)){J=P;return null}if(/\d/.test(P)){S.eatWhile(/[\w\.]/);return"number"}if(P=="/"){if(S.eat("*")){Q.tokenize=C;return C(S,Q)}if(S.eat("/")){S.skipToEnd();return"comment"}}if(x.test(P)){S.eatWhile(x);return"operator"}S.eatWhile(/[\w\$_\xa1-\uffff]/);if(q){while(S.match(q)){S.eatWhile(/[\w\$_\xa1-\uffff]/)}}var R=S.current();if(v.propertyIsEnumerable(R)){if(H.propertyIsEnumerable(R)){J="newstatement"}if(D.propertyIsEnumerable(R)){r=true}return"keyword"}if(z.propertyIsEnumerable(R)){return"variable-3"}if(M.propertyIsEnumerable(R)){if(H.propertyIsEnumerable(R)){J="newstatement"}return"builtin"}if(o.propertyIsEnumerable(R)){return"atom"}return"variable"}function t(O){return function(T,R){var S=false,Q,P=false;while((Q=T.next())!=null){if(Q==O&&!S){P=true;break}S=!S&&Q=="\\"}if(P||!(S||A)){R.tokenize=null}return"string"}}function C(R,Q){var O=false,P;while(P=R.next()){if(P=="/"&&O){Q.tokenize=null;break}O=(P=="*")}return"comment"}function I(S,P,O,R,Q){this.indented=S;this.column=P;this.type=O;this.align=R;this.prev=Q}function y(O){return O=="statement"||O=="switchstatement"||O=="namespace"}function p(R,P,Q){var O=R.indented;if(R.context&&y(R.context.type)&&!y(Q)){O=R.context.indented}return R.context=new I(O,P,Q,null,R.context)}function K(P){var O=P.context.type;if(O==")"||O=="]"||O=="}"){P.indented=P.context.indented}return P.context=P.context.prev}function m(P,O){if(O.prevToken=="variable"||O.prevToken=="variable-3"){return true}if(/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(P.string.slice(0,P.start))){return true}}function E(O){for(;;){if(!O||O.type=="top"){return true}if(O.type=="}"&&O.prev.type!="namespace"){return false}O=O.prev}}return{startState:function(O){return{tokenize:null,context:new I((O||0)-F,0,"top",false),indented:0,startOfLine:true,prevToken:null}},token:function(T,S){var P=S.context;if(T.sol()){if(P.align==null){P.align=false}S.indented=T.indentation();S.startOfLine=true}if(T.eatSpace()){return null}J=r=null;var R=(S.tokenize||N)(T,S);if(R=="comment"||R=="meta"){return R}if(P.align==null){P.align=true}if((J==";"||J==":"||J==",")){while(y(S.context.type)){K(S)}}else{if(J=="{"){p(S,T.column(),"}")}else{if(J=="["){p(S,T.column(),"]")}else{if(J=="("){p(S,T.column(),")")}else{if(J=="}"){while(y(P.type)){P=K(S)}if(P.type=="}"){P=K(S)}while(y(P.type)){P=K(S)}}else{if(J==P.type){K(S)}else{if(w&&(((P.type=="}"||P.type=="top")&&J!=";")||(y(P.type)&&J=="newstatement"))){var Q="statement";if(J=="newstatement"&&u&&T.current()=="switch"){Q="switchstatement"}else{if(R=="keyword"&&T.current()=="namespace"){Q="namespace"}}p(S,T.column(),Q)}}}}}}}if(R=="variable"&&((S.prevToken=="def"||(s.typeFirstDefinitions&&m(T,S)&&E(S.context)&&T.match(/^\s*\(/,false))))){R="def"}if(n.token){var O=n.token(T,S,R);if(O!==undefined){R=O}}if(R=="def"&&s.styleDefs===false){R="variable"}S.startOfLine=false;S.prevToken=r?"def":R||J;return R},indent:function(T,P){if(T.tokenize!=N&&T.tokenize!=null){return c.Pass}var O=T.context,S=P&&P.charAt(0);if(y(O.type)&&S=="}"){O=O.prev}var Q=S==O.type;var R=O.prev&&O.prev.type=="switchstatement";if(y(O.type)){return O.indented+(S=="{"?0:B)}if(O.align&&(!G||O.type!=")")){return O.column+(Q?0:1)}if(O.type==")"&&!Q){return O.indented+B}return O.indented+(Q?0:F)+(!Q&&R&&!/^(?:case|default)\b/.test(P)?F:0)},electricInput:u?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}});function i(p){var n={},o=p.split(" ");for(var m=0;m <- <: <% >: # @ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble :: #:: "),types:i("AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),multiLineStrings:true,blockKeywords:i("catch class do else finally for forSome if match switch try while"),defKeywords:i("class def object package trait type val var"),atoms:i("true false null"),indentStatements:false,indentSwitch:false,hooks:{"@":function(m){m.eatWhile(/[\w\$_]/);return"meta"},'"':function(n,m){if(!n.match('""')){return false}m.tokenize=f;return m.tokenize(n,m)},"'":function(m){m.eatWhile(/[\w\$_\xa1-\uffff]/);return"atom"}},modeProps:{closeBrackets:{triples:'"'}}});b(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:i("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:i("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:i("for while do if else struct"),builtin:i("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:i("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TexureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:false,hooks:{"#":d},modeProps:{fold:["brace","include"]}});b("text/x-nesc",{name:"clike",keywords:i(l+"as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:i(j),blockKeywords:i("case do else for if switch while struct"),atoms:i("null true false"),hooks:{"#":d},modeProps:{fold:["brace","include"]}});b("text/x-objectivec",{name:"clike",keywords:i(l+"inline restrict _Bool _Complex _Imaginery BOOL Class bycopy byref id IMP in inout nil oneway out Protocol SEL self super atomic nonatomic retain copy readwrite readonly"),types:i(j),atoms:i("YES NO NULL NILL ON OFF true false"),hooks:{"@":function(m){m.eatWhile(/[\w\$]/);return"keyword"},"#":d},modeProps:{fold:"brace"}})});(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"),require("../htmlmixed/htmlmixed"),require("../clike/clike"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror","../htmlmixed/htmlmixed","../clike/clike"],a)}else{a(CodeMirror)}}})(function(d){function f(m){var k={},l=m.split(" ");for(var j=0;j\w/,false)){l.tokenize=e([[["->",null]],[[/[\w]+/,"variable"]]],k,j)}return"variable-2"}var m=false;while(!n.eol()&&(m||j===false||(!n.match("{$",false)&&!n.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,false)))){if(!m&&n.match(k)){l.tokenize=null;l.tokStack.pop();l.tokStack.pop();break}m=n.next()=="\\"&&!m}return"string"}var h="abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally";var i="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__";var a="func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";d.registerHelper("hintWords","php",[h,i,a].join(" ").split(" "));d.registerHelper("wordChars","php",/[\w$]/);var g={name:"clike",helperType:"php",keywords:f(h),blockKeywords:f("catch do else elseif for foreach if switch try while finally"),defKeywords:f("class function interface namespace trait"),atoms:f(i),builtin:f(a),multiLineStrings:true,hooks:{"$":function(j){j.eatWhile(/[\w\$_]/);return"variable-2"},"<":function(m,k){if(m.match(/<",false)){j.next()}return"comment"},"/":function(j){if(j.eat("/")){while(!j.eol()&&!j.match("?>",false)){j.next()}return"comment"}return false},'"':function(j,k){(k.tokStack||(k.tokStack=[])).push('"',0);k.tokenize=b('"');return"string"},"{":function(j,k){if(k.tokStack&&k.tokStack.length){k.tokStack[k.tokStack.length-1]++}return false},"}":function(j,k){if(k.tokStack&&k.tokStack.length>0&&!--k.tokStack[k.tokStack.length-1]){k.tokenize=b(k.tokStack[k.tokStack.length-2])}return false}}};d.defineMode("php",function(l,m){var n=d.getMode(l,"text/html");var j=d.getMode(l,g);function k(u,s){var r=s.curMode==j;if(u.sol()&&s.pending&&s.pending!='"'&&s.pending!="'"){s.pending=null}if(!r){if(u.match(/^<\?\w*/)){s.curMode=j;s.curState=s.php;return"meta"}if(s.pending=='"'||s.pending=="'"){while(!u.eol()&&u.next()!=s.pending){}var q="string"}else{if(s.pending&&u.pos/.test(t)){s.pending=o[0]}else{s.pending={end:u.pos,style:q}}u.backUp(t.length-p)}return q}else{if(r&&s.php.tokenize==null&&u.match("?>")){s.curMode=n;s.curState=s.html;return"meta"}else{return j.token(u,s.curState)}}}return{startState:function(){var o=d.startState(n),p=d.startState(j);return{html:o,php:p,curMode:m.startOpen?j:n,curState:m.startOpen?p:o,pending:null}},copyState:function(r){var p=r.html,q=d.copyState(n,p),t=r.php,o=d.copyState(j,t),s;if(r.curMode==n){s=q}else{s=o}return{html:q,php:o,curMode:r.curMode,curState:s,pending:r.pending}},token:k,indent:function(p,o){if((p.curMode!=j&&/^\s*<\//.test(o))||(p.curMode==j&&/^\?>/.test(o))){return n.indent(p.html,o)}return p.curMode.indent(p.curState,o)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(o){return{state:o.curState,mode:o.curMode}}}},"htmlmixed","clike");d.defineMIME("application/x-httpd-php","php");d.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:true});d.defineMIME("text/x-php",g)}); \ No newline at end of file +!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("mode/xml/xml",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},r={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",function(n,a){function o(e,t){function r(r){return t.tokenize=r,r(e,t)}var n=e.next();if("<"==n)return e.eat("!")?e.eat("[")?e.match("CDATA[")?r(s("atom","]]>")):null:e.match("--")?r(s("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),r(c(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=s("meta","?>"),"meta"):(z=e.eat("/")?"closeTag":"openTag",t.tokenize=i,"tag bracket");if("&"==n){var a;return a=e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"),a?"atom":"error"}return e.eatWhile(/[^&<]/),null}function i(e,t){var r=e.next();if(">"==r||"/"==r&&e.eat(">"))return t.tokenize=o,z=">"==r?"endTag":"selfcloseTag","tag bracket";if("="==r)return z="equals",null;if("<"==r){t.tokenize=o,t.state=m,t.tagName=t.tagStart=null;var n=t.tokenize(e,t);return n?n+" tag error":"tag error"}return/[\'\"]/.test(r)?(t.tokenize=l(r),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function l(e){var t=function(t,r){for(;!t.eol();)if(t.next()==e){r.tokenize=i;break}return"string"};return t.isInAttribute=!0,t}function s(e,t){return function(r,n){for(;!r.eol();){if(r.match(t)){n.tokenize=o;break}r.next()}return e}}function c(e){return function(t,r){for(var n;null!=(n=t.next());){if("<"==n)return r.tokenize=c(e+1),r.tokenize(t,r);if(">"==n){if(1==e){r.tokenize=o;break}return r.tokenize=c(e-1),r.tokenize(t,r)}}return"meta"}}function u(e,t,r){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=r,(x.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function d(e){e.context&&(e.context=e.context.prev)}function p(e,t){for(var r;;){if(!e.context)return;if(r=e.context.tagName,!x.contextGrabbers.hasOwnProperty(r)||!x.contextGrabbers[r].hasOwnProperty(t))return;d(e)}}function m(e,t,r){return"openTag"==e?(r.tagStart=t.column(),f):"closeTag"==e?g:m}function f(e,t,r){return"word"==e?(r.tagName=t.current(),M="tag",y):x.allowMissingTagName&&"endTag"==e?(M="tag bracket",y(e,t,r)):(M="error",f)}function g(e,t,r){if("word"==e){var n=t.current();return r.context&&r.context.tagName!=n&&x.implicitlyClosed.hasOwnProperty(r.context.tagName)&&d(r),r.context&&r.context.tagName==n||!1===x.matchClosing?(M="tag",_):(M="tag error",h)}return x.allowMissingTagName&&"endTag"==e?(M="tag bracket",_(e,t,r)):(M="error",h)}function _(e,t,r){return"endTag"!=e?(M="error",_):(d(r),m)}function h(e,t,r){return M="error",_(e,t,r)}function y(e,t,r){if("word"==e)return M="attribute",b;if("endTag"==e||"selfcloseTag"==e){var n=r.tagName,a=r.tagStart;return r.tagName=r.tagStart=null,"selfcloseTag"==e||x.autoSelfClosers.hasOwnProperty(n)?p(r,n):(p(r,n),r.context=new u(r,n,a==r.indented)),m}return M="error",y}function b(e,t,r){return"equals"==e?k:(x.allowMissing||(M="error"),y(e,t,r))}function k(e,t,r){return"string"==e?w:"word"==e&&x.allowUnquoted?(M="string",y):(M="error",y(e,t,r))}function w(e,t,r){return"string"==e?w:y(e,t,r)}var v=n.indentUnit,x={},q=a.htmlMode?t:r;for(var S in q)x[S]=q[S];for(var S in a)x[S]=a[S];var z,M;return o.isInText=!0,{startState:function(e){var t={tokenize:o,state:m,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;z=null;var r=t.tokenize(e,t);return(r||z)&&"comment"!=r&&(M=null,t.state=t.state(z||r,e,t),M&&(r="error"==M?r+" error":M)),r},indent:function(t,r,n){var a=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+v;if(a&&a.noIndent)return e.Pass;if(t.tokenize!=i&&t.tokenize!=o)return n?n.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==x.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+v*(x.multilineTagIndentFactor||1);if(x.alignCDATA&&/$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:x.htmlMode?"html":"xml",helperType:x.htmlMode?"html":"xml",skipAttribute:function(e){e.state==k&&(e.state=y)}}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("mode/javascript/javascript",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("javascript",function(t,r){function n(e){for(var t,r=!1,n=!1;null!=(t=e.next());){if(!r){if("/"==t&&!n)return;"["==t?n=!0:n&&"]"==t&&(n=!1)}r=!r&&"\\"==t}}function a(e,t,r){return $e=e,Fe=r,t}function o(e,t){var r=e.next();if('"'==r||"'"==r)return t.tokenize=i(r),t.tokenize(e,t);if("."==r&&e.match(/^\d+(?:[eE][+\-]?\d+)?/))return a("number","number");if("."==r&&e.match(".."))return a("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return a(r);if("="==r&&e.eat(">"))return a("=>","operator");if("0"==r&&e.match(/^(?:x[\da-f]+|o[0-7]+|b[01]+)n?/i))return a("number","number");if(/\d/.test(r))return e.match(/^\d*(?:n|(?:\.\d*)?(?:[eE][+\-]?\d+)?)?/),a("number","number");if("/"==r)return e.eat("*")?(t.tokenize=l,l(e,t)):e.eat("/")?(e.skipToEnd(),a("comment","comment")):De(e,t,1)?(n(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),a("regexp","string-2")):(e.eat("="),a("operator","operator",e.current()));if("`"==r)return t.tokenize=s,s(e,t);if("#"==r)return e.skipToEnd(),a("error","error");if(He.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),a("operator","operator",e.current());if(We.test(r)){e.eatWhile(We);var o=e.current();if("."!=t.lastType){if(Re.propertyIsEnumerable(o)){var c=Re[o];return a(c.type,c.style,o)}if("async"==o&&e.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return a("async","keyword",o)}return a("variable","variable",o)}}function i(e){return function(t,r){var n,i=!1;if(Ke&&"@"==t.peek()&&t.match(Ge))return r.tokenize=o,a("jsonld-keyword","meta");for(;null!=(n=t.next())&&(n!=e||i);)i=!i&&"\\"==n;return i||(r.tokenize=o),a("string","string")}}function l(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=o;break}n="*"==r}return a("comment","comment")}function s(e,t){for(var r,n=!1;null!=(r=e.next());){if(!n&&("`"==r||"$"==r&&e.eat("{"))){t.tokenize=o;break}n=!n&&"\\"==r}return a("quasi","string-2",e.current())}function c(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var r=e.string.indexOf("=>",e.start);if(!(r<0)){if(Ue){var n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,r));n&&(r=n.index)}for(var a=0,o=!1,i=r-1;i>=0;--i){var l=e.string.charAt(i),s=Ze.indexOf(l);if(s>=0&&s<3){if(!a){++i;break}if(0==--a){"("==l&&(o=!0);break}}else if(s>=3&&s<6)++a;else if(We.test(l))o=!0;else{if(/["'\/]/.test(l))return;if(o&&!a){++i;break}}}o&&!a&&(t.fatArrowAt=i)}}function u(e,t,r,n,a,o){this.indented=e,this.column=t,this.type=r,this.prev=a,this.info=o,null!=n&&(this.align=n)}function d(e,t){for(var r=e.localVars;r;r=r.next)if(r.name==t)return!0;for(var n=e.context;n;n=n.prev)for(var r=n.vars;r;r=r.next)if(r.name==t)return!0}function p(e,t,r,n,a){var o=e.cc;for(Xe.state=e,Xe.stream=a,Xe.marked=null,Xe.cc=o,Xe.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;){if((o.length?o.pop():Ve?C:M)(r,n)){for(;o.length&&o[o.length-1].lex;)o.pop()();return Xe.marked?Xe.marked:"variable"==r&&d(e,n)?"variable-2":t}}}function m(){for(var e=arguments.length-1;e>=0;e--)Xe.cc.push(arguments[e])}function f(){return m.apply(null,arguments),!0}function g(e,t){for(var r=t;r;r=r.next)if(r.name==e)return!0;return!1}function _(e){var t=Xe.state;if(Xe.marked="def",t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var n=h(e,t.context);if(null!=n)return void(t.context=n)}else if(!g(e,t.localVars))return void(t.localVars=new k(e,t.localVars));r.globalVars&&!g(e,t.globalVars)&&(t.globalVars=new k(e,t.globalVars))}function h(e,t){if(t){if(t.block){var r=h(e,t.prev);return r?r==t.prev?t:new b(r,t.vars,!0):null}return g(e,t.vars)?t:new b(t.prev,new k(e,t.vars),!1)}return null}function y(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function b(e,t,r){this.prev=e,this.vars=t,this.block=r}function k(e,t){this.name=e,this.next=t}function w(){Xe.state.context=new b(Xe.state.context,Xe.state.localVars,!1),Xe.state.localVars=Qe}function v(){Xe.state.context=new b(Xe.state.context,Xe.state.localVars,!0),Xe.state.localVars=null}function x(){Xe.state.localVars=Xe.state.context.vars,Xe.state.context=Xe.state.context.prev}function q(e,t){var r=function(){var r=Xe.state,n=r.indented;if("stat"==r.lexical.type)n=r.lexical.indented;else for(var a=r.lexical;a&&")"==a.type&&a.align;a=a.prev)n=a.indented;r.lexical=new u(n,Xe.stream.column(),e,null,r.lexical,t)};return r.lex=!0,r}function S(){var e=Xe.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function z(e){function t(r){return r==e?f():";"==e||"}"==r||")"==r||"]"==r?m():f(t)}return t}function M(e,t){return"var"==e?f(q("vardef",t),se,z(";"),S):"keyword a"==e?f(q("form"),P,M,S):"keyword b"==e?f(q("form"),M,S):"keyword d"==e?Xe.stream.match(/^\s*$/,!1)?f():f(q("stat"),A,z(";"),S):"debugger"==e?f(z(";")):"{"==e?f(q("}"),v,Y,S,x):";"==e?f():"if"==e?("else"==Xe.state.lexical.info&&Xe.state.cc[Xe.state.cc.length-1]==S&&Xe.state.cc.pop()(),f(q("form"),P,M,S,me)):"function"==e?f(be):"for"==e?f(q("form"),fe,M,S):"class"==e||Ue&&"interface"==t?(Xe.marked="keyword",f(q("form"),ve,S)):"variable"==e?Ue&&"declare"==t?(Xe.marked="keyword",f(M)):Ue&&("module"==t||"enum"==t||"type"==t)&&Xe.stream.match(/^\s*\w/,!1)?(Xe.marked="keyword","enum"==t?f(Ee):"type"==t?f(ee,z("operator"),ee,z(";")):f(q("form"),ce,z("{"),q("}"),Y,S,S)):Ue&&"namespace"==t?(Xe.marked="keyword",f(q("form"),C,Y,S)):Ue&&"abstract"==t?(Xe.marked="keyword",f(M)):f(q("stat"),V):"switch"==e?f(q("form"),P,z("{"),q("}","switch"),v,Y,S,S,x):"case"==e?f(C,z(":")):"default"==e?f(z(":")):"catch"==e?f(q("form"),w,T,M,S,x):"export"==e?f(q("stat"),ze,S):"import"==e?f(q("stat"),Te,S):"async"==e?f(M):"@"==t?f(C,M):m(q("stat"),C,z(";"),S)}function T(e){if("("==e)return f(ke,z(")"))}function C(e,t){return I(e,t,!1)}function j(e,t){return I(e,t,!0)}function P(e){return"("!=e?m():f(q(")"),C,z(")"),S)}function I(e,t,r){if(Xe.state.fatArrowAt==Xe.stream.start){var n=r?F:$;if("("==e)return f(w,q(")"),G(ke,")"),S,z("=>"),n,x);if("variable"==e)return m(w,ce,z("=>"),n,x)}var a=r?L:E;return Ye.hasOwnProperty(e)?f(a):"function"==e?f(be,a):"class"==e||Ue&&"interface"==t?(Xe.marked="keyword",f(q("form"),we,S)):"keyword c"==e||"async"==e?f(r?j:C):"("==e?f(q(")"),A,z(")"),S,a):"operator"==e||"spread"==e?f(r?j:C):"["==e?f(q("]"),Ae,S,a):"{"==e?Z(W,"}",null,a):"quasi"==e?m(O,a):"new"==e?f(B(r)):"import"==e?f(C):f()}function A(e){return e.match(/[;\}\)\],]/)?m():m(C)}function E(e,t){return","==e?f(C):L(e,t,!1)}function L(e,t,r){var n=0==r?E:L,a=0==r?C:j;return"=>"==e?f(w,r?F:$,x):"operator"==e?/\+\+|--/.test(t)||Ue&&"!"==t?f(n):Ue&&"<"==t&&Xe.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?f(q(">"),G(ee,">"),S,n):"?"==t?f(C,z(":"),a):f(a):"quasi"==e?m(O,n):";"!=e?"("==e?Z(j,")","call",n):"."==e?f(U,n):"["==e?f(q("]"),A,z("]"),S,n):Ue&&"as"==t?(Xe.marked="keyword",f(ee,n)):"regexp"==e?(Xe.state.lastType=Xe.marked="operator",Xe.stream.backUp(Xe.stream.pos-Xe.stream.start-1),f(a)):void 0:void 0}function O(e,t){return"quasi"!=e?m():"${"!=t.slice(t.length-2)?f(O):f(C,D)}function D(e){if("}"==e)return Xe.marked="string-2",Xe.state.tokenize=s,f(O)}function $(e){return c(Xe.stream,Xe.state),m("{"==e?M:C)}function F(e){return c(Xe.stream,Xe.state),m("{"==e?M:j)}function B(e){return function(t){return"."==t?f(e?K:N):"variable"==t&&Ue?f(oe,e?L:E):m(e?j:C)}}function N(e,t){if("target"==t)return Xe.marked="keyword",f(E)}function K(e,t){if("target"==t)return Xe.marked="keyword",f(L)}function V(e){return":"==e?f(S,M):m(E,z(";"),S)}function U(e){if("variable"==e)return Xe.marked="property",f()}function W(e,t){if("async"==e)return Xe.marked="property",f(W);if("variable"==e||"keyword"==Xe.style){if(Xe.marked="property","get"==t||"set"==t)return f(R);var r;return Ue&&Xe.state.fatArrowAt==Xe.stream.start&&(r=Xe.stream.match(/^\s*:\s*/,!1))&&(Xe.state.fatArrowAt=Xe.stream.pos+r[0].length),f(H)}return"number"==e||"string"==e?(Xe.marked=Ke?"property":Xe.style+" property",f(H)):"jsonld-keyword"==e?f(H):Ue&&y(t)?(Xe.marked="keyword",f(W)):"["==e?f(C,X,z("]"),H):"spread"==e?f(j,H):"*"==t?(Xe.marked="keyword",f(W)):":"==e?m(H):void 0}function R(e){return"variable"!=e?m(H):(Xe.marked="property",f(be))}function H(e){return":"==e?f(j):"("==e?m(be):void 0}function G(e,t,r){function n(a,o){if(r?r.indexOf(a)>-1:","==a){var i=Xe.state.lexical;return"call"==i.info&&(i.pos=(i.pos||0)+1),f(function(r,n){return r==t||n==t?m():m(e)},n)}return a==t||o==t?f():f(z(t))}return function(r,a){return r==t||a==t?f():m(e,n)}}function Z(e,t,r){for(var n=3;n"),ee):void 0}function te(e){if("=>"==e)return f(ee)}function re(e,t){return"variable"==e||"keyword"==Xe.style?(Xe.marked="property",f(re)):"?"==t?f(re):":"==e?f(ee):"["==e?f(C,X,z("]"),re):void 0}function ne(e,t){return"variable"==e&&Xe.stream.match(/^\s*[?:]/,!1)||"?"==t?f(ne):":"==e?f(ee):m(ee)}function ae(e,t){return"<"==t?f(q(">"),G(ee,">"),S,ae):"|"==t||"."==e||"&"==t?f(ee):"["==e?f(z("]"),ae):"extends"==t||"implements"==t?(Xe.marked="keyword",f(ee)):void 0}function oe(e,t){if("<"==t)return f(q(">"),G(ee,">"),S,ae)}function ie(){return m(ee,le)}function le(e,t){if("="==t)return f(ee)}function se(e,t){return"enum"==t?(Xe.marked="keyword",f(Ee)):m(ce,X,de,pe)}function ce(e,t){return Ue&&y(t)?(Xe.marked="keyword",f(ce)):"variable"==e?(_(t),f()):"spread"==e?f(ce):"["==e?Z(ce,"]"):"{"==e?Z(ue,"}"):void 0}function ue(e,t){return"variable"!=e||Xe.stream.match(/^\s*:/,!1)?("variable"==e&&(Xe.marked="property"),"spread"==e?f(ce):"}"==e?m():f(z(":"),ce,de)):(_(t),f(de))}function de(e,t){if("="==t)return f(j)}function pe(e){if(","==e)return f(se)}function me(e,t){if("keyword b"==e&&"else"==t)return f(q("form","else"),M,S)}function fe(e,t){return"await"==t?f(fe):"("==e?f(q(")"),ge,z(")"),S):void 0}function ge(e){return"var"==e?f(se,z(";"),he):";"==e?f(he):"variable"==e?f(_e):m(C,z(";"),he)}function _e(e,t){return"in"==t||"of"==t?(Xe.marked="keyword",f(C)):f(E,he)}function he(e,t){return";"==e?f(ye):"in"==t||"of"==t?(Xe.marked="keyword",f(C)):m(C,z(";"),ye)}function ye(e){")"!=e&&f(C)}function be(e,t){return"*"==t?(Xe.marked="keyword",f(be)):"variable"==e?(_(t),f(be)):"("==e?f(w,q(")"),G(ke,")"),S,Q,M,x):Ue&&"<"==t?f(q(">"),G(ie,">"),S,be):void 0}function ke(e,t){return"@"==t&&f(C,ke),"spread"==e?f(ke):Ue&&y(t)?(Xe.marked="keyword",f(ke)):m(ce,X,de)}function we(e,t){return"variable"==e?ve(e,t):xe(e,t)}function ve(e,t){if("variable"==e)return _(t),f(xe)}function xe(e,t){return"<"==t?f(q(">"),G(ie,">"),S,xe):"extends"==t||"implements"==t||Ue&&","==e?("implements"==t&&(Xe.marked="keyword"),f(Ue?ee:C,xe)):"{"==e?f(q("}"),qe,S):void 0}function qe(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||Ue&&y(t))&&Xe.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(Xe.marked="keyword",f(qe)):"variable"==e||"keyword"==Xe.style?(Xe.marked="property",f(Ue?Se:be,qe)):"["==e?f(C,X,z("]"),Ue?Se:be,qe):"*"==t?(Xe.marked="keyword",f(qe)):";"==e?f(qe):"}"==e?f():"@"==t?f(C,qe):void 0}function Se(e,t){return"?"==t?f(Se):":"==e?f(ee,de):"="==t?f(j):m(be)}function ze(e,t){return"*"==t?(Xe.marked="keyword",f(Ie,z(";"))):"default"==t?(Xe.marked="keyword",f(C,z(";"))):"{"==e?f(G(Me,"}"),Ie,z(";")):m(M)}function Me(e,t){return"as"==t?(Xe.marked="keyword",f(z("variable"))):"variable"==e?m(j,Me):void 0}function Te(e){return"string"==e?f():"("==e?m(C):m(Ce,je,Ie)}function Ce(e,t){return"{"==e?Z(Ce,"}"):("variable"==e&&_(t),"*"==t&&(Xe.marked="keyword"),f(Pe))}function je(e){if(","==e)return f(Ce,je)}function Pe(e,t){if("as"==t)return Xe.marked="keyword",f(Ce)}function Ie(e,t){if("from"==t)return Xe.marked="keyword",f(C)}function Ae(e){return"]"==e?f():m(G(j,"]"))}function Ee(){return m(q("form"),ce,z("{"),q("}"),G(Le,"}"),S,S)}function Le(){return m(ce,de)}function Oe(e,t){return"operator"==e.lastType||","==e.lastType||He.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function De(e,t,r){return t.tokenize==o&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(r||0)))}var $e,Fe,Be=t.indentUnit,Ne=r.statementIndent,Ke=r.jsonld,Ve=r.json||Ke,Ue=r.typescript,We=r.wordCharacters||/[\w$\xa1-\uffff]/,Re=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),r=e("keyword b"),n=e("keyword c"),a=e("keyword d"),o=e("operator"),i={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:r,do:r,try:r,finally:r,return:a,break:a,continue:a,new:e("new"),delete:n,void:n,throw:n,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:i,false:i,null:i,undefined:i,NaN:i,Infinity:i,this:e("this"),class:e("class"),super:e("atom"),yield:n,export:e("export"),import:e("import"),extends:n,await:n}}(),He=/[+\-*&%=<>!?|~^@]/,Ge=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/,Ze="([{}])",Ye={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0},Xe={state:null,column:null,marked:null,cc:null},Qe=new k("this",new k("arguments",null));return x.lex=!0,S.lex=!0,{startState:function(e){var t={tokenize:o,lastType:"sof",cc:[],lexical:new u((e||0)-Be,0,"block",!1),localVars:r.localVars,context:r.localVars&&new b(null,null,!1),indented:e||0};return r.globalVars&&"object"==typeof r.globalVars&&(t.globalVars=r.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),c(e,t)),t.tokenize!=l&&e.eatSpace())return null;var r=t.tokenize(e,t);return"comment"==$e?r:(t.lastType="operator"!=$e||"++"!=Fe&&"--"!=Fe?$e:"incdec",p(t,r,$e,Fe,e))},indent:function(t,n){if(t.tokenize==l)return e.Pass;if(t.tokenize!=o)return 0;var a,i=n&&n.charAt(0),s=t.lexical;if(!/^\s*else\b/.test(n))for(var c=t.cc.length-1;c>=0;--c){var u=t.cc[c];if(u==S)s=s.prev;else if(u!=me)break}for(;("stat"==s.type||"form"==s.type)&&("}"==i||(a=t.cc[t.cc.length-1])&&(a==E||a==L)&&!/^[,\.=+\-*:?[\(]/.test(n));)s=s.prev;Ne&&")"==s.type&&"stat"==s.prev.type&&(s=s.prev);var d=s.type,p=i==d;return"vardef"==d?s.indented+("operator"==t.lastType||","==t.lastType?s.info.length+1:0):"form"==d&&"{"==i?s.indented:"form"==d?s.indented+Be:"stat"==d?s.indented+(Oe(t,n)?Ne||Be:0):"switch"!=s.info||p||0==r.doubleIndentSwitch?s.align?s.column+(p?0:1):s.indented+(p?0:Be):s.indented+(/^(?:case|default)\b/.test(n)?Be:2*Be)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:Ve?null:"/*",blockCommentEnd:Ve?null:"*/",blockCommentContinue:Ve?null:" * ",lineComment:Ve?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:Ve?"json":"javascript",jsonldMode:Ke,jsonMode:Ve,expressionAllowed:De,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=C&&t!=j||e.cc.pop()}}}),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("mode/css/css",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e){for(var t={},r=0;r*\/]/.test(r)?n(null,"select-op"):"."==r&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?n("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(r)?n(null,r):("u"==r||"U"==r)&&e.match(/rl(-prefix)?\(/i)||("d"==r||"D"==r)&&e.match("omain(",!0,!0)||("r"==r||"R"==r)&&e.match("egexp(",!0,!0)?(e.backUp(1),t.tokenize=i,n("property","word")):/[\w\\\-]/.test(r)?(e.eatWhile(/[\w\\\-]/),n("property","word")):n(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),n("number","unit")):e.match(/^-[\w\\\-]+/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?n("variable-2","variable-definition"):n("variable-2","variable")):e.match(/^\w+-/)?n("meta","meta"):void 0}function o(e){return function(t,r){for(var a,o=!1;null!=(a=t.next());){if(a==e&&!o){")"==e&&t.backUp(1);break}o=!o&&"\\"==a}return(a==e||!o&&")"!=e)&&(r.tokenize=null),n("string","string")}}function i(e,t){return e.next(),e.match(/\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=o(")"),n(null,"(")}function l(e,t,r){this.type=e,this.indent=t,this.prev=r}function s(e,t,r,n){return e.context=new l(r,t.indentation()+(!1===n?0:_),e.context),r}function c(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function u(e,t,r){return P[r.context.type](e,t,r)}function d(e,t,r,n){for(var a=n||1;a>0;a--)r.context=r.context.prev;return u(e,t,r)}function p(e){var t=e.current().toLowerCase();g=M.hasOwnProperty(t)?"atom":z.hasOwnProperty(t)?"keyword":"variable"}var m=r.inline;r.propertyKeywords||(r=e.resolveMode("text/css"));var f,g,_=t.indentUnit,h=r.tokenHooks,y=r.documentTypes||{},b=r.mediaTypes||{},k=r.mediaFeatures||{},w=r.mediaValueKeywords||{},v=r.propertyKeywords||{},x=r.nonStandardPropertyKeywords||{},q=r.fontProperties||{},S=r.counterDescriptors||{},z=r.colorKeywords||{},M=r.valueKeywords||{},T=r.allowNested,C=r.lineComment,j=!0===r.supportsAtComponent,P={};return P.top=function(e,t,r){if("{"==e)return s(r,t,"block");if("}"==e&&r.context.prev)return c(r);if(j&&/@component/i.test(e))return s(r,t,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return s(r,t,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return s(r,t,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return r.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return s(r,t,"at");if("hash"==e)g="builtin";else if("word"==e)g="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return s(r,t,"interpolation");if(":"==e)return"pseudo";if(T&&"("==e)return s(r,t,"parens")}return r.context.type},P.block=function(e,t,r){if("word"==e){var n=t.current().toLowerCase();return v.hasOwnProperty(n)?(g="property","maybeprop"):x.hasOwnProperty(n)?(g="string-2","maybeprop"):T?(g=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(g+=" error","maybeprop")}return"meta"==e?"block":T||"hash"!=e&&"qualifier"!=e?P.top(e,t,r):(g="error","block")},P.maybeprop=function(e,t,r){return":"==e?s(r,t,"prop"):u(e,t,r)},P.prop=function(e,t,r){if(";"==e)return c(r);if("{"==e&&T)return s(r,t,"propBlock");if("}"==e||"{"==e)return d(e,t,r);if("("==e)return s(r,t,"parens");if("hash"!=e||/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(t.current())){if("word"==e)p(t);else if("interpolation"==e)return s(r,t,"interpolation")}else g+=" error";return"prop"},P.propBlock=function(e,t,r){return"}"==e?c(r):"word"==e?(g="property","maybeprop"):r.context.type},P.parens=function(e,t,r){return"{"==e||"}"==e?d(e,t,r):")"==e?c(r):"("==e?s(r,t,"parens"):"interpolation"==e?s(r,t,"interpolation"):("word"==e&&p(t),"parens")},P.pseudo=function(e,t,r){return"meta"==e?"pseudo":"word"==e?(g="variable-3",r.context.type):u(e,t,r)},P.documentTypes=function(e,t,r){return"word"==e&&y.hasOwnProperty(t.current())?(g="tag",r.context.type):P.atBlock(e,t,r)},P.atBlock=function(e,t,r){if("("==e)return s(r,t,"atBlock_parens");if("}"==e||";"==e)return d(e,t,r);if("{"==e)return c(r)&&s(r,t,T?"block":"top");if("interpolation"==e)return s(r,t,"interpolation");if("word"==e){var n=t.current().toLowerCase();g="only"==n||"not"==n||"and"==n||"or"==n?"keyword":b.hasOwnProperty(n)?"attribute":k.hasOwnProperty(n)?"property":w.hasOwnProperty(n)?"keyword":v.hasOwnProperty(n)?"property":x.hasOwnProperty(n)?"string-2":M.hasOwnProperty(n)?"atom":z.hasOwnProperty(n)?"keyword":"error"}return r.context.type},P.atComponentBlock=function(e,t,r){return"}"==e?d(e,t,r):"{"==e?c(r)&&s(r,t,T?"block":"top",!1):("word"==e&&(g="error"),r.context.type)},P.atBlock_parens=function(e,t,r){return")"==e?c(r):"{"==e||"}"==e?d(e,t,r,2):P.atBlock(e,t,r)},P.restricted_atBlock_before=function(e,t,r){return"{"==e?s(r,t,"restricted_atBlock"):"word"==e&&"@counter-style"==r.stateArg?(g="variable","restricted_atBlock_before"):u(e,t,r)},P.restricted_atBlock=function(e,t,r){return"}"==e?(r.stateArg=null,c(r)):"word"==e?(g="@font-face"==r.stateArg&&!q.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==r.stateArg&&!S.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},P.keyframes=function(e,t,r){return"word"==e?(g="variable","keyframes"):"{"==e?s(r,t,"top"):u(e,t,r)},P.at=function(e,t,r){return";"==e?c(r):"{"==e||"}"==e?d(e,t,r):("word"==e?g="tag":"hash"==e&&(g="builtin"),"at")},P.interpolation=function(e,t,r){return"}"==e?c(r):"{"==e||";"==e?d(e,t,r):("word"==e?g="variable":"variable"!=e&&"("!=e&&")"!=e&&(g="error"),"interpolation")},{startState:function(e){return{tokenize:null,state:m?"block":"top",stateArg:null,context:new l(m?"block":"top",e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var r=(t.tokenize||a)(e,t);return r&&"object"==typeof r&&(f=r[1],r=r[0]),g=r,"comment"!=f&&(t.state=P[t.state](f,e,t)),g},indent:function(e,t){var r=e.context,n=t&&t.charAt(0),a=r.indent;return"prop"!=r.type||"}"!=n&&")"!=n||(r=r.prev),r.prev&&("}"!=n||"block"!=r.type&&"top"!=r.type&&"interpolation"!=r.type&&"restricted_atBlock"!=r.type?(")"!=n||"parens"!=r.type&&"atBlock_parens"!=r.type)&&("{"!=n||"at"!=r.type&&"atBlock"!=r.type)||(a=Math.max(0,r.indent-_)):(r=r.prev,a=r.indent)),a},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:C,fold:"brace"}}) +;var n=["domain","regexp","url","url-prefix"],a=t(n),o=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],i=t(o),l=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover"],s=t(l),c=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive"],u=t(c),d=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],p=t(d),m=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],f=t(m),g=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],_=t(g),h=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],y=t(h),b=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],k=t(b),w=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],v=t(w),x=n.concat(o).concat(l).concat(c).concat(d).concat(m).concat(b).concat(w);e.registerHelper("hintWords","css",x),e.defineMIME("text/css",{documentTypes:a,mediaTypes:i,mediaFeatures:s,mediaValueKeywords:u,propertyKeywords:p,nonStandardPropertyKeywords:f,fontProperties:_,counterDescriptors:y,colorKeywords:k,valueKeywords:v,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=r,r(e,t))}},name:"css"}),e.defineMIME("text/x-scss",{mediaTypes:i,mediaFeatures:s,mediaValueKeywords:u,propertyKeywords:p,nonStandardPropertyKeywords:f,colorKeywords:k,valueKeywords:v,fontProperties:_,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=r,r(e,t)):["operator","operator"]},":":function(e){return!!e.match(/\s*\{/,!1)&&[null,null]},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(e){return!!e.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),e.defineMIME("text/x-less",{mediaTypes:i,mediaFeatures:s,mediaValueKeywords:u,propertyKeywords:p,nonStandardPropertyKeywords:f,colorKeywords:k,valueKeywords:v,fontProperties:_,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=r,r(e,t)):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),e.defineMIME("text/x-gss",{documentTypes:a,mediaTypes:i,mediaFeatures:s,propertyKeywords:p,nonStandardPropertyKeywords:f,fontProperties:_,counterDescriptors:y,colorKeywords:k,valueKeywords:v,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=r,r(e,t))}},name:"css",helperType:"gss"})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../xml/xml"),require("../javascript/javascript"),require("../css/css")):"function"==typeof define&&define.amd?define("mode/htmlmixed/htmlmixed",["../../lib/codemirror","../xml/xml","../javascript/javascript","../css/css"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t,r){var n=e.current(),a=n.search(t);return a>-1?e.backUp(n.length-a):n.match(/<\/?$/)&&(e.backUp(n.length),e.match(t,!1)||e.match(n)),r}function r(e){var t=s[e];return t||(s[e]=new RegExp("\\s+"+e+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*"))}function n(e,t){var n=e.match(r(t));return n?/^\s*(.*?)\s*$/.exec(n[2])[1]:""}function a(e,t){return new RegExp((t?"^":"")+"","i")}function o(e,t){for(var r in e)for(var n=t[r]||(t[r]=[]),a=e[r],o=a.length-1;o>=0;o--)n.unshift(a[o])}function i(e,t){for(var r=0;r\s\/]/.test(n.current())&&(l=o.htmlState.tagName&&o.htmlState.tagName.toLowerCase())&&u.hasOwnProperty(l))o.inTag=l+" ";else if(o.inTag&&p&&/>$/.test(n.current())){var m=/^([\S]+) (.*)/.exec(o.inTag);o.inTag=null;var f=">"==n.current()&&i(u[m[1]],m[2]),g=e.getMode(r,f),_=a(m[1],!0),h=a(m[1],!1);o.token=function(e,r){return e.match(_,!1)?(r.token=s,r.localState=r.localMode=null,null):t(e,h,r.localMode.token(e,r.localState))},o.localMode=g,o.localState=e.startState(g,c.indent(o.htmlState,""))}else o.inTag&&(o.inTag+=n.current(),n.eol()&&(o.inTag+=" "));return d}var c=e.getMode(r,{name:"xml",htmlMode:!0,multilineTagIndentFactor:n.multilineTagIndentFactor,multilineTagIndentPastTag:n.multilineTagIndentPastTag}),u={},d=n&&n.tags,p=n&&n.scriptTypes;if(o(l,u),d&&o(d,u),p)for(var m=p.length-1;m>=0;m--)u.script.unshift(["type",p[m].matches,p[m].mode]);return{startState:function(){return{token:s,inTag:null,localMode:null,localState:null,htmlState:e.startState(c)}},copyState:function(t){var r;return t.localState&&(r=e.copyState(t.localMode,t.localState)),{token:t.token,inTag:t.inTag,localMode:t.localMode,localState:r,htmlState:e.copyState(c,t.htmlState)}},token:function(e,t){return t.token(e,t)},indent:function(t,r,n){return!t.localMode||/^\s*<\//.test(r)?c.indent(t.htmlState,r):t.localMode.indent?t.localMode.indent(t.localState,r,n):e.Pass},innerMode:function(e){return{state:e.localState||e.htmlState,mode:e.localMode||c}}}},"xml","javascript","css"),e.defineMIME("text/html","htmlmixed")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("mode/clike/clike",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t,r,n,a,o){this.indented=e,this.column=t,this.type=r,this.info=n,this.align=a,this.prev=o}function r(e,r,n,a){var o=e.indented;return e.context&&"statement"==e.context.type&&"statement"!=n&&(o=e.context.indented),e.context=new t(o,r,n,a,null,e.context)}function n(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}function a(e,t,r){return"variable"==t.prevToken||"type"==t.prevToken||(!!/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(e.string.slice(0,r))||(!(!t.typeAtEndOfLine||e.column()!=e.indentation())||void 0))}function o(e){for(;;){if(!e||"top"==e.type)return!0;if("}"==e.type&&"namespace"!=e.prev.info)return!1;e=e.prev}}function i(e){for(var t={},r=e.split(" "),n=0;n!?|\/]/,A=s.isIdentifierChar||/[\w\$_\xa1-\uffff]/;return{startState:function(e){return{tokenize:null,context:new t((e||0)-g,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(e,t){var i=t.context;if(e.sol()&&(null==i.align&&(i.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return p(e,t),null;m=f=null;var l=(t.tokenize||c)(e,t);if("comment"==l||"meta"==l)return l;if(null==i.align&&(i.align=!0),";"==m||":"==m||","==m&&e.match(/^\s*(?:\/\/.*)?$/,!1))for(;"statement"==t.context.type;)n(t);else if("{"==m)r(t,e.column(),"}");else if("["==m)r(t,e.column(),"]");else if("("==m)r(t,e.column(),")");else if("}"==m){for(;"statement"==i.type;)i=n(t);for("}"==i.type&&(i=n(t));"statement"==i.type;)i=n(t)}else m==i.type?n(t):z&&(("}"==i.type||"top"==i.type)&&";"!=m||"statement"==i.type&&"newstatement"==m)&&r(t,e.column(),"statement",e.current());if("variable"==l&&("def"==t.prevToken||s.typeFirstDefinitions&&a(e,t,e.start)&&o(t.context)&&e.match(/^\s*\(/,!1))&&(l="def"),q.token){var u=q.token(e,t,l);void 0!==u&&(l=u)}return"def"==l&&!1===s.styleDefs&&(l="variable"),t.startOfLine=!1,t.prevToken=f?"def":l||m,p(e,t),l},indent:function(t,r){if(t.tokenize!=c&&null!=t.tokenize||t.typeAtEndOfLine)return e.Pass;var n=t.context,a=r&&r.charAt(0);if("statement"==n.type&&"}"==a&&(n=n.prev),s.dontIndentStatements)for(;"statement"==n.type&&s.dontIndentStatements.test(n.info);)n=n.prev;if(q.indent){var o=q.indent(t,n,r);if("number"==typeof o)return o}var i=a==n.type,l=n.prev&&"switch"==n.prev.info;if(s.allmanIndentation&&/[{(]/.test(a)){for(;"top"!=n.type&&"}"!=n.type;)n=n.prev;return n.indented}return"statement"==n.type?n.indented+("{"==a?0:_):!n.align||h&&")"==n.type?")"!=n.type||i?n.indented+(i?0:g)+(i||!l||/^(?:case|default)\b/.test(r)?0:g):n.indented+_:n.column+(i?0:1)},electricInput:M?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});var k="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile",w="int long char short double float unsigned signed void size_t ptrdiff_t";g(["text/x-csrc","text/x-c","text/x-chdr"],{name:"clike",keywords:i(k),types:i(w+" bool _Complex _Bool float_t double_t intptr_t intmax_t int8_t int16_t int32_t int64_t uintptr_t uintmax_t uint8_t uint16_t uint32_t uint64_t"),blockKeywords:i("case do else for if switch while struct"),defKeywords:i("struct"),typeFirstDefinitions:!0,atoms:i("NULL true false"),hooks:{"#":s,"*":c},modeProps:{fold:["brace","include"]}}),g(["text/x-c++src","text/x-c++hdr"],{name:"clike",keywords:i(k+" asm dynamic_cast namespace reinterpret_cast try explicit new static_cast typeid catch operator template typename class friend private this using const_cast inline public throw virtual delete mutable protected alignas alignof constexpr decltype nullptr noexcept thread_local final static_assert override"),types:i(w+" bool wchar_t"),blockKeywords:i("catch class do else finally for if struct switch try while"),defKeywords:i("class namespace struct enum union"),typeFirstDefinitions:!0,atoms:i("true false NULL"),dontIndentStatements:/^template$/,isIdentifierChar:/[\w\$_~\xa1-\uffff]/,hooks:{"#":s,"*":c,u:d,U:d,L:d,R:d,0:u,1:u,2:u,3:u,4:u,5:u,6:u,7:u,8:u,9:u,token:function(e,t,r){if("variable"==r&&"("==e.peek()&&(";"==t.prevToken||null==t.prevToken||"}"==t.prevToken)&&p(e.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),g("text/x-java",{name:"clike",keywords:i("abstract assert break case catch class const continue default do else enum extends final finally float for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while @interface"),types:i("byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),blockKeywords:i("catch class do else finally for if switch try while"),defKeywords:i("class interface enum @interface"),typeFirstDefinitions:!0,atoms:i("true false null"),number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,hooks:{"@":function(e){return!e.match("interface",!1)&&(e.eatWhile(/[\w\$_]/),"meta")}},modeProps:{fold:["brace","import"]}}),g("text/x-csharp",{name:"clike",keywords:i("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in interface internal is lock namespace new operator out override params private protected public readonly ref return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),types:i("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),blockKeywords:i("catch class do else finally for foreach if struct switch try while"),defKeywords:i("class interface namespace struct var"),typeFirstDefinitions:!0,atoms:i("true false null"),hooks:{"@":function(e,t){return e.eat('"')?(t.tokenize=m,m(e,t)):(e.eatWhile(/[\w\$_]/),"meta")}}}),g("text/x-scala",{name:"clike",keywords:i("abstract case catch class def do else extends final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try type val var while with yield _ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble"),types:i("AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Int Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),multiLineStrings:!0, +blockKeywords:i("catch class enum do else finally for forSome if match switch try while"),defKeywords:i("class enum def object package trait type val var"),atoms:i("true false null"),indentStatements:!1,indentSwitch:!1,isOperatorChar:/[+\-*&%=<>!?|\/#:@]/,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return!!e.match('""')&&(t.tokenize=_,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},"=":function(e,r){var n=r.context;return!("}"!=n.type||!n.align||!e.eat(">"))&&(r.context=new t(n.indented,n.column,n.type,n.info,null,n.prev),"operator")},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=h(1),t.tokenize(e,t))}},modeProps:{closeBrackets:{triples:'"'}}}),g("text/x-kotlin",{name:"clike",keywords:i("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam"),types:i("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:i("catch class do else finally for if where try while enum"),defKeywords:i("class val var object interface fun"),atoms:i("true false null this"),hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return t.tokenize=y(e.match('""')),t.tokenize(e,t)}},modeProps:{closeBrackets:{triples:'"'}}}),g(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:i("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:i("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:i("for while do if else struct"),builtin:i("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:i("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TexureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":s},modeProps:{fold:["brace","include"]}}),g("text/x-nesc",{name:"clike",keywords:i(k+"as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:i(w),blockKeywords:i("case do else for if switch while struct"),atoms:i("null true false"),hooks:{"#":s},modeProps:{fold:["brace","include"]}}),g("text/x-objectivec",{name:"clike",keywords:i(k+"inline restrict _Bool _Complex _Imaginary BOOL Class bycopy byref id IMP in inout nil oneway out Protocol SEL self super atomic nonatomic retain copy readwrite readonly"),types:i(w),atoms:i("YES NO NULL NILL ON OFF true false"),hooks:{"@":function(e){return e.eatWhile(/[\w\$]/),"keyword"},"#":s,indent:function(e,t,r){if("statement"==t.type&&/^@\w/.test(r))return t.indented}},modeProps:{fold:"brace"}}),g("text/x-squirrel",{name:"clike",keywords:i("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:i(w),blockKeywords:i("case catch class else for foreach if switch try while"),defKeywords:i("function local class"),typeFirstDefinitions:!0,atoms:i("true false null"),hooks:{"#":s},modeProps:{fold:["brace","include"]}});var v=null;g("text/x-ceylon",{name:"clike",keywords:i("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(e){var t=e.charAt(0);return t===t.toUpperCase()&&t!==t.toLowerCase()},blockKeywords:i("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:i("class dynamic function interface module object package value"),builtin:i("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:i("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return t.tokenize=b(e.match('""')?"triple":"single"),t.tokenize(e,t)},"`":function(e,t){return!(!v||!e.match("`"))&&(t.tokenize=v,v=null,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(e,t,r){if(("variable"==r||"type"==r)&&"."==t.prevToken)return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../htmlmixed/htmlmixed"),require("../clike/clike")):"function"==typeof define&&define.amd?define("mode/php/php.js",["../../lib/codemirror","../htmlmixed/htmlmixed","../clike/clike"],e):e(CodeMirror)}(function(e){"use strict";function t(e){for(var t={},r=e.split(" "),n=0;n\w/,!1)&&(t.tokenize=r([[["->",null]],[[/[\w]+/,"variable"]]],n,a)),"variable-2";for(var o=!1;!e.eol()&&(o||!1===a||!e.match("{$",!1)&&!e.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1));){if(!o&&e.match(n)){t.tokenize=null,t.tokStack.pop(),t.tokStack.pop();break}o="\\"==e.next()&&!o}return"string"}var o="abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally",i="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__",l="func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";e.registerHelper("hintWords","php",[o,i,l].join(" ").split(" ")),e.registerHelper("wordChars","php",/[\w$]/);var s={name:"clike",helperType:"php",keywords:t(o),blockKeywords:t("catch do else elseif for foreach if switch try while finally"),defKeywords:t("class function interface namespace trait"),atoms:t(i),builtin:t(l),multiLineStrings:!0,hooks:{$:function(e){return e.eatWhile(/[\w\$_]/),"variable-2"},"<":function(e,t){var r;if(r=e.match(/<<\s*/)){var a=e.eat(/['"]/);e.eatWhile(/[\w\.]/);var o=e.current().slice(r[0].length+(a?2:1));if(a&&e.eat(a),o)return(t.tokStack||(t.tokStack=[])).push(o,0),t.tokenize=n(o,"'"!=a),"string"}return!1},"#":function(e){for(;!e.eol()&&!e.match("?>",!1);)e.next();return"comment"},"/":function(e){if(e.eat("/")){for(;!e.eol()&&!e.match("?>",!1);)e.next();return"comment"}return!1},'"':function(e,t){return(t.tokStack||(t.tokStack=[])).push('"',0),t.tokenize=n('"'),"string"},"{":function(e,t){return t.tokStack&&t.tokStack.length&&t.tokStack[t.tokStack.length-1]++,!1},"}":function(e,t){return t.tokStack&&t.tokStack.length>0&&!--t.tokStack[t.tokStack.length-1]&&(t.tokenize=n(t.tokStack[t.tokStack.length-2])),!1}}};e.defineMode("php",function(t,r){function n(t,r){var n=r.curMode==o;if(t.sol()&&r.pending&&'"'!=r.pending&&"'"!=r.pending&&(r.pending=null),n)return n&&null==r.php.tokenize&&t.match("?>")?(r.curMode=a,r.curState=r.html,r.php.context.prev||(r.php=null),"meta"):o.token(t,r.curState);if(t.match(/^<\?\w*/))return r.curMode=o,r.php||(r.php=e.startState(o,a.indent(r.html,""))),r.curState=r.php,"meta";if('"'==r.pending||"'"==r.pending){for(;!t.eol()&&t.next()!=r.pending;);var i="string"}else if(r.pending&&t.pos/.test(s)?r.pending=l[0]:r.pending={end:t.pos,style:i},t.backUp(s.length-c)),i}var a=e.getMode(t,r&&r.htmlMode||"text/html"),o=e.getMode(t,s);return{startState:function(){var t=e.startState(a),n=r.startOpen?e.startState(o):null;return{html:t,php:n,curMode:r.startOpen?o:a,curState:r.startOpen?n:t,pending:null}},copyState:function(t){var r,n=t.html,i=e.copyState(a,n),l=t.php,s=l&&e.copyState(o,l);return r=t.curMode==a?i:s,{html:i,php:s,curMode:t.curMode,curState:r,pending:t.pending}},token:n,indent:function(e,t){return e.curMode!=o&&/^\s*<\//.test(t)||e.curMode==o&&/^\?>/.test(t)?a.indent(e.html,t):e.curMode.indent(e.curState,t)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(e){return{state:e.curState,mode:e.curMode}}}},"htmlmixed","clike"),e.defineMIME("application/x-httpd-php","php"),e.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),e.defineMIME("text/x-php",s)}),function(e){"function"==typeof e.define&&e.define("modePHP",["mode/php/php.js"],function(){})}(this); \ No newline at end of file diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/js/codemirror.mode.twig.min.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/js/codemirror.mode.twig.min.js new file mode 100755 index 0000000..c957650 --- /dev/null +++ b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/js/codemirror.mode.twig.min.js @@ -0,0 +1 @@ +!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("addon/mode/multiplex",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.multiplexingMode=function(n){function t(e,n,t,i){if("string"==typeof n){var r=e.indexOf(n,t);return i&&r>-1?r+n.length:r}var o=n.exec(t?e.slice(t):e);return o?o.index+t+(i?o[0].length:0):-1}var i=Array.prototype.slice.call(arguments,1);return{startState:function(){return{outer:e.startState(n),innerActive:null,inner:null}},copyState:function(t){return{outer:e.copyState(n,t.outer),innerActive:t.innerActive,inner:t.innerActive&&e.copyState(t.innerActive.mode,t.inner)}},token:function(r,o){if(o.innerActive){var a=o.innerActive,c=r.string;if(!a.close&&r.sol())return o.innerActive=o.inner=null,this.token(r,o);var s=a.close?t(c,a.close,r.pos,a.parseDelimiters):-1;if(s==r.pos&&!a.parseDelimiters)return r.match(a.close),o.innerActive=o.inner=null,a.delimStyle&&a.delimStyle+" "+a.delimStyle+"-close";s>-1&&(r.string=c.slice(0,s));var l=a.mode.token(r,o.inner);return s>-1&&(r.string=c),s==r.pos&&a.parseDelimiters&&(o.innerActive=o.inner=null),a.innerStyle&&(l=l?l+" "+a.innerStyle:a.innerStyle),l}for(var d=1/0,c=r.string,u=0;u!?|~^]/,i=/^[:\[\(\{]/,r=["true","false","null","empty","defined","divisibleby","divisible by","even","odd","iterable","sameas","same as"],o=/^(\d[+\-\*\/])?\d+(\.\d+)?/;return n=new RegExp("(("+n.join(")|(")+"))\\b"),r=new RegExp("(("+r.join(")|(")+"))\\b"),{startState:function(){return{}},token:function(n,t){return e(n,t)}}}),e.defineMode("twig",function(n,t){var i=e.getMode(n,"twig:inner");return t&&t.base?e.multiplexingMode(e.getMode(n,t.base),{open:/\{[{#%]/,close:/[}#%]\}/,mode:i,parseDelimiters:!0}):i}),e.defineMIME("text/x-twig","twig")}),function(e){"function"==typeof e.define&&e.define("modeTwig",["mode/twig/twig.js"],function(){})}(this); \ No newline at end of file diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/af.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/af.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/ar.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/ar.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/bg.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/bg.js old mode 100644 new mode 100755 index ead6ef0..4bf97bb --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/bg.js +++ b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/bg.js @@ -1,12 +1,12 @@ -/* +/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'codemirror', 'bg', { - toolbar: 'Източник', - searchCode: 'Search Source', - autoFormat: 'Format Selection', - commentSelectedRange: 'Comment Selection', - uncommentSelectedRange: 'Uncomment Selection', - autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' + toolbar: 'Код', + searchCode: 'Търси в кода', + autoFormat: 'Форматирай избраното', + commentSelectedRange: 'Коментирай избраното', + uncommentSelectedRange: 'Откоментирай избраното', + autoCompleteToggle: 'Активирай/деактивирай авто довършване за HTML тагове' }); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/bn.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/bn.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/bs.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/bs.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/ca.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/ca.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/cs.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/cs.js old mode 100644 new mode 100755 index e3ce93c..142e436 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/cs.js +++ b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/cs.js @@ -1,12 +1,12 @@ -/* +/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'codemirror', 'cs', { toolbar: 'Zdroj', - searchCode: 'Search Source', - autoFormat: 'Format Selection', - commentSelectedRange: 'Comment Selection', - uncommentSelectedRange: 'Uncomment Selection', - autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' + searchCode: 'Prohledat zdroj', + autoFormat: 'Formátovat výběr', + commentSelectedRange: 'Zakomentovat výběr', + uncommentSelectedRange: 'Odkomentovat výběr', + autoCompleteToggle: 'Povolit/zakázat automatické doplňování HTML tagů' }); diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/cy.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/cy.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/da.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/da.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/de.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/de.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/el.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/el.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/en-au.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/en-au.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/en-ca.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/en-ca.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/en-gb.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/en-gb.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/en.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/en.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/eo.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/eo.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/es.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/es.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/et.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/et.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/eu.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/eu.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/fa.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/fa.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/fi.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/fi.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/fo.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/fo.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/fr-ca.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/fr-ca.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/fr.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/fr.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/gl.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/gl.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/gu.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/gu.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/he.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/he.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/hi.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/hi.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/hr.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/hr.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/hu.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/hu.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/is.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/is.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/it.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/it.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/ja.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/ja.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/ka.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/ka.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/km.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/km.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/ko.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/ko.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/ku.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/ku.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/lt.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/lt.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/lv.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/lv.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/mk.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/mk.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/mn.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/mn.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/ms.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/ms.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/nb.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/nb.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/nl.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/nl.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/no.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/no.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/pl.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/pl.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/pt-br.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/pt-br.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/pt.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/pt.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/ro.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/ro.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/ru.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/ru.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/sk.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/sk.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/sl.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/sl.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/sr-latn.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/sr-latn.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/sr.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/sr.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/sv.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/sv.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/th.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/th.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/tr.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/tr.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/ug.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/ug.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/uk.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/uk.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/vi.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/vi.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/zh-cn.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/zh-cn.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/zh.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/lang/zh.js old mode 100644 new mode 100755 diff --git a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/plugin.js b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/plugin.js old mode 100644 new mode 100755 index 4fee7df..ca00d46 --- a/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/plugin.js +++ b/plugins/redmine_ckeditor/assets/ckeditor-contrib/plugins/codemirror/plugin.js @@ -7,17 +7,18 @@ */ (function() { - CKEDITOR.plugins.add('codemirror', { - icons: 'searchcode,autoformat,commentselectedrange,uncommentselectedrange,autocomplete', // %REMOVE_LINE_CORE% - lang: 'af,ar,bg,bn,bs,ca,cs,cy,da,de,el,en-au,en-ca,en-gb,en,eo,es,et,eu,fa,fi,fo,fr-ca,fr,gl,gu,he,hi,hr,hu,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,pl,pt-br,pt,ro,ru,sk,sl,sr-latn,sr,sv,th,tr,ug,uk,vi,zh-cn,zh', // %REMOVE_LINE_CORE% - version: 1.13, + CKEDITOR.plugins.add("codemirror", { + icons: "searchcode,autoformat,commentselectedrange,uncommentselectedrange,autocomplete", // %REMOVE_LINE_CORE% + lang: "af,ar,bg,bn,bs,ca,cs,cy,da,de,el,en-au,en-ca,en-gb,en,eo,es,et,eu,fa,fi,fo,fr-ca,fr,gl,gu,he,hi,hr,hu,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,pl,pt-br,pt,ro,ru,sk,sl,sr-latn,sr,sv,th,tr,ug,uk,vi,zh-cn,zh", // %REMOVE_LINE_CORE% + version: "1.17.8", init: function (editor) { var rootPath = this.path, defaultConfig = { autoCloseBrackets: true, autoCloseTags: true, autoFormatOnStart: false, - autoFormatOnUncomment: true, + autoFormatOnUncomment: false, + autoLoadCodeMirror: true, continueComments: true, enableCodeFolding: true, enableCodeFormatting: true, @@ -26,8 +27,9 @@ indentWithTabs: false, lineNumbers: true, lineWrapping: true, - mode: 'htmlmixed', + mode: "htmlmixed", matchBrackets: true, + maxHighlightLineLength: 1000, matchTags: true, showAutoCompleteButton: true, showCommentButton: true, @@ -36,14 +38,14 @@ showTrailingSpace: true, showUncommentButton: true, styleActiveLine: true, - theme: 'default', - useBeautify: false + theme: "default", + useBeautifyOnStart: false }; - + // Get Config & Lang var config = CKEDITOR.tools.extend(defaultConfig, editor.config.codemirror || {}, true), lang = editor.lang.codemirror; - + // check for old config settings for legacy support if (editor.config.codemirror_theme) { config.theme = editor.config.codemirror_theme; @@ -56,21 +58,89 @@ if (editor.plugins.bbcode && config.mode.indexOf("bbcode") <= 0) { config.mode = "bbcode"; } - + var requirePresent = "function" === typeof require && "function" === typeof require.config; + var pluginRequire; + if (requirePresent){ + var requireContext = config.requireContext || "_"; + var location = CKEDITOR.getUrl("plugins/codemirror/js"); + pluginRequire = require.config({ + context: requireContext, + packages: [{ + name: "codemirror", + location: location, + main: "codemirror.min.js" + }, { + name: "codemirror-mode-handlebars", + location: location, + main: "codemirror.mode.handlebars.min.js" + }, { + name: "codemirror-mode-twig", + location: location, + main: "codemirror.mode.twig.min.js" + }, { + name: "codemirror-mode-html", + location: location, + main: "codemirror.mode.htmlmixed.min.js" + }, { + name: "codemirror-mode-php", + location: location, + main: "codemirror.mode.php.min.js" + }, { + name: "codemirror-mode-js", + location: location, + main: "codemirror.mode.js.min.js" + }, { + name: "codemirror-addons", + location: location, + main: "codemirror.addons.min.js" + }, { + name: "codemirror-addon-search", + location: location, + main: "codemirror.addons.search.min.js" + }, { + name: "codemirror-beautify", + location: location, + main: "beautify.min.js" + }], + bundles: { + 'codemirror': ["core", "codemirror.js"], + 'codemirror-mode-handlebars': ["modeHandlebars"], + 'codemirror-mode-twig': ["modeTwig"], + 'codemirror-mode-html': ["modeHtml"], + 'codemirror-mode-php': ["modePHP"], + 'codemirror-mode-js': ["modeJS"], + 'codemirror-addons': ["addons"], + 'codemirror-addon-search': ["addonSearch"], + 'codemirror-beautify': ["beautifyModule"] + }, + map: { + '*': { + //all the requires pointing to ../../lib/codemirror from addons will be redirected to module named codemirror.js + //which is located in bundle 'codemirror' whose js file is codemirror.min.js + 'lib/codemirror': "codemirror.js" + } + } + }); + } // Source mode isn't available in inline mode yet. if (editor.elementMode === CKEDITOR.ELEMENT_MODE_INLINE || editor.plugins.sourcedialog) { - + // Override Source Dialog - CKEDITOR.dialog.add('sourcedialog', function (editor) { - var size = CKEDITOR.document.getWindow().getViewPaneSize(), - width = Math.min(size.width - 70, 800), - height = size.height / 1.5, + CKEDITOR.dialog.add("sourcedialog", function (editor) { + var sizeDialog = CKEDITOR.document.getWindow().getViewPaneSize(), + minWidth = Math.min(sizeDialog.width - 70, 800), + minHeight = sizeDialog.height / 1.5, oldData; - function loadCodeMirrorInline(editor, textarea) { + function loadCodeMirrorInline(editor, textarea, dialog) { + var size = dialog.getSize(), + width = size.width, + height = size.height / 1.5; + window["codemirror_" + editor.id] = CodeMirror.fromTextArea(textarea, { - mode: config.mode, + mode: config.mode === "handlebars" ? { name: "handlebars", base: "text/html" } : config.mode, matchBrackets: config.matchBrackets, + maxHighlightLineLength: config.maxHighlightLineLength, matchTags: config.matchTags, workDelay: 300, workTime: 35, @@ -93,47 +163,24 @@ if (config.enableCodeFolding) { window["foldFunc_" + editor.id](codeMirror_Editor, codeMirror_Editor.getCursor().line); } - }, - "'>'": function (codeMirror_Editor) { - codeMirror_Editor.closeTag(codeMirror_Editor, '>'); - }, - "'/'": function (codeMirror_Editor) { - codeMirror_Editor.closeTag(codeMirror_Editor, '/'); } }, foldGutter: true, - gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"], - onKeyEvent: function (codeMirror_Editor, evt) { - if (config.enableCodeFormatting) { - var range = getSelectedRange(); - if (evt.type === "keydown" && evt.ctrlKey && evt.keyCode === 75 && !evt.shiftKey && !evt.altKey) { - window["codemirror_" + editor.id].commentRange(true, range.from, range.to); - } else if (evt.type === "keydown" && evt.ctrlKey && evt.keyCode === 75 && evt.shiftKey && !evt.altKey) { - window["codemirror_" + editor.id].commentRange(false, range.from, range.to); - if (config.autoFormatOnUncomment) { - window["codemirror_" + editor.id].autoFormatRange(range.from, range.to); - } - } else if (evt.type === "keydown" && evt.ctrlKey && evt.keyCode === 75 && !evt.shiftKey && evt.altKey) { - window["codemirror_" + editor.id].autoFormatRange(range.from, range.to); - } - /*else if (evt.type === "keydown") { - CodeMirror.commands.newlineAndIndentContinueMarkdownList(window["codemirror_" + editor.id]); - }*/ - } - } + gutters: ["CodeMirror-linenumbbers", "CodeMirror-foldgutter"] }); + - var holderHeight = height + 'px'; - var holderWidth = width + 'px'; + var holderHeight = height + "px"; + var holderWidth = width + "px"; // Store config so we can access it within commands etc. window["codemirror_" + editor.id].config = config; - + if (config.autoFormatOnStart) { - if (config.useBeautify) { + if (config.useBeautifyOnStart) { var indent_size = 4, - indent_char = ' ', - brace_style = 'collapse'; //collapse, expand, end-expand + indent_char = " ", + brace_style = "collapse"; //collapse, expand, end-expand var source = window["codemirror_" + editor.id].getValue(); @@ -158,9 +205,10 @@ window["codemirror_" + editor.id].on("change", function () { window["codemirror_" + editor.id].save(); - editor.fire('change', this); + editor.fire("change", this); }); + window["codemirror_" + editor.id].setSize(holderWidth, holderHeight); // Enable Code Folding (Requires 'lineNumbers' to be set to 'true') @@ -168,58 +216,119 @@ window["codemirror_" + editor.id].on("gutterClick", window["foldFunc_" + editor.id]); } // Run config.onLoad callback, if present. - if (typeof config.onLoad === 'function') { + if (typeof config.onLoad === "function") { config.onLoad(window["codemirror_" + editor.id], editor); } // inherit blur event window["codemirror_" + editor.id].on("blur", function () { - editor.fire('blur', this); + editor.fire("blur", this); }); + + window["codemirror_" + editor.id].on("keypress", function (codeMirror_Editor, evt) { + if (config.enableCodeFormatting) { + var range = getSelectedRange(); + if (evt.type === "keydown" && evt.ctrlKey && evt.keyCode === 75 && !evt.shiftKey && !evt.altKey) { + window["codemirror_" + editor.id].commentRange(true, range.from, range.to); + } else if (evt.type === "keydown" && evt.ctrlKey && evt.keyCode === 75 && evt.shiftKey && !evt.altKey) { + window["codemirror_" + editor.id].commentRange(false, range.from, range.to); + if (config.autoFormatOnUncomment) { + window["codemirror_" + editor.id].autoFormatRange(range.from, range.to); + } + } else if (evt.type === "keydown" && evt.ctrlKey && evt.keyCode === 75 && !evt.shiftKey && evt.altKey) { + window["codemirror_" + editor.id].autoFormatRange(range.from, range.to); + }/* else if (evt.type === "keydown") { + CodeMirror.commands.newlineAndIndentContinueMarkdownList(window["codemirror_" + editor.id]); + }*/ + } + }); + + if (editor.plugins.textselection && textRange && !editor.config.fullPage) { + + var start, end; + + start = OffSetToLineChannel(window["codemirror_" + editor.id], textRange.startOffset); + + if (typeof (textRange.endOffset) == "undefined") { + window["codemirror_" + editor.id].focus(); + window["codemirror_" + editor.id].setCursor(start); + } else { + window["codemirror_" + editor.id].focus(); + end = OffSetToLineChannel(window["codemirror_" + editor.id], textRange.endOffset); + window["codemirror_" + editor.id].setSelection(start, end); + } + } } + return { title: editor.lang.sourcedialog.title, - minWidth: width, - minHeight: height, - resizable : CKEDITOR.DIALOG_RESIZE_NONE, - onShow: function () { + minWidth: minWidth, + minHeight: minHeight, + resizable: CKEDITOR.DIALOG_RESIZE_BOTH, + onLoad: function() { + this.on("resize", + function (event) { + var parts = event.sender.parts; + var title = parts.title; + var footer = parts.footer; + + var holderHeight = (event.data.height - title.$.offsetHeight - footer.$.offsetHeight) + "px"; + var holderWidth = event.data.width + "px"; + + window["codemirror_" + editor.id].setSize(holderWidth, holderHeight); + }, + this); + }, + onShow: function (event) { // Set Elements - this.getContentElement('main', 'data').focus(); - this.getContentElement('main', 'AutoComplete').setValue(config.autoCloseTags, true); - - var textArea = this.getContentElement('main', 'data').getInputElement().$; - + this.getContentElement("main", "data").focus(); + this.getContentElement("main", "AutoComplete").setValue(config.autoCloseTags, true); + + var textArea = this.getContentElement("main", "data").getInputElement().$; + // Load the content - this.setValueOf('main', 'data', oldData = editor.getData()); + this.setValueOf("main", "data", oldData = editor.getData()); - if (!IsStyleSheetAlreadyLoaded(rootPath + 'css/codemirror.min.css')) { - CKEDITOR.document.appendStyleSheet(rootPath + 'css/codemirror.min.css'); - } + if (config.autoLoadCodeMirror) { - if (config.theme.length && config.theme != 'default' && !IsStyleSheetAlreadyLoaded(rootPath + 'theme/' + config.theme + '.css')) { - CKEDITOR.document.appendStyleSheet(rootPath + 'theme/' + config.theme + '.css'); - } + if (!IsStyleSheetAlreadyLoaded(rootPath + "css/codemirror.min.css")) { + CKEDITOR.document.appendStyleSheet(rootPath + "css/codemirror.min.css"); + } - if (typeof (CodeMirror) == 'undefined') { - - CKEDITOR.scriptLoader.load(rootPath + 'js/codemirror.min.js', function() { - - CKEDITOR.scriptLoader.load(getCodeMirrorScripts(), function() { - loadCodeMirrorInline(editor, textArea); + if (config.theme.length && + config.theme != "default" && + !IsStyleSheetAlreadyLoaded(rootPath + "theme/" + config.theme + ".css")) { + CKEDITOR.document.appendStyleSheet(rootPath + "theme/" + config.theme + ".css"); + } + if(requirePresent) { + pluginRequire(getCodeMirrorDependencies(),function (codemirror, addons){ + loadCodeMirrorInline(editor, textArea, event.sender); }); - }); - - - } else { - //loadCodeMirrorInline(editor, textArea); - if (CodeMirror.prototype['autoFormatAll']) { - loadCodeMirrorInline(editor, textArea); } else { - // loading the add-on scripts. - CKEDITOR.scriptLoader.load(getCodeMirrorScripts(), function() { - loadCodeMirrorInline(editor, textArea); - }); + if (typeof (CodeMirror) == "undefined") { + + CKEDITOR.scriptLoader.load(rootPath + "js/codemirror.min.js", + function() { + + CKEDITOR.scriptLoader.load(getCodeMirrorScripts(), + function() { + loadCodeMirrorInline(editor, textArea, event.sender); + }); + }); + + + } else { + if (CodeMirror.prototype["autoFormatAll"]) { + loadCodeMirrorInline(editor, textArea, event.sender); + } else { + // loading the add-on scripts. + CKEDITOR.scriptLoader.load(getCodeMirrorScripts(), + function() { + loadCodeMirrorInline(editor, textArea, event.sender); + }); + } + } } } }, @@ -229,6 +338,9 @@ // Free Memory window["codemirror_" + editor.id] = null; + + editor.fire("blur", this); + editor.fire("focus", this); } }, onOk: (function () { @@ -253,45 +365,51 @@ window["codemirror_" + editor.id] = null; // Remove CR from input data for reliable comparison with editor data. - var newData = this.getValueOf('main', 'data').replace(/\r/g, ''); + var newData = this.getValueOf("main", "data").replace(/\r/g, ""); // Avoid unnecessary setData. Also preserve selection // when user changed his mind and goes back to wysiwyg editing. - if (newData === oldData) + if (newData === oldData) { + editor.fire("blur", this); + editor.fire("focus", this); return true; + } // Set data asynchronously to avoid errors in IE. CKEDITOR.env.ie ? CKEDITOR.tools.setTimeout(setData, 0, this, newData) : setData.call(this, newData); + editor.fire("blur", this); + editor.fire("focus", this); + // Don't let the dialog close before setData is over. return false; }; })(), contents: [{ - id: 'main', + id: "main", label: editor.lang.sourcedialog.title, elements: [ { - type: 'hbox', - style: 'width: 80px;margin:0;', - widths: ['20px', '20px', '20px', '20px'], + type: "hbox", + style: "width: 80px;margin:0;", + widths: ["20px", "20px", "20px", "20px"], children: [ { - type: 'button', - id: 'searchCode', - label: '', + type: "button", + id: "searchCode", + label: "", title: lang.searchCode, - 'class': 'searchCodeButton', + 'class': "searchCodeButton", onClick: function() { CodeMirror.commands.find(window["codemirror_" + editor.id]); } }, { - type: 'button', - id: 'autoFormat', - label: '', + type: "button", + id: "autoFormat", + label: "", title: lang.autoFormat, - 'class': 'autoFormat', + 'class': "autoFormat", onClick: function() { var range = { from: window["codemirror_" + editor.id].getCursor(true), @@ -300,11 +418,11 @@ window["codemirror_" + editor.id].autoFormatRange(range.from, range.to); } }, { - type: 'button', - id: 'CommentSelectedRange', - label: '', + type: "button", + id: "CommentSelectedRange", + label: "", title: lang.commentSelectedRange, - 'class': 'CommentSelectedRange', + 'class': "CommentSelectedRange", onClick: function () { var range = { from: window["codemirror_" + editor.id].getCursor(true), @@ -313,11 +431,11 @@ window["codemirror_" + editor.id].commentRange(true, range.from, range.to); } }, { - type: 'button', - id: 'UncommentSelectedRange', - label: '', + type: "button", + id: "UncommentSelectedRange", + label: "", title: lang.uncommentSelectedRange, - 'class': 'UncommentSelectedRange', + 'class': "UncommentSelectedRange", onClick: function () { var range = { from: window["codemirror_" + editor.id].getCursor(true), @@ -330,23 +448,23 @@ } }] }, { - type: 'checkbox', - id: 'AutoComplete', + type: "checkbox", + id: "AutoComplete", label: lang.autoCompleteToggle, title: lang.autoCompleteToggle, onChange: function () { window["codemirror_" + editor.id].setOption("autoCloseTags", this.getValue()); } }, { - type: 'textarea', - id: 'data', - dir: 'ltr', - inputStyle: 'cursor:auto;' + - 'width:' + width + 'px;' + - 'height:' + height + 'px;' + - 'tab-size:4;' + - 'text-align:left;', - 'class': 'cke_source cke_enable_context_menu' + type: "textarea", + id: "data", + dir: "ltr", + inputStyle: "cursor:auto;" + + "width:" + minWidth + "px;" + + "height:" + minHeight + "px;" + + "tab-size:4;" + + "text-align:left;", + 'class': "cke_source cke_enable_context_menu" } ] }] @@ -355,7 +473,7 @@ // return; } - + /* // Override Copy Button if (editor.commands.copy) { @@ -395,14 +513,14 @@ }; editor.commands.find.exec = function() { - if (editor.mode === 'wysiwyg') { - editor.openDialog('find'); + if (editor.mode === "wysiwyg") { + editor.openDialog("find"); } else { CodeMirror.commands.find(window["codemirror_" + editor.id]); } }; } - + // Override Replace Button if (editor.commands.replace) { editor.commands.replace.modes = { @@ -411,16 +529,16 @@ }; editor.commands.replace.exec = function () { - if (editor.mode === 'wysiwyg') { - editor.openDialog('replace'); + if (editor.mode === "wysiwyg") { + editor.openDialog("replace"); } else { CodeMirror.commands.replace(window["codemirror_" + editor.id]); } }; } - + var sourcearea = CKEDITOR.plugins.sourcearea; - + // check if sourcearea plugin is overrriden if (!sourcearea.commands.searchCode) { @@ -433,11 +551,11 @@ editorFocus: false, readOnly: 1, exec: function(editorInstance) { - if (editorInstance.mode === 'wysiwyg') { - editorInstance.fire('saveSnapshot'); + if (editorInstance.mode === "wysiwyg") { + editorInstance.fire("saveSnapshot"); } - editorInstance.getCommand('source').setState(CKEDITOR.TRISTATE_DISABLED); - editorInstance.setMode(editorInstance.mode === 'source' ? 'wysiwyg' : 'source'); + editorInstance.getCommand("source").setState(CKEDITOR.TRISTATE_DISABLED); + editorInstance.setMode(editorInstance.mode === "source" ? "wysiwyg" : "source"); }, canUndo: false }, @@ -527,122 +645,183 @@ }; } - editor.addMode('source', function (callback) { - if (!IsStyleSheetAlreadyLoaded(rootPath + 'css/codemirror.min.css')) { - CKEDITOR.document.appendStyleSheet(rootPath + 'css/codemirror.min.css'); + editor.addMode("source", function (callback) { + if (!config.autoLoadCodeMirror) { + return; } - if (config.theme.length && config.theme != 'default' && !IsStyleSheetAlreadyLoaded(rootPath + 'theme/' + config.theme + '.css')) { - CKEDITOR.document.appendStyleSheet(rootPath + 'theme/' + config.theme + '.css'); - } + if (!IsStyleSheetAlreadyLoaded(rootPath + "css/codemirror.min.css")) { + CKEDITOR.document.appendStyleSheet(rootPath + "css/codemirror.min.css"); + } - if (typeof (CodeMirror) == 'undefined') { + if (config.theme.length && + config.theme != "default" && + !IsStyleSheetAlreadyLoaded(rootPath + "theme/" + config.theme + ".css")) { + CKEDITOR.document.appendStyleSheet(rootPath + "theme/" + config.theme + ".css"); + } - CKEDITOR.scriptLoader.load(rootPath + 'js/codemirror.min.js', function() { - - CKEDITOR.scriptLoader.load(getCodeMirrorScripts(), function() { - loadCodeMirror(editor); - callback(); - }); - }); - } else { - if (CodeMirror.prototype['autoFormatAll']) { + if (requirePresent) { + pluginRequire(getCodeMirrorDependencies(), function () { loadCodeMirror(editor); callback(); + }); + } else { + if (typeof (CodeMirror) == "undefined") { + + CKEDITOR.scriptLoader.load(rootPath + "js/codemirror.min.js", + function() { + + CKEDITOR.scriptLoader.load(getCodeMirrorScripts(), + function() { + loadCodeMirror(editor); + callback(); + }); + }); } else { - // loading the add-on scripts. - CKEDITOR.scriptLoader.load(getCodeMirrorScripts(), function() { + if (CodeMirror.prototype["autoFormatAll"]) { loadCodeMirror(editor); callback(); - }); + } else { + // loading the add-on scripts. + CKEDITOR.scriptLoader.load(getCodeMirrorScripts(), + function() { + loadCodeMirror(editor); + callback(); + }); + } } } + }); + function getCodeMirrorDependencies() { + var dependencies = ["core", "addons"]; + switch (config.mode) { + case "bbcode": + case "bbcodemixed": + dependencies.push("modeHtml"); + break; + case "application/x-httpd-php": + dependencies.push("modePHP"); + break; + case "text/javascript": + dependencies.push("modeJs"); + break; + case "handlebars": + dependencies.push("modeHandlebars"); + break; + case "twig": + dependencies.push("modeTwig"); + break; + case "htmlmixed": + case "text/html": + default: + dependencies.push("modeHtml"); + } + + if (config.useBeautifyOnStart) { + dependencies.push("beautifyModule"); + } + + if (config.enableSearchTools) { + dependencies.push("addonSearch"); + } + return dependencies; + } function getCodeMirrorScripts() { - var scriptFiles = [rootPath + 'js/codemirror.addons.min.js']; + var scriptFiles = [rootPath + "js/codemirror.addons.min.js"]; switch (config.mode) { + case 'handlebars': + { + scriptFiles.push(rootPath + "js/codemirror.mode.handlebars.min.js"); + } case "bbcode": { - scriptFiles.push(rootPath + 'js/codemirror.mode.bbcode.min.js'); + scriptFiles.push(rootPath + "js/codemirror.mode.bbcode.min.js"); } break; case "bbcodemixed": { - scriptFiles.push(rootPath + 'js/codemirror.mode.bbcodemixed.min.js'); + scriptFiles.push(rootPath + "js/codemirror.mode.bbcodemixed.min.js"); } break; case "htmlmixed": { - scriptFiles.push(rootPath + 'js/codemirror.mode.htmlmixed.min.js'); + scriptFiles.push(rootPath + "js/codemirror.mode.htmlmixed.min.js"); } break; case "text/html": { - scriptFiles.push(rootPath + 'js/codemirror.mode.htmlmixed.min.js'); + scriptFiles.push(rootPath + "js/codemirror.mode.htmlmixed.min.js"); } break; case "application/x-httpd-php": { - scriptFiles.push(rootPath + 'js/codemirror.mode.php.min.js'); + scriptFiles.push(rootPath + "js/codemirror.mode.php.min.js"); } break; case "text/javascript": { - scriptFiles.push(rootPath + 'js/codemirror.mode.javascript.min.js'); + scriptFiles.push(rootPath + "js/codemirror.mode.javascript.min.js"); } break; + case "twig": + { + scriptFiles.push(rootPath + "js/codemirror.mode.twig.min.js"); + } + + break; default: - scriptFiles.push(rootPath + 'js/codemirror.mode.htmlmixed.min.js'); + scriptFiles.push(rootPath + "js/codemirror.mode.htmlmixed.min.js"); } - if (config.useBeautify) { - scriptFiles.push(rootPath + 'js/beautify.min.js'); + if (config.useBeautifyOnStart) { + scriptFiles.push(rootPath + "js/beautify.min.js"); } if (config.enableSearchTools) { - scriptFiles.push(rootPath + 'js/codemirror.addons.search.min.js'); + scriptFiles.push(rootPath + "js/codemirror.addons.search.min.js"); } return scriptFiles; } function loadCodeMirror(editor) { - var contentsSpace = editor.ui.space('contents'), - textarea = contentsSpace.getDocument().createElement('textarea'); + var contentsSpace = editor.ui.space("contents"), + textarea = contentsSpace.getDocument().createElement("textarea"); textarea.setStyles( CKEDITOR.tools.extend({ // IE7 has overflow the

' ); + return html.join( '' ); + }; + CKEDITOR.ui.dialog.labeledElement.call( this, dialog, elementDefinition, htmlList, innerHTML ); + }, + + /** + * A single checkbox with a label on the right. + * + * @class CKEDITOR.ui.dialog.checkbox + * @extends CKEDITOR.ui.dialog.uiElement + * @constructor Creates a checkbox class instance. + * @param {CKEDITOR.dialog} dialog Parent dialog window object. + * @param {CKEDITOR.dialog.definition.uiElement} elementDefinition + * The element definition. Accepted fields: + * + * * `checked` (Optional) Whether the checkbox is checked + * on instantiation. Defaults to `false`. + * * `validate` (Optional) The validation function. + * * `label` (Optional) The checkbox label. + * + * @param {Array} htmlList List of HTML code to output to. + */ + checkbox: function( dialog, elementDefinition, htmlList ) { + if ( arguments.length < 3 ) + return; + + var _ = initPrivateObject.call( this, elementDefinition, { 'default': !!elementDefinition[ 'default' ] } ); + + if ( elementDefinition.validate ) + this.validate = elementDefinition.validate; + + var innerHTML = function() { + var myDefinition = CKEDITOR.tools.extend( + {}, + elementDefinition, + { + id: elementDefinition.id ? elementDefinition.id + '_checkbox' : CKEDITOR.tools.getNextId() + '_checkbox' + }, + true + ), + html = []; + + var labelId = CKEDITOR.tools.getNextId() + '_label'; + var attributes = { 'class': 'cke_dialog_ui_checkbox_input', type: 'checkbox', 'aria-labelledby': labelId }; + cleanInnerDefinition( myDefinition ); + if ( elementDefinition[ 'default' ] ) + attributes.checked = 'checked'; + + if ( typeof myDefinition.inputStyle != 'undefined' ) + myDefinition.style = myDefinition.inputStyle; + + _.checkbox = new CKEDITOR.ui.dialog.uiElement( dialog, myDefinition, html, 'input', null, attributes ); + html.push( + ' ' + ); + return html.join( '' ); + }; + + CKEDITOR.ui.dialog.uiElement.call( this, dialog, elementDefinition, htmlList, 'span', null, null, innerHTML ); + }, + + /** + * A group of radio buttons. + * + * @class CKEDITOR.ui.dialog.radio + * @extends CKEDITOR.ui.dialog.labeledElement + * @constructor Creates a radio class instance. + * @param {CKEDITOR.dialog} dialog Parent dialog window object. + * @param {CKEDITOR.dialog.definition.uiElement} elementDefinition + * The element definition. Accepted fields: + * + * * `default` (Required) The default value. + * * `validate` (Optional) The validation function. + * * `items` (Required) An array of options. Each option + * is a one- or two-item array of format `[ 'Description', 'Value' ]`. If `'Value'` + * is missing, then the value would be assumed to be the same as the description. + * + * @param {Array} htmlList List of HTML code to output to. + */ + radio: function( dialog, elementDefinition, htmlList ) { + if ( arguments.length < 3 ) + return; + + initPrivateObject.call( this, elementDefinition ); + + if ( !this._[ 'default' ] ) + this._[ 'default' ] = this._.initValue = elementDefinition.items[ 0 ][ 1 ]; + + if ( elementDefinition.validate ) + this.validate = elementDefinition.validate; + + var children = [], + me = this; + + var innerHTML = function() { + var inputHtmlList = [], + html = [], + commonName = ( elementDefinition.id ? elementDefinition.id : CKEDITOR.tools.getNextId() ) + '_radio'; + + for ( var i = 0; i < elementDefinition.items.length; i++ ) { + var item = elementDefinition.items[ i ], + title = item[ 2 ] !== undefined ? item[ 2 ] : item[ 0 ], + value = item[ 1 ] !== undefined ? item[ 1 ] : item[ 0 ], + inputId = CKEDITOR.tools.getNextId() + '_radio_input', + labelId = inputId + '_label', + + inputDefinition = CKEDITOR.tools.extend( {}, elementDefinition, { + id: inputId, + title: null, + type: null + }, true ), + + labelDefinition = CKEDITOR.tools.extend( {}, inputDefinition, { + title: title + }, true ), + + inputAttributes = { + type: 'radio', + 'class': 'cke_dialog_ui_radio_input', + name: commonName, + value: value, + 'aria-labelledby': labelId + }, + + inputHtml = []; + + if ( me._[ 'default' ] == value ) + inputAttributes.checked = 'checked'; + + cleanInnerDefinition( inputDefinition ); + cleanInnerDefinition( labelDefinition ); + + if ( typeof inputDefinition.inputStyle != 'undefined' ) + inputDefinition.style = inputDefinition.inputStyle; + + // Make inputs of radio type focusable (https://dev.ckeditor.com/ticket/10866). + inputDefinition.keyboardFocusable = true; + + children.push( new CKEDITOR.ui.dialog.uiElement( dialog, inputDefinition, inputHtml, 'input', null, inputAttributes ) ); + + inputHtml.push( ' ' ); + + new CKEDITOR.ui.dialog.uiElement( dialog, labelDefinition, inputHtml, 'label', null, { + id: labelId, + 'for': inputAttributes.id + }, item[ 0 ] ); + + inputHtmlList.push( inputHtml.join( '' ) ); + } + + new CKEDITOR.ui.dialog.hbox( dialog, children, inputHtmlList, html ); + + return html.join( '' ); + }; + + // Adding a role="radiogroup" to definition used for wrapper. + elementDefinition.role = 'radiogroup'; + elementDefinition.includeLabel = true; + + CKEDITOR.ui.dialog.labeledElement.call( this, dialog, elementDefinition, htmlList, innerHTML ); + this._.children = children; + }, + + /** + * A button with a label inside. + * + * @class CKEDITOR.ui.dialog.button + * @extends CKEDITOR.ui.dialog.uiElement + * @constructor Creates a button class instance. + * @param {CKEDITOR.dialog} dialog Parent dialog window object. + * @param {CKEDITOR.dialog.definition.uiElement} elementDefinition + * The element definition. Accepted fields: + * + * * `label` (Required) The button label. + * * `disabled` (Optional) Set to `true` if you want the + * button to appear in the disabled state. + * + * @param {Array} htmlList List of HTML code to output to. + */ + button: function( dialog, elementDefinition, htmlList ) { + if ( !arguments.length ) + return; + + if ( typeof elementDefinition == 'function' ) + elementDefinition = elementDefinition( dialog.getParentEditor() ); + + initPrivateObject.call( this, elementDefinition, { disabled: elementDefinition.disabled || false } ); + + // Add OnClick event to this input. + CKEDITOR.event.implementOn( this ); + + var me = this; + + // Register an event handler for processing button clicks. + dialog.on( 'load', function() { + var element = this.getElement(); + + ( function() { + element.on( 'click', function( evt ) { + me.click(); + // https://dev.ckeditor.com/ticket/9958 + evt.data.preventDefault(); + } ); + + element.on( 'keydown', function( evt ) { + if ( evt.data.getKeystroke() in { 32: 1 } ) { + me.click(); + evt.data.preventDefault(); + } + } ); + } )(); + + element.unselectable(); + }, this ); + + var outerDefinition = CKEDITOR.tools.extend( {}, elementDefinition ); + delete outerDefinition.style; + + var labelId = CKEDITOR.tools.getNextId() + '_label'; + CKEDITOR.ui.dialog.uiElement.call( this, dialog, outerDefinition, htmlList, 'a', null, { + style: elementDefinition.style, + href: 'javascript:void(0)', // jshint ignore:line + title: elementDefinition.label, + hidefocus: 'true', + 'class': elementDefinition[ 'class' ], + role: 'button', + 'aria-labelledby': labelId + }, '' + + CKEDITOR.tools.htmlEncode( elementDefinition.label ) + + '' ); + }, + + /** + * A select box. + * + * @class CKEDITOR.ui.dialog.select + * @extends CKEDITOR.ui.dialog.uiElement + * @constructor Creates a button class instance. + * @param {CKEDITOR.dialog} dialog Parent dialog window object. + * @param {CKEDITOR.dialog.definition.uiElement} elementDefinition + * The element definition. Accepted fields: + * + * * `default` (Required) The default value. + * * `validate` (Optional) The validation function. + * * `items` (Required) An array of options. Each option + * is a one- or two-item array of format `[ 'Description', 'Value' ]`. If `'Value'` + * is missing, then the value would be assumed to be the same as the + * description. + * * `multiple` (Optional) Set this to `true` if you would like + * to have a multiple-choice select box. + * * `size` (Optional) The number of items to display in + * the select box. + * + * @param {Array} htmlList List of HTML code to output to. + */ + select: function( dialog, elementDefinition, htmlList ) { + if ( arguments.length < 3 ) + return; + + var _ = initPrivateObject.call( this, elementDefinition ); + + if ( elementDefinition.validate ) + this.validate = elementDefinition.validate; + + _.inputId = CKEDITOR.tools.getNextId() + '_select'; + + var innerHTML = function() { + var myDefinition = CKEDITOR.tools.extend( + {}, + elementDefinition, + { + id: ( elementDefinition.id ? elementDefinition.id + '_select' : CKEDITOR.tools.getNextId() + '_select' ) + }, + true + ), + html = [], + innerHTML = [], + attributes = { 'id': _.inputId, 'class': 'cke_dialog_ui_input_select', 'aria-labelledby': this._.labelId }; + + html.push( '' ); + + return html.join( '' ); + }; + + CKEDITOR.ui.dialog.labeledElement.call( this, dialog, elementDefinition, htmlList, innerHTML ); + }, + + /** + * A file upload input. + * + * @class CKEDITOR.ui.dialog.file + * @extends CKEDITOR.ui.dialog.labeledElement + * @constructor Creates a file class instance. + * @param {CKEDITOR.dialog} dialog Parent dialog window object. + * @param {CKEDITOR.dialog.definition.uiElement} elementDefinition + * The element definition. Accepted fields: + * + * * `validate` (Optional) The validation function. + * + * @param {Array} htmlList List of HTML code to output to. + */ + file: function( dialog, elementDefinition, htmlList ) { + if ( arguments.length < 3 ) + return; + + if ( elementDefinition[ 'default' ] === undefined ) + elementDefinition[ 'default' ] = ''; + + var _ = CKEDITOR.tools.extend( initPrivateObject.call( this, elementDefinition ), { definition: elementDefinition, buttons: [] } ); + + if ( elementDefinition.validate ) + this.validate = elementDefinition.validate; + + /** @ignore */ + var innerHTML = function() { + _.frameId = CKEDITOR.tools.getNextId() + '_fileInput'; + + var html = [ + '' ); + + return html.join( '' ); + }; + + // IE BUG: Parent container does not resize to contain the iframe automatically. + dialog.on( 'load', function() { + var iframe = CKEDITOR.document.getById( _.frameId ), + contentDiv = iframe.getParent(); + contentDiv.addClass( 'cke_dialog_ui_input_file' ); + } ); + + CKEDITOR.ui.dialog.labeledElement.call( this, dialog, elementDefinition, htmlList, innerHTML ); + }, + + /** + * A button for submitting the file in a file upload input. + * + * @class CKEDITOR.ui.dialog.fileButton + * @extends CKEDITOR.ui.dialog.button + * @constructor Creates a fileButton class instance. + * @param {CKEDITOR.dialog} dialog Parent dialog window object. + * @param {CKEDITOR.dialog.definition.uiElement} elementDefinition + * The element definition. Accepted fields: + * + * * `for` (Required) The file input's page and element ID + * to associate with, in a two-item array format: `[ 'page_id', 'element_id' ]`. + * * `validate` (Optional) The validation function. + * + * @param {Array} htmlList List of HTML code to output to. + */ + fileButton: function( dialog, elementDefinition, htmlList ) { + var me = this; + if ( arguments.length < 3 ) + return; + + initPrivateObject.call( this, elementDefinition ); + + if ( elementDefinition.validate ) + this.validate = elementDefinition.validate; + + var myDefinition = CKEDITOR.tools.extend( {}, elementDefinition ); + var onClick = myDefinition.onClick; + myDefinition.className = ( myDefinition.className ? myDefinition.className + ' ' : '' ) + 'cke_dialog_ui_button'; + myDefinition.onClick = function( evt ) { + var target = elementDefinition[ 'for' ]; // [ pageId, elementId ] + + // If exists onClick in elementDefinition, then it is called and checked response type. + // If it's possible, then XHR is used, what prevents of using submit. + var responseType = onClick ? onClick.call( this, evt ) : false; + + if ( responseType !== false ) { + if ( responseType !== 'xhr' ) { + dialog.getContentElement( target[ 0 ], target[ 1 ] ).submit(); + } + this.disable(); + } + }; + + dialog.on( 'load', function() { + dialog.getContentElement( elementDefinition[ 'for' ][ 0 ], elementDefinition[ 'for' ][ 1 ] )._.buttons.push( me ); + } ); + + CKEDITOR.ui.dialog.button.call( this, dialog, myDefinition, htmlList ); + }, + + html: ( function() { + var myHtmlRe = /^\s*<[\w:]+\s+([^>]*)?>/, + theirHtmlRe = /^(\s*<[\w:]+(?:\s+[^>]*)?)((?:.|\r|\n)+)$/, + emptyTagRe = /\/$/; + /** + * A dialog window element made from raw HTML code. + * + * @class CKEDITOR.ui.dialog.html + * @extends CKEDITOR.ui.dialog.uiElement + * @constructor Creates a html class instance. + * @param {CKEDITOR.dialog} dialog Parent dialog window object. + * @param {CKEDITOR.dialog.definition.uiElement} elementDefinition Element definition. + * Accepted fields: + * + * * `html` (Required) HTML code of this element. + * + * @param {Array} htmlList List of HTML code to be added to the dialog's content area. + */ + return function( dialog, elementDefinition, htmlList ) { + if ( arguments.length < 3 ) + return; + + var myHtmlList = [], + myHtml, + theirHtml = elementDefinition.html, + myMatch, theirMatch; + + // If the HTML input doesn't contain any tags at the beginning, add a tag around it. + if ( theirHtml.charAt( 0 ) != '<' ) + theirHtml = '' + theirHtml + ''; + + // Look for focus function in definition. + var focus = elementDefinition.focus; + if ( focus ) { + var oldFocus = this.focus; + this.focus = function() { + ( typeof focus == 'function' ? focus : oldFocus ).call( this ); + this.fire( 'focus' ); + }; + if ( elementDefinition.isFocusable ) { + var oldIsFocusable = this.isFocusable; + this.isFocusable = oldIsFocusable; + } + this.keyboardFocusable = true; + } + + CKEDITOR.ui.dialog.uiElement.call( this, dialog, elementDefinition, myHtmlList, 'span', null, null, '' ); + + // Append the attributes created by the uiElement call to the real HTML. + myHtml = myHtmlList.join( '' ); + myMatch = myHtml.match( myHtmlRe ); + theirMatch = theirHtml.match( theirHtmlRe ) || [ '', '', '' ]; + + if ( emptyTagRe.test( theirMatch[ 1 ] ) ) { + theirMatch[ 1 ] = theirMatch[ 1 ].slice( 0, -1 ); + theirMatch[ 2 ] = '/' + theirMatch[ 2 ]; + } + + htmlList.push( [ theirMatch[ 1 ], ' ', myMatch[ 1 ] || '', theirMatch[ 2 ] ].join( '' ) ); + }; + } )(), + + /** + * Form fieldset for grouping dialog UI elements. + * + * @class CKEDITOR.ui.dialog.fieldset + * @extends CKEDITOR.ui.dialog.uiElement + * @constructor Creates a fieldset class instance. + * @param {CKEDITOR.dialog} dialog Parent dialog window object. + * @param {Array} childObjList + * Array of {@link CKEDITOR.ui.dialog.uiElement} objects inside this container. + * @param {Array} childHtmlList Array of HTML code that corresponds to the HTML output of all the + * objects in childObjList. + * @param {Array} htmlList Array of HTML code that this element will output to. + * @param {CKEDITOR.dialog.definition.uiElement} elementDefinition + * The element definition. Accepted fields: + * + * * `label` (Optional) The legend of the this fieldset. + * * `children` (Required) An array of dialog window field definitions which will be grouped inside this fieldset. + * + */ + fieldset: function( dialog, childObjList, childHtmlList, htmlList, elementDefinition ) { + var legendLabel = elementDefinition.label; + /** @ignore */ + var innerHTML = function() { + var html = []; + legendLabel && html.push( '' + legendLabel + '' ); + for ( var i = 0; i < childHtmlList.length; i++ ) + html.push( childHtmlList[ i ] ); + return html.join( '' ); + }; + + this._ = { children: childObjList }; + CKEDITOR.ui.dialog.uiElement.call( this, dialog, elementDefinition, htmlList, 'fieldset', null, null, innerHTML ); + } + + }, true ); + + CKEDITOR.ui.dialog.html.prototype = new CKEDITOR.ui.dialog.uiElement(); + + /** @class CKEDITOR.ui.dialog.labeledElement */ + CKEDITOR.ui.dialog.labeledElement.prototype = CKEDITOR.tools.extend( new CKEDITOR.ui.dialog.uiElement(), { + /** + * Sets the label text of the element. + * + * @param {String} label The new label text. + * @returns {CKEDITOR.ui.dialog.labeledElement} The current labeled element. + */ + setLabel: function( label ) { + var node = CKEDITOR.document.getById( this._.labelId ); + if ( node.getChildCount() < 1 ) + ( new CKEDITOR.dom.text( label, CKEDITOR.document ) ).appendTo( node ); + else + node.getChild( 0 ).$.nodeValue = label; + return this; + }, + + /** + * Retrieves the current label text of the elment. + * + * @returns {String} The current label text. + */ + getLabel: function() { + var node = CKEDITOR.document.getById( this._.labelId ); + if ( !node || node.getChildCount() < 1 ) + return ''; + else + return node.getChild( 0 ).getText(); + }, + + /** + * Defines the `onChange` event for UI element definitions. + * @property {Object} + */ + eventProcessors: commonEventProcessors + }, true ); + + /** @class CKEDITOR.ui.dialog.button */ + CKEDITOR.ui.dialog.button.prototype = CKEDITOR.tools.extend( new CKEDITOR.ui.dialog.uiElement(), { + /** + * Simulates a click to the button. + * + * @returns {Object} Return value of the `click` event. + */ + click: function() { + if ( !this._.disabled ) + return this.fire( 'click', { dialog: this._.dialog } ); + return false; + }, + + /** + * Enables the button. + */ + enable: function() { + this._.disabled = false; + var element = this.getElement(); + element && element.removeClass( 'cke_disabled' ); + }, + + /** + * Disables the button. + */ + disable: function() { + this._.disabled = true; + this.getElement().addClass( 'cke_disabled' ); + }, + + /** + * Checks whether a field is visible. + * + * @returns {Boolean} + */ + isVisible: function() { + return this.getElement().getFirst().isVisible(); + }, + + /** + * Checks whether a field is enabled. Fields can be disabled by using the + * {@link #disable} method and enabled by using the {@link #enable} method. + * + * @returns {Boolean} + */ + isEnabled: function() { + return !this._.disabled; + }, + + /** + * Defines the `onChange` event and `onClick` for button element definitions. + * + * @property {Object} + */ + eventProcessors: CKEDITOR.tools.extend( {}, CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors, { + onClick: function( dialog, func ) { + this.on( 'click', function() { + func.apply( this, arguments ); + } ); + } + }, true ), + + /** + * Handler for the element's access key up event. Simulates a click to + * the button. + */ + accessKeyUp: function() { + this.click(); + }, + + /** + * Handler for the element's access key down event. Simulates a mouse + * down to the button. + */ + accessKeyDown: function() { + this.focus(); + }, + + keyboardFocusable: true + }, true ); + + /** @class CKEDITOR.ui.dialog.textInput */ + CKEDITOR.ui.dialog.textInput.prototype = CKEDITOR.tools.extend( new CKEDITOR.ui.dialog.labeledElement(), { + /** + * Gets the text input DOM element under this UI object. + * + * @returns {CKEDITOR.dom.element} The DOM element of the text input. + */ + getInputElement: function() { + return CKEDITOR.document.getById( this._.inputId ); + }, + + /** + * Puts focus into the text input. + */ + focus: function() { + var me = this.selectParentTab(); + + // GECKO BUG: setTimeout() is needed to workaround invisible selections. + setTimeout( function() { + var element = me.getInputElement(); + element && element.$.focus(); + }, 0 ); + }, + + /** + * Selects all the text in the text input. + */ + select: function() { + var me = this.selectParentTab(); + + // GECKO BUG: setTimeout() is needed to workaround invisible selections. + setTimeout( function() { + var e = me.getInputElement(); + if ( e ) { + e.$.focus(); + e.$.select(); + } + }, 0 ); + }, + + /** + * Handler for the text input's access key up event. Makes a `select()` + * call to the text input. + */ + accessKeyUp: function() { + this.select(); + }, + + /** + * Sets the value of this text input object. + * + * uiElement.setValue( 'Blamo' ); + * + * @param {Object} value The new value. + * @returns {CKEDITOR.ui.dialog.textInput} The current UI element. + */ + setValue: function( value ) { + if ( this.bidi ) { + var marker = value && value.charAt( 0 ), + dir = ( marker == '\u202A' ? 'ltr' : marker == '\u202B' ? 'rtl' : null ); + + if ( dir ) { + value = value.slice( 1 ); + } + + // Set the marker or reset it (if dir==null). + this.setDirectionMarker( dir ); + } + + if ( !value ) { + value = ''; + } + + return CKEDITOR.ui.dialog.uiElement.prototype.setValue.apply( this, arguments ); + }, + + /** + * Gets the value of this text input object. + * + * @returns {String} The value. + */ + getValue: function() { + var value = CKEDITOR.ui.dialog.uiElement.prototype.getValue.call( this ); + + if ( this.bidi && value ) { + var dir = this.getDirectionMarker(); + if ( dir ) { + value = ( dir == 'ltr' ? '\u202A' : '\u202B' ) + value; + } + } + + return value; + }, + + /** + * Sets the text direction marker and the `dir` attribute of the input element. + * + * @since 4.5 + * @param {String} dir The text direction. Pass `null` to reset. + */ + setDirectionMarker: function( dir ) { + var inputElement = this.getInputElement(); + + if ( dir ) { + inputElement.setAttributes( { + dir: dir, + 'data-cke-dir-marker': dir + } ); + // Don't remove the dir attribute if this field hasn't got the marker, + // because the dir attribute could be set independently. + } else if ( this.getDirectionMarker() ) { + inputElement.removeAttributes( [ 'dir', 'data-cke-dir-marker' ] ); + } + }, + + /** + * Gets the value of the text direction marker. + * + * @since 4.5 + * @returns {String} `'ltr'`, `'rtl'` or `null` if the marker is not set. + */ + getDirectionMarker: function() { + return this.getInputElement().data( 'cke-dir-marker' ); + }, + + keyboardFocusable: true + }, commonPrototype, true ); + + CKEDITOR.ui.dialog.textarea.prototype = new CKEDITOR.ui.dialog.textInput(); + + /** @class CKEDITOR.ui.dialog.select */ + CKEDITOR.ui.dialog.select.prototype = CKEDITOR.tools.extend( new CKEDITOR.ui.dialog.labeledElement(), { + /** + * Gets the DOM element of the select box. + * + * @returns {CKEDITOR.dom.element} The `` element of this file input. + * + * @returns {CKEDITOR.dom.element} The file input element. + */ + getInputElement: function() { + var frameDocument = CKEDITOR.document.getById( this._.frameId ).getFrameDocument(); + return frameDocument.$.forms.length > 0 ? new CKEDITOR.dom.element( frameDocument.$.forms[ 0 ].elements[ 0 ] ) : this.getElement(); + }, + + /** + * Uploads the file in the file input. + * + * @returns {CKEDITOR.ui.dialog.file} This object. + */ + submit: function() { + this.getInputElement().getParent().$.submit(); + return this; + }, + + /** + * Gets the action assigned to the form. + * + * @returns {String} The value of the action. + */ + getAction: function() { + return this.getInputElement().getParent().$.action; + }, + + /** + * The events must be applied to the inner input element, and + * this must be done when the iframe and form have been loaded. + */ + registerEvents: function( definition ) { + var regex = /^on([A-Z]\w+)/, + match; + + var registerDomEvent = function( uiElement, dialog, eventName, func ) { + uiElement.on( 'formLoaded', function() { + uiElement.getInputElement().on( eventName, func, uiElement ); + } ); + }; + + for ( var i in definition ) { + if ( !( match = i.match( regex ) ) ) + continue; + + if ( this.eventProcessors[ i ] ) + this.eventProcessors[ i ].call( this, this._.dialog, definition[ i ] ); + else + registerDomEvent( this, this._.dialog, match[ 1 ].toLowerCase(), definition[ i ] ); + } + + return this; + }, + + /** + * Redraws the file input and resets the file path in the file input. + * The redrawing logic is necessary because non-IE browsers tend to clear + * the `'; - } - - if (this.getContentElement('youtubePlugin', 'chkResponsive').getValue() === true) { - content += '
'; - } - } - - var element = CKEDITOR.dom.element.createFromHtml(content); - var instance = this.getParentEditor(); - instance.insertElement(element); - } - }; - }); - } - }); -})(); - -function handleLinkChange(el, api) { - var video = ytVidId(el.getValue()); - var time = ytVidTime(el.getValue()); - - if (el.getValue().length > 0) { - el.getDialog().getContentElement('youtubePlugin', 'txtEmbed').disable(); - } - else { - el.getDialog().getContentElement('youtubePlugin', 'txtEmbed').enable(); - } - - if (video && time) { - var seconds = timeParamToSeconds(time); - var hms = secondsToHms(seconds); - el.getDialog().getContentElement('youtubePlugin', 'txtStartAt').setValue(hms); - } -} - -function handleEmbedChange(el, api) { - if (el.getValue().length > 0) { - el.getDialog().getContentElement('youtubePlugin', 'txtUrl').disable(); - } - else { - el.getDialog().getContentElement('youtubePlugin', 'txtUrl').enable(); - } -} - - -/** - * JavaScript function to match (and return) the video Id - * of any valid Youtube Url, given as input string. - * @author: Stephan Schmitz - * @url: http://stackoverflow.com/a/10315969/624466 - */ -function ytVidId(url) { - var p = /^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/; - return (url.match(p)) ? RegExp.$1 : false; -} - -/** - * Matches and returns time param in YouTube Urls. - */ -function ytVidTime(url) { - var p = /t=([0-9hms]+)/; - return (url.match(p)) ? RegExp.$1 : false; -} - -/** - * Converts time in hms format to seconds only - */ -function hmsToSeconds(time) { - var arr = time.split(':'), s = 0, m = 1; - - while (arr.length > 0) { - s += m * parseInt(arr.pop(), 10); - m *= 60; - } - - return s; -} - -/** - * Converts seconds to hms format - */ -function secondsToHms(seconds) { - var h = Math.floor(seconds / 3600); - var m = Math.floor((seconds / 60) % 60); - var s = seconds % 60; - - var pad = function (n) { - n = String(n); - return n.length >= 2 ? n : "0" + n; - }; - - if (h > 0) { - return pad(h) + ':' + pad(m) + ':' + pad(s); - } - else { - return pad(m) + ':' + pad(s); - } -} - -/** - * Converts time in youtube t-param format to seconds - */ -function timeParamToSeconds(param) { - var componentValue = function (si) { - var regex = new RegExp('(\\d+)' + si); - return param.match(regex) ? parseInt(RegExp.$1, 10) : 0; - }; - - return componentValue('h') * 3600 - + componentValue('m') * 60 - + componentValue('s'); -} - -/** - * Converts seconds into youtube t-param value, e.g. 1h4m30s - */ -function secondsToTimeParam(seconds) { - var h = Math.floor(seconds / 3600); - var m = Math.floor((seconds / 60) % 60); - var s = seconds % 60; - var param = ''; - - if (h > 0) { - param += h + 'h'; - } - - if (m > 0) { - param += m + 'm'; - } - - if (s > 0) { - param += s + 's'; - } - - return param; -} +/* +* Youtube Embed Plugin +* +* @author Jonnas Fonini +* @version 2.1.13 +*/ +(function () { + CKEDITOR.plugins.add('youtube', { + lang: [ 'en', 'bg', 'pt', 'pt-br', 'ja', 'hu', 'it', 'fr', 'tr', 'ru', 'de', 'ar', 'nl', 'pl', 'vi', 'zh', 'el', 'he', 'es', 'nb', 'nn', 'fi', 'et', 'sk', 'cs', 'ko', 'eu', 'uk'], + init: function (editor) { + editor.addCommand('youtube', new CKEDITOR.dialogCommand('youtube', { + allowedContent: 'div{*}(*); iframe{*}[!width,!height,!src,!frameborder,!allowfullscreen,!allow]; object param[*]; a[*]; img[*]' + })); + + editor.ui.addButton('Youtube', { + label : editor.lang.youtube.button, + toolbar : 'insert', + command : 'youtube', + icon : this.path + 'images/icon.png' + }); + + CKEDITOR.dialog.add('youtube', function (instance) { + var video, + disabled = editor.config.youtube_disabled_fields || []; + + return { + title : editor.lang.youtube.title, + minWidth : 510, + minHeight : 200, + onShow: function () { + for (var i = 0; i < disabled.length; i++) { + this.getContentElement('youtubePlugin', disabled[i]).disable(); + } + }, + contents : + [{ + id : 'youtubePlugin', + expand : true, + elements : + [{ + id : 'txtEmbed', + type : 'textarea', + label : editor.lang.youtube.txtEmbed, + onChange : function (api) { + handleEmbedChange(this, api); + }, + onKeyUp : function (api) { + handleEmbedChange(this, api); + }, + validate : function () { + if (this.isEnabled()) { + if (!this.getValue()) { + alert(editor.lang.youtube.noCode); + return false; + } + else + if (this.getValue().length === 0 || this.getValue().indexOf('//') === -1) { + alert(editor.lang.youtube.invalidEmbed); + return false; + } + } + } + }, + { + type : 'html', + html : editor.lang.youtube.or + '
' + }, + { + type : 'hbox', + widths : [ '70%', '15%', '15%' ], + children : + [ + { + id : 'txtUrl', + type : 'text', + label : editor.lang.youtube.txtUrl, + onChange : function (api) { + handleLinkChange(this, api); + }, + onKeyUp : function (api) { + handleLinkChange(this, api); + }, + validate : function () { + if (this.isEnabled()) { + if (!this.getValue()) { + alert(editor.lang.youtube.noCode); + return false; + } + else{ + video = ytVidId(this.getValue()); + + if (this.getValue().length === 0 || video === false) + { + alert(editor.lang.youtube.invalidUrl); + return false; + } + } + } + } + }, + { + type : 'text', + id : 'txtWidth', + width : '60px', + label : editor.lang.youtube.txtWidth, + 'default' : editor.config.youtube_width != null ? editor.config.youtube_width : '640', + validate : function () { + if (this.getValue()) { + var width = parseInt (this.getValue()) || 0; + + if (width === 0) { + alert(editor.lang.youtube.invalidWidth); + return false; + } + } + else { + alert(editor.lang.youtube.noWidth); + return false; + } + } + }, + { + type : 'text', + id : 'txtHeight', + width : '60px', + label : editor.lang.youtube.txtHeight, + 'default' : editor.config.youtube_height != null ? editor.config.youtube_height : '360', + validate : function () { + if (this.getValue()) { + var height = parseInt(this.getValue()) || 0; + + if (height === 0) { + alert(editor.lang.youtube.invalidHeight); + return false; + } + } + else { + alert(editor.lang.youtube.noHeight); + return false; + } + } + } + ] + }, + { + type : 'hbox', + widths : [ '55%', '45%' ], + children : + [ + { + id : 'chkResponsive', + type : 'checkbox', + label : editor.lang.youtube.txtResponsive, + 'default' : editor.config.youtube_responsive != null ? editor.config.youtube_responsive : false + }, + { + id : 'chkNoEmbed', + type : 'checkbox', + label : editor.lang.youtube.txtNoEmbed, + 'default' : editor.config.youtube_noembed != null ? editor.config.youtube_noembed : false + } + ] + }, + { + type : 'hbox', + widths : [ '55%', '45%' ], + children : + [ + { + id : 'chkRelated', + type : 'checkbox', + 'default' : editor.config.youtube_related != null ? editor.config.youtube_related : true, + label : editor.lang.youtube.chkRelated + }, + { + id : 'chkOlderCode', + type : 'checkbox', + 'default' : editor.config.youtube_older != null ? editor.config.youtube_older : false, + label : editor.lang.youtube.chkOlderCode + } + ] + }, + { + type : 'hbox', + widths : [ '55%', '45%' ], + children : + [ + { + id : 'chkPrivacy', + type : 'checkbox', + label : editor.lang.youtube.chkPrivacy, + 'default' : editor.config.youtube_privacy != null ? editor.config.youtube_privacy : false + }, + { + id : 'chkAutoplay', + type : 'checkbox', + 'default' : editor.config.youtube_autoplay != null ? editor.config.youtube_autoplay : false, + label : editor.lang.youtube.chkAutoplay + } + ] + }, + { + type : 'hbox', + widths : [ '55%', '45%'], + children : + [ + { + id : 'txtStartAt', + type : 'text', + label : editor.lang.youtube.txtStartAt, + validate : function () { + if (this.getValue()) { + var str = this.getValue(); + + if (!/^(?:(?:([01]?\d|2[0-3]):)?([0-5]?\d):)?([0-5]?\d)$/i.test(str)) { + alert(editor.lang.youtube.invalidTime); + return false; + } + } + } + }, + { + id : 'chkControls', + type : 'checkbox', + 'default' : editor.config.youtube_controls != null ? editor.config.youtube_controls : true, + label : editor.lang.youtube.chkControls + } + ] + } + ] + } + ], + onOk: function() + { + var content = ''; + var responsiveStyle = ''; + + if (this.getContentElement('youtubePlugin', 'txtEmbed').isEnabled()) { + content = this.getValueOf('youtubePlugin', 'txtEmbed'); + } + else { + var url = 'https://', params = [], startSecs, paramAutoplay=''; + var width = this.getValueOf('youtubePlugin', 'txtWidth'); + var height = this.getValueOf('youtubePlugin', 'txtHeight'); + + if (this.getContentElement('youtubePlugin', 'chkPrivacy').getValue() === true) { + url += 'www.youtube-nocookie.com/'; + } + else { + url += 'www.youtube.com/'; + } + + url += 'embed/' + video; + + if (this.getContentElement('youtubePlugin', 'chkRelated').getValue() === false) { + params.push('rel=0'); + } + + if (this.getContentElement('youtubePlugin', 'chkAutoplay').getValue() === true) { + params.push('autoplay=1'); + paramAutoplay='autoplay'; + } + + if (this.getContentElement('youtubePlugin', 'chkControls').getValue() === false) { + params.push('controls=0'); + } + + startSecs = this.getValueOf('youtubePlugin', 'txtStartAt'); + + if (startSecs) { + var seconds = hmsToSeconds(startSecs); + + params.push('start=' + seconds); + } + + if (params.length > 0) { + url = url + '?' + params.join('&'); + } + + if (this.getContentElement('youtubePlugin', 'chkResponsive').getValue() === true) { + content += '
'; + responsiveStyle = 'class="responsive-view"'; + } + + if (this.getContentElement('youtubePlugin', 'chkOlderCode').getValue() === true) { + url = url.replace('embed/', 'v/'); + url = url.replace(/&/g, '&'); + + if (url.indexOf('?') === -1) { + url += '?'; + } + else { + url += '&'; + } + url += 'hl=' + (this.getParentEditor().config.language ? this.getParentEditor().config.language : 'en') + '&version=3'; + + content += ''; + content += ''; + content += ''; + content += ''; + content += ''; + } + else { + content += '