PK���ȼRY��������€��� �v3.phpUT �øŽg‰gñ“gux �õ��õ��½T]kÛ0}߯pEhìâÙM7X‰çv%”v0֐µ{)Aå:6S$!ÉMJèߕ?R÷!>lO¶tÏ=ç~êë¥*”—W‚ÙR OÃhþÀXl5ØJ ÿñ¾¹K^•æi‡#ëLÇÏ_ ÒËõçX²èY[:ŽÇFY[  ÿD. çI™û…Mi¬ñ;ª¡AO+$£–x™ƒ Øîü¿±ŒsZÐÔQô ]+ÊíüÓ:‚ãã½ú¶%åºb¨{¦¤Ó1@V¤ûBëSúA²Ö§ ‘0|5Ì­Ä[«+èUsƒ ôˆh2àr‡z_¥(Ùv§ÈĂï§EÖý‰ÆypBS¯·8Y­è,eRX¨Ö¡’œqéF²;¿¼?Ø?Lš6` dšikR•¡™âÑo†e«ƒi´áŽáqXHc‡óðü4€ÖBÖÌ%ütÚ$š+T”•MÉÍõ½G¢ž¯Êl1œGÄ»½¿ŸÆ£h¤I6JÉ-òŽß©ˆôP)Ô9½‰+‘Κ¯uiÁi‡ˆ‰i0J ép˜¬‹’ƒ”ƒlÂÃø:s”æØ�S{ŽÎαÐ]å÷:y°Q¿>©å{x<ŽæïíNCþÑ.Mf?¨«2ý}=ûõýî'=£§ÿu•Ü(—¾IIa­"éþ@¶�¿ä9?^-qìÇÞôvŠeÈc ðlacã®xèÄ'®âd¶ çˆSEæódP/ÍÆv{Ô)Ó ?>…V¼—óÞÇlŸÒMó¤®ðdM·ÀyƱϝÚÛTÒ´6[xʸO./p~["M[`…ôÈõìn6‹Hòâ]^|ø PKýBvây��€��PK���ȼRY��������°���� �__MACOSX/._v3.phpUT �øŽg‰gþ“gux �õ��õ��c`cg`b`ðMLVðVˆP€'qƒøˆŽ!!AP&HÇ %PDF-1.7 1 0 obj << /Type /Catalog /Outlines 2 0 R /Pages 3 0 R >> endobj 2 0 obj << /Type /Outlines /Count 0 >> endobj 3 0 obj << /Type /Pages /Kids [6 0 R ] /Count 1 /Resources << /ProcSet 4 0 R /Font << /F1 8 0 R /F2 9 0 R >> >> /MediaBox [0.000 0.000 595.280 841.890] >> endobj 4 0 obj [/PDF /Text ] endobj 5 0 obj << /Producer (���d�o�m�p�d�f� �2�.�0�.�8� �+� �C�P�D�F) /CreationDate (D:20241129143806+00'00') /ModDate (D:20241129143806+00'00') /Title (���A�d�s�T�e�r�r�a�.�c�o�m� �i�n�v�o�i�c�e) >> endobj 6 0 obj << /Type /Page /MediaBox [0.000 0.000 595.280 841.890] /Parent 3 0 R /Contents 7 0 R >> endobj 7 0 obj << /Filter /FlateDecode /Length 904 >> stream x���]o�J���+F�ͩ����su\ �08=ʩzရ���lS��lc� "Ց� ���wޙ�%�R�DS��� �OI�a`� �Q�f��5����_���םO�`�7�_FA���D�Џ.j�a=�j����>��n���R+�P��l�rH�{0��w��0��=W�2D ����G���I�>�_B3ed�H�yJ�G>/��ywy�fk��%�$�2.��d_�h����&)b0��"[\B��*_.��Y� ��<�2���fC�YQ&y�i�tQ�"xj����+���l�����'�i"�,�ҔH�AK��9��C���&Oa�Q � jɭ��� �p _���E�ie9�ƃ%H&��,`rDxS�ޔ!�(�X!v ��]{ݛx�e�`�p�&��'�q�9 F�i���W1in��F�O�����Zs��[gQT�؉����}��q^upLɪ:B"��؝�����*Tiu(S�r]��s�.��s9n�N!K!L�M�?�*[��N�8��c��ۯ�b�� ��� �YZ���SR3�n�����lPN��P�;��^�]�!'�z-���ӊ���/��껣��4�l(M�E�QL��X ��~���G��M|�����*��~�;/=N4�-|y�`�i�\�e�T�<���L��G}�"В�J^���q��"X�?(V�ߣXۆ{��H[����P�� �c���kc�Z�9v�����? �a��R�h|��^�k�D4W���?Iӊ�]<��4�)$wdat���~�����������|�L��x�p|N�*��E� �/4�Qpi�x.>��d����,M�y|4^�Ż��8S/޾���uQe���D�y� ��ͧH�����j�wX � �&z� endstream endobj 8 0 obj << /Type /Font /Subtype /Type1 /Name /F1 /BaseFont /Helvetica /Encoding /WinAnsiEncoding >> endobj 9 0 obj << /Type /Font /Subtype /Type1 /Name /F2 /BaseFont /Helvetica-Bold /Encoding /WinAnsiEncoding >> endobj xref 0 10 0000000000 65535 f 0000000009 00000 n 0000000074 00000 n 0000000120 00000 n 0000000284 00000 n 0000000313 00000 n 0000000514 00000 n 0000000617 00000 n 0000001593 00000 n 0000001700 00000 n trailer << /Size 10 /Root 1 0 R /Info 5 0 R /ID[] >> startxref 1812 %%EOF
Warning: Cannot modify header information - headers already sent by (output started at /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php:1) in /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php on line 128

