@ikas/core 1.0.10 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core.css +1 -1
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +1 -1
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +1 -1
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +1 -1
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +7 -7
- package/dist/index136.cjs +1 -1
- package/dist/index136.js +1 -1
- package/dist/index141.cjs +6 -1
- package/dist/index141.js +11 -404
- package/dist/index142.cjs +1 -6
- package/dist/index142.js +404 -11
- package/dist/index143.cjs +1 -1
- package/dist/index143.js +6 -111
- package/dist/index144.cjs +3 -1
- package/dist/index144.js +146 -6
- package/dist/index145.cjs +1 -3
- package/dist/index145.js +29 -144
- package/dist/index146.cjs +1 -1
- package/dist/index146.js +141 -28
- package/dist/index147.cjs +15 -1
- package/dist/index147.js +107 -114
- package/dist/index148.cjs +1 -15
- package/dist/index148.js +86 -136
- package/dist/index149.cjs +11 -1
- package/dist/index149.js +147 -86
- package/dist/index150.cjs +1 -11
- package/dist/index150.js +72 -137
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +46 -79
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +21 -47
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +5 -24
- package/dist/index154.cjs +1 -1
- package/dist/index154.js +6 -5
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +44 -6
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +48 -42
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +9 -50
- package/dist/index158.cjs +1 -1
- package/dist/index158.js +19 -9
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +58 -19
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +280 -52
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +17 -284
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +9 -10
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +60 -14
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +102 -53
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +30 -101
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +19 -37
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +162 -19
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +19 -163
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +53 -19
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +27 -51
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +43 -25
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +117 -35
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +63 -115
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +72 -73
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +15 -76
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +28 -14
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +26 -28
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +13 -13
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +171 -27
- package/dist/index180.cjs +1 -1
- package/dist/index180.js +51 -174
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +14 -51
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +2 -27
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +8 -2
- package/dist/index184.cjs +2 -1
- package/dist/index184.js +325 -26
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +48 -30
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +23 -112
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +2 -60
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +24 -56
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +29 -14
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +115 -14
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +60 -2
- package/dist/index192.cjs +1 -1
- package/dist/index192.js +59 -7
- package/dist/index193.cjs +1 -2
- package/dist/index193.js +14 -324
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +16 -48
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +11 -4
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +8 -8
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +5 -8
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +9 -2
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +8 -17
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +2 -13
- package/dist/index201.cjs +1 -1
- package/dist/index201.js +40 -9
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +1 -1
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +4 -4
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +5 -40
- package/dist/index206.cjs +1 -1
- package/dist/index206.js +5 -5
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +20 -5
- package/dist/index208.cjs +5 -1
- package/dist/index208.js +2961 -19
- package/dist/index209.cjs +1 -5
- package/dist/index209.js +2 -2962
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +5 -2
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +2 -5
- package/dist/index212.js +2 -2
- package/dist/index213.js +2 -2
- package/dist/index215.js +2 -2
- package/dist/index216.js +2 -2
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +2 -2
- package/dist/index218.cjs +8 -1
- package/dist/index218.js +76 -2
- package/dist/index219.cjs +3 -3
- package/dist/index219.js +83 -66
- package/dist/index220.cjs +5 -8
- package/dist/index220.js +49 -90
- package/dist/index221.cjs +1 -5
- package/dist/index221.js +7 -51
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +4 -7
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +51 -4
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +25 -51
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +16 -10
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +42 -15
- package/dist/index227.cjs +1 -1
- package/dist/index227.js +13 -3
- package/dist/index228.cjs +1 -1
- package/dist/index228.js +13 -8
- package/dist/index229.cjs +1 -1
- package/dist/index229.js +61 -4
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +15 -5
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +6 -26
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +3 -16
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +28 -41
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +6 -13
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +5 -13
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +6 -60
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +10 -15
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +9 -5
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +15 -3
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +3 -28
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +7 -6
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +4 -5
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +5 -6
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +38 -10
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +2 -39
- package/dist/index246.cjs +1 -1
- package/dist/index246.js +111 -2
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +1 -1
- package/dist/index248.cjs +1 -1
- package/dist/index248.js +1 -1
- package/dist/index249.cjs +1 -1
- package/dist/index249.js +1 -1
- package/dist/index250.cjs +1 -1
- package/dist/index250.js +2 -2
- package/dist/index253.cjs +1 -1
- package/dist/index253.js +5 -5
- package/dist/index254.cjs +1 -1
- package/dist/index254.js +4 -12
- package/dist/index255.cjs +1 -1
- package/dist/index255.js +17 -9
- package/dist/index256.cjs +1 -1
- package/dist/index256.js +4 -4
- package/dist/index257.cjs +1 -1
- package/dist/index257.js +4 -26
- package/dist/index258.cjs +1 -1
- package/dist/index258.js +3 -9
- package/dist/index259.cjs +1 -1
- package/dist/index259.js +3 -5
- package/dist/index260.cjs +1 -1
- package/dist/index260.js +13 -4
- package/dist/index261.cjs +1 -1
- package/dist/index261.js +9 -5
- package/dist/index262.cjs +1 -1
- package/dist/index262.js +3 -5
- package/dist/index263.cjs +1 -1
- package/dist/index263.js +10 -9
- package/dist/index264.cjs +1 -1
- package/dist/index264.js +6 -4
- package/dist/index265.cjs +1 -1
- package/dist/index265.js +5 -7
- package/dist/index266.cjs +1 -1
- package/dist/index266.js +6 -5
- package/dist/index267.cjs +1 -1
- package/dist/index267.js +6 -6
- package/dist/index268.cjs +1 -1
- package/dist/index268.js +8 -18
- package/dist/index269.cjs +1 -1
- package/dist/index269.js +5 -4
- package/dist/index270.cjs +1 -1
- package/dist/index270.js +4 -5
- package/dist/index271.cjs +1 -1
- package/dist/index271.js +9 -3
- package/dist/index272.cjs +1 -1
- package/dist/index272.js +13 -3
- package/dist/index273.cjs +1 -1
- package/dist/index273.js +5 -15
- package/dist/index274.cjs +1 -1
- package/dist/index274.js +5 -9
- package/dist/index275.cjs +1 -1
- package/dist/index275.js +17 -3
- package/dist/index276.cjs +1 -1
- package/dist/index276.js +12 -10
- package/dist/index277.cjs +1 -1
- package/dist/index277.js +12 -6
- package/dist/index278.cjs +1 -1
- package/dist/index278.js +4 -6
- package/dist/index279.cjs +1 -1
- package/dist/index279.js +5 -6
- package/dist/index280.cjs +1 -1
- package/dist/index280.js +26 -6
- package/dist/index281.cjs +1 -1
- package/dist/index281.js +10 -8
- package/dist/index282.cjs +1 -1
- package/dist/index282.js +5 -5
- package/dist/index283.cjs +1 -1
- package/dist/index283.js +6 -4
- package/dist/index284.cjs +1 -1
- package/dist/index284.js +5 -13
- package/dist/index285.cjs +1 -1
- package/dist/index285.js +6 -5
- package/dist/index286.cjs +1 -1
- package/dist/index286.js +9 -5
- package/dist/index287.cjs +1 -1
- package/dist/index287.js +4 -17
- package/dist/index288.cjs +1 -1
- package/dist/index288.js +7 -12
- package/dist/index289.cjs +1 -1
- package/dist/index289.js +5 -5
- package/dist/index290.cjs +1 -1
- package/dist/index290.js +6 -4
- package/dist/index291.cjs +1 -1
- package/dist/index291.js +5 -12
- package/dist/index292.cjs +1 -1
- package/dist/index292.js +13 -4
- package/dist/index293.cjs +1 -1
- package/dist/index293.js +4 -5
- package/dist/index294.cjs +1 -1
- package/dist/index294.js +69 -37
- package/dist/index295.cjs +1 -1
- package/dist/index295.js +19 -2
- package/dist/index296.cjs +1 -1
- package/dist/index296.js +35 -2
- package/dist/index297.cjs +1 -1
- package/dist/index297.js +49 -6
- package/dist/index298.cjs +1 -1
- package/dist/index298.js +39 -7
- package/dist/index299.cjs +1 -1
- package/dist/index299.js +91 -3
- package/dist/index300.cjs +1 -1
- package/dist/index300.js +59 -70
- package/dist/index301.cjs +1 -1
- package/dist/index301.js +37 -17
- package/dist/index302.cjs +1 -1
- package/dist/index302.js +2 -35
- package/dist/index303.cjs +1 -1
- package/dist/index303.js +2 -50
- package/dist/index304.cjs +1 -1
- package/dist/index304.js +6 -39
- package/dist/index305.cjs +1 -1
- package/dist/index305.js +7 -91
- package/dist/index306.cjs +1 -1
- package/dist/index306.js +3 -59
- package/dist/index307.cjs +1 -1
- package/dist/index307.js +5 -29
- package/dist/index308.cjs +1 -1
- package/dist/index308.js +15 -9
- package/dist/index309.cjs +1 -1
- package/dist/index309.js +3 -4
- package/dist/index310.cjs +1 -1
- package/dist/index310.js +5 -16
- package/dist/index311.cjs +1 -1
- package/dist/index311.js +6 -6
- package/dist/index312.cjs +1 -1
- package/dist/index312.js +3 -3
- package/dist/index313.cjs +1 -1
- package/dist/index313.js +9 -9
- package/dist/index314.cjs +1 -1
- package/dist/index314.js +5 -5
- package/dist/index315.cjs +1 -1
- package/dist/index315.js +9 -5
- package/dist/index316.cjs +1 -1
- package/dist/index316.js +11 -5
- package/dist/index317.cjs +1 -1
- package/dist/index317.js +4 -4
- package/dist/index318.cjs +1 -1
- package/dist/index318.js +9 -17
- package/dist/index319.cjs +1 -1
- package/dist/index319.js +5 -5
- package/dist/index320.cjs +1 -1
- package/dist/index320.js +5 -15
- package/dist/index321.cjs +1 -1
- package/dist/index321.js +6 -3
- package/dist/index322.cjs +1 -1
- package/dist/index322.js +4 -6
- package/dist/index323.cjs +1 -1
- package/dist/index323.js +17 -6
- package/dist/index324.cjs +1 -1
- package/dist/index324.js +9 -4
- package/dist/index325.cjs +1 -1
- package/dist/index325.js +5 -9
- package/dist/index326.cjs +1 -1
- package/dist/index326.js +5 -3
- package/dist/index327.cjs +1 -1
- package/dist/index327.js +13 -8
- package/dist/index328.cjs +1 -1
- package/dist/index328.js +12 -12
- package/dist/index329.cjs +1 -1
- package/dist/index329.js +14 -9
- package/dist/index330.cjs +1 -1
- package/dist/index330.js +6 -5
- package/dist/index331.cjs +1 -1
- package/dist/index331.js +29 -7
- package/dist/index332.cjs +1 -1
- package/dist/index332.js +8 -13
- package/dist/index333.cjs +1 -1
- package/dist/index333.js +4 -12
- package/dist/index334.cjs +1 -1
- package/dist/index334.js +16 -13
- package/dist/index339.cjs +1 -1
- package/dist/index339.js +3 -38
- package/dist/index340.cjs +1 -1
- package/dist/index340.js +5 -42
- package/dist/index341.cjs +1 -1
- package/dist/index341.js +7 -33
- package/dist/index342.cjs +1 -1
- package/dist/index342.js +8 -26
- package/dist/index343.cjs +1 -1
- package/dist/index343.js +6 -7
- package/dist/index344.cjs +1 -1
- package/dist/index344.js +10 -11
- package/dist/index345.cjs +1 -1
- package/dist/index345.js +5 -6
- package/dist/index346.cjs +1 -1
- package/dist/index346.js +4 -10
- package/dist/index347.cjs +1 -1
- package/dist/index347.js +4 -5
- package/dist/index348.cjs +1 -1
- package/dist/index348.js +5 -4
- package/dist/index349.cjs +1 -1
- package/dist/index349.js +5 -4
- package/dist/index350.cjs +1 -1
- package/dist/index350.js +37 -5
- package/dist/index351.cjs +1 -1
- package/dist/index351.js +43 -3
- package/dist/index352.cjs +1 -1
- package/dist/index352.js +33 -5
- package/dist/index353.cjs +1 -1
- package/dist/index353.js +26 -8
- package/dist/index354.cjs +1 -1
- package/dist/index354.js +11 -7
- package/dist/index355.cjs +1 -1
- package/dist/index355.js +7 -5
- package/dist/index356.cjs +1 -1
- package/dist/index356.js +14 -8
- package/dist/index357.cjs +1 -1
- package/dist/index357.js +3 -4
- package/dist/index358.cjs +1 -1
- package/dist/index358.js +17 -2
- package/dist/index359.cjs +1 -1
- package/dist/index359.js +5 -13
- package/dist/index360.cjs +1 -1
- package/dist/index360.js +10 -3
- package/dist/index361.cjs +1 -1
- package/dist/index361.js +6 -17
- package/dist/index362.cjs +1 -1
- package/dist/index362.js +3 -5
- package/dist/index363.cjs +1 -1
- package/dist/index363.js +6 -10
- package/dist/index364.cjs +1 -1
- package/dist/index364.js +6 -6
- package/dist/index365.cjs +1 -1
- package/dist/index365.js +6 -3
- package/dist/index366.cjs +1 -1
- package/dist/index366.js +4 -7
- package/dist/index367.cjs +1 -1
- package/dist/index367.js +4 -7
- package/dist/index368.cjs +1 -1
- package/dist/index368.js +4 -7
- package/dist/index369.cjs +1 -1
- package/dist/index369.js +3 -3
- package/dist/index370.cjs +1 -1
- package/dist/index370.js +15 -4
- package/dist/index371.cjs +1 -1
- package/dist/index371.js +3 -4
- package/dist/index372.cjs +1 -1
- package/dist/index372.js +8 -4
- package/dist/index373.cjs +1 -1
- package/dist/index373.js +4 -14
- package/dist/index374.cjs +14 -1
- package/dist/index374.js +6857 -8
- package/dist/index375.cjs +1 -1
- package/dist/index375.js +2 -5
- package/dist/index376.cjs +1 -1
- package/dist/index376.js +8 -4
- package/dist/index377.cjs +1 -1
- package/dist/index377.js +4 -10
- package/dist/index378.cjs +1 -1
- package/dist/index378.js +4 -6
- package/dist/index379.cjs +1 -1
- package/dist/index379.js +3 -5
- package/dist/index380.cjs +1 -1
- package/dist/index380.js +10 -4
- package/dist/index381.cjs +1 -1
- package/dist/index381.js +6 -4
- package/dist/index382.cjs +1 -1
- package/dist/index382.js +6 -3
- package/dist/index383.cjs +1 -1
- package/dist/index383.js +4 -6
- package/dist/index384.cjs +1 -1
- package/dist/index384.js +4 -8
- package/dist/index385.cjs +1 -1
- package/dist/index385.js +6 -8
- package/dist/index386.cjs +1 -1
- package/dist/index386.js +8 -16
- package/dist/index387.cjs +1 -1
- package/dist/index387.js +9 -3
- package/dist/index388.cjs +1 -1
- package/dist/index388.js +16 -3
- package/dist/index389.cjs +1 -1
- package/dist/index389.js +3 -6
- package/dist/index390.cjs +1 -1
- package/dist/index390.js +3 -8
- package/dist/index391.cjs +1 -1
- package/dist/index391.js +5 -3
- package/dist/index392.cjs +1 -1
- package/dist/index392.js +7 -15
- package/dist/index393.cjs +1 -14
- package/dist/index393.js +3 -6857
- package/dist/index394.cjs +1 -1
- package/dist/index394.js +16 -2
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +1 -1
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +6 -6
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +11 -11
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +9 -9
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +14 -14
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +12 -12
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +8 -8
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +9 -9
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +10 -10
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +14 -14
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +13 -13
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +10 -10
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +11 -11
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +10 -10
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +12 -12
- package/package.json +1 -1
package/dist/index393.cjs
CHANGED
|
@@ -1,14 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
*
|
|
3
|
-
* Super simple WYSIWYG editor v0.0.35
|
|
4
|
-
* https://summernote.org
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* Copyright 2013- Alan Hong and contributors
|
|
8
|
-
* Summernote may be freely distributed under the MIT license.
|
|
9
|
-
*
|
|
10
|
-
* Date: 2025-04-28T19:27Z
|
|
11
|
-
*
|
|
12
|
-
*/(function(M,D){O.exports=D(y(1))})(self,T=>(()=>{var M={770:((E,u,$)=>{var Z=$(886),ne=$.n(Z);ne().summernote=ne().summernote||{lang:{}},ne().extend(!0,ne().summernote.lang,{"en-US":{font:{bold:"Bold",italic:"Italic",underline:"Underline",clear:"Remove Font Style",height:"Line Height",name:"Font Family",strikethrough:"Strikethrough",subscript:"Subscript",superscript:"Superscript",size:"Font Size",sizeunit:"Font Size Unit"},image:{image:"Picture",insert:"Insert Image",resizeFull:"Resize full",resizeHalf:"Resize half",resizeQuarter:"Resize quarter",resizeNone:"Original size",floatLeft:"Float Left",floatRight:"Float Right",floatNone:"Remove float",shapeRounded:"Shape: Rounded",shapeCircle:"Shape: Circle",shapeThumbnail:"Shape: Thumbnail",shapeNone:"Shape: None",dragImageHere:"Drag image or text here",dropImage:"Drop image or Text",selectFromFiles:"Select from files",maximumFileSize:"Maximum file size",maximumFileSizeError:"Maximum file size exceeded.",url:"Image URL",remove:"Remove Image",original:"Original"},video:{video:"Video",videoLink:"Video Link",insert:"Insert Video",url:"Video URL",providers:"(YouTube, Google Drive, Vimeo, Vine, Instagram, DailyMotion, Youku, Peertube)"},link:{link:"Link",insert:"Insert Link",unlink:"Unlink",edit:"Edit",textToDisplay:"Text to display",url:"To what URL should this link go?",openInNewWindow:"Open in new window",useProtocol:"Use default protocol"},table:{table:"Table",addRowAbove:"Add row above",addRowBelow:"Add row below",addColLeft:"Add column left",addColRight:"Add column right",delRow:"Delete row",delCol:"Delete column",delTable:"Delete table"},hr:{insert:"Insert Horizontal Rule"},style:{style:"Style",p:"Normal",blockquote:"Quote",pre:"Code",h1:"Header 1",h2:"Header 2",h3:"Header 3",h4:"Header 4",h5:"Header 5",h6:"Header 6"},lists:{unordered:"Unordered list",ordered:"Ordered list"},options:{help:"Help",fullscreen:"Full Screen",codeview:"Code View"},paragraph:{paragraph:"Paragraph",outdent:"Outdent",indent:"Indent",left:"Align left",center:"Align center",right:"Align right",justify:"Justify full"},color:{recent:"Recent Color",more:"More Color",background:"Background Color",foreground:"Text Color",transparent:"Transparent",setTransparent:"Set transparent",reset:"Reset",resetToDefault:"Reset to default",cpSelect:"Select"},shortcut:{shortcuts:"Keyboard shortcuts",close:"Close",textFormatting:"Text formatting",action:"Action",paragraphFormatting:"Paragraph formatting",documentStyle:"Document Style",extraKeys:"Extra keys"},help:{escape:"Escape",insertParagraph:"Insert Paragraph",undo:"Undo the last command",redo:"Redo the last command",tab:"Tab",untab:"Untab",bold:"Set a bold style",italic:"Set a italic style",underline:"Set a underline style",strikethrough:"Set a strikethrough style",removeFormat:"Clean a style",justifyLeft:"Set left align",justifyCenter:"Set center align",justifyRight:"Set right align",justifyFull:"Set full align",insertUnorderedList:"Toggle unordered list",insertOrderedList:"Toggle ordered list",outdent:"Outdent on current paragraph",indent:"Indent on current paragraph",formatPara:"Change current block's format as a paragraph(P tag)",formatH1:"Change current block's format as H1",formatH2:"Change current block's format as H2",formatH3:"Change current block's format as H3",formatH4:"Change current block's format as H4",formatH5:"Change current block's format as H5",formatH6:"Change current block's format as H6",insertHorizontalRule:"Insert horizontal rule","linkDialog.show":"Show Link Dialog"},history:{undo:"Undo",redo:"Redo"},specialChar:{specialChar:"SPECIAL CHARACTERS",select:"Select Special characters"},output:{noSelection:"No Selection Made!"}}})}),886:(E=>{E.exports=T})},D={};function R(E){var u=D[E];if(u!==void 0)return u.exports;var $=D[E]={exports:{}};return M[E]($,$.exports,R),$.exports}R.n=E=>{var u=E&&E.__esModule?()=>E.default:()=>E;return R.d(u,{a:u}),u},R.d=(E,u)=>{for(var $ in u)R.o(u,$)&&!R.o(E,$)&&Object.defineProperty(E,$,{enumerable:!0,get:u[$]})},R.o=(E,u)=>Object.prototype.hasOwnProperty.call(E,u),R.r=E=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(E,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(E,"__esModule",{value:!0})};var H={};return(()=>{R.r(H);var E=R(886),u=R.n(E);R(770);var $=["sans-serif","serif","monospace","cursive","fantasy"];function Z(i){return u().inArray(i.toLowerCase(),$)===-1?"'".concat(i,"'"):i}function ne(i){var n=i==="Comic Sans MS"?"Courier New":"Comic Sans MS",e="mw",t="20px",o=40,r=20,a=document.createElement("canvas"),s=a.getContext("2d");a.width=o,a.height=r,s.textAlign="center",s.fillStyle="black",s.textBaseline="middle";function c(h){s.clearRect(0,0,o,r),s.font=t+" "+Z(h)+', "'+n+'"',s.fillText(e,o/2,r/2);var g=s.getImageData(0,0,o,r).data;return g.join("")}var d=c(n),f=c(i);return d!==f}var B=navigator.userAgent,A=/MSIE|Trident/i.test(B),S;if(A){var k=/MSIE (\d+[.]\d+)/.exec(B);k&&(S=parseFloat(k[1])),k=/Trident\/.*rv:([0-9]{1,}[.0-9]{0,})/.exec(B),k&&(S=parseFloat(k[1]))}var v=/Edge\/\d+/.test(B),L="ontouchstart"in window||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0,le=A?"DOMCharacterDataModified DOMSubtreeModified DOMNodeInserted":"input";const z={isMac:navigator.appVersion.indexOf("Mac")>-1,isMSIE:A,isEdge:v,isFF:!v&&/firefox/i.test(B),isPhantom:/PhantomJS/i.test(B),isWebkit:!v&&/webkit/i.test(B),isChrome:!v&&/chrome/i.test(B),isSafari:!v&&/safari/i.test(B)&&!/chrome/i.test(B),browserVersion:S,isSupportTouch:L,isFontInstalled:ne,isW3CRangeSupport:!!document.createRange,inputEventName:le,genericFontFamilies:$,validFontName:Z};function we(i){return function(n){return i===n}}function Ve(i,n){return i===n}function Ge(i){return function(n,e){return n[i]===e[i]}}function Ye(){return!0}function Ze(){return!1}function Xe(i){return function(){return!i.apply(i,arguments)}}function Qe(i,n){return function(e){return i(e)&&n(e)}}function Se(i){return i}function Je(i,n){return function(){return i[n].apply(i,arguments)}}var me=0;function $e(){me=0}function et(i){var n=++me+"";return i?i+n:n}function tt(i){var n=u()(document);return{top:i.top+n.scrollTop(),left:i.left+n.scrollLeft(),width:i.right-i.left,height:i.bottom-i.top}}function p(i){var n={};for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(n[i[e]]=e);return n}function P(i,n){return n=n||"",n+i.split(".").map(function(e){return e.substring(0,1).toUpperCase()+e.substring(1)}).join("")}function X(i,n,e){var t;return function(){var o=this,r=arguments,a=function(){t=null,e||i.apply(o,r)},s=e&&!t;clearTimeout(t),t=setTimeout(a,n),s&&i.apply(o,r)}}function G(i){var n=/[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/gi;return n.test(i)}const w={eq:we,eq2:Ve,peq2:Ge,ok:Ye,fail:Ze,self:Se,not:Xe,and:Qe,invoke:Je,resetUniqueId:$e,uniqueId:et,rect2bnd:tt,invertObject:p,namespaceToCamel:P,debounce:X,isValidUrl:G};function ee(i){return i[0]}function U(i){return i[i.length-1]}function _(i){return i.slice(0,i.length-1)}function j(i){return i.slice(1)}function Q(i,n){for(var e=0,t=i.length;e<t;e++){var o=i[e];if(n(o))return o}}function ie(i,n){for(var e=0,t=i.length;e<t;e++)if(!n(i[e]))return!1;return!0}function Ce(i,n){if(i&&i.length&&n){if(i.indexOf)return i.indexOf(n)!==-1;if(i.contains)return i.contains(n)}return!1}function Le(i,n){return n=n||w.self,i.reduce(function(e,t){return e+n(t)},0)}function Xt(i){for(var n=[],e=i.length,t=-1;++t<e;)n[t]=i[t];return n}function Qt(i){return!i||!i.length}function Jt(i,n){if(!i.length)return[];var e=j(i);return e.reduce(function(t,o){var r=U(t);return n(U(r),o)?r[r.length]=o:t[t.length]=[o],t},[[ee(i)]])}function en(i){for(var n=[],e=0,t=i.length;e<t;e++)i[e]&&n.push(i[e]);return n}function tn(i){for(var n=[],e=0,t=i.length;e<t;e++)Ce(n,i[e])||n.push(i[e]);return n}function nn(i,n){if(i&&i.length&&n){var e=i.indexOf(n);return e===-1?null:i[e+1]}return null}function on(i,n){if(i&&i.length&&n){var e=i.indexOf(n);return e===-1?null:i[e-1]}return null}const m={head:ee,last:U,initial:_,tail:j,prev:on,next:nn,find:Q,contains:Ce,all:ie,sum:Le,from:Xt,isEmpty:Qt,clusterBy:Jt,compact:en,unique:tn};var nt=" ",rn="\uFEFF";function fe(i){return i&&u()(i).hasClass("note-editable")}function an(i){return i&&u()(i).hasClass("note-control-sizing")}function oe(i){return i=i.toUpperCase(),function(n){return n&&n.nodeName.toUpperCase()===i}}function he(i){return i&&i.nodeType===3}function sn(i){return i&&i.nodeType===1}function Ne(i){return i&&/^BR|^IMG|^HR|^IFRAME|^BUTTON|^INPUT|^AUDIO|^VIDEO|^EMBED/.test(i.nodeName.toUpperCase())}function xe(i){return fe(i)?!1:i&&/^DIV|^P|^LI|^H[1-7]/.test(i.nodeName.toUpperCase())}function ln(i){return i&&/^H[1-7]/.test(i.nodeName.toUpperCase())}var un=oe("PRE"),gt=oe("LI");function cn(i){return xe(i)&&!gt(i)}var it=oe("TABLE"),bt=oe("DATA");function De(i){return!rt(i)&&!yt(i)&&!dn(i)&&!xe(i)&&!it(i)&&!ot(i)&&!bt(i)}function yt(i){return i&&/^UL|^OL/.test(i.nodeName.toUpperCase())}var dn=oe("HR");function kt(i){return i&&/^TD|^TH/.test(i.nodeName.toUpperCase())}var ot=oe("BLOCKQUOTE");function rt(i){return kt(i)||ot(i)||fe(i)}var Ct=oe("A");function fn(i){return De(i)&&!!Be(i,xe)}function hn(i){return De(i)&&!Be(i,xe)}var vn=oe("BODY");function mn(i,n){return i.nextSibling===n||i.previousSibling===n}function pn(i,n){n=n||w.ok;var e=[];return i.previousSibling&&n(i.previousSibling)&&e.push(i.previousSibling),e.push(i),i.nextSibling&&n(i.nextSibling)&&e.push(i.nextSibling),e}var Fe=z.isMSIE&&z.browserVersion<11?" ":"<br>";function ce(i){return he(i)?i.nodeValue.length:i?i.childNodes.length:0}function gn(i){do if(i.firstElementChild===null||i.firstElementChild.innerHTML==="")break;while(i=i.firstElementChild);return Te(i)}function Te(i){var n=ce(i);return n===0||!he(i)&&n===1&&i.innerHTML===Fe?!0:!!(m.all(i.childNodes,he)&&i.innerHTML==="")}function wt(i){!Ne(i)&&!ce(i)&&(i.innerHTML=Fe)}function Be(i,n){for(;i;){if(n(i))return i;if(fe(i))break;i=i.parentNode}return null}function bn(i,n){for(i=i.parentNode;i&&ce(i)===1;){if(n(i))return i;if(fe(i))break;i=i.parentNode}return null}function be(i,n){n=n||w.fail;var e=[];return Be(i,function(t){return fe(t)||e.push(t),n(t)}),e}function yn(i,n){var e=be(i);return m.last(e.filter(n))}function kn(i,n){for(var e=be(i),t=n;t;t=t.parentNode)if(e.indexOf(t)>-1)return t;return null}function Cn(i,n){n=n||w.fail;for(var e=[];i&&!n(i);)e.push(i),i=i.previousSibling;return e}function St(i,n){n=n||w.fail;for(var e=[];i&&!n(i);)e.push(i),i=i.nextSibling;return e}function wn(i,n){var e=[];return n=n||w.ok,(function t(o){i!==o&&n(o)&&e.push(o);for(var r=0,a=o.childNodes.length;r<a;r++)t(o.childNodes[r])})(i),e}function Sn(i,n){var e=i.parentNode,t=u()("<"+n+">")[0];return e.insertBefore(t,i),t.appendChild(i),t}function at(i,n){var e=n.nextSibling,t=n.parentNode;return e?t.insertBefore(i,e):t.appendChild(i),i}function st(i,n){return u().each(n,function(e,t){i.appendChild(t)}),i}function He(i){return i.offset===0}function Ee(i){return i.offset===ce(i.node)}function xt(i){return He(i)||Ee(i)}function Tt(i,n){for(;i&&i!==n;){if(ye(i)!==0)return!1;i=i.parentNode}return!0}function Et(i,n){if(!n)return!1;for(;i&&i!==n;){if(ye(i)!==ce(i.parentNode)-1)return!1;i=i.parentNode}return!0}function xn(i,n){return He(i)&&Tt(i.node,n)}function Tn(i,n){return Ee(i)&&Et(i.node,n)}function ye(i){for(var n=0;i=i.previousSibling;)n+=1;return n}function Pe(i){return!!(i&&i.childNodes&&i.childNodes.length)}function Pt(i,n){var e,t;if(i.offset===0){if(fe(i.node))return null;e=i.node.parentNode,t=ye(i.node)}else Pe(i.node)?(e=i.node.childNodes[i.offset-1],t=ce(e)):(e=i.node,t=n?0:i.offset-1);return{node:e,offset:t}}function It(i,n){var e,t;if(ce(i.node)===i.offset){if(fe(i.node))return null;var o=At(i.node);o?(e=o,t=0):(e=i.node.parentNode,t=ye(i.node)+1)}else Pe(i.node)?(e=i.node.childNodes[i.offset],t=0):(e=i.node,t=n?ce(i.node):i.offset+1);return{node:e,offset:t}}function Rt(i,n){var e,t=0;if(ce(i.node)===i.offset){if(fe(i.node))return null;e=i.node.parentNode,t=ye(i.node)+1,fe(e)&&(e=i.node.nextSibling,t=0)}else Pe(i.node)?(e=i.node.childNodes[i.offset],t=0):(e=i.node,t=n?ce(i.node):i.offset+1);return{node:e,offset:t}}function At(i){if(i.nextSibling&&i.parent===i.nextSibling.parent)return he(i.nextSibling)?i.nextSibling:At(i.nextSibling)}function $t(i,n){return i.node===n.node&&i.offset===n.offset}function En(i){if(he(i.node)||!Pe(i.node)||Te(i.node))return!0;var n=i.node.childNodes[i.offset-1],e=i.node.childNodes[i.offset];return!!((!n||Ne(n))&&(!e||Ne(e))||it(e))}function Pn(i,n){for(;i;){if(n(i))return i;i=Pt(i)}return null}function In(i,n){for(;i;){if(n(i))return i;i=It(i)}return null}function Rn(i){if(!he(i.node))return!1;var n=i.node.nodeValue.charAt(i.offset-1);return n&&n!==" "&&n!==nt}function An(i){if(!he(i.node))return!1;var n=i.node.nodeValue.charAt(i.offset-1);return n===" "||n===nt}function $n(i,n,e,t){for(var o=i;o&&(e(o),!$t(o,n));){var r=t&&i.node!==o.node&&n.node!==o.node;o=Rt(o,r)}}function Ln(i,n){var e=be(n,w.eq(i));return e.map(ye).reverse()}function Nn(i,n){for(var e=i,t=0,o=n.length;t<o;t++)e.childNodes.length<=n[t]?e=e.childNodes[e.childNodes.length-1]:e=e.childNodes[n[t]];return e}function lt(i,n){var e=n&&n.isSkipPaddingBlankHTML,t=n&&n.isNotSplitEdgePoint,o=n&&n.isDiscardEmptySplits;if(o&&(e=!0),xt(i)&&(he(i.node)||t)){if(He(i))return i.node;if(Ee(i))return i.node.nextSibling}if(he(i.node))return i.node.splitText(i.offset);var r=i.node.childNodes[i.offset],a=at(i.node.cloneNode(!1),i.node);return st(a,St(r)),e||(wt(i.node),wt(a)),o&&(Te(i.node)&&Ie(i.node),Te(a))?(Ie(a),i.node.nextSibling):a}function Lt(i,n,e){var t=be(n.node,w.eq(i));if(t.length){if(t.length===1)return lt(n,e)}else return null;if(t.length>2){var o=t.slice(0,t.length-1),r=o.find(function(c){return c.nextSibling});if(r&&n.offset!=0&&Ee(n)){var a=r.nextSibling,s;a.nodeType==1?(s=a.childNodes[0],t=be(s,w.eq(i)),n={node:s,offset:0}):a.nodeType==3&&!a.data.match(/[\n\r]/g)&&(s=a,t=be(s,w.eq(i)),n={node:s,offset:0})}}return t.reduce(function(c,d){return c===n.node&&(c=lt(n,e)),lt({node:d,offset:c?ye(c):ce(d)},e)})}function Dn(i,n){var e=n?xe:rt,t=be(i.node,e),o=m.last(t)||i.node,r,a;e(o)?(r=t[t.length-2],a=o):(r=o,a=r.parentNode);var s=r&&Lt(r,i,{isSkipPaddingBlankHTML:n,isNotSplitEdgePoint:n});return!s&&a===i.node&&(s=i.node.childNodes[i.offset]),{rightNode:s,container:a}}function Nt(i){return document.createElement(i)}function Fn(i){return document.createTextNode(i)}function Ie(i,n){if(!(!i||!i.parentNode)){if(i.removeNode)return i.removeNode(n);var e=i.parentNode;if(!n){for(var t=[],o=0,r=i.childNodes.length;o<r;o++)t.push(i.childNodes[o]);for(var a=0,s=t.length;a<s;a++)e.insertBefore(t[a],i)}e.removeChild(i)}}function Bn(i,n){for(;i&&!(fe(i)||!n(i));){var e=i.parentNode;Ie(i),i=e}}function Hn(i,n){if(i.nodeName.toUpperCase()===n.toUpperCase())return i;var e=Nt(n);return i.style.cssText&&(e.style.cssText=i.style.cssText),st(e,m.from(i.childNodes)),at(e,i),Ie(i),e}var Dt=oe("TEXTAREA");function Ft(i,n){var e=Dt(i[0])?i.val():i.html();return n?e.replace(/[\n\r]/g,""):e}function On(i,n){var e=Ft(i);if(n){var t=/<(\/?)(\b(?!!)[^>\s]*)(.*?)(\s*\/?>)/g;e=e.replace(t,function(o,r,a){a=a.toUpperCase();var s=/^DIV|^TD|^TH|^P|^LI|^H[1-7]/.test(a)&&!!r,c=/^BLOCKQUOTE|^TABLE|^TBODY|^TR|^HR|^UL|^OL/.test(a);return o+(s||c?`
|
|
13
|
-
`:"")}),e=e.trim()}return e}function Mn(i){var n=u()(i),e=n.offset(),t=n.outerHeight(!0);return{left:e.left,top:e.top+t}}function zn(i,n){Object.keys(n).forEach(function(e){i.on(e,n[e])})}function _n(i,n){Object.keys(n).forEach(function(e){i.off(e,n[e])})}function Un(i){return i&&!he(i)&&m.contains(i.classList,"note-styletag")}const l={NBSP_CHAR:nt,ZERO_WIDTH_NBSP_CHAR:rn,blank:Fe,emptyPara:"<p>".concat(Fe,"</p>"),makePredByNodeName:oe,isEditable:fe,isControlSizing:an,isText:he,isElement:sn,isVoid:Ne,isPara:xe,isPurePara:cn,isHeading:ln,isInline:De,isBlock:w.not(De),isBodyInline:hn,isBody:vn,isParaInline:fn,isPre:un,isList:yt,isTable:it,isData:bt,isCell:kt,isBlockquote:ot,isBodyContainer:rt,isAnchor:Ct,isDiv:oe("DIV"),isLi:gt,isBR:oe("BR"),isSpan:oe("SPAN"),isB:oe("B"),isU:oe("U"),isS:oe("S"),isI:oe("I"),isImg:oe("IMG"),isTextarea:Dt,deepestChildIsEmpty:gn,isEmpty:Te,isEmptyAnchor:w.and(Ct,Te),isClosestSibling:mn,withClosestSiblings:pn,nodeLength:ce,isLeftEdgePoint:He,isRightEdgePoint:Ee,isEdgePoint:xt,isLeftEdgeOf:Tt,isRightEdgeOf:Et,isLeftEdgePointOf:xn,isRightEdgePointOf:Tn,prevPoint:Pt,nextPoint:It,nextPointWithEmptyNode:Rt,isSamePoint:$t,isVisiblePoint:En,prevPointUntil:Pn,nextPointUntil:In,isCharPoint:Rn,isSpacePoint:An,walkPoint:$n,ancestor:Be,singleChildAncestor:bn,listAncestor:be,lastAncestor:yn,listNext:St,listPrev:Cn,listDescendant:wn,commonAncestor:kn,wrap:Sn,insertAfter:at,appendChildNodes:st,position:ye,hasChildren:Pe,makeOffsetPath:Ln,fromOffsetPath:Nn,splitTree:Lt,splitPoint:Dn,create:Nt,createText:Fn,remove:Ie,removeWhile:Bn,replace:Hn,html:On,value:Ft,posFromPlaceholder:Mn,attachEvents:zn,detachEvents:_n,isCustomStyleTag:Un};function jn(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function Kn(i,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}function Wn(i,n,e){return n&&Kn(i.prototype,n),i}var qn=(function(){function i(n,e){jn(this,i),this.$note=n,this.memos={},this.modules={},this.layoutInfo={},this.options=u().extend(!0,{},e),u().summernote.ui=u().summernote.ui_template(this.options),this.ui=u().summernote.ui,this.initialize()}return Wn(i,[{key:"initialize",value:function(){return this.layoutInfo=this.ui.createLayout(this.$note),this._initialize(),this.$note.hide(),this}},{key:"destroy",value:function(){this._destroy(),this.$note.removeData("summernote"),this.ui.removeLayout(this.$note,this.layoutInfo)}},{key:"reset",value:function(){var e=this.isDisabled();this.code(l.emptyPara),this._destroy(),this._initialize(),e&&this.disable()}},{key:"_initialize",value:function(){var e=this;this.options.id=w.uniqueId(u().now()),this.options.container=this.options.container||this.layoutInfo.editor;var t=u().extend({},this.options.buttons);Object.keys(t).forEach(function(r){e.memo("button."+r,t[r])});var o=u().extend({},this.options.modules,u().summernote.plugins||{});Object.keys(o).forEach(function(r){e.module(r,o[r],!0)}),Object.keys(this.modules).forEach(function(r){e.initializeModule(r)})}},{key:"_destroy",value:function(){var e=this;Object.keys(this.modules).reverse().forEach(function(t){e.removeModule(t)}),Object.keys(this.memos).forEach(function(t){e.removeMemo(t)}),this.triggerEvent("destroy",this)}},{key:"code",value:function(e){var t=this.invoke("codeview.isActivated");if(e===void 0)return this.invoke("codeview.sync"),t?this.layoutInfo.codable.val():this.layoutInfo.editable.html();t?this.invoke("codeview.sync",e):this.layoutInfo.editable.html(e),this.$note.val(e),this.triggerEvent("change",e,this.layoutInfo.editable)}},{key:"isDisabled",value:function(){return this.layoutInfo.editable.attr("contenteditable")==="false"}},{key:"enable",value:function(){this.layoutInfo.editable.attr("contenteditable",!0),this.invoke("toolbar.activate",!0),this.triggerEvent("disable",!1),this.options.editing=!0}},{key:"disable",value:function(){this.invoke("codeview.isActivated")&&this.invoke("codeview.deactivate"),this.layoutInfo.editable.attr("contenteditable",!1),this.options.editing=!1,this.invoke("toolbar.deactivate",!0),this.triggerEvent("disable",!0)}},{key:"triggerEvent",value:function(){var e=m.head(arguments),t=m.tail(m.from(arguments)),o=this.options.callbacks[w.namespaceToCamel(e,"on")];o&&o.apply(this.$note[0],t),this.$note.trigger("summernote."+e,t)}},{key:"initializeModule",value:function(e){var t=this.modules[e];t.shouldInitialize=t.shouldInitialize||w.ok,t.shouldInitialize()&&(t.initialize&&t.initialize(),t.events&&l.attachEvents(this.$note,t.events))}},{key:"module",value:function(e,t,o){if(arguments.length===1)return this.modules[e];this.modules[e]=new t(this),o||this.initializeModule(e)}},{key:"removeModule",value:function(e){var t=this.modules[e];t.shouldInitialize()&&(t.events&&l.detachEvents(this.$note,t.events),t.destroy&&t.destroy()),delete this.modules[e]}},{key:"memo",value:function(e,t){if(arguments.length===1)return this.memos[e];this.memos[e]=t}},{key:"removeMemo",value:function(e){this.memos[e]&&this.memos[e].destroy&&this.memos[e].destroy(),delete this.memos[e]}},{key:"createInvokeHandlerAndUpdateState",value:function(e,t){var o=this;return function(r){o.createInvokeHandler(e,t)(r),o.invoke("buttons.updateCurrentStyle")}}},{key:"createInvokeHandler",value:function(e,t){var o=this;return function(r){r.preventDefault();var a=u()(r.target);o.invoke(e,t||a.closest("[data-value]").data("value"),a)}}},{key:"invoke",value:function(){var e=m.head(arguments),t=m.tail(m.from(arguments)),o=e.split("."),r=o.length>1,a=r&&m.head(o),s=r?m.last(o):m.head(o),c=this.modules[a||"editor"];if(!a&&this[s])return this[s].apply(this,t);if(c&&c[s]&&c.shouldInitialize())return c[s].apply(c,t)}}]),i})();function Oe(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Oe=function(e){return typeof e}:Oe=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oe(i)}u().fn.extend({summernote:function(){var n=Oe(m.head(arguments)),e=n==="string",t=n==="object",o=u().extend({},u().summernote.options,t?m.head(arguments):{});o.langInfo=u().extend(!0,{},u().summernote.lang["en-US"],u().summernote.lang[o.lang]),o.icons=u().extend(!0,{},u().summernote.options.icons,o.icons),o.tooltip=o.tooltip==="auto"?!z.isSupportTouch:o.tooltip,this.each(function(s,c){var d=u()(c);if(!d.data("summernote")){var f=new qn(d,o);d.data("summernote",f),d.data("summernote").triggerEvent("init",f.layoutInfo)}});var r=this.first();if(r.length){var a=r.data("summernote");if(e)return a.invoke.apply(a,m.from(arguments));o.focus&&a.invoke("editor.focus")}return this}});function Vn(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function Gn(i,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}function Yn(i,n,e){return n&&Gn(i.prototype,n),i}function Bt(i,n){var e=i.parentElement(),t,o=document.body.createTextRange(),r,a=m.from(e.childNodes);for(t=0;t<a.length;t++)if(!l.isText(a[t])){if(o.moveToElementText(a[t]),o.compareEndPoints("StartToStart",i)>=0)break;r=a[t]}if(t!==0&&l.isText(a[t-1])){var s=document.body.createTextRange(),c=null;s.moveToElementText(r||e),s.collapse(!r),c=r?r.nextSibling:e.firstChild;var d=i.duplicate();d.setEndPoint("StartToStart",s);for(var f=d.text.replace(/[\r\n]/g,"").length;f>c.nodeValue.length&&c.nextSibling;)f-=c.nodeValue.length,c=c.nextSibling;c.nodeValue,n&&c.nextSibling&&l.isText(c.nextSibling)&&f===c.nodeValue.length&&(f-=c.nodeValue.length,c=c.nextSibling),e=c,t=f}return{cont:e,offset:t}}function Ht(i){var n=function o(r,a){var s,c;if(l.isText(r)){var d=l.listPrev(r,w.not(l.isText)),f=m.last(d).previousSibling;s=f||r.parentNode,a+=m.sum(m.tail(d),l.nodeLength),c=!f}else{if(s=r.childNodes[a]||r,l.isText(s))return o(s,0);a=0,c=!1}return{node:s,collapseToStart:c,offset:a}},e=document.body.createTextRange(),t=n(i.node,i.offset);return e.moveToElementText(t.node),e.collapse(t.collapseToStart),e.moveStart("character",t.offset),e}var Re=(function(){function i(n,e,t,o){Vn(this,i),this.sc=n,this.so=e,this.ec=t,this.eo=o,this.isOnEditable=this.makeIsOn(l.isEditable),this.isOnList=this.makeIsOn(l.isList),this.isOnAnchor=this.makeIsOn(l.isAnchor),this.isOnCell=this.makeIsOn(l.isCell),this.isOnData=this.makeIsOn(l.isData)}return Yn(i,[{key:"nativeRange",value:function(){if(z.isW3CRangeSupport){var e=document.createRange();return e.setStart(this.sc,this.so),e.setEnd(this.ec,this.eo),e}else{var t=Ht({node:this.sc,offset:this.so});return t.setEndPoint("EndToEnd",Ht({node:this.ec,offset:this.eo})),t}}},{key:"getPoints",value:function(){return{sc:this.sc,so:this.so,ec:this.ec,eo:this.eo}}},{key:"getStartPoint",value:function(){return{node:this.sc,offset:this.so}}},{key:"getEndPoint",value:function(){return{node:this.ec,offset:this.eo}}},{key:"select",value:function(){var e=this.nativeRange();if(z.isW3CRangeSupport){var t=document.getSelection();t.rangeCount>0&&t.removeAllRanges(),t.addRange(e)}else e.select();return this}},{key:"scrollIntoView",value:function(e){var t=u()(e).height();return e.scrollTop+t<this.sc.offsetTop&&(e.scrollTop+=Math.abs(e.scrollTop+t-this.sc.offsetTop)),this}},{key:"normalize",value:function(){var e=function(a,s){if(!a||l.isVisiblePoint(a)&&(!l.isEdgePoint(a)||l.isRightEdgePoint(a)&&!s||l.isLeftEdgePoint(a)&&s||l.isRightEdgePoint(a)&&s&&l.isVoid(a.node.nextSibling)||l.isLeftEdgePoint(a)&&!s&&l.isVoid(a.node.previousSibling)||l.isBlock(a.node)&&l.isEmpty(a.node)))return a;var c=l.ancestor(a.node,l.isBlock),d=!1;if(!d){var f=l.prevPoint(a)||{node:null};d=(l.isLeftEdgePointOf(a,c)||l.isVoid(f.node))&&!s}var h=!1;if(!h){var g=l.nextPoint(a)||{node:null};h=(l.isRightEdgePointOf(a,c)||l.isVoid(g.node))&&s}if(d||h){if(l.isVisiblePoint(a))return a;s=!s}var b=s?l.nextPointUntil(l.nextPoint(a),l.isVisiblePoint):l.prevPointUntil(l.prevPoint(a),l.isVisiblePoint);return b||a},t=e(this.getEndPoint(),!1),o=this.isCollapsed()?t:e(this.getStartPoint(),!0);return new i(o.node,o.offset,t.node,t.offset)}},{key:"nodes",value:function(e,t){e=e||w.ok;var o=t&&t.includeAncestor,r=t&&t.fullyContains,a=this.getStartPoint(),s=this.getEndPoint(),c=[],d=[];return l.walkPoint(a,s,function(f){if(!l.isEditable(f.node)){var h;r?(l.isLeftEdgePoint(f)&&d.push(f.node),l.isRightEdgePoint(f)&&m.contains(d,f.node)&&(h=f.node)):o?h=l.ancestor(f.node,e):h=f.node,h&&e(h)&&c.push(h)}},!0),m.unique(c)}},{key:"commonAncestor",value:function(){return l.commonAncestor(this.sc,this.ec)}},{key:"expand",value:function(e){var t=l.ancestor(this.sc,e),o=l.ancestor(this.ec,e);if(!t&&!o)return new i(this.sc,this.so,this.ec,this.eo);var r=this.getPoints();return t&&(r.sc=t,r.so=0),o&&(r.ec=o,r.eo=l.nodeLength(o)),new i(r.sc,r.so,r.ec,r.eo)}},{key:"collapse",value:function(e){return e?new i(this.sc,this.so,this.sc,this.so):new i(this.ec,this.eo,this.ec,this.eo)}},{key:"splitText",value:function(){var e=this.sc===this.ec,t=this.getPoints();return l.isText(this.ec)&&!l.isEdgePoint(this.getEndPoint())&&this.ec.splitText(this.eo),l.isText(this.sc)&&!l.isEdgePoint(this.getStartPoint())&&(t.sc=this.sc.splitText(this.so),t.so=0,e&&(t.ec=t.sc,t.eo=this.eo-this.so)),new i(t.sc,t.so,t.ec,t.eo)}},{key:"deleteContents",value:function(){if(this.isCollapsed())return this;var e=this.splitText(),t=e.nodes(null,{fullyContains:!0}),o=l.prevPointUntil(e.getStartPoint(),function(a){return!m.contains(t,a.node)}),r=[];return u().each(t,function(a,s){var c=s.parentNode;o.node!==c&&l.nodeLength(c)===1&&r.push(c),l.remove(s,!1)}),u().each(r,function(a,s){l.remove(s,!1)}),new i(o.node,o.offset,o.node,o.offset).normalize()}},{key:"makeIsOn",value:function(e){return function(){var t=l.ancestor(this.sc,e);return!!t&&t===l.ancestor(this.ec,e)}}},{key:"isLeftEdgeOf",value:function(e){if(!l.isLeftEdgePoint(this.getStartPoint()))return!1;var t=l.ancestor(this.sc,e);return t&&l.isLeftEdgeOf(this.sc,t)}},{key:"isCollapsed",value:function(){return this.sc===this.ec&&this.so===this.eo}},{key:"wrapBodyInlineWithPara",value:function(){if(l.isBodyContainer(this.sc)&&l.isEmpty(this.sc))return this.sc.innerHTML=l.emptyPara,new i(this.sc.firstChild,0,this.sc.firstChild,0);var e=this.normalize();if(l.isParaInline(this.sc)||l.isPara(this.sc))return e;var t;if(l.isInline(e.sc)){var o=l.listAncestor(e.sc,w.not(l.isInline));t=m.last(o),l.isInline(t)||(t=o[o.length-2]||e.sc.childNodes[e.so])}else t=e.sc.childNodes[e.so>0?e.so-1:0];if(t){var r=l.listPrev(t,l.isParaInline).reverse();if(r=r.concat(l.listNext(t.nextSibling,l.isParaInline)),r.length){var a=l.wrap(m.head(r),"p");l.appendChildNodes(a,m.tail(r))}}return this.normalize()}},{key:"insertNode",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=this;(l.isText(e)||l.isInline(e))&&(o=this.wrapBodyInlineWithPara().deleteContents());var r=l.splitPoint(o.getStartPoint(),l.isInline(e));return r.rightNode?(r.rightNode.parentNode.insertBefore(e,r.rightNode),l.isEmpty(r.rightNode)&&(t||l.isPara(e))&&r.rightNode.parentNode.removeChild(r.rightNode)):r.container.appendChild(e),e}},{key:"pasteHTML",value:function(e){e=u().trim(e);var t=u()("<div></div>").html(e)[0],o=m.from(t.childNodes),r=this,a=!1;return r.so>=0&&(o=o.reverse(),a=!0),o=o.map(function(s){return r.insertNode(s,!l.isInline(s))}),a&&(o=o.reverse()),o}},{key:"toString",value:function(){var e=this.nativeRange();return z.isW3CRangeSupport?e.toString():e.text}},{key:"getWordRange",value:function(e){var t=this.getEndPoint();if(!l.isCharPoint(t))return this;var o=l.prevPointUntil(t,function(r){return!l.isCharPoint(r)});return e&&(t=l.nextPointUntil(t,function(r){return!l.isCharPoint(r)})),new i(o.node,o.offset,t.node,t.offset)}},{key:"getWordsRange",value:function(e){var t=this.getEndPoint(),o=function(s){return!l.isCharPoint(s)&&!l.isSpacePoint(s)};if(o(t))return this;var r=l.prevPointUntil(t,o);return e&&(t=l.nextPointUntil(t,o)),new i(r.node,r.offset,t.node,t.offset)}},{key:"getWordsMatchRange",value:function(e){var t=this.getEndPoint(),o=l.prevPointUntil(t,function(c){if(!l.isCharPoint(c)&&!l.isSpacePoint(c))return!0;var d=new i(c.node,c.offset,t.node,t.offset),f=e.exec(d.toString());return f&&f.index===0}),r=new i(o.node,o.offset,t.node,t.offset),a=r.toString(),s=e.exec(a);return s&&s[0].length===a.length?r:null}},{key:"bookmark",value:function(e){return{s:{path:l.makeOffsetPath(e,this.sc),offset:this.so},e:{path:l.makeOffsetPath(e,this.ec),offset:this.eo}}}},{key:"paraBookmark",value:function(e){return{s:{path:m.tail(l.makeOffsetPath(m.head(e),this.sc)),offset:this.so},e:{path:m.tail(l.makeOffsetPath(m.last(e),this.ec)),offset:this.eo}}}},{key:"getClientRects",value:function(){var e=this.nativeRange();return e.getClientRects()}}]),i})();const q={create:function(n,e,t,o){if(arguments.length===4)return new Re(n,e,t,o);if(arguments.length===2)return t=n,o=e,new Re(n,e,t,o);var r=this.createFromSelection();if(!r&&arguments.length===1){var a=arguments[0];return l.isEditable(a)&&(a=a.lastChild),this.createFromBodyElement(a,l.emptyPara===arguments[0].innerHTML)}return r},createFromBodyElement:function(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=this.createFromNode(n);return t.collapse(e)},createFromSelection:function(){var n,e,t,o;if(z.isW3CRangeSupport){var r=document.getSelection();if(!r||r.rangeCount===0)return null;if(l.isBody(r.anchorNode))return null;var a=r.getRangeAt(0);n=a.startContainer,e=a.startOffset,t=a.endContainer,o=a.endOffset}else{var s=document.selection.createRange(),c=s.duplicate();c.collapse(!1);var d=s;d.collapse(!0);var f=Bt(d,!0),h=Bt(c,!1);l.isText(f.node)&&l.isLeftEdgePoint(f)&&l.isTextNode(h.node)&&l.isRightEdgePoint(h)&&h.node.nextSibling===f.node&&(f=h),n=f.cont,e=f.offset,t=h.cont,o=h.offset}return new Re(n,e,t,o)},createFromNode:function(n){var e=n,t=0,o=n,r=l.nodeLength(o);return l.isVoid(e)&&(t=l.listPrev(e).length-1,e=e.parentNode),l.isBR(o)?(r=l.listPrev(o).length-1,o=o.parentNode):l.isVoid(o)&&(r=l.listPrev(o).length,o=o.parentNode),this.create(e,t,o,r)},createFromNodeBefore:function(n){return this.createFromNode(n).collapse(!0)},createFromNodeAfter:function(n){return this.createFromNode(n).collapse()},createFromBookmark:function(n,e){var t=l.fromOffsetPath(n,e.s.path),o=e.s.offset,r=l.fromOffsetPath(n,e.e.path),a=e.e.offset;return new Re(t,o,r,a)},createFromParaBookmark:function(n,e){var t=n.s.offset,o=n.e.offset,r=l.fromOffsetPath(m.head(e),n.s.path),a=l.fromOffsetPath(m.last(e),n.e.path);return new Re(r,t,a,o)}};var re={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,SPACE:32,DELETE:46,LEFT:37,UP:38,RIGHT:39,DOWN:40,NUM0:48,NUM1:49,NUM2:50,NUM3:51,NUM4:52,NUM5:53,NUM6:54,NUM7:55,NUM8:56,B:66,E:69,I:73,J:74,K:75,L:76,R:82,S:83,U:85,V:86,Y:89,Z:90,SLASH:191,LEFTBRACKET:219,BACKSLASH:220,RIGHTBRACKET:221,HOME:36,END:35,PAGEUP:33,PAGEDOWN:34};const Y={isEdit:function(n){return m.contains([re.BACKSPACE,re.TAB,re.ENTER,re.SPACE,re.DELETE],n)},isRemove:function(n){return m.contains([re.BACKSPACE,re.DELETE],n)},isMove:function(n){return m.contains([re.LEFT,re.UP,re.RIGHT,re.DOWN],n)},isNavigation:function(n){return m.contains([re.HOME,re.END,re.PAGEUP,re.PAGEDOWN],n)},nameFromCode:w.invertObject(re),code:re};function Zn(i){return u().Deferred(function(n){u().extend(new FileReader,{onload:function(t){var o=t.target.result;n.resolve(o)},onerror:function(t){n.reject(t)}}).readAsDataURL(i)}).promise()}function Xn(i){return u().Deferred(function(n){var e=u()("<img>");e.one("load",function(){e.off("error abort"),n.resolve(e)}).one("error abort",function(){e.off("load").detach(),n.reject(e)}).css({display:"none"}).appendTo(document.body).attr("src",i)}).promise()}function Qn(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function Jn(i,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}function ei(i,n,e){return n&&Jn(i.prototype,n),i}var ti=(function(){function i(n){Qn(this,i),this.stack=[],this.stackOffset=-1,this.context=n,this.$editable=n.layoutInfo.editable,this.editable=this.$editable[0]}return ei(i,[{key:"makeSnapshot",value:function(){var e=q.create(this.editable),t={s:{path:[],offset:0},e:{path:[],offset:0}};return{contents:this.$editable.html(),bookmark:e&&e.isOnEditable()?e.bookmark(this.editable):t}}},{key:"applySnapshot",value:function(e){e.contents!==null&&this.$editable.html(e.contents),e.bookmark!==null&&q.createFromBookmark(this.editable,e.bookmark).select()}},{key:"rewind",value:function(){this.$editable.html()!==this.stack[this.stackOffset].contents&&this.recordUndo(),this.stackOffset=0,this.applySnapshot(this.stack[this.stackOffset])}},{key:"commit",value:function(){this.stack=[],this.stackOffset=-1,this.recordUndo()}},{key:"reset",value:function(){this.stack=[],this.stackOffset=-1,this.$editable.html(""),this.recordUndo()}},{key:"undo",value:function(){this.$editable.html()!==this.stack[this.stackOffset].contents&&this.recordUndo(),this.stackOffset>0&&(this.stackOffset--,this.applySnapshot(this.stack[this.stackOffset]))}},{key:"redo",value:function(){this.stack.length-1>this.stackOffset&&(this.stackOffset++,this.applySnapshot(this.stack[this.stackOffset]))}},{key:"recordUndo",value:function(){this.stackOffset++,this.stack.length>this.stackOffset&&(this.stack=this.stack.slice(0,this.stackOffset)),this.stack.push(this.makeSnapshot()),this.stack.length>this.context.options.historyLimit&&(this.stack.shift(),this.stackOffset-=1)}}]),i})();function ni(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function ii(i,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}function oi(i,n,e){return n&&ii(i.prototype,n),i}var ri=(function(){function i(){ni(this,i)}return oi(i,[{key:"jQueryCSS",value:function(e,t){var o={};return u().each(t,function(r,a){o[a]=e.css(a)}),o}},{key:"fromNode",value:function(e){var t=["font-family","font-size","text-align","list-style-type","line-height"],o=this.jQueryCSS(e,t)||{},r=e[0].style.fontSize||o["font-size"];return o["font-size"]=parseInt(r,10),o["font-size-unit"]=r.match(/[a-z%]+$/),o}},{key:"stylePara",value:function(e,t){u().each(e.nodes(l.isPara,{includeAncestor:!0}),function(o,r){u()(r).css(t)})}},{key:"styleNodes",value:function(e,t){e=e.splitText();var o=t&&t.nodeName||"SPAN",r=!!(t&&t.expandClosestSibling),a=!!(t&&t.onlyPartialContains);if(e.isCollapsed())return[e.insertNode(l.create(o))];var s=l.makePredByNodeName(o),c=e.nodes(l.isText,{fullyContains:!0}).map(function(f){return l.singleChildAncestor(f,s)||l.wrap(f,o)});if(r){if(a){var d=e.nodes();s=w.and(s,function(f){return m.contains(d,f)})}return c.map(function(f){var h=l.withClosestSiblings(f,s),g=m.head(h),b=m.tail(h);return u().each(b,function(I,F){l.appendChildNodes(g,F.childNodes),l.remove(F)}),m.head(h)})}else return c}},{key:"current",value:function(e){var t=u()(l.isElement(e.sc)?e.sc:e.sc.parentNode),o=this.fromNode(t);try{o=u().extend(o,{"font-bold":document.queryCommandState("bold")?"bold":"normal","font-italic":document.queryCommandState("italic")?"italic":"normal","font-underline":document.queryCommandState("underline")?"underline":"normal","font-subscript":document.queryCommandState("subscript")?"subscript":"normal","font-superscript":document.queryCommandState("superscript")?"superscript":"normal","font-strikethrough":document.queryCommandState("strikethrough")?"strikethrough":"normal","font-family":document.queryCommandValue("fontname")||o["font-family"]})}catch{}if(!e.isOnList())o["list-style"]="none";else{var r=["circle","disc","disc-leading-zero","square"],a=r.indexOf(o["list-style-type"])>-1;o["list-style"]=a?"unordered":"ordered"}var s=l.ancestor(e.sc,l.isPara);if(s&&s.style["line-height"])o["line-height"]=s.style.lineHeight;else{var c=parseInt(o["line-height"],10)/parseInt(o["font-size"],10);o["line-height"]=c.toFixed(1)}return o.anchor=e.isOnAnchor()&&l.ancestor(e.sc,l.isAnchor),o.ancestors=l.listAncestor(e.sc,l.isEditable),o.range=e,o}}]),i})();function ai(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function si(i,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}function li(i,n,e){return n&&si(i.prototype,n),i}var Ot=(function(){function i(){ai(this,i)}return li(i,[{key:"insertOrderedList",value:function(e){this.toggleList("OL",e)}},{key:"insertUnorderedList",value:function(e){this.toggleList("UL",e)}},{key:"indent",value:function(e){var t=this,o=q.create(e).wrapBodyInlineWithPara(),r=o.nodes(l.isPara,{includeAncestor:!0}),a=m.clusterBy(r,w.peq2("parentNode"));u().each(a,function(s,c){var d=m.head(c);if(l.isLi(d)){var f=t.findList(d.previousElementSibling);f?c.map(function(h){return f.appendChild(h)}):(t.wrapList(c,d.parentNode.nodeName),c.map(function(h){return h.parentNode}).filter(function(h,g,b){return g===b.indexOf(h)}).map(function(h){return t.appendToPrevious(h)}))}else u().each(c,function(h,g){u()(g).css("marginLeft",function(b,I){return(parseInt(I,10)||0)+25})})}),o.select()}},{key:"outdent",value:function(e){var t=this,o=q.create(e).wrapBodyInlineWithPara(),r=o.nodes(l.isPara,{includeAncestor:!0}),a=m.clusterBy(r,w.peq2("parentNode"));u().each(a,function(s,c){var d=m.head(c);l.isLi(d)?t.releaseList([c]):u().each(c,function(f,h){u()(h).css("marginLeft",function(g,b){return b=parseInt(b,10)||0,b>25?b-25:""})})}),o.select()}},{key:"toggleList",value:function(e,t){var o=this,r=q.create(t).wrapBodyInlineWithPara(),a=r.nodes(l.isPara,{includeAncestor:!0}),s=r.paraBookmark(a),c=m.clusterBy(a,w.peq2("parentNode"));if(m.find(a,l.isPurePara)){var d=[];u().each(c,function(h,g){d=d.concat(o.wrapList(g,e))}),a=d}else{var f=r.nodes(l.isList,{includeAncestor:!0}).filter(function(h){return!u().nodeName(h,e)});f.length?u().each(f,function(h,g){l.replace(g,e)}):a=this.releaseList(c,!0)}q.createFromParaBookmark(s,a).select()}},{key:"wrapList",value:function(e,t){var o=m.head(e),r=m.last(e),a=l.isList(o.previousElementSibling)&&o.previousElementSibling,s=l.isList(r.nextElementSibling)&&r.nextElementSibling,c=a||l.insertAfter(l.create(t||"UL"),r);return e=e.map(function(d){return l.isPurePara(d)?l.replace(d,"LI"):d}),l.appendChildNodes(c,e),s&&(l.appendChildNodes(c,m.from(s.childNodes)),l.remove(s)),e}},{key:"releaseList",value:function(e,t){var o=this,r=[];return u().each(e,function(a,s){var c=m.head(s),d=m.last(s),f=t?l.lastAncestor(c,l.isList):c.parentNode,h=f.parentNode;if(f.parentNode.nodeName==="LI")s.map(function(F){var K=o.findNextSiblings(F);h.nextElementSibling?h.parentNode.insertBefore(F,h.nextElementSibling):h.parentNode.appendChild(F),K.length&&(o.wrapList(K,f.nodeName),F.appendChild(K[0].parentNode))}),f.children.length===0&&h.removeChild(f),(h.childNodes.length===0||h.childNodes.length===1&&h.childNodes[0].textContent.trim()==="")&&h.parentNode.removeChild(h);else{var g=f.childNodes.length>1?l.splitTree(f,{node:d.parentNode,offset:l.position(d)+1},{isSkipPaddingBlankHTML:!0}):null,b=l.splitTree(f,{node:c.parentNode,offset:l.position(c)},{isSkipPaddingBlankHTML:!0});s=t?l.listDescendant(b,l.isLi):m.from(b.childNodes).filter(l.isLi),(t||!l.isList(f.parentNode))&&(s=s.map(function(F){return l.replace(F,"P")})),u().each(m.from(s).reverse(),function(F,K){l.insertAfter(K,f)});var I=m.compact([f,b,g]);u().each(I,function(F,K){var se=[K].concat(l.listDescendant(K,l.isList));u().each(se.reverse(),function(C,N){l.nodeLength(N)||l.remove(N,!0)})})}r=r.concat(s)}),r}},{key:"appendToPrevious",value:function(e){return e.previousElementSibling?l.appendChildNodes(e.previousElementSibling,[e]):this.wrapList([e],"LI")}},{key:"findList",value:function(e){return e?e.children&&m.find(e.children,function(t){return["OL","UL"].indexOf(t.nodeName)>-1}):null}},{key:"findNextSiblings",value:function(e){for(var t=[];e.nextSibling;)t.push(e.nextSibling),e=e.nextSibling;return t}}]),i})();function ui(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function ci(i,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}function di(i,n,e){return n&&ci(i.prototype,n),i}var fi=(function(){function i(n){ui(this,i),this.bullet=new Ot,this.options=n.options}return di(i,[{key:"insertTab",value:function(e,t){var o=l.createText(new Array(t+1).join(l.NBSP_CHAR));e=e.deleteContents(),e.insertNode(o,!0),e=q.create(o,t),e.select()}},{key:"insertParagraph",value:function(e,t){t=t||q.create(e),t=t.deleteContents(),t=t.wrapBodyInlineWithPara();var o=l.ancestor(t.sc,l.isPara),r;if(o)if(l.isLi(o)&&(l.isEmpty(o)||l.deepestChildIsEmpty(o))){this.bullet.toggleList(o.parentNode.nodeName);return}else{var a=null;if(this.options.blockquoteBreakingLevel===1?a=l.ancestor(o,l.isBlockquote):this.options.blockquoteBreakingLevel===2&&(a=l.lastAncestor(o,l.isBlockquote)),a){r=u()(l.emptyPara)[0],l.isRightEdgePoint(t.getStartPoint())&&l.isBR(t.sc.nextSibling)&&u()(t.sc.nextSibling).remove();var s=l.splitTree(a,t.getStartPoint(),{isDiscardEmptySplits:!0});s?s.parentNode.insertBefore(r,s):l.insertAfter(r,a)}else{r=l.splitTree(o,t.getStartPoint());var c=l.listDescendant(o,l.isEmptyAnchor);c=c.concat(l.listDescendant(r,l.isEmptyAnchor)),u().each(c,function(f,h){l.remove(h)}),(l.isHeading(r)||l.isPre(r)||l.isCustomStyleTag(r))&&l.isEmpty(r)&&(r=l.replace(r,"p"))}}else{var d=t.sc.childNodes[t.so];r=u()(l.emptyPara)[0],d?t.sc.insertBefore(r,d):t.sc.appendChild(r)}q.create(r,0).normalize().select().scrollIntoView(e)}}]),i})();function hi(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function vi(i,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}function mi(i,n,e){return n&&vi(i.prototype,n),i}var J=function i(n,e,t,o){var r={colPos:0,rowPos:0},a=[],s=[];function c(){!n||!n.tagName||n.tagName.toLowerCase()!=="td"&&n.tagName.toLowerCase()!=="th"||(r.colPos=n.cellIndex,!(!n.parentElement||!n.parentElement.tagName||n.parentElement.tagName.toLowerCase()!=="tr")&&(r.rowPos=n.parentElement.rowIndex))}function d(C,N,W,te,ve,pe,ge){var de={baseRow:W,baseCell:te,isRowSpan:ve,isColSpan:pe,isVirtual:ge};a[C]||(a[C]=[]),a[C][N]=de}function f(C,N,W,te){return{baseCell:C.baseCell,action:N,virtualTable:{rowIndex:W,cellIndex:te}}}function h(C,N){if(!a[C]||!a[C][N])return N;for(var W=N;a[C][W];)if(W++,!a[C][W])return W}function g(C,N){var W=h(C.rowIndex,N.cellIndex),te=N.colSpan>1,ve=N.rowSpan>1,pe=C.rowIndex===r.rowPos&&N.cellIndex===r.colPos;d(C.rowIndex,W,C,N,ve,te,!1);var ge=N.attributes.rowSpan?parseInt(N.attributes.rowSpan.value,10):0;if(ge>1)for(var de=1;de<ge;de++){var ke=C.rowIndex+de;b(ke,W,N,pe),d(ke,W,C,N,!0,te,!0)}var je=N.attributes.colSpan?parseInt(N.attributes.colSpan.value,10):0;if(je>1)for(var Ae=1;Ae<je;Ae++){var Ke=h(C.rowIndex,W+Ae);b(C.rowIndex,Ke,N,pe),d(C.rowIndex,Ke,C,N,ve,!0,!0)}}function b(C,N,W,te){C===r.rowPos&&r.colPos>=W.cellIndex&&W.cellIndex<=N&&!te&&r.colPos++}function I(){for(var C=o.rows,N=0;N<C.length;N++)for(var W=C[N].cells,te=0;te<W.length;te++)g(C[N],W[te])}function F(C){switch(e){case i.where.Column:if(C.isColSpan)return i.resultAction.SubtractSpanCount;break;case i.where.Row:if(!C.isVirtual&&C.isRowSpan)return i.resultAction.AddCell;if(C.isRowSpan)return i.resultAction.SubtractSpanCount;break}return i.resultAction.RemoveCell}function K(C){switch(e){case i.where.Column:if(C.isColSpan)return i.resultAction.SumSpanCount;if(C.isRowSpan&&C.isVirtual)return i.resultAction.Ignore;break;case i.where.Row:if(C.isRowSpan)return i.resultAction.SumSpanCount;if(C.isColSpan&&C.isVirtual)return i.resultAction.Ignore;break}return i.resultAction.AddCell}function se(){c(),I()}this.getActionList=function(){for(var C=e===i.where.Row?r.rowPos:-1,N=e===i.where.Column?r.colPos:-1,W=0,te=!0;te;){var ve=C>=0?C:W,pe=N>=0?N:W,ge=a[ve];if(!ge)return te=!1,s;var de=ge[pe];if(!de)return te=!1,s;var ke=i.resultAction.Ignore;switch(t){case i.requestAction.Add:ke=K(de);break;case i.requestAction.Delete:ke=F(de);break}s.push(f(de,ke,ve,pe)),W++}return s},se()};J.where={Row:0,Column:1},J.requestAction={Add:0,Delete:1},J.resultAction={Ignore:0,SubtractSpanCount:1,RemoveCell:2,AddCell:3,SumSpanCount:4};var pi=(function(){function i(){hi(this,i)}return mi(i,[{key:"tab",value:function(e,t){var o=l.ancestor(e.commonAncestor(),l.isCell),r=l.ancestor(o,l.isTable),a=l.listDescendant(r,l.isCell),s=m[t?"prev":"next"](a,o);s&&q.create(s,0).select()}},{key:"addRow",value:function(e,t){for(var o=l.ancestor(e.commonAncestor(),l.isCell),r=u()(o).closest("tr"),a=this.recoverAttributes(r),s=u()("<tr"+a+"></tr>"),c=new J(o,J.where.Row,J.requestAction.Add,u()(r).closest("table")[0]),d=c.getActionList(),f=0;f<d.length;f++){var h=d[f],g=this.recoverAttributes(h.baseCell);switch(h.action){case J.resultAction.AddCell:s.append("<td"+g+">"+l.blank+"</td>");break;case J.resultAction.SumSpanCount:{if(t==="top"){var b=h.baseCell.parent,I=(b?h.baseCell.closest("tr").rowIndex:0)<=r[0].rowIndex;if(I){var F=u()("<div></div>").append(u()("<td"+g+">"+l.blank+"</td>").removeAttr("rowspan")).html();s.append(F);break}}var K=parseInt(h.baseCell.rowSpan,10);K++,h.baseCell.setAttribute("rowSpan",K)}break}}if(t==="top")r.before(s);else{var se=o.rowSpan>1;if(se){var C=r[0].rowIndex+(o.rowSpan-2);u()(u()(r).parent().find("tr")[C]).after(u()(s));return}r.after(s)}}},{key:"addCol",value:function(e,t){var o=l.ancestor(e.commonAncestor(),l.isCell),r=u()(o).closest("tr"),a=u()(r).siblings();a.push(r);for(var s=new J(o,J.where.Column,J.requestAction.Add,u()(r).closest("table")[0]),c=s.getActionList(),d=0;d<c.length;d++){var f=c[d],h=this.recoverAttributes(f.baseCell);switch(f.action){case J.resultAction.AddCell:t==="right"?u()(f.baseCell).after("<td"+h+">"+l.blank+"</td>"):u()(f.baseCell).before("<td"+h+">"+l.blank+"</td>");break;case J.resultAction.SumSpanCount:if(t==="right"){var g=parseInt(f.baseCell.colSpan,10);g++,f.baseCell.setAttribute("colSpan",g)}else u()(f.baseCell).before("<td"+h+">"+l.blank+"</td>");break}}}},{key:"recoverAttributes",value:function(e){var t="";if(!e)return t;for(var o=e.attributes||[],r=0;r<o.length;r++)o[r].name.toLowerCase()!=="id"&&o[r].specified&&(t+=" "+o[r].name+"='"+o[r].value+"'");return t}},{key:"deleteRow",value:function(e){for(var t=l.ancestor(e.commonAncestor(),l.isCell),o=u()(t).closest("tr"),r=o.children("td, th").index(u()(t)),a=o[0].rowIndex,s=new J(t,J.where.Row,J.requestAction.Delete,u()(o).closest("table")[0]),c=s.getActionList(),d=0;d<c.length;d++)if(c[d]){var f=c[d].baseCell,h=c[d].virtualTable,g=f.rowSpan&&f.rowSpan>1,b=g?parseInt(f.rowSpan,10):0;switch(c[d].action){case J.resultAction.Ignore:continue;case J.resultAction.AddCell:{var I=o.next("tr")[0];if(!I)continue;var F=o[0].cells[r];g&&(b>2?(b--,I.insertBefore(F,I.cells[r]),I.cells[r].setAttribute("rowSpan",b),I.cells[r].innerHTML=""):b===2&&(I.insertBefore(F,I.cells[r]),I.cells[r].removeAttribute("rowSpan"),I.cells[r].innerHTML=""))}continue;case J.resultAction.SubtractSpanCount:g&&(b>2?(b--,f.setAttribute("rowSpan",b),h.rowIndex!==a&&f.cellIndex===r&&(f.innerHTML="")):b===2&&(f.removeAttribute("rowSpan"),h.rowIndex!==a&&f.cellIndex===r&&(f.innerHTML="")));continue;case J.resultAction.RemoveCell:continue}}o.remove()}},{key:"deleteCol",value:function(e){for(var t=l.ancestor(e.commonAncestor(),l.isCell),o=u()(t).closest("tr"),r=o.children("td, th").index(u()(t)),a=new J(t,J.where.Column,J.requestAction.Delete,u()(o).closest("table")[0]),s=a.getActionList(),c=0;c<s.length;c++)if(s[c])switch(s[c].action){case J.resultAction.Ignore:continue;case J.resultAction.SubtractSpanCount:{var d=s[c].baseCell,f=d.colSpan&&d.colSpan>1;if(f){var h=d.colSpan?parseInt(d.colSpan,10):0;h>2?(h--,d.setAttribute("colSpan",h),d.cellIndex===r&&(d.innerHTML="")):h===2&&(d.removeAttribute("colSpan"),d.cellIndex===r&&(d.innerHTML=""))}}continue;case J.resultAction.RemoveCell:l.remove(s[c].baseCell,!0);continue}}},{key:"createTable",value:function(e,t,o){for(var r=[],a,s=0;s<e;s++)r.push("<td>"+l.blank+"</td>");a=r.join("");for(var c=[],d,f=0;f<t;f++)c.push("<tr>"+a+"</tr>");d=c.join("");var h=u()("<table>"+d+"</table>");return o&&o.tableClassName&&h.addClass(o.tableClassName),h[0]}},{key:"deleteTable",value:function(e){var t=l.ancestor(e.commonAncestor(),l.isCell);u()(t).closest("table").remove()}}]),i})();function gi(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function bi(i,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}function yi(i,n,e){return n&&bi(i.prototype,n),i}var ki="bogus",Ci=(function(){function i(n){var e=this;gi(this,i),this.context=n,this.$note=n.layoutInfo.note,this.$editor=n.layoutInfo.editor,this.$editable=n.layoutInfo.editable,this.options=n.options,this.lang=this.options.langInfo,this.editable=this.$editable[0],this.lastRange=null,this.snapshot=null,this.style=new ri,this.table=new pi,this.typing=new fi(n),this.bullet=new Ot,this.history=new ti(n),this.context.memo("help.escape",this.lang.help.escape),this.context.memo("help.undo",this.lang.help.undo),this.context.memo("help.redo",this.lang.help.redo),this.context.memo("help.tab",this.lang.help.tab),this.context.memo("help.untab",this.lang.help.untab),this.context.memo("help.insertParagraph",this.lang.help.insertParagraph),this.context.memo("help.insertOrderedList",this.lang.help.insertOrderedList),this.context.memo("help.insertUnorderedList",this.lang.help.insertUnorderedList),this.context.memo("help.indent",this.lang.help.indent),this.context.memo("help.outdent",this.lang.help.outdent),this.context.memo("help.formatPara",this.lang.help.formatPara),this.context.memo("help.insertHorizontalRule",this.lang.help.insertHorizontalRule),this.context.memo("help.fontName",this.lang.help.fontName);for(var t=["bold","italic","underline","strikethrough","superscript","subscript","justifyLeft","justifyCenter","justifyRight","justifyFull","formatBlock","removeFormat","backColor"],o=0,r=t.length;o<r;o++)this[t[o]]=(function(s){return function(c){e.beforeCommand(),document.execCommand(s,!1,c),e.afterCommand(!0)}})(t[o]),this.context.memo("help."+t[o],this.lang.help[t[o]]);this.fontName=this.wrapCommand(function(s){return e.fontStyling("font-family",z.validFontName(s))}),this.fontSize=this.wrapCommand(function(s){var c=e.currentStyle()["font-size-unit"];return e.fontStyling("font-size",s+c)}),this.fontSizeUnit=this.wrapCommand(function(s){var c=e.currentStyle()["font-size"];return e.fontStyling("font-size",c+s)});for(var a=1;a<=6;a++)this["formatH"+a]=(function(s){return function(){e.formatBlock("H"+s)}})(a),this.context.memo("help.formatH"+a,this.lang.help["formatH"+a]);this.insertParagraph=this.wrapCommand(function(){e.typing.insertParagraph(e.editable)}),this.insertOrderedList=this.wrapCommand(function(){e.bullet.insertOrderedList(e.editable)}),this.insertUnorderedList=this.wrapCommand(function(){e.bullet.insertUnorderedList(e.editable)}),this.indent=this.wrapCommand(function(){e.bullet.indent(e.editable)}),this.outdent=this.wrapCommand(function(){e.bullet.outdent(e.editable)}),this.insertNode=this.wrapCommand(function(s){if(!e.isLimited(u()(s).text().length)){var c=e.getLastRange();c.insertNode(s),e.setLastRange(q.createFromNodeAfter(s).select())}}),this.insertText=this.wrapCommand(function(s){if(!e.isLimited(s.length)){var c=e.getLastRange(),d=c.insertNode(l.createText(s));e.setLastRange(q.create(d,l.nodeLength(d)).select())}}),this.pasteHTML=this.wrapCommand(function(s){if(!e.isLimited(s.length)){s=e.context.invoke("codeview.purify",s);var c=e.getLastRange().pasteHTML(s);e.setLastRange(q.createFromNodeAfter(m.last(c)).select())}}),this.formatBlock=this.wrapCommand(function(s,c){var d=e.options.callbacks.onApplyCustomStyle;d?d.call(e,c,e.context,e.onFormatBlock):e.onFormatBlock(s,c)}),this.insertHorizontalRule=this.wrapCommand(function(){var s=e.getLastRange().insertNode(l.create("HR"));s.nextSibling&&e.setLastRange(q.create(s.nextSibling,0).normalize().select())}),this.lineHeight=this.wrapCommand(function(s){e.style.stylePara(e.getLastRange(),{lineHeight:s})}),this.createLink=this.wrapCommand(function(s){var c=[],d=s.url,f=s.text,h=s.isNewWindow,g=s.checkProtocol,b=e.options.linkAddNoReferrer,I=e.options.linkAddNoOpener,F=s.range||e.getLastRange(),K=f.length-F.toString().length;if(!(K>0&&e.isLimited(K))){var se=F.toString()!==f;typeof d=="string"&&(d=d.trim()),e.options.onCreateLink?d=e.options.onCreateLink(d):g&&(d=/^([A-Za-z][A-Za-z0-9+-.]*\:|#|\/)/.test(d)?d:e.options.defaultProtocol+d);var C=[];if(se){F=F.deleteContents();var N=F.insertNode(u()("<A></A>").text(f)[0]);C.push(N)}else C=e.style.styleNodes(F,{nodeName:"A",expandClosestSibling:!0,onlyPartialContains:!0});u().each(C,function(W,te){u()(te).attr("href",d),h?(u()(te).attr("target","_blank"),b&&c.push("noreferrer"),I&&c.push("noopener"),c.length&&u()(te).attr("rel",c.join(" "))):u()(te).removeAttr("target")}),e.setLastRange(e.createRangeFromList(C).select())}}),this.color=this.wrapCommand(function(s){var c=s.foreColor,d=s.backColor;c&&document.execCommand("foreColor",!1,c),d&&document.execCommand("backColor",!1,d)}),this.foreColor=this.wrapCommand(function(s){document.execCommand("foreColor",!1,s)}),this.insertTable=this.wrapCommand(function(s){var c=s.split("x"),d=e.getLastRange().deleteContents();d.insertNode(e.table.createTable(c[0],c[1],e.options))}),this.removeMedia=this.wrapCommand(function(){var s=u()(e.restoreTarget()).parent();s.closest("figure").length?s.closest("figure").remove():s=u()(e.restoreTarget()).detach(),e.setLastRange(q.createFromSelection(s).select()),e.context.triggerEvent("media.delete",s,e.$editable)}),this.floatMe=this.wrapCommand(function(s){var c=u()(e.restoreTarget());c.toggleClass("note-float-left",s==="left"),c.toggleClass("note-float-right",s==="right"),c.css("float",s==="none"?"":s)}),this.resize=this.wrapCommand(function(s){var c=u()(e.restoreTarget());s=parseFloat(s),s===0?c.css("width",""):c.css({width:s*100+"%",height:""})})}return yi(i,[{key:"initialize",value:function(){var e=this;this.$editable.on("keydown",function(t){if(t.keyCode===Y.code.ENTER&&e.context.triggerEvent("enter",t),e.context.triggerEvent("keydown",t),e.snapshot=e.history.makeSnapshot(),e.hasKeyShortCut=!1,t.isDefaultPrevented()||(e.options.shortcuts?e.hasKeyShortCut=e.handleKeyMap(t):e.preventDefaultEditableShortCuts(t)),e.isLimited(1,t)){var o=e.getLastRange();if(o.eo-o.so===0)return!1}e.setLastRange(),e.options.recordEveryKeystroke&&e.hasKeyShortCut===!1&&e.history.recordUndo()}).on("keyup",function(t){e.setLastRange(),e.context.triggerEvent("keyup",t)}).on("focus",function(t){e.setLastRange(),e.context.triggerEvent("focus",t)}).on("blur",function(t){e.context.triggerEvent("blur",t)}).on("mousedown",function(t){e.context.triggerEvent("mousedown",t)}).on("mouseup",function(t){e.setLastRange(),e.history.recordUndo(),e.context.triggerEvent("mouseup",t)}).on("scroll",function(t){e.context.triggerEvent("scroll",t)}).on("paste",function(t){e.setLastRange(),e.context.triggerEvent("paste",t)}).on("copy",function(t){e.context.triggerEvent("copy",t)}).on("input",function(){e.isLimited(0)&&e.snapshot&&e.history.applySnapshot(e.snapshot)}),this.$editable.attr("spellcheck",this.options.spellCheck),this.$editable.attr("autocorrect",this.options.spellCheck),this.options.disableGrammar&&this.$editable.attr("data-gramm",!1),this.$editable.html(l.html(this.$note)||l.emptyPara),this.$editable.on(z.inputEventName,w.debounce(function(){e.context.triggerEvent("change",e.$editable.html(),e.$editable)},10)),this.$editable.on("focusin",function(t){e.context.triggerEvent("focusin",t)}).on("focusout",function(t){e.context.triggerEvent("focusout",t)}),this.options.airMode?this.options.overrideContextMenu&&this.$editor.on("contextmenu",function(t){return e.context.triggerEvent("contextmenu",t),!1}):(this.options.width&&this.$editor.outerWidth(this.options.width),this.options.height&&this.$editable.outerHeight(this.options.height),this.options.maxHeight&&this.$editable.css("max-height",this.options.maxHeight),this.options.minHeight&&this.$editable.css("min-height",this.options.minHeight)),this.history.recordUndo(),this.setLastRange()}},{key:"destroy",value:function(){this.$editable.off()}},{key:"handleKeyMap",value:function(e){var t=this.options.keyMap[z.isMac?"mac":"pc"],o=[];e.metaKey&&o.push("CMD"),e.ctrlKey&&!e.altKey&&o.push("CTRL"),e.shiftKey&&o.push("SHIFT");var r=Y.nameFromCode[e.keyCode];r&&o.push(r);var a=t[o.join("+")];if(r==="TAB"&&!this.options.tabDisable)this.afterCommand();else if(a){if(this.context.invoke(a)!==!1)return e.preventDefault(),r!="ENTER"&&this.context.invoke(a),!0}else Y.isEdit(e.keyCode)&&(Y.isRemove(e.keyCode)&&this.context.invoke("removed"),this.afterCommand());return!1}},{key:"preventDefaultEditableShortCuts",value:function(e){(e.ctrlKey||e.metaKey)&&m.contains([66,73,85],e.keyCode)&&e.preventDefault()}},{key:"isLimited",value:function(e,t){return e=e||0,typeof t<"u"&&(Y.isMove(t.keyCode)||Y.isNavigation(t.keyCode)||t.ctrlKey||t.metaKey||m.contains([Y.code.BACKSPACE,Y.code.DELETE],t.keyCode))?!1:this.options.maxTextLength>0&&this.$editable.text().length+e>this.options.maxTextLength}},{key:"createRange",value:function(){return this.focus(),this.setLastRange(),this.getLastRange()}},{key:"createRangeFromList",value:function(e){var t=q.createFromNodeBefore(m.head(e)),o=t.getStartPoint(),r=q.createFromNodeAfter(m.last(e)),a=r.getEndPoint();return q.create(o.node,o.offset,a.node,a.offset)}},{key:"setLastRange",value:function(e){e?this.lastRange=e:(this.lastRange=q.create(this.editable),u()(this.lastRange.sc).closest(".note-editable").length===0&&(this.lastRange=q.createFromBodyElement(this.editable)))}},{key:"getLastRange",value:function(){return this.lastRange||this.setLastRange(),this.lastRange}},{key:"saveRange",value:function(e){e&&this.getLastRange().collapse().select()}},{key:"restoreRange",value:function(){this.lastRange&&(this.lastRange.select(),this.focus())}},{key:"saveTarget",value:function(e){this.$editable.data("target",e)}},{key:"clearTarget",value:function(){this.$editable.removeData("target")}},{key:"restoreTarget",value:function(){return this.$editable.data("target")}},{key:"currentStyle",value:function(){var e=q.create();return e&&(e=e.normalize()),e?this.style.current(e):this.style.fromNode(this.$editable)}},{key:"styleFromNode",value:function(e){return this.style.fromNode(e)}},{key:"undo",value:function(){this.context.triggerEvent("before.command",this.$editable.html()),this.history.undo(),this.context.triggerEvent("change",this.$editable.html(),this.$editable)}},{key:"commit",value:function(){this.context.triggerEvent("before.command",this.$editable.html()),this.history.commit(),this.context.triggerEvent("change",this.$editable.html(),this.$editable)}},{key:"redo",value:function(){this.context.triggerEvent("before.command",this.$editable.html()),this.history.redo(),this.context.triggerEvent("change",this.$editable.html(),this.$editable)}},{key:"beforeCommand",value:function(){this.context.triggerEvent("before.command",this.$editable.html()),document.execCommand("styleWithCSS",!1,this.options.styleWithCSS),this.focus()}},{key:"afterCommand",value:function(e){this.normalizeContent(),this.history.recordUndo(),e||this.context.triggerEvent("change",this.$editable.html(),this.$editable)}},{key:"tab",value:function(){var e=this.getLastRange();if(e.isCollapsed()&&e.isOnCell())this.table.tab(e);else{if(this.options.tabSize===0)return!1;this.isLimited(this.options.tabSize)||(this.beforeCommand(),this.typing.insertTab(e,this.options.tabSize),this.afterCommand())}}},{key:"untab",value:function(){var e=this.getLastRange();if(e.isCollapsed()&&e.isOnCell())this.table.tab(e,!0);else if(this.options.tabSize===0)return!1}},{key:"wrapCommand",value:function(e){return function(){this.beforeCommand(),e.apply(this,arguments),this.afterCommand()}}},{key:"removed",value:function(e,t,o){e=q.create(),e.isCollapsed()&&e.isOnCell()&&(t=e.ec,(o=t.tagName)&&t.childElementCount===1&&t.childNodes[0].tagName==="BR"&&(o==="P"?t.remove():["TH","TD"].indexOf(o)>=0&&t.firstChild.remove()))}},{key:"insertImage",value:function(e,t){var o=this;return Xn(e).then(function(r){o.beforeCommand(),typeof t=="function"?t(r):(typeof t=="string"&&r.attr("data-filename",t),r.css("width",Math.min(o.$editable.width(),r.width()))),r.show(),o.getLastRange().insertNode(r[0]),o.setLastRange(q.createFromNodeAfter(r[0]).select()),o.afterCommand()}).fail(function(r){o.context.triggerEvent("image.upload.error",r)})}},{key:"insertImagesAsDataURL",value:function(e){var t=this;u().each(e,function(o,r){var a=r.name;t.options.maximumImageFileSize&&t.options.maximumImageFileSize<r.size?t.context.triggerEvent("image.upload.error",t.lang.image.maximumFileSizeError):Zn(r).then(function(s){return t.insertImage(s,a)}).fail(function(){t.context.triggerEvent("image.upload.error")})})}},{key:"insertImagesOrCallback",value:function(e){var t=this.options.callbacks;t.onImageUpload?this.context.triggerEvent("image.upload",e):this.insertImagesAsDataURL(e)}},{key:"getSelectedText",value:function(){var e=this.getLastRange();return e.isOnAnchor()&&(e=q.createFromNode(l.ancestor(e.sc,l.isAnchor))),e.toString()}},{key:"onFormatBlock",value:function(e,t){if(document.execCommand("FormatBlock",!1,z.isMSIE?"<"+e+">":e),t&&t.length&&(t[0].tagName.toUpperCase()!==e.toUpperCase()&&(t=t.find(e)),t&&t.length)){var o=this.createRange(),r=u()([o.sc,o.ec]).closest(e);r.removeClass();var a=t[0].className||"";a&&r.addClass(a)}}},{key:"formatPara",value:function(){this.formatBlock("P")}},{key:"fontStyling",value:function(e,t){var o=this.getLastRange();if(o!==""){var r=this.style.styleNodes(o);if(this.$editor.find(".note-status-output").html(""),u()(r).css(e,t),o.isCollapsed()){var a=m.head(r);a&&!l.nodeLength(a)&&(a.innerHTML=l.ZERO_WIDTH_NBSP_CHAR,q.createFromNode(a.firstChild).select(),this.setLastRange(),this.$editable.data(ki,a))}else o.select()}else{var s=u().now();this.$editor.find(".note-status-output").html('<div id="note-status-output-'+s+'" class="alert alert-info">'+this.lang.output.noSelection+"</div>"),setTimeout(function(){u()("#note-status-output-"+s).remove()},5e3)}}},{key:"unlink",value:function(){var e=this.getLastRange();if(e.isOnAnchor()){var t=l.ancestor(e.sc,l.isAnchor);e=q.createFromNode(t),e.select(),this.setLastRange(),this.beforeCommand(),document.execCommand("unlink"),this.afterCommand()}}},{key:"getLinkInfo",value:function(){var e=this.getLastRange().expand(l.isAnchor),t=u()(m.head(e.nodes(l.isAnchor))),o={range:e,text:e.toString(),url:t.length?t.attr("href"):""};return t.length&&(o.isNewWindow=t.attr("target")==="_blank"),o}},{key:"addRow",value:function(e){var t=this.getLastRange(this.$editable);t.isCollapsed()&&t.isOnCell()&&(this.beforeCommand(),this.table.addRow(t,e),this.afterCommand())}},{key:"addCol",value:function(e){var t=this.getLastRange(this.$editable);t.isCollapsed()&&t.isOnCell()&&(this.beforeCommand(),this.table.addCol(t,e),this.afterCommand())}},{key:"deleteRow",value:function(){var e=this.getLastRange(this.$editable);e.isCollapsed()&&e.isOnCell()&&(this.beforeCommand(),this.table.deleteRow(e),this.afterCommand())}},{key:"deleteCol",value:function(){var e=this.getLastRange(this.$editable);e.isCollapsed()&&e.isOnCell()&&(this.beforeCommand(),this.table.deleteCol(e),this.afterCommand())}},{key:"deleteTable",value:function(){var e=this.getLastRange(this.$editable);e.isCollapsed()&&e.isOnCell()&&(this.beforeCommand(),this.table.deleteTable(e),this.afterCommand())}},{key:"resizeTo",value:function(e,t,o){var r;if(o){var a=e.y/e.x,s=t.data("ratio");r={width:s>a?e.x:e.y/s,height:s>a?e.x*s:e.y}}else r={width:e.x,height:e.y};t.css(r)}},{key:"hasFocus",value:function(){return this.$editable.is(":focus")}},{key:"focus",value:function(){this.hasFocus()||this.$editable.focus()}},{key:"isEmpty",value:function(){return l.isEmpty(this.$editable[0])||l.emptyPara===this.$editable.html()}},{key:"empty",value:function(){this.context.invoke("code",l.emptyPara)}},{key:"normalizeContent",value:function(){this.$editable[0].normalize()}}]),i})();function wi(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function Si(i,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}function xi(i,n,e){return n&&Si(i.prototype,n),i}var Ti=(function(){function i(n){wi(this,i),this.context=n,this.options=n.options,this.$editable=n.layoutInfo.editable}return xi(i,[{key:"initialize",value:function(){this.$editable.on("paste",this.pasteByEvent.bind(this))}},{key:"pasteByEvent",value:function(e){var t=this;if(!this.context.isDisabled()){var o=e.originalEvent.clipboardData;if(o&&o.items&&o.items.length){var r=o.files,a=o.getData("Text");r.length>0&&this.options.allowClipboardImagePasting&&(this.context.invoke("editor.insertImagesOrCallback",r),e.preventDefault()),a.length>0&&this.context.invoke("editor.isLimited",a.length)&&e.preventDefault()}else if(window.clipboardData){var s=window.clipboardData.getData("text");this.context.invoke("editor.isLimited",s.length)&&e.preventDefault()}setTimeout(function(){t.context.invoke("editor.afterCommand")},10)}}}]),i})();function Ei(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function Pi(i,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}function Ii(i,n,e){return n&&Pi(i.prototype,n),i}var Ri=(function(){function i(n){Ei(this,i),this.context=n,this.$eventListener=u()(document),this.$editor=n.layoutInfo.editor,this.$editable=n.layoutInfo.editable,this.options=n.options,this.lang=this.options.langInfo,this.documentEventHandlers={},this.$dropzone=u()(['<div class="note-dropzone">','<div class="note-dropzone-message"></div>',"</div>"].join("")).prependTo(this.$editor)}return Ii(i,[{key:"initialize",value:function(){this.options.disableDragAndDrop?(this.documentEventHandlers.onDrop=function(e){e.preventDefault()},this.$eventListener=this.$dropzone,this.$eventListener.on("drop",this.documentEventHandlers.onDrop)):this.attachDragAndDropEvent()}},{key:"attachDragAndDropEvent",value:function(){var e=this,t=u()(),o=this.$dropzone.find(".note-dropzone-message");this.documentEventHandlers.onDragenter=function(r){var a=e.context.invoke("codeview.isActivated"),s=e.$editor.width()>0&&e.$editor.height()>0;!a&&!t.length&&s&&(e.$editor.addClass("dragover"),e.$dropzone.width(e.$editor.width()),e.$dropzone.height(e.$editor.height()),o.text(e.lang.image.dragImageHere)),t=t.add(r.target)},this.documentEventHandlers.onDragleave=function(r){t=t.not(r.target),(!t.length||r.target.nodeName==="BODY")&&(t=u()(),e.$editor.removeClass("dragover"))},this.documentEventHandlers.onDrop=function(){t=u()(),e.$editor.removeClass("dragover")},this.$eventListener.on("dragenter",this.documentEventHandlers.onDragenter).on("dragleave",this.documentEventHandlers.onDragleave).on("drop",this.documentEventHandlers.onDrop),this.$dropzone.on("dragenter",function(){e.$dropzone.addClass("hover"),o.text(e.lang.image.dropImage)}).on("dragleave",function(){e.$dropzone.removeClass("hover"),o.text(e.lang.image.dragImageHere)}),this.$dropzone.on("drop",function(r){var a=r.originalEvent.dataTransfer;r.preventDefault(),a&&a.files&&a.files.length?(e.$editable.focus(),e.context.invoke("editor.insertImagesOrCallback",a.files)):u().each(a.types,function(s,c){if(!(c.toLowerCase().indexOf("_moz_")>-1)){var d=a.getData(c);c.toLowerCase().indexOf("text")>-1?e.context.invoke("editor.pasteHTML",d):u()(d).each(function(f,h){e.context.invoke("editor.insertNode",h)})}})}).on("dragover",!1)}},{key:"destroy",value:function(){var e=this;Object.keys(this.documentEventHandlers).forEach(function(t){e.$eventListener.off(t.slice(2).toLowerCase(),e.documentEventHandlers[t])}),this.documentEventHandlers={}}}]),i})();function Ai(i,n){var e=typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(!e){if(Array.isArray(i)||(e=$i(i))||n){e&&(i=e);var t=0,o=function(){};return{s:o,n:function(){return t>=i.length?{done:!0}:{done:!1,value:i[t++]}},e:function(d){throw d},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
14
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var r=!0,a=!1,s;return{s:function(){e=e.call(i)},n:function(){var d=e.next();return r=d.done,d},e:function(d){a=!0,s=d},f:function(){try{!r&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function $i(i,n){if(i){if(typeof i=="string")return Mt(i,n);var e=Object.prototype.toString.call(i).slice(8,-1);if(e==="Object"&&i.constructor&&(e=i.constructor.name),e==="Map"||e==="Set")return Array.from(i);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return Mt(i,n)}}function Mt(i,n){(n==null||n>i.length)&&(n=i.length);for(var e=0,t=new Array(n);e<n;e++)t[e]=i[e];return t}function Li(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function Ni(i,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}function Di(i,n,e){return n&&Ni(i.prototype,n),i}var Fi=(function(){function i(n){Li(this,i),this.context=n,this.$editor=n.layoutInfo.editor,this.$editable=n.layoutInfo.editable,this.$codable=n.layoutInfo.codable,this.options=n.options,this.CodeMirrorConstructor=window.CodeMirror,this.options.codemirror.CodeMirrorConstructor&&(this.CodeMirrorConstructor=this.options.codemirror.CodeMirrorConstructor)}return Di(i,[{key:"sync",value:function(e){var t=this.isActivated(),o=this.CodeMirrorConstructor;t&&(e?o?this.$codable.data("cmEditor").getDoc().setValue(e):this.$codable.val(e):o&&this.$codable.data("cmEditor").save())}},{key:"initialize",value:function(){var e=this;this.$codable.on("keyup",function(t){t.keyCode===Y.code.ESCAPE&&e.deactivate()})}},{key:"isActivated",value:function(){return this.$editor.hasClass("codeview")}},{key:"toggle",value:function(){this.isActivated()?this.deactivate():this.activate(),this.context.triggerEvent("codeview.toggled")}},{key:"purify",value:function(e){if(this.options.codeviewFilter&&(e=e.replace(this.options.codeviewFilterRegex,""),this.options.codeviewIframeFilter)){var t=this.options.codeviewIframeWhitelistSrc.concat(this.options.codeviewIframeWhitelistSrcBase);e=e.replace(/(<iframe.*?>.*?(?:<\/iframe>)?)/gi,function(o){if(/<.+src(?==?('|"|\s)?)[\s\S]+src(?=('|"|\s)?)[^>]*?>/i.test(o))return"";var r=Ai(t),a;try{for(r.s();!(a=r.n()).done;){var s=a.value;if(new RegExp('src="(https?:)?//'+s.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")+'/(.+)"').test(o))return o}}catch(c){r.e(c)}finally{r.f()}return""})}return e}},{key:"activate",value:function(){var e=this,t=this.CodeMirrorConstructor;if(this.$codable.val(l.html(this.$editable,this.options.prettifyHtml)),this.$codable.height(this.$editable.height()),this.context.invoke("toolbar.updateCodeview",!0),this.context.invoke("airPopover.updateCodeview",!0),this.$editor.addClass("codeview"),this.$codable.focus(),t){var o=t.fromTextArea(this.$codable[0],this.options.codemirror);if(this.options.codemirror.tern){var r=new t.TernServer(this.options.codemirror.tern);o.ternServer=r,o.on("cursorActivity",function(a){r.updateArgHints(a)})}o.on("blur",function(a){e.context.triggerEvent("blur.codeview",o.getValue(),a)}),o.on("change",function(){e.context.triggerEvent("change.codeview",o.getValue(),o)}),o.setSize(null,this.$editable.outerHeight()),this.$codable.data("cmEditor",o)}else this.$codable.on("blur",function(a){e.context.triggerEvent("blur.codeview",e.$codable.val(),a)}),this.$codable.on("input",function(){e.context.triggerEvent("change.codeview",e.$codable.val(),e.$codable)})}},{key:"deactivate",value:function(){var e=this.CodeMirrorConstructor;if(e){var t=this.$codable.data("cmEditor");this.$codable.val(t.getValue()),t.toTextArea()}var o=this.purify(l.value(this.$codable,this.options.prettifyHtml)||l.emptyPara),r=this.$editable.html()!==o;this.$editable.html(o),this.$editable.height(this.options.height?this.$codable.height():"auto"),this.$editor.removeClass("codeview"),r&&this.context.triggerEvent("change",this.$editable.html(),this.$editable),this.$editable.focus(),this.context.invoke("toolbar.updateCodeview",!1),this.context.invoke("airPopover.updateCodeview",!1)}},{key:"destroy",value:function(){this.isActivated()&&this.deactivate()}}]),i})();function Bi(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function Hi(i,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}function Oi(i,n,e){return n&&Hi(i.prototype,n),i}var zt=24,Mi=(function(){function i(n){Bi(this,i),this.$document=u()(document),this.$statusbar=n.layoutInfo.statusbar,this.$editable=n.layoutInfo.editable,this.$codable=n.layoutInfo.codable,this.options=n.options}return Oi(i,[{key:"initialize",value:function(){var e=this;if(this.options.airMode||this.options.disableResizeEditor){this.destroy();return}this.$statusbar.on("mousedown touchstart",function(t){t.preventDefault(),t.stopPropagation();var o=e.$editable.offset().top-e.$document.scrollTop(),r=e.$codable.offset().top-e.$document.scrollTop(),a=function(c){var d=c.type=="mousemove"?c:c.originalEvent.touches[0],f=d.clientY-(o+zt),h=d.clientY-(r+zt);f=e.options.minheight>0?Math.max(f,e.options.minheight):f,f=e.options.maxHeight>0?Math.min(f,e.options.maxHeight):f,h=e.options.minheight>0?Math.max(h,e.options.minheight):h,h=e.options.maxHeight>0?Math.min(h,e.options.maxHeight):h,e.$editable.height(f),e.$codable.height(h)};e.$document.on("mousemove touchmove",a).one("mouseup touchend",function(){e.$document.off("mousemove touchmove",a)})})}},{key:"destroy",value:function(){this.$statusbar.off(),this.$statusbar.addClass("locked")}}]),i})();function zi(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function _i(i,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}function Ui(i,n,e){return n&&_i(i.prototype,n),i}var ji=(function(){function i(n){var e=this;zi(this,i),this.context=n,this.$editor=n.layoutInfo.editor,this.$toolbar=n.layoutInfo.toolbar,this.$editable=n.layoutInfo.editable,this.$codable=n.layoutInfo.codable,this.$window=u()(window),this.$scrollbar=u()("html, body"),this.scrollbarClassName="note-fullscreen-body",this.onResize=function(){e.resizeTo({h:e.$window.height()-e.$toolbar.outerHeight()})}}return Ui(i,[{key:"resizeTo",value:function(e){this.$editable.css("height",e.h),this.$codable.css("height",e.h),this.$codable.data("cmeditor")&&this.$codable.data("cmeditor").setsize(null,e.h)}},{key:"toggle",value:function(){this.$editor.toggleClass("fullscreen");var e=this.isFullscreen();this.$scrollbar.toggleClass(this.scrollbarClassName,e),e?(this.$editable.data("orgHeight",this.$editable.css("height")),this.$editable.data("orgMaxHeight",this.$editable.css("maxHeight")),this.$editable.css("maxHeight",""),this.$window.on("resize",this.onResize).trigger("resize")):(this.$window.off("resize",this.onResize),this.resizeTo({h:this.$editable.data("orgHeight")}),this.$editable.css("maxHeight",this.$editable.css("orgMaxHeight"))),this.context.invoke("toolbar.updateFullscreen",e)}},{key:"isFullscreen",value:function(){return this.$editor.hasClass("fullscreen")}},{key:"destroy",value:function(){this.$scrollbar.removeClass(this.scrollbarClassName)}}]),i})();function Ki(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function Wi(i,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}function qi(i,n,e){return n&&Wi(i.prototype,n),i}var Vi=(function(){function i(n){var e=this;Ki(this,i),this.context=n,this.$document=u()(document),this.$editingArea=n.layoutInfo.editingArea,this.options=n.options,this.lang=this.options.langInfo,this.events={"summernote.mousedown":function(o,r){e.update(r.target,r)&&r.preventDefault()},"summernote.keyup summernote.scroll summernote.change summernote.dialog.shown":function(){e.update()},"summernote.disable summernote.blur":function(){e.hide()},"summernote.codeview.toggled":function(){e.update()}}}return qi(i,[{key:"initialize",value:function(){var e=this;this.$handle=u()(['<div class="note-handle">','<div class="note-control-selection">','<div class="note-control-selection-bg"></div>','<div class="note-control-holder note-control-nw"></div>','<div class="note-control-holder note-control-ne"></div>','<div class="note-control-holder note-control-sw"></div>','<div class="',this.options.disableResizeImage?"note-control-holder":"note-control-sizing",' note-control-se"></div>',this.options.disableResizeImage?"":'<div class="note-control-selection-info"></div>',"</div>","</div>"].join("")).prependTo(this.$editingArea),this.$handle.on("mousedown",function(t){if(l.isControlSizing(t.target)){t.preventDefault(),t.stopPropagation();var o=e.$handle.find(".note-control-selection").data("target"),r=o.offset(),a=e.$document.scrollTop(),s=function(d){e.context.invoke("editor.resizeTo",{x:d.clientX-r.left,y:d.clientY-(r.top-a)},o,!d.shiftKey),e.update(o[0],d)};e.$document.on("mousemove",s).one("mouseup",function(c){c.preventDefault(),e.$document.off("mousemove",s),e.context.invoke("editor.afterCommand")}),o.data("ratio")||o.data("ratio",o.height()/o.width())}}),this.$handle.on("wheel",function(t){t.preventDefault(),e.update()})}},{key:"destroy",value:function(){this.$handle.remove()}},{key:"update",value:function(e,t){if(this.context.isDisabled())return!1;var o=l.isImg(e),r=this.$handle.find(".note-control-selection");if(this.context.invoke("imagePopover.update",e,t),o){var a=u()(e),s=this.$editingArea[0].getBoundingClientRect(),c=e.getBoundingClientRect();r.css({display:"block",left:c.left-s.left,top:c.top-s.top,width:c.width,height:c.height}).data("target",a);var d=new Image;d.src=a.attr("src");var f=c.width+"x"+c.height+" ("+this.lang.image.original+": "+d.width+"x"+d.height+")";r.find(".note-control-selection-info").text(f),this.context.invoke("editor.saveTarget",e)}else this.hide();return o}},{key:"hide",value:function(){this.context.invoke("editor.clearTarget"),this.$handle.children().hide()}}]),i})();function Gi(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function Yi(i,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}function Zi(i,n,e){return n&&Yi(i.prototype,n),i}var Xi="http://",Qi=/^([A-Za-z][A-Za-z0-9+-.]*\:[\/]{2}|tel:|mailto:[A-Z0-9._%+-]+@|xmpp:[A-Z0-9._%+-]+@)?(www\.)?(.+)$/i,Ji=(function(){function i(n){var e=this;Gi(this,i),this.context=n,this.options=n.options,this.$editable=n.layoutInfo.editable,this.events={"summernote.keyup":function(o,r){r.isDefaultPrevented()||e.handleKeyup(r)},"summernote.keydown":function(o,r){e.handleKeydown(r)}}}return Zi(i,[{key:"initialize",value:function(){this.lastWordRange=null}},{key:"destroy",value:function(){this.lastWordRange=null}},{key:"replace",value:function(){if(this.lastWordRange){var e=this.lastWordRange.toString(),t=e.match(Qi);if(t&&(t[1]||t[2])){var o=t[1]?e:Xi+e,r=this.options.showDomainOnlyForAutolink?e.replace(/^(?:https?:\/\/)?(?:tel?:?)?(?:mailto?:?)?(?:xmpp?:?)?(?:www\.)?/i,"").split("/")[0]:e,a=u()("<a></a>").html(r).attr("href",o)[0];this.context.options.linkTargetBlank&&u()(a).attr("target","_blank"),this.lastWordRange.insertNode(a),this.lastWordRange=null,this.context.invoke("editor.focus"),this.context.triggerEvent("change",this.$editable.html(),this.$editable)}}}},{key:"handleKeydown",value:function(e){if(m.contains([Y.code.ENTER,Y.code.SPACE],e.keyCode)){var t=this.context.invoke("editor.createRange").getWordRange();this.lastWordRange=t}}},{key:"handleKeyup",value:function(e){(Y.code.SPACE===e.keyCode||Y.code.ENTER===e.keyCode&&!e.shiftKey)&&this.replace()}}]),i})();function eo(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function to(i,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}function no(i,n,e){return n&&to(i.prototype,n),i}var io=(function(){function i(n){var e=this;eo(this,i),this.$note=n.layoutInfo.note,this.events={"summernote.change":function(){e.$note.val(n.invoke("code"))}}}return no(i,[{key:"shouldInitialize",value:function(){return l.isTextarea(this.$note[0])}}]),i})();function oo(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function ro(i,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}function ao(i,n,e){return n&&ro(i.prototype,n),i}var so=(function(){function i(n){var e=this;oo(this,i),this.context=n,this.options=n.options.replace||{},this.keys=[Y.code.ENTER,Y.code.SPACE,Y.code.PERIOD,Y.code.COMMA,Y.code.SEMICOLON,Y.code.SLASH],this.previousKeydownCode=null,this.events={"summernote.keyup":function(o,r){r.isDefaultPrevented()||e.handleKeyup(r)},"summernote.keydown":function(o,r){e.handleKeydown(r)}}}return ao(i,[{key:"shouldInitialize",value:function(){return!!this.options.match}},{key:"initialize",value:function(){this.lastWord=null}},{key:"destroy",value:function(){this.lastWord=null}},{key:"replace",value:function(){if(this.lastWord){var e=this,t=this.lastWord.toString();this.options.match(t,function(o){if(o){var r="";if(typeof o=="string"?r=l.createText(o):o instanceof x?r=o[0]:o instanceof Node&&(r=o),!r)return;e.lastWord.insertNode(r),e.lastWord=null,e.context.invoke("editor.focus")}})}}},{key:"handleKeydown",value:function(e){if(this.previousKeydownCode&&m.contains(this.keys,this.previousKeydownCode)){this.previousKeydownCode=e.keyCode;return}if(m.contains(this.keys,e.keyCode)){var t=this.context.invoke("editor.createRange").getWordRange();this.lastWord=t}this.previousKeydownCode=e.keyCode}},{key:"handleKeyup",value:function(e){m.contains(this.keys,e.keyCode)&&this.replace()}}]),i})();function lo(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function uo(i,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}function co(i,n,e){return n&&uo(i.prototype,n),i}var fo=(function(){function i(n){var e=this;lo(this,i),this.context=n,this.$editingArea=n.layoutInfo.editingArea,this.options=n.options,this.options.inheritPlaceholder===!0&&(this.options.placeholder=this.context.$note.attr("placeholder")||this.options.placeholder),this.events={"summernote.init summernote.change":function(){e.update()},"summernote.codeview.toggled":function(){e.update()}}}return co(i,[{key:"shouldInitialize",value:function(){return!!this.options.placeholder}},{key:"initialize",value:function(){var e=this;this.$placeholder=u()('<div class="note-placeholder"></div>'),this.$placeholder.on("click",function(){e.context.invoke("focus")}).html(this.options.placeholder).prependTo(this.$editingArea),this.update()}},{key:"destroy",value:function(){this.$placeholder.remove()}},{key:"update",value:function(){var e=!this.context.invoke("codeview.isActivated")&&this.context.invoke("editor.isEmpty");this.$placeholder.toggle(e)}}]),i})();function ho(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function vo(i,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}function mo(i,n,e){return n&&vo(i.prototype,n),i}var po=(function(){function i(n){ho(this,i),this.ui=u().summernote.ui,this.context=n,this.$toolbar=n.layoutInfo.toolbar,this.options=n.options,this.lang=this.options.langInfo,this.invertedKeyMap=w.invertObject(this.options.keyMap[z.isMac?"mac":"pc"])}return mo(i,[{key:"representShortcut",value:function(e){var t=this.invertedKeyMap[e];return!this.options.shortcuts||!t?"":(z.isMac&&(t=t.replace("CMD","⌘").replace("SHIFT","⇧")),t=t.replace("BACKSLASH","\\").replace("SLASH","/").replace("LEFTBRACKET","[").replace("RIGHTBRACKET","]")," ("+t+")")}},{key:"button",value:function(e){return!this.options.tooltip&&e.tooltip&&delete e.tooltip,e.container=this.options.container,this.ui.button(e)}},{key:"initialize",value:function(){this.addToolbarButtons(),this.addImagePopoverButtons(),this.addLinkPopoverButtons(),this.addTablePopoverButtons(),this.fontInstalledMap={}}},{key:"destroy",value:function(){delete this.fontInstalledMap}},{key:"isFontInstalled",value:function(e){return Object.prototype.hasOwnProperty.call(this.fontInstalledMap,e)||(this.fontInstalledMap[e]=z.isFontInstalled(e)||m.contains(this.options.fontNamesIgnoreCheck,e)),this.fontInstalledMap[e]}},{key:"isFontDeservedToAdd",value:function(e){return e=e.toLowerCase(),e!==""&&this.isFontInstalled(e)&&z.genericFontFamilies.indexOf(e)===-1}},{key:"colorPalette",value:function(e,t,o,r){var a=this;return this.ui.buttonGroup({className:"note-color "+e,children:[this.button({className:"note-current-color-button",contents:this.ui.icon(this.options.icons.font+" note-recent-color"),tooltip:t,click:function(c){var d=u()(c.currentTarget);o&&r?a.context.invoke("editor.color",{backColor:d.attr("data-backColor"),foreColor:d.attr("data-foreColor")}):o?a.context.invoke("editor.color",{backColor:d.attr("data-backColor")}):r&&a.context.invoke("editor.color",{foreColor:d.attr("data-foreColor")})},callback:function(c){var d=c.find(".note-recent-color");o&&(d.css("background-color",a.options.colorButton.backColor),c.attr("data-backColor",a.options.colorButton.backColor)),r?(d.css("color",a.options.colorButton.foreColor),c.attr("data-foreColor",a.options.colorButton.foreColor)):d.css("color","transparent")}}),this.button({className:"dropdown-toggle",contents:this.ui.dropdownButtonContents("",this.options),tooltip:this.lang.color.more,data:{toggle:"dropdown"}}),this.ui.dropdown({items:(o?['<div class="note-palette">','<div class="note-palette-title">'+this.lang.color.background+"</div>","<div>",'<button type="button" class="note-color-reset btn btn-light btn-default" data-event="backColor" data-value="transparent">',this.lang.color.transparent,"</button>","</div>",'<div class="note-holder" data-event="backColor"><!-- back colors --></div>',"<div>",'<button type="button" class="note-color-select btn btn-light btn-default" data-event="openPalette" data-value="backColorPicker-'+this.options.id+'">',this.lang.color.cpSelect,"</button>",'<input type="color" id="backColorPicker-'+this.options.id+'" class="note-btn note-color-select-btn" value="'+this.options.colorButton.backColor+'" data-event="backColorPalette-'+this.options.id+'">',"</div>",'<div class="note-holder-custom" id="backColorPalette-'+this.options.id+'" data-event="backColor"></div>',"</div>"].join(""):"")+(r?['<div class="note-palette">','<div class="note-palette-title">'+this.lang.color.foreground+"</div>","<div>",'<button type="button" class="note-color-reset btn btn-light btn-default" data-event="removeFormat" data-value="foreColor">',this.lang.color.resetToDefault,"</button>","</div>",'<div class="note-holder" data-event="foreColor"><!-- fore colors --></div>',"<div>",'<button type="button" class="note-color-select btn btn-light btn-default" data-event="openPalette" data-value="foreColorPicker-'+this.options.id+'">',this.lang.color.cpSelect,"</button>",'<input type="color" id="foreColorPicker-'+this.options.id+'" class="note-btn note-color-select-btn" value="'+this.options.colorButton.foreColor+'" data-event="foreColorPalette-'+this.options.id+'">',"</div>",'<div class="note-holder-custom" id="foreColorPalette-'+this.options.id+'" data-event="foreColor"></div>',"</div>"].join(""):""),callback:function(c){c.find(".note-holder").each(function(f,h){var g=u()(h);g.append(a.ui.palette({colors:a.options.colors,colorsName:a.options.colorsName,eventName:g.data("event"),container:a.options.container,tooltip:a.options.tooltip}).render())});var d=[["#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF"]];c.find(".note-holder-custom").each(function(f,h){var g=u()(h);g.append(a.ui.palette({colors:d,colorsName:d,eventName:g.data("event"),container:a.options.container,tooltip:a.options.tooltip}).render())}),c.find("input[type=color]").each(function(f,h){u()(h).on("change",function(){var g=c.find("#"+u()(this).data("event")).find(".note-color-btn").first(),b=this.value.toUpperCase();g.css("background-color",b).attr("aria-label",b).attr("data-value",b).attr("data-original-title",b),g.click()})})},click:function(c){c.stopPropagation();var d=u()("."+e).find(".note-dropdown-menu"),f=u()(c.target),h=f.data("event"),g=f.attr("data-value");if(h==="openPalette"){var b=d.find("#"+g),I=u()(d.find("#"+b.data("event")).find(".note-color-row")[0]),F=I.find(".note-color-btn").last().detach(),K=b.val();F.css("background-color",K).attr("aria-label",K).attr("data-value",K).attr("data-original-title",K),I.prepend(F),b.click()}else{if(m.contains(["backColor","foreColor"],h)){var se=h==="backColor"?"background-color":"color",C=f.closest(".note-color").find(".note-recent-color"),N=f.closest(".note-color").find(".note-current-color-button");C.css(se,g),N.attr("data-"+h,g)}a.context.invoke("editor."+h,g)}}})]}).render()}},{key:"addToolbarButtons",value:function(){var e=this;this.context.memo("button.style",function(){return e.ui.buttonGroup([e.button({className:"dropdown-toggle",contents:e.ui.dropdownButtonContents(e.ui.icon(e.options.icons.magic),e.options),tooltip:e.lang.style.style,data:{toggle:"dropdown"}}),e.ui.dropdown({className:"dropdown-style",items:e.options.styleTags,title:e.lang.style.style,template:function(b){typeof b=="string"&&(b={tag:b,title:Object.prototype.hasOwnProperty.call(e.lang.style,b)?e.lang.style[b]:b});var I=b.tag,F=b.title,K=b.style?' style="'+b.style+'" ':"",se=b.className?' class="'+b.className+'"':"";return"<"+I+K+se+">"+F+"</"+I+">"},click:e.context.createInvokeHandler("editor.formatBlock")})]).render()});for(var t=function(b,I){var F=e.options.styleTags[b];e.context.memo("button.style."+F,function(){return e.button({className:"note-btn-style-"+F,contents:'<div data-value="'+F+'">'+F.toUpperCase()+"</div>",tooltip:e.lang.style[F],click:e.context.createInvokeHandler("editor.formatBlock")}).render()})},o=0,r=this.options.styleTags.length;o<r;o++)t(o);this.context.memo("button.bold",function(){return e.button({className:"note-btn-bold",contents:e.ui.icon(e.options.icons.bold),tooltip:e.lang.font.bold+e.representShortcut("bold"),click:e.context.createInvokeHandlerAndUpdateState("editor.bold")}).render()}),this.context.memo("button.italic",function(){return e.button({className:"note-btn-italic",contents:e.ui.icon(e.options.icons.italic),tooltip:e.lang.font.italic+e.representShortcut("italic"),click:e.context.createInvokeHandlerAndUpdateState("editor.italic")}).render()}),this.context.memo("button.underline",function(){return e.button({className:"note-btn-underline",contents:e.ui.icon(e.options.icons.underline),tooltip:e.lang.font.underline+e.representShortcut("underline"),click:e.context.createInvokeHandlerAndUpdateState("editor.underline")}).render()}),this.context.memo("button.clear",function(){return e.button({contents:e.ui.icon(e.options.icons.eraser),tooltip:e.lang.font.clear+e.representShortcut("removeFormat"),click:e.context.createInvokeHandler("editor.removeFormat")}).render()}),this.context.memo("button.strikethrough",function(){return e.button({className:"note-btn-strikethrough",contents:e.ui.icon(e.options.icons.strikethrough),tooltip:e.lang.font.strikethrough+e.representShortcut("strikethrough"),click:e.context.createInvokeHandlerAndUpdateState("editor.strikethrough")}).render()}),this.context.memo("button.superscript",function(){return e.button({className:"note-btn-superscript",contents:e.ui.icon(e.options.icons.superscript),tooltip:e.lang.font.superscript,click:e.context.createInvokeHandlerAndUpdateState("editor.superscript")}).render()}),this.context.memo("button.subscript",function(){return e.button({className:"note-btn-subscript",contents:e.ui.icon(e.options.icons.subscript),tooltip:e.lang.font.subscript,click:e.context.createInvokeHandlerAndUpdateState("editor.subscript")}).render()}),this.context.memo("button.fontname",function(){var g=e.context.invoke("editor.currentStyle");return e.options.addDefaultFonts&&u().each(g["font-family"].split(","),function(b,I){I=I.trim().replace(/['"]+/g,""),e.isFontDeservedToAdd(I)&&e.options.fontNames.indexOf(I)===-1&&e.options.fontNames.push(I)}),e.ui.buttonGroup([e.button({className:"dropdown-toggle",contents:e.ui.dropdownButtonContents('<span class="note-current-fontname"></span>',e.options),tooltip:e.lang.font.name,data:{toggle:"dropdown"}}),e.ui.dropdownCheck({className:"dropdown-fontname",checkClassName:e.options.icons.menuCheck,items:e.options.fontNames.filter(e.isFontInstalled.bind(e)),title:e.lang.font.name,template:function(I){return'<span style="font-family: '+z.validFontName(I)+'">'+I+"</span>"},click:e.context.createInvokeHandlerAndUpdateState("editor.fontName")})]).render()}),this.context.memo("button.fontsize",function(){return e.ui.buttonGroup([e.button({className:"dropdown-toggle",contents:e.ui.dropdownButtonContents('<span class="note-current-fontsize"></span>',e.options),tooltip:e.lang.font.size,data:{toggle:"dropdown"}}),e.ui.dropdownCheck({className:"dropdown-fontsize",checkClassName:e.options.icons.menuCheck,items:e.options.fontSizes,title:e.lang.font.size,click:e.context.createInvokeHandlerAndUpdateState("editor.fontSize")})]).render()}),this.context.memo("button.fontsizeunit",function(){return e.ui.buttonGroup([e.button({className:"dropdown-toggle",contents:e.ui.dropdownButtonContents('<span class="note-current-fontsizeunit"></span>',e.options),tooltip:e.lang.font.sizeunit,data:{toggle:"dropdown"}}),e.ui.dropdownCheck({className:"dropdown-fontsizeunit",checkClassName:e.options.icons.menuCheck,items:e.options.fontSizeUnits,title:e.lang.font.sizeunit,click:e.context.createInvokeHandlerAndUpdateState("editor.fontSizeUnit")})]).render()}),this.context.memo("button.color",function(){return e.colorPalette("note-color-all",e.lang.color.recent,!0,!0)}),this.context.memo("button.forecolor",function(){return e.colorPalette("note-color-fore",e.lang.color.foreground,!1,!0)}),this.context.memo("button.backcolor",function(){return e.colorPalette("note-color-back",e.lang.color.background,!0,!1)}),this.context.memo("button.ul",function(){return e.button({contents:e.ui.icon(e.options.icons.unorderedlist),tooltip:e.lang.lists.unordered+e.representShortcut("insertUnorderedList"),click:e.context.createInvokeHandler("editor.insertUnorderedList")}).render()}),this.context.memo("button.ol",function(){return e.button({contents:e.ui.icon(e.options.icons.orderedlist),tooltip:e.lang.lists.ordered+e.representShortcut("insertOrderedList"),click:e.context.createInvokeHandler("editor.insertOrderedList")}).render()});var a=this.button({contents:this.ui.icon(this.options.icons.alignLeft),tooltip:this.lang.paragraph.left+this.representShortcut("justifyLeft"),click:this.context.createInvokeHandler("editor.justifyLeft")}),s=this.button({contents:this.ui.icon(this.options.icons.alignCenter),tooltip:this.lang.paragraph.center+this.representShortcut("justifyCenter"),click:this.context.createInvokeHandler("editor.justifyCenter")}),c=this.button({contents:this.ui.icon(this.options.icons.alignRight),tooltip:this.lang.paragraph.right+this.representShortcut("justifyRight"),click:this.context.createInvokeHandler("editor.justifyRight")}),d=this.button({contents:this.ui.icon(this.options.icons.alignJustify),tooltip:this.lang.paragraph.justify+this.representShortcut("justifyFull"),click:this.context.createInvokeHandler("editor.justifyFull")}),f=this.button({contents:this.ui.icon(this.options.icons.outdent),tooltip:this.lang.paragraph.outdent+this.representShortcut("outdent"),click:this.context.createInvokeHandler("editor.outdent")}),h=this.button({contents:this.ui.icon(this.options.icons.indent),tooltip:this.lang.paragraph.indent+this.representShortcut("indent"),click:this.context.createInvokeHandler("editor.indent")});this.context.memo("button.justifyLeft",w.invoke(a,"render")),this.context.memo("button.justifyCenter",w.invoke(s,"render")),this.context.memo("button.justifyRight",w.invoke(c,"render")),this.context.memo("button.justifyFull",w.invoke(d,"render")),this.context.memo("button.outdent",w.invoke(f,"render")),this.context.memo("button.indent",w.invoke(h,"render")),this.context.memo("button.paragraph",function(){return e.ui.buttonGroup([e.button({className:"dropdown-toggle",contents:e.ui.dropdownButtonContents(e.ui.icon(e.options.icons.alignLeft),e.options),tooltip:e.lang.paragraph.paragraph,data:{toggle:"dropdown"}}),e.ui.dropdown([e.ui.buttonGroup({className:"note-align",children:[a,s,c,d]}),e.ui.buttonGroup({className:"note-list",children:[f,h]})])]).render()}),this.context.memo("button.height",function(){return e.ui.buttonGroup([e.button({className:"dropdown-toggle",contents:e.ui.dropdownButtonContents(e.ui.icon(e.options.icons.textHeight),e.options),tooltip:e.lang.font.height,data:{toggle:"dropdown"}}),e.ui.dropdownCheck({items:e.options.lineHeights,checkClassName:e.options.icons.menuCheck,className:"dropdown-line-height",title:e.lang.font.height,click:e.context.createInvokeHandler("editor.lineHeight")})]).render()}),this.context.memo("button.table",function(){return e.ui.buttonGroup([e.button({className:"dropdown-toggle",contents:e.ui.dropdownButtonContents(e.ui.icon(e.options.icons.table),e.options),tooltip:e.lang.table.table,data:{toggle:"dropdown"}}),e.ui.dropdown({title:e.lang.table.table,className:"note-table",items:['<div class="note-dimension-picker">','<div class="note-dimension-picker-mousecatcher" data-event="insertTable" data-value="1x1"></div>','<div class="note-dimension-picker-highlighted"></div>','<div class="note-dimension-picker-unhighlighted"></div>',"</div>",'<div class="note-dimension-display">1 x 1</div>'].join("")})],{callback:function(b){var I=b.find(".note-dimension-picker-mousecatcher");I.css({width:e.options.insertTableMaxSize.col+"em",height:e.options.insertTableMaxSize.row+"em"}).mousedown(e.context.createInvokeHandler("editor.insertTable")).on("mousemove",e.tableMoveHandler.bind(e))}}).render()}),this.context.memo("button.link",function(){return e.button({contents:e.ui.icon(e.options.icons.link),tooltip:e.lang.link.link,click:e.options.openLinkModal}).render()}),this.context.memo("button.picture",function(){return e.button({contents:e.ui.icon(e.options.icons.picture),tooltip:e.lang.image.image,click:e.options.openImageModal}).render()}),this.context.memo("button.video",function(){return e.button({contents:e.ui.icon(e.options.icons.video),tooltip:e.lang.video.video,click:e.options.openVideoModal}).render()}),this.context.memo("button.hr",function(){return e.button({contents:e.ui.icon(e.options.icons.minus),tooltip:e.lang.hr.insert+e.representShortcut("insertHorizontalRule"),click:e.context.createInvokeHandler("editor.insertHorizontalRule")}).render()}),this.context.memo("button.fullscreen",function(){return e.button({className:"btn-fullscreen note-codeview-keep",contents:e.ui.icon(e.options.icons.arrowsAlt),tooltip:e.lang.options.fullscreen,click:e.context.createInvokeHandler("fullscreen.toggle")}).render()}),this.context.memo("button.codeview",function(){return e.button({className:"btn-codeview note-codeview-keep",contents:e.ui.icon(e.options.icons.code),tooltip:e.lang.options.codeview,click:e.context.createInvokeHandler("codeview.toggle")}).render()}),this.context.memo("button.redo",function(){return e.button({contents:e.ui.icon(e.options.icons.redo),tooltip:e.lang.history.redo+e.representShortcut("redo"),click:e.context.createInvokeHandler("editor.redo")}).render()}),this.context.memo("button.undo",function(){return e.button({contents:e.ui.icon(e.options.icons.undo),tooltip:e.lang.history.undo+e.representShortcut("undo"),click:e.context.createInvokeHandler("editor.undo")}).render()}),this.context.memo("button.help",function(){return e.button({contents:e.ui.icon(e.options.icons.question),tooltip:e.lang.options.help,click:e.context.createInvokeHandler("helpDialog.show")}).render()})}},{key:"addImagePopoverButtons",value:function(){var e=this;this.context.memo("button.resizeFull",function(){return e.button({contents:'<span class="note-fontsize-10">100%</span>',tooltip:e.lang.image.resizeFull,click:e.context.createInvokeHandler("editor.resize","1")}).render()}),this.context.memo("button.resizeHalf",function(){return e.button({contents:'<span class="note-fontsize-10">50%</span>',tooltip:e.lang.image.resizeHalf,click:e.context.createInvokeHandler("editor.resize","0.5")}).render()}),this.context.memo("button.resizeQuarter",function(){return e.button({contents:'<span class="note-fontsize-10">25%</span>',tooltip:e.lang.image.resizeQuarter,click:e.context.createInvokeHandler("editor.resize","0.25")}).render()}),this.context.memo("button.resizeNone",function(){return e.button({contents:e.ui.icon(e.options.icons.rollback),tooltip:e.lang.image.resizeNone,click:e.context.createInvokeHandler("editor.resize","0")}).render()}),this.context.memo("button.floatLeft",function(){return e.button({contents:e.ui.icon(e.options.icons.floatLeft),tooltip:e.lang.image.floatLeft,click:e.context.createInvokeHandler("editor.floatMe","left")}).render()}),this.context.memo("button.floatRight",function(){return e.button({contents:e.ui.icon(e.options.icons.floatRight),tooltip:e.lang.image.floatRight,click:e.context.createInvokeHandler("editor.floatMe","right")}).render()}),this.context.memo("button.floatNone",function(){return e.button({contents:e.ui.icon(e.options.icons.rollback),tooltip:e.lang.image.floatNone,click:e.context.createInvokeHandler("editor.floatMe","none")}).render()}),this.context.memo("button.removeMedia",function(){return e.button({contents:e.ui.icon(e.options.icons.trash),tooltip:e.lang.image.remove,click:e.context.createInvokeHandler("editor.removeMedia")}).render()})}},{key:"addLinkPopoverButtons",value:function(){var e=this;this.context.memo("button.linkDialogShow",function(){return e.button({contents:e.ui.icon(e.options.icons.link),tooltip:e.lang.link.edit,click:e.context.createInvokeHandler("linkDialog.show")}).render()}),this.context.memo("button.unlink",function(){return e.button({contents:e.ui.icon(e.options.icons.unlink),tooltip:e.lang.link.unlink,click:e.context.createInvokeHandler("editor.unlink")}).render()})}},{key:"addTablePopoverButtons",value:function(){var e=this;this.context.memo("button.addRowUp",function(){return e.button({className:"btn-md",contents:e.ui.icon(e.options.icons.rowAbove),tooltip:e.lang.table.addRowAbove,click:e.context.createInvokeHandler("editor.addRow","top")}).render()}),this.context.memo("button.addRowDown",function(){return e.button({className:"btn-md",contents:e.ui.icon(e.options.icons.rowBelow),tooltip:e.lang.table.addRowBelow,click:e.context.createInvokeHandler("editor.addRow","bottom")}).render()}),this.context.memo("button.addColLeft",function(){return e.button({className:"btn-md",contents:e.ui.icon(e.options.icons.colBefore),tooltip:e.lang.table.addColLeft,click:e.context.createInvokeHandler("editor.addCol","left")}).render()}),this.context.memo("button.addColRight",function(){return e.button({className:"btn-md",contents:e.ui.icon(e.options.icons.colAfter),tooltip:e.lang.table.addColRight,click:e.context.createInvokeHandler("editor.addCol","right")}).render()}),this.context.memo("button.deleteRow",function(){return e.button({className:"btn-md",contents:e.ui.icon(e.options.icons.rowRemove),tooltip:e.lang.table.delRow,click:e.context.createInvokeHandler("editor.deleteRow")}).render()}),this.context.memo("button.deleteCol",function(){return e.button({className:"btn-md",contents:e.ui.icon(e.options.icons.colRemove),tooltip:e.lang.table.delCol,click:e.context.createInvokeHandler("editor.deleteCol")}).render()}),this.context.memo("button.deleteTable",function(){return e.button({className:"btn-md",contents:e.ui.icon(e.options.icons.trash),tooltip:e.lang.table.delTable,click:e.context.createInvokeHandler("editor.deleteTable")}).render()})}},{key:"build",value:function(e,t){for(var o=0,r=t.length;o<r;o++){for(var a=t[o],s=Array.isArray(a)?a[0]:a,c=Array.isArray(a)?a.length===1?[a[0]]:a[1]:[a],d=this.ui.buttonGroup({className:"note-"+s}).render(),f=0,h=c.length;f<h;f++){var g=this.context.memo("button."+c[f]);g&&d.append(typeof g=="function"?g(this.context):g)}d.appendTo(e)}}},{key:"updateCurrentStyle",value:function(e){var t=e||this.$toolbar,o=this.context.invoke("editor.currentStyle");if(this.updateBtnStates(t,{".note-btn-bold":function(){return o["font-bold"]==="bold"},".note-btn-italic":function(){return o["font-italic"]==="italic"},".note-btn-underline":function(){return o["font-underline"]==="underline"},".note-btn-subscript":function(){return o["font-subscript"]==="subscript"},".note-btn-superscript":function(){return o["font-superscript"]==="superscript"},".note-btn-strikethrough":function(){return o["font-strikethrough"]==="strikethrough"}}),o["font-family"]){var r=o["font-family"].split(",").map(function(f){return f.replace(/[\'\"]/g,"").replace(/\s+$/,"").replace(/^\s+/,"")}),a=m.find(r,this.isFontInstalled.bind(this));t.find(".dropdown-fontname a").each(function(f,h){var g=u()(h),b=g.data("value")+""==a+"";g.toggleClass("checked",b)}),t.find(".note-current-fontname").text(a).css("font-family",a)}if(o["font-size"]){var s=o["font-size"];t.find(".dropdown-fontsize a").each(function(f,h){var g=u()(h),b=g.data("value")+""==s+"";g.toggleClass("checked",b)}),t.find(".note-current-fontsize").text(s);var c=o["font-size-unit"];t.find(".dropdown-fontsizeunit a").each(function(f,h){var g=u()(h),b=g.data("value")+""==c+"";g.toggleClass("checked",b)}),t.find(".note-current-fontsizeunit").text(c)}if(o["line-height"]){var d=o["line-height"];t.find(".dropdown-line-height a").each(function(f,h){var g=u()(h),b=u()(h).data("value")+""==d+"";g.toggleClass("checked",b)}),t.find(".note-current-line-height").text(d)}}},{key:"updateBtnStates",value:function(e,t){var o=this;u().each(t,function(r,a){o.ui.toggleBtnActive(e.find(r),a())})}},{key:"tableMoveHandler",value:function(e){var t=18,o=u()(e.target.parentNode),r=o.next(),a=o.find(".note-dimension-picker-mousecatcher"),s=o.find(".note-dimension-picker-highlighted"),c=o.find(".note-dimension-picker-unhighlighted"),d;if(e.offsetX===void 0){var f=u()(e.target).offset();d={x:e.pageX-f.left,y:e.pageY-f.top}}else d={x:e.offsetX,y:e.offsetY};var h={c:Math.ceil(d.x/t)||1,r:Math.ceil(d.y/t)||1};s.css({width:h.c+"em",height:h.r+"em"}),a.data("value",h.c+"x"+h.r),h.c>3&&h.c<this.options.insertTableMaxSize.col&&c.css({width:h.c+1+"em"}),h.r>3&&h.r<this.options.insertTableMaxSize.row&&c.css({height:h.r+1+"em"}),r.html(h.c+" x "+h.r)}}]),i})();function go(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function bo(i,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}function yo(i,n,e){return n&&bo(i.prototype,n),i}var ko=(function(){function i(n){go(this,i),this.context=n,this.$window=u()(window),this.$document=u()(document),this.ui=u().summernote.ui,this.$note=n.layoutInfo.note,this.$editor=n.layoutInfo.editor,this.$toolbar=n.layoutInfo.toolbar,this.$editable=n.layoutInfo.editable,this.$statusbar=n.layoutInfo.statusbar,this.options=n.options,this.isFollowing=!1,this.followScroll=this.followScroll.bind(this)}return yo(i,[{key:"shouldInitialize",value:function(){return!this.options.airMode}},{key:"initialize",value:function(){var e=this;this.options.toolbar=this.options.toolbar||[],this.options.toolbar.length?this.context.invoke("buttons.build",this.$toolbar,this.options.toolbar):this.$toolbar.hide(),this.options.toolbarContainer&&this.$toolbar.appendTo(this.options.toolbarContainer),this.changeContainer(!1),this.$note.on("summernote.keyup summernote.mouseup summernote.change",function(){e.context.invoke("buttons.updateCurrentStyle")}),this.context.invoke("buttons.updateCurrentStyle"),this.options.followingToolbar&&this.$window.on("scroll resize",this.followScroll)}},{key:"destroy",value:function(){this.$toolbar.children().remove(),this.options.followingToolbar&&this.$window.off("scroll resize",this.followScroll)}},{key:"followScroll",value:function(){if(this.$editor.hasClass("fullscreen"))return!1;var e=this.$editor.outerHeight(),t=this.$editor.width(),o=this.$toolbar.height(),r=this.$statusbar.height(),a=0;this.options.otherStaticBar&&(a=u()(this.options.otherStaticBar).outerHeight());var s=this.$document.scrollTop(),c=this.$editor.offset().top,d=c+e,f=c-a,h=d-a-o-r;!this.isFollowing&&s>f&&s<h-o?(this.isFollowing=!0,this.$editable.css({marginTop:this.$toolbar.outerHeight()}),this.$toolbar.css({position:"fixed",top:a,width:t,zIndex:1e3})):this.isFollowing&&(s<f||s>h)&&(this.isFollowing=!1,this.$toolbar.css({position:"relative",top:0,width:"100%",zIndex:"auto"}),this.$editable.css({marginTop:""}))}},{key:"changeContainer",value:function(e){e?this.$toolbar.prependTo(this.$editor):this.options.toolbarContainer&&this.$toolbar.appendTo(this.options.toolbarContainer),this.options.followingToolbar&&this.followScroll()}},{key:"updateFullscreen",value:function(e){this.ui.toggleBtnActive(this.$toolbar.find(".btn-fullscreen"),e),this.changeContainer(e)}},{key:"updateCodeview",value:function(e){this.ui.toggleBtnActive(this.$toolbar.find(".btn-codeview"),e),e?this.deactivate():this.activate()}},{key:"activate",value:function(e){var t=this.$toolbar.find("button");e||(t=t.not(".note-codeview-keep")),this.ui.toggleBtn(t,!0)}},{key:"deactivate",value:function(e){var t=this.$toolbar.find("button");e||(t=t.not(".note-codeview-keep")),this.ui.toggleBtn(t,!1)}}]),i})();function Co(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function wo(i,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}function So(i,n,e){return n&&wo(i.prototype,n),i}var xo=(function(){function i(n){Co(this,i),this.context=n,this.ui=u().summernote.ui,this.$body=u()(document.body),this.$editor=n.layoutInfo.editor,this.options=n.options,this.lang=this.options.langInfo,n.memo("help.linkDialog.show",this.options.langInfo.help["linkDialog.show"])}return So(i,[{key:"initialize",value:function(){var e=this.options.dialogsInBody?this.$body:this.options.container,t=['<div class="form-group note-form-group">','<label for="note-dialog-link-txt-'.concat(this.options.id,'" class="note-form-label">').concat(this.lang.link.textToDisplay,"</label>"),'<input id="note-dialog-link-txt-'.concat(this.options.id,'" class="note-link-text form-control note-form-control note-input" type="text"/>'),"</div>",'<div class="form-group note-form-group">','<label for="note-dialog-link-url-'.concat(this.options.id,'" class="note-form-label">').concat(this.lang.link.url,"</label>"),'<input id="note-dialog-link-url-'.concat(this.options.id,'" class="note-link-url form-control note-form-control note-input" type="text" value="http://"/>'),"</div>",this.options.disableLinkTarget?"":u()("<div></div>").append(this.ui.checkbox({className:"sn-checkbox-open-in-new-window",text:this.lang.link.openInNewWindow,checked:!0}).render()).html(),u()("<div></div>").append(this.ui.checkbox({className:"sn-checkbox-use-protocol",text:this.lang.link.useProtocol,checked:!0}).render()).html()].join(""),o="btn btn-primary note-btn note-btn-primary note-link-btn",r='<input type="button" href="#" class="'.concat(o,'" value="').concat(this.lang.link.insert,'" disabled>');this.$dialog=this.ui.dialog({className:"link-dialog",title:this.lang.link.insert,fade:this.options.dialogsFade,body:t,footer:r}).render().appendTo(e)}},{key:"destroy",value:function(){this.ui.hideDialog(this.$dialog),this.$dialog.remove()}},{key:"bindEnterKey",value:function(e,t){e.on("keypress",function(o){o.keyCode===Y.code.ENTER&&(o.preventDefault(),t.trigger("click"))})}},{key:"toggleLinkBtn",value:function(e,t,o){this.ui.toggleBtn(e,t.val()&&o.val())}},{key:"showLinkDialog",value:function(e){var t=this;return u().Deferred(function(o){var r=t.$dialog.find(".note-link-text"),a=t.$dialog.find(".note-link-url"),s=t.$dialog.find(".note-link-btn"),c=t.$dialog.find(".sn-checkbox-open-in-new-window input[type=checkbox]"),d=t.$dialog.find(".sn-checkbox-use-protocol input[type=checkbox]");t.ui.onDialogShown(t.$dialog,function(){t.context.triggerEvent("dialog.shown"),!e.url&&w.isValidUrl(e.text)&&(e.url=e.text),r.on("input paste propertychange",function(){e.text=r.val(),t.toggleLinkBtn(s,r,a)}).val(e.text),a.on("input paste propertychange",function(){e.text||r.val(a.val()),t.toggleLinkBtn(s,r,a)}).val(e.url),z.isSupportTouch||a.trigger("focus"),t.toggleLinkBtn(s,r,a),t.bindEnterKey(a,s),t.bindEnterKey(r,s);var f=e.isNewWindow!==void 0?e.isNewWindow:t.context.options.linkTargetBlank;c.prop("checked",f);var h=e.url?!1:t.context.options.useProtocol;d.prop("checked",h),s.one("click",function(g){g.preventDefault(),o.resolve({range:e.range,url:a.val(),text:r.val(),isNewWindow:c.is(":checked"),checkProtocol:d.is(":checked")}),t.ui.hideDialog(t.$dialog)})}),t.ui.onDialogHidden(t.$dialog,function(){r.off(),a.off(),s.off(),o.state()==="pending"&&o.reject()}),t.ui.showDialog(t.$dialog)}).promise()}},{key:"show",value:function(){var e=this,t=this.context.invoke("editor.getLinkInfo");this.context.invoke("editor.saveRange"),this.showLinkDialog(t).then(function(o){e.context.invoke("editor.restoreRange"),e.context.invoke("editor.createLink",o)}).fail(function(){e.context.invoke("editor.restoreRange")})}}]),i})();function To(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function Eo(i,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}function Po(i,n,e){return n&&Eo(i.prototype,n),i}var Io=(function(){function i(n){var e=this;To(this,i),this.context=n,this.ui=u().summernote.ui,this.options=n.options,this.events={"summernote.keyup summernote.mouseup summernote.change summernote.scroll":function(){e.update()},"summernote.disable summernote.dialog.shown":function(){e.hide()},"summernote.blur":function(o,r){r.originalEvent&&r.originalEvent.relatedTarget&&e.$popover[0].contains(r.originalEvent.relatedTarget)||e.hide()}}}return Po(i,[{key:"shouldInitialize",value:function(){return!m.isEmpty(this.options.popover.link)}},{key:"initialize",value:function(){this.$popover=this.ui.popover({className:"note-link-popover",callback:function(o){var r=o.find(".popover-content,.note-popover-content");r.prepend('<span><a target="_blank"></a> </span>')}}).render().appendTo(this.options.container);var e=this.$popover.find(".popover-content,.note-popover-content");this.context.invoke("buttons.build",e,this.options.popover.link),this.$popover.on("mousedown",function(t){t.preventDefault()})}},{key:"destroy",value:function(){this.$popover.remove()}},{key:"update",value:function(){if(!this.context.invoke("editor.hasFocus")){this.hide();return}var e=this.context.invoke("editor.getLastRange");if(e.isCollapsed()&&e.isOnAnchor()){var t=l.ancestor(e.sc,l.isAnchor),o=u()(t).attr("href");this.$popover.find("a").attr("href",o).text(o);var r=l.posFromPlaceholder(t),a=u()(this.options.container).offset();r.top-=a.top,r.left-=a.left,this.$popover.css({display:"block",left:r.left,top:r.top})}else this.hide()}},{key:"hide",value:function(){this.$popover.hide()}}]),i})();function Ro(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function Ao(i,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}function $o(i,n,e){return n&&Ao(i.prototype,n),i}var Lo=(function(){function i(n){Ro(this,i),this.context=n,this.ui=u().summernote.ui,this.$body=u()(document.body),this.$editor=n.layoutInfo.editor,this.options=n.options,this.lang=this.options.langInfo}return $o(i,[{key:"initialize",value:function(){var e="";if(this.options.maximumImageFileSize){var t=Math.floor(Math.log(this.options.maximumImageFileSize)/Math.log(1024)),o=(this.options.maximumImageFileSize/Math.pow(1024,t)).toFixed(2)*1+" "+" KMGTP"[t]+"B";e="<small>".concat(this.lang.image.maximumFileSize+" : "+o,"</small>")}var r=this.options.dialogsInBody?this.$body:this.options.container,a=['<div class="form-group note-form-group note-group-select-from-files">','<label for="note-dialog-image-file-'+this.options.id+'" class="note-form-label">'+this.lang.image.selectFromFiles+"</label>",'<input id="note-dialog-image-file-'+this.options.id+'" class="note-image-input form-control-file note-form-control note-input" ',' type="file" name="files" accept="'+this.options.acceptImageFileTypes+'" multiple="multiple"/>',e,"</div>",'<div class="form-group note-group-image-url">','<label for="note-dialog-image-url-'+this.options.id+'" class="note-form-label">'+this.lang.image.url+"</label>",'<input id="note-dialog-image-url-'+this.options.id+'" class="note-image-url form-control note-form-control note-input" type="text"/>',"</div>"].join(""),s="btn btn-primary note-btn note-btn-primary note-image-btn",c='<input type="button" href="#" class="'.concat(s,'" value="').concat(this.lang.image.insert,'" disabled>');this.$dialog=this.ui.dialog({title:this.lang.image.insert,fade:this.options.dialogsFade,body:a,footer:c}).render().appendTo(r)}},{key:"destroy",value:function(){this.ui.hideDialog(this.$dialog),this.$dialog.remove()}},{key:"bindEnterKey",value:function(e,t){e.on("keypress",function(o){o.keyCode===Y.code.ENTER&&(o.preventDefault(),t.trigger("click"))})}},{key:"show",value:function(){var e=this;this.context.invoke("editor.saveRange"),this.showImageDialog().then(function(t){e.ui.hideDialog(e.$dialog),e.context.invoke("editor.restoreRange"),typeof t=="string"?e.options.callbacks.onImageLinkInsert?e.context.triggerEvent("image.link.insert",t):e.context.invoke("editor.insertImage",t):e.context.invoke("editor.insertImagesOrCallback",t)}).fail(function(){e.context.invoke("editor.restoreRange")})}},{key:"showImageDialog",value:function(){var e=this;return u().Deferred(function(t){var o=e.$dialog.find(".note-image-input"),r=e.$dialog.find(".note-image-url"),a=e.$dialog.find(".note-image-btn");e.ui.onDialogShown(e.$dialog,function(){e.context.triggerEvent("dialog.shown"),o.replaceWith(o.clone().on("change",function(s){t.resolve(s.target.files||s.target.value)}).val("")),r.on("input paste propertychange",function(){e.ui.toggleBtn(a,r.val())}).val(""),z.isSupportTouch||r.trigger("focus"),a.click(function(s){s.preventDefault(),t.resolve(r.val())}),e.bindEnterKey(r,a)}),e.ui.onDialogHidden(e.$dialog,function(){o.off(),r.off(),a.off(),t.state()==="pending"&&t.reject()}),e.ui.showDialog(e.$dialog)})}}]),i})();function No(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function Do(i,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}function Fo(i,n,e){return n&&Do(i.prototype,n),i}var Bo=(function(){function i(n){var e=this;No(this,i),this.context=n,this.ui=u().summernote.ui,this.editable=n.layoutInfo.editable[0],this.options=n.options,this.events={"summernote.disable summernote.dialog.shown":function(){e.hide()},"summernote.blur":function(o,r){r.originalEvent&&r.originalEvent.relatedTarget&&e.$popover[0].contains(r.originalEvent.relatedTarget)||e.hide()}}}return Fo(i,[{key:"shouldInitialize",value:function(){return!m.isEmpty(this.options.popover.image)}},{key:"initialize",value:function(){this.$popover=this.ui.popover({className:"note-image-popover"}).render().appendTo(this.options.container);var e=this.$popover.find(".popover-content,.note-popover-content");this.context.invoke("buttons.build",e,this.options.popover.image),this.$popover.on("mousedown",function(t){t.preventDefault()})}},{key:"destroy",value:function(){this.$popover.remove()}},{key:"update",value:function(e,t){if(l.isImg(e)){var o=u()(e).offset(),r=u()(this.options.container).offset(),a={};this.options.popatmouse?(a.left=t.pageX-20,a.top=t.pageY):a=o,a.top-=r.top,a.left-=r.left,this.$popover.css({display:"block",left:a.left,top:a.top})}else this.hide()}},{key:"hide",value:function(){this.$popover.hide()}}]),i})();function Ho(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function Oo(i,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}function Mo(i,n,e){return n&&Oo(i.prototype,n),i}var zo=(function(){function i(n){var e=this;Ho(this,i),this.context=n,this.ui=u().summernote.ui,this.options=n.options,this.events={"summernote.mousedown":function(o,r){e.update(r.target)},"summernote.keyup summernote.scroll summernote.change":function(){e.update()},"summernote.disable summernote.dialog.shown":function(){e.hide()},"summernote.blur":function(o,r){r.originalEvent&&r.originalEvent.relatedTarget&&e.$popover[0].contains(r.originalEvent.relatedTarget)||e.hide()}}}return Mo(i,[{key:"shouldInitialize",value:function(){return!m.isEmpty(this.options.popover.table)}},{key:"initialize",value:function(){this.$popover=this.ui.popover({className:"note-table-popover"}).render().appendTo(this.options.container);var e=this.$popover.find(".popover-content,.note-popover-content");this.context.invoke("buttons.build",e,this.options.popover.table),z.isFF&&document.execCommand("enableInlineTableEditing",!1,!1),this.$popover.on("mousedown",function(t){t.preventDefault()})}},{key:"destroy",value:function(){this.$popover.remove()}},{key:"update",value:function(e){if(this.context.isDisabled())return!1;var t=l.isCell(e)||l.isCell(e==null?void 0:e.parentElement);if(t){var o=l.posFromPlaceholder(e),r=u()(this.options.container).offset();o.top-=r.top,o.left-=r.left,this.$popover.css({display:"block",left:o.left,top:o.top})}else this.hide();return t}},{key:"hide",value:function(){this.$popover.hide()}}]),i})();function _o(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function Uo(i,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}function jo(i,n,e){return n&&Uo(i.prototype,n),i}var Ko=(function(){function i(n){_o(this,i),this.context=n,this.ui=u().summernote.ui,this.$body=u()(document.body),this.$editor=n.layoutInfo.editor,this.options=n.options,this.lang=this.options.langInfo}return jo(i,[{key:"initialize",value:function(){var e=this.options.dialogsInBody?this.$body:this.options.container,t=['<div class="form-group note-form-group row-fluid">','<label for="note-dialog-video-url-'.concat(this.options.id,'" class="note-form-label">').concat(this.lang.video.url,' <small class="text-muted">').concat(this.lang.video.providers,"</small></label>"),'<input id="note-dialog-video-url-'.concat(this.options.id,'" class="note-video-url form-control note-form-control note-input" type="text"/>'),"</div>"].join(""),o="btn btn-primary note-btn note-btn-primary note-video-btn",r='<input type="button" href="#" class="'.concat(o,'" value="').concat(this.lang.video.insert,'" disabled>');this.$dialog=this.ui.dialog({title:this.lang.video.insert,fade:this.options.dialogsFade,body:t,footer:r}).render().appendTo(e)}},{key:"destroy",value:function(){this.ui.hideDialog(this.$dialog),this.$dialog.remove()}},{key:"bindEnterKey",value:function(e,t){e.on("keypress",function(o){o.keyCode===Y.code.ENTER&&(o.preventDefault(),t.trigger("click"))})}},{key:"createVideoNode",value:function(e){var t=/(?:youtu\.be\/|youtube\.com\/(?:[^\/\n\s]+\/\S+\/|(?:v|e(?:mbed)?)\/|\S*?[?&]v=))([^&\n?]+)(?:.*[?&]t=(\d+))?.*/,o=e.match(t),r=/(?:\.|\/\/)drive\.google\.com\/file\/d\/(.[a-zA-Z0-9_-]*)\/view/,a=e.match(r),s=/(?:www\.|\/\/)instagram\.com\/p\/(.[a-zA-Z0-9_-]*)/,c=e.match(s),d=/\/\/vine\.co\/v\/([a-zA-Z0-9]+)/,f=e.match(d),h=/\/\/(player\.)?vimeo\.com\/([a-z]*\/)*(\d+)[?]?.*/,g=e.match(h),b=/.+dailymotion.com\/(video|hub)\/([^_]+)[^#]*(#video=([^_&]+))?/,I=e.match(b),F=/\/\/v\.youku\.com\/v_show\/id_(\w+)=*\.html/,K=e.match(F),se=/\/\/(.*)\/videos\/watch\/([^?]*)(?:\?(?:start=(\w*))?(?:&stop=(\w*))?(?:&loop=([10]))?(?:&autoplay=([10]))?(?:&muted=([10]))?)?/,C=e.match(se),N=/\/\/v\.qq\.com.*?vid=(.+)/,W=e.match(N),te=/\/\/v\.qq\.com\/x?\/?(page|cover).*?\/([^\/]+)\.html\??.*/,ve=e.match(te),pe=/^.+.(mp4|m4v)$/,ge=e.match(pe),de=/^.+.(ogg|ogv)$/,ke=e.match(de),je=/^.+.(webm)$/,Ae=e.match(je),Ke=/(?:www\.|\/\/)facebook\.com\/([^\/]+)\/videos\/([0-9]+)/,ht=e.match(Ke),ue;if(o&&o[1].length===11){var gr=o[1],We=0;typeof o[2]<"u"&&(We=parseInt(o[2],10)),ue=u()("<iframe>").attr("frameborder",0).attr("src","//www.youtube.com/embed/"+gr+(We>0?"?start="+We:"")).attr("width","640").attr("height","360")}else if(a&&a[0].length)ue=u()("<iframe>").attr("frameborder",0).attr("src","https://drive.google.com/file/d/"+a[1]+"/preview").attr("width","640").attr("height","480");else if(c&&c[0].length)ue=u()("<iframe>").attr("frameborder",0).attr("src","https://instagram.com/p/"+c[1]+"/embed/").attr("width","612").attr("height","710").attr("scrolling","no").attr("allowtransparency","true");else if(f&&f[0].length)ue=u()("<iframe>").attr("frameborder",0).attr("src",f[0]+"/embed/simple").attr("width","600").attr("height","600").attr("class","vine-embed");else if(g&&g[3].length)ue=u()("<iframe webkitallowfullscreen mozallowfullscreen allowfullscreen>").attr("frameborder",0).attr("src","//player.vimeo.com/video/"+g[3]).attr("width","640").attr("height","360");else if(I&&I[2].length)ue=u()("<iframe>").attr("frameborder",0).attr("src","//www.dailymotion.com/embed/video/"+I[2]).attr("width","640").attr("height","360");else if(K&&K[1].length)ue=u()("<iframe webkitallowfullscreen mozallowfullscreen allowfullscreen>").attr("frameborder",0).attr("height","498").attr("width","510").attr("src","//player.youku.com/embed/"+K[1]);else if(C&&C[0].length){var vt=0;C[2]!=="undefined"&&(vt=C[2]);var Wt=0;C[3]!=="undefined"&&(Wt=C[3]);var qt=0;C[4]!=="undefined"&&(qt=C[4]);var Vt=0;C[5]!=="undefined"&&(Vt=C[5]);var Gt=0;C[6]!=="undefined"&&(Gt=C[6]),ue=u()('<iframe allowfullscreen sandbox="allow-same-origin allow-scripts allow-popups">').attr("frameborder",0).attr("src","//"+C[1]+"/videos/embed/"+C[2]+"?loop="+qt+"&autoplay="+Vt+"&muted="+Gt+(vt>0?"&start="+vt:"")+(Wt>0?"&end="+We:"")).attr("width","560").attr("height","315")}else if(W&&W[1].length||ve&&ve[2].length){var br=W&&W[1].length?W[1]:ve[2];ue=u()("<iframe webkitallowfullscreen mozallowfullscreen allowfullscreen>").attr("frameborder",0).attr("height","310").attr("width","500").attr("src","https://v.qq.com/txp/iframe/player.html?vid="+br+"&auto=0")}else if(ge||ke||Ae)ue=u()("<video controls>").attr("src",e).attr("width","640").attr("height","360");else if(ht&&ht[0].length)ue=u()("<iframe>").attr("frameborder",0).attr("src","https://www.facebook.com/plugins/video.php?href="+encodeURIComponent(ht[0])+"&show_text=0&width=560").attr("width","560").attr("height","301").attr("scrolling","no").attr("allowtransparency","true");else return!1;return ue.addClass("note-video-clip"),ue[0]}},{key:"show",value:function(){var e=this,t=this.context.invoke("editor.getSelectedText");this.context.invoke("editor.saveRange"),this.showVideoDialog(t).then(function(o){e.ui.hideDialog(e.$dialog),e.context.invoke("editor.restoreRange");var r=e.createVideoNode(o);r&&e.context.invoke("editor.insertNode",r)}).fail(function(){e.context.invoke("editor.restoreRange")})}},{key:"showVideoDialog",value:function(){var e=this;return u().Deferred(function(t){var o=e.$dialog.find(".note-video-url"),r=e.$dialog.find(".note-video-btn");e.ui.onDialogShown(e.$dialog,function(){e.context.triggerEvent("dialog.shown"),o.on("input paste propertychange",function(){e.ui.toggleBtn(r,o.val())}),z.isSupportTouch||o.trigger("focus"),r.click(function(a){a.preventDefault(),t.resolve(o.val())}),e.bindEnterKey(o,r)}),e.ui.onDialogHidden(e.$dialog,function(){o.off(),r.off(),t.state()==="pending"&&t.reject()}),e.ui.showDialog(e.$dialog)})}}]),i})();function Wo(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function qo(i,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}function Vo(i,n,e){return n&&qo(i.prototype,n),i}var Go=(function(){function i(n){Wo(this,i),this.context=n,this.ui=u().summernote.ui,this.$body=u()(document.body),this.$editor=n.layoutInfo.editor,this.options=n.options,this.lang=this.options.langInfo}return Vo(i,[{key:"initialize",value:function(){var e=this.options.dialogsInBody?this.$body:this.options.container,t=['<p class="text-center">','<a href="http://summernote.org/" target="_blank" rel="noopener noreferrer">Summernote 0.0.35</a> · ','<a href="https://github.com/summernote/summernote" target="_blank" rel="noopener noreferrer">Project</a> · ','<a href="https://github.com/summernote/summernote/issues" target="_blank" rel="noopener noreferrer">Issues</a>',"</p>"].join("");this.$dialog=this.ui.dialog({title:this.lang.options.help,fade:this.options.dialogsFade,body:this.createShortcutList(),footer:t,callback:function(r){r.find(".modal-body,.note-modal-body").css({"max-height":300,overflow:"scroll"})}}).render().appendTo(e)}},{key:"destroy",value:function(){this.ui.hideDialog(this.$dialog),this.$dialog.remove()}},{key:"createShortcutList",value:function(){var e=this,t=this.options.keyMap[z.isMac?"mac":"pc"];return Object.keys(t).map(function(o){var r=t[o],a=u()('<div><div class="help-list-item"></div></div>');return a.append(u()("<label><kbd>"+o+"</kdb></label>").css({width:180,"margin-right":10})).append(u()("<span></span>").html(e.context.memo("help."+r)||r)),a.html()}).join("")}},{key:"showHelpDialog",value:function(){var e=this;return u().Deferred(function(t){e.ui.onDialogShown(e.$dialog,function(){e.context.triggerEvent("dialog.shown"),t.resolve()}),e.ui.showDialog(e.$dialog)}).promise()}},{key:"show",value:function(){var e=this;this.context.invoke("editor.saveRange"),this.showHelpDialog().then(function(){e.context.invoke("editor.restoreRange")})}}]),i})();function Yo(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function Zo(i,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}function Xo(i,n,e){return n&&Zo(i.prototype,n),i}var Qo=-5,Jo=5,er=(function(){function i(n){var e=this;Yo(this,i),this.context=n,this.ui=u().summernote.ui,this.options=n.options,this.hidable=!0,this.onContextmenu=!1,this.pageX=null,this.pageY=null,this.events={"summernote.contextmenu":function(o){e.options.editing&&(o.preventDefault(),o.stopPropagation(),e.onContextmenu=!0,e.update(!0))},"summernote.mousedown":function(o,r){e.pageX=r.pageX,e.pageY=r.pageY},"summernote.keyup summernote.mouseup summernote.scroll":function(o,r){if(e.options.editing&&!e.onContextmenu){if(r.type=="keyup"){var a=e.context.invoke("editor.getLastRange"),s=a.getWordRange(),c=w.rect2bnd(m.last(s.getClientRects()));e.pageX=c.left,e.pageY=c.top}else e.pageX=r.pageX,e.pageY=r.pageY;e.update()}e.onContextmenu=!1},"summernote.disable summernote.change summernote.dialog.shown summernote.blur":function(){e.hide()},"summernote.focusout":function(){e.$popover.is(":active,:focus")||e.hide()}}}return Xo(i,[{key:"shouldInitialize",value:function(){return this.options.airMode&&!m.isEmpty(this.options.popover.air)}},{key:"initialize",value:function(){var e=this;this.$popover=this.ui.popover({className:"note-air-popover"}).render().appendTo(this.options.container);var t=this.$popover.find(".popover-content");this.context.invoke("buttons.build",t,this.options.popover.air),this.$popover.on("mousedown",function(){e.hidable=!1}),this.$popover.on("mouseup",function(){e.hidable=!0})}},{key:"destroy",value:function(){this.$popover.remove()}},{key:"update",value:function(e){var t=this.context.invoke("editor.currentStyle");if(t.range&&(!t.range.isCollapsed()||e)){var o={left:this.pageX,top:this.pageY},r=u()(this.options.container).offset();o.top-=r.top,o.left-=r.left,this.$popover.css({display:"block",left:Math.max(o.left,0)+Qo,top:o.top+Jo}),this.context.invoke("buttons.updateCurrentStyle",this.$popover)}else this.hide()}},{key:"updateCodeview",value:function(e){this.ui.toggleBtnActive(this.$popover.find(".btn-codeview"),e),e&&this.hide()}},{key:"hide",value:function(){this.hidable&&this.$popover.hide()}}]),i})();function tr(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function nr(i,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}function ir(i,n,e){return n&&nr(i.prototype,n),i}var _t=5,or=(function(){function i(n){var e=this;tr(this,i),this.context=n,this.ui=u().summernote.ui,this.$editable=n.layoutInfo.editable,this.options=n.options,this.hint=this.options.hint||[],this.direction=this.options.hintDirection||"bottom",this.hints=Array.isArray(this.hint)?this.hint:[this.hint],this.events={"summernote.keyup":function(o,r){r.isDefaultPrevented()||e.handleKeyup(r)},"summernote.keydown":function(o,r){e.handleKeydown(r)},"summernote.disable summernote.dialog.shown summernote.blur":function(){e.hide()}}}return ir(i,[{key:"shouldInitialize",value:function(){return this.hints.length>0}},{key:"initialize",value:function(){var e=this;this.lastWordRange=null,this.matchingWord=null,this.$popover=this.ui.popover({className:"note-hint-popover",hideArrow:!0,direction:""}).render().appendTo(this.options.container),this.$popover.hide(),this.$content=this.$popover.find(".popover-content,.note-popover-content"),this.$content.on("click",".note-hint-item",function(t){e.$content.find(".active").removeClass("active"),u()(t.currentTarget).addClass("active"),e.replace()}),this.$popover.on("mousedown",function(t){t.preventDefault()})}},{key:"destroy",value:function(){this.$popover.remove()}},{key:"selectItem",value:function(e){this.$content.find(".active").removeClass("active"),e.addClass("active"),this.$content[0].scrollTop=e[0].offsetTop-this.$content.innerHeight()/2}},{key:"moveDown",value:function(){var e=this.$content.find(".note-hint-item.active"),t=e.next();if(t.length)this.selectItem(t);else{var o=e.parent().next();o.length||(o=this.$content.find(".note-hint-group").first()),this.selectItem(o.find(".note-hint-item").first())}}},{key:"moveUp",value:function(){var e=this.$content.find(".note-hint-item.active"),t=e.prev();if(t.length)this.selectItem(t);else{var o=e.parent().prev();o.length||(o=this.$content.find(".note-hint-group").last()),this.selectItem(o.find(".note-hint-item").last())}}},{key:"replace",value:function(){var e=this.$content.find(".note-hint-item.active");if(e.length){var t=this.nodeFromItem(e);if(this.matchingWord!==null&&this.matchingWord.length===0)this.lastWordRange.so=this.lastWordRange.eo;else if(this.matchingWord!==null&&this.matchingWord.length>0&&!this.lastWordRange.isCollapsed()){var o=this.lastWordRange.eo-this.lastWordRange.so-this.matchingWord.length;o>0&&(this.lastWordRange.so+=o)}if(this.lastWordRange.insertNode(t),this.options.hintSelect==="next"){var r=document.createTextNode("");u()(t).after(r),q.createFromNodeBefore(r).select()}else q.createFromNodeAfter(t).select();this.lastWordRange=null,this.hide(),this.context.invoke("editor.focus"),this.context.triggerEvent("change",this.$editable.html(),this.$editable)}}},{key:"nodeFromItem",value:function(e){var t=this.hints[e.data("index")],o=e.data("item"),r=t.content?t.content(o):o;return typeof r=="string"&&(r=l.createText(r)),r}},{key:"createItemTemplates",value:function(e,t){var o=this.hints[e];return t.map(function(r,a){var s=u()('<div class="note-hint-item"></div>');return s.append(o.template?o.template(r):r+""),s.data({index:e,item:r}),e===0&&a===0&&s.addClass("active"),s})}},{key:"handleKeydown",value:function(e){this.$popover.is(":visible")&&(e.keyCode===Y.code.ENTER?(e.preventDefault(),this.replace()):e.keyCode===Y.code.UP?(e.preventDefault(),this.moveUp()):e.keyCode===Y.code.DOWN&&(e.preventDefault(),this.moveDown()))}},{key:"searchKeyword",value:function(e,t,o){var r=this.hints[e];if(r&&r.match.test(t)&&r.search){var a=r.match.exec(t);this.matchingWord=a[0],r.search(a[1],o)}else o()}},{key:"createGroup",value:function(e,t){var o=this,r=u()('<div class="note-hint-group note-hint-group-'+e+'"></div>');return this.searchKeyword(e,t,function(a){a=a||[],a.length&&(r.html(o.createItemTemplates(e,a)),o.show())}),r}},{key:"handleKeyup",value:function(e){var t=this;if(!m.contains([Y.code.ENTER,Y.code.UP,Y.code.DOWN],e.keyCode)){var o=this.context.invoke("editor.getLastRange"),r,a;if(this.options.hintMode==="words"){if(r=o.getWordsRange(o),a=r.toString(),this.hints.forEach(function(d){if(d.match.test(a))return r=o.getWordsMatchRange(d.match),!1}),!r){this.hide();return}a=r.toString()}else r=o.getWordRange(),a=r.toString();if(this.hints.length&&a){this.$content.empty();var s=w.rect2bnd(m.last(r.getClientRects())),c=u()(this.options.container).offset();s&&(s.top-=c.top,s.left-=c.left,this.$popover.hide(),this.lastWordRange=r,this.hints.forEach(function(d,f){d.match.test(a)&&t.createGroup(f,a).appendTo(t.$content)}),this.$content.find(".note-hint-item:first").addClass("active"),this.direction==="top"?this.$popover.css({left:s.left,top:s.top-this.$popover.outerHeight()-_t}):this.$popover.css({left:s.left,top:s.top+s.height+_t}))}else this.hide()}}},{key:"show",value:function(){this.$popover.show()}},{key:"hide",value:function(){this.$popover.hide()}}]),i})();u().summernote=u().extend(u().summernote,{version:"0.0.35",plugins:{},dom:l,range:q,lists:m,options:{openImageModal:null,openVideoModal:null,openLinkModal:null,langInfo:u().summernote.lang["en-US"],editing:!0,modules:{editor:Ci,clipboard:Ti,dropzone:Ri,codeview:Fi,statusbar:Mi,fullscreen:ji,handle:Vi,hintPopover:or,autoLink:Ji,autoSync:io,autoReplace:so,placeholder:fo,buttons:po,toolbar:ko,linkDialog:xo,linkPopover:Io,imageDialog:Lo,imagePopover:Bo,tablePopover:zo,videoDialog:Ko,helpDialog:Go,airPopover:er},buttons:{},lang:"en-US",followingToolbar:!1,toolbarPosition:"top",otherStaticBar:"",codeviewKeepButton:!1,toolbar:[["style",["style"]],["font",["bold","underline","clear"]],["fontname",["fontname"]],["color",["color"]],["para",["ul","ol","paragraph"]],["table",["table"]],["insert",["link","picture","video"]],["view",["fullscreen","codeview","help"]]],popatmouse:!0,popover:{image:[["resize",["resizeFull","resizeHalf","resizeQuarter","resizeNone"]],["float",["floatLeft","floatRight","floatNone"]],["remove",["removeMedia"]]],link:[["link",["linkDialogShow","unlink"]]],table:[["add",["addRowDown","addRowUp","addColLeft","addColRight"]],["delete",["deleteRow","deleteCol","deleteTable"]]],air:[["color",["color"]],["font",["bold","underline","clear"]],["para",["ul","paragraph"]],["table",["table"]],["insert",["link","picture"]],["view",["fullscreen","codeview"]]]},linkAddNoReferrer:!1,addLinkNoOpener:!1,airMode:!1,overrideContextMenu:!1,width:null,height:null,linkTargetBlank:!0,useProtocol:!0,defaultProtocol:"http://",focus:!1,tabDisable:!1,tabSize:4,styleWithCSS:!1,shortcuts:!0,textareaAutoSync:!0,tooltip:"auto",container:null,maxTextLength:0,blockquoteBreakingLevel:2,spellCheck:!0,disableGrammar:!1,placeholder:null,inheritPlaceholder:!1,recordEveryKeystroke:!1,historyLimit:200,showDomainOnlyForAutolink:!1,hintMode:"word",hintSelect:"after",hintDirection:"bottom",styleTags:["p","blockquote","pre","h1","h2","h3","h4","h5","h6"],fontNames:["Arial","Arial Black","Comic Sans MS","Courier New","Helvetica Neue","Helvetica","Impact","Lucida Grande","Tahoma","Times New Roman","Verdana"],fontNamesIgnoreCheck:[],addDefaultFonts:!0,fontSizes:["8","9","10","11","12","14","18","24","36"],fontSizeUnits:["px","pt"],colors:[["#000000","#424242","#636363","#9C9C94","#CEC6CE","#EFEFEF","#F7F7F7","#FFFFFF"],["#FF0000","#FF9C00","#FFFF00","#00FF00","#00FFFF","#0000FF","#9C00FF","#FF00FF"],["#F7C6CE","#FFE7CE","#FFEFC6","#D6EFD6","#CEDEE7","#CEE7F7","#D6D6E7","#E7D6DE"],["#E79C9C","#FFC69C","#FFE79C","#B5D6A5","#A5C6CE","#9CC6EF","#B5A5D6","#D6A5BD"],["#E76363","#F7AD6B","#FFD663","#94BD7B","#73A5AD","#6BADDE","#8C7BC6","#C67BA5"],["#CE0000","#E79439","#EFC631","#6BA54A","#4A7B8C","#3984C6","#634AA5","#A54A7B"],["#9C0000","#B56308","#BD9400","#397B21","#104A5A","#085294","#311873","#731842"],["#630000","#7B3900","#846300","#295218","#083139","#003163","#21104A","#4A1031"]],colorsName:[["Black","Tundora","Dove Gray","Star Dust","Pale Slate","Gallery","Alabaster","White"],["Red","Orange Peel","Yellow","Green","Cyan","Blue","Electric Violet","Magenta"],["Azalea","Karry","Egg White","Zanah","Botticelli","Tropical Blue","Mischka","Twilight"],["Tonys Pink","Peach Orange","Cream Brulee","Sprout","Casper","Perano","Cold Purple","Careys Pink"],["Mandy","Rajah","Dandelion","Olivine","Gulf Stream","Viking","Blue Marguerite","Puce"],["Guardsman Red","Fire Bush","Golden Dream","Chelsea Cucumber","Smalt Blue","Boston Blue","Butterfly Bush","Cadillac"],["Sangria","Mai Tai","Buddha Gold","Forest Green","Eden","Venice Blue","Meteorite","Claret"],["Rosewood","Cinnamon","Olive","Parsley","Tiber","Midnight Blue","Valentino","Loulou"]],colorButton:{foreColor:"#000000",backColor:"white"},lineHeights:["1.0","1.2","1.4","1.5","1.6","1.8","2.0","3.0"],tableClassName:"table table-bordered",insertTableMaxSize:{col:10,row:10},dialogsInBody:!1,dialogsFade:!1,maximumImageFileSize:null,acceptImageFileTypes:"image/*",allowClipboardImagePasting:!0,callbacks:{onBeforeCommand:null,onBlur:null,onBlurCodeview:null,onChange:null,onChangeCodeview:null,onDialogShown:null,onEnter:null,onFocus:null,onImageLinkInsert:null,onImageUpload:null,onImageUploadError:null,onInit:null,onKeydown:null,onKeyup:null,onMousedown:null,onMouseup:null,onPaste:null,onScroll:null},codemirror:{mode:"text/html",htmlMode:!0,lineNumbers:!0},codeviewFilter:!0,codeviewFilterRegex:/<\/*(?:applet|b(?:ase|gsound|link)|embed|frame(?:set)?|ilayer|l(?:ayer|ink)|meta|object|s(?:cript|tyle)|t(?:itle|extarea)|xml)[^>]*?>/gi,codeviewIframeFilter:!0,codeviewIframeWhitelistSrc:[],codeviewIframeWhitelistSrcBase:["www.youtube.com","www.youtube-nocookie.com","www.facebook.com","vine.co","instagram.com","player.vimeo.com","www.dailymotion.com","player.youku.com","jumpingbean.tv","v.qq.com"],keyMap:{pc:{ESC:"escape",ENTER:"insertParagraph","CTRL+Z":"undo","CTRL+Y":"redo",TAB:"tab","SHIFT+TAB":"untab","CTRL+B":"bold","CTRL+I":"italic","CTRL+U":"underline","CTRL+SHIFT+S":"strikethrough","CTRL+BACKSLASH":"removeFormat","CTRL+SHIFT+L":"justifyLeft","CTRL+SHIFT+E":"justifyCenter","CTRL+SHIFT+R":"justifyRight","CTRL+SHIFT+J":"justifyFull","CTRL+SHIFT+NUM7":"insertUnorderedList","CTRL+SHIFT+NUM8":"insertOrderedList","CTRL+LEFTBRACKET":"outdent","CTRL+RIGHTBRACKET":"indent","CTRL+NUM0":"formatPara","CTRL+NUM1":"formatH1","CTRL+NUM2":"formatH2","CTRL+NUM3":"formatH3","CTRL+NUM4":"formatH4","CTRL+NUM5":"formatH5","CTRL+NUM6":"formatH6","CTRL+ENTER":"insertHorizontalRule","CTRL+K":"linkDialog.show"},mac:{ESC:"escape",ENTER:"insertParagraph","CMD+Z":"undo","CMD+SHIFT+Z":"redo",TAB:"tab","SHIFT+TAB":"untab","CMD+B":"bold","CMD+I":"italic","CMD+U":"underline","CMD+SHIFT+S":"strikethrough","CMD+BACKSLASH":"removeFormat","CMD+SHIFT+L":"justifyLeft","CMD+SHIFT+E":"justifyCenter","CMD+SHIFT+R":"justifyRight","CMD+SHIFT+J":"justifyFull","CMD+SHIFT+NUM7":"insertUnorderedList","CMD+SHIFT+NUM8":"insertOrderedList","CMD+LEFTBRACKET":"outdent","CMD+RIGHTBRACKET":"indent","CMD+NUM0":"formatPara","CMD+NUM1":"formatH1","CMD+NUM2":"formatH2","CMD+NUM3":"formatH3","CMD+NUM4":"formatH4","CMD+NUM5":"formatH5","CMD+NUM6":"formatH6","CMD+ENTER":"insertHorizontalRule","CMD+K":"linkDialog.show"}},icons:{align:"note-icon-align",alignCenter:"note-icon-align-center",alignJustify:"note-icon-align-justify",alignLeft:"note-icon-align-left",alignRight:"note-icon-align-right",rowBelow:"note-icon-row-below",colBefore:"note-icon-col-before",colAfter:"note-icon-col-after",rowAbove:"note-icon-row-above",rowRemove:"note-icon-row-remove",colRemove:"note-icon-col-remove",indent:"note-icon-align-indent",outdent:"note-icon-align-outdent",arrowsAlt:"note-icon-arrows-alt",bold:"note-icon-bold",caret:"note-icon-caret",circle:"note-icon-circle",close:"note-icon-close",code:"note-icon-code",eraser:"note-icon-eraser",floatLeft:"note-icon-float-left",floatRight:"note-icon-float-right",font:"note-icon-font",frame:"note-icon-frame",italic:"note-icon-italic",link:"note-icon-link",unlink:"note-icon-chain-broken",magic:"note-icon-magic",menuCheck:"note-icon-menu-check",minus:"note-icon-minus",orderedlist:"note-icon-orderedlist",pencil:"note-icon-pencil",picture:"note-icon-picture",question:"note-icon-question",redo:"note-icon-redo",rollback:"note-icon-rollback",square:"note-icon-square",strikethrough:"note-icon-strikethrough",subscript:"note-icon-subscript",superscript:"note-icon-superscript",table:"note-icon-table",textHeight:"note-icon-text-height",trash:"note-icon-trash",underline:"note-icon-underline",undo:"note-icon-undo",unorderedlist:"note-icon-unorderedlist",video:"note-icon-video"}}});function Me(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Me=function(e){return typeof e}:Me=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Me(i)}function rr(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function ar(i,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}function sr(i,n,e){return n&&ar(i.prototype,n),i}var lr=(function(){function i(n,e,t,o){rr(this,i),this.markup=n,this.children=e,this.options=t,this.callback=o}return sr(i,[{key:"render",value:function(e){var t=u()(this.markup);if(this.options&&this.options.contents&&t.html(this.options.contents),this.options&&this.options.className&&t.addClass(this.options.className),this.options&&this.options.data&&u().each(this.options.data,function(r,a){t.attr("data-"+r,a)}),this.options&&this.options.click&&t.on("click",this.options.click),this.children){var o=t.find(".note-children-container");this.children.forEach(function(r){r.render(o.length?o:t)})}return this.callback&&this.callback(t,this.options),this.options&&this.options.callback&&this.options.callback(t),e&&e.append(t),t}}]),i})();const ae={create:function(n,e){return function(){var t=Me(arguments[1])==="object"?arguments[1]:arguments[0],o=Array.isArray(arguments[0])?arguments[0]:[];return t&&t.children&&(o=t.children),new lr(n,o,t,e)}}};function ze(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ze=function(e){return typeof e}:ze=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ze(i)}var ut=ae.create('<div class="note-editor note-frame card"></div>'),ct=ae.create('<div class="note-toolbar card-header" role="toolbar"></div>'),_e=ae.create('<div class="note-editing-area"></div>'),Ue=ae.create('<textarea class="note-codable" aria-multiline="true"></textarea>'),dt=ae.create('<div class="note-editable card-block" contentEditable="true" role="textbox" aria-multiline="true"/>'),ft=ae.create(['<output class="note-status-output" role="status" aria-live="polite"></output>','<div class="note-statusbar" role="status">','<div class="note-resizebar" aria-label="Resize">','<div class="note-icon-bar"></div>','<div class="note-icon-bar"></div>','<div class="note-icon-bar"></div>',"</div>","</div>"].join("")),Ut=ae.create('<div class="note-editor note-airframe"></div>'),jt=ae.create(['<div class="note-editable" contentEditable="true" role="textbox" aria-multiline="true"></div>','<output class="note-status-output" role="status" aria-live="polite"></output>'].join("")),ur=ae.create('<div class="note-btn-group btn-group">'),cr=ae.create('<div class="note-dropdown-menu dropdown-menu" role="list">',function(i,n){var e=Array.isArray(n.items)?n.items.map(function(t){var o=typeof t=="string"?t:t.value||"",r=n.template?n.template(t):t,a=ze(t)==="object"?t.option:void 0,s='data-value="'+o+'"',c=a!==void 0?' data-option="'+a+'"':"";return'<a class="dropdown-item" href="#" '+(s+c)+' role="listitem" aria-label="'+o+'">'+r+"</a>"}).join(""):n.items;i.html(e).attr({"aria-label":n.title}),n&&n.codeviewKeepButton&&i.addClass("note-codeview-keep")}),dr=function(n){return n},fr=ae.create('<div class="note-dropdown-menu dropdown-menu note-check" role="list">',function(i,n){var e=Array.isArray(n.items)?n.items.map(function(t){var o=typeof t=="string"?t:t.value||"",r=n.template?n.template(t):t;return'<a class="dropdown-item" href="#" data-value="'+o+'" role="listitem" aria-label="'+t+'">'+Kt(n.checkClassName)+" "+r+"</a>"}).join(""):n.items;i.html(e).attr({"aria-label":n.title}),n&&n.codeviewKeepButton&&i.addClass("note-codeview-keep")}),hr=ae.create('<div class="modal note-modal" aria-hidden="false" tabindex="-1" role="dialog"></div>',function(i,n){n.fade&&i.addClass("fade"),i.attr({"aria-label":n.title}),i.html(['<div class="modal-dialog">','<div class="modal-content">',n.title?'<div class="modal-header"><h4 class="modal-title">'+n.title+'</h4><button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close" aria-hidden="true"></button></div>':"",'<div class="modal-body">'+n.body+"</div>",n.footer?'<div class="modal-footer">'+n.footer+"</div>":"","</div>","</div>"].join(""))}),vr=ae.create(['<div class="note-popover popover bs-popover-auto show">','<div class="popover-arrow"></div>','<div class="popover-body note-popover-content note-children-container"></div>',"</div>"].join(""),function(i,n){var e=typeof n.direction<"u"?n.direction:"bottom";i.attr("data-popper-placement",e),n.hideArrow&&i.find(".popover-arrow").hide()}),mr=ae.create('<div class="form-check"></div>',function(i,n){i.html(['<label class="form-check-label"'+(n.id?' for="note-'+n.id+'"':"")+">",'<input type="checkbox" class="form-check-input"'+(n.id?' id="note-'+n.id+'"':""),n.checked?" checked":"",' aria-label="'+(n.text?n.text:"")+'"',' aria-checked="'+(n.checked?"true":"false")+'"/>'," "+(n.text?n.text:"")+"</label>"].join(""))}),Kt=function(n,e){return n.match(/^</)?n:(e=e||"i","<"+e+' class="'+n+'"></'+e+">")},pr=function(n){return{editor:ut,toolbar:ct,editingArea:_e,codable:Ue,editable:dt,statusbar:ft,airEditor:Ut,airEditable:jt,buttonGroup:ur,dropdown:cr,dropdownButtonContents:dr,dropdownCheck:fr,dialog:hr,popover:vr,icon:Kt,checkbox:mr,options:n,palette:function(t,o){return ae.create('<div class="note-color-palette"></div>',function(r,a){for(var s=[],c=0,d=a.colors.length;c<d;c++){for(var f=a.eventName,h=a.colors[c],g=a.colorsName[c],b=[],I=0,F=h.length;I<F;I++){var K=h[I],se=g[I];b.push(['<button type="button" class="note-color-btn"','style="background-color:',K,'" ','data-event="',f,'" ','data-value="',K,'" ','title="',se,'" ','aria-label="',se,'" ','data-toggle="button" tabindex="-1"></button>'].join(""))}s.push('<div class="note-color-row">'+b.join("")+"</div>")}r.html(s.join("")),a.tooltip&&r.find(".note-color-btn").tooltip({container:a.container||n.container,trigger:"hover",placement:"bottom"})})(t,o)},button:function(t,o){return ae.create('<button type="button" class="note-btn btn btn-outline-secondary btn-sm" tabindex="-1">',function(r,a){a&&a.data&&a.data.toggle==="dropdown"?(r.removeAttr("data-toggle"),r.attr("data-bs-toggle","dropdown"),a&&a.tooltip&&r.attr({title:a.tooltip,"aria-label":a.tooltip})):a&&a.tooltip&&r.attr({title:a.tooltip,"aria-label":a.tooltip}).tooltip({container:a.container||n.container,trigger:"hover",placement:"bottom"}).on("click",function(s){u()(s.currentTarget).tooltip("hide")}),a&&a.codeviewButton&&r.addClass("note-codeview-keep")})(t,o)},toggleBtn:function(t,o){t.toggleClass("disabled",!o),t.attr("disabled",!o)},toggleBtnActive:function(t,o){t.toggleClass("active",o)},onDialogShown:function(t,o){t.one("shown.bs.modal",o)},onDialogHidden:function(t,o){t.one("hidden.bs.modal",o)},showDialog:function(t){t.modal("show")},hideDialog:function(t){t.modal("hide")},createLayout:function(t){var o=(n.airMode?Ut([_e([Ue(),jt()])]):n.toolbarPosition==="bottom"?ut([_e([Ue(),dt()]),ct(),ft()]):ut([ct(),_e([Ue(),dt()]),ft()])).render();return o.insertAfter(t),{note:t,editor:o,toolbar:o.find(".note-toolbar"),editingArea:o.find(".note-editing-area"),editable:o.find(".note-editable"),codable:o.find(".note-codable"),statusbar:o.find(".note-statusbar")}},removeLayout:function(t,o){t.html(o.editable.html()),o.editor.remove(),t.show()}}};u().summernote=u().extend(u().summernote,{ui_template:pr,interface:"bs5"}),u().summernote.options.styleTags=["p",{title:"Blockquote",tag:"blockquote",className:"blockquote",value:"blockquote"},"pre","h1","h2","h3","h4","h5","h6"]})(),H})())}).call(V,y(1))}),(function(O,V){}),(function(O,V){}),(function(O,V,y){(function(x){if(x.env.NODE_ENV!=="production"){var T=typeof Symbol=="function"&&Symbol.for&&Symbol.for("react.element")||60103,M=function(R){return typeof R=="object"&&R!==null&&R.$$typeof===T},D=!0;O.exports=y(14)(M,D)}else O.exports=y(13)()}).call(V,y(0))}),(function(O,V){O.exports=pt}),(function(O,V,y){(function(x){Object.defineProperty(V,"__esModule",{value:!0});var T=(function(){function A(S,k){for(var v=0;v<k.length;v++){var L=k[v];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(S,L.key,L)}}return function(S,k,v){return k&&A(S.prototype,k),v&&A(S,v),S}})();y(6),y(7),y(8);var M=y(10),D=E(M),R=y(9),H=E(R);function E(A){return A&&A.__esModule?A:{default:A}}function u(A,S){if(!(A instanceof S))throw new TypeError("Cannot call a class as a function")}function $(A,S){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:A}function Z(A,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);A.prototype=Object.create(S&&S.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(A,S):A.__proto__=S)}var ne=function(){return Math.floor(Math.random()*1e5)},B=(function(A){Z(S,A);function S(k){u(this,S);var v=$(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,k));return v.uid="react-summernote-"+ne(),v.editor={},v.noteEditable=null,v.notePlaceholder=null,v.onInit=v.onInit.bind(v),v.onImageUpload=v.onImageUpload.bind(v),v.focus=v.focus.bind(v),v.isEmpty=v.isEmpty.bind(v),v.reset=v.reset.bind(v),v.replace=v.replace.bind(v),v.disable=v.disable.bind(v),v.enable=v.enable.bind(v),v.toggleState=v.toggleState.bind(v),v.insertImage=v.insertImage.bind(v),v.insertNode=v.insertNode.bind(v),v.insertText=v.insertText.bind(v),S.focus=v.focus.bind(v),S.isEmpty=v.isEmpty.bind(v),S.reset=v.reset.bind(v),S.replace=v.replace.bind(v),S.disable=v.disable.bind(v),S.enable=v.enable.bind(v),S.toggleState=v.toggleState.bind(v),S.insertImage=v.insertImage.bind(v),S.insertNode=v.insertNode.bind(v),S.insertText=v.insertText.bind(v),v}return T(S,[{key:"componentDidMount",value:function(){var v=this.props.options||{},L=this.props.codeview;v.callbacks=this.callbacks,this.editor=x("#"+this.uid),this.editor.summernote(v),L&&this.editor.summernote("codeview.activate")}},{key:"UNSAFE_componentWillReceiveProps",value:function(v){var L=this.props,le=v.codeview,z=le?"codeview.activate":"codeview.deactivate";typeof v.value=="string"&&L.value!==v.value&&this.replace(v.value),typeof v.disabled=="boolean"&&L.disabled!==v.disabled&&this.toggleState(v.disabled),le!==L.codeview&&this.editor.summernote(z)}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"componentWillUnmount",value:function(){this.editor.summernote&&this.editor.summernote("destroy")}},{key:"onInit",value:function(){var v=this.props,L=v.disabled,le=v.onInit,z=this.editor.parent();this.noteEditable=z.find(".note-editable"),this.notePlaceholder=z.find(".note-placeholder"),typeof L=="boolean"&&this.toggleState(L),typeof le=="function"&&le({summernote:this.editor.summernote.bind(this.editor),noteEditable:this.noteEditable,notePlaceholder:this.notePlaceholder,focus:this.focus,isEmpty:this.isEmpty,reset:this.reset,replace:this.replace,disable:this.disable,enable:this.enable,insertImage:this.insertImage,insertNode:this.insertNode,insertText:this.insertText})}},{key:"onImageUpload",value:function(v){var L=this.props.onImageUpload;typeof L=="function"&&L(v,this.insertImage)}},{key:"focus",value:function(){this.editor.summernote("focus")}},{key:"isEmpty",value:function(){return this.editor.summernote("isEmpty")}},{key:"reset",value:function(){this.editor.summernote("reset")}},{key:"replace",value:function(v){var L=this.noteEditable,le=this.notePlaceholder,z=L.html(),we=v.length;z!==v&&(this.isEmpty()&&we>0?le.hide():we===0&&le.show(),L.html(v))}},{key:"disable",value:function(){this.editor.summernote("disable")}},{key:"enable",value:function(){this.editor.summernote("enable")}},{key:"toggleState",value:function(v){v?this.disable():this.enable()}},{key:"insertImage",value:function(v,L){this.editor.summernote("insertImage",v,L)}},{key:"insertNode",value:function(v){this.editor.summernote("insertNode",v)}},{key:"insertText",value:function(v){this.editor.summernote("insertText",v)}},{key:"render",value:function(){var v=this.props,L=v.tag,le=v.children,z=v.className;return D.default.createElement("div",{className:z},D.default.createElement(L,{id:this.uid},le))}},{key:"callbacks",get:function(){var v=this.props;return{onInit:this.onInit,onEnter:v.onEnter,onFocus:v.onFocus,onBlur:v.onBlur,onKeyup:v.onKeyUp,onKeydown:v.onKeyDown,onPaste:v.onPaste,onChange:v.onChange,onImageUpload:this.onImageUpload}}}]),S})(M.Component);B.propTypes={tag:H.default.string,children:H.default.node,codeview:H.default.bool,className:H.default.string,options:H.default.object,disabled:H.default.bool,onInit:H.default.func,onEnter:H.default.func,onFocus:H.default.func,onBlur:H.default.func,onKeyUp:H.default.func,onKeyDown:H.default.func,onPaste:H.default.func,onChange:H.default.func,onImageUpload:H.default.func},B.defaultProps={tag:"div"},V.default=B}).call(V,y(1))}),(function(O,V,y){(function(x){if(x.env.NODE_ENV!=="production")var T=y(3),M=y(5),D=y(4),R={};function H(E,u,$,Z,ne){if(x.env.NODE_ENV!=="production"){for(var B in E)if(E.hasOwnProperty(B)){var A;try{T(typeof E[B]=="function","%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",Z||"React class",$,B),A=E[B](u,B,Z,$,null,D)}catch(k){A=k}if(M(!A||A instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Z||"React class",$,B,typeof A),A instanceof Error&&!(A.message in R)){R[A.message]=!0;var S=ne?ne():"";M(!1,"Failed %s type: %s%s",$,A.message,S??"")}}}}O.exports=H}).call(V,y(0))}),(function(O,V,y){var x=y(2),T=y(3),M=y(4);O.exports=function(){function D(E,u,$,Z,ne,B){B!==M&&T(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}D.isRequired=D;function R(){return D}var H={array:D,bool:D,func:D,number:D,object:D,string:D,symbol:D,any:D,arrayOf:R,element:D,instanceOf:R,node:D,objectOf:R,oneOf:R,oneOfType:R,shape:R};return H.checkPropTypes=x,H.PropTypes=H,H}}),(function(O,V,y){(function(x){var T=y(2),M=y(3),D=y(5),R=y(4),H=y(12);O.exports=function(E,u){var $=typeof Symbol=="function"&&Symbol.iterator,Z="@@iterator";function ne(p){var P=p&&($&&p[$]||p[Z]);if(typeof P=="function")return P}var B="<<anonymous>>",A={array:L("array"),bool:L("boolean"),func:L("function"),number:L("number"),object:L("object"),string:L("string"),symbol:L("symbol"),any:le(),arrayOf:z,element:we(),instanceOf:Ve,node:Xe(),objectOf:Ye,oneOf:Ge,oneOfType:Ze,shape:Qe};function S(p,P){return p===P?p!==0||1/p===1/P:p!==p&&P!==P}function k(p){this.message=p,this.stack=""}k.prototype=Error.prototype;function v(p){if(x.env.NODE_ENV!=="production")var P={},X=0;function G(ee,U,_,j,Q,ie,Ce){if(j=j||B,ie=ie||_,Ce!==R){if(u)M(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if(x.env.NODE_ENV!=="production"&&typeof console<"u"){var Le=j+":"+_;!P[Le]&&X<3&&(D(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",ie,j),P[Le]=!0,X++)}}return U[_]==null?ee?U[_]===null?new k("The "+Q+" `"+ie+"` is marked as required "+("in `"+j+"`, but its value is `null`.")):new k("The "+Q+" `"+ie+"` is marked as required in "+("`"+j+"`, but its value is `undefined`.")):null:p(U,_,j,Q,ie)}var w=G.bind(null,!1);return w.isRequired=G.bind(null,!0),w}function L(p){function P(X,G,w,ee,U,_){var j=X[G],Q=me(j);if(Q!==p){var ie=$e(j);return new k("Invalid "+ee+" `"+U+"` of type "+("`"+ie+"` supplied to `"+w+"`, expected ")+("`"+p+"`."))}return null}return v(P)}function le(){return v(T.thatReturnsNull)}function z(p){function P(X,G,w,ee,U){if(typeof p!="function")return new k("Property `"+U+"` of component `"+w+"` has invalid PropType notation inside arrayOf.");var _=X[G];if(!Array.isArray(_)){var j=me(_);return new k("Invalid "+ee+" `"+U+"` of type "+("`"+j+"` supplied to `"+w+"`, expected an array."))}for(var Q=0;Q<_.length;Q++){var ie=p(_,Q,w,ee,U+"["+Q+"]",R);if(ie instanceof Error)return ie}return null}return v(P)}function we(){function p(P,X,G,w,ee){var U=P[X];if(!E(U)){var _=me(U);return new k("Invalid "+w+" `"+ee+"` of type "+("`"+_+"` supplied to `"+G+"`, expected a single ReactElement."))}return null}return v(p)}function Ve(p){function P(X,G,w,ee,U){if(!(X[G]instanceof p)){var _=p.name||B,j=tt(X[G]);return new k("Invalid "+ee+" `"+U+"` of type "+("`"+j+"` supplied to `"+w+"`, expected ")+("instance of `"+_+"`."))}return null}return v(P)}function Ge(p){if(!Array.isArray(p))return x.env.NODE_ENV!=="production"&&D(!1,"Invalid argument supplied to oneOf, expected an instance of array."),T.thatReturnsNull;function P(X,G,w,ee,U){for(var _=X[G],j=0;j<p.length;j++)if(S(_,p[j]))return null;var Q=JSON.stringify(p);return new k("Invalid "+ee+" `"+U+"` of value `"+_+"` "+("supplied to `"+w+"`, expected one of "+Q+"."))}return v(P)}function Ye(p){function P(X,G,w,ee,U){if(typeof p!="function")return new k("Property `"+U+"` of component `"+w+"` has invalid PropType notation inside objectOf.");var _=X[G],j=me(_);if(j!=="object")return new k("Invalid "+ee+" `"+U+"` of type "+("`"+j+"` supplied to `"+w+"`, expected an object."));for(var Q in _)if(_.hasOwnProperty(Q)){var ie=p(_,Q,w,ee,U+"."+Q,R);if(ie instanceof Error)return ie}return null}return v(P)}function Ze(p){if(!Array.isArray(p))return x.env.NODE_ENV!=="production"&&D(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),T.thatReturnsNull;for(var P=0;P<p.length;P++){var X=p[P];if(typeof X!="function")return D(!1,"Invalid argument supplid to oneOfType. Expected an array of check functions, but received %s at index %s.",et(X),P),T.thatReturnsNull}function G(w,ee,U,_,j){for(var Q=0;Q<p.length;Q++){var ie=p[Q];if(ie(w,ee,U,_,j,R)==null)return null}return new k("Invalid "+_+" `"+j+"` supplied to "+("`"+U+"`."))}return v(G)}function Xe(){function p(P,X,G,w,ee){return Se(P[X])?null:new k("Invalid "+w+" `"+ee+"` supplied to "+("`"+G+"`, expected a ReactNode."))}return v(p)}function Qe(p){function P(X,G,w,ee,U){var _=X[G],j=me(_);if(j!=="object")return new k("Invalid "+ee+" `"+U+"` of type `"+j+"` "+("supplied to `"+w+"`, expected `object`."));for(var Q in p){var ie=p[Q];if(ie){var Ce=ie(_,Q,w,ee,U+"."+Q,R);if(Ce)return Ce}}return null}return v(P)}function Se(p){switch(typeof p){case"number":case"string":case"undefined":return!0;case"boolean":return!p;case"object":if(Array.isArray(p))return p.every(Se);if(p===null||E(p))return!0;var P=ne(p);if(P){var X=P.call(p),G;if(P!==p.entries){for(;!(G=X.next()).done;)if(!Se(G.value))return!1}else for(;!(G=X.next()).done;){var w=G.value;if(w&&!Se(w[1]))return!1}}else return!1;return!0;default:return!1}}function Je(p,P){return p==="symbol"||P["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&P instanceof Symbol}function me(p){var P=typeof p;return Array.isArray(p)?"array":p instanceof RegExp?"object":Je(P,p)?"symbol":P}function $e(p){if(typeof p>"u"||p===null)return""+p;var P=me(p);if(P==="object"){if(p instanceof Date)return"date";if(p instanceof RegExp)return"regexp"}return P}function et(p){var P=$e(p);switch(P){case"array":case"object":return"an "+P;case"boolean":case"date":case"regexp":return"a "+P;default:return P}}function tt(p){return!p.constructor||!p.constructor.name?B:p.constructor.name}return A.checkPropTypes=H,A.PropTypes=A,A}}).call(V,y(0))})])})})(qe.__module)),qe.__module.exports}exports.__require=wr;
|
|
1
|
+
"use strict";function r(){return[]}module.exports=r;
|