Debian Codegraph @

extensions/CodeEditor/modules/lib/ace/mode-sass.js

raw symbols SCIP
1 ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"], function(require, exports, module){"use strict";
2 var oop = require("../lib/oop");
3 var lang = require("../lib/lang");
4 var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
5 var supportType = exports.supportType = "align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index";
6 var supportFunction = exports.supportFunction = "rgb|rgba|url|attr|counter|counters";
7 var supportConstant = exports.supportConstant = "absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|flex-end|flex-start|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom";
8 var supportConstantColor = exports.supportConstantColor = "aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen";
9 var supportConstantFonts = exports.supportConstantFonts = "arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace";
10 var numRe = exports.numRe = "\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))";
11 var pseudoElements = exports.pseudoElements = "(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b";
12 var pseudoClasses = exports.pseudoClasses = "(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b";
13 var CssHighlightRules = function () {
14 var keywordMapper = this.createKeywordMapper({
15 "support.function": supportFunction,
16 "support.constant": supportConstant,
17 "support.type": supportType,
18 "support.constant.color": supportConstantColor,
19 "support.constant.fonts": supportConstantFonts
20 }, "text", true);
21 this.$rules = {
22 "start": [{
23 include: ["strings", "url", "comments"]
24 }, {
25 token: "paren.lparen",
26 regex: "\\{",
27 next: "ruleset"
28 }, {
29 token: "paren.rparen",
30 regex: "\\}"
31 }, {
32 token: "string",
33 regex: "@(?!viewport)",
34 next: "media"
35 }, {
36 token: "keyword",
37 regex: "#[a-z0-9-_]+"
38 }, {
39 token: "keyword",
40 regex: "%"
41 }, {
42 token: "variable",
43 regex: "\\.[a-z0-9-_]+"
44 }, {
45 token: "string",
46 regex: ":[a-z0-9-_]+"
47 }, {
48 token: "constant.numeric",
49 regex: numRe
50 }, {
51 token: "constant",
52 regex: "[a-z0-9-_]+"
53 }, {
54 caseInsensitive: true
55 }],
56 "media": [{
57 include: ["strings", "url", "comments"]
58 }, {
59 token: "paren.lparen",
60 regex: "\\{",
61 next: "start"
62 }, {
63 token: "paren.rparen",
64 regex: "\\}",
65 next: "start"
66 }, {
67 token: "string",
68 regex: ";",
69 next: "start"
70 }, {
71 token: "keyword",
72 regex: "(?:media|supports|document|charset|import|namespace|media|supports|document"
73 + "|page|font|keyframes|viewport|counter-style|font-feature-values"
74 + "|swash|ornaments|annotation|stylistic|styleset|character-variant)"
75 }],
76 "comments": [{
77 token: "comment", // multi line comment
78 regex: "\\/\\*",
79 push: [{
80 token: "comment",
81 regex: "\\*\\/",
82 next: "pop"
83 }, {
84 defaultToken: "comment"
85 }]
86 }],
87 "ruleset": [{
88 regex: "-(webkit|ms|moz|o)-",
89 token: "text"
90 }, {
91 token: "punctuation.operator",
92 regex: "[:;]"
93 }, {
94 token: "paren.rparen",
95 regex: "\\}",
96 next: "start"
97 }, {
98 include: ["strings", "url", "comments"]
99 }, {
100 token: ["constant.numeric", "keyword"],
101 regex: "(" + numRe + ")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"
102 }, {
103 token: "constant.numeric",
104 regex: numRe
105 }, {
106 token: "constant.numeric", // hex6 color
107 regex: "#[a-f0-9]{6}"
108 }, {
109 token: "constant.numeric", // hex3 color
110 regex: "#[a-f0-9]{3}"
111 }, {
112 token: ["punctuation", "entity.other.attribute-name.pseudo-element.css"],
113 regex: pseudoElements
114 }, {
115 token: ["punctuation", "entity.other.attribute-name.pseudo-class.css"],
116 regex: pseudoClasses
117 }, {
118 include: "url"
119 }, {
120 token: keywordMapper,
121 regex: "\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"
122 }, {
123 caseInsensitive: true
124 }],
125 url: [{
126 token: "support.function",
127 regex: "(?:url(:?-prefix)?|domain|regexp)\\(",
128 push: [{
129 token: "support.function",
130 regex: "\\)",
131 next: "pop"
132 }, {
133 defaultToken: "string"
134 }]
135 }],
136 strings: [{
137 token: "string.start",
138 regex: "'",
139 push: [{
140 token: "string.end",
141 regex: "'|$",
142 next: "pop"
143 }, {
144 include: "escapes"
145 }, {
146 token: "constant.language.escape",
147 regex: /\\$/,
148 consumeLineEnd: true
149 }, {
150 defaultToken: "string"
151 }]
152 }, {
153 token: "string.start",
154 regex: '"',
155 push: [{
156 token: "string.end",
157 regex: '"|$',
158 next: "pop"
159 }, {
160 include: "escapes"
161 }, {
162 token: "constant.language.escape",
163 regex: /\\$/,
164 consumeLineEnd: true
165 }, {
166 defaultToken: "string"
167 }]
168 }],
169 escapes: [{
170 token: "constant.language.escape",
171 regex: /\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/
172 }]
173 };
174 this.normalizeRules();
175 };
176 oop.inherits(CssHighlightRules, TextHighlightRules);
177 exports.CssHighlightRules = CssHighlightRules;
178
179 });
180
181 ace.define("ace/mode/scss_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/css_highlight_rules"], function(require, exports, module){"use strict";
182 var oop = require("../lib/oop");
183 var lang = require("../lib/lang");
184 var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
185 var CssHighlightRules = require("./css_highlight_rules");
186 var ScssHighlightRules = function () {
187 var properties = lang.arrayToMap(CssHighlightRules.supportType.split("|"));
188 var functions = lang.arrayToMap(("hsl|hsla|rgb|rgba|url|attr|counter|counters|abs|adjust_color|adjust_hue|" +
189 "alpha|join|blue|ceil|change_color|comparable|complement|darken|desaturate|" +
190 "floor|grayscale|green|hue|if|invert|join|length|lighten|lightness|mix|" +
191 "nth|opacify|opacity|percentage|quote|red|round|saturate|saturation|" +
192 "scale_color|transparentize|type_of|unit|unitless|unquote").split("|"));
193 var constants = lang.arrayToMap(CssHighlightRules.supportConstant.split("|"));
194 var colors = lang.arrayToMap(CssHighlightRules.supportConstantColor.split("|"));
195 var keywords = lang.arrayToMap(("@mixin|@extend|@include|@import|@media|@debug|@warn|@if|@for|@each|@while|@else|@font-face|@-webkit-keyframes|if|and|!default|module|def|end|declare").split("|"));
196 var tags = lang.arrayToMap(("a|abbr|acronym|address|applet|area|article|aside|audio|b|base|basefont|bdo|" +
197 "big|blockquote|body|br|button|canvas|caption|center|cite|code|col|colgroup|" +
198 "command|datalist|dd|del|details|dfn|dir|div|dl|dt|em|embed|fieldset|" +
199 "figcaption|figure|font|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|" +
200 "header|hgroup|hr|html|i|iframe|img|input|ins|keygen|kbd|label|legend|li|" +
201 "link|map|mark|menu|meta|meter|nav|noframes|noscript|object|ol|optgroup|" +
202 "option|output|p|param|pre|progress|q|rp|rt|ruby|s|samp|script|section|select|" +
203 "small|source|span|strike|strong|style|sub|summary|sup|table|tbody|td|" +
204 "textarea|tfoot|th|thead|time|title|tr|tt|u|ul|var|video|wbr|xmp").split("|"));
205 var numRe = "\\-?(?:(?:[0-9]+)|(?:[0-9]*\\.[0-9]+))";
206 this.$rules = {
207 "start": [
208 {
209 token: "comment",
210 regex: "\\/\\/.*$"
211 },
212 {
213 token: "comment", // multi line comment
214 regex: "\\/\\*",
215 next: "comment"
216 }, {
217 token: "string", // single line
218 regex: '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
219 }, {
220 token: "string", // multi line string start
221 regex: '["].*\\\\$',
222 next: "qqstring"
223 }, {
224 token: "string", // single line
225 regex: "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
226 }, {
227 token: "string", // multi line string start
228 regex: "['].*\\\\$",
229 next: "qstring"
230 }, {
231 token: "constant.numeric",
232 regex: numRe + "(?:ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"
233 }, {
234 token: "constant.numeric", // hex6 color
235 regex: "#[a-f0-9]{6}"
236 }, {
237 token: "constant.numeric", // hex3 color
238 regex: "#[a-f0-9]{3}"
239 }, {
240 token: "constant.numeric",
241 regex: numRe
242 }, {
243 token: ["support.function", "string", "support.function"],
244 regex: "(url\\()(.*)(\\))"
245 }, {
246 token: function (value) {
247 if (properties.hasOwnProperty(value.toLowerCase()))
248 return "support.type";
249 if (keywords.hasOwnProperty(value))
250 return "keyword";
251 else if (constants.hasOwnProperty(value))
252 return "constant.language";
253 else if (functions.hasOwnProperty(value))
254 return "support.function";
255 else if (colors.hasOwnProperty(value.toLowerCase()))
256 return "support.constant.color";
257 else if (tags.hasOwnProperty(value.toLowerCase()))
258 return "variable.language";
259 else
260 return "text";
261 },
262 regex: "\\-?[@a-z_][@a-z0-9_\\-]*"
263 }, {
264 token: "variable",
265 regex: "[a-z_\\-$][a-z0-9_\\-$]*\\b"
266 }, {
267 token: "variable.language",
268 regex: "#[a-z0-9-_]+"
269 }, {
270 token: "variable.language",
271 regex: "\\.[a-z0-9-_]+"
272 }, {
273 token: "variable.language",
274 regex: ":[a-z0-9-_]+"
275 }, {
276 token: "constant",
277 regex: "[a-z0-9-_]+"
278 }, {
279 token: "keyword.operator",
280 regex: "<|>|<=|>=|==|!=|-|%|#|\\+|\\$|\\+|\\*"
281 }, {
282 token: "paren.lparen",
283 regex: "[[({]"
284 }, {
285 token: "paren.rparen",
286 regex: "[\\])}]"
287 }, {
288 token: "text",
289 regex: "\\s+"
290 }, {
291 caseInsensitive: true
292 }
293 ],
294 "comment": [
295 {
296 token: "comment", // closing comment
297 regex: "\\*\\/",
298 next: "start"
299 }, {
300 defaultToken: "comment"
301 }
302 ],
303 "qqstring": [
304 {
305 token: "string",
306 regex: '(?:(?:\\\\.)|(?:[^"\\\\]))*?"',
307 next: "start"
308 }, {
309 token: "string",
310 regex: '.+'
311 }
312 ],
313 "qstring": [
314 {
315 token: "string",
316 regex: "(?:(?:\\\\.)|(?:[^'\\\\]))*?'",
317 next: "start"
318 }, {
319 token: "string",
320 regex: '.+'
321 }
322 ]
323 };
324 };
325 oop.inherits(ScssHighlightRules, TextHighlightRules);
326 exports.ScssHighlightRules = ScssHighlightRules;
327
328 });
329
330 ace.define("ace/mode/sass_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/scss_highlight_rules"], function(require, exports, module){"use strict";
331 var oop = require("../lib/oop");
332 var lang = require("../lib/lang");
333 var ScssHighlightRules = require("./scss_highlight_rules").ScssHighlightRules;
334 var SassHighlightRules = function () {
335 ScssHighlightRules.call(this);
336 var start = this.$rules.start;
337 if (start[1].token == "comment") {
338 start.splice(1, 1, {
339 onMatch: function (value, currentState, stack) {
340 stack.unshift(this.next, -1, value.length - 2, currentState);
341 return "comment";
342 },
343 regex: /^\s*\/\*/,
344 next: "comment"
345 }, {
346 token: "error.invalid",
347 regex: "/\\*|[{;}]"
348 }, {
349 token: "support.type",
350 regex: /^\s*:[\w\-]+\s/
351 });
352 this.$rules.comment = [
353 { regex: /^\s*/, onMatch: function (value, currentState, stack) {
354 if (stack[1] === -1)
355 stack[1] = Math.max(stack[2], value.length - 1);
356 if (value.length <= stack[1]) { stack.shift();
357 stack.shift();
358 stack.shift();
359 this.next = stack.shift();
360 return "text";
361 }
362 else {
363 this.next = "";
364 return "comment";
365 }
366 }, next: "start" },
367 { defaultToken: "comment" }
368 ];
369 }
370 };
371 oop.inherits(SassHighlightRules, ScssHighlightRules);
372 exports.SassHighlightRules = SassHighlightRules;
373
374 });
375
376 ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"], function(require, exports, module){"use strict";
377 var oop = require("../../lib/oop");
378 var BaseFoldMode = require("./fold_mode").FoldMode;
379 var Range = require("../../range").Range;
380 var FoldMode = exports.FoldMode = function () { };
381 oop.inherits(FoldMode, BaseFoldMode);
382 (function () {
383 this.commentBlock = function (session, row) {
384 var re = /\S/;
385 var line = session.getLine(row);
386 var startLevel = line.search(re);
387 if (startLevel == -1 || line[startLevel] != "#")
388 return;
389 var startColumn = line.length;
390 var maxRow = session.getLength();
391 var startRow = row;
392 var endRow = row;
393 while (++row < maxRow) {
394 line = session.getLine(row);
395 var level = line.search(re);
396 if (level == -1)
397 continue;
398 if (line[level] != "#")
399 break;
400 endRow = row;
401 }
402 if (endRow > startRow) {
403 var endColumn = session.getLine(endRow).length;
404 return new Range(startRow, startColumn, endRow, endColumn);
405 }
406 };
407 this.getFoldWidgetRange = function (session, foldStyle, row) {
408 var range = this.indentationBlock(session, row);
409 if (range)
410 return range;
411 range = this.commentBlock(session, row);
412 if (range)
413 return range;
414 };
415 this.getFoldWidget = function (session, foldStyle, row) {
416 var line = session.getLine(row);
417 var indent = line.search(/\S/);
418 var next = session.getLine(row + 1);
419 var prev = session.getLine(row - 1);
420 var prevIndent = prev.search(/\S/);
421 var nextIndent = next.search(/\S/);
422 if (indent == -1) {
423 session.foldWidgets[row - 1] = prevIndent != -1 && prevIndent < nextIndent ? "start" : "";
424 return "";
425 }
426 if (prevIndent == -1) {
427 if (indent == nextIndent && line[indent] == "#" && next[indent] == "#") {
428 session.foldWidgets[row - 1] = "";
429 session.foldWidgets[row + 1] = "";
430 return "start";
431 }
432 }
433 else if (prevIndent == indent && line[indent] == "#" && prev[indent] == "#") {
434 if (session.getLine(row - 2).search(/\S/) == -1) {
435 session.foldWidgets[row - 1] = "start";
436 session.foldWidgets[row + 1] = "";
437 return "";
438 }
439 }
440 if (prevIndent != -1 && prevIndent < indent)
441 session.foldWidgets[row - 1] = "start";
442 else
443 session.foldWidgets[row - 1] = "";
444 if (indent < nextIndent)
445 return "start";
446 else
447 return "";
448 };
449 }).call(FoldMode.prototype);
450
451 });
452
453 ace.define("ace/mode/sass",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/sass_highlight_rules","ace/mode/folding/coffee"], function(require, exports, module){"use strict";
454 var oop = require("../lib/oop");
455 var TextMode = require("./text").Mode;
456 var SassHighlightRules = require("./sass_highlight_rules").SassHighlightRules;
457 var FoldMode = require("./folding/coffee").FoldMode;
458 var Mode = function () {
459 this.HighlightRules = SassHighlightRules;
460 this.foldingRules = new FoldMode();
461 this.$behaviour = this.$defaultBehaviour;
462 };
463 oop.inherits(Mode, TextMode);
464 (function () {
465 this.lineCommentStart = "//";
466 this.$id = "ace/mode/sass";
467 }).call(Mode.prototype);
468 exports.Mode = Mode;
469
470 }); (function() {
471 ace.require(["ace/mode/sass"], function(m) {
472 if (typeof module == "object" && typeof exports == "object" && module) {
473 module.exports = m;
474 }
475 });
476 })();
477