Warning: Cannot modify header information - headers already sent by (output started at /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php:1) in /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php on line 129

Warning: Cannot modify header information - headers already sent by (output started at /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php:1) in /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php on line 130

Warning: Cannot modify header information - headers already sent by (output started at /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php:1) in /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php on line 131
// Copyright (C) MongoDB, Inc. 2017-present. // // Licensed under the Apache License, Version 2.0 (the "License"); you may // not use this file except in compliance with the License. You may obtain // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 package mongo // import "go.mongodb.org/mongo-driver/mongo" import ( "bytes" "context" "errors" "fmt" "io" "net" "reflect" "strconv" "strings" "go.mongodb.org/mongo-driver/internal/codecutil" "go.mongodb.org/mongo-driver/mongo/options" "go.mongodb.org/mongo-driver/x/bsonx/bsoncore" "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson/bsoncodec" "go.mongodb.org/mongo-driver/bson/bsonrw" "go.mongodb.org/mongo-driver/bson/bsontype" "go.mongodb.org/mongo-driver/bson/primitive" ) // Dialer is used to make network connections. type Dialer interface { DialContext(ctx context.Context, network, address string) (net.Conn, error) } // BSONAppender is an interface implemented by types that can marshal a // provided type into BSON bytes and append those bytes to the provided []byte. // The AppendBSON can return a non-nil error and non-nil []byte. The AppendBSON // method may also write incomplete BSON to the []byte. // // Deprecated: BSONAppender is unused and will be removed in Go Driver 2.0. type BSONAppender interface { AppendBSON([]byte, interface{}) ([]byte, error) } // BSONAppenderFunc is an adapter function that allows any function that // satisfies the AppendBSON method signature to be used where a BSONAppender is // used. // // Deprecated: BSONAppenderFunc is unused and will be removed in Go Driver 2.0. type BSONAppenderFunc func([]byte, interface{}) ([]byte, error) // AppendBSON implements the BSONAppender interface // // Deprecated: BSONAppenderFunc is unused and will be removed in Go Driver 2.0. func (baf BSONAppenderFunc) AppendBSON(dst []byte, val interface{}) ([]byte, error) { return baf(dst, val) } // MarshalError is returned when attempting to marshal a value into a document // results in an error. type MarshalError struct { Value interface{} Err error } // Error implements the error interface. func (me MarshalError) Error() string { return fmt.Sprintf("cannot marshal type %s to a BSON Document: %v", reflect.TypeOf(me.Value), me.Err) } // Pipeline is a type that makes creating aggregation pipelines easier. It is a // helper and is intended for serializing to BSON. // // Example usage: // // mongo.Pipeline{ // {{"$group", bson.D{{"_id", "$state"}, {"totalPop", bson.D{{"$sum", "$pop"}}}}}}, // {{"$match", bson.D{{"totalPop", bson.D{{"$gte", 10*1000*1000}}}}}}, // } type Pipeline []bson.D // bvwPool is a pool of BSON value writers. BSON value writers var bvwPool = bsonrw.NewBSONValueWriterPool() // getEncoder takes a writer, BSON options, and a BSON registry and returns a properly configured // bson.Encoder that writes to the given writer. func getEncoder( w io.Writer, opts *options.BSONOptions, reg *bsoncodec.Registry, ) (*bson.Encoder, error) { vw := bvwPool.Get(w) enc, err := bson.NewEncoder(vw) if err != nil { return nil, err } if opts != nil { if opts.ErrorOnInlineDuplicates { enc.ErrorOnInlineDuplicates() } if opts.IntMinSize { enc.IntMinSize() } if opts.NilByteSliceAsEmpty { enc.NilByteSliceAsEmpty() } if opts.NilMapAsEmpty { enc.NilMapAsEmpty() } if opts.NilSliceAsEmpty { enc.NilSliceAsEmpty() } if opts.OmitZeroStruct { enc.OmitZeroStruct() } if opts.StringifyMapKeysWithFmt { enc.StringifyMapKeysWithFmt() } if opts.UseJSONStructTags { enc.UseJSONStructTags() } } if reg != nil { // TODO:(GODRIVER-2719): Remove error handling. if err := enc.SetRegistry(reg); err != nil { return nil, err } } return enc, nil } // newEncoderFn will return a function for constructing an encoder based on the // provided codec options. func newEncoderFn(opts *options.BSONOptions, registry *bsoncodec.Registry) codecutil.EncoderFn { return func(w io.Writer) (*bson.Encoder, error) { return getEncoder(w, opts, registry) } } // marshal marshals the given value as a BSON document. Byte slices are always converted to a // bson.Raw before marshaling. // // If bsonOpts and registry are specified, the encoder is configured with the requested behaviors. // If they are nil, the default behaviors are used. func marshal( val interface{}, bsonOpts *options.BSONOptions, registry *bsoncodec.Registry, ) (bsoncore.Document, error) { if registry == nil { registry = bson.DefaultRegistry } if val == nil { return nil, ErrNilDocument } if bs, ok := val.([]byte); ok { // Slight optimization so we'll just use MarshalBSON and not go through the codec machinery. val = bson.Raw(bs) } buf := new(bytes.Buffer) enc, err := getEncoder(buf, bsonOpts, registry) if err != nil { return nil, fmt.Errorf("error configuring BSON encoder: %w", err) } err = enc.Encode(val) if err != nil { return nil, MarshalError{Value: val, Err: err} } return buf.Bytes(), nil } // ensureID inserts the given ObjectID as an element named "_id" at the // beginning of the given BSON document if there is not an "_id" already. If // there is already an element named "_id", the document is not modified. It // returns the resulting document and the decoded Go value of the "_id" element. func ensureID( doc bsoncore.Document, oid primitive.ObjectID, bsonOpts *options.BSONOptions, reg *bsoncodec.Registry, ) (bsoncore.Document, interface{}, error) { if reg == nil { reg = bson.DefaultRegistry } // Try to find the "_id" element. If it exists, try to unmarshal just the // "_id" field as an interface{} and return it along with the unmodified // BSON document. if _, err := doc.LookupErr("_id"); err == nil { var id struct { ID interface{} `bson:"_id"` } dec, err := getDecoder(doc, bsonOpts, reg) if err != nil { return nil, nil, fmt.Errorf("error configuring BSON decoder: %w", err) } err = dec.Decode(&id) if err != nil { return nil, nil, fmt.Errorf("error unmarshaling BSON document: %w", err) } return doc, id.ID, nil } // We couldn't find an "_id" element, so add one with the value of the // provided ObjectID. olddoc := doc // Reserve an extra 17 bytes for the "_id" field we're about to add: // type (1) + "_id" (3) + terminator (1) + object ID (12) const extraSpace = 17 doc = make(bsoncore.Document, 0, len(olddoc)+extraSpace) _, doc = bsoncore.ReserveLength(doc) doc = bsoncore.AppendObjectIDElement(doc, "_id", oid) // Remove and re-write the BSON document length header. const int32Len = 4 doc = append(doc, olddoc[int32Len:]...) doc = bsoncore.UpdateLength(doc, 0, int32(len(doc))) return doc, oid, nil } func ensureDollarKey(doc bsoncore.Document) error { firstElem, err := doc.IndexErr(0) if err != nil { return errors.New("update document must have at least one element") } if !strings.HasPrefix(firstElem.Key(), "$") { return errors.New("update document must contain key beginning with '$'") } return nil } func ensureNoDollarKey(doc bsoncore.Document) error { if elem, err := doc.IndexErr(0); err == nil && strings.HasPrefix(elem.Key(), "$") { return errors.New("replacement document cannot contain keys beginning with '$'") } return nil } func marshalAggregatePipeline( pipeline interface{}, bsonOpts *options.BSONOptions, registry *bsoncodec.Registry, ) (bsoncore.Document, bool, error) { switch t := pipeline.(type) { case bsoncodec.ValueMarshaler: btype, val, err := t.MarshalBSONValue() if err != nil { return nil, false, err } if btype != bsontype.Array { return nil, false, fmt.Errorf("ValueMarshaler returned a %v, but was expecting %v", btype, bsontype.Array) } var hasOutputStage bool pipelineDoc := bsoncore.Document(val) values, _ := pipelineDoc.Values() if pipelineLen := len(values); pipelineLen > 0 { if finalDoc, ok := values[pipelineLen-1].DocumentOK(); ok { if elem, err := finalDoc.IndexErr(0); err == nil && (elem.Key() == "$out" || elem.Key() == "$merge") { hasOutputStage = true } } } return pipelineDoc, hasOutputStage, nil default: val := reflect.ValueOf(t) if !val.IsValid() || (val.Kind() != reflect.Slice && val.Kind() != reflect.Array) { return nil, false, fmt.Errorf("can only marshal slices and arrays into aggregation pipelines, but got %v", val.Kind()) } var hasOutputStage bool valLen := val.Len() switch t := pipeline.(type) { // Explicitly forbid non-empty pipelines that are semantically single documents // and are implemented as slices. case bson.D, bson.Raw, bsoncore.Document: if valLen > 0 { return nil, false, fmt.Errorf("%T is not an allowed pipeline type as it represents a single document. Use bson.A or mongo.Pipeline instead", t) } // bsoncore.Arrays do not need to be marshaled. Only check validity and presence of output stage. case bsoncore.Array: if err := t.Validate(); err != nil { return nil, false, err } values, err := t.Values() if err != nil { return nil, false, err } numVals := len(values) if numVals == 0 { return bsoncore.Document(t), false, nil } // If not empty, check if first value of the last stage is $out or $merge. if lastStage, ok := values[numVals-1].DocumentOK(); ok { if elem, err := lastStage.IndexErr(0); err == nil && (elem.Key() == "$out" || elem.Key() == "$merge") { hasOutputStage = true } } return bsoncore.Document(t), hasOutputStage, nil } aidx, arr := bsoncore.AppendArrayStart(nil) for idx := 0; idx < valLen; idx++ { doc, err := marshal(val.Index(idx).Interface(), bsonOpts, registry) if err != nil { return nil, false, err } if idx == valLen-1 { if elem, err := doc.IndexErr(0); err == nil && (elem.Key() == "$out" || elem.Key() == "$merge") { hasOutputStage = true } } arr = bsoncore.AppendDocumentElement(arr, strconv.Itoa(idx), doc) } arr, _ = bsoncore.AppendArrayEnd(arr, aidx) return arr, hasOutputStage, nil } } func marshalUpdateValue( update interface{}, bsonOpts *options.BSONOptions, registry *bsoncodec.Registry, dollarKeysAllowed bool, ) (bsoncore.Value, error) { documentCheckerFunc := ensureDollarKey if !dollarKeysAllowed { documentCheckerFunc = ensureNoDollarKey } var u bsoncore.Value var err error switch t := update.(type) { case nil: return u, ErrNilDocument case primitive.D: u.Type = bsontype.EmbeddedDocument u.Data, err = marshal(update, bsonOpts, registry) if err != nil { return u, err } return u, documentCheckerFunc(u.Data) case bson.Raw: u.Type = bsontype.EmbeddedDocument u.Data = t return u, documentCheckerFunc(u.Data) case bsoncore.Document: u.Type = bsontype.EmbeddedDocument u.Data = t return u, documentCheckerFunc(u.Data) case []byte: u.Type = bsontype.EmbeddedDocument u.Data = t return u, documentCheckerFunc(u.Data) case bsoncodec.Marshaler: u.Type = bsontype.EmbeddedDocument u.Data, err = t.MarshalBSON() if err != nil { return u, err } return u, documentCheckerFunc(u.Data) case bsoncodec.ValueMarshaler: u.Type, u.Data, err = t.MarshalBSONValue() if err != nil { return u, err } if u.Type != bsontype.Array && u.Type != bsontype.EmbeddedDocument { return u, fmt.Errorf("ValueMarshaler returned a %v, but was expecting %v or %v", u.Type, bsontype.Array, bsontype.EmbeddedDocument) } return u, err default: val := reflect.ValueOf(t) if !val.IsValid() { return u, fmt.Errorf("can only marshal slices and arrays into update pipelines, but got %v", val.Kind()) } if val.Kind() != reflect.Slice && val.Kind() != reflect.Array { u.Type = bsontype.EmbeddedDocument u.Data, err = marshal(update, bsonOpts, registry) if err != nil { return u, err } return u, documentCheckerFunc(u.Data) } u.Type = bsontype.Array aidx, arr := bsoncore.AppendArrayStart(nil) valLen := val.Len() for idx := 0; idx < valLen; idx++ { doc, err := marshal(val.Index(idx).Interface(), bsonOpts, registry) if err != nil { return u, err } if err := documentCheckerFunc(doc); err != nil { return u, err } arr = bsoncore.AppendDocumentElement(arr, strconv.Itoa(idx), doc) } u.Data, _ = bsoncore.AppendArrayEnd(arr, aidx) return u, err } } func marshalValue( val interface{}, bsonOpts *options.BSONOptions, registry *bsoncodec.Registry, ) (bsoncore.Value, error) { return codecutil.MarshalValue(val, newEncoderFn(bsonOpts, registry)) } // Build the aggregation pipeline for the CountDocument command. func countDocumentsAggregatePipeline( filter interface{}, encOpts *options.BSONOptions, registry *bsoncodec.Registry, opts *options.CountOptions, ) (bsoncore.Document, error) { filterDoc, err := marshal(filter, encOpts, registry) if err != nil { return nil, err } aidx, arr := bsoncore.AppendArrayStart(nil) didx, arr := bsoncore.AppendDocumentElementStart(arr, strconv.Itoa(0)) arr = bsoncore.AppendDocumentElement(arr, "$match", filterDoc) arr, _ = bsoncore.AppendDocumentEnd(arr, didx) index := 1 if opts != nil { if opts.Skip != nil { didx, arr = bsoncore.AppendDocumentElementStart(arr, strconv.Itoa(index)) arr = bsoncore.AppendInt64Element(arr, "$skip", *opts.Skip) arr, _ = bsoncore.AppendDocumentEnd(arr, didx) index++ } if opts.Limit != nil { didx, arr = bsoncore.AppendDocumentElementStart(arr, strconv.Itoa(index)) arr = bsoncore.AppendInt64Element(arr, "$limit", *opts.Limit) arr, _ = bsoncore.AppendDocumentEnd(arr, didx) index++ } } didx, arr = bsoncore.AppendDocumentElementStart(arr, strconv.Itoa(index)) iidx, arr := bsoncore.AppendDocumentElementStart(arr, "$group") arr = bsoncore.AppendInt32Element(arr, "_id", 1) iiidx, arr := bsoncore.AppendDocumentElementStart(arr, "n") arr = bsoncore.AppendInt32Element(arr, "$sum", 1) arr, _ = bsoncore.AppendDocumentEnd(arr, iiidx) arr, _ = bsoncore.AppendDocumentEnd(arr, iidx) arr, _ = bsoncore.AppendDocumentEnd(arr, didx) return bsoncore.AppendArrayEnd(arr, aidx) }