annotate vendor/symfony/debug/ExceptionHandler.php @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents af1871eacc83
children
rev   line source
Chris@0 1 <?php
Chris@0 2
Chris@0 3 /*
Chris@0 4 * This file is part of the Symfony package.
Chris@0 5 *
Chris@0 6 * (c) Fabien Potencier <fabien@symfony.com>
Chris@0 7 *
Chris@0 8 * For the full copyright and license information, please view the LICENSE
Chris@0 9 * file that was distributed with this source code.
Chris@0 10 */
Chris@0 11
Chris@0 12 namespace Symfony\Component\Debug;
Chris@0 13
Chris@0 14 use Symfony\Component\Debug\Exception\FlattenException;
Chris@0 15 use Symfony\Component\Debug\Exception\OutOfMemoryException;
Chris@0 16 use Symfony\Component\HttpKernel\Debug\FileLinkFormatter;
Chris@0 17
Chris@0 18 /**
Chris@0 19 * ExceptionHandler converts an exception to a Response object.
Chris@0 20 *
Chris@0 21 * It is mostly useful in debug mode to replace the default PHP/XDebug
Chris@0 22 * output with something prettier and more useful.
Chris@0 23 *
Chris@0 24 * As this class is mainly used during Kernel boot, where nothing is yet
Chris@0 25 * available, the Response content is always HTML.
Chris@0 26 *
Chris@0 27 * @author Fabien Potencier <fabien@symfony.com>
Chris@0 28 * @author Nicolas Grekas <p@tchwork.com>
Chris@0 29 */
Chris@0 30 class ExceptionHandler
Chris@0 31 {
Chris@0 32 private $debug;
Chris@0 33 private $charset;
Chris@0 34 private $handler;
Chris@0 35 private $caughtBuffer;
Chris@0 36 private $caughtLength;
Chris@0 37 private $fileLinkFormat;
Chris@0 38
Chris@0 39 public function __construct($debug = true, $charset = null, $fileLinkFormat = null)
Chris@0 40 {
Chris@0 41 $this->debug = $debug;
Chris@0 42 $this->charset = $charset ?: ini_get('default_charset') ?: 'UTF-8';
Chris@16 43 $this->fileLinkFormat = $fileLinkFormat;
Chris@0 44 }
Chris@0 45
Chris@0 46 /**
Chris@0 47 * Registers the exception handler.
Chris@0 48 *
Chris@0 49 * @param bool $debug Enable/disable debug mode, where the stack trace is displayed
Chris@0 50 * @param string|null $charset The charset used by exception messages
Chris@0 51 * @param string|null $fileLinkFormat The IDE link template
Chris@0 52 *
Chris@0 53 * @return static
Chris@0 54 */
Chris@0 55 public static function register($debug = true, $charset = null, $fileLinkFormat = null)
Chris@0 56 {
Chris@0 57 $handler = new static($debug, $charset, $fileLinkFormat);
Chris@0 58
Chris@17 59 $prev = set_exception_handler([$handler, 'handle']);
Chris@17 60 if (\is_array($prev) && $prev[0] instanceof ErrorHandler) {
Chris@0 61 restore_exception_handler();
Chris@17 62 $prev[0]->setExceptionHandler([$handler, 'handle']);
Chris@0 63 }
Chris@0 64
Chris@0 65 return $handler;
Chris@0 66 }
Chris@0 67
Chris@0 68 /**
Chris@0 69 * Sets a user exception handler.
Chris@0 70 *
Chris@0 71 * @param callable $handler An handler that will be called on Exception
Chris@0 72 *
Chris@0 73 * @return callable|null The previous exception handler if any
Chris@0 74 */
Chris@0 75 public function setHandler(callable $handler = null)
Chris@0 76 {
Chris@0 77 $old = $this->handler;
Chris@0 78 $this->handler = $handler;
Chris@0 79
Chris@0 80 return $old;
Chris@0 81 }
Chris@0 82
Chris@0 83 /**
Chris@0 84 * Sets the format for links to source files.
Chris@0 85 *
Chris@0 86 * @param string|FileLinkFormatter $fileLinkFormat The format for links to source files
Chris@0 87 *
Chris@0 88 * @return string The previous file link format
Chris@0 89 */
Chris@0 90 public function setFileLinkFormat($fileLinkFormat)
Chris@0 91 {
Chris@0 92 $old = $this->fileLinkFormat;
Chris@0 93 $this->fileLinkFormat = $fileLinkFormat;
Chris@0 94
Chris@0 95 return $old;
Chris@0 96 }
Chris@0 97
Chris@0 98 /**
Chris@0 99 * Sends a response for the given Exception.
Chris@0 100 *
Chris@0 101 * To be as fail-safe as possible, the exception is first handled
Chris@0 102 * by our simple exception handler, then by the user exception handler.
Chris@0 103 * The latter takes precedence and any output from the former is cancelled,
Chris@0 104 * if and only if nothing bad happens in this handling path.
Chris@0 105 */
Chris@0 106 public function handle(\Exception $exception)
Chris@0 107 {
Chris@0 108 if (null === $this->handler || $exception instanceof OutOfMemoryException) {
Chris@0 109 $this->sendPhpResponse($exception);
Chris@0 110
Chris@0 111 return;
Chris@0 112 }
Chris@0 113
Chris@0 114 $caughtLength = $this->caughtLength = 0;
Chris@0 115
Chris@0 116 ob_start(function ($buffer) {
Chris@0 117 $this->caughtBuffer = $buffer;
Chris@0 118
Chris@0 119 return '';
Chris@0 120 });
Chris@0 121
Chris@0 122 $this->sendPhpResponse($exception);
Chris@0 123 while (null === $this->caughtBuffer && ob_end_flush()) {
Chris@0 124 // Empty loop, everything is in the condition
Chris@0 125 }
Chris@0 126 if (isset($this->caughtBuffer[0])) {
Chris@0 127 ob_start(function ($buffer) {
Chris@0 128 if ($this->caughtLength) {
Chris@0 129 // use substr_replace() instead of substr() for mbstring overloading resistance
Chris@0 130 $cleanBuffer = substr_replace($buffer, '', 0, $this->caughtLength);
Chris@0 131 if (isset($cleanBuffer[0])) {
Chris@0 132 $buffer = $cleanBuffer;
Chris@0 133 }
Chris@0 134 }
Chris@0 135
Chris@0 136 return $buffer;
Chris@0 137 });
Chris@0 138
Chris@0 139 echo $this->caughtBuffer;
Chris@0 140 $caughtLength = ob_get_length();
Chris@0 141 }
Chris@0 142 $this->caughtBuffer = null;
Chris@0 143
Chris@0 144 try {
Chris@17 145 \call_user_func($this->handler, $exception);
Chris@0 146 $this->caughtLength = $caughtLength;
Chris@0 147 } catch (\Exception $e) {
Chris@0 148 if (!$caughtLength) {
Chris@0 149 // All handlers failed. Let PHP handle that now.
Chris@0 150 throw $exception;
Chris@0 151 }
Chris@0 152 }
Chris@0 153 }
Chris@0 154
Chris@0 155 /**
Chris@0 156 * Sends the error associated with the given Exception as a plain PHP response.
Chris@0 157 *
Chris@0 158 * This method uses plain PHP functions like header() and echo to output
Chris@0 159 * the response.
Chris@0 160 *
Chris@0 161 * @param \Exception|FlattenException $exception An \Exception or FlattenException instance
Chris@0 162 */
Chris@0 163 public function sendPhpResponse($exception)
Chris@0 164 {
Chris@0 165 if (!$exception instanceof FlattenException) {
Chris@0 166 $exception = FlattenException::create($exception);
Chris@0 167 }
Chris@0 168
Chris@0 169 if (!headers_sent()) {
Chris@0 170 header(sprintf('HTTP/1.0 %s', $exception->getStatusCode()));
Chris@0 171 foreach ($exception->getHeaders() as $name => $value) {
Chris@0 172 header($name.': '.$value, false);
Chris@0 173 }
Chris@0 174 header('Content-Type: text/html; charset='.$this->charset);
Chris@0 175 }
Chris@0 176
Chris@0 177 echo $this->decorate($this->getContent($exception), $this->getStylesheet($exception));
Chris@0 178 }
Chris@0 179
Chris@0 180 /**
Chris@0 181 * Gets the full HTML content associated with the given exception.
Chris@0 182 *
Chris@0 183 * @param \Exception|FlattenException $exception An \Exception or FlattenException instance
Chris@0 184 *
Chris@0 185 * @return string The HTML content as a string
Chris@0 186 */
Chris@0 187 public function getHtml($exception)
Chris@0 188 {
Chris@0 189 if (!$exception instanceof FlattenException) {
Chris@0 190 $exception = FlattenException::create($exception);
Chris@0 191 }
Chris@0 192
Chris@0 193 return $this->decorate($this->getContent($exception), $this->getStylesheet($exception));
Chris@0 194 }
Chris@0 195
Chris@0 196 /**
Chris@0 197 * Gets the HTML content associated with the given exception.
Chris@0 198 *
Chris@0 199 * @return string The content as a string
Chris@0 200 */
Chris@0 201 public function getContent(FlattenException $exception)
Chris@0 202 {
Chris@0 203 switch ($exception->getStatusCode()) {
Chris@0 204 case 404:
Chris@0 205 $title = 'Sorry, the page you are looking for could not be found.';
Chris@0 206 break;
Chris@0 207 default:
Chris@0 208 $title = 'Whoops, looks like something went wrong.';
Chris@0 209 }
Chris@0 210
Chris@17 211 if (!$this->debug) {
Chris@17 212 return <<<EOF
Chris@17 213 <div class="container">
Chris@17 214 <h1>$title</h1>
Chris@17 215 </div>
Chris@17 216 EOF;
Chris@17 217 }
Chris@17 218
Chris@0 219 $content = '';
Chris@17 220 try {
Chris@17 221 $count = \count($exception->getAllPrevious());
Chris@17 222 $total = $count + 1;
Chris@17 223 foreach ($exception->toArray() as $position => $e) {
Chris@17 224 $ind = $count - $position + 1;
Chris@17 225 $class = $this->formatClass($e['class']);
Chris@17 226 $message = nl2br($this->escapeHtml($e['message']));
Chris@17 227 $content .= sprintf(<<<'EOF'
Chris@17 228 <div class="trace trace-as-html">
Chris@17 229 <table class="trace-details">
Chris@17 230 <thead class="trace-head"><tr><th>
Chris@17 231 <h3 class="trace-class">
Chris@17 232 <span class="text-muted">(%d/%d)</span>
Chris@17 233 <span class="exception_title">%s</span>
Chris@17 234 </h3>
Chris@17 235 <p class="break-long-words trace-message">%s</p>
Chris@17 236 </th></tr></thead>
Chris@17 237 <tbody>
Chris@0 238 EOF
Chris@17 239 , $ind, $total, $class, $message);
Chris@17 240 foreach ($e['trace'] as $trace) {
Chris@17 241 $content .= '<tr><td>';
Chris@17 242 if ($trace['function']) {
Chris@17 243 $content .= sprintf('at <span class="trace-class">%s</span><span class="trace-type">%s</span><span class="trace-method">%s</span>(<span class="trace-arguments">%s</span>)', $this->formatClass($trace['class']), $trace['type'], $trace['function'], $this->formatArgs($trace['args']));
Chris@0 244 }
Chris@17 245 if (isset($trace['file']) && isset($trace['line'])) {
Chris@17 246 $content .= $this->formatPath($trace['file'], $trace['line']);
Chris@17 247 }
Chris@17 248 $content .= "</td></tr>\n";
Chris@17 249 }
Chris@0 250
Chris@17 251 $content .= "</tbody>\n</table>\n</div>\n";
Chris@17 252 }
Chris@17 253 } catch (\Exception $e) {
Chris@17 254 // something nasty happened and we cannot throw an exception anymore
Chris@17 255 if ($this->debug) {
Chris@17 256 $title = sprintf('Exception thrown when handling an exception (%s: %s)', \get_class($e), $this->escapeHtml($e->getMessage()));
Chris@17 257 } else {
Chris@17 258 $title = 'Whoops, looks like something went wrong.';
Chris@0 259 }
Chris@0 260 }
Chris@0 261
Chris@12 262 $symfonyGhostImageContents = $this->getSymfonyGhostAsSvg();
Chris@12 263
Chris@0 264 return <<<EOF
Chris@12 265 <div class="exception-summary">
Chris@12 266 <div class="container">
Chris@12 267 <div class="exception-message-wrapper">
Chris@12 268 <h1 class="break-long-words exception-message">$title</h1>
Chris@12 269 <div class="exception-illustration hidden-xs-down">$symfonyGhostImageContents</div>
Chris@12 270 </div>
Chris@12 271 </div>
Chris@12 272 </div>
Chris@12 273
Chris@12 274 <div class="container">
Chris@0 275 $content
Chris@0 276 </div>
Chris@0 277 EOF;
Chris@0 278 }
Chris@0 279
Chris@0 280 /**
Chris@0 281 * Gets the stylesheet associated with the given exception.
Chris@0 282 *
Chris@0 283 * @return string The stylesheet as a string
Chris@0 284 */
Chris@0 285 public function getStylesheet(FlattenException $exception)
Chris@0 286 {
Chris@17 287 if (!$this->debug) {
Chris@17 288 return <<<'EOF'
Chris@17 289 body { background-color: #fff; color: #222; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 0; }
Chris@17 290 .container { margin: 30px; max-width: 600px; }
Chris@17 291 h1 { color: #dc3545; font-size: 24px; }
Chris@17 292 EOF;
Chris@17 293 }
Chris@17 294
Chris@0 295 return <<<'EOF'
Chris@12 296 body { background-color: #F9F9F9; color: #222; font: 14px/1.4 Helvetica, Arial, sans-serif; margin: 0; padding-bottom: 45px; }
Chris@12 297
Chris@12 298 a { cursor: pointer; text-decoration: none; }
Chris@12 299 a:hover { text-decoration: underline; }
Chris@12 300 abbr[title] { border-bottom: none; cursor: help; text-decoration: none; }
Chris@12 301
Chris@12 302 code, pre { font: 13px/1.5 Consolas, Monaco, Menlo, "Ubuntu Mono", "Liberation Mono", monospace; }
Chris@12 303
Chris@12 304 table, tr, th, td { background: #FFF; border-collapse: collapse; vertical-align: top; }
Chris@12 305 table { background: #FFF; border: 1px solid #E0E0E0; box-shadow: 0px 0px 1px rgba(128, 128, 128, .2); margin: 1em 0; width: 100%; }
Chris@12 306 table th, table td { border: solid #E0E0E0; border-width: 1px 0; padding: 8px 10px; }
Chris@12 307 table th { background-color: #E0E0E0; font-weight: bold; text-align: left; }
Chris@12 308
Chris@12 309 .hidden-xs-down { display: none; }
Chris@12 310 .block { display: block; }
Chris@12 311 .break-long-words { -ms-word-break: break-all; word-break: break-all; word-break: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; }
Chris@12 312 .text-muted { color: #999; }
Chris@12 313
Chris@12 314 .container { max-width: 1024px; margin: 0 auto; padding: 0 15px; }
Chris@12 315 .container::after { content: ""; display: table; clear: both; }
Chris@12 316
Chris@12 317 .exception-summary { background: #B0413E; border-bottom: 2px solid rgba(0, 0, 0, 0.1); border-top: 1px solid rgba(0, 0, 0, .3); flex: 0 0 auto; margin-bottom: 30px; }
Chris@12 318
Chris@12 319 .exception-message-wrapper { display: flex; align-items: center; min-height: 70px; }
Chris@12 320 .exception-message { flex-grow: 1; padding: 30px 0; }
Chris@12 321 .exception-message, .exception-message a { color: #FFF; font-size: 21px; font-weight: 400; margin: 0; }
Chris@12 322 .exception-message.long { font-size: 18px; }
Chris@12 323 .exception-message a { border-bottom: 1px solid rgba(255, 255, 255, 0.5); font-size: inherit; text-decoration: none; }
Chris@12 324 .exception-message a:hover { border-bottom-color: #ffffff; }
Chris@12 325
Chris@12 326 .exception-illustration { flex-basis: 111px; flex-shrink: 0; height: 66px; margin-left: 15px; opacity: .7; }
Chris@12 327
Chris@12 328 .trace + .trace { margin-top: 30px; }
Chris@12 329 .trace-head .trace-class { color: #222; font-size: 18px; font-weight: bold; line-height: 1.3; margin: 0; position: relative; }
Chris@12 330
Chris@12 331 .trace-message { font-size: 14px; font-weight: normal; margin: .5em 0 0; }
Chris@12 332
Chris@12 333 .trace-file-path, .trace-file-path a { color: #222; margin-top: 3px; font-size: 13px; }
Chris@12 334 .trace-class { color: #B0413E; }
Chris@12 335 .trace-type { padding: 0 2px; }
Chris@12 336 .trace-method { color: #B0413E; font-weight: bold; }
Chris@12 337 .trace-arguments { color: #777; font-weight: normal; padding-left: 2px; }
Chris@12 338
Chris@12 339 @media (min-width: 575px) {
Chris@12 340 .hidden-xs-down { display: initial; }
Chris@0 341 }
Chris@0 342 EOF;
Chris@0 343 }
Chris@0 344
Chris@0 345 private function decorate($content, $css)
Chris@0 346 {
Chris@0 347 return <<<EOF
Chris@0 348 <!DOCTYPE html>
Chris@0 349 <html>
Chris@0 350 <head>
Chris@0 351 <meta charset="{$this->charset}" />
Chris@0 352 <meta name="robots" content="noindex,nofollow" />
Chris@12 353 <style>$css</style>
Chris@0 354 </head>
Chris@12 355 <body>
Chris@0 356 $content
Chris@0 357 </body>
Chris@0 358 </html>
Chris@0 359 EOF;
Chris@0 360 }
Chris@0 361
Chris@0 362 private function formatClass($class)
Chris@0 363 {
Chris@0 364 $parts = explode('\\', $class);
Chris@0 365
Chris@0 366 return sprintf('<abbr title="%s">%s</abbr>', $class, array_pop($parts));
Chris@0 367 }
Chris@0 368
Chris@0 369 private function formatPath($path, $line)
Chris@0 370 {
Chris@0 371 $file = $this->escapeHtml(preg_match('#[^/\\\\]*+$#', $path, $file) ? $file[0] : $path);
Chris@16 372 $fmt = $this->fileLinkFormat ?: ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format');
Chris@0 373
Chris@16 374 if (!$fmt) {
Chris@18 375 return sprintf('<span class="block trace-file-path">in <span title="%s%3$s"><strong>%s</strong>%s</span></span>', $this->escapeHtml($path), $file, 0 < $line ? ' line '.$line : '');
Chris@0 376 }
Chris@0 377
Chris@16 378 if (\is_string($fmt)) {
Chris@17 379 $i = strpos($f = $fmt, '&', max(strrpos($f, '%f'), strrpos($f, '%l'))) ?: \strlen($f);
Chris@17 380 $fmt = [substr($f, 0, $i)] + preg_split('/&([^>]++)>/', substr($f, $i), -1, PREG_SPLIT_DELIM_CAPTURE);
Chris@16 381
Chris@16 382 for ($i = 1; isset($fmt[$i]); ++$i) {
Chris@16 383 if (0 === strpos($path, $k = $fmt[$i++])) {
Chris@17 384 $path = substr_replace($path, $fmt[$i], 0, \strlen($k));
Chris@16 385 break;
Chris@16 386 }
Chris@16 387 }
Chris@16 388
Chris@17 389 $link = strtr($fmt[0], ['%f' => $path, '%l' => $line]);
Chris@16 390 } else {
Chris@18 391 try {
Chris@18 392 $link = $fmt->format($path, $line);
Chris@18 393 } catch (\Exception $e) {
Chris@18 394 return sprintf('<span class="block trace-file-path">in <span title="%s%3$s"><strong>%s</strong>%s</span></span>', $this->escapeHtml($path), $file, 0 < $line ? ' line '.$line : '');
Chris@18 395 }
Chris@16 396 }
Chris@16 397
Chris@16 398 return sprintf('<span class="block trace-file-path">in <a href="%s" title="Go to source"><strong>%s</string>%s</a></span>', $this->escapeHtml($link), $file, 0 < $line ? ' line '.$line : '');
Chris@0 399 }
Chris@0 400
Chris@0 401 /**
Chris@0 402 * Formats an array as a string.
Chris@0 403 *
Chris@0 404 * @param array $args The argument array
Chris@0 405 *
Chris@0 406 * @return string
Chris@0 407 */
Chris@0 408 private function formatArgs(array $args)
Chris@0 409 {
Chris@17 410 $result = [];
Chris@0 411 foreach ($args as $key => $item) {
Chris@0 412 if ('object' === $item[0]) {
Chris@0 413 $formattedValue = sprintf('<em>object</em>(%s)', $this->formatClass($item[1]));
Chris@0 414 } elseif ('array' === $item[0]) {
Chris@17 415 $formattedValue = sprintf('<em>array</em>(%s)', \is_array($item[1]) ? $this->formatArgs($item[1]) : $item[1]);
Chris@0 416 } elseif ('null' === $item[0]) {
Chris@0 417 $formattedValue = '<em>null</em>';
Chris@0 418 } elseif ('boolean' === $item[0]) {
Chris@0 419 $formattedValue = '<em>'.strtolower(var_export($item[1], true)).'</em>';
Chris@0 420 } elseif ('resource' === $item[0]) {
Chris@0 421 $formattedValue = '<em>resource</em>';
Chris@0 422 } else {
Chris@0 423 $formattedValue = str_replace("\n", '', $this->escapeHtml(var_export($item[1], true)));
Chris@0 424 }
Chris@0 425
Chris@17 426 $result[] = \is_int($key) ? $formattedValue : sprintf("'%s' => %s", $this->escapeHtml($key), $formattedValue);
Chris@0 427 }
Chris@0 428
Chris@0 429 return implode(', ', $result);
Chris@0 430 }
Chris@0 431
Chris@0 432 /**
Chris@0 433 * HTML-encodes a string.
Chris@0 434 */
Chris@0 435 private function escapeHtml($str)
Chris@0 436 {
Chris@0 437 return htmlspecialchars($str, ENT_COMPAT | ENT_SUBSTITUTE, $this->charset);
Chris@0 438 }
Chris@12 439
Chris@12 440 private function getSymfonyGhostAsSvg()
Chris@12 441 {
Chris@18 442 return '<svg viewBox="0 0 136 81" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.4"><path d="M92.4 20.4a23.2 23.2 0 0 1 9 1.9 23.7 23.7 0 0 1 5.2 3 24.3 24.3 0 0 1 3.4 3.4 24.8 24.8 0 0 1 5 9.4c.5 1.7.8 3.4 1 5.2v14.5h.4l.5.2a7.4 7.4 0 0 0 2.5.2l.2-.2.6-.8.8-1.3-.2-.1a5.5 5.5 0 0 1-.8-.3 5.6 5.6 0 0 1-2.3-1.8 5.7 5.7 0 0 1-.9-1.6 6.5 6.5 0 0 1-.2-2.8 7.3 7.3 0 0 1 .5-2l.3-.3.8-.9.3-.3c.2-.2.5-.3.8-.3H120.7c.2 0 .3-.1.4 0h.4l.2.1.3.2.2-.4.3-.4.1-.1 1.2-1 .3-.2.4-.1.4-.1h.3l1.5.1.4.1.8.5.1.2 1 1.1v.2H129.4l.4-.2 1.4-.5h1.1c.3 0 .7.2 1 .4.2 0 .3.2.5.3l.2.2.5.3.4.6.1.3.4 1.4.1.4v.6a7.8 7.8 0 0 1-.1.6 9.9 9.9 0 0 1-.8 2.4 7.8 7.8 0 0 1-3 3.3 6.4 6.4 0 0 1-1 .5 6.1 6.1 0 0 1-.6.2l-.7.1h-.1a23.4 23.4 0 0 1-.2 1.7 14.3 14.3 0 0 1-.6 2.1l-.8 2a9.2 9.2 0 0 1-.4.6l-.7 1a9.1 9.1 0 0 1-2.3 2.2c-.9.5-2 .6-3 .7l-1.4.1h-.5l-.4.1a15.8 15.8 0 0 1-2.8-.1v4.2a9.7 9.7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