ÿØÿà JFIF    ÿÛ „  ( %!1"%)+...383-7(-.+  -%%--------+------------/----------------------------ÿÀ  ¶" ÿÄ     ÿÄ @    !1AQaq‘¡"±ÁÑð2’BRráS‚ñ3b¢CT²Ò #cÿÄ    ÿÄ '   1!AQ2a"‘±#ÿÚ   ? ò(/p‘—–¢·,M|¯G»R£üešT. ôŸEoCFñ‡ 4ÔkåóxR|µÁ¨ÓDà!Ç´µ˜‡p ÍQ‹§!þž^õWsŒy  åÁ§$á«%ºq˜™JyyË0y«^Ϗ -3ÃÏËÈ£Æ\P’ä„s&•‹Üs üô'àWt¹pñCp$bÚF`·7.^)¾!)ÒÙ˜–ÅÏš^h¾ø³·ìe±ŒaeÖ—Í,e=B}Jéߦ$$½—šÙÜCC¯¶è8β–Åkèwx LÉngT±æ¹£Ócœ¿Í/©Éÿ ‰ÚCÒ­mq;Tt¶–}0"zÖPcd1š­¤tˆ„ÐÓâqú[™öUCŠ2޿د­É(¸ßúçšmW,Ò ºf‹Ån™ÄLêÁ8üÁkÁ€L¥ÍuJ1œôrÂSŒÓöt!7EUíïb)AËi¬â-ÙHk8òÁiXYwÅ)O^"ÇØriÛô{»wRUKÙÏÚlÓ¬€‚’שT ] ªb—ÊîKC^×M“xùäñz¬zJ× {4[¹M'IÆeH1LCWÕ]œûº WDæà°OÅ‚¹c²ÞuA–rL`HšpCez‡V’— Ž‚Ë„–ñ­'µR0ÕÖ=À:±G»C\nÆÉ5*¢ †3šhQ4ýÒi$Õ1"Ü]¢p-q3zcQ$ªö¨¥æf›‘»´ÝÚHá„e²JÇ–iÊ:·à¬Øc5Åk»Laª*wi [0Ówk ¦a¦0Õ²ÅÅ‚T¸’³q:Æ<¹ú Ò˜Æ}2VE•Ѐp¡Ô3Úº …h³^LJºçì¥Ánó|˜ÖˆÎˆ+« ¦dø‘Mº–d\ªDðÛ„Ì×LÝ——Ð9Ç|•FèçVm™¨€™3õS–9Äå¢<̉Ìm¢±`·º˜&Z²ž Ë®D«¶»6™‰©­HÈ Àá«h­i³04æ’hxœi3ï¨(ÓL·†‹¶ËpŒ ƒÜÒ? :õdsÀ –3æÓ·Üjâ¬9—]8n¼&]I F£¼…ì–—Œ0v°LǐÅfÛ2TÖ’aµ˜N@ÖBSÏ^à´4-±°b×nÈÈœÆD=KdŒø…ÄÈK,›ÖR§fjü$^ÔÎ!„6^ s:Üun\ôkCÞò÷<—Lúl Í›G¹ÀPá¼Nc¡šÒ…ÙWͳœ±vÊáЄ×9‹P‰cEØ‘™›µŸP<×g1 º©Ø¬wiÁ^l5× I/';Ë+´Z‡ÓÄFÕp[Èð’ HÄ ó 9¬Dl4“é±Ï”V=^Hð;žLädÉa‚°Ë,#/Ž~²BÔÛ QãñQtIeórVB,ÏÂf‹4#Μc‹É3ZIÖ Œ¢¥·üxa‡Ãçè„jŠ[5 Ä!U?,3žÎ×…ðdÓ÷háŠA‰ìÄ4÷ÃÜZÃE{‰®+W\ZÍE[‰»µk»MÝ­`¢©†˜ÃV‹-f¢¡†¢a«eŠ%«Y¨©q%jâd,Ôq`) ¤¦…šˆ ¦E>0Ùb²t–Ÿ  ÷jsςҒKÈcø(é›;k(’#ôŒQ ™C> õ³M9óºÆµ¤çâ;uÀ)5>RÔ¸fÓ~Ȧ—’-$fe«"FâUˆÊwµPÏu w+"åÉó¨6s™Û9(À¨ù©hE°½†n`m~“@©›p!Vkhµ Á1šbEqqÊ@ºèl›2 –Yã%‘‚hÛ{a¶‡ÅÞM²¬çL34®Çl]®‹ŽØŒm'RÜe35æöˆ­Á­ cP9šeÁköo´L³Ì=p8]”‡B¶,šº|ɏdzXˆØk*ÇÚ{#ñ‰pã(€¶‡9ý'šÜ³½¯kƒ†Â’ëSOƒ•Å®H6+a¢µˆ‹Y¨b˜b+XˆÖ!°u!¢"µˆˆn2ˆ Å0Ä`Å Ô®c(ÓÜGº•Ä»Œ âWî%q.áÐÄ÷î%umÍ£+ÜQ,Vn¦-GphU¸¢X­&,Gt ·K¢ÅÅ·¥RÄÊÉbKn N­R2g$VµÕó Qr#–ÓZUÏð0ÎtÙÀœz ëöo“Îk¯n„T°"SÞ+³/…€½"ižãO%Í%&Δâ‘ËØ´IˆÓ°Ë‰ÞM3.™yçÁzit›`4C`k¢¼á!álÄï sÂ[×!¤l¾æo"ƒIÔ'@ªu)3›ô®“@Z à¾] üœ'‡4¸PÞkÁ-qÄH‰ÓÍBd´ÿ —¹°ÄA&ÊUC„öz‚‚RæŠtf¬>˜ÑidšEçÑL÷áý¡V±h§­c¿¥¨ƒ@g¼…Ýö^ÞËc.ž„æ“I[ ª+·zÐÒÚ,½Ð»¶€C›7jk$๖€Ž¾ÅÙpp¶ÍþéΤ ½ØÎŒq ñpæžÅ¥#Øâ49ÃÂK^MYV“,¶Éz_òæ:…;Õ«¦I3âJ£¤û5$7Èxün\â]Êe¯(Ÿ&Ž‹¶2<6Ćf× æ¢ƱqWı[(ÙÂŽç‚T7¨@ÈÉÍß‚ïÙ"&3TYlGށ†)†#5ŠA©^T2ÆÁ†)©†©†¤yGXÁ†©"†)©¼ÅV WS†#©]R–r‹q5ÕbâWþBh¯u+ªÅÄ×ü„nÑ^êkªÁj‰jeœWˆÕÕ`µDµ2Ì+Ä µDµµ5Ô{¤Þ0RF’H÷AÛ<ÊÁ§ ƈæ0Ñ£ê4 öÚµ[¬/1²€â<-¬šö²r×0o×w ´xÐÒË„ g01¬„åEM蛇Ã\6µE›‘fÙO k÷CºnÓ1`iîÒ² áÂ!ÑLÄÿ ³¬\õ*:M=Ç»c‹2[‰ØsÕLò\ŒK L^™üÄN\¶#» Ç\……ßïIœÉ$¸ÎñÍ®ÔHÇ Ûí/´>Li”„†g^$ 7NÍÑÑ2M2ªNg=k½Ð}Ÿl6‡ —JWˆ”ÞéT·+µ¦üÂFè¢Vs6ýÆ4»2+2IÝ9ô9®ÇGÙÇ1+Ä8;*Õ§ž½D*îÑWÚçá3Ma¤·ˆ¥t}š²Ü…Q+Æüµ8HíS”üxGéÁˆ¦Ël„éÈ 5 µÄƒ6äÜ(kIš¯S†fÖ&¸®×v|Äyˆ*禌Éù@7-®Ä[]ÎÖ¿ê`º…=:…žJVnݳvðÖKE¼‚ »mà ÷f®:Ë ™–4rð¡4` ܹçž~‹C=œ…¾Ïj|VDtK.ƒ"9 Ï ­–éXá³6WÒïIL-Ї Ç public_html/lms.smk-almanshuriyah.sch.id/lib/aws-sdk/src/Api/Parser/DecodingEventStreamIterator.php000064400000021674152267506640031621 0ustar00home/smkb8269 'decodeUint32', self::LENGTH_HEADERS => 'decodeUint32', self::CRC_PRELUDE => 'decodeUint32', ]; private static $lengthFormatMap = [ 1 => 'decodeUint8', 2 => 'decodeUint16', 4 => 'decodeUint32', 8 => 'decodeUint64', ]; private static $headerTypeMap = [ 0 => 'decodeBooleanTrue', 1 => 'decodeBooleanFalse', 2 => 'decodeInt8', 3 => 'decodeInt16', 4 => 'decodeInt32', 5 => 'decodeInt64', 6 => 'decodeBytes', 7 => 'decodeString', 8 => 'decodeTimestamp', 9 => 'decodeUuid', ]; /** @var StreamInterface Stream of eventstream shape to parse. */ protected $stream; /** @var array Currently parsed event. */ protected $currentEvent; /** @var int Current in-order event key. */ protected $key; /** @var resource|\HashContext CRC32 hash context for event validation */ protected $hashContext; /** @var int $currentPosition */ protected $currentPosition; /** * DecodingEventStreamIterator constructor. * * @param StreamInterface $stream */ public function __construct(StreamInterface $stream) { $this->stream = $stream; $this->rewind(); } protected function parseHeaders($headerBytes) { $headers = []; $bytesRead = 0; while ($bytesRead < $headerBytes) { list($key, $numBytes) = $this->decodeString(1); $bytesRead += $numBytes; list($type, $numBytes) = $this->decodeUint8(); $bytesRead += $numBytes; $f = self::$headerTypeMap[$type]; list($value, $numBytes) = $this->{$f}(); $bytesRead += $numBytes; if (isset($headers[$key])) { throw new ParserException('Duplicate key in event headers.'); } $headers[$key] = $value; } return [$headers, $bytesRead]; } protected function parsePrelude() { $prelude = []; $bytesRead = 0; $calculatedCrc = null; foreach (self::$preludeFormat as $key => $decodeFunction) { if ($key === self::CRC_PRELUDE) { $hashCopy = hash_copy($this->hashContext); $calculatedCrc = hash_final($this->hashContext, true); $this->hashContext = $hashCopy; } list($value, $numBytes) = $this->{$decodeFunction}(); $bytesRead += $numBytes; $prelude[$key] = $value; } if (unpack('N', $calculatedCrc)[1] !== $prelude[self::CRC_PRELUDE]) { throw new ParserException('Prelude checksum mismatch.'); } return [$prelude, $bytesRead]; } /** * This method decodes an event from the stream. * * @return array */ protected function parseEvent() { $event = []; if ($this->stream->tell() < $this->stream->getSize()) { $this->hashContext = hash_init('crc32b'); $bytesLeft = $this->stream->getSize() - $this->stream->tell(); list($prelude, $numBytes) = $this->parsePrelude(); if ($prelude[self::LENGTH_TOTAL] > $bytesLeft) { throw new ParserException('Message length too long.'); } $bytesLeft -= $numBytes; if ($prelude[self::LENGTH_HEADERS] > $bytesLeft) { throw new ParserException('Headers length too long.'); } list( $event[self::HEADERS], $numBytes ) = $this->parseHeaders($prelude[self::LENGTH_HEADERS]); $event[self::PAYLOAD] = Psr7\Utils::streamFor( $this->readAndHashBytes( $prelude[self::LENGTH_TOTAL] - self::BYTES_PRELUDE - $numBytes - self::BYTES_TRAILING ) ); $calculatedCrc = hash_final($this->hashContext, true); $messageCrc = $this->stream->read(4); if ($calculatedCrc !== $messageCrc) { throw new ParserException('Message checksum mismatch.'); } } return $event; } // Iterator Functionality /** * @return array */ #[\ReturnTypeWillChange] public function current() { return $this->currentEvent; } /** * @return int */ #[\ReturnTypeWillChange] public function key() { return $this->key; } /** * @return void */ #[\ReturnTypeWillChange] public function next() { $this->currentPosition = $this->stream->tell(); if ($this->valid()) { $this->key++; $this->currentEvent = $this->parseEvent(); } } /** * @return void */ #[\ReturnTypeWillChange] public function rewind() { $this->stream->rewind(); $this->key = 0; $this->currentPosition = 0; $this->currentEvent = $this->parseEvent(); } /** * @return bool */ #[\ReturnTypeWillChange] public function valid() { return $this->currentPosition < $this->stream->getSize(); } // Decoding Utilities protected function readAndHashBytes($num) { $bytes = $this->stream->read($num); hash_update($this->hashContext, $bytes); return $bytes; } private function decodeBooleanTrue() { return [true, 0]; } private function decodeBooleanFalse() { return [false, 0]; } private function uintToInt($val, $size) { $signedCap = pow(2, $size - 1); if ($val > $signedCap) { $val -= (2 * $signedCap); } return $val; } private function decodeInt8() { $val = (int)unpack('C', $this->readAndHashBytes(1))[1]; return [$this->uintToInt($val, 8), 1]; } private function decodeUint8() { return [unpack('C', $this->readAndHashBytes(1))[1], 1]; } private function decodeInt16() { $val = (int)unpack('n', $this->readAndHashBytes(2))[1]; return [$this->uintToInt($val, 16), 2]; } private function decodeUint16() { return [unpack('n', $this->readAndHashBytes(2))[1], 2]; } private function decodeInt32() { $val = (int)unpack('N', $this->readAndHashBytes(4))[1]; return [$this->uintToInt($val, 32), 4]; } private function decodeUint32() { return [unpack('N', $this->readAndHashBytes(4))[1], 4]; } private function decodeInt64() { $val = $this->unpackInt64($this->readAndHashBytes(8))[1]; return [$this->uintToInt($val, 64), 8]; } private function decodeUint64() { return [$this->unpackInt64($this->readAndHashBytes(8))[1], 8]; } private function unpackInt64($bytes) { if (version_compare(PHP_VERSION, '5.6.3', '<')) { $d = unpack('N2', $bytes); return [1 => $d[1] << 32 | $d[2]]; } return unpack('J', $bytes); } private function decodeBytes($lengthBytes=2) { if (!isset(self::$lengthFormatMap[$lengthBytes])) { throw new ParserException('Undefined variable length format.'); } $f = self::$lengthFormatMap[$lengthBytes]; list($len, $bytes) = $this->{$f}(); return [$this->readAndHashBytes($len), $len + $bytes]; } private function decodeString($lengthBytes=2) { if (!isset(self::$lengthFormatMap[$lengthBytes])) { throw new ParserException('Undefined variable length format.'); } $f = self::$lengthFormatMap[$lengthBytes]; list($len, $bytes) = $this->{$f}(); return [$this->readAndHashBytes($len), $len + $bytes]; } private function decodeTimestamp() { list($val, $bytes) = $this->decodeInt64(); return [ DateTimeResult::createFromFormat('U.u', $val / 1000), $bytes ]; } private function decodeUuid() { $val = unpack('H32', $this->readAndHashBytes(16))[1]; return [ substr($val, 0, 8) . '-' . substr($val, 8, 4) . '-' . substr($val, 12, 4) . '-' . substr($val, 16, 4) . '-' . substr($val, 20, 12), 16 ]; } }