From a9c5e1f469bbbfdd34642968c2db9a77d70be4dd Mon Sep 17 00:00:00 2001 From: Seth Yates Date: Sun, 18 Sep 2016 08:33:53 +1000 Subject: [PATCH] docs(updated): updated docs files --- docs/ast/source/PubAdsService.js.json | 9376 +++++----- docs/ast/source/Service.js.json | 736 +- docs/ast/source/Size.js.json | 6 +- docs/ast/source/Slot.js.json | 10082 ++++++----- docs/ast/source/TargetingMap.js.json | 2366 +++ docs/ast/test/TargetingMap.spec.js.json | 14604 ++++++++++++++++ .../ImpressionViewableEvent.spec.js.json | 36 +- .../test/events/SlotOnloadEvent.spec.js.json | 36 +- .../events/SlotRenderEndedEvent.spec.js.json | 68 +- .../SlotVisibilityChangedEvent.spec.js.json | 44 +- .../src/CommandArray.js~CommandArray.html | 1 + ...nionAdsService.js~CompanionAdsService.html | 7 +- .../src/ContentService.js~ContentService.html | 7 +- docs/class/src/GPT.js~GPT.html | 1 + .../src/PubAdsService.js~PubAdsService.html | 65 +- ...nseInformation.js~ResponseInformation.html | 1 + .../SafeFrameConfig.js~SafeFrameConfig.html | 1 + docs/class/src/Service.js~Service.html | 19 +- docs/class/src/Size.js~Size.html | 1 + ...eMappingBuilder.js~SizeMappingBuilder.html | 1 + docs/class/src/Slot.js~Slot.html | 79 +- docs/class/src/SlotId.js~SlotId.html | 1 + .../src/TargetingMap.js~TargetingMap.html | 670 + ...wableEvent.js~ImpressionViewableEvent.html | 1 + .../SlotOnloadEvent.js~SlotOnloadEvent.html | 1 + ...derEndedEvent.js~SlotRenderEndedEvent.html | 1 + ...edEvent.js~SlotVisibilityChangedEvent.html | 1 + docs/coverage.json | 9 +- docs/dump.json | 2902 +-- docs/file/src/CommandArray.js.html | 1 + docs/file/src/CompanionAdsService.js.html | 1 + docs/file/src/ContentService.js.html | 1 + docs/file/src/GPT.js.html | 1 + docs/file/src/GeneralSize.js.html | 1 + docs/file/src/MultiSize.js.html | 1 + docs/file/src/NamedSize.js.html | 1 + docs/file/src/PubAdsService.js.html | 68 +- docs/file/src/ResponseInformation.js.html | 1 + docs/file/src/SafeFrameConfig.js.html | 1 + docs/file/src/Service.js.html | 9 +- docs/file/src/SingleSize.js.html | 1 + docs/file/src/SingleSizeArray.js.html | 1 + docs/file/src/Size.js.html | 3 +- docs/file/src/SizeMapping.js.html | 1 + docs/file/src/SizeMappingArray.js.html | 1 + docs/file/src/SizeMappingBuilder.js.html | 1 + docs/file/src/Slot.js.html | 68 +- docs/file/src/SlotId.js.html | 1 + docs/file/src/TargetingMap.js.html | 144 + .../events/ImpressionViewableEvent.js.html | 1 + docs/file/src/events/SlotOnloadEvent.js.html | 1 + .../src/events/SlotRenderEndedEvent.js.html | 1 + .../events/SlotVisibilityChangedEvent.js.html | 1 + docs/file/src/main.js.html | 1 + docs/identifiers.html | 27 + docs/index.html | 5 +- docs/script/search_index.js | 150 + docs/source.html | 69 +- docs/test-file/unit/CommandArray.spec.js.html | 1 + .../unit/CompanionAdsService.spec.js.html | 1 + .../unit/ContentService.spec.js.html | 1 + docs/test-file/unit/GPT.spec.js.html | 1 + docs/test-file/unit/GeneralSize.spec.js.html | 1 + docs/test-file/unit/MultiSize.spec.js.html | 1 + docs/test-file/unit/NamedSize.spec.js.html | 1 + .../test-file/unit/PubAdsService.spec.js.html | 1 + .../unit/ResponseInformation.spec.js.html | 1 + .../unit/SafeFrameConfig.spec.js.html | 1 + docs/test-file/unit/Service.spec.js.html | 1 + docs/test-file/unit/SingleSize.spec.js.html | 1 + .../unit/SingleSizeArray.spec.js.html | 1 + docs/test-file/unit/Size.spec.js.html | 1 + docs/test-file/unit/SizeMapping.spec.js.html | 1 + .../unit/SizeMappingArray.spec.js.html | 1 + .../unit/SizeMappingBuilder.spec.js.html | 1 + docs/test-file/unit/Slot.spec.js.html | 1 + docs/test-file/unit/SlotId.spec.js.html | 1 + docs/test-file/unit/TargetingMap.spec.js.html | 186 + .../ImpressionViewableEvent.spec.js.html | 1 + .../unit/events/SlotOnloadEvent.spec.js.html | 1 + .../events/SlotRenderEndedEvent.spec.js.html | 1 + .../SlotVisibilityChangedEvent.spec.js.html | 1 + docs/test.html | 115 + 83 files changed, 30400 insertions(+), 11610 deletions(-) create mode 100644 docs/ast/source/TargetingMap.js.json create mode 100644 docs/ast/test/TargetingMap.spec.js.json create mode 100644 docs/class/src/TargetingMap.js~TargetingMap.html create mode 100644 docs/file/src/TargetingMap.js.html create mode 100644 docs/test-file/unit/TargetingMap.spec.js.html diff --git a/docs/ast/source/PubAdsService.js.json b/docs/ast/source/PubAdsService.js.json index f615b19..dd5b8f8 100644 --- a/docs/ast/source/PubAdsService.js.json +++ b/docs/ast/source/PubAdsService.js.json @@ -145,22 +145,95 @@ "line": 2, "column": 26 } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "TargetingMap", + "range": [ + 67, + 79 + ], + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 19 + } + } + }, + "range": [ + 67, + 79 + ], + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 19 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./TargetingMap", + "raw": "'./TargetingMap'", + "range": [ + 85, + 101 + ], + "loc": { + "start": { + "line": 3, + "column": 25 + }, + "end": { + "line": 3, + "column": 41 + } + } + }, + "range": [ + 60, + 102 + ], + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 42 + } }, "trailingComments": [ { "type": "Block", "value": "*\n * Publisher Ads service. This service is used to fetch and show ads from your\n * {@link DFP} account.\n ", "range": [ - 61, - 171 + 104, + 214 ], "loc": { "start": { - "line": 4, + "line": 5, "column": 0 }, "end": { - "line": 7, + "line": 8, "column": 3 } } @@ -175,16 +248,16 @@ "type": "Identifier", "name": "PubAdsService", "range": [ - 193, - 206 + 236, + 249 ], "loc": { "start": { - "line": 8, + "line": 9, "column": 21 }, "end": { - "line": 8, + "line": 9, "column": 34 } } @@ -193,16 +266,16 @@ "type": "Identifier", "name": "Service", "range": [ - 215, - 222 + 258, + 265 ], "loc": { "start": { - "line": 8, + "line": 9, "column": 43 }, "end": { - "line": 8, + "line": 9, "column": 50 } } @@ -216,16 +289,16 @@ "type": "Identifier", "name": "constructor", "range": [ - 336, - 347 + 379, + 390 ], "loc": { "start": { - "line": 14, + "line": 15, "column": 2 }, "end": { - "line": 14, + "line": 15, "column": 13 } } @@ -238,16 +311,16 @@ "type": "Identifier", "name": "gt", "range": [ - 348, - 350 + 391, + 393 ], "loc": { "start": { - "line": 14, + "line": 15, "column": 14 }, "end": { - "line": 14, + "line": 15, "column": 16 } } @@ -263,16 +336,16 @@ "callee": { "type": "Super", "range": [ - 358, - 363 + 401, + 406 ], "loc": { "start": { - "line": 15, + "line": 16, "column": 4 }, "end": { - "line": 15, + "line": 16, "column": 9 } } @@ -282,16 +355,16 @@ "type": "Identifier", "name": "gt", "range": [ - 364, - 366 + 407, + 409 ], "loc": { "start": { - "line": 15, + "line": 16, "column": 10 }, "end": { - "line": 15, + "line": 16, "column": 12 } } @@ -303,16 +376,16 @@ "type": "Identifier", "name": "PubAdsService", "range": [ - 368, - 381 + 411, + 424 ], "loc": { "start": { - "line": 15, + "line": 16, "column": 14 }, "end": { - "line": 15, + "line": 16, "column": 27 } } @@ -321,62 +394,62 @@ "type": "Identifier", "name": "_name", "range": [ - 382, - 387 + 425, + 430 ], "loc": { "start": { - "line": 15, + "line": 16, "column": 28 }, "end": { - "line": 15, + "line": 16, "column": 33 } } }, "range": [ - 368, - 387 + 411, + 430 ], "loc": { "start": { - "line": 15, + "line": 16, "column": 14 }, "end": { - "line": 15, + "line": 16, "column": 33 } } } ], "range": [ - 358, - 388 + 401, + 431 ], "loc": { "start": { - "line": 15, + "line": 16, "column": 4 }, "end": { - "line": 15, + "line": 16, "column": 34 } } }, "range": [ - 358, - 389 + 401, + 432 ], "loc": { "start": { - "line": 15, + "line": 16, "column": 4 }, "end": { - "line": 15, + "line": 16, "column": 35 } } @@ -392,16 +465,16 @@ "object": { "type": "ThisExpression", "range": [ - 394, - 398 + 437, + 441 ], "loc": { "start": { - "line": 16, + "line": 17, "column": 4 }, "end": { - "line": 16, + "line": 17, "column": 8 } } @@ -410,31 +483,31 @@ "type": "Identifier", "name": "_categoryExclusions", "range": [ - 399, - 418 + 442, + 461 ], "loc": { "start": { - "line": 16, + "line": 17, "column": 9 }, "end": { - "line": 16, + "line": 17, "column": 28 } } }, "range": [ - 394, - 418 + 437, + 461 ], "loc": { "start": { - "line": 16, + "line": 17, "column": 4 }, "end": { - "line": 16, + "line": 17, "column": 28 } } @@ -443,46 +516,46 @@ "type": "ArrayExpression", "elements": [], "range": [ - 421, - 423 + 464, + 466 ], "loc": { "start": { - "line": 16, + "line": 17, "column": 31 }, "end": { - "line": 16, + "line": 17, "column": 33 } } }, "range": [ - 394, - 423 + 437, + 466 ], "loc": { "start": { - "line": 16, + "line": 17, "column": 4 }, "end": { - "line": 16, + "line": 17, "column": 33 } } }, "range": [ - 394, - 424 + 437, + 467 ], "loc": { "start": { - "line": 16, + "line": 17, "column": 4 }, "end": { - "line": 16, + "line": 17, "column": 34 } } @@ -498,16 +571,16 @@ "object": { "type": "ThisExpression", "range": [ - 429, - 433 + 472, + 476 ], "loc": { "start": { - "line": 17, + "line": 18, "column": 4 }, "end": { - "line": 17, + "line": 18, "column": 8 } } @@ -516,80 +589,98 @@ "type": "Identifier", "name": "_targeting", "range": [ - 434, - 444 + 477, + 487 ], "loc": { "start": { - "line": 17, + "line": 18, "column": 9 }, "end": { - "line": 17, + "line": 18, "column": 19 } } }, "range": [ - 429, - 444 + 472, + 487 ], "loc": { "start": { - "line": 17, + "line": 18, "column": 4 }, "end": { - "line": 17, + "line": 18, "column": 19 } } }, "right": { - "type": "ObjectExpression", - "properties": [], + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "TargetingMap", + "range": [ + 494, + 506 + ], + "loc": { + "start": { + "line": 18, + "column": 26 + }, + "end": { + "line": 18, + "column": 38 + } + } + }, + "arguments": [], "range": [ - 447, - 449 + 490, + 508 ], "loc": { "start": { - "line": 17, + "line": 18, "column": 22 }, "end": { - "line": 17, - "column": 24 + "line": 18, + "column": 40 } } }, "range": [ - 429, - 449 + 472, + 508 ], "loc": { "start": { - "line": 17, + "line": 18, "column": 4 }, "end": { - "line": 17, - "column": 24 + "line": 18, + "column": 40 } } }, "range": [ - 429, - 450 + 472, + 509 ], "loc": { "start": { - "line": 17, + "line": 18, "column": 4 }, "end": { - "line": 17, - "column": 25 + "line": 18, + "column": 41 } } }, @@ -604,16 +695,16 @@ "object": { "type": "ThisExpression", "range": [ - 455, - 459 + 514, + 518 ], "loc": { "start": { - "line": 18, + "line": 19, "column": 4 }, "end": { - "line": 18, + "line": 19, "column": 8 } } @@ -622,31 +713,31 @@ "type": "Identifier", "name": "_options", "range": [ - 460, - 468 + 519, + 527 ], "loc": { "start": { - "line": 18, + "line": 19, "column": 9 }, "end": { - "line": 18, + "line": 19, "column": 17 } } }, "range": [ - 455, - 468 + 514, + 527 ], "loc": { "start": { - "line": 18, + "line": 19, "column": 4 }, "end": { - "line": 18, + "line": 19, "column": 17 } } @@ -660,16 +751,16 @@ "type": "Identifier", "name": "collapseEmptyDivs", "range": [ - 479, - 496 + 538, + 555 ], "loc": { "start": { - "line": 19, + "line": 20, "column": 6 }, "end": { - "line": 19, + "line": 20, "column": 23 } } @@ -679,16 +770,16 @@ "value": false, "raw": "false", "range": [ - 498, - 503 + 557, + 562 ], "loc": { "start": { - "line": 19, + "line": 20, "column": 25 }, "end": { - "line": 19, + "line": 20, "column": 30 } } @@ -698,16 +789,16 @@ "shorthand": false, "computed": false, "range": [ - 479, - 503 + 538, + 562 ], "loc": { "start": { - "line": 19, + "line": 20, "column": 6 }, "end": { - "line": 19, + "line": 20, "column": 30 } } @@ -718,16 +809,16 @@ "type": "Identifier", "name": "collapseBeforeAdFetch", "range": [ - 511, - 532 + 570, + 591 ], "loc": { "start": { - "line": 20, + "line": 21, "column": 6 }, "end": { - "line": 20, + "line": 21, "column": 27 } } @@ -737,16 +828,16 @@ "value": false, "raw": "false", "range": [ - 534, - 539 + 593, + 598 ], "loc": { "start": { - "line": 20, + "line": 21, "column": 29 }, "end": { - "line": 20, + "line": 21, "column": 34 } } @@ -756,16 +847,16 @@ "shorthand": false, "computed": false, "range": [ - 511, - 539 + 570, + 598 ], "loc": { "start": { - "line": 20, + "line": 21, "column": 6 }, "end": { - "line": 20, + "line": 21, "column": 34 } } @@ -776,16 +867,16 @@ "type": "Identifier", "name": "initialLoad", "range": [ - 547, - 558 + 606, + 617 ], "loc": { "start": { - "line": 21, + "line": 22, "column": 6 }, "end": { - "line": 21, + "line": 22, "column": 17 } } @@ -795,16 +886,16 @@ "value": true, "raw": "true", "range": [ - 560, - 564 + 619, + 623 ], "loc": { "start": { - "line": 21, + "line": 22, "column": 19 }, "end": { - "line": 21, + "line": 22, "column": 23 } } @@ -814,16 +905,16 @@ "shorthand": false, "computed": false, "range": [ - 547, - 564 + 606, + 623 ], "loc": { "start": { - "line": 21, + "line": 22, "column": 6 }, "end": { - "line": 21, + "line": 22, "column": 23 } } @@ -834,16 +925,16 @@ "type": "Identifier", "name": "asyncRendering", "range": [ - 572, - 586 + 631, + 645 ], "loc": { "start": { - "line": 22, + "line": 23, "column": 6 }, "end": { - "line": 22, + "line": 23, "column": 20 } } @@ -853,16 +944,16 @@ "value": false, "raw": "false", "range": [ - 588, - 593 + 647, + 652 ], "loc": { "start": { - "line": 22, + "line": 23, "column": 22 }, "end": { - "line": 22, + "line": 23, "column": 27 } } @@ -872,16 +963,16 @@ "shorthand": false, "computed": false, "range": [ - 572, - 593 + 631, + 652 ], "loc": { "start": { - "line": 22, + "line": 23, "column": 6 }, "end": { - "line": 22, + "line": 23, "column": 27 } } @@ -892,16 +983,16 @@ "type": "Identifier", "name": "singleRequest", "range": [ - 601, - 614 + 660, + 673 ], "loc": { "start": { - "line": 23, + "line": 24, "column": 6 }, "end": { - "line": 23, + "line": 24, "column": 19 } } @@ -911,16 +1002,16 @@ "value": false, "raw": "false", "range": [ - 616, - 621 + 675, + 680 ], "loc": { "start": { - "line": 23, + "line": 24, "column": 21 }, "end": { - "line": 23, + "line": 24, "column": 26 } } @@ -930,16 +1021,16 @@ "shorthand": false, "computed": false, "range": [ - 601, - 621 + 660, + 680 ], "loc": { "start": { - "line": 23, + "line": 24, "column": 6 }, "end": { - "line": 23, + "line": 24, "column": 26 } } @@ -950,16 +1041,16 @@ "type": "Identifier", "name": "syncRendering", "range": [ - 629, - 642 + 688, + 701 ], "loc": { "start": { - "line": 24, + "line": 25, "column": 6 }, "end": { - "line": 24, + "line": 25, "column": 19 } } @@ -969,16 +1060,16 @@ "value": false, "raw": "false", "range": [ - 644, - 649 + 703, + 708 ], "loc": { "start": { - "line": 24, + "line": 25, "column": 21 }, "end": { - "line": 24, + "line": 25, "column": 26 } } @@ -988,16 +1079,16 @@ "shorthand": false, "computed": false, "range": [ - 629, - 649 + 688, + 708 ], "loc": { "start": { - "line": 24, + "line": 25, "column": 6 }, "end": { - "line": 24, + "line": 25, "column": 26 } } @@ -1008,16 +1099,16 @@ "type": "Identifier", "name": "videoAds", "range": [ - 657, - 665 + 716, + 724 ], "loc": { "start": { - "line": 25, + "line": 26, "column": 6 }, "end": { - "line": 25, + "line": 26, "column": 14 } } @@ -1027,16 +1118,16 @@ "value": false, "raw": "false", "range": [ - 667, - 672 + 726, + 731 ], "loc": { "start": { - "line": 25, + "line": 26, "column": 16 }, "end": { - "line": 25, + "line": 26, "column": 21 } } @@ -1046,16 +1137,16 @@ "shorthand": false, "computed": false, "range": [ - 657, - 672 + 716, + 731 ], "loc": { "start": { - "line": 25, + "line": 26, "column": 6 }, "end": { - "line": 25, + "line": 26, "column": 21 } } @@ -1066,16 +1157,16 @@ "type": "Identifier", "name": "centerAds", "range": [ - 680, - 689 + 739, + 748 ], "loc": { "start": { - "line": 26, + "line": 27, "column": 6 }, "end": { - "line": 26, + "line": 27, "column": 15 } } @@ -1085,16 +1176,16 @@ "value": false, "raw": "false", "range": [ - 691, - 696 + 750, + 755 ], "loc": { "start": { - "line": 26, + "line": 27, "column": 17 }, "end": { - "line": 26, + "line": 27, "column": 22 } } @@ -1104,16 +1195,16 @@ "shorthand": false, "computed": false, "range": [ - 680, - 696 + 739, + 755 ], "loc": { "start": { - "line": 26, + "line": 27, "column": 6 }, "end": { - "line": 26, + "line": 27, "column": 22 } } @@ -1124,16 +1215,16 @@ "type": "Identifier", "name": "forceSafeFrame", "range": [ - 704, - 718 + 763, + 777 ], "loc": { "start": { - "line": 27, + "line": 28, "column": 6 }, "end": { - "line": 27, + "line": 28, "column": 20 } } @@ -1143,16 +1234,16 @@ "value": false, "raw": "false", "range": [ - 720, - 725 + 779, + 784 ], "loc": { "start": { - "line": 27, + "line": 28, "column": 22 }, "end": { - "line": 27, + "line": 28, "column": 27 } } @@ -1162,16 +1253,16 @@ "shorthand": false, "computed": false, "range": [ - 704, - 725 + 763, + 784 ], "loc": { "start": { - "line": 27, + "line": 28, "column": 6 }, "end": { - "line": 27, + "line": 28, "column": 27 } } @@ -1182,16 +1273,16 @@ "type": "Identifier", "name": "cookieOptions", "range": [ - 733, - 746 + 792, + 805 ], "loc": { "start": { - "line": 28, + "line": 29, "column": 6 }, "end": { - "line": 28, + "line": 29, "column": 19 } } @@ -1201,16 +1292,16 @@ "value": null, "raw": "null", "range": [ - 748, - 752 + 807, + 811 ], "loc": { "start": { - "line": 28, + "line": 29, "column": 21 }, "end": { - "line": 28, + "line": 29, "column": 25 } } @@ -1220,16 +1311,16 @@ "shorthand": false, "computed": false, "range": [ - 733, - 752 + 792, + 811 ], "loc": { "start": { - "line": 28, + "line": 29, "column": 6 }, "end": { - "line": 28, + "line": 29, "column": 25 } } @@ -1240,16 +1331,16 @@ "type": "Identifier", "name": "ppid", "range": [ - 760, - 764 + 819, + 823 ], "loc": { "start": { - "line": 29, + "line": 30, "column": 6 }, "end": { - "line": 29, + "line": 30, "column": 10 } } @@ -1259,16 +1350,16 @@ "value": null, "raw": "null", "range": [ - 766, - 770 + 825, + 829 ], "loc": { "start": { - "line": 29, + "line": 30, "column": 12 }, "end": { - "line": 29, + "line": 30, "column": 16 } } @@ -1278,16 +1369,16 @@ "shorthand": false, "computed": false, "range": [ - 760, - 770 + 819, + 829 ], "loc": { "start": { - "line": 29, + "line": 30, "column": 6 }, "end": { - "line": 29, + "line": 30, "column": 16 } } @@ -1298,16 +1389,16 @@ "type": "Identifier", "name": "videoContentId", "range": [ - 778, - 792 + 837, + 851 ], "loc": { "start": { - "line": 30, + "line": 31, "column": 6 }, "end": { - "line": 30, + "line": 31, "column": 20 } } @@ -1317,16 +1408,16 @@ "value": null, "raw": "null", "range": [ - 794, - 798 + 853, + 857 ], "loc": { "start": { - "line": 30, + "line": 31, "column": 22 }, "end": { - "line": 30, + "line": 31, "column": 26 } } @@ -1336,16 +1427,16 @@ "shorthand": false, "computed": false, "range": [ - 778, - 798 + 837, + 857 ], "loc": { "start": { - "line": 30, + "line": 31, "column": 6 }, "end": { - "line": 30, + "line": 31, "column": 26 } } @@ -1356,16 +1447,16 @@ "type": "Identifier", "name": "videoCmsId", "range": [ - 806, - 816 + 865, + 875 ], "loc": { "start": { - "line": 31, + "line": 32, "column": 6 }, "end": { - "line": 31, + "line": 32, "column": 16 } } @@ -1375,16 +1466,16 @@ "value": null, "raw": "null", "range": [ - 818, - 822 + 877, + 881 ], "loc": { "start": { - "line": 31, + "line": 32, "column": 18 }, "end": { - "line": 31, + "line": 32, "column": 22 } } @@ -1394,16 +1485,16 @@ "shorthand": false, "computed": false, "range": [ - 806, - 822 + 865, + 881 ], "loc": { "start": { - "line": 31, + "line": 32, "column": 6 }, "end": { - "line": 31, + "line": 32, "column": 22 } } @@ -1414,16 +1505,16 @@ "type": "Identifier", "name": "safeFrameConfig", "range": [ - 830, - 845 + 889, + 904 ], "loc": { "start": { - "line": 32, + "line": 33, "column": 6 }, "end": { - "line": 32, + "line": 33, "column": 21 } } @@ -1433,16 +1524,16 @@ "value": null, "raw": "null", "range": [ - 847, - 851 + 906, + 910 ], "loc": { "start": { - "line": 32, + "line": 33, "column": 23 }, "end": { - "line": 32, + "line": 33, "column": 27 } } @@ -1452,16 +1543,16 @@ "shorthand": false, "computed": false, "range": [ - 830, - 851 + 889, + 910 ], "loc": { "start": { - "line": 32, + "line": 33, "column": 6 }, "end": { - "line": 32, + "line": 33, "column": 27 } } @@ -1472,16 +1563,16 @@ "type": "Identifier", "name": "tagForChildDirectedTreatment", "range": [ - 859, - 887 + 918, + 946 ], "loc": { "start": { - "line": 33, + "line": 34, "column": 6 }, "end": { - "line": 33, + "line": 34, "column": 34 } } @@ -1491,16 +1582,16 @@ "value": null, "raw": "null", "range": [ - 889, - 893 + 948, + 952 ], "loc": { "start": { - "line": 33, + "line": 34, "column": 36 }, "end": { - "line": 33, + "line": 34, "column": 40 } } @@ -1510,62 +1601,62 @@ "shorthand": false, "computed": false, "range": [ - 859, - 893 + 918, + 952 ], "loc": { "start": { - "line": 33, + "line": 34, "column": 6 }, "end": { - "line": 33, + "line": 34, "column": 40 } } } ], "range": [ - 471, - 899 + 530, + 958 ], "loc": { "start": { - "line": 18, + "line": 19, "column": 20 }, "end": { - "line": 34, + "line": 35, "column": 5 } } }, "range": [ - 455, - 899 + 514, + 958 ], "loc": { "start": { - "line": 18, + "line": 19, "column": 4 }, "end": { - "line": 34, + "line": 35, "column": 5 } } }, "range": [ - 455, - 900 + 514, + 959 ], "loc": { "start": { - "line": 18, + "line": 19, "column": 4 }, "end": { - "line": 34, + "line": 35, "column": 6 } } @@ -1581,16 +1672,16 @@ "object": { "type": "ThisExpression", "range": [ - 905, - 909 + 964, + 968 ], "loc": { "start": { - "line": 35, + "line": 36, "column": 4 }, "end": { - "line": 35, + "line": 36, "column": 8 } } @@ -1599,31 +1690,31 @@ "type": "Identifier", "name": "_correlator", "range": [ - 910, - 921 + 969, + 980 ], "loc": { "start": { - "line": 35, + "line": 36, "column": 9 }, "end": { - "line": 35, + "line": 36, "column": 20 } } }, "range": [ - 905, - 921 + 964, + 980 ], "loc": { "start": { - "line": 35, + "line": 36, "column": 4 }, "end": { - "line": 35, + "line": 36, "column": 20 } } @@ -1637,16 +1728,16 @@ "type": "Identifier", "name": "Math", "range": [ - 924, - 928 + 983, + 987 ], "loc": { "start": { - "line": 35, + "line": 36, "column": 23 }, "end": { - "line": 35, + "line": 36, "column": 27 } } @@ -1655,93 +1746,93 @@ "type": "Identifier", "name": "random", "range": [ - 929, - 935 + 988, + 994 ], "loc": { "start": { - "line": 35, + "line": 36, "column": 28 }, "end": { - "line": 35, + "line": 36, "column": 34 } } }, "range": [ - 924, - 935 + 983, + 994 ], "loc": { "start": { - "line": 35, + "line": 36, "column": 23 }, "end": { - "line": 35, + "line": 36, "column": 34 } } }, "arguments": [], "range": [ - 924, - 937 + 983, + 996 ], "loc": { "start": { - "line": 35, + "line": 36, "column": 23 }, "end": { - "line": 35, + "line": 36, "column": 36 } } }, "range": [ - 905, - 937 + 964, + 996 ], "loc": { "start": { - "line": 35, + "line": 36, "column": 4 }, "end": { - "line": 35, + "line": 36, "column": 36 } } }, "range": [ - 905, - 938 + 964, + 997 ], "loc": { "start": { - "line": 35, + "line": 36, "column": 4 }, "end": { - "line": 35, + "line": 36, "column": 37 } } } ], "range": [ - 352, - 942 + 395, + 1001 ], "loc": { "start": { - "line": 14, + "line": 15, "column": 18 }, "end": { - "line": 36, + "line": 37, "column": 3 } } @@ -1749,16 +1840,16 @@ "generator": false, "expression": false, "range": [ - 347, - 942 + 390, + 1001 ], "loc": { "start": { - "line": 14, + "line": 15, "column": 13 }, "end": { - "line": 36, + "line": 37, "column": 3 } } @@ -1766,16 +1857,16 @@ "kind": "constructor", "computed": false, "range": [ - 336, - 942 + 379, + 1001 ], "loc": { "start": { - "line": 14, + "line": 15, "column": 2 }, "end": { - "line": 36, + "line": 37, "column": 3 } }, @@ -1784,16 +1875,16 @@ "type": "Block", "value": "*\n * Creates a new PubAdsService.\n *\n * @param {GPT} gt The containing {@link GPT} instance.\n ", "range": [ - 227, - 333 + 270, + 376 ], "loc": { "start": { - "line": 9, + "line": 10, "column": 2 }, "end": { - "line": 13, + "line": 14, "column": 5 } } @@ -1804,16 +1895,16 @@ "type": "Block", "value": "*\n * The name of the service.\n *\n * @private\n * @type {string}\n ", "range": [ - 946, - 1024 + 1005, + 1083 ], "loc": { "start": { - "line": 38, + "line": 39, "column": 2 }, "end": { - "line": 43, + "line": 44, "column": 5 } } @@ -1827,16 +1918,16 @@ "type": "Identifier", "name": "_name", "range": [ - 1038, - 1043 + 1097, + 1102 ], "loc": { "start": { - "line": 44, + "line": 45, "column": 13 }, "end": { - "line": 44, + "line": 45, "column": 18 } } @@ -1855,47 +1946,47 @@ "value": "publisher_ads", "raw": "'publisher_ads'", "range": [ - 1059, - 1074 + 1118, + 1133 ], "loc": { "start": { - "line": 45, + "line": 46, "column": 11 }, "end": { - "line": 45, + "line": 46, "column": 26 } } }, "range": [ - 1052, - 1075 + 1111, + 1134 ], "loc": { "start": { - "line": 45, + "line": 46, "column": 4 }, "end": { - "line": 45, + "line": 46, "column": 27 } } } ], "range": [ - 1046, - 1079 + 1105, + 1138 ], "loc": { "start": { - "line": 44, + "line": 45, "column": 21 }, "end": { - "line": 46, + "line": 47, "column": 3 } } @@ -1903,16 +1994,16 @@ "generator": false, "expression": false, "range": [ - 1043, - 1079 + 1102, + 1138 ], "loc": { "start": { - "line": 44, + "line": 45, "column": 18 }, "end": { - "line": 46, + "line": 47, "column": 3 } } @@ -1920,16 +2011,16 @@ "kind": "get", "computed": false, "range": [ - 1027, - 1079 + 1086, + 1138 ], "loc": { "start": { - "line": 44, + "line": 45, "column": 2 }, "end": { - "line": 46, + "line": 47, "column": 3 } }, @@ -1938,16 +2029,16 @@ "type": "Block", "value": "*\n * The name of the service.\n *\n * @private\n * @type {string}\n ", "range": [ - 946, - 1024 + 1005, + 1083 ], "loc": { "start": { - "line": 38, + "line": 39, "column": 2 }, "end": { - "line": 43, + "line": 44, "column": 5 } } @@ -1958,16 +2049,16 @@ "type": "Block", "value": "*\n * Enables the service.\n *\n * @override\n ", "range": [ - 1083, - 1138 + 1142, + 1197 ], "loc": { "start": { - "line": 48, + "line": 49, "column": 2 }, "end": { - "line": 52, + "line": 53, "column": 5 } } @@ -1981,16 +2072,16 @@ "type": "Identifier", "name": "enable", "range": [ - 1141, - 1147 + 1200, + 1206 ], "loc": { "start": { - "line": 53, + "line": 54, "column": 2 }, "end": { - "line": 53, + "line": 54, "column": 8 } } @@ -2012,16 +2103,16 @@ "object": { "type": "Super", "range": [ - 1156, - 1161 + 1215, + 1220 ], "loc": { "start": { - "line": 54, + "line": 55, "column": 4 }, "end": { - "line": 54, + "line": 55, "column": 9 } } @@ -2030,62 +2121,62 @@ "type": "Identifier", "name": "enable", "range": [ - 1162, - 1168 + 1221, + 1227 ], "loc": { "start": { - "line": 54, + "line": 55, "column": 10 }, "end": { - "line": 54, + "line": 55, "column": 16 } } }, "range": [ - 1156, - 1168 + 1215, + 1227 ], "loc": { "start": { - "line": 54, + "line": 55, "column": 4 }, "end": { - "line": 54, + "line": 55, "column": 16 } } }, "arguments": [], "range": [ - 1156, - 1170 + 1215, + 1229 ], "loc": { "start": { - "line": 54, + "line": 55, "column": 4 }, "end": { - "line": 54, + "line": 55, "column": 18 } } }, "range": [ - 1156, - 1171 + 1215, + 1230 ], "loc": { "start": { - "line": 54, + "line": 55, "column": 4 }, "end": { - "line": 54, + "line": 55, "column": 19 } } @@ -2104,16 +2195,16 @@ "object": { "type": "ThisExpression", "range": [ - 1176, - 1180 + 1235, + 1239 ], "loc": { "start": { - "line": 55, + "line": 56, "column": 4 }, "end": { - "line": 55, + "line": 56, "column": 8 } } @@ -2122,31 +2213,31 @@ "type": "Identifier", "name": "_gpt", "range": [ - 1181, - 1185 + 1240, + 1244 ], "loc": { "start": { - "line": 55, + "line": 56, "column": 9 }, "end": { - "line": 55, + "line": 56, "column": 13 } } }, "range": [ - 1176, - 1185 + 1235, + 1244 ], "loc": { "start": { - "line": 55, + "line": 56, "column": 4 }, "end": { - "line": 55, + "line": 56, "column": 13 } } @@ -2155,31 +2246,31 @@ "type": "Identifier", "name": "pubadsReady", "range": [ - 1186, - 1197 + 1245, + 1256 ], "loc": { "start": { - "line": 55, + "line": 56, "column": 14 }, "end": { - "line": 55, + "line": 56, "column": 25 } } }, "range": [ - 1176, - 1197 + 1235, + 1256 ], "loc": { "start": { - "line": 55, + "line": 56, "column": 4 }, "end": { - "line": 55, + "line": 56, "column": 25 } } @@ -2189,62 +2280,62 @@ "value": true, "raw": "true", "range": [ - 1200, - 1204 + 1259, + 1263 ], "loc": { "start": { - "line": 55, + "line": 56, "column": 28 }, "end": { - "line": 55, + "line": 56, "column": 32 } } }, "range": [ - 1176, - 1204 + 1235, + 1263 ], "loc": { "start": { - "line": 55, + "line": 56, "column": 4 }, "end": { - "line": 55, + "line": 56, "column": 32 } } }, "range": [ - 1176, - 1205 + 1235, + 1264 ], "loc": { "start": { - "line": 55, + "line": 56, "column": 4 }, "end": { - "line": 55, + "line": 56, "column": 33 } } } ], "range": [ - 1150, - 1209 + 1209, + 1268 ], "loc": { "start": { - "line": 53, + "line": 54, "column": 11 }, "end": { - "line": 56, + "line": 57, "column": 3 } } @@ -2252,16 +2343,16 @@ "generator": false, "expression": false, "range": [ - 1147, - 1209 + 1206, + 1268 ], "loc": { "start": { - "line": 53, + "line": 54, "column": 8 }, "end": { - "line": 56, + "line": 57, "column": 3 } } @@ -2269,16 +2360,16 @@ "kind": "method", "computed": false, "range": [ - 1141, - 1209 + 1200, + 1268 ], "loc": { "start": { - "line": 53, + "line": 54, "column": 2 }, "end": { - "line": 56, + "line": 57, "column": 3 } }, @@ -2287,16 +2378,16 @@ "type": "Block", "value": "*\n * Enables the service.\n *\n * @override\n ", "range": [ - 1083, - 1138 + 1142, + 1197 ], "loc": { "start": { - "line": 48, + "line": 49, "column": 2 }, "end": { - "line": 52, + "line": 53, "column": 5 } } @@ -2307,16 +2398,16 @@ "type": "Block", "value": "*\n * Fetches and displays new ads for specific or all slots on the page.\n * Works only in asynchronous rendering mode.\n *\n * For proper behavior across all browsers, calling refresh must be preceded\n * by a call to display the ad slot. If the call to display is omitted, refresh\n * may behave unexpectedly. If desired, the {@link PubAdsService#disableInitialLoad} method can be\n * used to stop display from fetching an ad.\n *\n * @param {Array} [optSlots] The slots to refresh. Array is optional;\n * all slots will be refreshed if it is unspecified.\n * @param {{changeCorrelator: boolean}} [optOptions] Configuration options\n * associated with this refresh call. changeCorrelator specifies whether or\n * not a new correlator is to be generated for fetching ads. Our ad servers\n * maintain this correlator value briefly (currently for 30 seconds, but\n * subject to change), such that requests with the same correlator received\n * close together will be considered a single page view. By default a new\n * correlator is generated for every refresh.\n ", "range": [ - 1213, - 2306 + 1272, + 2365 ], "loc": { "start": { - "line": 58, + "line": 59, "column": 2 }, "end": { - "line": 76, + "line": 77, "column": 5 } } @@ -2330,16 +2421,16 @@ "type": "Identifier", "name": "refresh", "range": [ - 2309, - 2316 + 2368, + 2375 ], "loc": { "start": { - "line": 77, + "line": 78, "column": 2 }, "end": { - "line": 77, + "line": 78, "column": 9 } } @@ -2352,16 +2443,16 @@ "type": "Identifier", "name": "optSlots", "range": [ - 2317, - 2325 + 2376, + 2384 ], "loc": { "start": { - "line": 77, + "line": 78, "column": 10 }, "end": { - "line": 77, + "line": 78, "column": 18 } } @@ -2370,16 +2461,16 @@ "type": "Identifier", "name": "optOptions", "range": [ - 2327, - 2337 + 2386, + 2396 ], "loc": { "start": { - "line": 77, + "line": 78, "column": 20 }, "end": { - "line": 77, + "line": 78, "column": 30 } } @@ -2397,16 +2488,16 @@ "type": "Identifier", "name": "slots", "range": [ - 2349, - 2354 + 2408, + 2413 ], "loc": { "start": { - "line": 78, + "line": 79, "column": 8 }, "end": { - "line": 78, + "line": 79, "column": 13 } } @@ -2417,16 +2508,16 @@ "object": { "type": "ThisExpression", "range": [ - 2357, - 2361 + 2416, + 2420 ], "loc": { "start": { - "line": 78, + "line": 79, "column": 16 }, "end": { - "line": 78, + "line": 79, "column": 20 } } @@ -2435,46 +2526,46 @@ "type": "Identifier", "name": "_slots", "range": [ - 2362, - 2368 + 2421, + 2427 ], "loc": { "start": { - "line": 78, + "line": 79, "column": 21 }, "end": { - "line": 78, + "line": 79, "column": 27 } } }, "range": [ - 2357, - 2368 + 2416, + 2427 ], "loc": { "start": { - "line": 78, + "line": 79, "column": 16 }, "end": { - "line": 78, + "line": 79, "column": 27 } } }, "range": [ - 2349, - 2368 + 2408, + 2427 ], "loc": { "start": { - "line": 78, + "line": 79, "column": 8 }, "end": { - "line": 78, + "line": 79, "column": 27 } } @@ -2482,16 +2573,16 @@ ], "kind": "let", "range": [ - 2345, - 2369 + 2404, + 2428 ], "loc": { "start": { - "line": 78, + "line": 79, "column": 4 }, "end": { - "line": 78, + "line": 79, "column": 28 } } @@ -2505,16 +2596,16 @@ "type": "Identifier", "name": "optSlots", "range": [ - 2378, - 2386 + 2437, + 2445 ], "loc": { "start": { - "line": 79, + "line": 80, "column": 8 }, "end": { - "line": 79, + "line": 80, "column": 16 } } @@ -2524,31 +2615,31 @@ "value": null, "raw": "null", "range": [ - 2390, - 2394 + 2449, + 2453 ], "loc": { "start": { - "line": 79, + "line": 80, "column": 20 }, "end": { - "line": 79, + "line": 80, "column": 24 } } }, "range": [ - 2378, - 2394 + 2437, + 2453 ], "loc": { "start": { - "line": 79, + "line": 80, "column": 8 }, "end": { - "line": 79, + "line": 80, "column": 24 } } @@ -2565,16 +2656,16 @@ "type": "Identifier", "name": "slots", "range": [ - 2404, - 2409 + 2463, + 2468 ], "loc": { "start": { - "line": 80, + "line": 81, "column": 6 }, "end": { - "line": 80, + "line": 81, "column": 11 } } @@ -2583,78 +2674,78 @@ "type": "Identifier", "name": "optSlots", "range": [ - 2412, - 2420 + 2471, + 2479 ], "loc": { "start": { - "line": 80, + "line": 81, "column": 14 }, "end": { - "line": 80, + "line": 81, "column": 22 } } }, "range": [ - 2404, - 2420 + 2463, + 2479 ], "loc": { "start": { - "line": 80, + "line": 81, "column": 6 }, "end": { - "line": 80, + "line": 81, "column": 22 } } }, "range": [ - 2404, - 2421 + 2463, + 2480 ], "loc": { "start": { - "line": 80, + "line": 81, "column": 6 }, "end": { - "line": 80, + "line": 81, "column": 23 } } } ], "range": [ - 2396, - 2427 + 2455, + 2486 ], "loc": { "start": { - "line": 79, + "line": 80, "column": 26 }, "end": { - "line": 81, + "line": 82, "column": 5 } } }, "alternate": null, "range": [ - 2374, - 2427 + 2433, + 2486 ], "loc": { "start": { - "line": 79, + "line": 80, "column": 4 }, "end": { - "line": 81, + "line": 82, "column": 5 } } @@ -2670,32 +2761,32 @@ "type": "Identifier", "name": "slot", "range": [ - 2441, - 2445 + 2500, + 2504 ], "loc": { "start": { - "line": 82, + "line": 83, "column": 13 }, "end": { - "line": 82, + "line": 83, "column": 17 } } }, "init": null, "range": [ - 2441, - 2445 + 2500, + 2504 ], "loc": { "start": { - "line": 82, + "line": 83, "column": 13 }, "end": { - "line": 82, + "line": 83, "column": 17 } } @@ -2703,16 +2794,16 @@ ], "kind": "let", "range": [ - 2437, - 2445 + 2496, + 2504 ], "loc": { "start": { - "line": 82, + "line": 83, "column": 9 }, "end": { - "line": 82, + "line": 83, "column": 17 } } @@ -2721,16 +2812,16 @@ "type": "Identifier", "name": "slots", "range": [ - 2449, - 2454 + 2508, + 2513 ], "loc": { "start": { - "line": 82, + "line": 83, "column": 21 }, "end": { - "line": 82, + "line": 83, "column": 26 } } @@ -2749,16 +2840,16 @@ "type": "Identifier", "name": "slot", "range": [ - 2464, - 2468 + 2523, + 2527 ], "loc": { "start": { - "line": 83, + "line": 84, "column": 6 }, "end": { - "line": 83, + "line": 84, "column": 10 } } @@ -2767,93 +2858,93 @@ "type": "Identifier", "name": "_refresh", "range": [ - 2469, - 2477 + 2528, + 2536 ], "loc": { "start": { - "line": 83, + "line": 84, "column": 11 }, "end": { - "line": 83, + "line": 84, "column": 19 } } }, "range": [ - 2464, - 2477 + 2523, + 2536 ], "loc": { "start": { - "line": 83, + "line": 84, "column": 6 }, "end": { - "line": 83, + "line": 84, "column": 19 } } }, "arguments": [], "range": [ - 2464, - 2479 + 2523, + 2538 ], "loc": { "start": { - "line": 83, + "line": 84, "column": 6 }, "end": { - "line": 83, + "line": 84, "column": 21 } } }, "range": [ - 2464, - 2480 + 2523, + 2539 ], "loc": { "start": { - "line": 83, + "line": 84, "column": 6 }, "end": { - "line": 83, + "line": 84, "column": 22 } } } ], "range": [ - 2456, - 2486 + 2515, + 2545 ], "loc": { "start": { - "line": 82, + "line": 83, "column": 28 }, "end": { - "line": 84, + "line": 85, "column": 5 } } }, "range": [ - 2432, - 2486 + 2491, + 2545 ], "loc": { "start": { - "line": 82, + "line": 83, "column": 4 }, "end": { - "line": 84, + "line": 85, "column": 5 } } @@ -2867,16 +2958,16 @@ "type": "Identifier", "name": "optOptions", "range": [ - 2495, - 2505 + 2554, + 2564 ], "loc": { "start": { - "line": 85, + "line": 86, "column": 8 }, "end": { - "line": 85, + "line": 86, "column": 18 } } @@ -2888,16 +2979,16 @@ "type": "Identifier", "name": "optOptions", "range": [ - 2509, - 2519 + 2568, + 2578 ], "loc": { "start": { - "line": 85, + "line": 86, "column": 22 }, "end": { - "line": 85, + "line": 86, "column": 32 } } @@ -2906,46 +2997,46 @@ "type": "Identifier", "name": "changeCorrelator", "range": [ - 2520, - 2536 + 2579, + 2595 ], "loc": { "start": { - "line": 85, + "line": 86, "column": 33 }, "end": { - "line": 85, + "line": 86, "column": 49 } } }, "range": [ - 2509, - 2536 + 2568, + 2595 ], "loc": { "start": { - "line": 85, + "line": 86, "column": 22 }, "end": { - "line": 85, + "line": 86, "column": 49 } } }, "range": [ - 2495, - 2536 + 2554, + 2595 ], "loc": { "start": { - "line": 85, + "line": 86, "column": 8 }, "end": { - "line": 85, + "line": 86, "column": 49 } } @@ -2964,16 +3055,16 @@ "object": { "type": "ThisExpression", "range": [ - 2546, - 2550 + 2605, + 2609 ], "loc": { "start": { - "line": 86, + "line": 87, "column": 6 }, "end": { - "line": 86, + "line": 87, "column": 10 } } @@ -2982,31 +3073,31 @@ "type": "Identifier", "name": "_correlator", "range": [ - 2551, - 2562 + 2610, + 2621 ], "loc": { "start": { - "line": 86, + "line": 87, "column": 11 }, "end": { - "line": 86, + "line": 87, "column": 22 } } }, "range": [ - 2546, - 2562 + 2605, + 2621 ], "loc": { "start": { - "line": 86, + "line": 87, "column": 6 }, "end": { - "line": 86, + "line": 87, "column": 22 } } @@ -3020,16 +3111,16 @@ "type": "Identifier", "name": "Math", "range": [ - 2565, - 2569 + 2624, + 2628 ], "loc": { "start": { - "line": 86, + "line": 87, "column": 25 }, "end": { - "line": 86, + "line": 87, "column": 29 } } @@ -3038,125 +3129,125 @@ "type": "Identifier", "name": "random", "range": [ - 2570, - 2576 + 2629, + 2635 ], "loc": { "start": { - "line": 86, + "line": 87, "column": 30 }, "end": { - "line": 86, + "line": 87, "column": 36 } } }, "range": [ - 2565, - 2576 + 2624, + 2635 ], "loc": { "start": { - "line": 86, + "line": 87, "column": 25 }, "end": { - "line": 86, + "line": 87, "column": 36 } } }, "arguments": [], "range": [ - 2565, - 2578 + 2624, + 2637 ], "loc": { "start": { - "line": 86, + "line": 87, "column": 25 }, "end": { - "line": 86, + "line": 87, "column": 38 } } }, "range": [ - 2546, - 2578 + 2605, + 2637 ], "loc": { "start": { - "line": 86, + "line": 87, "column": 6 }, "end": { - "line": 86, + "line": 87, "column": 38 } } }, "range": [ - 2546, - 2579 + 2605, + 2638 ], "loc": { "start": { - "line": 86, + "line": 87, "column": 6 }, "end": { - "line": 86, + "line": 87, "column": 39 } } } ], "range": [ - 2538, - 2585 + 2597, + 2644 ], "loc": { "start": { - "line": 85, + "line": 86, "column": 51 }, "end": { - "line": 87, + "line": 88, "column": 5 } } }, "alternate": null, "range": [ - 2491, - 2585 + 2550, + 2644 ], "loc": { "start": { - "line": 85, + "line": 86, "column": 4 }, "end": { - "line": 87, + "line": 88, "column": 5 } } } ], "range": [ - 2339, - 2589 + 2398, + 2648 ], "loc": { "start": { - "line": 77, + "line": 78, "column": 32 }, "end": { - "line": 88, + "line": 89, "column": 3 } } @@ -3164,16 +3255,16 @@ "generator": false, "expression": false, "range": [ - 2316, - 2589 + 2375, + 2648 ], "loc": { "start": { - "line": 77, + "line": 78, "column": 9 }, "end": { - "line": 88, + "line": 89, "column": 3 } } @@ -3181,16 +3272,16 @@ "kind": "method", "computed": false, "range": [ - 2309, - 2589 + 2368, + 2648 ], "loc": { "start": { - "line": 77, + "line": 78, "column": 2 }, "end": { - "line": 88, + "line": 89, "column": 3 } }, @@ -3199,16 +3290,16 @@ "type": "Block", "value": "*\n * Fetches and displays new ads for specific or all slots on the page.\n * Works only in asynchronous rendering mode.\n *\n * For proper behavior across all browsers, calling refresh must be preceded\n * by a call to display the ad slot. If the call to display is omitted, refresh\n * may behave unexpectedly. If desired, the {@link PubAdsService#disableInitialLoad} method can be\n * used to stop display from fetching an ad.\n *\n * @param {Array} [optSlots] The slots to refresh. Array is optional;\n * all slots will be refreshed if it is unspecified.\n * @param {{changeCorrelator: boolean}} [optOptions] Configuration options\n * associated with this refresh call. changeCorrelator specifies whether or\n * not a new correlator is to be generated for fetching ads. Our ad servers\n * maintain this correlator value briefly (currently for 30 seconds, but\n * subject to change), such that requests with the same correlator received\n * close together will be considered a single page view. By default a new\n * correlator is generated for every refresh.\n ", "range": [ - 1213, - 2306 + 1272, + 2365 ], "loc": { "start": { - "line": 58, + "line": 59, "column": 2 }, "end": { - "line": 76, + "line": 77, "column": 5 } } @@ -3219,16 +3310,16 @@ "type": "Block", "value": "*\n * Removes the ads from the given slots and replaces them with blank\n * content. The slots will be marked as unfetched.\n *\n * @param {Array} [optSlots] The array of slots to clear. Array is\n * optional; all slots will be cleared if it is unspecified.\n * @returns {boolean} Returns true if slots have been cleared, false otherwise.\n ", "range": [ - 2593, - 2952 + 2652, + 3011 ], "loc": { "start": { - "line": 90, + "line": 91, "column": 2 }, "end": { - "line": 97, + "line": 98, "column": 5 } } @@ -3242,16 +3333,16 @@ "type": "Identifier", "name": "clear", "range": [ - 2955, - 2960 + 3014, + 3019 ], "loc": { "start": { - "line": 98, + "line": 99, "column": 2 }, "end": { - "line": 98, + "line": 99, "column": 7 } } @@ -3264,16 +3355,16 @@ "type": "Identifier", "name": "optSlots", "range": [ - 2961, - 2969 + 3020, + 3028 ], "loc": { "start": { - "line": 98, + "line": 99, "column": 8 }, "end": { - "line": 98, + "line": 99, "column": 16 } } @@ -3291,16 +3382,16 @@ "type": "Identifier", "name": "slots", "range": [ - 2981, - 2986 + 3040, + 3045 ], "loc": { "start": { - "line": 99, + "line": 100, "column": 8 }, "end": { - "line": 99, + "line": 100, "column": 13 } } @@ -3311,16 +3402,16 @@ "object": { "type": "ThisExpression", "range": [ - 2989, - 2993 + 3048, + 3052 ], "loc": { "start": { - "line": 99, + "line": 100, "column": 16 }, "end": { - "line": 99, + "line": 100, "column": 20 } } @@ -3329,46 +3420,46 @@ "type": "Identifier", "name": "_slots", "range": [ - 2994, - 3000 + 3053, + 3059 ], "loc": { "start": { - "line": 99, + "line": 100, "column": 21 }, "end": { - "line": 99, + "line": 100, "column": 27 } } }, "range": [ - 2989, - 3000 + 3048, + 3059 ], "loc": { "start": { - "line": 99, + "line": 100, "column": 16 }, "end": { - "line": 99, + "line": 100, "column": 27 } } }, "range": [ - 2981, - 3000 + 3040, + 3059 ], "loc": { "start": { - "line": 99, + "line": 100, "column": 8 }, "end": { - "line": 99, + "line": 100, "column": 27 } } @@ -3376,16 +3467,16 @@ ], "kind": "let", "range": [ - 2977, - 3001 + 3036, + 3060 ], "loc": { "start": { - "line": 99, + "line": 100, "column": 4 }, "end": { - "line": 99, + "line": 100, "column": 28 } } @@ -3399,16 +3490,16 @@ "type": "Identifier", "name": "optSlots", "range": [ - 3010, - 3018 + 3069, + 3077 ], "loc": { "start": { - "line": 100, + "line": 101, "column": 8 }, "end": { - "line": 100, + "line": 101, "column": 16 } } @@ -3418,31 +3509,31 @@ "value": null, "raw": "null", "range": [ - 3022, - 3026 + 3081, + 3085 ], "loc": { "start": { - "line": 100, + "line": 101, "column": 20 }, "end": { - "line": 100, + "line": 101, "column": 24 } } }, "range": [ - 3010, - 3026 + 3069, + 3085 ], "loc": { "start": { - "line": 100, + "line": 101, "column": 8 }, "end": { - "line": 100, + "line": 101, "column": 24 } } @@ -3459,16 +3550,16 @@ "type": "Identifier", "name": "slots", "range": [ - 3036, - 3041 + 3095, + 3100 ], "loc": { "start": { - "line": 101, + "line": 102, "column": 6 }, "end": { - "line": 101, + "line": 102, "column": 11 } } @@ -3477,78 +3568,78 @@ "type": "Identifier", "name": "optSlots", "range": [ - 3044, - 3052 + 3103, + 3111 ], "loc": { "start": { - "line": 101, + "line": 102, "column": 14 }, "end": { - "line": 101, + "line": 102, "column": 22 } } }, "range": [ - 3036, - 3052 + 3095, + 3111 ], "loc": { "start": { - "line": 101, + "line": 102, "column": 6 }, "end": { - "line": 101, + "line": 102, "column": 22 } } }, "range": [ - 3036, - 3053 + 3095, + 3112 ], "loc": { "start": { - "line": 101, + "line": 102, "column": 6 }, "end": { - "line": 101, + "line": 102, "column": 23 } } } ], "range": [ - 3028, - 3059 + 3087, + 3118 ], "loc": { "start": { - "line": 100, + "line": 101, "column": 26 }, "end": { - "line": 102, + "line": 103, "column": 5 } } }, "alternate": null, "range": [ - 3006, - 3059 + 3065, + 3118 ], "loc": { "start": { - "line": 100, + "line": 101, "column": 4 }, "end": { - "line": 102, + "line": 103, "column": 5 } } @@ -3564,32 +3655,32 @@ "type": "Identifier", "name": "slot", "range": [ - 3074, - 3078 + 3133, + 3137 ], "loc": { "start": { - "line": 104, + "line": 105, "column": 13 }, "end": { - "line": 104, + "line": 105, "column": 17 } } }, "init": null, "range": [ - 3074, - 3078 + 3133, + 3137 ], "loc": { "start": { - "line": 104, + "line": 105, "column": 13 }, "end": { - "line": 104, + "line": 105, "column": 17 } } @@ -3597,16 +3688,16 @@ ], "kind": "let", "range": [ - 3070, - 3078 + 3129, + 3137 ], "loc": { "start": { - "line": 104, + "line": 105, "column": 9 }, "end": { - "line": 104, + "line": 105, "column": 17 } } @@ -3615,16 +3706,16 @@ "type": "Identifier", "name": "slots", "range": [ - 3082, - 3087 + 3141, + 3146 ], "loc": { "start": { - "line": 104, + "line": 105, "column": 21 }, "end": { - "line": 104, + "line": 105, "column": 26 } } @@ -3648,16 +3739,16 @@ "object": { "type": "ThisExpression", "range": [ - 3101, - 3105 + 3160, + 3164 ], "loc": { "start": { - "line": 105, + "line": 106, "column": 10 }, "end": { - "line": 105, + "line": 106, "column": 14 } } @@ -3666,31 +3757,31 @@ "type": "Identifier", "name": "_slots", "range": [ - 3106, - 3112 + 3165, + 3171 ], "loc": { "start": { - "line": 105, + "line": 106, "column": 15 }, "end": { - "line": 105, + "line": 106, "column": 21 } } }, "range": [ - 3101, - 3112 + 3160, + 3171 ], "loc": { "start": { - "line": 105, + "line": 106, "column": 10 }, "end": { - "line": 105, + "line": 106, "column": 21 } } @@ -3699,31 +3790,31 @@ "type": "Identifier", "name": "indexOf", "range": [ - 3113, - 3120 + 3172, + 3179 ], "loc": { "start": { - "line": 105, + "line": 106, "column": 22 }, "end": { - "line": 105, + "line": 106, "column": 29 } } }, "range": [ - 3101, - 3120 + 3160, + 3179 ], "loc": { "start": { - "line": 105, + "line": 106, "column": 10 }, "end": { - "line": 105, + "line": 106, "column": 29 } } @@ -3733,32 +3824,32 @@ "type": "Identifier", "name": "slot", "range": [ - 3121, - 3125 + 3180, + 3184 ], "loc": { "start": { - "line": 105, + "line": 106, "column": 30 }, "end": { - "line": 105, + "line": 106, "column": 34 } } } ], "range": [ - 3101, - 3126 + 3160, + 3185 ], "loc": { "start": { - "line": 105, + "line": 106, "column": 10 }, "end": { - "line": 105, + "line": 106, "column": 35 } } @@ -3771,47 +3862,47 @@ "value": 1, "raw": "1", "range": [ - 3132, - 3133 + 3191, + 3192 ], "loc": { "start": { - "line": 105, + "line": 106, "column": 41 }, "end": { - "line": 105, + "line": 106, "column": 42 } } }, "prefix": true, "range": [ - 3131, - 3133 + 3190, + 3192 ], "loc": { "start": { - "line": 105, + "line": 106, "column": 40 }, "end": { - "line": 105, + "line": 106, "column": 42 } } }, "range": [ - 3101, - 3133 + 3160, + 3192 ], "loc": { "start": { - "line": 105, + "line": 106, "column": 10 }, "end": { - "line": 105, + "line": 106, "column": 42 } } @@ -3830,16 +3921,16 @@ "type": "Identifier", "name": "slot", "range": [ - 3145, - 3149 + 3204, + 3208 ], "loc": { "start": { - "line": 106, + "line": 107, "column": 8 }, "end": { - "line": 106, + "line": 107, "column": 12 } } @@ -3848,78 +3939,78 @@ "type": "Identifier", "name": "_clear", "range": [ - 3150, - 3156 + 3209, + 3215 ], "loc": { "start": { - "line": 106, + "line": 107, "column": 13 }, "end": { - "line": 106, + "line": 107, "column": 19 } } }, "range": [ - 3145, - 3156 + 3204, + 3215 ], "loc": { "start": { - "line": 106, + "line": 107, "column": 8 }, "end": { - "line": 106, + "line": 107, "column": 19 } } }, "arguments": [], "range": [ - 3145, - 3158 + 3204, + 3217 ], "loc": { "start": { - "line": 106, + "line": 107, "column": 8 }, "end": { - "line": 106, + "line": 107, "column": 21 } } }, "range": [ - 3145, - 3159 + 3204, + 3218 ], "loc": { "start": { - "line": 106, + "line": 107, "column": 8 }, "end": { - "line": 106, + "line": 107, "column": 22 } } } ], "range": [ - 3135, - 3167 + 3194, + 3226 ], "loc": { "start": { - "line": 105, + "line": 106, "column": 44 }, "end": { - "line": 107, + "line": 108, "column": 7 } } @@ -3934,93 +4025,93 @@ "value": false, "raw": "false", "range": [ - 3190, - 3195 + 3249, + 3254 ], "loc": { "start": { - "line": 108, + "line": 109, "column": 15 }, "end": { - "line": 108, + "line": 109, "column": 20 } } }, "range": [ - 3183, - 3196 + 3242, + 3255 ], "loc": { "start": { - "line": 108, + "line": 109, "column": 8 }, "end": { - "line": 108, + "line": 109, "column": 21 } } } ], "range": [ - 3173, - 3204 + 3232, + 3263 ], "loc": { "start": { - "line": 107, + "line": 108, "column": 13 }, "end": { - "line": 109, + "line": 110, "column": 7 } } }, "range": [ - 3097, - 3204 + 3156, + 3263 ], "loc": { "start": { - "line": 105, + "line": 106, "column": 6 }, "end": { - "line": 109, + "line": 110, "column": 7 } } } ], "range": [ - 3089, - 3210 + 3148, + 3269 ], "loc": { "start": { - "line": 104, + "line": 105, "column": 28 }, "end": { - "line": 110, + "line": 111, "column": 5 } } }, "range": [ - 3065, - 3210 + 3124, + 3269 ], "loc": { "start": { - "line": 104, + "line": 105, "column": 4 }, "end": { - "line": 110, + "line": 111, "column": 5 } } @@ -4032,47 +4123,47 @@ "value": true, "raw": "true", "range": [ - 3223, - 3227 + 3282, + 3286 ], "loc": { "start": { - "line": 112, + "line": 113, "column": 11 }, "end": { - "line": 112, + "line": 113, "column": 15 } } }, "range": [ - 3216, - 3228 + 3275, + 3287 ], "loc": { "start": { - "line": 112, + "line": 113, "column": 4 }, "end": { - "line": 112, + "line": 113, "column": 16 } } } ], "range": [ - 2971, - 3232 + 3030, + 3291 ], "loc": { "start": { - "line": 98, + "line": 99, "column": 18 }, "end": { - "line": 113, + "line": 114, "column": 3 } } @@ -4080,16 +4171,16 @@ "generator": false, "expression": false, "range": [ - 2960, - 3232 + 3019, + 3291 ], "loc": { "start": { - "line": 98, + "line": 99, "column": 7 }, "end": { - "line": 113, + "line": 114, "column": 3 } } @@ -4097,16 +4188,16 @@ "kind": "method", "computed": false, "range": [ - 2955, - 3232 + 3014, + 3291 ], "loc": { "start": { - "line": 98, + "line": 99, "column": 2 }, "end": { - "line": 113, + "line": 114, "column": 3 } }, @@ -4115,16 +4206,16 @@ "type": "Block", "value": "*\n * Removes the ads from the given slots and replaces them with blank\n * content. The slots will be marked as unfetched.\n *\n * @param {Array} [optSlots] The array of slots to clear. Array is\n * optional; all slots will be cleared if it is unspecified.\n * @returns {boolean} Returns true if slots have been cleared, false otherwise.\n ", "range": [ - 2593, - 2952 + 2652, + 3011 ], "loc": { "start": { - "line": 90, + "line": 91, "column": 2 }, "end": { - "line": 97, + "line": 98, "column": 5 } } @@ -4135,16 +4226,16 @@ "type": "Block", "value": "*\n * Constructs an out-of-page passback slot. A passback is where a {@link GPT} snippet\n * is used as a creative in an ad serving system. The ad serving system could\n * be {@link DFP} or a third party. In this case, the ads are always requested\n * synchronously in non-single request mode.\n *\n * @param {string} adUnitPath The ad unit path of the slot to use as a passback.\n * @returns {?Slot} The new passback object or null if the method was\n * called with invalid arguments.\n ", "range": [ - 3236, - 3737 + 3295, + 3796 ], "loc": { "start": { - "line": 115, + "line": 116, "column": 2 }, "end": { - "line": 124, + "line": 125, "column": 5 } } @@ -4158,16 +4249,16 @@ "type": "Identifier", "name": "defineOutOfPagePassback", "range": [ - 3740, - 3763 + 3799, + 3822 ], "loc": { "start": { - "line": 125, + "line": 126, "column": 2 }, "end": { - "line": 125, + "line": 126, "column": 25 } } @@ -4180,16 +4271,16 @@ "type": "Identifier", "name": "adUnitPath", "range": [ - 3764, - 3774 + 3823, + 3833 ], "loc": { "start": { - "line": 125, + "line": 126, "column": 26 }, "end": { - "line": 125, + "line": 126, "column": 36 } } @@ -4207,16 +4298,16 @@ "type": "Identifier", "name": "adUnitPath", "range": [ - 3786, - 3796 + 3845, + 3855 ], "loc": { "start": { - "line": 126, + "line": 127, "column": 8 }, "end": { - "line": 126, + "line": 127, "column": 18 } } @@ -4226,31 +4317,31 @@ "value": null, "raw": "null", "range": [ - 3800, - 3804 + 3859, + 3863 ], "loc": { "start": { - "line": 126, + "line": 127, "column": 22 }, "end": { - "line": 126, + "line": 127, "column": 26 } } }, "range": [ - 3786, - 3804 + 3845, + 3863 ], "loc": { "start": { - "line": 126, + "line": 127, "column": 8 }, "end": { - "line": 126, + "line": 127, "column": 26 } } @@ -4267,16 +4358,16 @@ "type": "Identifier", "name": "slot", "range": [ - 3820, - 3824 + 3879, + 3883 ], "loc": { "start": { - "line": 127, + "line": 128, "column": 12 }, "end": { - "line": 127, + "line": 128, "column": 16 } } @@ -4292,16 +4383,16 @@ "type": "Identifier", "name": "Slot", "range": [ - 3831, - 3835 + 3890, + 3894 ], "loc": { "start": { - "line": 127, + "line": 128, "column": 23 }, "end": { - "line": 127, + "line": 128, "column": 27 } } @@ -4311,32 +4402,32 @@ "type": "Identifier", "name": "adUnitPath", "range": [ - 3836, - 3846 + 3895, + 3905 ], "loc": { "start": { - "line": 127, + "line": 128, "column": 28 }, "end": { - "line": 127, + "line": 128, "column": 38 } } } ], "range": [ - 3827, - 3847 + 3886, + 3906 ], "loc": { "start": { - "line": 127, + "line": 128, "column": 19 }, "end": { - "line": 127, + "line": 128, "column": 39 } } @@ -4345,31 +4436,31 @@ "type": "Identifier", "name": "addService", "range": [ - 3848, - 3858 + 3907, + 3917 ], "loc": { "start": { - "line": 127, + "line": 128, "column": 40 }, "end": { - "line": 127, + "line": 128, "column": 50 } } }, "range": [ - 3827, - 3858 + 3886, + 3917 ], "loc": { "start": { - "line": 127, + "line": 128, "column": 19 }, "end": { - "line": 127, + "line": 128, "column": 50 } } @@ -4378,47 +4469,47 @@ { "type": "ThisExpression", "range": [ - 3859, - 3863 + 3918, + 3922 ], "loc": { "start": { - "line": 127, + "line": 128, "column": 51 }, "end": { - "line": 127, + "line": 128, "column": 55 } } } ], "range": [ - 3827, - 3864 + 3886, + 3923 ], "loc": { "start": { - "line": 127, + "line": 128, "column": 19 }, "end": { - "line": 127, + "line": 128, "column": 56 } } }, "range": [ - 3820, - 3864 + 3879, + 3923 ], "loc": { "start": { - "line": 127, + "line": 128, "column": 12 }, "end": { - "line": 127, + "line": 128, "column": 56 } } @@ -4426,16 +4517,16 @@ ], "kind": "const", "range": [ - 3814, - 3865 + 3873, + 3924 ], "loc": { "start": { - "line": 127, + "line": 128, "column": 6 }, "end": { - "line": 127, + "line": 128, "column": 57 } } @@ -4452,16 +4543,16 @@ "type": "Identifier", "name": "slot", "range": [ - 3872, - 3876 + 3931, + 3935 ], "loc": { "start": { - "line": 128, + "line": 129, "column": 6 }, "end": { - "line": 128, + "line": 129, "column": 10 } } @@ -4470,31 +4561,31 @@ "type": "Identifier", "name": "_passback", "range": [ - 3877, - 3886 + 3936, + 3945 ], "loc": { "start": { - "line": 128, + "line": 129, "column": 11 }, "end": { - "line": 128, + "line": 129, "column": 20 } } }, "range": [ - 3872, - 3886 + 3931, + 3945 ], "loc": { "start": { - "line": 128, + "line": 129, "column": 6 }, "end": { - "line": 128, + "line": 129, "column": 20 } } @@ -4504,46 +4595,46 @@ "value": true, "raw": "true", "range": [ - 3889, - 3893 + 3948, + 3952 ], "loc": { "start": { - "line": 128, + "line": 129, "column": 23 }, "end": { - "line": 128, + "line": 129, "column": 27 } } }, "range": [ - 3872, - 3893 + 3931, + 3952 ], "loc": { "start": { - "line": 128, + "line": 129, "column": 6 }, "end": { - "line": 128, + "line": 129, "column": 27 } } }, "range": [ - 3872, - 3894 + 3931, + 3953 ], "loc": { "start": { - "line": 128, + "line": 129, "column": 6 }, "end": { - "line": 128, + "line": 129, "column": 28 } } @@ -4560,16 +4651,16 @@ "type": "Identifier", "name": "slot", "range": [ - 3901, - 3905 + 3960, + 3964 ], "loc": { "start": { - "line": 129, + "line": 130, "column": 6 }, "end": { - "line": 129, + "line": 130, "column": 10 } } @@ -4578,31 +4669,31 @@ "type": "Identifier", "name": "_outOfPage", "range": [ - 3906, - 3916 + 3965, + 3975 ], "loc": { "start": { - "line": 129, + "line": 130, "column": 11 }, "end": { - "line": 129, + "line": 130, "column": 21 } } }, "range": [ - 3901, - 3916 + 3960, + 3975 ], "loc": { "start": { - "line": 129, + "line": 130, "column": 6 }, "end": { - "line": 129, + "line": 130, "column": 21 } } @@ -4612,46 +4703,46 @@ "value": true, "raw": "true", "range": [ - 3919, - 3923 + 3978, + 3982 ], "loc": { "start": { - "line": 129, + "line": 130, "column": 24 }, "end": { - "line": 129, + "line": 130, "column": 28 } } }, "range": [ - 3901, - 3923 + 3960, + 3982 ], "loc": { "start": { - "line": 129, + "line": 130, "column": 6 }, "end": { - "line": 129, + "line": 130, "column": 28 } } }, "range": [ - 3901, - 3924 + 3960, + 3983 ], "loc": { "start": { - "line": 129, + "line": 130, "column": 6 }, "end": { - "line": 129, + "line": 130, "column": 29 } } @@ -4662,47 +4753,47 @@ "type": "Identifier", "name": "slot", "range": [ - 3938, - 3942 + 3997, + 4001 ], "loc": { "start": { - "line": 130, + "line": 131, "column": 13 }, "end": { - "line": 130, + "line": 131, "column": 17 } } }, "range": [ - 3931, - 3943 + 3990, + 4002 ], "loc": { "start": { - "line": 130, + "line": 131, "column": 6 }, "end": { - "line": 130, + "line": 131, "column": 18 } } } ], "range": [ - 3806, - 3949 + 3865, + 4008 ], "loc": { "start": { - "line": 126, + "line": 127, "column": 28 }, "end": { - "line": 131, + "line": 132, "column": 5 } } @@ -4717,78 +4808,78 @@ "value": null, "raw": "null", "range": [ - 3970, - 3974 + 4029, + 4033 ], "loc": { "start": { - "line": 132, + "line": 133, "column": 13 }, "end": { - "line": 132, + "line": 133, "column": 17 } } }, "range": [ - 3963, - 3975 + 4022, + 4034 ], "loc": { "start": { - "line": 132, + "line": 133, "column": 6 }, "end": { - "line": 132, + "line": 133, "column": 18 } } } ], "range": [ - 3955, - 3981 + 4014, + 4040 ], "loc": { "start": { - "line": 131, + "line": 132, "column": 11 }, "end": { - "line": 133, + "line": 134, "column": 5 } } }, "range": [ - 3782, - 3981 + 3841, + 4040 ], "loc": { "start": { - "line": 126, + "line": 127, "column": 4 }, "end": { - "line": 133, + "line": 134, "column": 5 } } } ], "range": [ - 3776, - 3985 + 3835, + 4044 ], "loc": { "start": { - "line": 125, + "line": 126, "column": 38 }, "end": { - "line": 134, + "line": 135, "column": 3 } } @@ -4796,16 +4887,16 @@ "generator": false, "expression": false, "range": [ - 3763, - 3985 + 3822, + 4044 ], "loc": { "start": { - "line": 125, + "line": 126, "column": 25 }, "end": { - "line": 134, + "line": 135, "column": 3 } } @@ -4813,16 +4904,16 @@ "kind": "method", "computed": false, "range": [ - 3740, - 3985 + 3799, + 4044 ], "loc": { "start": { - "line": 125, + "line": 126, "column": 2 }, "end": { - "line": 134, + "line": 135, "column": 3 } }, @@ -4831,16 +4922,16 @@ "type": "Block", "value": "*\n * Constructs an out-of-page passback slot. A passback is where a {@link GPT} snippet\n * is used as a creative in an ad serving system. The ad serving system could\n * be {@link DFP} or a third party. In this case, the ads are always requested\n * synchronously in non-single request mode.\n *\n * @param {string} adUnitPath The ad unit path of the slot to use as a passback.\n * @returns {?Slot} The new passback object or null if the method was\n * called with invalid arguments.\n ", "range": [ - 3236, - 3737 + 3295, + 3796 ], "loc": { "start": { - "line": 115, + "line": 116, "column": 2 }, "end": { - "line": 124, + "line": 125, "column": 5 } } @@ -4851,16 +4942,16 @@ "type": "Block", "value": "*\n * Constructs a passback slot. A passback is where a {@link GPT} snippet is used as a\n * creative in an ad serving system. The ad serving system could be {@link DFP} or a\n * third party. In this case, the ads are always requested synchronously in\n * non-single request mode.\n *\n * @param {string} adUnitPath The ad unit path of the slot to use as a passback.\n * @param {GeneralSize} size The size of the slot.\n * @returns {?Slot} The new passback object or null if the method was\n * called with invalid arguments.\n ", "range": [ - 3989, - 4530 + 4048, + 4589 ], "loc": { "start": { - "line": 136, + "line": 137, "column": 2 }, "end": { - "line": 146, + "line": 147, "column": 5 } } @@ -4874,16 +4965,16 @@ "type": "Identifier", "name": "definePassback", "range": [ - 4533, - 4547 + 4592, + 4606 ], "loc": { "start": { - "line": 147, + "line": 148, "column": 2 }, "end": { - "line": 147, + "line": 148, "column": 16 } } @@ -4896,16 +4987,16 @@ "type": "Identifier", "name": "adUnitPath", "range": [ - 4548, - 4558 + 4607, + 4617 ], "loc": { "start": { - "line": 147, + "line": 148, "column": 17 }, "end": { - "line": 147, + "line": 148, "column": 27 } } @@ -4914,16 +5005,16 @@ "type": "Identifier", "name": "size", "range": [ - 4560, - 4564 + 4619, + 4623 ], "loc": { "start": { - "line": 147, + "line": 148, "column": 29 }, "end": { - "line": 147, + "line": 148, "column": 33 } } @@ -4944,16 +5035,16 @@ "type": "Identifier", "name": "adUnitPath", "range": [ - 4576, - 4586 + 4635, + 4645 ], "loc": { "start": { - "line": 148, + "line": 149, "column": 8 }, "end": { - "line": 148, + "line": 149, "column": 18 } } @@ -4963,31 +5054,31 @@ "value": null, "raw": "null", "range": [ - 4590, - 4594 + 4649, + 4653 ], "loc": { "start": { - "line": 148, + "line": 149, "column": 22 }, "end": { - "line": 148, + "line": 149, "column": 26 } } }, "range": [ - 4576, - 4594 + 4635, + 4653 ], "loc": { "start": { - "line": 148, + "line": 149, "column": 8 }, "end": { - "line": 148, + "line": 149, "column": 26 } } @@ -4999,16 +5090,16 @@ "type": "Identifier", "name": "size", "range": [ - 4598, - 4602 + 4657, + 4661 ], "loc": { "start": { - "line": 148, + "line": 149, "column": 30 }, "end": { - "line": 148, + "line": 149, "column": 34 } } @@ -5018,46 +5109,46 @@ "value": null, "raw": "null", "range": [ - 4606, - 4610 + 4665, + 4669 ], "loc": { "start": { - "line": 148, + "line": 149, "column": 38 }, "end": { - "line": 148, + "line": 149, "column": 42 } } }, "range": [ - 4598, - 4610 + 4657, + 4669 ], "loc": { "start": { - "line": 148, + "line": 149, "column": 30 }, "end": { - "line": 148, + "line": 149, "column": 42 } } }, "range": [ - 4576, - 4610 + 4635, + 4669 ], "loc": { "start": { - "line": 148, + "line": 149, "column": 8 }, "end": { - "line": 148, + "line": 149, "column": 42 } } @@ -5074,16 +5165,16 @@ "type": "Identifier", "name": "slot", "range": [ - 4626, - 4630 + 4685, + 4689 ], "loc": { "start": { - "line": 149, + "line": 150, "column": 12 }, "end": { - "line": 149, + "line": 150, "column": 16 } } @@ -5099,16 +5190,16 @@ "type": "Identifier", "name": "Slot", "range": [ - 4637, - 4641 + 4696, + 4700 ], "loc": { "start": { - "line": 149, + "line": 150, "column": 23 }, "end": { - "line": 149, + "line": 150, "column": 27 } } @@ -5118,16 +5209,16 @@ "type": "Identifier", "name": "adUnitPath", "range": [ - 4642, - 4652 + 4701, + 4711 ], "loc": { "start": { - "line": 149, + "line": 150, "column": 28 }, "end": { - "line": 149, + "line": 150, "column": 38 } } @@ -5136,32 +5227,32 @@ "type": "Identifier", "name": "size", "range": [ - 4654, - 4658 + 4713, + 4717 ], "loc": { "start": { - "line": 149, + "line": 150, "column": 40 }, "end": { - "line": 149, + "line": 150, "column": 44 } } } ], "range": [ - 4633, - 4659 + 4692, + 4718 ], "loc": { "start": { - "line": 149, + "line": 150, "column": 19 }, "end": { - "line": 149, + "line": 150, "column": 45 } } @@ -5170,31 +5261,31 @@ "type": "Identifier", "name": "addService", "range": [ - 4660, - 4670 + 4719, + 4729 ], "loc": { "start": { - "line": 149, + "line": 150, "column": 46 }, "end": { - "line": 149, + "line": 150, "column": 56 } } }, "range": [ - 4633, - 4670 + 4692, + 4729 ], "loc": { "start": { - "line": 149, + "line": 150, "column": 19 }, "end": { - "line": 149, + "line": 150, "column": 56 } } @@ -5203,47 +5294,47 @@ { "type": "ThisExpression", "range": [ - 4671, - 4675 + 4730, + 4734 ], "loc": { "start": { - "line": 149, + "line": 150, "column": 57 }, "end": { - "line": 149, + "line": 150, "column": 61 } } } ], "range": [ - 4633, - 4676 + 4692, + 4735 ], "loc": { "start": { - "line": 149, + "line": 150, "column": 19 }, "end": { - "line": 149, + "line": 150, "column": 62 } } }, "range": [ - 4626, - 4676 + 4685, + 4735 ], "loc": { "start": { - "line": 149, + "line": 150, "column": 12 }, "end": { - "line": 149, + "line": 150, "column": 62 } } @@ -5251,16 +5342,16 @@ ], "kind": "const", "range": [ - 4620, - 4677 + 4679, + 4736 ], "loc": { "start": { - "line": 149, + "line": 150, "column": 6 }, "end": { - "line": 149, + "line": 150, "column": 63 } } @@ -5277,16 +5368,16 @@ "type": "Identifier", "name": "slot", "range": [ - 4684, - 4688 + 4743, + 4747 ], "loc": { "start": { - "line": 150, + "line": 151, "column": 6 }, "end": { - "line": 150, + "line": 151, "column": 10 } } @@ -5295,31 +5386,31 @@ "type": "Identifier", "name": "_passback", "range": [ - 4689, - 4698 + 4748, + 4757 ], "loc": { "start": { - "line": 150, + "line": 151, "column": 11 }, "end": { - "line": 150, + "line": 151, "column": 20 } } }, "range": [ - 4684, - 4698 + 4743, + 4757 ], "loc": { "start": { - "line": 150, + "line": 151, "column": 6 }, "end": { - "line": 150, + "line": 151, "column": 20 } } @@ -5329,46 +5420,46 @@ "value": true, "raw": "true", "range": [ - 4701, - 4705 + 4760, + 4764 ], "loc": { "start": { - "line": 150, + "line": 151, "column": 23 }, "end": { - "line": 150, + "line": 151, "column": 27 } } }, "range": [ - 4684, - 4705 + 4743, + 4764 ], "loc": { "start": { - "line": 150, + "line": 151, "column": 6 }, "end": { - "line": 150, + "line": 151, "column": 27 } } }, "range": [ - 4684, - 4706 + 4743, + 4765 ], "loc": { "start": { - "line": 150, + "line": 151, "column": 6 }, "end": { - "line": 150, + "line": 151, "column": 28 } } @@ -5379,47 +5470,47 @@ "type": "Identifier", "name": "slot", "range": [ - 4720, - 4724 + 4779, + 4783 ], "loc": { "start": { - "line": 151, + "line": 152, "column": 13 }, "end": { - "line": 151, + "line": 152, "column": 17 } } }, "range": [ - 4713, - 4725 + 4772, + 4784 ], "loc": { "start": { - "line": 151, + "line": 152, "column": 6 }, "end": { - "line": 151, + "line": 152, "column": 18 } } } ], "range": [ - 4612, - 4731 + 4671, + 4790 ], "loc": { "start": { - "line": 148, + "line": 149, "column": 44 }, "end": { - "line": 152, + "line": 153, "column": 5 } } @@ -5434,78 +5525,78 @@ "value": null, "raw": "null", "range": [ - 4752, - 4756 + 4811, + 4815 ], "loc": { "start": { - "line": 153, + "line": 154, "column": 13 }, "end": { - "line": 153, + "line": 154, "column": 17 } } }, "range": [ - 4745, - 4757 + 4804, + 4816 ], "loc": { "start": { - "line": 153, + "line": 154, "column": 6 }, "end": { - "line": 153, + "line": 154, "column": 18 } } } ], "range": [ - 4737, - 4763 + 4796, + 4822 ], "loc": { "start": { - "line": 152, + "line": 153, "column": 11 }, "end": { - "line": 154, + "line": 155, "column": 5 } } }, "range": [ - 4572, - 4763 + 4631, + 4822 ], "loc": { "start": { - "line": 148, + "line": 149, "column": 4 }, "end": { - "line": 154, + "line": 155, "column": 5 } } } ], "range": [ - 4566, - 4767 + 4625, + 4826 ], "loc": { "start": { - "line": 147, + "line": 148, "column": 35 }, "end": { - "line": 155, + "line": 156, "column": 3 } } @@ -5513,16 +5604,16 @@ "generator": false, "expression": false, "range": [ - 4547, - 4767 + 4606, + 4826 ], "loc": { "start": { - "line": 147, + "line": 148, "column": 16 }, "end": { - "line": 155, + "line": 156, "column": 3 } } @@ -5530,16 +5621,16 @@ "kind": "method", "computed": false, "range": [ - 4533, - 4767 + 4592, + 4826 ], "loc": { "start": { - "line": 147, + "line": 148, "column": 2 }, "end": { - "line": 155, + "line": 156, "column": 3 } }, @@ -5548,16 +5639,16 @@ "type": "Block", "value": "*\n * Constructs a passback slot. A passback is where a {@link GPT} snippet is used as a\n * creative in an ad serving system. The ad serving system could be {@link DFP} or a\n * third party. In this case, the ads are always requested synchronously in\n * non-single request mode.\n *\n * @param {string} adUnitPath The ad unit path of the slot to use as a passback.\n * @param {GeneralSize} size The size of the slot.\n * @returns {?Slot} The new passback object or null if the method was\n * called with invalid arguments.\n ", "range": [ - 3989, - 4530 + 4048, + 4589 ], "loc": { "start": { - "line": 136, + "line": 137, "column": 2 }, "end": { - "line": 146, + "line": 147, "column": 5 } } @@ -5568,16 +5659,16 @@ "type": "Block", "value": "*\n * Disables requests for ads on page load, but allows ads to be requested with\n * a {@link PubAdsService#refresh} call. This should be set prior to enabling\n * the service. Async mode must be used; otherwise it will be impossible to\n * request ads using {@link PubAdsService#refresh}.\n ", "range": [ - 4771, - 5073 + 4830, + 5132 ], "loc": { "start": { - "line": 157, + "line": 158, "column": 2 }, "end": { - "line": 162, + "line": 163, "column": 5 } } @@ -5591,16 +5682,16 @@ "type": "Identifier", "name": "disableInitialLoad", "range": [ - 5076, - 5094 + 5135, + 5153 ], "loc": { "start": { - "line": 163, + "line": 164, "column": 2 }, "end": { - "line": 163, + "line": 164, "column": 20 } } @@ -5615,158 +5706,287 @@ { "type": "ExpressionStatement", "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { + "type": "CallExpression", + "callee": { "type": "MemberExpression", "computed": false, "object": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "ThisExpression", - "range": [ - 5103, - 5107 - ], - "loc": { - "start": { - "line": 164, - "column": 4 - }, - "end": { - "line": 164, - "column": 8 - } - } - }, - "property": { - "type": "Identifier", - "name": "_options", - "range": [ - 5108, - 5116 - ], - "loc": { - "start": { - "line": 164, - "column": 9 - }, - "end": { - "line": 164, - "column": 17 - } - } - }, + "type": "ThisExpression", "range": [ - 5103, - 5116 + 5162, + 5166 ], "loc": { "start": { - "line": 164, + "line": 165, "column": 4 }, "end": { - "line": 164, - "column": 17 + "line": 165, + "column": 8 } } }, "property": { "type": "Identifier", - "name": "initialLoad", + "name": "_unlessEnabled", "range": [ - 5117, - 5128 + 5167, + 5181 ], "loc": { "start": { - "line": 164, - "column": 18 + "line": 165, + "column": 9 }, "end": { - "line": 164, - "column": 29 + "line": 165, + "column": 23 } } }, "range": [ - 5103, - 5128 + 5162, + 5181 ], "loc": { "start": { - "line": 164, + "line": 165, "column": 4 }, "end": { - "line": 164, - "column": 29 + "line": 165, + "column": 23 } } }, - "right": { - "type": "Literal", - "value": false, - "raw": "false", - "range": [ - 5131, - 5136 - ], - "loc": { - "start": { - "line": 164, - "column": 32 + "arguments": [ + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 5196, + 5200 + ], + "loc": { + "start": { + "line": 166, + "column": 6 + }, + "end": { + "line": 166, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "_options", + "range": [ + 5201, + 5209 + ], + "loc": { + "start": { + "line": 166, + "column": 11 + }, + "end": { + "line": 166, + "column": 19 + } + } + }, + "range": [ + 5196, + 5209 + ], + "loc": { + "start": { + "line": 166, + "column": 6 + }, + "end": { + "line": 166, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "name": "initialLoad", + "range": [ + 5210, + 5221 + ], + "loc": { + "start": { + "line": 166, + "column": 20 + }, + "end": { + "line": 166, + "column": 31 + } + } + }, + "range": [ + 5196, + 5221 + ], + "loc": { + "start": { + "line": 166, + "column": 6 + }, + "end": { + "line": 166, + "column": 31 + } + } + }, + "right": { + "type": "Literal", + "value": false, + "raw": "false", + "range": [ + 5224, + 5229 + ], + "loc": { + "start": { + "line": 166, + "column": 34 + }, + "end": { + "line": 166, + "column": 39 + } + } + }, + "range": [ + 5196, + 5229 + ], + "loc": { + "start": { + "line": 166, + "column": 6 + }, + "end": { + "line": 166, + "column": 39 + } + } + }, + "range": [ + 5196, + 5230 + ], + "loc": { + "start": { + "line": 166, + "column": 6 + }, + "end": { + "line": 166, + "column": 40 + } + } + } + ], + "range": [ + 5188, + 5236 + ], + "loc": { + "start": { + "line": 165, + "column": 30 + }, + "end": { + "line": 167, + "column": 5 + } + } }, - "end": { - "line": 164, - "column": 37 + "generator": false, + "expression": false, + "range": [ + 5182, + 5236 + ], + "loc": { + "start": { + "line": 165, + "column": 24 + }, + "end": { + "line": 167, + "column": 5 + } } } - }, + ], "range": [ - 5103, - 5136 + 5162, + 5237 ], "loc": { "start": { - "line": 164, + "line": 165, "column": 4 }, "end": { - "line": 164, - "column": 37 + "line": 167, + "column": 6 } } }, "range": [ - 5103, - 5137 + 5162, + 5238 ], "loc": { "start": { - "line": 164, + "line": 165, "column": 4 }, "end": { - "line": 164, - "column": 38 + "line": 167, + "column": 7 } } } ], "range": [ - 5097, - 5141 + 5156, + 5242 ], "loc": { "start": { - "line": 163, + "line": 164, "column": 23 }, "end": { - "line": 165, + "line": 168, "column": 3 } } @@ -5774,16 +5994,16 @@ "generator": false, "expression": false, "range": [ - 5094, - 5141 + 5153, + 5242 ], "loc": { "start": { - "line": 163, + "line": 164, "column": 20 }, "end": { - "line": 165, + "line": 168, "column": 3 } } @@ -5791,16 +6011,16 @@ "kind": "method", "computed": false, "range": [ - 5076, - 5141 + 5135, + 5242 ], "loc": { "start": { - "line": 163, + "line": 164, "column": 2 }, "end": { - "line": 165, + "line": 168, "column": 3 } }, @@ -5809,16 +6029,16 @@ "type": "Block", "value": "*\n * Disables requests for ads on page load, but allows ads to be requested with\n * a {@link PubAdsService#refresh} call. This should be set prior to enabling\n * the service. Async mode must be used; otherwise it will be impossible to\n * request ads using {@link PubAdsService#refresh}.\n ", "range": [ - 4771, - 5073 + 4830, + 5132 ], "loc": { "start": { - "line": 157, + "line": 158, "column": 2 }, "end": { - "line": 162, + "line": 163, "column": 5 } } @@ -5829,16 +6049,16 @@ "type": "Block", "value": "*\n * Enables async rendering mode to enable non-blocking fetching and rendering\n * of ads. Because the service uses asynchronous rendering by default, you\n * only need to use this method to override a previous setting. Async mode\n * must be set before the service is enabled.\n *\n * @returns {boolean} Returns true if async rendering mode was enabled and\n * false if it is impossible to enable async rendering mode because the method\n * was called after the service was enabled.\n ", "range": [ - 5145, - 5646 + 5246, + 5747 ], "loc": { "start": { - "line": 167, + "line": 170, "column": 2 }, "end": { - "line": 176, + "line": 179, "column": 5 } } @@ -5852,16 +6072,16 @@ "type": "Identifier", "name": "enableAsyncRendering", "range": [ - 5649, - 5669 + 5750, + 5770 ], "loc": { "start": { - "line": 177, + "line": 180, "column": 2 }, "end": { - "line": 177, + "line": 180, "column": 22 } } @@ -5874,336 +6094,285 @@ "type": "BlockStatement", "body": [ { - "type": "IfStatement", - "test": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "ThisExpression", + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 5786, + 5790 + ], + "loc": { + "start": { + "line": 181, + "column": 11 + }, + "end": { + "line": 181, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_unlessEnabled", + "range": [ + 5791, + 5805 + ], + "loc": { + "start": { + "line": 181, + "column": 16 + }, + "end": { + "line": 181, + "column": 30 + } + } + }, "range": [ - 5682, - 5686 + 5786, + 5805 ], "loc": { "start": { - "line": 178, - "column": 8 + "line": 181, + "column": 11 }, "end": { - "line": 178, - "column": 12 + "line": 181, + "column": 30 } } }, - "property": { - "type": "Identifier", - "name": "_enabled", - "range": [ - 5687, - 5695 - ], - "loc": { - "start": { - "line": 178, - "column": 13 - }, - "end": { - "line": 178, - "column": 21 - } - } - }, - "range": [ - 5682, - 5695 - ], - "loc": { - "start": { - "line": 178, - "column": 8 - }, - "end": { - "line": 178, - "column": 21 - } - } - }, - "consequent": { - "type": "BlockStatement", - "body": [ - { - "type": "ReturnStatement", - "argument": { - "type": "Literal", - "value": false, - "raw": "false", - "range": [ - 5712, - 5717 - ], - "loc": { - "start": { - "line": 179, - "column": 13 - }, - "end": { - "line": 179, - "column": 18 - } - } - }, - "range": [ - 5705, - 5718 - ], - "loc": { - "start": { - "line": 179, - "column": 6 - }, - "end": { - "line": 179, - "column": 19 - } - } - } - ], - "range": [ - 5697, - 5724 - ], - "loc": { - "start": { - "line": 178, - "column": 23 - }, - "end": { - "line": 180, - "column": 5 - } - } - }, - "alternate": { - "type": "BlockStatement", - "body": [ + "arguments": [ { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "ThisExpression", - "range": [ - 5738, - 5742 - ], - "loc": { - "start": { - "line": 181, - "column": 6 + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 5820, + 5824 + ], + "loc": { + "start": { + "line": 182, + "column": 6 + }, + "end": { + "line": 182, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "_options", + "range": [ + 5825, + 5833 + ], + "loc": { + "start": { + "line": 182, + "column": 11 + }, + "end": { + "line": 182, + "column": 19 + } + } + }, + "range": [ + 5820, + 5833 + ], + "loc": { + "start": { + "line": 182, + "column": 6 + }, + "end": { + "line": 182, + "column": 19 + } + } }, - "end": { - "line": 181, - "column": 10 + "property": { + "type": "Identifier", + "name": "asyncRendering", + "range": [ + 5834, + 5848 + ], + "loc": { + "start": { + "line": 182, + "column": 20 + }, + "end": { + "line": 182, + "column": 34 + } + } + }, + "range": [ + 5820, + 5848 + ], + "loc": { + "start": { + "line": 182, + "column": 6 + }, + "end": { + "line": 182, + "column": 34 + } } - } - }, - "property": { - "type": "Identifier", - "name": "_options", + }, + "right": { + "type": "Literal", + "value": true, + "raw": "true", + "range": [ + 5851, + 5855 + ], + "loc": { + "start": { + "line": 182, + "column": 37 + }, + "end": { + "line": 182, + "column": 41 + } + } + }, "range": [ - 5743, - 5751 + 5820, + 5855 ], "loc": { "start": { - "line": 181, - "column": 11 + "line": 182, + "column": 6 }, "end": { - "line": 181, - "column": 19 + "line": 182, + "column": 41 } } }, "range": [ - 5738, - 5751 + 5820, + 5856 ], "loc": { "start": { - "line": 181, + "line": 182, "column": 6 }, "end": { - "line": 181, - "column": 19 - } - } - }, - "property": { - "type": "Identifier", - "name": "asyncRendering", - "range": [ - 5752, - 5766 - ], - "loc": { - "start": { - "line": 181, - "column": 20 - }, - "end": { - "line": 181, - "column": 34 + "line": 182, + "column": 42 } } - }, - "range": [ - 5738, - 5766 - ], - "loc": { - "start": { - "line": 181, - "column": 6 - }, - "end": { - "line": 181, - "column": 34 - } - } - }, - "right": { - "type": "Literal", - "value": true, - "raw": "true", - "range": [ - 5769, - 5773 - ], - "loc": { - "start": { - "line": 181, - "column": 37 - }, - "end": { - "line": 181, - "column": 41 - } } - }, + ], "range": [ - 5738, - 5773 + 5812, + 5862 ], "loc": { "start": { "line": 181, - "column": 6 + "column": 37 }, "end": { - "line": 181, - "column": 41 + "line": 183, + "column": 5 } } }, + "generator": false, + "expression": false, "range": [ - 5738, - 5774 + 5806, + 5862 ], "loc": { "start": { "line": 181, - "column": 6 - }, - "end": { - "line": 181, - "column": 42 - } - } - }, - { - "type": "ReturnStatement", - "argument": { - "type": "Literal", - "value": true, - "raw": "true", - "range": [ - 5788, - 5792 - ], - "loc": { - "start": { - "line": 182, - "column": 13 - }, - "end": { - "line": 182, - "column": 17 - } - } - }, - "range": [ - 5781, - 5793 - ], - "loc": { - "start": { - "line": 182, - "column": 6 + "column": 31 }, "end": { - "line": 182, - "column": 18 + "line": 183, + "column": 5 } } } ], "range": [ - 5730, - 5799 + 5786, + 5863 ], "loc": { "start": { - "line": 180, + "line": 181, "column": 11 }, "end": { "line": 183, - "column": 5 + "column": 6 } } }, "range": [ - 5678, - 5799 + 5779, + 5864 ], "loc": { "start": { - "line": 178, + "line": 181, "column": 4 }, "end": { "line": 183, - "column": 5 + "column": 7 } } } ], "range": [ - 5672, - 5803 + 5773, + 5868 ], "loc": { "start": { - "line": 177, + "line": 180, "column": 25 }, "end": { @@ -6215,12 +6384,12 @@ "generator": false, "expression": false, "range": [ - 5669, - 5803 + 5770, + 5868 ], "loc": { "start": { - "line": 177, + "line": 180, "column": 22 }, "end": { @@ -6232,12 +6401,12 @@ "kind": "method", "computed": false, "range": [ - 5649, - 5803 + 5750, + 5868 ], "loc": { "start": { - "line": 177, + "line": 180, "column": 2 }, "end": { @@ -6250,16 +6419,16 @@ "type": "Block", "value": "*\n * Enables async rendering mode to enable non-blocking fetching and rendering\n * of ads. Because the service uses asynchronous rendering by default, you\n * only need to use this method to override a previous setting. Async mode\n * must be set before the service is enabled.\n *\n * @returns {boolean} Returns true if async rendering mode was enabled and\n * false if it is impossible to enable async rendering mode because the method\n * was called after the service was enabled.\n ", "range": [ - 5145, - 5646 + 5246, + 5747 ], "loc": { "start": { - "line": 167, + "line": 170, "column": 2 }, "end": { - "line": 176, + "line": 179, "column": 5 } } @@ -6270,8 +6439,8 @@ "type": "Block", "value": "*\n * Enables single request mode for fetching multiple ads at the same time.\n * This requires all pubads slots to be defined and added to the {@link PubAdsService}\n * prior to enabling the service. Single request mode must be set\n * before the service is enabled.\n *\n * @returns {boolean} Returns true if single request mode was enabled and false\n * if it is impossible to enable single request mode because the method was\n * called after the service was enabled.\n ", "range": [ - 5807, - 6294 + 5872, + 6359 ], "loc": { "start": { @@ -6293,8 +6462,8 @@ "type": "Identifier", "name": "enableSingleRequest", "range": [ - 6297, - 6316 + 6362, + 6381 ], "loc": { "start": { @@ -6315,316 +6484,265 @@ "type": "BlockStatement", "body": [ { - "type": "IfStatement", - "test": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "ThisExpression", - "range": [ - 6329, - 6333 - ], - "loc": { - "start": { - "line": 197, - "column": 8 - }, - "end": { - "line": 197, - "column": 12 - } - } - }, - "property": { - "type": "Identifier", - "name": "_enabled", - "range": [ - 6334, - 6342 - ], - "loc": { - "start": { - "line": 197, - "column": 13 - }, - "end": { - "line": 197, - "column": 21 + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 6397, + 6401 + ], + "loc": { + "start": { + "line": 197, + "column": 11 + }, + "end": { + "line": 197, + "column": 15 + } } - } - }, - "range": [ - 6329, - 6342 - ], - "loc": { - "start": { - "line": 197, - "column": 8 }, - "end": { - "line": 197, - "column": 21 - } - } - }, - "consequent": { - "type": "BlockStatement", - "body": [ - { - "type": "ReturnStatement", - "argument": { - "type": "Literal", - "value": false, - "raw": "false", - "range": [ - 6359, - 6364 - ], - "loc": { - "start": { - "line": 198, - "column": 13 - }, - "end": { - "line": 198, - "column": 18 - } - } - }, + "property": { + "type": "Identifier", + "name": "_unlessEnabled", "range": [ - 6352, - 6365 + 6402, + 6416 ], "loc": { "start": { - "line": 198, - "column": 6 + "line": 197, + "column": 16 }, "end": { - "line": 198, - "column": 19 + "line": 197, + "column": 30 } } - } - ], - "range": [ - 6344, - 6371 - ], - "loc": { - "start": { - "line": 197, - "column": 23 }, - "end": { - "line": 199, - "column": 5 + "range": [ + 6397, + 6416 + ], + "loc": { + "start": { + "line": 197, + "column": 11 + }, + "end": { + "line": 197, + "column": 30 + } } - } - }, - "alternate": { - "type": "BlockStatement", - "body": [ + }, + "arguments": [ { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "ThisExpression", - "range": [ - 6385, - 6389 - ], - "loc": { - "start": { - "line": 200, - "column": 6 + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 6431, + 6435 + ], + "loc": { + "start": { + "line": 198, + "column": 6 + }, + "end": { + "line": 198, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "_options", + "range": [ + 6436, + 6444 + ], + "loc": { + "start": { + "line": 198, + "column": 11 + }, + "end": { + "line": 198, + "column": 19 + } + } + }, + "range": [ + 6431, + 6444 + ], + "loc": { + "start": { + "line": 198, + "column": 6 + }, + "end": { + "line": 198, + "column": 19 + } + } }, - "end": { - "line": 200, - "column": 10 + "property": { + "type": "Identifier", + "name": "singleRequest", + "range": [ + 6445, + 6458 + ], + "loc": { + "start": { + "line": 198, + "column": 20 + }, + "end": { + "line": 198, + "column": 33 + } + } + }, + "range": [ + 6431, + 6458 + ], + "loc": { + "start": { + "line": 198, + "column": 6 + }, + "end": { + "line": 198, + "column": 33 + } } - } - }, - "property": { - "type": "Identifier", - "name": "_options", + }, + "right": { + "type": "Literal", + "value": true, + "raw": "true", + "range": [ + 6461, + 6465 + ], + "loc": { + "start": { + "line": 198, + "column": 36 + }, + "end": { + "line": 198, + "column": 40 + } + } + }, "range": [ - 6390, - 6398 + 6431, + 6465 ], "loc": { "start": { - "line": 200, - "column": 11 + "line": 198, + "column": 6 }, "end": { - "line": 200, - "column": 19 + "line": 198, + "column": 40 } } }, "range": [ - 6385, - 6398 + 6431, + 6466 ], "loc": { "start": { - "line": 200, + "line": 198, "column": 6 }, "end": { - "line": 200, - "column": 19 - } - } - }, - "property": { - "type": "Identifier", - "name": "singleRequest", - "range": [ - 6399, - 6412 - ], - "loc": { - "start": { - "line": 200, - "column": 20 - }, - "end": { - "line": 200, - "column": 33 + "line": 198, + "column": 41 } } - }, - "range": [ - 6385, - 6412 - ], - "loc": { - "start": { - "line": 200, - "column": 6 - }, - "end": { - "line": 200, - "column": 33 - } - } - }, - "right": { - "type": "Literal", - "value": true, - "raw": "true", - "range": [ - 6415, - 6419 - ], - "loc": { - "start": { - "line": 200, - "column": 36 - }, - "end": { - "line": 200, - "column": 40 - } } - }, + ], "range": [ - 6385, - 6419 + 6423, + 6472 ], "loc": { "start": { - "line": 200, - "column": 6 + "line": 197, + "column": 37 }, "end": { - "line": 200, - "column": 40 + "line": 199, + "column": 5 } } }, + "generator": false, + "expression": false, "range": [ - 6385, - 6420 + 6417, + 6472 ], "loc": { "start": { - "line": 200, - "column": 6 + "line": 197, + "column": 31 }, "end": { - "line": 200, - "column": 41 + "line": 199, + "column": 5 } } - }, - { - "type": "ReturnStatement", - "argument": { - "type": "Literal", - "value": true, - "raw": "true", - "range": [ - 6434, - 6438 - ], - "loc": { - "start": { - "line": 201, - "column": 13 - }, - "end": { - "line": 201, - "column": 17 - } - } - }, - "range": [ - 6427, - 6439 - ], - "loc": { - "start": { - "line": 201, - "column": 6 - }, - "end": { - "line": 201, - "column": 18 - } - } - } - ], - "range": [ - 6377, - 6445 - ], - "loc": { - "start": { - "line": 199, - "column": 11 + } + ], + "range": [ + 6397, + 6473 + ], + "loc": { + "start": { + "line": 197, + "column": 11 }, "end": { - "line": 202, - "column": 5 + "line": 199, + "column": 6 } } }, "range": [ - 6325, - 6445 + 6390, + 6474 ], "loc": { "start": { @@ -6632,15 +6750,15 @@ "column": 4 }, "end": { - "line": 202, - "column": 5 + "line": 199, + "column": 7 } } } ], "range": [ - 6319, - 6449 + 6384, + 6478 ], "loc": { "start": { @@ -6648,7 +6766,7 @@ "column": 24 }, "end": { - "line": 203, + "line": 200, "column": 3 } } @@ -6656,8 +6774,8 @@ "generator": false, "expression": false, "range": [ - 6316, - 6449 + 6381, + 6478 ], "loc": { "start": { @@ -6665,7 +6783,7 @@ "column": 21 }, "end": { - "line": 203, + "line": 200, "column": 3 } } @@ -6673,8 +6791,8 @@ "kind": "method", "computed": false, "range": [ - 6297, - 6449 + 6362, + 6478 ], "loc": { "start": { @@ -6682,7 +6800,7 @@ "column": 2 }, "end": { - "line": 203, + "line": 200, "column": 3 } }, @@ -6691,8 +6809,8 @@ "type": "Block", "value": "*\n * Enables single request mode for fetching multiple ads at the same time.\n * This requires all pubads slots to be defined and added to the {@link PubAdsService}\n * prior to enabling the service. Single request mode must be set\n * before the service is enabled.\n *\n * @returns {boolean} Returns true if single request mode was enabled and false\n * if it is impossible to enable single request mode because the method was\n * called after the service was enabled.\n ", "range": [ - 5807, - 6294 + 5872, + 6359 ], "loc": { "start": { @@ -6711,16 +6829,16 @@ "type": "Block", "value": "*\n * Enables sync rendering mode to enable blocking fetching and rendering of ads.\n * This mode must be set before the service is enabled. Synchronous rendering\n * also requires that the {@link GPT} JavaScript be loaded synchronously.\n *\n * @returns {boolean} Returns true if sync rendering mode was enabled and false\n * if it is impossible to enable sync rendering mode because the method was\n * called after the service was enabled.\n ", "range": [ - 6453, - 6909 + 6482, + 6938 ], "loc": { "start": { - "line": 205, + "line": 202, "column": 2 }, "end": { - "line": 213, + "line": 210, "column": 5 } } @@ -6734,16 +6852,16 @@ "type": "Identifier", "name": "enableSyncRendering", "range": [ - 6912, - 6931 + 6941, + 6960 ], "loc": { "start": { - "line": 214, + "line": 211, "column": 2 }, "end": { - "line": 214, + "line": 211, "column": 21 } } @@ -6756,340 +6874,289 @@ "type": "BlockStatement", "body": [ { - "type": "IfStatement", - "test": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "ThisExpression", - "range": [ - 6944, - 6948 - ], - "loc": { - "start": { - "line": 215, - "column": 8 - }, - "end": { - "line": 215, - "column": 12 + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 6976, + 6980 + ], + "loc": { + "start": { + "line": 212, + "column": 11 + }, + "end": { + "line": 212, + "column": 15 + } } - } - }, - "property": { - "type": "Identifier", - "name": "_enabled", + }, + "property": { + "type": "Identifier", + "name": "_unlessEnabled", + "range": [ + 6981, + 6995 + ], + "loc": { + "start": { + "line": 212, + "column": 16 + }, + "end": { + "line": 212, + "column": 30 + } + } + }, "range": [ - 6949, - 6957 + 6976, + 6995 ], "loc": { "start": { - "line": 215, - "column": 13 + "line": 212, + "column": 11 }, "end": { - "line": 215, - "column": 21 + "line": 212, + "column": 30 } } }, - "range": [ - 6944, - 6957 - ], - "loc": { - "start": { - "line": 215, - "column": 8 - }, - "end": { - "line": 215, - "column": 21 - } - } - }, - "consequent": { - "type": "BlockStatement", - "body": [ + "arguments": [ { - "type": "ReturnStatement", - "argument": { - "type": "Literal", - "value": false, - "raw": "false", + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 7010, + 7014 + ], + "loc": { + "start": { + "line": 213, + "column": 6 + }, + "end": { + "line": 213, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "_options", + "range": [ + 7015, + 7023 + ], + "loc": { + "start": { + "line": 213, + "column": 11 + }, + "end": { + "line": 213, + "column": 19 + } + } + }, + "range": [ + 7010, + 7023 + ], + "loc": { + "start": { + "line": 213, + "column": 6 + }, + "end": { + "line": 213, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "name": "syncRendering", + "range": [ + 7024, + 7037 + ], + "loc": { + "start": { + "line": 213, + "column": 20 + }, + "end": { + "line": 213, + "column": 33 + } + } + }, + "range": [ + 7010, + 7037 + ], + "loc": { + "start": { + "line": 213, + "column": 6 + }, + "end": { + "line": 213, + "column": 33 + } + } + }, + "right": { + "type": "Literal", + "value": true, + "raw": "true", + "range": [ + 7040, + 7044 + ], + "loc": { + "start": { + "line": 213, + "column": 36 + }, + "end": { + "line": 213, + "column": 40 + } + } + }, + "range": [ + 7010, + 7044 + ], + "loc": { + "start": { + "line": 213, + "column": 6 + }, + "end": { + "line": 213, + "column": 40 + } + } + }, + "range": [ + 7010, + 7045 + ], + "loc": { + "start": { + "line": 213, + "column": 6 + }, + "end": { + "line": 213, + "column": 41 + } + } + } + ], "range": [ - 6974, - 6979 + 7002, + 7051 ], "loc": { "start": { - "line": 216, - "column": 13 + "line": 212, + "column": 37 }, "end": { - "line": 216, - "column": 18 + "line": 214, + "column": 5 } } }, + "generator": false, + "expression": false, "range": [ - 6967, - 6980 + 6996, + 7051 ], "loc": { "start": { - "line": 216, - "column": 6 + "line": 212, + "column": 31 }, "end": { - "line": 216, - "column": 19 + "line": 214, + "column": 5 } } } ], "range": [ - 6959, - 6986 + 6976, + 7052 ], "loc": { "start": { - "line": 215, - "column": 23 + "line": 212, + "column": 11 }, "end": { - "line": 217, - "column": 5 - } - } - }, - "alternate": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "ThisExpression", - "range": [ - 7000, - 7004 - ], - "loc": { - "start": { - "line": 218, - "column": 6 - }, - "end": { - "line": 218, - "column": 10 - } - } - }, - "property": { - "type": "Identifier", - "name": "_options", - "range": [ - 7005, - 7013 - ], - "loc": { - "start": { - "line": 218, - "column": 11 - }, - "end": { - "line": 218, - "column": 19 - } - } - }, - "range": [ - 7000, - 7013 - ], - "loc": { - "start": { - "line": 218, - "column": 6 - }, - "end": { - "line": 218, - "column": 19 - } - } - }, - "property": { - "type": "Identifier", - "name": "syncRendering", - "range": [ - 7014, - 7027 - ], - "loc": { - "start": { - "line": 218, - "column": 20 - }, - "end": { - "line": 218, - "column": 33 - } - } - }, - "range": [ - 7000, - 7027 - ], - "loc": { - "start": { - "line": 218, - "column": 6 - }, - "end": { - "line": 218, - "column": 33 - } - } - }, - "right": { - "type": "Literal", - "value": true, - "raw": "true", - "range": [ - 7030, - 7034 - ], - "loc": { - "start": { - "line": 218, - "column": 36 - }, - "end": { - "line": 218, - "column": 40 - } - } - }, - "range": [ - 7000, - 7034 - ], - "loc": { - "start": { - "line": 218, - "column": 6 - }, - "end": { - "line": 218, - "column": 40 - } - } - }, - "range": [ - 7000, - 7035 - ], - "loc": { - "start": { - "line": 218, - "column": 6 - }, - "end": { - "line": 218, - "column": 41 - } - } - }, - { - "type": "ReturnStatement", - "argument": { - "type": "Literal", - "value": true, - "raw": "true", - "range": [ - 7049, - 7053 - ], - "loc": { - "start": { - "line": 219, - "column": 13 - }, - "end": { - "line": 219, - "column": 17 - } - } - }, - "range": [ - 7042, - 7054 - ], - "loc": { - "start": { - "line": 219, - "column": 6 - }, - "end": { - "line": 219, - "column": 18 - } - } - } - ], - "range": [ - 6992, - 7060 - ], - "loc": { - "start": { - "line": 217, - "column": 11 - }, - "end": { - "line": 220, - "column": 5 + "line": 214, + "column": 6 } } }, "range": [ - 6940, - 7060 + 6969, + 7053 ], "loc": { "start": { - "line": 215, + "line": 212, "column": 4 }, "end": { - "line": 220, - "column": 5 + "line": 214, + "column": 7 } } } ], "range": [ - 6934, - 7064 + 6963, + 7057 ], "loc": { "start": { - "line": 214, + "line": 211, "column": 24 }, "end": { - "line": 221, + "line": 215, "column": 3 } } @@ -7097,16 +7164,16 @@ "generator": false, "expression": false, "range": [ - 6931, - 7064 + 6960, + 7057 ], "loc": { "start": { - "line": 214, + "line": 211, "column": 21 }, "end": { - "line": 221, + "line": 215, "column": 3 } } @@ -7114,16 +7181,16 @@ "kind": "method", "computed": false, "range": [ - 6912, - 7064 + 6941, + 7057 ], "loc": { "start": { - "line": 214, + "line": 211, "column": 2 }, "end": { - "line": 221, + "line": 215, "column": 3 } }, @@ -7132,16 +7199,16 @@ "type": "Block", "value": "*\n * Enables sync rendering mode to enable blocking fetching and rendering of ads.\n * This mode must be set before the service is enabled. Synchronous rendering\n * also requires that the {@link GPT} JavaScript be loaded synchronously.\n *\n * @returns {boolean} Returns true if sync rendering mode was enabled and false\n * if it is impossible to enable sync rendering mode because the method was\n * called after the service was enabled.\n ", "range": [ - 6453, - 6909 + 6482, + 6938 ], "loc": { "start": { - "line": 205, + "line": 202, "column": 2 }, "end": { - "line": 213, + "line": 210, "column": 5 } } @@ -7152,16 +7219,16 @@ "type": "Block", "value": "*\n * Signals to {@link GPT} that video ads will be present on the page. This enables\n * competitive exclusion constraints on display and video ads. If the video\n * content is known, call setVideoContent in order to be able to use content\n * exclusion for display ads.\n ", "range": [ - 7068, - 7351 + 7061, + 7344 ], "loc": { "start": { - "line": 223, + "line": 217, "column": 2 }, "end": { - "line": 228, + "line": 222, "column": 5 } } @@ -7175,16 +7242,16 @@ "type": "Identifier", "name": "enableVideoAds", "range": [ - 7354, - 7368 + 7347, + 7361 ], "loc": { "start": { - "line": 229, + "line": 223, "column": 2 }, "end": { - "line": 229, + "line": 223, "column": 16 } } @@ -7210,16 +7277,16 @@ "object": { "type": "ThisExpression", "range": [ - 7377, - 7381 + 7370, + 7374 ], "loc": { "start": { - "line": 230, + "line": 224, "column": 4 }, "end": { - "line": 230, + "line": 224, "column": 8 } } @@ -7228,31 +7295,31 @@ "type": "Identifier", "name": "_options", "range": [ - 7382, - 7390 + 7375, + 7383 ], "loc": { "start": { - "line": 230, + "line": 224, "column": 9 }, "end": { - "line": 230, + "line": 224, "column": 17 } } }, "range": [ - 7377, - 7390 + 7370, + 7383 ], "loc": { "start": { - "line": 230, + "line": 224, "column": 4 }, "end": { - "line": 230, + "line": 224, "column": 17 } } @@ -7261,31 +7328,31 @@ "type": "Identifier", "name": "videoAds", "range": [ - 7391, - 7399 + 7384, + 7392 ], "loc": { "start": { - "line": 230, + "line": 224, "column": 18 }, "end": { - "line": 230, + "line": 224, "column": 26 } } }, "range": [ - 7377, - 7399 + 7370, + 7392 ], "loc": { "start": { - "line": 230, + "line": 224, "column": 4 }, "end": { - "line": 230, + "line": 224, "column": 26 } } @@ -7295,62 +7362,62 @@ "value": true, "raw": "true", "range": [ - 7402, - 7406 + 7395, + 7399 ], "loc": { "start": { - "line": 230, + "line": 224, "column": 29 }, "end": { - "line": 230, + "line": 224, "column": 33 } } }, "range": [ - 7377, - 7406 + 7370, + 7399 ], "loc": { "start": { - "line": 230, + "line": 224, "column": 4 }, "end": { - "line": 230, + "line": 224, "column": 33 } } }, "range": [ - 7377, - 7407 + 7370, + 7400 ], "loc": { "start": { - "line": 230, + "line": 224, "column": 4 }, "end": { - "line": 230, + "line": 224, "column": 34 } } } ], "range": [ - 7371, - 7411 + 7364, + 7404 ], "loc": { "start": { - "line": 229, + "line": 223, "column": 19 }, "end": { - "line": 231, + "line": 225, "column": 3 } } @@ -7358,16 +7425,16 @@ "generator": false, "expression": false, "range": [ - 7368, - 7411 + 7361, + 7404 ], "loc": { "start": { - "line": 229, + "line": 223, "column": 16 }, "end": { - "line": 231, + "line": 225, "column": 3 } } @@ -7375,16 +7442,16 @@ "kind": "method", "computed": false, "range": [ - 7354, - 7411 + 7347, + 7404 ], "loc": { "start": { - "line": 229, + "line": 223, "column": 2 }, "end": { - "line": 231, + "line": 225, "column": 3 } }, @@ -7393,16 +7460,16 @@ "type": "Block", "value": "*\n * Signals to {@link GPT} that video ads will be present on the page. This enables\n * competitive exclusion constraints on display and video ads. If the video\n * content is known, call setVideoContent in order to be able to use content\n * exclusion for display ads.\n ", "range": [ - 7068, - 7351 + 7061, + 7344 ], "loc": { "start": { - "line": 223, + "line": 217, "column": 2 }, "end": { - "line": 228, + "line": 222, "column": 5 } } @@ -7413,16 +7480,16 @@ "type": "Block", "value": "*\n * Sets custom targeting parameters for a given key that apply to all pubads\n * service ad slots. Calling this multiple times for the same key will\n * overwrite old values. These keys are defined in your {@link DFP} account.\n *\n * @param {string} key Targeting parameter key.\n * @param {string|!Array} value Targeting parameter value or array of values.\n * @returns {PubAdsService} The service object on which the method was called.\n ", "range": [ - 7415, - 7879 + 7408, + 7872 ], "loc": { "start": { - "line": 233, + "line": 227, "column": 2 }, "end": { - "line": 241, + "line": 235, "column": 5 } } @@ -7436,16 +7503,16 @@ "type": "Identifier", "name": "setTargeting", "range": [ - 7882, - 7894 + 7875, + 7887 ], "loc": { "start": { - "line": 242, + "line": 236, "column": 2 }, "end": { - "line": 242, + "line": 236, "column": 14 } } @@ -7458,16 +7525,16 @@ "type": "Identifier", "name": "key", "range": [ - 7895, - 7898 + 7888, + 7891 ], "loc": { "start": { - "line": 242, + "line": 236, "column": 15 }, "end": { - "line": 242, + "line": 236, "column": 18 } } @@ -7476,16 +7543,16 @@ "type": "Identifier", "name": "value", "range": [ - 7900, - 7905 + 7893, + 7898 ], "loc": { "start": { - "line": 242, + "line": 236, "column": 20 }, "end": { - "line": 242, + "line": 236, "column": 25 } } @@ -7495,64 +7562,117 @@ "type": "BlockStatement", "body": [ { - "type": "IfStatement", - "test": { + "type": "ExpressionStatement", + "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { - "type": "Identifier", - "name": "Array", + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 7906, + 7910 + ], + "loc": { + "start": { + "line": 237, + "column": 4 + }, + "end": { + "line": 237, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_targeting", + "range": [ + 7911, + 7921 + ], + "loc": { + "start": { + "line": 237, + "column": 9 + }, + "end": { + "line": 237, + "column": 19 + } + } + }, "range": [ - 7917, - 7922 + 7906, + 7921 ], "loc": { "start": { - "line": 243, - "column": 8 + "line": 237, + "column": 4 }, "end": { - "line": 243, - "column": 13 + "line": 237, + "column": 19 } } }, "property": { "type": "Identifier", - "name": "isArray", + "name": "set", "range": [ - 7923, - 7930 + 7922, + 7925 ], "loc": { "start": { - "line": 243, - "column": 14 + "line": 237, + "column": 20 }, "end": { - "line": 243, - "column": 21 + "line": 237, + "column": 23 } } }, "range": [ - 7917, - 7930 + 7906, + 7925 ], "loc": { "start": { - "line": 243, - "column": 8 + "line": 237, + "column": 4 }, "end": { - "line": 243, - "column": 21 + "line": 237, + "column": 23 } } }, "arguments": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 7926, + 7929 + ], + "loc": { + "start": { + "line": 237, + "column": 24 + }, + "end": { + "line": 237, + "column": 27 + } + } + }, { "type": "Identifier", "name": "value", @@ -7562,384 +7682,43 @@ ], "loc": { "start": { - "line": 243, - "column": 22 + "line": 237, + "column": 29 }, "end": { - "line": 243, - "column": 27 + "line": 237, + "column": 34 } } } ], "range": [ - 7917, + 7906, 7937 ], "loc": { "start": { - "line": 243, - "column": 8 + "line": 237, + "column": 4 }, "end": { - "line": 243, - "column": 28 - } - } - }, - "consequent": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "ThisExpression", - "range": [ - 7947, - 7951 - ], - "loc": { - "start": { - "line": 244, - "column": 6 - }, - "end": { - "line": 244, - "column": 10 - } - } - }, - "property": { - "type": "Identifier", - "name": "_targeting", - "range": [ - 7952, - 7962 - ], - "loc": { - "start": { - "line": 244, - "column": 11 - }, - "end": { - "line": 244, - "column": 21 - } - } - }, - "range": [ - 7947, - 7962 - ], - "loc": { - "start": { - "line": 244, - "column": 6 - }, - "end": { - "line": 244, - "column": 21 - } - } - }, - "property": { - "type": "Identifier", - "name": "key", - "range": [ - 7963, - 7966 - ], - "loc": { - "start": { - "line": 244, - "column": 22 - }, - "end": { - "line": 244, - "column": 25 - } - } - }, - "range": [ - 7947, - 7967 - ], - "loc": { - "start": { - "line": 244, - "column": 6 - }, - "end": { - "line": 244, - "column": 26 - } - } - }, - "right": { - "type": "Identifier", - "name": "value", - "range": [ - 7970, - 7975 - ], - "loc": { - "start": { - "line": 244, - "column": 29 - }, - "end": { - "line": 244, - "column": 34 - } - } - }, - "range": [ - 7947, - 7975 - ], - "loc": { - "start": { - "line": 244, - "column": 6 - }, - "end": { - "line": 244, - "column": 34 - } - } - }, - "range": [ - 7947, - 7976 - ], - "loc": { - "start": { - "line": 244, - "column": 6 - }, - "end": { - "line": 244, - "column": 35 - } - } - } - ], - "range": [ - 7939, - 7982 - ], - "loc": { - "start": { - "line": 243, - "column": 30 - }, - "end": { - "line": 245, - "column": 5 - } - } - }, - "alternate": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "ThisExpression", - "range": [ - 7996, - 8000 - ], - "loc": { - "start": { - "line": 246, - "column": 6 - }, - "end": { - "line": 246, - "column": 10 - } - } - }, - "property": { - "type": "Identifier", - "name": "_targeting", - "range": [ - 8001, - 8011 - ], - "loc": { - "start": { - "line": 246, - "column": 11 - }, - "end": { - "line": 246, - "column": 21 - } - } - }, - "range": [ - 7996, - 8011 - ], - "loc": { - "start": { - "line": 246, - "column": 6 - }, - "end": { - "line": 246, - "column": 21 - } - } - }, - "property": { - "type": "Identifier", - "name": "key", - "range": [ - 8012, - 8015 - ], - "loc": { - "start": { - "line": 246, - "column": 22 - }, - "end": { - "line": 246, - "column": 25 - } - } - }, - "range": [ - 7996, - 8016 - ], - "loc": { - "start": { - "line": 246, - "column": 6 - }, - "end": { - "line": 246, - "column": 26 - } - } - }, - "right": { - "type": "ArrayExpression", - "elements": [ - { - "type": "Identifier", - "name": "value", - "range": [ - 8020, - 8025 - ], - "loc": { - "start": { - "line": 246, - "column": 30 - }, - "end": { - "line": 246, - "column": 35 - } - } - } - ], - "range": [ - 8019, - 8026 - ], - "loc": { - "start": { - "line": 246, - "column": 29 - }, - "end": { - "line": 246, - "column": 36 - } - } - }, - "range": [ - 7996, - 8026 - ], - "loc": { - "start": { - "line": 246, - "column": 6 - }, - "end": { - "line": 246, - "column": 36 - } - } - }, - "range": [ - 7996, - 8027 - ], - "loc": { - "start": { - "line": 246, - "column": 6 - }, - "end": { - "line": 246, - "column": 37 - } - } - } - ], - "range": [ - 7988, - 8033 - ], - "loc": { - "start": { - "line": 245, - "column": 11 - }, - "end": { - "line": 247, - "column": 5 + "line": 237, + "column": 35 } } }, "range": [ - 7913, - 8033 + 7906, + 7938 ], "loc": { "start": { - "line": 243, + "line": 237, "column": 4 }, "end": { - "line": 247, - "column": 5 + "line": 237, + "column": 36 } } }, @@ -7948,47 +7727,47 @@ "argument": { "type": "ThisExpression", "range": [ - 8045, - 8049 + 7950, + 7954 ], "loc": { "start": { - "line": 248, + "line": 238, "column": 11 }, "end": { - "line": 248, + "line": 238, "column": 15 } } }, "range": [ - 8038, - 8050 + 7943, + 7955 ], "loc": { "start": { - "line": 248, + "line": 238, "column": 4 }, "end": { - "line": 248, + "line": 238, "column": 16 } } } ], "range": [ - 7907, - 8054 + 7900, + 7959 ], "loc": { "start": { - "line": 242, + "line": 236, "column": 27 }, "end": { - "line": 249, + "line": 239, "column": 3 } } @@ -7996,16 +7775,16 @@ "generator": false, "expression": false, "range": [ - 7894, - 8054 + 7887, + 7959 ], "loc": { "start": { - "line": 242, + "line": 236, "column": 14 }, "end": { - "line": 249, + "line": 239, "column": 3 } } @@ -8013,16 +7792,16 @@ "kind": "method", "computed": false, "range": [ - 7882, - 8054 + 7875, + 7959 ], "loc": { "start": { - "line": 242, + "line": 236, "column": 2 }, "end": { - "line": 249, + "line": 239, "column": 3 } }, @@ -8031,16 +7810,16 @@ "type": "Block", "value": "*\n * Sets custom targeting parameters for a given key that apply to all pubads\n * service ad slots. Calling this multiple times for the same key will\n * overwrite old values. These keys are defined in your {@link DFP} account.\n *\n * @param {string} key Targeting parameter key.\n * @param {string|!Array} value Targeting parameter value or array of values.\n * @returns {PubAdsService} The service object on which the method was called.\n ", "range": [ - 7415, - 7879 + 7408, + 7872 ], "loc": { "start": { - "line": 233, + "line": 227, "column": 2 }, "end": { - "line": 241, + "line": 235, "column": 5 } } @@ -8051,16 +7830,16 @@ "type": "Block", "value": "*\n * Returns a specific custom service-level targeting parameter that has been set.\n *\n * @param {string} key The targeting key to look for.\n * @returns {!Array} The values associated with this key, or an empty\n * array if there is no such key.\n ", "range": [ - 8058, - 8328 + 7963, + 8233 ], "loc": { "start": { - "line": 251, + "line": 241, "column": 2 }, "end": { - "line": 257, + "line": 247, "column": 5 } } @@ -8074,16 +7853,16 @@ "type": "Identifier", "name": "getTargeting", "range": [ - 8331, - 8343 + 8236, + 8248 ], "loc": { "start": { - "line": 258, + "line": 248, "column": 2 }, "end": { - "line": 258, + "line": 248, "column": 14 } } @@ -8096,16 +7875,16 @@ "type": "Identifier", "name": "key", "range": [ - 8344, - 8347 + 8249, + 8252 ], "loc": { "start": { - "line": 258, + "line": 248, "column": 15 }, "end": { - "line": 258, + "line": 248, "column": 18 } } @@ -8117,27 +7896,26 @@ { "type": "ReturnStatement", "argument": { - "type": "LogicalExpression", - "operator": "||", - "left": { + "type": "CallExpression", + "callee": { "type": "MemberExpression", - "computed": true, + "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ - 8362, - 8366 + 8267, + 8271 ], "loc": { "start": { - "line": 259, + "line": 249, "column": 11 }, "end": { - "line": 259, + "line": 249, "column": 15 } } @@ -8146,128 +7924,130 @@ "type": "Identifier", "name": "_targeting", "range": [ - 8367, - 8377 + 8272, + 8282 ], "loc": { "start": { - "line": 259, + "line": 249, "column": 16 }, "end": { - "line": 259, + "line": 249, "column": 26 } } }, "range": [ - 8362, - 8377 + 8267, + 8282 ], "loc": { "start": { - "line": 259, + "line": 249, "column": 11 }, "end": { - "line": 259, + "line": 249, "column": 26 } } }, "property": { "type": "Identifier", - "name": "key", + "name": "get", "range": [ - 8378, - 8381 + 8283, + 8286 ], "loc": { "start": { - "line": 259, + "line": 249, "column": 27 }, "end": { - "line": 259, + "line": 249, "column": 30 } } }, "range": [ - 8362, - 8382 + 8267, + 8286 ], "loc": { "start": { - "line": 259, + "line": 249, "column": 11 }, "end": { - "line": 259, - "column": 31 + "line": 249, + "column": 30 } } }, - "right": { - "type": "ArrayExpression", - "elements": [], - "range": [ - 8386, - 8388 - ], - "loc": { - "start": { - "line": 259, - "column": 35 - }, - "end": { - "line": 259, - "column": 37 + "arguments": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 8287, + 8290 + ], + "loc": { + "start": { + "line": 249, + "column": 31 + }, + "end": { + "line": 249, + "column": 34 + } } } - }, + ], "range": [ - 8362, - 8388 + 8267, + 8291 ], "loc": { "start": { - "line": 259, + "line": 249, "column": 11 }, "end": { - "line": 259, - "column": 37 + "line": 249, + "column": 35 } } }, "range": [ - 8355, - 8389 + 8260, + 8292 ], "loc": { "start": { - "line": 259, + "line": 249, "column": 4 }, "end": { - "line": 259, - "column": 38 + "line": 249, + "column": 36 } } } ], "range": [ - 8349, - 8393 + 8254, + 8296 ], "loc": { "start": { - "line": 258, + "line": 248, "column": 20 }, "end": { - "line": 260, + "line": 250, "column": 3 } } @@ -8275,16 +8055,16 @@ "generator": false, "expression": false, "range": [ - 8343, - 8393 + 8248, + 8296 ], "loc": { "start": { - "line": 258, + "line": 248, "column": 14 }, "end": { - "line": 260, + "line": 250, "column": 3 } } @@ -8292,16 +8072,16 @@ "kind": "method", "computed": false, "range": [ - 8331, - 8393 + 8236, + 8296 ], "loc": { "start": { - "line": 258, + "line": 248, "column": 2 }, "end": { - "line": 260, + "line": 250, "column": 3 } }, @@ -8310,16 +8090,16 @@ "type": "Block", "value": "*\n * Returns a specific custom service-level targeting parameter that has been set.\n *\n * @param {string} key The targeting key to look for.\n * @returns {!Array} The values associated with this key, or an empty\n * array if there is no such key.\n ", "range": [ - 8058, - 8328 + 7963, + 8233 ], "loc": { "start": { - "line": 251, + "line": 241, "column": 2 }, "end": { - "line": 257, + "line": 247, "column": 5 } } @@ -8330,16 +8110,16 @@ "type": "Block", "value": "*\n * Returns the list of all custom service-level targeting keys that have been set.\n *\n * @returns {!Array} Array of targeting keys. Ordering is undefined.\n ", "range": [ - 8397, - 8575 + 8300, + 8478 ], "loc": { "start": { - "line": 262, + "line": 252, "column": 2 }, "end": { - "line": 266, + "line": 256, "column": 5 } } @@ -8353,16 +8133,16 @@ "type": "Identifier", "name": "getTargetingKeys", "range": [ - 8578, - 8594 + 8481, + 8497 ], "loc": { "start": { - "line": 267, + "line": 257, "column": 2 }, "end": { - "line": 267, + "line": 257, "column": 18 } } @@ -8382,20 +8162,55 @@ "type": "MemberExpression", "computed": false, "object": { - "type": "Identifier", - "name": "Object", + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 8513, + 8517 + ], + "loc": { + "start": { + "line": 258, + "column": 11 + }, + "end": { + "line": 258, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_targeting", + "range": [ + 8518, + 8528 + ], + "loc": { + "start": { + "line": 258, + "column": 16 + }, + "end": { + "line": 258, + "column": 26 + } + } + }, "range": [ - 8610, - 8616 + 8513, + 8528 ], "loc": { "start": { - "line": 268, + "line": 258, "column": 11 }, "end": { - "line": 268, - "column": 17 + "line": 258, + "column": 26 } } }, @@ -8403,132 +8218,78 @@ "type": "Identifier", "name": "keys", "range": [ - 8617, - 8621 + 8529, + 8533 ], "loc": { "start": { - "line": 268, - "column": 18 + "line": 258, + "column": 27 }, "end": { - "line": 268, - "column": 22 + "line": 258, + "column": 31 } } }, "range": [ - 8610, - 8621 + 8513, + 8533 ], "loc": { "start": { - "line": 268, + "line": 258, "column": 11 }, "end": { - "line": 268, - "column": 22 + "line": 258, + "column": 31 } } }, - "arguments": [ - { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "ThisExpression", - "range": [ - 8622, - 8626 - ], - "loc": { - "start": { - "line": 268, - "column": 23 - }, - "end": { - "line": 268, - "column": 27 - } - } - }, - "property": { - "type": "Identifier", - "name": "_targeting", - "range": [ - 8627, - 8637 - ], - "loc": { - "start": { - "line": 268, - "column": 28 - }, - "end": { - "line": 268, - "column": 38 - } - } - }, - "range": [ - 8622, - 8637 - ], - "loc": { - "start": { - "line": 268, - "column": 23 - }, - "end": { - "line": 268, - "column": 38 - } - } - } - ], + "arguments": [], "range": [ - 8610, - 8638 + 8513, + 8535 ], "loc": { "start": { - "line": 268, + "line": 258, "column": 11 }, "end": { - "line": 268, - "column": 39 + "line": 258, + "column": 33 } } }, "range": [ - 8603, - 8639 + 8506, + 8536 ], "loc": { "start": { - "line": 268, + "line": 258, "column": 4 }, "end": { - "line": 268, - "column": 40 + "line": 258, + "column": 34 } } } ], "range": [ - 8597, - 8643 + 8500, + 8540 ], "loc": { "start": { - "line": 267, + "line": 257, "column": 21 }, "end": { - "line": 269, + "line": 259, "column": 3 } } @@ -8536,16 +8297,16 @@ "generator": false, "expression": false, "range": [ - 8594, - 8643 + 8497, + 8540 ], "loc": { "start": { - "line": 267, + "line": 257, "column": 18 }, "end": { - "line": 269, + "line": 259, "column": 3 } } @@ -8553,16 +8314,16 @@ "kind": "method", "computed": false, "range": [ - 8578, - 8643 + 8481, + 8540 ], "loc": { "start": { - "line": 267, + "line": 257, "column": 2 }, "end": { - "line": 269, + "line": 259, "column": 3 } }, @@ -8571,16 +8332,16 @@ "type": "Block", "value": "*\n * Returns the list of all custom service-level targeting keys that have been set.\n *\n * @returns {!Array} Array of targeting keys. Ordering is undefined.\n ", "range": [ - 8397, - 8575 + 8300, + 8478 ], "loc": { "start": { - "line": 262, + "line": 252, "column": 2 }, "end": { - "line": 266, + "line": 256, "column": 5 } } @@ -8591,16 +8352,16 @@ "type": "Block", "value": "*\n * Clears custom targeting parameters for a given key.\n *\n * @param {string} key Targeting parameter key.\n * @returns {PubAdsService} The service object on which the method was called.\n ", "range": [ - 8647, - 8849 + 8544, + 8746 ], "loc": { "start": { - "line": 271, + "line": 261, "column": 2 }, "end": { - "line": 276, + "line": 266, "column": 5 } } @@ -8614,16 +8375,16 @@ "type": "Identifier", "name": "clearTargeting", "range": [ - 8852, - 8866 + 8749, + 8763 ], "loc": { "start": { - "line": 277, + "line": 267, "column": 2 }, "end": { - "line": 277, + "line": 267, "column": 16 } } @@ -8636,16 +8397,16 @@ "type": "Identifier", "name": "key", "range": [ - 8867, - 8870 + 8764, + 8767 ], "loc": { "start": { - "line": 277, + "line": 267, "column": 17 }, "end": { - "line": 277, + "line": 267, "column": 20 } } @@ -8657,28 +8418,27 @@ { "type": "ExpressionStatement", "expression": { - "type": "UnaryExpression", - "operator": "delete", - "argument": { + "type": "CallExpression", + "callee": { "type": "MemberExpression", - "computed": true, + "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ - 8885, - 8889 + 8775, + 8779 ], "loc": { "start": { - "line": 278, - "column": 11 + "line": 268, + "column": 4 }, "end": { - "line": 278, - "column": 15 + "line": 268, + "column": 8 } } }, @@ -8686,96 +8446,115 @@ "type": "Identifier", "name": "_targeting", "range": [ - 8890, - 8900 + 8780, + 8790 ], "loc": { "start": { - "line": 278, - "column": 16 + "line": 268, + "column": 9 }, "end": { - "line": 278, - "column": 26 + "line": 268, + "column": 19 } } }, "range": [ - 8885, - 8900 + 8775, + 8790 ], "loc": { "start": { - "line": 278, - "column": 11 + "line": 268, + "column": 4 }, "end": { - "line": 278, - "column": 26 + "line": 268, + "column": 19 } } }, "property": { "type": "Identifier", - "name": "key", + "name": "clear", "range": [ - 8901, - 8904 + 8791, + 8796 ], "loc": { "start": { - "line": 278, - "column": 27 + "line": 268, + "column": 20 }, "end": { - "line": 278, - "column": 30 + "line": 268, + "column": 25 } } }, "range": [ - 8885, - 8905 + 8775, + 8796 ], "loc": { "start": { - "line": 278, - "column": 11 + "line": 268, + "column": 4 }, "end": { - "line": 278, - "column": 31 + "line": 268, + "column": 25 } } }, - "prefix": true, + "arguments": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 8797, + 8800 + ], + "loc": { + "start": { + "line": 268, + "column": 26 + }, + "end": { + "line": 268, + "column": 29 + } + } + } + ], "range": [ - 8878, - 8905 + 8775, + 8801 ], "loc": { "start": { - "line": 278, + "line": 268, "column": 4 }, "end": { - "line": 278, - "column": 31 + "line": 268, + "column": 30 } } }, "range": [ - 8878, - 8906 + 8775, + 8802 ], "loc": { "start": { - "line": 278, + "line": 268, "column": 4 }, "end": { - "line": 278, - "column": 32 + "line": 268, + "column": 31 } } }, @@ -8784,47 +8563,47 @@ "argument": { "type": "ThisExpression", "range": [ - 8918, - 8922 + 8814, + 8818 ], "loc": { "start": { - "line": 279, + "line": 269, "column": 11 }, "end": { - "line": 279, + "line": 269, "column": 15 } } }, "range": [ - 8911, - 8923 + 8807, + 8819 ], "loc": { "start": { - "line": 279, + "line": 269, "column": 4 }, "end": { - "line": 279, + "line": 269, "column": 16 } } } ], "range": [ - 8872, - 8927 + 8769, + 8823 ], "loc": { "start": { - "line": 277, + "line": 267, "column": 22 }, "end": { - "line": 280, + "line": 270, "column": 3 } } @@ -8832,16 +8611,16 @@ "generator": false, "expression": false, "range": [ - 8866, - 8927 + 8763, + 8823 ], "loc": { "start": { - "line": 277, + "line": 267, "column": 16 }, "end": { - "line": 280, + "line": 270, "column": 3 } } @@ -8849,16 +8628,16 @@ "kind": "method", "computed": false, "range": [ - 8852, - 8927 + 8749, + 8823 ], "loc": { "start": { - "line": 277, + "line": 267, "column": 2 }, "end": { - "line": 280, + "line": 270, "column": 3 } }, @@ -8867,16 +8646,16 @@ "type": "Block", "value": "*\n * Clears custom targeting parameters for a given key.\n *\n * @param {string} key Targeting parameter key.\n * @returns {PubAdsService} The service object on which the method was called.\n ", "range": [ - 8647, - 8849 + 8544, + 8746 ], "loc": { "start": { - "line": 271, + "line": 261, "column": 2 }, "end": { - "line": 276, + "line": 266, "column": 5 } } @@ -8887,16 +8666,16 @@ "type": "Block", "value": "*\n * Enables collapsing of slot divs so that they don't take up any space on the\n * page when there is no ad content to display. This mode must be set before\n * the service is enabled.\n *\n * @param {boolean} [optCollapseBeforeAdFetch=false] Whether to collapse the slots\n * even before the ads are fetched. This parameter is optional; if not\n * provided, false will be used as the default value.\n * @returns {boolean} Returns true if div collapse mode was enabled and false\n * if it is impossible to enable collapse mode because the method was called\n * after the service was enabled.\n ", "range": [ - 8931, - 9543 + 8827, + 9439 ], "loc": { "start": { - "line": 282, + "line": 272, "column": 2 }, "end": { - "line": 293, + "line": 283, "column": 5 } } @@ -8910,16 +8689,16 @@ "type": "Identifier", "name": "collapseEmptyDivs", "range": [ - 9546, - 9563 + 9442, + 9459 ], "loc": { "start": { - "line": 294, + "line": 284, "column": 2 }, "end": { - "line": 294, + "line": 284, "column": 19 } } @@ -8934,16 +8713,16 @@ "type": "Identifier", "name": "optCollapseBeforeAdFetch", "range": [ - 9564, - 9588 + 9460, + 9484 ], "loc": { "start": { - "line": 294, + "line": 284, "column": 20 }, "end": { - "line": 294, + "line": 284, "column": 44 } } @@ -8953,31 +8732,31 @@ "value": false, "raw": "false", "range": [ - 9591, - 9596 + 9487, + 9492 ], "loc": { "start": { - "line": 294, + "line": 284, "column": 47 }, "end": { - "line": 294, + "line": 284, "column": 52 } } }, "range": [ - 9564, - 9596 + 9460, + 9492 ], "loc": { "start": { - "line": 294, + "line": 284, "column": 20 }, "end": { - "line": 294, + "line": 284, "column": 52 } } @@ -8987,482 +8766,431 @@ "type": "BlockStatement", "body": [ { - "type": "IfStatement", - "test": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "ThisExpression", - "range": [ - 9608, - 9612 - ], - "loc": { - "start": { - "line": 295, - "column": 8 - }, - "end": { - "line": 295, - "column": 12 - } - } - }, - "property": { - "type": "Identifier", - "name": "_enabled", - "range": [ - 9613, - 9621 - ], - "loc": { - "start": { - "line": 295, - "column": 13 - }, - "end": { - "line": 295, - "column": 21 + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 9507, + 9511 + ], + "loc": { + "start": { + "line": 285, + "column": 11 + }, + "end": { + "line": 285, + "column": 15 + } } - } - }, - "range": [ - 9608, - 9621 - ], - "loc": { - "start": { - "line": 295, - "column": 8 }, - "end": { - "line": 295, - "column": 21 - } - } - }, - "consequent": { - "type": "BlockStatement", - "body": [ - { - "type": "ReturnStatement", - "argument": { - "type": "Literal", - "value": false, - "raw": "false", - "range": [ - 9638, - 9643 - ], - "loc": { - "start": { - "line": 296, - "column": 13 - }, - "end": { - "line": 296, - "column": 18 - } - } - }, + "property": { + "type": "Identifier", + "name": "_unlessEnabled", "range": [ - 9631, - 9644 + 9512, + 9526 ], "loc": { "start": { - "line": 296, - "column": 6 + "line": 285, + "column": 16 }, "end": { - "line": 296, - "column": 19 + "line": 285, + "column": 30 } } - } - ], - "range": [ - 9623, - 9650 - ], - "loc": { - "start": { - "line": 295, - "column": 23 }, - "end": { - "line": 297, - "column": 5 + "range": [ + 9507, + 9526 + ], + "loc": { + "start": { + "line": 285, + "column": 11 + }, + "end": { + "line": 285, + "column": 30 + } } - } - }, - "alternate": { - "type": "BlockStatement", - "body": [ + }, + "arguments": [ { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "ThisExpression", - "range": [ - 9664, - 9668 - ], - "loc": { - "start": { - "line": 298, - "column": 6 + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 9541, + 9545 + ], + "loc": { + "start": { + "line": 286, + "column": 6 + }, + "end": { + "line": 286, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "_options", + "range": [ + 9546, + 9554 + ], + "loc": { + "start": { + "line": 286, + "column": 11 + }, + "end": { + "line": 286, + "column": 19 + } + } + }, + "range": [ + 9541, + 9554 + ], + "loc": { + "start": { + "line": 286, + "column": 6 + }, + "end": { + "line": 286, + "column": 19 + } + } }, - "end": { - "line": 298, - "column": 10 + "property": { + "type": "Identifier", + "name": "collapseEmptyDivs", + "range": [ + 9555, + 9572 + ], + "loc": { + "start": { + "line": 286, + "column": 20 + }, + "end": { + "line": 286, + "column": 37 + } + } + }, + "range": [ + 9541, + 9572 + ], + "loc": { + "start": { + "line": 286, + "column": 6 + }, + "end": { + "line": 286, + "column": 37 + } } - } - }, - "property": { - "type": "Identifier", - "name": "_options", + }, + "right": { + "type": "Literal", + "value": true, + "raw": "true", + "range": [ + 9575, + 9579 + ], + "loc": { + "start": { + "line": 286, + "column": 40 + }, + "end": { + "line": 286, + "column": 44 + } + } + }, "range": [ - 9669, - 9677 + 9541, + 9579 ], "loc": { "start": { - "line": 298, - "column": 11 + "line": 286, + "column": 6 }, "end": { - "line": 298, - "column": 19 + "line": 286, + "column": 44 } } }, "range": [ - 9664, - 9677 + 9541, + 9580 ], "loc": { "start": { - "line": 298, + "line": 286, "column": 6 }, "end": { - "line": 298, - "column": 19 - } - } - }, - "property": { - "type": "Identifier", - "name": "collapseEmptyDivs", - "range": [ - 9678, - 9695 - ], - "loc": { - "start": { - "line": 298, - "column": 20 - }, - "end": { - "line": 298, - "column": 37 + "line": 286, + "column": 45 } } }, - "range": [ - 9664, - 9695 - ], - "loc": { - "start": { - "line": 298, - "column": 6 - }, - "end": { - "line": 298, - "column": 37 - } - } - }, - "right": { - "type": "Literal", - "value": true, - "raw": "true", - "range": [ - 9698, - 9702 - ], - "loc": { - "start": { - "line": 298, - "column": 40 - }, - "end": { - "line": 298, - "column": 44 - } - } - }, - "range": [ - 9664, - 9702 - ], - "loc": { - "start": { - "line": 298, - "column": 6 - }, - "end": { - "line": 298, - "column": 44 - } - } - }, - "range": [ - 9664, - 9703 - ], - "loc": { - "start": { - "line": 298, - "column": 6 - }, - "end": { - "line": 298, - "column": 45 - } - } - }, - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "ThisExpression", - "range": [ - 9710, - 9714 - ], - "loc": { - "start": { - "line": 299, - "column": 6 + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 9587, + 9591 + ], + "loc": { + "start": { + "line": 287, + "column": 6 + }, + "end": { + "line": 287, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "_options", + "range": [ + 9592, + 9600 + ], + "loc": { + "start": { + "line": 287, + "column": 11 + }, + "end": { + "line": 287, + "column": 19 + } + } + }, + "range": [ + 9587, + 9600 + ], + "loc": { + "start": { + "line": 287, + "column": 6 + }, + "end": { + "line": 287, + "column": 19 + } + } }, - "end": { - "line": 299, - "column": 10 + "property": { + "type": "Identifier", + "name": "collapseBeforeAdFetch", + "range": [ + 9601, + 9622 + ], + "loc": { + "start": { + "line": 287, + "column": 20 + }, + "end": { + "line": 287, + "column": 41 + } + } + }, + "range": [ + 9587, + 9622 + ], + "loc": { + "start": { + "line": 287, + "column": 6 + }, + "end": { + "line": 287, + "column": 41 + } } - } - }, - "property": { - "type": "Identifier", - "name": "_options", + }, + "right": { + "type": "Identifier", + "name": "optCollapseBeforeAdFetch", + "range": [ + 9625, + 9649 + ], + "loc": { + "start": { + "line": 287, + "column": 44 + }, + "end": { + "line": 287, + "column": 68 + } + } + }, "range": [ - 9715, - 9723 + 9587, + 9649 ], "loc": { "start": { - "line": 299, - "column": 11 + "line": 287, + "column": 6 }, "end": { - "line": 299, - "column": 19 + "line": 287, + "column": 68 } } }, "range": [ - 9710, - 9723 + 9587, + 9650 ], "loc": { "start": { - "line": 299, + "line": 287, "column": 6 }, - "end": { - "line": 299, - "column": 19 - } - } - }, - "property": { - "type": "Identifier", - "name": "collapseBeforeAdFetch", - "range": [ - 9724, - 9745 - ], - "loc": { - "start": { - "line": 299, - "column": 20 - }, - "end": { - "line": 299, - "column": 41 - } - } - }, - "range": [ - 9710, - 9745 - ], - "loc": { - "start": { - "line": 299, - "column": 6 - }, - "end": { - "line": 299, - "column": 41 - } - } - }, - "right": { - "type": "Identifier", - "name": "optCollapseBeforeAdFetch", - "range": [ - 9748, - 9772 - ], - "loc": { - "start": { - "line": 299, - "column": 44 - }, - "end": { - "line": 299, - "column": 68 + "end": { + "line": 287, + "column": 69 + } } } - }, - "range": [ - 9710, - 9772 ], - "loc": { - "start": { - "line": 299, - "column": 6 - }, - "end": { - "line": 299, - "column": 68 - } - } - }, - "range": [ - 9710, - 9773 - ], - "loc": { - "start": { - "line": 299, - "column": 6 - }, - "end": { - "line": 299, - "column": 69 - } - } - }, - { - "type": "ReturnStatement", - "argument": { - "type": "Literal", - "value": true, - "raw": "true", "range": [ - 9787, - 9791 + 9533, + 9656 ], "loc": { "start": { - "line": 300, - "column": 13 + "line": 285, + "column": 37 }, "end": { - "line": 300, - "column": 17 + "line": 288, + "column": 5 } } }, + "generator": false, + "expression": false, "range": [ - 9780, - 9792 + 9527, + 9656 ], "loc": { "start": { - "line": 300, - "column": 6 + "line": 285, + "column": 31 }, "end": { - "line": 300, - "column": 18 + "line": 288, + "column": 5 } } } ], "range": [ - 9656, - 9798 + 9507, + 9657 ], "loc": { "start": { - "line": 297, + "line": 285, "column": 11 }, "end": { - "line": 301, - "column": 5 + "line": 288, + "column": 6 } } }, "range": [ - 9604, - 9798 + 9500, + 9658 ], "loc": { "start": { - "line": 295, + "line": 285, "column": 4 }, "end": { - "line": 301, - "column": 5 + "line": 288, + "column": 7 } } } ], "range": [ - 9598, - 9802 + 9494, + 9662 ], "loc": { "start": { - "line": 294, + "line": 284, "column": 54 }, "end": { - "line": 302, + "line": 289, "column": 3 } } @@ -9470,16 +9198,16 @@ "generator": false, "expression": false, "range": [ - 9563, - 9802 + 9459, + 9662 ], "loc": { "start": { - "line": 294, + "line": 284, "column": 19 }, "end": { - "line": 302, + "line": 289, "column": 3 } } @@ -9487,16 +9215,16 @@ "kind": "method", "computed": false, "range": [ - 9546, - 9802 + 9442, + 9662 ], "loc": { "start": { - "line": 294, + "line": 284, "column": 2 }, "end": { - "line": 302, + "line": 289, "column": 3 } }, @@ -9505,16 +9233,16 @@ "type": "Block", "value": "*\n * Enables collapsing of slot divs so that they don't take up any space on the\n * page when there is no ad content to display. This mode must be set before\n * the service is enabled.\n *\n * @param {boolean} [optCollapseBeforeAdFetch=false] Whether to collapse the slots\n * even before the ads are fetched. This parameter is optional; if not\n * provided, false will be used as the default value.\n * @returns {boolean} Returns true if div collapse mode was enabled and false\n * if it is impossible to enable collapse mode because the method was called\n * after the service was enabled.\n ", "range": [ - 8931, - 9543 + 8827, + 9439 ], "loc": { "start": { - "line": 282, + "line": 272, "column": 2 }, "end": { - "line": 293, + "line": 283, "column": 5 } } @@ -9525,16 +9253,16 @@ "type": "Block", "value": "*\n * Sets a page-level ad category exclusion for the given label name.\n *\n * @param {string} categoryExclusion The ad category exclusion label to add.\n * @returns {PubAdsService} The service object on which the method was called.\n ", "range": [ - 9806, - 10051 + 9666, + 9911 ], "loc": { "start": { - "line": 304, + "line": 291, "column": 2 }, "end": { - "line": 309, + "line": 296, "column": 5 } } @@ -9548,16 +9276,16 @@ "type": "Identifier", "name": "setCategoryExclusion", "range": [ - 10054, - 10074 + 9914, + 9934 ], "loc": { "start": { - "line": 310, + "line": 297, "column": 2 }, "end": { - "line": 310, + "line": 297, "column": 22 } } @@ -9570,16 +9298,16 @@ "type": "Identifier", "name": "categoryExclusion", "range": [ - 10075, - 10092 + 9935, + 9952 ], "loc": { "start": { - "line": 310, + "line": 297, "column": 23 }, "end": { - "line": 310, + "line": 297, "column": 40 } } @@ -9601,16 +9329,16 @@ "object": { "type": "ThisExpression", "range": [ - 10100, - 10104 + 9960, + 9964 ], "loc": { "start": { - "line": 311, + "line": 298, "column": 4 }, "end": { - "line": 311, + "line": 298, "column": 8 } } @@ -9619,31 +9347,31 @@ "type": "Identifier", "name": "_categoryExclusions", "range": [ - 10105, - 10124 + 9965, + 9984 ], "loc": { "start": { - "line": 311, + "line": 298, "column": 9 }, "end": { - "line": 311, + "line": 298, "column": 28 } } }, "range": [ - 10100, - 10124 + 9960, + 9984 ], "loc": { "start": { - "line": 311, + "line": 298, "column": 4 }, "end": { - "line": 311, + "line": 298, "column": 28 } } @@ -9652,31 +9380,31 @@ "type": "Identifier", "name": "push", "range": [ - 10125, - 10129 + 9985, + 9989 ], "loc": { "start": { - "line": 311, + "line": 298, "column": 29 }, "end": { - "line": 311, + "line": 298, "column": 33 } } }, "range": [ - 10100, - 10129 + 9960, + 9989 ], "loc": { "start": { - "line": 311, + "line": 298, "column": 4 }, "end": { - "line": 311, + "line": 298, "column": 33 } } @@ -9686,47 +9414,47 @@ "type": "Identifier", "name": "categoryExclusion", "range": [ - 10130, - 10147 + 9990, + 10007 ], "loc": { "start": { - "line": 311, + "line": 298, "column": 34 }, "end": { - "line": 311, + "line": 298, "column": 51 } } } ], "range": [ - 10100, - 10148 + 9960, + 10008 ], "loc": { "start": { - "line": 311, + "line": 298, "column": 4 }, "end": { - "line": 311, + "line": 298, "column": 52 } } }, "range": [ - 10100, - 10149 + 9960, + 10009 ], "loc": { "start": { - "line": 311, + "line": 298, "column": 4 }, "end": { - "line": 311, + "line": 298, "column": 53 } } @@ -9736,47 +9464,47 @@ "argument": { "type": "ThisExpression", "range": [ - 10161, - 10165 + 10021, + 10025 ], "loc": { "start": { - "line": 312, + "line": 299, "column": 11 }, "end": { - "line": 312, + "line": 299, "column": 15 } } }, "range": [ - 10154, - 10166 + 10014, + 10026 ], "loc": { "start": { - "line": 312, + "line": 299, "column": 4 }, "end": { - "line": 312, + "line": 299, "column": 16 } } } ], "range": [ - 10094, - 10170 + 9954, + 10030 ], "loc": { "start": { - "line": 310, + "line": 297, "column": 42 }, "end": { - "line": 313, + "line": 300, "column": 3 } } @@ -9784,16 +9512,16 @@ "generator": false, "expression": false, "range": [ - 10074, - 10170 + 9934, + 10030 ], "loc": { "start": { - "line": 310, + "line": 297, "column": 22 }, "end": { - "line": 313, + "line": 300, "column": 3 } } @@ -9801,16 +9529,16 @@ "kind": "method", "computed": false, "range": [ - 10054, - 10170 + 9914, + 10030 ], "loc": { "start": { - "line": 310, + "line": 297, "column": 2 }, "end": { - "line": 313, + "line": 300, "column": 3 } }, @@ -9819,16 +9547,16 @@ "type": "Block", "value": "*\n * Sets a page-level ad category exclusion for the given label name.\n *\n * @param {string} categoryExclusion The ad category exclusion label to add.\n * @returns {PubAdsService} The service object on which the method was called.\n ", "range": [ - 9806, - 10051 + 9666, + 9911 ], "loc": { "start": { - "line": 304, + "line": 291, "column": 2 }, "end": { - "line": 309, + "line": 296, "column": 5 } } @@ -9839,16 +9567,16 @@ "type": "Block", "value": "*\n * Clears all page-level ad category exclusion labels.\n * This is useful if you want to refresh the slot.\n *\n * @returns {PubAdsService} The service object on which the method was called.\n ", "range": [ - 10174, - 10379 + 10034, + 10239 ], "loc": { "start": { - "line": 315, + "line": 302, "column": 2 }, "end": { - "line": 320, + "line": 307, "column": 5 } } @@ -9862,16 +9590,16 @@ "type": "Identifier", "name": "clearCategoryExclusions", "range": [ - 10382, - 10405 + 10242, + 10265 ], "loc": { "start": { - "line": 321, + "line": 308, "column": 2 }, "end": { - "line": 321, + "line": 308, "column": 25 } } @@ -9894,16 +9622,16 @@ "object": { "type": "ThisExpression", "range": [ - 10414, - 10418 + 10274, + 10278 ], "loc": { "start": { - "line": 322, + "line": 309, "column": 4 }, "end": { - "line": 322, + "line": 309, "column": 8 } } @@ -9912,31 +9640,31 @@ "type": "Identifier", "name": "_categoryExclusions", "range": [ - 10419, - 10438 + 10279, + 10298 ], "loc": { "start": { - "line": 322, + "line": 309, "column": 9 }, "end": { - "line": 322, + "line": 309, "column": 28 } } }, "range": [ - 10414, - 10438 + 10274, + 10298 ], "loc": { "start": { - "line": 322, + "line": 309, "column": 4 }, "end": { - "line": 322, + "line": 309, "column": 28 } } @@ -9945,46 +9673,46 @@ "type": "ArrayExpression", "elements": [], "range": [ - 10441, - 10443 + 10301, + 10303 ], "loc": { "start": { - "line": 322, + "line": 309, "column": 31 }, "end": { - "line": 322, + "line": 309, "column": 33 } } }, "range": [ - 10414, - 10443 + 10274, + 10303 ], "loc": { "start": { - "line": 322, + "line": 309, "column": 4 }, "end": { - "line": 322, + "line": 309, "column": 33 } } }, "range": [ - 10414, - 10444 + 10274, + 10304 ], "loc": { "start": { - "line": 322, + "line": 309, "column": 4 }, "end": { - "line": 322, + "line": 309, "column": 34 } } @@ -9994,47 +9722,47 @@ "argument": { "type": "ThisExpression", "range": [ - 10456, - 10460 + 10316, + 10320 ], "loc": { "start": { - "line": 323, + "line": 310, "column": 11 }, "end": { - "line": 323, + "line": 310, "column": 15 } } }, "range": [ - 10449, - 10461 + 10309, + 10321 ], "loc": { "start": { - "line": 323, + "line": 310, "column": 4 }, "end": { - "line": 323, + "line": 310, "column": 16 } } } ], "range": [ - 10408, - 10465 + 10268, + 10325 ], "loc": { "start": { - "line": 321, + "line": 308, "column": 28 }, "end": { - "line": 324, + "line": 311, "column": 3 } } @@ -10042,16 +9770,16 @@ "generator": false, "expression": false, "range": [ - 10405, - 10465 + 10265, + 10325 ], "loc": { "start": { - "line": 321, + "line": 308, "column": 25 }, "end": { - "line": 324, + "line": 311, "column": 3 } } @@ -10059,16 +9787,16 @@ "kind": "method", "computed": false, "range": [ - 10382, - 10465 + 10242, + 10325 ], "loc": { "start": { - "line": 321, + "line": 308, "column": 2 }, "end": { - "line": 324, + "line": 311, "column": 3 } }, @@ -10077,16 +9805,16 @@ "type": "Block", "value": "*\n * Clears all page-level ad category exclusion labels.\n * This is useful if you want to refresh the slot.\n *\n * @returns {PubAdsService} The service object on which the method was called.\n ", "range": [ - 10174, - 10379 + 10034, + 10239 ], "loc": { "start": { - "line": 315, + "line": 302, "column": 2 }, "end": { - "line": 320, + "line": 307, "column": 5 } } @@ -10097,16 +9825,16 @@ "type": "Block", "value": "*\n * Enables/disables centering of ads. This mode must be set before the service\n * is enabled. Centering is disabled by default.\n *\n * @param {boolean} centerAds true to center ads, false to left-align them.\n ", "range": [ - 10469, - 10693 + 10329, + 10553 ], "loc": { "start": { - "line": 326, + "line": 313, "column": 2 }, "end": { - "line": 331, + "line": 318, "column": 5 } } @@ -10120,16 +9848,16 @@ "type": "Identifier", "name": "setCentering", "range": [ - 10696, - 10708 + 10556, + 10568 ], "loc": { "start": { - "line": 332, + "line": 319, "column": 2 }, "end": { - "line": 332, + "line": 319, "column": 14 } } @@ -10142,16 +9870,16 @@ "type": "Identifier", "name": "centerAds", "range": [ - 10709, - 10718 + 10569, + 10578 ], "loc": { "start": { - "line": 332, + "line": 319, "column": 15 }, "end": { - "line": 332, + "line": 319, "column": 24 } } @@ -10161,268 +9889,288 @@ "type": "BlockStatement", "body": [ { - "type": "IfStatement", - "test": { - "type": "UnaryExpression", - "operator": "!", - "argument": { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ - 10731, - 10735 + 10586, + 10590 ], "loc": { "start": { - "line": 333, - "column": 9 + "line": 320, + "column": 4 }, "end": { - "line": 333, - "column": 13 + "line": 320, + "column": 8 } } }, "property": { "type": "Identifier", - "name": "_enabled", + "name": "_unlessEnabled", "range": [ - 10736, - 10744 + 10591, + 10605 ], "loc": { "start": { - "line": 333, - "column": 14 + "line": 320, + "column": 9 }, "end": { - "line": 333, - "column": 22 + "line": 320, + "column": 23 } } }, "range": [ - 10731, - 10744 + 10586, + 10605 ], "loc": { "start": { - "line": 333, - "column": 9 + "line": 320, + "column": 4 }, "end": { - "line": 333, - "column": 22 + "line": 320, + "column": 23 } } }, - "prefix": true, - "range": [ - 10730, - 10744 - ], - "loc": { - "start": { - "line": 333, - "column": 8 - }, - "end": { - "line": 333, - "column": 22 - } - } - }, - "consequent": { - "type": "BlockStatement", - "body": [ + "arguments": [ { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "ThisExpression", - "range": [ - 10754, - 10758 - ], - "loc": { - "start": { - "line": 334, - "column": 6 + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 10620, + 10624 + ], + "loc": { + "start": { + "line": 321, + "column": 6 + }, + "end": { + "line": 321, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "_options", + "range": [ + 10625, + 10633 + ], + "loc": { + "start": { + "line": 321, + "column": 11 + }, + "end": { + "line": 321, + "column": 19 + } + } + }, + "range": [ + 10620, + 10633 + ], + "loc": { + "start": { + "line": 321, + "column": 6 + }, + "end": { + "line": 321, + "column": 19 + } + } }, - "end": { - "line": 334, - "column": 10 + "property": { + "type": "Identifier", + "name": "centerAds", + "range": [ + 10634, + 10643 + ], + "loc": { + "start": { + "line": 321, + "column": 20 + }, + "end": { + "line": 321, + "column": 29 + } + } + }, + "range": [ + 10620, + 10643 + ], + "loc": { + "start": { + "line": 321, + "column": 6 + }, + "end": { + "line": 321, + "column": 29 + } } - } - }, - "property": { - "type": "Identifier", - "name": "_options", + }, + "right": { + "type": "Identifier", + "name": "centerAds", + "range": [ + 10646, + 10655 + ], + "loc": { + "start": { + "line": 321, + "column": 32 + }, + "end": { + "line": 321, + "column": 41 + } + } + }, "range": [ - 10759, - 10767 + 10620, + 10655 ], "loc": { "start": { - "line": 334, - "column": 11 + "line": 321, + "column": 6 }, "end": { - "line": 334, - "column": 19 + "line": 321, + "column": 41 } } }, "range": [ - 10754, - 10767 + 10620, + 10656 ], "loc": { "start": { - "line": 334, + "line": 321, "column": 6 }, "end": { - "line": 334, - "column": 19 - } - } - }, - "property": { - "type": "Identifier", - "name": "centerAds", - "range": [ - 10768, - 10777 - ], - "loc": { - "start": { - "line": 334, - "column": 20 - }, - "end": { - "line": 334, - "column": 29 + "line": 321, + "column": 42 } } - }, - "range": [ - 10754, - 10777 - ], - "loc": { - "start": { - "line": 334, - "column": 6 - }, - "end": { - "line": 334, - "column": 29 - } - } - }, - "right": { - "type": "Identifier", - "name": "centerAds", - "range": [ - 10780, - 10789 - ], - "loc": { - "start": { - "line": 334, - "column": 32 - }, - "end": { - "line": 334, - "column": 41 - } } - }, + ], "range": [ - 10754, - 10789 + 10612, + 10662 ], "loc": { "start": { - "line": 334, - "column": 6 + "line": 320, + "column": 30 }, "end": { - "line": 334, - "column": 41 + "line": 322, + "column": 5 } } }, + "generator": false, + "expression": false, "range": [ - 10754, - 10790 + 10606, + 10662 ], "loc": { "start": { - "line": 334, - "column": 6 + "line": 320, + "column": 24 }, "end": { - "line": 334, - "column": 42 + "line": 322, + "column": 5 } } } ], "range": [ - 10746, - 10796 + 10586, + 10663 ], "loc": { "start": { - "line": 333, - "column": 24 + "line": 320, + "column": 4 }, "end": { - "line": 335, - "column": 5 + "line": 322, + "column": 6 } } }, - "alternate": null, "range": [ - 10726, - 10796 + 10586, + 10664 ], "loc": { "start": { - "line": 333, + "line": 320, "column": 4 }, "end": { - "line": 335, - "column": 5 + "line": 322, + "column": 7 } } } ], "range": [ - 10720, - 10800 + 10580, + 10668 ], "loc": { "start": { - "line": 332, + "line": 319, "column": 26 }, "end": { - "line": 336, + "line": 323, "column": 3 } } @@ -10430,16 +10178,16 @@ "generator": false, "expression": false, "range": [ - 10708, - 10800 + 10568, + 10668 ], "loc": { "start": { - "line": 332, + "line": 319, "column": 14 }, "end": { - "line": 336, + "line": 323, "column": 3 } } @@ -10447,16 +10195,16 @@ "kind": "method", "computed": false, "range": [ - 10696, - 10800 + 10556, + 10668 ], "loc": { "start": { - "line": 332, + "line": 319, "column": 2 }, "end": { - "line": 336, + "line": 323, "column": 3 } }, @@ -10465,16 +10213,16 @@ "type": "Block", "value": "*\n * Enables/disables centering of ads. This mode must be set before the service\n * is enabled. Centering is disabled by default.\n *\n * @param {boolean} centerAds true to center ads, false to left-align them.\n ", "range": [ - 10469, - 10693 + 10329, + 10553 ], "loc": { "start": { - "line": 326, + "line": 313, "column": 2 }, "end": { - "line": 331, + "line": 318, "column": 5 } } @@ -10485,16 +10233,16 @@ "type": "Block", "value": "*\n * Sets cookie options for GPT on the page.\n *\n * @param {number} options The cookie options to set. Set the options parameter\n * to the integer value 1 to ignore cookies, and to 0 to use cookies.\n * @returns {PubAdsService} The service object on which the method was called.\n ", "range": [ - 10804, - 11099 + 10672, + 10967 ], "loc": { "start": { - "line": 338, + "line": 325, "column": 2 }, "end": { - "line": 344, + "line": 331, "column": 5 } } @@ -10508,16 +10256,16 @@ "type": "Identifier", "name": "setCookieOptions", "range": [ - 11102, - 11118 + 10970, + 10986 ], "loc": { "start": { - "line": 345, + "line": 332, "column": 2 }, "end": { - "line": 345, + "line": 332, "column": 18 } } @@ -10530,16 +10278,16 @@ "type": "Identifier", "name": "options", "range": [ - 11119, - 11126 + 10987, + 10994 ], "loc": { "start": { - "line": 345, + "line": 332, "column": 19 }, "end": { - "line": 345, + "line": 332, "column": 26 } } @@ -10562,16 +10310,16 @@ "object": { "type": "ThisExpression", "range": [ - 11134, - 11138 + 11002, + 11006 ], "loc": { "start": { - "line": 346, + "line": 333, "column": 4 }, "end": { - "line": 346, + "line": 333, "column": 8 } } @@ -10580,31 +10328,31 @@ "type": "Identifier", "name": "_options", "range": [ - 11139, - 11147 + 11007, + 11015 ], "loc": { "start": { - "line": 346, + "line": 333, "column": 9 }, "end": { - "line": 346, + "line": 333, "column": 17 } } }, "range": [ - 11134, - 11147 + 11002, + 11015 ], "loc": { "start": { - "line": 346, + "line": 333, "column": 4 }, "end": { - "line": 346, + "line": 333, "column": 17 } } @@ -10613,31 +10361,31 @@ "type": "Identifier", "name": "cookieOptions", "range": [ - 11148, - 11161 + 11016, + 11029 ], "loc": { "start": { - "line": 346, + "line": 333, "column": 18 }, "end": { - "line": 346, + "line": 333, "column": 31 } } }, "range": [ - 11134, - 11161 + 11002, + 11029 ], "loc": { "start": { - "line": 346, + "line": 333, "column": 4 }, "end": { - "line": 346, + "line": 333, "column": 31 } } @@ -10646,46 +10394,46 @@ "type": "Identifier", "name": "options", "range": [ - 11164, - 11171 + 11032, + 11039 ], "loc": { "start": { - "line": 346, + "line": 333, "column": 34 }, "end": { - "line": 346, + "line": 333, "column": 41 } } }, "range": [ - 11134, - 11171 + 11002, + 11039 ], "loc": { "start": { - "line": 346, + "line": 333, "column": 4 }, "end": { - "line": 346, + "line": 333, "column": 41 } } }, "range": [ - 11134, - 11172 + 11002, + 11040 ], "loc": { "start": { - "line": 346, + "line": 333, "column": 4 }, "end": { - "line": 346, + "line": 333, "column": 42 } } @@ -10695,47 +10443,47 @@ "argument": { "type": "ThisExpression", "range": [ - 11184, - 11188 + 11052, + 11056 ], "loc": { "start": { - "line": 347, + "line": 334, "column": 11 }, "end": { - "line": 347, + "line": 334, "column": 15 } } }, "range": [ - 11177, - 11189 + 11045, + 11057 ], "loc": { "start": { - "line": 347, + "line": 334, "column": 4 }, "end": { - "line": 347, + "line": 334, "column": 16 } } } ], "range": [ - 11128, - 11193 + 10996, + 11061 ], "loc": { "start": { - "line": 345, + "line": 332, "column": 28 }, "end": { - "line": 348, + "line": 335, "column": 3 } } @@ -10743,16 +10491,16 @@ "generator": false, "expression": false, "range": [ - 11118, - 11193 + 10986, + 11061 ], "loc": { "start": { - "line": 345, + "line": 332, "column": 18 }, "end": { - "line": 348, + "line": 335, "column": 3 } } @@ -10760,16 +10508,16 @@ "kind": "method", "computed": false, "range": [ - 11102, - 11193 + 10970, + 11061 ], "loc": { "start": { - "line": 345, + "line": 332, "column": 2 }, "end": { - "line": 348, + "line": 335, "column": 3 } }, @@ -10778,16 +10526,16 @@ "type": "Block", "value": "*\n * Sets cookie options for GPT on the page.\n *\n * @param {number} options The cookie options to set. Set the options parameter\n * to the integer value 1 to ignore cookies, and to 0 to use cookies.\n * @returns {PubAdsService} The service object on which the method was called.\n ", "range": [ - 10804, - 11099 + 10672, + 10967 ], "loc": { "start": { - "line": 338, + "line": 325, "column": 2 }, "end": { - "line": 344, + "line": 331, "column": 5 } } @@ -10798,16 +10546,16 @@ "type": "Block", "value": "*\n * Configures whether all ads on the page should be forced to be rendered using\n * a SafeFrame container.\n *\n * @param {boolean} forceSafeFrame true to force all ads on the page to be\n * rendered in SafeFrames and false to change the previous setting to false.\n * Setting this to false when unspecified earlier, won't change anything.\n * @returns {PubAdsService} The service object on which the function was called.\n ", "range": [ - 11197, - 11636 + 11065, + 11504 ], "loc": { "start": { - "line": 350, + "line": 337, "column": 2 }, "end": { - "line": 358, + "line": 345, "column": 5 } } @@ -10821,16 +10569,16 @@ "type": "Identifier", "name": "setForceSafeFrame", "range": [ - 11639, - 11656 + 11507, + 11524 ], "loc": { "start": { - "line": 359, + "line": 346, "column": 2 }, "end": { - "line": 359, + "line": 346, "column": 19 } } @@ -10843,16 +10591,16 @@ "type": "Identifier", "name": "forceSafeFrame", "range": [ - 11657, - 11671 + 11525, + 11539 ], "loc": { "start": { - "line": 359, + "line": 346, "column": 20 }, "end": { - "line": 359, + "line": 346, "column": 34 } } @@ -10875,16 +10623,16 @@ "object": { "type": "ThisExpression", "range": [ - 11679, - 11683 + 11547, + 11551 ], "loc": { "start": { - "line": 360, + "line": 347, "column": 4 }, "end": { - "line": 360, + "line": 347, "column": 8 } } @@ -10893,31 +10641,31 @@ "type": "Identifier", "name": "_options", "range": [ - 11684, - 11692 + 11552, + 11560 ], "loc": { "start": { - "line": 360, + "line": 347, "column": 9 }, "end": { - "line": 360, + "line": 347, "column": 17 } } }, "range": [ - 11679, - 11692 + 11547, + 11560 ], "loc": { "start": { - "line": 360, + "line": 347, "column": 4 }, "end": { - "line": 360, + "line": 347, "column": 17 } } @@ -10926,31 +10674,31 @@ "type": "Identifier", "name": "forceSafeFrame", "range": [ - 11693, - 11707 + 11561, + 11575 ], "loc": { "start": { - "line": 360, + "line": 347, "column": 18 }, "end": { - "line": 360, + "line": 347, "column": 32 } } }, "range": [ - 11679, - 11707 + 11547, + 11575 ], "loc": { "start": { - "line": 360, + "line": 347, "column": 4 }, "end": { - "line": 360, + "line": 347, "column": 32 } } @@ -10959,46 +10707,46 @@ "type": "Identifier", "name": "forceSafeFrame", "range": [ - 11710, - 11724 + 11578, + 11592 ], "loc": { "start": { - "line": 360, + "line": 347, "column": 35 }, "end": { - "line": 360, + "line": 347, "column": 49 } } }, "range": [ - 11679, - 11724 + 11547, + 11592 ], "loc": { "start": { - "line": 360, + "line": 347, "column": 4 }, "end": { - "line": 360, + "line": 347, "column": 49 } } }, "range": [ - 11679, - 11725 + 11547, + 11593 ], "loc": { "start": { - "line": 360, + "line": 347, "column": 4 }, "end": { - "line": 360, + "line": 347, "column": 50 } } @@ -11008,47 +10756,47 @@ "argument": { "type": "ThisExpression", "range": [ - 11737, - 11741 + 11605, + 11609 ], "loc": { "start": { - "line": 361, + "line": 348, "column": 11 }, "end": { - "line": 361, + "line": 348, "column": 15 } } }, "range": [ - 11730, - 11742 + 11598, + 11610 ], "loc": { "start": { - "line": 361, + "line": 348, "column": 4 }, "end": { - "line": 361, + "line": 348, "column": 16 } } } ], "range": [ - 11673, - 11746 + 11541, + 11614 ], "loc": { "start": { - "line": 359, + "line": 346, "column": 36 }, "end": { - "line": 362, + "line": 349, "column": 3 } } @@ -11056,16 +10804,16 @@ "generator": false, "expression": false, "range": [ - 11656, - 11746 + 11524, + 11614 ], "loc": { "start": { - "line": 359, + "line": 346, "column": 19 }, "end": { - "line": 362, + "line": 349, "column": 3 } } @@ -11073,16 +10821,16 @@ "kind": "method", "computed": false, "range": [ - 11639, - 11746 + 11507, + 11614 ], "loc": { "start": { - "line": 359, + "line": 346, "column": 2 }, "end": { - "line": 362, + "line": 349, "column": 3 } }, @@ -11091,16 +10839,16 @@ "type": "Block", "value": "*\n * Configures whether all ads on the page should be forced to be rendered using\n * a SafeFrame container.\n *\n * @param {boolean} forceSafeFrame true to force all ads on the page to be\n * rendered in SafeFrames and false to change the previous setting to false.\n * Setting this to false when unspecified earlier, won't change anything.\n * @returns {PubAdsService} The service object on which the function was called.\n ", "range": [ - 11197, - 11636 + 11065, + 11504 ], "loc": { "start": { - "line": 350, + "line": 337, "column": 2 }, "end": { - "line": 358, + "line": 345, "column": 5 } } @@ -11111,16 +10859,16 @@ "type": "Block", "value": "*\n * Passes location information from websites so you can geo-target line items\n * to specific locations. {@link DFP} will not use location data unless this feature\n * has been enabled for your network.\n *\n * @param {string|number} latitudeOrAddress Latitude or freeform address.\n * @param {number} [optLongitude] The longitude (if a latitude was provided as first argument).\n * @param {number} [optRadius] The radius in millimeters. Will be rounded to closest integer.\n * Only used when passing the latitude and longitude.\n * @returns {PubAdsService} The service object on which the method was called.\n ", "range": [ - 11750, - 12378 + 11618, + 12246 ], "loc": { "start": { - "line": 364, + "line": 351, "column": 2 }, "end": { - "line": 374, + "line": 361, "column": 5 } } @@ -11134,16 +10882,16 @@ "type": "Identifier", "name": "setLocation", "range": [ - 12381, - 12392 + 12249, + 12260 ], "loc": { "start": { - "line": 375, + "line": 362, "column": 2 }, "end": { - "line": 375, + "line": 362, "column": 13 } } @@ -11156,16 +10904,16 @@ "type": "Identifier", "name": "latitudeOrAddress", "range": [ - 12393, - 12410 + 12261, + 12278 ], "loc": { "start": { - "line": 375, + "line": 362, "column": 14 }, "end": { - "line": 375, + "line": 362, "column": 31 } } @@ -11174,16 +10922,16 @@ "type": "Identifier", "name": "optLongitude", "range": [ - 12412, - 12424 + 12280, + 12292 ], "loc": { "start": { - "line": 375, + "line": 362, "column": 33 }, "end": { - "line": 375, + "line": 362, "column": 45 } } @@ -11192,16 +10940,16 @@ "type": "Identifier", "name": "optRadius", "range": [ - 12426, - 12435 + 12294, + 12303 ], "loc": { "start": { - "line": 375, + "line": 362, "column": 47 }, "end": { - "line": 375, + "line": 362, "column": 56 } } @@ -11222,32 +10970,32 @@ "type": "Identifier", "name": "latitudeOrAddress", "range": [ - 12454, - 12471 + 12322, + 12339 ], "loc": { "start": { - "line": 376, + "line": 363, "column": 15 }, "end": { - "line": 376, + "line": 363, "column": 32 } } }, "prefix": true, "range": [ - 12447, - 12471 + 12315, + 12339 ], "loc": { "start": { - "line": 376, + "line": 363, "column": 8 }, "end": { - "line": 376, + "line": 363, "column": 32 } } @@ -11257,31 +11005,31 @@ "value": "number", "raw": "'number'", "range": [ - 12476, - 12484 + 12344, + 12352 ], "loc": { "start": { - "line": 376, + "line": 363, "column": 37 }, "end": { - "line": 376, + "line": 363, "column": 45 } } }, "range": [ - 12447, - 12484 + 12315, + 12352 ], "loc": { "start": { - "line": 376, + "line": 363, "column": 8 }, "end": { - "line": 376, + "line": 363, "column": 45 } } @@ -11303,16 +11051,16 @@ "object": { "type": "ThisExpression", "range": [ - 12494, - 12498 + 12362, + 12366 ], "loc": { "start": { - "line": 377, + "line": 364, "column": 6 }, "end": { - "line": 377, + "line": 364, "column": 10 } } @@ -11321,31 +11069,31 @@ "type": "Identifier", "name": "_options", "range": [ - 12499, - 12507 + 12367, + 12375 ], "loc": { "start": { - "line": 377, + "line": 364, "column": 11 }, "end": { - "line": 377, + "line": 364, "column": 19 } } }, "range": [ - 12494, - 12507 + 12362, + 12375 ], "loc": { "start": { - "line": 377, + "line": 364, "column": 6 }, "end": { - "line": 377, + "line": 364, "column": 19 } } @@ -11354,31 +11102,31 @@ "type": "Identifier", "name": "latitude", "range": [ - 12508, - 12516 + 12376, + 12384 ], "loc": { "start": { - "line": 377, + "line": 364, "column": 20 }, "end": { - "line": 377, + "line": 364, "column": 28 } } }, "range": [ - 12494, - 12516 + 12362, + 12384 ], "loc": { "start": { - "line": 377, + "line": 364, "column": 6 }, "end": { - "line": 377, + "line": 364, "column": 28 } } @@ -11390,16 +11138,16 @@ "type": "Identifier", "name": "latitudeOrAddress", "range": [ - 12519, - 12536 + 12387, + 12404 ], "loc": { "start": { - "line": 377, + "line": 364, "column": 31 }, "end": { - "line": 377, + "line": 364, "column": 48 } } @@ -11409,61 +11157,61 @@ "value": null, "raw": "null", "range": [ - 12540, - 12544 + 12408, + 12412 ], "loc": { "start": { - "line": 377, + "line": 364, "column": 52 }, "end": { - "line": 377, + "line": 364, "column": 56 } } }, "range": [ - 12519, - 12544 + 12387, + 12412 ], "loc": { "start": { - "line": 377, + "line": 364, "column": 31 }, "end": { - "line": 377, + "line": 364, "column": 56 } } }, "range": [ - 12494, - 12544 + 12362, + 12412 ], "loc": { "start": { - "line": 377, + "line": 364, "column": 6 }, "end": { - "line": 377, + "line": 364, "column": 56 } } }, "range": [ - 12494, - 12545 + 12362, + 12413 ], "loc": { "start": { - "line": 377, + "line": 364, "column": 6 }, "end": { - "line": 377, + "line": 364, "column": 57 } } @@ -11482,16 +11230,16 @@ "object": { "type": "ThisExpression", "range": [ - 12552, - 12556 + 12420, + 12424 ], "loc": { "start": { - "line": 378, + "line": 365, "column": 6 }, "end": { - "line": 378, + "line": 365, "column": 10 } } @@ -11500,31 +11248,31 @@ "type": "Identifier", "name": "_options", "range": [ - 12557, - 12565 + 12425, + 12433 ], "loc": { "start": { - "line": 378, + "line": 365, "column": 11 }, "end": { - "line": 378, + "line": 365, "column": 19 } } }, "range": [ - 12552, - 12565 + 12420, + 12433 ], "loc": { "start": { - "line": 378, + "line": 365, "column": 6 }, "end": { - "line": 378, + "line": 365, "column": 19 } } @@ -11533,31 +11281,31 @@ "type": "Identifier", "name": "longitude", "range": [ - 12566, - 12575 + 12434, + 12443 ], "loc": { "start": { - "line": 378, + "line": 365, "column": 20 }, "end": { - "line": 378, + "line": 365, "column": 29 } } }, "range": [ - 12552, - 12575 + 12420, + 12443 ], "loc": { "start": { - "line": 378, + "line": 365, "column": 6 }, "end": { - "line": 378, + "line": 365, "column": 29 } } @@ -11569,16 +11317,16 @@ "type": "Identifier", "name": "optLongitude", "range": [ - 12578, - 12590 + 12446, + 12458 ], "loc": { "start": { - "line": 378, + "line": 365, "column": 32 }, "end": { - "line": 378, + "line": 365, "column": 44 } } @@ -11588,61 +11336,61 @@ "value": null, "raw": "null", "range": [ - 12594, - 12598 + 12462, + 12466 ], "loc": { "start": { - "line": 378, + "line": 365, "column": 48 }, "end": { - "line": 378, + "line": 365, "column": 52 } } }, "range": [ - 12578, - 12598 + 12446, + 12466 ], "loc": { "start": { - "line": 378, + "line": 365, "column": 32 }, "end": { - "line": 378, + "line": 365, "column": 52 } } }, "range": [ - 12552, - 12598 + 12420, + 12466 ], "loc": { "start": { - "line": 378, + "line": 365, "column": 6 }, "end": { - "line": 378, + "line": 365, "column": 52 } } }, "range": [ - 12552, - 12599 + 12420, + 12467 ], "loc": { "start": { - "line": 378, + "line": 365, "column": 6 }, "end": { - "line": 378, + "line": 365, "column": 53 } } @@ -11661,16 +11409,16 @@ "object": { "type": "ThisExpression", "range": [ - 12606, - 12610 + 12474, + 12478 ], "loc": { "start": { - "line": 379, + "line": 366, "column": 6 }, "end": { - "line": 379, + "line": 366, "column": 10 } } @@ -11679,31 +11427,31 @@ "type": "Identifier", "name": "_options", "range": [ - 12611, - 12619 + 12479, + 12487 ], "loc": { "start": { - "line": 379, + "line": 366, "column": 11 }, "end": { - "line": 379, + "line": 366, "column": 19 } } }, "range": [ - 12606, - 12619 + 12474, + 12487 ], "loc": { "start": { - "line": 379, + "line": 366, "column": 6 }, "end": { - "line": 379, + "line": 366, "column": 19 } } @@ -11712,31 +11460,31 @@ "type": "Identifier", "name": "radius", "range": [ - 12620, - 12626 + 12488, + 12494 ], "loc": { "start": { - "line": 379, + "line": 366, "column": 20 }, "end": { - "line": 379, + "line": 366, "column": 26 } } }, "range": [ - 12606, - 12626 + 12474, + 12494 ], "loc": { "start": { - "line": 379, + "line": 366, "column": 6 }, "end": { - "line": 379, + "line": 366, "column": 26 } } @@ -11748,16 +11496,16 @@ "type": "Identifier", "name": "optRadius", "range": [ - 12629, - 12638 + 12497, + 12506 ], "loc": { "start": { - "line": 379, + "line": 366, "column": 29 }, "end": { - "line": 379, + "line": 366, "column": 38 } } @@ -11767,61 +11515,61 @@ "value": null, "raw": "null", "range": [ - 12642, - 12646 + 12510, + 12514 ], "loc": { "start": { - "line": 379, + "line": 366, "column": 42 }, "end": { - "line": 379, + "line": 366, "column": 46 } } }, "range": [ - 12629, - 12646 + 12497, + 12514 ], "loc": { "start": { - "line": 379, + "line": 366, "column": 29 }, "end": { - "line": 379, + "line": 366, "column": 46 } } }, "range": [ - 12606, - 12646 + 12474, + 12514 ], "loc": { "start": { - "line": 379, + "line": 366, "column": 6 }, "end": { - "line": 379, + "line": 366, "column": 46 } } }, "range": [ - 12606, - 12647 + 12474, + 12515 ], "loc": { "start": { - "line": 379, + "line": 366, "column": 6 }, "end": { - "line": 379, + "line": 366, "column": 47 } } @@ -11840,16 +11588,16 @@ "object": { "type": "ThisExpression", "range": [ - 12654, - 12658 + 12522, + 12526 ], "loc": { "start": { - "line": 380, + "line": 367, "column": 6 }, "end": { - "line": 380, + "line": 367, "column": 10 } } @@ -11858,31 +11606,31 @@ "type": "Identifier", "name": "_options", "range": [ - 12659, - 12667 + 12527, + 12535 ], "loc": { "start": { - "line": 380, + "line": 367, "column": 11 }, "end": { - "line": 380, + "line": 367, "column": 19 } } }, "range": [ - 12654, - 12667 + 12522, + 12535 ], "loc": { "start": { - "line": 380, + "line": 367, "column": 6 }, "end": { - "line": 380, + "line": 367, "column": 19 } } @@ -11891,31 +11639,31 @@ "type": "Identifier", "name": "address", "range": [ - 12668, - 12675 + 12536, + 12543 ], "loc": { "start": { - "line": 380, + "line": 367, "column": 20 }, "end": { - "line": 380, + "line": 367, "column": 27 } } }, "range": [ - 12654, - 12675 + 12522, + 12543 ], "loc": { "start": { - "line": 380, + "line": 367, "column": 6 }, "end": { - "line": 380, + "line": 367, "column": 27 } } @@ -11925,62 +11673,62 @@ "value": null, "raw": "null", "range": [ - 12678, - 12682 + 12546, + 12550 ], "loc": { "start": { - "line": 380, + "line": 367, "column": 30 }, "end": { - "line": 380, + "line": 367, "column": 34 } } }, "range": [ - 12654, - 12682 + 12522, + 12550 ], "loc": { "start": { - "line": 380, + "line": 367, "column": 6 }, "end": { - "line": 380, + "line": 367, "column": 34 } } }, "range": [ - 12654, - 12683 + 12522, + 12551 ], "loc": { "start": { - "line": 380, + "line": 367, "column": 6 }, "end": { - "line": 380, + "line": 367, "column": 35 } } } ], "range": [ - 12486, - 12689 + 12354, + 12557 ], "loc": { "start": { - "line": 376, + "line": 363, "column": 47 }, "end": { - "line": 381, + "line": 368, "column": 5 } } @@ -12002,16 +11750,16 @@ "object": { "type": "ThisExpression", "range": [ - 12703, - 12707 + 12571, + 12575 ], "loc": { "start": { - "line": 382, + "line": 369, "column": 6 }, "end": { - "line": 382, + "line": 369, "column": 10 } } @@ -12020,31 +11768,31 @@ "type": "Identifier", "name": "_options", "range": [ - 12708, - 12716 + 12576, + 12584 ], "loc": { "start": { - "line": 382, + "line": 369, "column": 11 }, "end": { - "line": 382, + "line": 369, "column": 19 } } }, "range": [ - 12703, - 12716 + 12571, + 12584 ], "loc": { "start": { - "line": 382, + "line": 369, "column": 6 }, "end": { - "line": 382, + "line": 369, "column": 19 } } @@ -12053,31 +11801,31 @@ "type": "Identifier", "name": "address", "range": [ - 12717, - 12724 + 12585, + 12592 ], "loc": { "start": { - "line": 382, + "line": 369, "column": 20 }, "end": { - "line": 382, + "line": 369, "column": 27 } } }, "range": [ - 12703, - 12724 + 12571, + 12592 ], "loc": { "start": { - "line": 382, + "line": 369, "column": 6 }, "end": { - "line": 382, + "line": 369, "column": 27 } } @@ -12086,46 +11834,46 @@ "type": "Identifier", "name": "latitudeOrAddress", "range": [ - 12727, - 12744 + 12595, + 12612 ], "loc": { "start": { - "line": 382, + "line": 369, "column": 30 }, "end": { - "line": 382, + "line": 369, "column": 47 } } }, "range": [ - 12703, - 12744 + 12571, + 12612 ], "loc": { "start": { - "line": 382, + "line": 369, "column": 6 }, "end": { - "line": 382, + "line": 369, "column": 47 } } }, "range": [ - 12703, - 12745 + 12571, + 12613 ], "loc": { "start": { - "line": 382, + "line": 369, "column": 6 }, "end": { - "line": 382, + "line": 369, "column": 48 } } @@ -12144,16 +11892,16 @@ "object": { "type": "ThisExpression", "range": [ - 12752, - 12756 + 12620, + 12624 ], "loc": { "start": { - "line": 383, + "line": 370, "column": 6 }, "end": { - "line": 383, + "line": 370, "column": 10 } } @@ -12162,31 +11910,31 @@ "type": "Identifier", "name": "_options", "range": [ - 12757, - 12765 + 12625, + 12633 ], "loc": { "start": { - "line": 383, + "line": 370, "column": 11 }, "end": { - "line": 383, + "line": 370, "column": 19 } } }, "range": [ - 12752, - 12765 + 12620, + 12633 ], "loc": { "start": { - "line": 383, + "line": 370, "column": 6 }, "end": { - "line": 383, + "line": 370, "column": 19 } } @@ -12195,31 +11943,31 @@ "type": "Identifier", "name": "latitude", "range": [ - 12766, - 12774 + 12634, + 12642 ], "loc": { "start": { - "line": 383, + "line": 370, "column": 20 }, "end": { - "line": 383, + "line": 370, "column": 28 } } }, "range": [ - 12752, - 12774 + 12620, + 12642 ], "loc": { "start": { - "line": 383, + "line": 370, "column": 6 }, "end": { - "line": 383, + "line": 370, "column": 28 } } @@ -12229,46 +11977,46 @@ "value": null, "raw": "null", "range": [ - 12777, - 12781 + 12645, + 12649 ], "loc": { "start": { - "line": 383, + "line": 370, "column": 31 }, "end": { - "line": 383, + "line": 370, "column": 35 } } }, "range": [ - 12752, - 12781 + 12620, + 12649 ], "loc": { "start": { - "line": 383, + "line": 370, "column": 6 }, "end": { - "line": 383, + "line": 370, "column": 35 } } }, "range": [ - 12752, - 12782 + 12620, + 12650 ], "loc": { "start": { - "line": 383, + "line": 370, "column": 6 }, "end": { - "line": 383, + "line": 370, "column": 36 } } @@ -12287,16 +12035,16 @@ "object": { "type": "ThisExpression", "range": [ - 12789, - 12793 + 12657, + 12661 ], "loc": { "start": { - "line": 384, + "line": 371, "column": 6 }, "end": { - "line": 384, + "line": 371, "column": 10 } } @@ -12305,31 +12053,31 @@ "type": "Identifier", "name": "_options", "range": [ - 12794, - 12802 + 12662, + 12670 ], "loc": { "start": { - "line": 384, + "line": 371, "column": 11 }, "end": { - "line": 384, + "line": 371, "column": 19 } } }, "range": [ - 12789, - 12802 + 12657, + 12670 ], "loc": { "start": { - "line": 384, + "line": 371, "column": 6 }, "end": { - "line": 384, + "line": 371, "column": 19 } } @@ -12338,31 +12086,31 @@ "type": "Identifier", "name": "longitude", "range": [ - 12803, - 12812 + 12671, + 12680 ], "loc": { "start": { - "line": 384, + "line": 371, "column": 20 }, "end": { - "line": 384, + "line": 371, "column": 29 } } }, "range": [ - 12789, - 12812 + 12657, + 12680 ], "loc": { "start": { - "line": 384, + "line": 371, "column": 6 }, "end": { - "line": 384, + "line": 371, "column": 29 } } @@ -12372,46 +12120,46 @@ "value": null, "raw": "null", "range": [ - 12815, - 12819 + 12683, + 12687 ], "loc": { "start": { - "line": 384, + "line": 371, "column": 32 }, "end": { - "line": 384, + "line": 371, "column": 36 } } }, "range": [ - 12789, - 12819 + 12657, + 12687 ], "loc": { "start": { - "line": 384, + "line": 371, "column": 6 }, "end": { - "line": 384, + "line": 371, "column": 36 } } }, "range": [ - 12789, - 12820 + 12657, + 12688 ], "loc": { "start": { - "line": 384, + "line": 371, "column": 6 }, "end": { - "line": 384, + "line": 371, "column": 37 } } @@ -12430,16 +12178,16 @@ "object": { "type": "ThisExpression", "range": [ - 12827, - 12831 + 12695, + 12699 ], "loc": { "start": { - "line": 385, + "line": 372, "column": 6 }, "end": { - "line": 385, + "line": 372, "column": 10 } } @@ -12448,31 +12196,31 @@ "type": "Identifier", "name": "_options", "range": [ - 12832, - 12840 + 12700, + 12708 ], "loc": { "start": { - "line": 385, + "line": 372, "column": 11 }, "end": { - "line": 385, + "line": 372, "column": 19 } } }, "range": [ - 12827, - 12840 + 12695, + 12708 ], "loc": { "start": { - "line": 385, + "line": 372, "column": 6 }, "end": { - "line": 385, + "line": 372, "column": 19 } } @@ -12481,31 +12229,31 @@ "type": "Identifier", "name": "radius", "range": [ - 12841, - 12847 + 12709, + 12715 ], "loc": { "start": { - "line": 385, + "line": 372, "column": 20 }, "end": { - "line": 385, + "line": 372, "column": 26 } } }, "range": [ - 12827, - 12847 + 12695, + 12715 ], "loc": { "start": { - "line": 385, + "line": 372, "column": 6 }, "end": { - "line": 385, + "line": 372, "column": 26 } } @@ -12515,77 +12263,77 @@ "value": null, "raw": "null", "range": [ - 12850, - 12854 + 12718, + 12722 ], "loc": { "start": { - "line": 385, + "line": 372, "column": 29 }, "end": { - "line": 385, + "line": 372, "column": 33 } } }, "range": [ - 12827, - 12854 + 12695, + 12722 ], "loc": { "start": { - "line": 385, + "line": 372, "column": 6 }, "end": { - "line": 385, + "line": 372, "column": 33 } } }, "range": [ - 12827, - 12855 + 12695, + 12723 ], "loc": { "start": { - "line": 385, + "line": 372, "column": 6 }, "end": { - "line": 385, + "line": 372, "column": 34 } } } ], "range": [ - 12695, - 12861 + 12563, + 12729 ], "loc": { "start": { - "line": 381, + "line": 368, "column": 11 }, "end": { - "line": 386, + "line": 373, "column": 5 } } }, "range": [ - 12443, - 12861 + 12311, + 12729 ], "loc": { "start": { - "line": 376, + "line": 363, "column": 4 }, "end": { - "line": 386, + "line": 373, "column": 5 } } @@ -12595,47 +12343,47 @@ "argument": { "type": "ThisExpression", "range": [ - 12873, - 12877 + 12741, + 12745 ], "loc": { "start": { - "line": 387, + "line": 374, "column": 11 }, "end": { - "line": 387, + "line": 374, "column": 15 } } }, "range": [ - 12866, - 12878 + 12734, + 12746 ], "loc": { "start": { - "line": 387, + "line": 374, "column": 4 }, "end": { - "line": 387, + "line": 374, "column": 16 } } } ], "range": [ - 12437, - 12882 + 12305, + 12750 ], "loc": { "start": { - "line": 375, + "line": 362, "column": 58 }, "end": { - "line": 388, + "line": 375, "column": 3 } } @@ -12643,16 +12391,16 @@ "generator": false, "expression": false, "range": [ - 12392, - 12882 + 12260, + 12750 ], "loc": { "start": { - "line": 375, + "line": 362, "column": 13 }, "end": { - "line": 388, + "line": 375, "column": 3 } } @@ -12660,16 +12408,16 @@ "kind": "method", "computed": false, "range": [ - 12381, - 12882 + 12249, + 12750 ], "loc": { "start": { - "line": 375, + "line": 362, "column": 2 }, "end": { - "line": 388, + "line": 375, "column": 3 } }, @@ -12678,16 +12426,16 @@ "type": "Block", "value": "*\n * Passes location information from websites so you can geo-target line items\n * to specific locations. {@link DFP} will not use location data unless this feature\n * has been enabled for your network.\n *\n * @param {string|number} latitudeOrAddress Latitude or freeform address.\n * @param {number} [optLongitude] The longitude (if a latitude was provided as first argument).\n * @param {number} [optRadius] The radius in millimeters. Will be rounded to closest integer.\n * Only used when passing the latitude and longitude.\n * @returns {PubAdsService} The service object on which the method was called.\n ", "range": [ - 11750, - 12378 + 11618, + 12246 ], "loc": { "start": { - "line": 364, + "line": 351, "column": 2 }, "end": { - "line": 374, + "line": 361, "column": 5 } } @@ -12698,16 +12446,16 @@ "type": "Block", "value": "*\n * Sets the value for the publisher-provided ID.\n *\n * @param {string} ppid An alphanumeric ID provided by the publisher with a\n * recommended maximum of 150 characters.\n * @returns {PubAdsService} The service object on which the method was called.\n ", "range": [ - 12886, - 13154 + 12754, + 13022 ], "loc": { "start": { - "line": 390, + "line": 377, "column": 2 }, "end": { - "line": 396, + "line": 383, "column": 5 } } @@ -12721,16 +12469,16 @@ "type": "Identifier", "name": "setPublisherProvidedId", "range": [ - 13157, - 13179 + 13025, + 13047 ], "loc": { "start": { - "line": 397, + "line": 384, "column": 2 }, "end": { - "line": 397, + "line": 384, "column": 24 } } @@ -12743,16 +12491,16 @@ "type": "Identifier", "name": "ppid", "range": [ - 13180, - 13184 + 13048, + 13052 ], "loc": { "start": { - "line": 397, + "line": 384, "column": 25 }, "end": { - "line": 397, + "line": 384, "column": 29 } } @@ -12775,16 +12523,16 @@ "object": { "type": "ThisExpression", "range": [ - 13192, - 13196 + 13060, + 13064 ], "loc": { "start": { - "line": 398, + "line": 385, "column": 4 }, "end": { - "line": 398, + "line": 385, "column": 8 } } @@ -12793,31 +12541,31 @@ "type": "Identifier", "name": "_options", "range": [ - 13197, - 13205 + 13065, + 13073 ], "loc": { "start": { - "line": 398, + "line": 385, "column": 9 }, "end": { - "line": 398, + "line": 385, "column": 17 } } }, "range": [ - 13192, - 13205 + 13060, + 13073 ], "loc": { "start": { - "line": 398, + "line": 385, "column": 4 }, "end": { - "line": 398, + "line": 385, "column": 17 } } @@ -12826,31 +12574,31 @@ "type": "Identifier", "name": "ppid", "range": [ - 13206, - 13210 + 13074, + 13078 ], "loc": { "start": { - "line": 398, + "line": 385, "column": 18 }, "end": { - "line": 398, + "line": 385, "column": 22 } } }, "range": [ - 13192, - 13210 + 13060, + 13078 ], "loc": { "start": { - "line": 398, + "line": 385, "column": 4 }, "end": { - "line": 398, + "line": 385, "column": 22 } } @@ -12859,46 +12607,46 @@ "type": "Identifier", "name": "ppid", "range": [ - 13213, - 13217 + 13081, + 13085 ], "loc": { "start": { - "line": 398, + "line": 385, "column": 25 }, "end": { - "line": 398, + "line": 385, "column": 29 } } }, "range": [ - 13192, - 13217 + 13060, + 13085 ], "loc": { "start": { - "line": 398, + "line": 385, "column": 4 }, "end": { - "line": 398, + "line": 385, "column": 29 } } }, "range": [ - 13192, - 13218 + 13060, + 13086 ], "loc": { "start": { - "line": 398, + "line": 385, "column": 4 }, "end": { - "line": 398, + "line": 385, "column": 30 } } @@ -12908,47 +12656,47 @@ "argument": { "type": "ThisExpression", "range": [ - 13230, - 13234 + 13098, + 13102 ], "loc": { "start": { - "line": 399, + "line": 386, "column": 11 }, "end": { - "line": 399, + "line": 386, "column": 15 } } }, "range": [ - 13223, - 13235 + 13091, + 13103 ], "loc": { "start": { - "line": 399, + "line": 386, "column": 4 }, "end": { - "line": 399, + "line": 386, "column": 16 } } } ], "range": [ - 13186, - 13239 + 13054, + 13107 ], "loc": { "start": { - "line": 397, + "line": 384, "column": 31 }, "end": { - "line": 400, + "line": 387, "column": 3 } } @@ -12956,16 +12704,16 @@ "generator": false, "expression": false, "range": [ - 13179, - 13239 + 13047, + 13107 ], "loc": { "start": { - "line": 397, + "line": 384, "column": 24 }, "end": { - "line": 400, + "line": 387, "column": 3 } } @@ -12973,16 +12721,16 @@ "kind": "method", "computed": false, "range": [ - 13157, - 13239 + 13025, + 13107 ], "loc": { "start": { - "line": 397, + "line": 384, "column": 2 }, "end": { - "line": 400, + "line": 387, "column": 3 } }, @@ -12991,16 +12739,16 @@ "type": "Block", "value": "*\n * Sets the value for the publisher-provided ID.\n *\n * @param {string} ppid An alphanumeric ID provided by the publisher with a\n * recommended maximum of 150 characters.\n * @returns {PubAdsService} The service object on which the method was called.\n ", "range": [ - 12886, - 13154 + 12754, + 13022 ], "loc": { "start": { - "line": 390, + "line": 377, "column": 2 }, "end": { - "line": 396, + "line": 383, "column": 5 } } @@ -13011,16 +12759,16 @@ "type": "Block", "value": "*\n * Sets the page-level preferences for SafeFrame configuration. Any\n * unrecognized keys in the config object will be ignored. The entire config\n * will be ignored if an invalid value is passed for a recognized key. These\n * page level preferences will be overriden by slot level preferences, if\n * specified.\n *\n * @param {SafeFrameConfig} config The configuration object.\n * @returns {PubAdsService} The service object on which the method was called.\n ", "range": [ - 13243, - 13721 + 13111, + 13589 ], "loc": { "start": { - "line": 402, + "line": 389, "column": 2 }, "end": { - "line": 411, + "line": 398, "column": 5 } } @@ -13034,16 +12782,16 @@ "type": "Identifier", "name": "setSafeFrameConfig", "range": [ - 13724, - 13742 + 13592, + 13610 ], "loc": { "start": { - "line": 412, + "line": 399, "column": 2 }, "end": { - "line": 412, + "line": 399, "column": 20 } } @@ -13056,16 +12804,16 @@ "type": "Identifier", "name": "config", "range": [ - 13743, - 13749 + 13611, + 13617 ], "loc": { "start": { - "line": 412, + "line": 399, "column": 21 }, "end": { - "line": 412, + "line": 399, "column": 27 } } @@ -13088,16 +12836,16 @@ "object": { "type": "ThisExpression", "range": [ - 13757, - 13761 + 13625, + 13629 ], "loc": { "start": { - "line": 413, + "line": 400, "column": 4 }, "end": { - "line": 413, + "line": 400, "column": 8 } } @@ -13106,31 +12854,31 @@ "type": "Identifier", "name": "_options", "range": [ - 13762, - 13770 + 13630, + 13638 ], "loc": { "start": { - "line": 413, + "line": 400, "column": 9 }, "end": { - "line": 413, + "line": 400, "column": 17 } } }, "range": [ - 13757, - 13770 + 13625, + 13638 ], "loc": { "start": { - "line": 413, + "line": 400, "column": 4 }, "end": { - "line": 413, + "line": 400, "column": 17 } } @@ -13139,31 +12887,31 @@ "type": "Identifier", "name": "safeFrameConfig", "range": [ - 13771, - 13786 + 13639, + 13654 ], "loc": { "start": { - "line": 413, + "line": 400, "column": 18 }, "end": { - "line": 413, + "line": 400, "column": 33 } } }, "range": [ - 13757, - 13786 + 13625, + 13654 ], "loc": { "start": { - "line": 413, + "line": 400, "column": 4 }, "end": { - "line": 413, + "line": 400, "column": 33 } } @@ -13172,46 +12920,46 @@ "type": "Identifier", "name": "config", "range": [ - 13789, - 13795 + 13657, + 13663 ], "loc": { "start": { - "line": 413, + "line": 400, "column": 36 }, "end": { - "line": 413, + "line": 400, "column": 42 } } }, "range": [ - 13757, - 13795 + 13625, + 13663 ], "loc": { "start": { - "line": 413, + "line": 400, "column": 4 }, "end": { - "line": 413, + "line": 400, "column": 42 } } }, "range": [ - 13757, - 13796 + 13625, + 13664 ], "loc": { "start": { - "line": 413, + "line": 400, "column": 4 }, "end": { - "line": 413, + "line": 400, "column": 43 } } @@ -13221,47 +12969,47 @@ "argument": { "type": "ThisExpression", "range": [ - 13808, - 13812 + 13676, + 13680 ], "loc": { "start": { - "line": 414, + "line": 401, "column": 11 }, "end": { - "line": 414, + "line": 401, "column": 15 } } }, "range": [ - 13801, - 13813 + 13669, + 13681 ], "loc": { "start": { - "line": 414, + "line": 401, "column": 4 }, "end": { - "line": 414, + "line": 401, "column": 16 } } } ], "range": [ - 13751, - 13817 + 13619, + 13685 ], "loc": { "start": { - "line": 412, + "line": 399, "column": 29 }, "end": { - "line": 415, + "line": 402, "column": 3 } } @@ -13269,16 +13017,16 @@ "generator": false, "expression": false, "range": [ - 13742, - 13817 + 13610, + 13685 ], "loc": { "start": { - "line": 412, + "line": 399, "column": 20 }, "end": { - "line": 415, + "line": 402, "column": 3 } } @@ -13286,16 +13034,16 @@ "kind": "method", "computed": false, "range": [ - 13724, - 13817 + 13592, + 13685 ], "loc": { "start": { - "line": 412, + "line": 399, "column": 2 }, "end": { - "line": 415, + "line": 402, "column": 3 } }, @@ -13304,16 +13052,16 @@ "type": "Block", "value": "*\n * Sets the page-level preferences for SafeFrame configuration. Any\n * unrecognized keys in the config object will be ignored. The entire config\n * will be ignored if an invalid value is passed for a recognized key. These\n * page level preferences will be overriden by slot level preferences, if\n * specified.\n *\n * @param {SafeFrameConfig} config The configuration object.\n * @returns {PubAdsService} The service object on which the method was called.\n ", "range": [ - 13243, - 13721 + 13111, + 13589 ], "loc": { "start": { - "line": 402, + "line": 389, "column": 2 }, "end": { - "line": 411, + "line": 398, "column": 5 } } @@ -13324,16 +13072,16 @@ "type": "Block", "value": "*\n * Configures whether the page should be treated as child-directed.\n *\n * @param {number} value The child-directed treatment tag status to set. Set\n * the options parameter to the integer value 1 to mark the ad request as\n * child-directed, and to 0 for ad requests that are not child-directed.\n * @returns {PubAdsService} The service object on which the method was called.\n ", "range": [ - 13821, - 14216 + 13689, + 14084 ], "loc": { "start": { - "line": 417, + "line": 404, "column": 2 }, "end": { - "line": 424, + "line": 411, "column": 5 } } @@ -13347,16 +13095,16 @@ "type": "Identifier", "name": "setTagForChildDirectedTreatment", "range": [ - 14219, - 14250 + 14087, + 14118 ], "loc": { "start": { - "line": 425, + "line": 412, "column": 2 }, "end": { - "line": 425, + "line": 412, "column": 33 } } @@ -13369,16 +13117,16 @@ "type": "Identifier", "name": "value", "range": [ - 14251, - 14256 + 14119, + 14124 ], "loc": { "start": { - "line": 425, + "line": 412, "column": 34 }, "end": { - "line": 425, + "line": 412, "column": 39 } } @@ -13401,16 +13149,16 @@ "object": { "type": "ThisExpression", "range": [ - 14264, - 14268 + 14132, + 14136 ], "loc": { "start": { - "line": 426, + "line": 413, "column": 4 }, "end": { - "line": 426, + "line": 413, "column": 8 } } @@ -13419,31 +13167,31 @@ "type": "Identifier", "name": "_options", "range": [ - 14269, - 14277 + 14137, + 14145 ], "loc": { "start": { - "line": 426, + "line": 413, "column": 9 }, "end": { - "line": 426, + "line": 413, "column": 17 } } }, "range": [ - 14264, - 14277 + 14132, + 14145 ], "loc": { "start": { - "line": 426, + "line": 413, "column": 4 }, "end": { - "line": 426, + "line": 413, "column": 17 } } @@ -13452,31 +13200,31 @@ "type": "Identifier", "name": "tagForChildDirectedTreatment", "range": [ - 14278, - 14306 + 14146, + 14174 ], "loc": { "start": { - "line": 426, + "line": 413, "column": 18 }, "end": { - "line": 426, + "line": 413, "column": 46 } } }, "range": [ - 14264, - 14306 + 14132, + 14174 ], "loc": { "start": { - "line": 426, + "line": 413, "column": 4 }, "end": { - "line": 426, + "line": 413, "column": 46 } } @@ -13485,46 +13233,46 @@ "type": "Identifier", "name": "value", "range": [ - 14309, - 14314 + 14177, + 14182 ], "loc": { "start": { - "line": 426, + "line": 413, "column": 49 }, "end": { - "line": 426, + "line": 413, "column": 54 } } }, "range": [ - 14264, - 14314 + 14132, + 14182 ], "loc": { "start": { - "line": 426, + "line": 413, "column": 4 }, "end": { - "line": 426, + "line": 413, "column": 54 } } }, "range": [ - 14264, - 14315 + 14132, + 14183 ], "loc": { "start": { - "line": 426, + "line": 413, "column": 4 }, "end": { - "line": 426, + "line": 413, "column": 55 } } @@ -13534,47 +13282,47 @@ "argument": { "type": "ThisExpression", "range": [ - 14327, - 14331 + 14195, + 14199 ], "loc": { "start": { - "line": 427, + "line": 414, "column": 11 }, "end": { - "line": 427, + "line": 414, "column": 15 } } }, "range": [ - 14320, - 14332 + 14188, + 14200 ], "loc": { "start": { - "line": 427, + "line": 414, "column": 4 }, "end": { - "line": 427, + "line": 414, "column": 16 } } } ], "range": [ - 14258, - 14336 + 14126, + 14204 ], "loc": { "start": { - "line": 425, + "line": 412, "column": 41 }, "end": { - "line": 428, + "line": 415, "column": 3 } } @@ -13582,16 +13330,16 @@ "generator": false, "expression": false, "range": [ - 14250, - 14336 + 14118, + 14204 ], "loc": { "start": { - "line": 425, + "line": 412, "column": 33 }, "end": { - "line": 428, + "line": 415, "column": 3 } } @@ -13599,16 +13347,16 @@ "kind": "method", "computed": false, "range": [ - 14219, - 14336 + 14087, + 14204 ], "loc": { "start": { - "line": 425, + "line": 412, "column": 2 }, "end": { - "line": 428, + "line": 415, "column": 3 } }, @@ -13617,16 +13365,16 @@ "type": "Block", "value": "*\n * Configures whether the page should be treated as child-directed.\n *\n * @param {number} value The child-directed treatment tag status to set. Set\n * the options parameter to the integer value 1 to mark the ad request as\n * child-directed, and to 0 for ad requests that are not child-directed.\n * @returns {PubAdsService} The service object on which the method was called.\n ", "range": [ - 13821, - 14216 + 13689, + 14084 ], "loc": { "start": { - "line": 417, + "line": 404, "column": 2 }, "end": { - "line": 424, + "line": 411, "column": 5 } } @@ -13637,16 +13385,16 @@ "type": "Block", "value": "*\n * Clears the configuration for whether the page should be treated as child-directed.\n *\n * @returns {PubAdsService} The service object on which the method was called.\n ", "range": [ - 14340, - 14523 + 14208, + 14391 ], "loc": { "start": { - "line": 430, + "line": 417, "column": 2 }, "end": { - "line": 434, + "line": 421, "column": 5 } } @@ -13660,16 +13408,16 @@ "type": "Identifier", "name": "clearTagForChildDirectedTreatment", "range": [ - 14526, - 14559 + 14394, + 14427 ], "loc": { "start": { - "line": 435, + "line": 422, "column": 2 }, "end": { - "line": 435, + "line": 422, "column": 35 } } @@ -13695,16 +13443,16 @@ "object": { "type": "ThisExpression", "range": [ - 14568, - 14572 + 14436, + 14440 ], "loc": { "start": { - "line": 436, + "line": 423, "column": 4 }, "end": { - "line": 436, + "line": 423, "column": 8 } } @@ -13713,31 +13461,31 @@ "type": "Identifier", "name": "_options", "range": [ - 14573, - 14581 + 14441, + 14449 ], "loc": { "start": { - "line": 436, + "line": 423, "column": 9 }, "end": { - "line": 436, + "line": 423, "column": 17 } } }, "range": [ - 14568, - 14581 + 14436, + 14449 ], "loc": { "start": { - "line": 436, + "line": 423, "column": 4 }, "end": { - "line": 436, + "line": 423, "column": 17 } } @@ -13746,31 +13494,31 @@ "type": "Identifier", "name": "tagForChildDirectedTreatment", "range": [ - 14582, - 14610 + 14450, + 14478 ], "loc": { "start": { - "line": 436, + "line": 423, "column": 18 }, "end": { - "line": 436, + "line": 423, "column": 46 } } }, "range": [ - 14568, - 14610 + 14436, + 14478 ], "loc": { "start": { - "line": 436, + "line": 423, "column": 4 }, "end": { - "line": 436, + "line": 423, "column": 46 } } @@ -13780,46 +13528,46 @@ "value": null, "raw": "null", "range": [ - 14613, - 14617 + 14481, + 14485 ], "loc": { "start": { - "line": 436, + "line": 423, "column": 49 }, "end": { - "line": 436, + "line": 423, "column": 53 } } }, "range": [ - 14568, - 14617 + 14436, + 14485 ], "loc": { "start": { - "line": 436, + "line": 423, "column": 4 }, "end": { - "line": 436, + "line": 423, "column": 53 } } }, "range": [ - 14568, - 14618 + 14436, + 14486 ], "loc": { "start": { - "line": 436, + "line": 423, "column": 4 }, "end": { - "line": 436, + "line": 423, "column": 54 } } @@ -13829,47 +13577,47 @@ "argument": { "type": "ThisExpression", "range": [ - 14630, - 14634 + 14498, + 14502 ], "loc": { "start": { - "line": 437, + "line": 424, "column": 11 }, "end": { - "line": 437, + "line": 424, "column": 15 } } }, "range": [ - 14623, - 14635 + 14491, + 14503 ], "loc": { "start": { - "line": 437, + "line": 424, "column": 4 }, "end": { - "line": 437, + "line": 424, "column": 16 } } } ], "range": [ - 14562, - 14639 + 14430, + 14507 ], "loc": { "start": { - "line": 435, + "line": 422, "column": 38 }, "end": { - "line": 438, + "line": 425, "column": 3 } } @@ -13877,16 +13625,16 @@ "generator": false, "expression": false, "range": [ - 14559, - 14639 + 14427, + 14507 ], "loc": { "start": { - "line": 435, + "line": 422, "column": 35 }, "end": { - "line": 438, + "line": 425, "column": 3 } } @@ -13894,16 +13642,16 @@ "kind": "method", "computed": false, "range": [ - 14526, - 14639 + 14394, + 14507 ], "loc": { "start": { - "line": 435, + "line": 422, "column": 2 }, "end": { - "line": 438, + "line": 425, "column": 3 } }, @@ -13912,16 +13660,16 @@ "type": "Block", "value": "*\n * Clears the configuration for whether the page should be treated as child-directed.\n *\n * @returns {PubAdsService} The service object on which the method was called.\n ", "range": [ - 14340, - 14523 + 14208, + 14391 ], "loc": { "start": { - "line": 430, + "line": 417, "column": 2 }, "end": { - "line": 434, + "line": 421, "column": 5 } } @@ -13932,16 +13680,16 @@ "type": "Block", "value": "*\n * Sets the video content information to be sent along with the ad requests for\n * targeting and content exclusion purposes. Video ads will be automatically\n * enabled when this method is called. For videoContentId and videoCmsId, use\n * the values that are provided to the {@link DFP} content ingestion service.\n *\n * @param {string} videoContentId The video content ID.\n * @param {string} videoCmsId The video CMS ID.\n ", "range": [ - 14643, - 15086 + 14511, + 14954 ], "loc": { "start": { - "line": 440, + "line": 427, "column": 2 }, "end": { - "line": 448, + "line": 435, "column": 5 } } @@ -13955,16 +13703,16 @@ "type": "Identifier", "name": "setVideoContent", "range": [ - 15089, - 15104 + 14957, + 14972 ], "loc": { "start": { - "line": 449, + "line": 436, "column": 2 }, "end": { - "line": 449, + "line": 436, "column": 17 } } @@ -13977,16 +13725,16 @@ "type": "Identifier", "name": "videoContentId", "range": [ - 15105, - 15119 + 14973, + 14987 ], "loc": { "start": { - "line": 449, + "line": 436, "column": 18 }, "end": { - "line": 449, + "line": 436, "column": 32 } } @@ -13995,16 +13743,16 @@ "type": "Identifier", "name": "videoCmsId", "range": [ - 15121, - 15131 + 14989, + 14999 ], "loc": { "start": { - "line": 449, + "line": 436, "column": 34 }, "end": { - "line": 449, + "line": 436, "column": 44 } } @@ -14027,16 +13775,16 @@ "object": { "type": "ThisExpression", "range": [ - 15139, - 15143 + 15007, + 15011 ], "loc": { "start": { - "line": 450, + "line": 437, "column": 4 }, "end": { - "line": 450, + "line": 437, "column": 8 } } @@ -14045,31 +13793,31 @@ "type": "Identifier", "name": "_options", "range": [ - 15144, - 15152 + 15012, + 15020 ], "loc": { "start": { - "line": 450, + "line": 437, "column": 9 }, "end": { - "line": 450, + "line": 437, "column": 17 } } }, "range": [ - 15139, - 15152 + 15007, + 15020 ], "loc": { "start": { - "line": 450, + "line": 437, "column": 4 }, "end": { - "line": 450, + "line": 437, "column": 17 } } @@ -14078,31 +13826,31 @@ "type": "Identifier", "name": "videoContentId", "range": [ - 15153, - 15167 + 15021, + 15035 ], "loc": { "start": { - "line": 450, + "line": 437, "column": 18 }, "end": { - "line": 450, + "line": 437, "column": 32 } } }, "range": [ - 15139, - 15167 + 15007, + 15035 ], "loc": { "start": { - "line": 450, + "line": 437, "column": 4 }, "end": { - "line": 450, + "line": 437, "column": 32 } } @@ -14111,46 +13859,46 @@ "type": "Identifier", "name": "videoContentId", "range": [ - 15170, - 15184 + 15038, + 15052 ], "loc": { "start": { - "line": 450, + "line": 437, "column": 35 }, "end": { - "line": 450, + "line": 437, "column": 49 } } }, "range": [ - 15139, - 15184 + 15007, + 15052 ], "loc": { "start": { - "line": 450, + "line": 437, "column": 4 }, "end": { - "line": 450, + "line": 437, "column": 49 } } }, "range": [ - 15139, - 15185 + 15007, + 15053 ], "loc": { "start": { - "line": 450, + "line": 437, "column": 4 }, "end": { - "line": 450, + "line": 437, "column": 50 } } @@ -14169,16 +13917,16 @@ "object": { "type": "ThisExpression", "range": [ - 15190, - 15194 + 15058, + 15062 ], "loc": { "start": { - "line": 451, + "line": 438, "column": 4 }, "end": { - "line": 451, + "line": 438, "column": 8 } } @@ -14187,31 +13935,31 @@ "type": "Identifier", "name": "_options", "range": [ - 15195, - 15203 + 15063, + 15071 ], "loc": { "start": { - "line": 451, + "line": 438, "column": 9 }, "end": { - "line": 451, + "line": 438, "column": 17 } } }, "range": [ - 15190, - 15203 + 15058, + 15071 ], "loc": { "start": { - "line": 451, + "line": 438, "column": 4 }, "end": { - "line": 451, + "line": 438, "column": 17 } } @@ -14220,31 +13968,31 @@ "type": "Identifier", "name": "videoCmsId", "range": [ - 15204, - 15214 + 15072, + 15082 ], "loc": { "start": { - "line": 451, + "line": 438, "column": 18 }, "end": { - "line": 451, + "line": 438, "column": 28 } } }, "range": [ - 15190, - 15214 + 15058, + 15082 ], "loc": { "start": { - "line": 451, + "line": 438, "column": 4 }, "end": { - "line": 451, + "line": 438, "column": 28 } } @@ -14253,62 +14001,214 @@ "type": "Identifier", "name": "videoCmsId", "range": [ - 15217, - 15227 + 15085, + 15095 ], "loc": { "start": { - "line": 451, + "line": 438, "column": 31 }, "end": { - "line": 451, + "line": 438, "column": 41 } } }, "range": [ - 15190, - 15227 + 15058, + 15095 + ], + "loc": { + "start": { + "line": 438, + "column": 4 + }, + "end": { + "line": 438, + "column": 41 + } + } + }, + "range": [ + 15058, + 15096 + ], + "loc": { + "start": { + "line": 438, + "column": 4 + }, + "end": { + "line": 438, + "column": 42 + } + } + } + ], + "range": [ + 15001, + 15100 + ], + "loc": { + "start": { + "line": 436, + "column": 46 + }, + "end": { + "line": 439, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 14972, + 15100 + ], + "loc": { + "start": { + "line": 436, + "column": 17 + }, + "end": { + "line": 439, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 14957, + 15100 + ], + "loc": { + "start": { + "line": 436, + "column": 2 + }, + "end": { + "line": 439, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Sets the video content information to be sent along with the ad requests for\n * targeting and content exclusion purposes. Video ads will be automatically\n * enabled when this method is called. For videoContentId and videoCmsId, use\n * the values that are provided to the {@link DFP} content ingestion service.\n *\n * @param {string} videoContentId The video content ID.\n * @param {string} videoCmsId The video CMS ID.\n ", + "range": [ + 14511, + 14954 + ], + "loc": { + "start": { + "line": 427, + "column": 2 + }, + "end": { + "line": 435, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Changes the correlator that is sent with ad requests, effectively starting\n * a new page view. The correlator is the same for all the ad requests coming\n * from one page view, and unique across page views. Only applies to async mode.\n *\n * @returns {PubAdsService} The service object on which the function was called.\n ", + "range": [ + 15104, + 15444 + ], + "loc": { + "start": { + "line": 441, + "column": 2 + }, + "end": { + "line": 447, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "updateCorrelator", + "range": [ + 15447, + 15463 + ], + "loc": { + "start": { + "line": 448, + "column": 2 + }, + "end": { + "line": 448, + "column": 18 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 15479, + 15483 ], "loc": { "start": { - "line": 451, - "column": 4 + "line": 449, + "column": 11 }, "end": { - "line": 451, - "column": 41 + "line": 449, + "column": 15 } } }, "range": [ - 15190, - 15228 + 15472, + 15484 ], "loc": { "start": { - "line": 451, + "line": 449, "column": 4 }, "end": { - "line": 451, - "column": 42 + "line": 449, + "column": 16 } } } ], "range": [ - 15133, - 15232 + 15466, + 15488 ], "loc": { "start": { - "line": 449, - "column": 46 + "line": 448, + "column": 21 }, "end": { - "line": 452, + "line": 450, "column": 3 } } @@ -14316,16 +14216,16 @@ "generator": false, "expression": false, "range": [ - 15104, - 15232 + 15463, + 15488 ], "loc": { "start": { - "line": 449, - "column": 17 + "line": 448, + "column": 18 }, "end": { - "line": 452, + "line": 450, "column": 3 } } @@ -14333,34 +14233,34 @@ "kind": "method", "computed": false, "range": [ - 15089, - 15232 + 15447, + 15488 ], "loc": { "start": { - "line": 449, + "line": 448, "column": 2 }, "end": { - "line": 452, + "line": 450, "column": 3 } }, "leadingComments": [ { "type": "Block", - "value": "*\n * Sets the video content information to be sent along with the ad requests for\n * targeting and content exclusion purposes. Video ads will be automatically\n * enabled when this method is called. For videoContentId and videoCmsId, use\n * the values that are provided to the {@link DFP} content ingestion service.\n *\n * @param {string} videoContentId The video content ID.\n * @param {string} videoCmsId The video CMS ID.\n ", + "value": "*\n * Changes the correlator that is sent with ad requests, effectively starting\n * a new page view. The correlator is the same for all the ad requests coming\n * from one page view, and unique across page views. Only applies to async mode.\n *\n * @returns {PubAdsService} The service object on which the function was called.\n ", "range": [ - 14643, - 15086 + 15104, + 15444 ], "loc": { "start": { - "line": 440, + "line": 441, "column": 2 }, "end": { - "line": 448, + "line": 447, "column": 5 } } @@ -14369,18 +14269,18 @@ "trailingComments": [ { "type": "Block", - "value": "*\n * Changes the correlator that is sent with ad requests, effectively starting\n * a new page view. The correlator is the same for all the ad requests coming\n * from one page view, and unique across page views. Only applies to async mode.\n *\n * @returns {PubAdsService} The service object on which the function was called.\n ", + "value": "*\n * Conditionally execute a function unless the service has already been\n * enabled.\n *\n * @param {function} fn The function to call if the service is not enabled\n * @returns {boolean} true if the function was called; false if the service has\n * already been enabled.\n ", "range": [ - 15236, - 15576 + 15492, + 15780 ], "loc": { "start": { - "line": 454, + "line": 452, "column": 2 }, "end": { - "line": 460, + "line": 459, "column": 5 } } @@ -14392,75 +14292,293 @@ "type": "MethodDefinition", "key": { "type": "Identifier", - "name": "updateCorrelator", + "name": "_unlessEnabled", "range": [ - 15579, - 15595 + 15783, + 15797 ], "loc": { "start": { - "line": 461, + "line": 460, "column": 2 }, "end": { - "line": 461, - "column": 18 + "line": 460, + "column": 16 } } }, "value": { "type": "FunctionExpression", "id": null, - "params": [], + "params": [ + { + "type": "Identifier", + "name": "fn", + "range": [ + 15798, + 15800 + ], + "loc": { + "start": { + "line": 460, + "column": 17 + }, + "end": { + "line": 460, + "column": 19 + } + } + } + ], "body": { "type": "BlockStatement", "body": [ { - "type": "ReturnStatement", - "argument": { - "type": "ThisExpression", + "type": "IfStatement", + "test": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 15812, + 15816 + ], + "loc": { + "start": { + "line": 461, + "column": 8 + }, + "end": { + "line": 461, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "_enabled", + "range": [ + 15817, + 15825 + ], + "loc": { + "start": { + "line": 461, + "column": 13 + }, + "end": { + "line": 461, + "column": 21 + } + } + }, + "range": [ + 15812, + 15825 + ], + "loc": { + "start": { + "line": 461, + "column": 8 + }, + "end": { + "line": 461, + "column": 21 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": false, + "raw": "false", + "range": [ + 15842, + 15847 + ], + "loc": { + "start": { + "line": 462, + "column": 13 + }, + "end": { + "line": 462, + "column": 18 + } + } + }, + "range": [ + 15835, + 15848 + ], + "loc": { + "start": { + "line": 462, + "column": 6 + }, + "end": { + "line": 462, + "column": 19 + } + } + } + ], + "range": [ + 15827, + 15854 + ], + "loc": { + "start": { + "line": 461, + "column": 23 + }, + "end": { + "line": 463, + "column": 5 + } + } + }, + "alternate": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "fn", + "range": [ + 15868, + 15870 + ], + "loc": { + "start": { + "line": 464, + "column": 6 + }, + "end": { + "line": 464, + "column": 8 + } + } + }, + "arguments": [], + "range": [ + 15868, + 15872 + ], + "loc": { + "start": { + "line": 464, + "column": 6 + }, + "end": { + "line": 464, + "column": 10 + } + } + }, + "range": [ + 15868, + 15873 + ], + "loc": { + "start": { + "line": 464, + "column": 6 + }, + "end": { + "line": 464, + "column": 11 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": true, + "raw": "true", + "range": [ + 15887, + 15891 + ], + "loc": { + "start": { + "line": 465, + "column": 13 + }, + "end": { + "line": 465, + "column": 17 + } + } + }, + "range": [ + 15880, + 15892 + ], + "loc": { + "start": { + "line": 465, + "column": 6 + }, + "end": { + "line": 465, + "column": 18 + } + } + } + ], "range": [ - 15611, - 15615 + 15860, + 15898 ], "loc": { "start": { - "line": 462, + "line": 463, "column": 11 }, "end": { - "line": 462, - "column": 15 + "line": 466, + "column": 5 } } }, "range": [ - 15604, - 15616 + 15808, + 15898 ], "loc": { "start": { - "line": 462, + "line": 461, "column": 4 }, "end": { - "line": 462, - "column": 16 + "line": 466, + "column": 5 } } } ], "range": [ - 15598, - 15620 + 15802, + 15902 ], "loc": { "start": { - "line": 461, + "line": 460, "column": 21 }, "end": { - "line": 463, + "line": 467, "column": 3 } } @@ -14468,16 +14586,16 @@ "generator": false, "expression": false, "range": [ - 15595, - 15620 + 15797, + 15902 ], "loc": { "start": { - "line": 461, - "column": 18 + "line": 460, + "column": 16 }, "end": { - "line": 463, + "line": 467, "column": 3 } } @@ -14485,34 +14603,34 @@ "kind": "method", "computed": false, "range": [ - 15579, - 15620 + 15783, + 15902 ], "loc": { "start": { - "line": 461, + "line": 460, "column": 2 }, "end": { - "line": 463, + "line": 467, "column": 3 } }, "leadingComments": [ { "type": "Block", - "value": "*\n * Changes the correlator that is sent with ad requests, effectively starting\n * a new page view. The correlator is the same for all the ad requests coming\n * from one page view, and unique across page views. Only applies to async mode.\n *\n * @returns {PubAdsService} The service object on which the function was called.\n ", + "value": "*\n * Conditionally execute a function unless the service has already been\n * enabled.\n *\n * @param {function} fn The function to call if the service is not enabled\n * @returns {boolean} true if the function was called; false if the service has\n * already been enabled.\n ", "range": [ - 15236, - 15576 + 15492, + 15780 ], "loc": { "start": { - "line": 454, + "line": 452, "column": 2 }, "end": { - "line": 460, + "line": 459, "column": 5 } } @@ -14522,31 +14640,31 @@ } ], "range": [ - 223, - 15623 + 266, + 15904 ], "loc": { "start": { - "line": 8, + "line": 9, "column": 51 }, "end": { - "line": 465, + "line": 468, "column": 1 } } }, "range": [ - 187, - 15623 + 230, + 15904 ], "loc": { "start": { - "line": 8, + "line": 9, "column": 15 }, "end": { - "line": 465, + "line": 468, "column": 1 } }, @@ -14555,16 +14673,16 @@ "type": "Block", "value": "*\n * Publisher Ads service. This service is used to fetch and show ads from your\n * {@link DFP} account.\n ", "range": [ - 61, - 171 + 104, + 214 ], "loc": { "start": { - "line": 4, + "line": 5, "column": 0 }, "end": { - "line": 7, + "line": 8, "column": 3 } } @@ -14573,16 +14691,16 @@ "trailingComments": [] }, "range": [ - 172, - 15623 + 215, + 15904 ], "loc": { "start": { - "line": 8, + "line": 9, "column": 0 }, "end": { - "line": 465, + "line": 468, "column": 1 } }, @@ -14591,16 +14709,16 @@ "type": "Block", "value": "*\n * Publisher Ads service. This service is used to fetch and show ads from your\n * {@link DFP} account.\n ", "range": [ - 61, - 171 + 104, + 214 ], "loc": { "start": { - "line": 4, + "line": 5, "column": 0 }, "end": { - "line": 7, + "line": 8, "column": 3 } } @@ -14611,7 +14729,7 @@ "sourceType": "module", "range": [ 0, - 15623 + 15904 ], "loc": { "start": { @@ -14619,7 +14737,7 @@ "column": 0 }, "end": { - "line": 465, + "line": 468, "column": 1 } }, @@ -14628,16 +14746,16 @@ "type": "Block", "value": "*\n * Publisher Ads service. This service is used to fetch and show ads from your\n * {@link DFP} account.\n ", "range": [ - 61, - 171 + 104, + 214 ], "loc": { "start": { - "line": 4, + "line": 5, "column": 0 }, "end": { - "line": 7, + "line": 8, "column": 3 } } @@ -14646,16 +14764,16 @@ "type": "Block", "value": "*\n * Creates a new PubAdsService.\n *\n * @param {GPT} gt The containing {@link GPT} instance.\n ", "range": [ - 227, - 333 + 270, + 376 ], "loc": { "start": { - "line": 9, + "line": 10, "column": 2 }, "end": { - "line": 13, + "line": 14, "column": 5 } } @@ -14664,16 +14782,16 @@ "type": "Block", "value": "*\n * The name of the service.\n *\n * @private\n * @type {string}\n ", "range": [ - 946, - 1024 + 1005, + 1083 ], "loc": { "start": { - "line": 38, + "line": 39, "column": 2 }, "end": { - "line": 43, + "line": 44, "column": 5 } } @@ -14682,16 +14800,16 @@ "type": "Block", "value": "*\n * Enables the service.\n *\n * @override\n ", "range": [ - 1083, - 1138 + 1142, + 1197 ], "loc": { "start": { - "line": 48, + "line": 49, "column": 2 }, "end": { - "line": 52, + "line": 53, "column": 5 } } @@ -14700,16 +14818,16 @@ "type": "Block", "value": "*\n * Fetches and displays new ads for specific or all slots on the page.\n * Works only in asynchronous rendering mode.\n *\n * For proper behavior across all browsers, calling refresh must be preceded\n * by a call to display the ad slot. If the call to display is omitted, refresh\n * may behave unexpectedly. If desired, the {@link PubAdsService#disableInitialLoad} method can be\n * used to stop display from fetching an ad.\n *\n * @param {Array} [optSlots] The slots to refresh. Array is optional;\n * all slots will be refreshed if it is unspecified.\n * @param {{changeCorrelator: boolean}} [optOptions] Configuration options\n * associated with this refresh call. changeCorrelator specifies whether or\n * not a new correlator is to be generated for fetching ads. Our ad servers\n * maintain this correlator value briefly (currently for 30 seconds, but\n * subject to change), such that requests with the same correlator received\n * close together will be considered a single page view. By default a new\n * correlator is generated for every refresh.\n ", "range": [ - 1213, - 2306 + 1272, + 2365 ], "loc": { "start": { - "line": 58, + "line": 59, "column": 2 }, "end": { - "line": 76, + "line": 77, "column": 5 } } @@ -14718,16 +14836,16 @@ "type": "Block", "value": "*\n * Removes the ads from the given slots and replaces them with blank\n * content. The slots will be marked as unfetched.\n *\n * @param {Array} [optSlots] The array of slots to clear. Array is\n * optional; all slots will be cleared if it is unspecified.\n * @returns {boolean} Returns true if slots have been cleared, false otherwise.\n ", "range": [ - 2593, - 2952 + 2652, + 3011 ], "loc": { "start": { - "line": 90, + "line": 91, "column": 2 }, "end": { - "line": 97, + "line": 98, "column": 5 } } @@ -14736,16 +14854,16 @@ "type": "Block", "value": "*\n * Constructs an out-of-page passback slot. A passback is where a {@link GPT} snippet\n * is used as a creative in an ad serving system. The ad serving system could\n * be {@link DFP} or a third party. In this case, the ads are always requested\n * synchronously in non-single request mode.\n *\n * @param {string} adUnitPath The ad unit path of the slot to use as a passback.\n * @returns {?Slot} The new passback object or null if the method was\n * called with invalid arguments.\n ", "range": [ - 3236, - 3737 + 3295, + 3796 ], "loc": { "start": { - "line": 115, + "line": 116, "column": 2 }, "end": { - "line": 124, + "line": 125, "column": 5 } } @@ -14754,16 +14872,16 @@ "type": "Block", "value": "*\n * Constructs a passback slot. A passback is where a {@link GPT} snippet is used as a\n * creative in an ad serving system. The ad serving system could be {@link DFP} or a\n * third party. In this case, the ads are always requested synchronously in\n * non-single request mode.\n *\n * @param {string} adUnitPath The ad unit path of the slot to use as a passback.\n * @param {GeneralSize} size The size of the slot.\n * @returns {?Slot} The new passback object or null if the method was\n * called with invalid arguments.\n ", "range": [ - 3989, - 4530 + 4048, + 4589 ], "loc": { "start": { - "line": 136, + "line": 137, "column": 2 }, "end": { - "line": 146, + "line": 147, "column": 5 } } @@ -14772,16 +14890,16 @@ "type": "Block", "value": "*\n * Disables requests for ads on page load, but allows ads to be requested with\n * a {@link PubAdsService#refresh} call. This should be set prior to enabling\n * the service. Async mode must be used; otherwise it will be impossible to\n * request ads using {@link PubAdsService#refresh}.\n ", "range": [ - 4771, - 5073 + 4830, + 5132 ], "loc": { "start": { - "line": 157, + "line": 158, "column": 2 }, "end": { - "line": 162, + "line": 163, "column": 5 } } @@ -14790,16 +14908,16 @@ "type": "Block", "value": "*\n * Enables async rendering mode to enable non-blocking fetching and rendering\n * of ads. Because the service uses asynchronous rendering by default, you\n * only need to use this method to override a previous setting. Async mode\n * must be set before the service is enabled.\n *\n * @returns {boolean} Returns true if async rendering mode was enabled and\n * false if it is impossible to enable async rendering mode because the method\n * was called after the service was enabled.\n ", "range": [ - 5145, - 5646 + 5246, + 5747 ], "loc": { "start": { - "line": 167, + "line": 170, "column": 2 }, "end": { - "line": 176, + "line": 179, "column": 5 } } @@ -14808,8 +14926,8 @@ "type": "Block", "value": "*\n * Enables single request mode for fetching multiple ads at the same time.\n * This requires all pubads slots to be defined and added to the {@link PubAdsService}\n * prior to enabling the service. Single request mode must be set\n * before the service is enabled.\n *\n * @returns {boolean} Returns true if single request mode was enabled and false\n * if it is impossible to enable single request mode because the method was\n * called after the service was enabled.\n ", "range": [ - 5807, - 6294 + 5872, + 6359 ], "loc": { "start": { @@ -14826,16 +14944,16 @@ "type": "Block", "value": "*\n * Enables sync rendering mode to enable blocking fetching and rendering of ads.\n * This mode must be set before the service is enabled. Synchronous rendering\n * also requires that the {@link GPT} JavaScript be loaded synchronously.\n *\n * @returns {boolean} Returns true if sync rendering mode was enabled and false\n * if it is impossible to enable sync rendering mode because the method was\n * called after the service was enabled.\n ", "range": [ - 6453, - 6909 + 6482, + 6938 ], "loc": { "start": { - "line": 205, + "line": 202, "column": 2 }, "end": { - "line": 213, + "line": 210, "column": 5 } } @@ -14844,16 +14962,16 @@ "type": "Block", "value": "*\n * Signals to {@link GPT} that video ads will be present on the page. This enables\n * competitive exclusion constraints on display and video ads. If the video\n * content is known, call setVideoContent in order to be able to use content\n * exclusion for display ads.\n ", "range": [ - 7068, - 7351 + 7061, + 7344 ], "loc": { "start": { - "line": 223, + "line": 217, "column": 2 }, "end": { - "line": 228, + "line": 222, "column": 5 } } @@ -14862,16 +14980,16 @@ "type": "Block", "value": "*\n * Sets custom targeting parameters for a given key that apply to all pubads\n * service ad slots. Calling this multiple times for the same key will\n * overwrite old values. These keys are defined in your {@link DFP} account.\n *\n * @param {string} key Targeting parameter key.\n * @param {string|!Array} value Targeting parameter value or array of values.\n * @returns {PubAdsService} The service object on which the method was called.\n ", "range": [ - 7415, - 7879 + 7408, + 7872 ], "loc": { "start": { - "line": 233, + "line": 227, "column": 2 }, "end": { - "line": 241, + "line": 235, "column": 5 } } @@ -14880,16 +14998,16 @@ "type": "Block", "value": "*\n * Returns a specific custom service-level targeting parameter that has been set.\n *\n * @param {string} key The targeting key to look for.\n * @returns {!Array} The values associated with this key, or an empty\n * array if there is no such key.\n ", "range": [ - 8058, - 8328 + 7963, + 8233 ], "loc": { "start": { - "line": 251, + "line": 241, "column": 2 }, "end": { - "line": 257, + "line": 247, "column": 5 } } @@ -14898,16 +15016,16 @@ "type": "Block", "value": "*\n * Returns the list of all custom service-level targeting keys that have been set.\n *\n * @returns {!Array} Array of targeting keys. Ordering is undefined.\n ", "range": [ - 8397, - 8575 + 8300, + 8478 ], "loc": { "start": { - "line": 262, + "line": 252, "column": 2 }, "end": { - "line": 266, + "line": 256, "column": 5 } } @@ -14916,16 +15034,16 @@ "type": "Block", "value": "*\n * Clears custom targeting parameters for a given key.\n *\n * @param {string} key Targeting parameter key.\n * @returns {PubAdsService} The service object on which the method was called.\n ", "range": [ - 8647, - 8849 + 8544, + 8746 ], "loc": { "start": { - "line": 271, + "line": 261, "column": 2 }, "end": { - "line": 276, + "line": 266, "column": 5 } } @@ -14934,16 +15052,16 @@ "type": "Block", "value": "*\n * Enables collapsing of slot divs so that they don't take up any space on the\n * page when there is no ad content to display. This mode must be set before\n * the service is enabled.\n *\n * @param {boolean} [optCollapseBeforeAdFetch=false] Whether to collapse the slots\n * even before the ads are fetched. This parameter is optional; if not\n * provided, false will be used as the default value.\n * @returns {boolean} Returns true if div collapse mode was enabled and false\n * if it is impossible to enable collapse mode because the method was called\n * after the service was enabled.\n ", "range": [ - 8931, - 9543 + 8827, + 9439 ], "loc": { "start": { - "line": 282, + "line": 272, "column": 2 }, "end": { - "line": 293, + "line": 283, "column": 5 } } @@ -14952,16 +15070,16 @@ "type": "Block", "value": "*\n * Sets a page-level ad category exclusion for the given label name.\n *\n * @param {string} categoryExclusion The ad category exclusion label to add.\n * @returns {PubAdsService} The service object on which the method was called.\n ", "range": [ - 9806, - 10051 + 9666, + 9911 ], "loc": { "start": { - "line": 304, + "line": 291, "column": 2 }, "end": { - "line": 309, + "line": 296, "column": 5 } } @@ -14970,16 +15088,16 @@ "type": "Block", "value": "*\n * Clears all page-level ad category exclusion labels.\n * This is useful if you want to refresh the slot.\n *\n * @returns {PubAdsService} The service object on which the method was called.\n ", "range": [ - 10174, - 10379 + 10034, + 10239 ], "loc": { "start": { - "line": 315, + "line": 302, "column": 2 }, "end": { - "line": 320, + "line": 307, "column": 5 } } @@ -14988,16 +15106,16 @@ "type": "Block", "value": "*\n * Enables/disables centering of ads. This mode must be set before the service\n * is enabled. Centering is disabled by default.\n *\n * @param {boolean} centerAds true to center ads, false to left-align them.\n ", "range": [ - 10469, - 10693 + 10329, + 10553 ], "loc": { "start": { - "line": 326, + "line": 313, "column": 2 }, "end": { - "line": 331, + "line": 318, "column": 5 } } @@ -15006,16 +15124,16 @@ "type": "Block", "value": "*\n * Sets cookie options for GPT on the page.\n *\n * @param {number} options The cookie options to set. Set the options parameter\n * to the integer value 1 to ignore cookies, and to 0 to use cookies.\n * @returns {PubAdsService} The service object on which the method was called.\n ", "range": [ - 10804, - 11099 + 10672, + 10967 ], "loc": { "start": { - "line": 338, + "line": 325, "column": 2 }, "end": { - "line": 344, + "line": 331, "column": 5 } } @@ -15024,16 +15142,16 @@ "type": "Block", "value": "*\n * Configures whether all ads on the page should be forced to be rendered using\n * a SafeFrame container.\n *\n * @param {boolean} forceSafeFrame true to force all ads on the page to be\n * rendered in SafeFrames and false to change the previous setting to false.\n * Setting this to false when unspecified earlier, won't change anything.\n * @returns {PubAdsService} The service object on which the function was called.\n ", "range": [ - 11197, - 11636 + 11065, + 11504 ], "loc": { "start": { - "line": 350, + "line": 337, "column": 2 }, "end": { - "line": 358, + "line": 345, "column": 5 } } @@ -15042,16 +15160,16 @@ "type": "Block", "value": "*\n * Passes location information from websites so you can geo-target line items\n * to specific locations. {@link DFP} will not use location data unless this feature\n * has been enabled for your network.\n *\n * @param {string|number} latitudeOrAddress Latitude or freeform address.\n * @param {number} [optLongitude] The longitude (if a latitude was provided as first argument).\n * @param {number} [optRadius] The radius in millimeters. Will be rounded to closest integer.\n * Only used when passing the latitude and longitude.\n * @returns {PubAdsService} The service object on which the method was called.\n ", "range": [ - 11750, - 12378 + 11618, + 12246 ], "loc": { "start": { - "line": 364, + "line": 351, "column": 2 }, "end": { - "line": 374, + "line": 361, "column": 5 } } @@ -15060,16 +15178,16 @@ "type": "Block", "value": "*\n * Sets the value for the publisher-provided ID.\n *\n * @param {string} ppid An alphanumeric ID provided by the publisher with a\n * recommended maximum of 150 characters.\n * @returns {PubAdsService} The service object on which the method was called.\n ", "range": [ - 12886, - 13154 + 12754, + 13022 ], "loc": { "start": { - "line": 390, + "line": 377, "column": 2 }, "end": { - "line": 396, + "line": 383, "column": 5 } } @@ -15078,16 +15196,16 @@ "type": "Block", "value": "*\n * Sets the page-level preferences for SafeFrame configuration. Any\n * unrecognized keys in the config object will be ignored. The entire config\n * will be ignored if an invalid value is passed for a recognized key. These\n * page level preferences will be overriden by slot level preferences, if\n * specified.\n *\n * @param {SafeFrameConfig} config The configuration object.\n * @returns {PubAdsService} The service object on which the method was called.\n ", "range": [ - 13243, - 13721 + 13111, + 13589 ], "loc": { "start": { - "line": 402, + "line": 389, "column": 2 }, "end": { - "line": 411, + "line": 398, "column": 5 } } @@ -15096,16 +15214,16 @@ "type": "Block", "value": "*\n * Configures whether the page should be treated as child-directed.\n *\n * @param {number} value The child-directed treatment tag status to set. Set\n * the options parameter to the integer value 1 to mark the ad request as\n * child-directed, and to 0 for ad requests that are not child-directed.\n * @returns {PubAdsService} The service object on which the method was called.\n ", "range": [ - 13821, - 14216 + 13689, + 14084 ], "loc": { "start": { - "line": 417, + "line": 404, "column": 2 }, "end": { - "line": 424, + "line": 411, "column": 5 } } @@ -15114,16 +15232,16 @@ "type": "Block", "value": "*\n * Clears the configuration for whether the page should be treated as child-directed.\n *\n * @returns {PubAdsService} The service object on which the method was called.\n ", "range": [ - 14340, - 14523 + 14208, + 14391 ], "loc": { "start": { - "line": 430, + "line": 417, "column": 2 }, "end": { - "line": 434, + "line": 421, "column": 5 } } @@ -15132,16 +15250,16 @@ "type": "Block", "value": "*\n * Sets the video content information to be sent along with the ad requests for\n * targeting and content exclusion purposes. Video ads will be automatically\n * enabled when this method is called. For videoContentId and videoCmsId, use\n * the values that are provided to the {@link DFP} content ingestion service.\n *\n * @param {string} videoContentId The video content ID.\n * @param {string} videoCmsId The video CMS ID.\n ", "range": [ - 14643, - 15086 + 14511, + 14954 ], "loc": { "start": { - "line": 440, + "line": 427, "column": 2 }, "end": { - "line": 448, + "line": 435, "column": 5 } } @@ -15150,16 +15268,34 @@ "type": "Block", "value": "*\n * Changes the correlator that is sent with ad requests, effectively starting\n * a new page view. The correlator is the same for all the ad requests coming\n * from one page view, and unique across page views. Only applies to async mode.\n *\n * @returns {PubAdsService} The service object on which the function was called.\n ", "range": [ - 15236, - 15576 + 15104, + 15444 + ], + "loc": { + "start": { + "line": 441, + "column": 2 + }, + "end": { + "line": 447, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * Conditionally execute a function unless the service has already been\n * enabled.\n *\n * @param {function} fn The function to call if the service is not enabled\n * @returns {boolean} true if the function was called; false if the service has\n * already been enabled.\n ", + "range": [ + 15492, + 15780 ], "loc": { "start": { - "line": 454, + "line": 452, "column": 2 }, "end": { - "line": 460, + "line": 459, "column": 5 } } diff --git a/docs/ast/source/Service.js.json b/docs/ast/source/Service.js.json index 9a37a82..3ec3ac3 100644 --- a/docs/ast/source/Service.js.json +++ b/docs/ast/source/Service.js.json @@ -4223,10 +4223,10 @@ "trailingComments": [ { "type": "Block", - "value": "*\n * Returns a map of ID's to slots.\n *\n * @experimental\n * @returns {object} The map of ID's to slots.\n ", + "value": "*\n * Returns a map of IDs to slots.\n *\n * @experimental\n * @returns {Object} The map of IDs to slots.\n ", "range": [ 1870, - 1989 + 1987 ], "loc": { "start": { @@ -4248,8 +4248,8 @@ "type": "Identifier", "name": "getSlotIdMap", "range": [ - 1992, - 2004 + 1990, + 2002 ], "loc": { "start": { @@ -4280,8 +4280,8 @@ "type": "Identifier", "name": "Object", "range": [ - 2020, - 2026 + 2018, + 2024 ], "loc": { "start": { @@ -4298,8 +4298,8 @@ "type": "Identifier", "name": "assign", "range": [ - 2027, - 2033 + 2025, + 2031 ], "loc": { "start": { @@ -4313,8 +4313,8 @@ } }, "range": [ - 2020, - 2033 + 2018, + 2031 ], "loc": { "start": { @@ -4332,8 +4332,8 @@ "type": "ObjectExpression", "properties": [], "range": [ - 2034, - 2036 + 2032, + 2034 ], "loc": { "start": { @@ -4352,8 +4352,8 @@ "object": { "type": "ThisExpression", "range": [ - 2038, - 2042 + 2036, + 2040 ], "loc": { "start": { @@ -4370,8 +4370,8 @@ "type": "Identifier", "name": "_slotIdMap", "range": [ - 2043, - 2053 + 2041, + 2051 ], "loc": { "start": { @@ -4385,8 +4385,8 @@ } }, "range": [ - 2038, - 2053 + 2036, + 2051 ], "loc": { "start": { @@ -4401,8 +4401,8 @@ } ], "range": [ - 2020, - 2054 + 2018, + 2052 ], "loc": { "start": { @@ -4416,8 +4416,8 @@ } }, "range": [ - 2013, - 2055 + 2011, + 2053 ], "loc": { "start": { @@ -4432,8 +4432,8 @@ } ], "range": [ - 2007, - 2059 + 2005, + 2057 ], "loc": { "start": { @@ -4449,8 +4449,8 @@ "generator": false, "expression": false, "range": [ - 2004, - 2059 + 2002, + 2057 ], "loc": { "start": { @@ -4466,8 +4466,8 @@ "kind": "method", "computed": false, "range": [ - 1992, - 2059 + 1990, + 2057 ], "loc": { "start": { @@ -4482,10 +4482,10 @@ "leadingComments": [ { "type": "Block", - "value": "*\n * Returns a map of ID's to slots.\n *\n * @experimental\n * @returns {object} The map of ID's to slots.\n ", + "value": "*\n * Returns a map of IDs to slots.\n *\n * @experimental\n * @returns {Object} The map of IDs to slots.\n ", "range": [ 1870, - 1989 + 1987 ], "loc": { "start": { @@ -4502,10 +4502,10 @@ "trailingComments": [ { "type": "Block", - "value": "*\n * Registers a listener that allows you to set up and call a JavaScript\n * function when a specific {@link GPT} event happens on the page. The following\n * events are supported:\n * * googletag.events.ImpressionViewableEvent\n * * googletag.events.SlotOnloadEvent\n * * googletag.events.SlotRenderEndedEvent\n * * googletag.events.SlotVisibilityChangedEvent\n *\n * An object of the appropriate event type is passed to the listener when it is called.\n *\n * @param {string} eventType A string representing the type of event generated\n * by GPT. Event types are case sensitive.\n * @param {function(event: object)} listener Function that takes a single event object argument.\n * @returns {Service} The service object on which the method was called.\n ", + "value": "*\n * Registers a listener that allows you to set up and call a JavaScript\n * function when a specific {@link GPT} event happens on the page. The following\n * events are supported:\n * * googletag.events.ImpressionViewableEvent\n * * googletag.events.SlotOnloadEvent\n * * googletag.events.SlotRenderEndedEvent\n * * googletag.events.SlotVisibilityChangedEvent\n *\n * An object of the appropriate event type is passed to the listener when it is called.\n *\n * @param {string} eventType A string representing the type of event generated\n * by GPT. Event types are case sensitive.\n * @param {function(event: Object)} listener Function that takes a single event object argument.\n * @returns {Service} The service object on which the method was called.\n ", "range": [ - 2063, - 2840 + 2061, + 2838 ], "loc": { "start": { @@ -4527,8 +4527,8 @@ "type": "Identifier", "name": "addEventListener", "range": [ - 2843, - 2859 + 2841, + 2857 ], "loc": { "start": { @@ -4549,8 +4549,8 @@ "type": "Identifier", "name": "eventType", "range": [ - 2860, - 2869 + 2858, + 2867 ], "loc": { "start": { @@ -4567,8 +4567,8 @@ "type": "Identifier", "name": "listener", "range": [ - 2871, - 2879 + 2869, + 2877 ], "loc": { "start": { @@ -4599,8 +4599,8 @@ "object": { "type": "ThisExpression", "range": [ - 2887, - 2891 + 2885, + 2889 ], "loc": { "start": { @@ -4617,8 +4617,8 @@ "type": "Identifier", "name": "_listeners", "range": [ - 2892, - 2902 + 2890, + 2900 ], "loc": { "start": { @@ -4632,8 +4632,8 @@ } }, "range": [ - 2887, - 2902 + 2885, + 2900 ], "loc": { "start": { @@ -4650,8 +4650,8 @@ "type": "Identifier", "name": "eventType", "range": [ - 2903, - 2912 + 2901, + 2910 ], "loc": { "start": { @@ -4665,8 +4665,8 @@ } }, "range": [ - 2887, - 2913 + 2885, + 2911 ], "loc": { "start": { @@ -4691,8 +4691,8 @@ "object": { "type": "ThisExpression", "range": [ - 2916, - 2920 + 2914, + 2918 ], "loc": { "start": { @@ -4709,8 +4709,8 @@ "type": "Identifier", "name": "_listeners", "range": [ - 2921, - 2931 + 2919, + 2929 ], "loc": { "start": { @@ -4724,8 +4724,8 @@ } }, "range": [ - 2916, - 2931 + 2914, + 2929 ], "loc": { "start": { @@ -4742,8 +4742,8 @@ "type": "Identifier", "name": "eventType", "range": [ - 2932, - 2941 + 2930, + 2939 ], "loc": { "start": { @@ -4757,8 +4757,8 @@ } }, "range": [ - 2916, - 2942 + 2914, + 2940 ], "loc": { "start": { @@ -4775,8 +4775,8 @@ "type": "ArrayExpression", "elements": [], "range": [ - 2946, - 2948 + 2944, + 2946 ], "loc": { "start": { @@ -4790,8 +4790,8 @@ } }, "range": [ - 2916, - 2948 + 2914, + 2946 ], "loc": { "start": { @@ -4805,8 +4805,8 @@ } }, "range": [ - 2887, - 2948 + 2885, + 2946 ], "loc": { "start": { @@ -4820,8 +4820,8 @@ } }, "range": [ - 2887, - 2949 + 2885, + 2947 ], "loc": { "start": { @@ -4850,8 +4850,8 @@ "object": { "type": "ThisExpression", "range": [ - 2954, - 2958 + 2952, + 2956 ], "loc": { "start": { @@ -4868,8 +4868,8 @@ "type": "Identifier", "name": "_listeners", "range": [ - 2959, - 2969 + 2957, + 2967 ], "loc": { "start": { @@ -4883,8 +4883,8 @@ } }, "range": [ - 2954, - 2969 + 2952, + 2967 ], "loc": { "start": { @@ -4901,8 +4901,8 @@ "type": "Identifier", "name": "eventType", "range": [ - 2970, - 2979 + 2968, + 2977 ], "loc": { "start": { @@ -4916,8 +4916,8 @@ } }, "range": [ - 2954, - 2980 + 2952, + 2978 ], "loc": { "start": { @@ -4934,8 +4934,8 @@ "type": "Identifier", "name": "push", "range": [ - 2981, - 2985 + 2979, + 2983 ], "loc": { "start": { @@ -4949,8 +4949,8 @@ } }, "range": [ - 2954, - 2985 + 2952, + 2983 ], "loc": { "start": { @@ -4968,8 +4968,8 @@ "type": "Identifier", "name": "listener", "range": [ - 2986, - 2994 + 2984, + 2992 ], "loc": { "start": { @@ -4984,8 +4984,8 @@ } ], "range": [ - 2954, - 2995 + 2952, + 2993 ], "loc": { "start": { @@ -4999,8 +4999,8 @@ } }, "range": [ - 2954, - 2996 + 2952, + 2994 ], "loc": { "start": { @@ -5018,8 +5018,8 @@ "argument": { "type": "ThisExpression", "range": [ - 3008, - 3012 + 3006, + 3010 ], "loc": { "start": { @@ -5033,8 +5033,8 @@ } }, "range": [ - 3001, - 3013 + 2999, + 3011 ], "loc": { "start": { @@ -5049,8 +5049,8 @@ } ], "range": [ - 2881, - 3017 + 2879, + 3015 ], "loc": { "start": { @@ -5066,8 +5066,8 @@ "generator": false, "expression": false, "range": [ - 2859, - 3017 + 2857, + 3015 ], "loc": { "start": { @@ -5083,8 +5083,8 @@ "kind": "method", "computed": false, "range": [ - 2843, - 3017 + 2841, + 3015 ], "loc": { "start": { @@ -5099,10 +5099,10 @@ "leadingComments": [ { "type": "Block", - "value": "*\n * Registers a listener that allows you to set up and call a JavaScript\n * function when a specific {@link GPT} event happens on the page. The following\n * events are supported:\n * * googletag.events.ImpressionViewableEvent\n * * googletag.events.SlotOnloadEvent\n * * googletag.events.SlotRenderEndedEvent\n * * googletag.events.SlotVisibilityChangedEvent\n *\n * An object of the appropriate event type is passed to the listener when it is called.\n *\n * @param {string} eventType A string representing the type of event generated\n * by GPT. Event types are case sensitive.\n * @param {function(event: object)} listener Function that takes a single event object argument.\n * @returns {Service} The service object on which the method was called.\n ", + "value": "*\n * Registers a listener that allows you to set up and call a JavaScript\n * function when a specific {@link GPT} event happens on the page. The following\n * events are supported:\n * * googletag.events.ImpressionViewableEvent\n * * googletag.events.SlotOnloadEvent\n * * googletag.events.SlotRenderEndedEvent\n * * googletag.events.SlotVisibilityChangedEvent\n *\n * An object of the appropriate event type is passed to the listener when it is called.\n *\n * @param {string} eventType A string representing the type of event generated\n * by GPT. Event types are case sensitive.\n * @param {function(event: Object)} listener Function that takes a single event object argument.\n * @returns {Service} The service object on which the method was called.\n ", "range": [ - 2063, - 2840 + 2061, + 2838 ], "loc": { "start": { @@ -5119,10 +5119,10 @@ "trailingComments": [ { "type": "Block", - "value": "*\n * Fires the specified eventType, calling all registered listeners with the\n * specified event object.\n *\n * @param {string} eventType The event type to fire.\n * @param {object} event The event object to pass to listeners.\n * @private\n ", + "value": "*\n * Fires the specified eventType, calling all registered listeners with the\n * specified event object.\n *\n * @param {string} eventType The event type to fire.\n * @param {Object} event The event object to pass to listeners.\n * @private\n ", "range": [ - 3021, - 3277 + 3019, + 3275 ], "loc": { "start": { @@ -5144,8 +5144,8 @@ "type": "Identifier", "name": "_fireEvent", "range": [ - 3280, - 3290 + 3278, + 3288 ], "loc": { "start": { @@ -5166,8 +5166,8 @@ "type": "Identifier", "name": "eventType", "range": [ - 3291, - 3300 + 3289, + 3298 ], "loc": { "start": { @@ -5184,8 +5184,8 @@ "type": "Identifier", "name": "event", "range": [ - 3302, - 3307 + 3300, + 3305 ], "loc": { "start": { @@ -5213,8 +5213,8 @@ "type": "Identifier", "name": "listener", "range": [ - 3324, - 3332 + 3322, + 3330 ], "loc": { "start": { @@ -5229,8 +5229,8 @@ }, "init": null, "range": [ - 3324, - 3332 + 3322, + 3330 ], "loc": { "start": { @@ -5246,8 +5246,8 @@ ], "kind": "let", "range": [ - 3320, - 3332 + 3318, + 3330 ], "loc": { "start": { @@ -5272,8 +5272,8 @@ "object": { "type": "ThisExpression", "range": [ - 3337, - 3341 + 3335, + 3339 ], "loc": { "start": { @@ -5290,8 +5290,8 @@ "type": "Identifier", "name": "_listeners", "range": [ - 3342, - 3352 + 3340, + 3350 ], "loc": { "start": { @@ -5305,8 +5305,8 @@ } }, "range": [ - 3337, - 3352 + 3335, + 3350 ], "loc": { "start": { @@ -5323,8 +5323,8 @@ "type": "Identifier", "name": "eventType", "range": [ - 3353, - 3362 + 3351, + 3360 ], "loc": { "start": { @@ -5338,8 +5338,8 @@ } }, "range": [ - 3337, - 3363 + 3335, + 3361 ], "loc": { "start": { @@ -5356,8 +5356,8 @@ "type": "ArrayExpression", "elements": [], "range": [ - 3367, - 3369 + 3365, + 3367 ], "loc": { "start": { @@ -5371,8 +5371,8 @@ } }, "range": [ - 3337, - 3369 + 3335, + 3367 ], "loc": { "start": { @@ -5396,8 +5396,8 @@ "type": "Identifier", "name": "listener", "range": [ - 3380, - 3388 + 3378, + 3386 ], "loc": { "start": { @@ -5415,8 +5415,8 @@ "type": "Identifier", "name": "event", "range": [ - 3389, - 3394 + 3387, + 3392 ], "loc": { "start": { @@ -5431,8 +5431,8 @@ } ], "range": [ - 3380, - 3395 + 3378, + 3393 ], "loc": { "start": { @@ -5446,8 +5446,8 @@ } }, "range": [ - 3380, - 3396 + 3378, + 3394 ], "loc": { "start": { @@ -5462,8 +5462,8 @@ } ], "range": [ - 3372, - 3402 + 3370, + 3400 ], "loc": { "start": { @@ -5477,8 +5477,8 @@ } }, "range": [ - 3315, - 3402 + 3313, + 3400 ], "loc": { "start": { @@ -5493,8 +5493,8 @@ } ], "range": [ - 3309, - 3406 + 3307, + 3404 ], "loc": { "start": { @@ -5510,8 +5510,8 @@ "generator": false, "expression": false, "range": [ - 3290, - 3406 + 3288, + 3404 ], "loc": { "start": { @@ -5527,8 +5527,8 @@ "kind": "method", "computed": false, "range": [ - 3280, - 3406 + 3278, + 3404 ], "loc": { "start": { @@ -5543,10 +5543,10 @@ "leadingComments": [ { "type": "Block", - "value": "*\n * Fires the specified eventType, calling all registered listeners with the\n * specified event object.\n *\n * @param {string} eventType The event type to fire.\n * @param {object} event The event object to pass to listeners.\n * @private\n ", + "value": "*\n * Fires the specified eventType, calling all registered listeners with the\n * specified event object.\n *\n * @param {string} eventType The event type to fire.\n * @param {Object} event The event object to pass to listeners.\n * @private\n ", "range": [ - 3021, - 3277 + 3019, + 3275 ], "loc": { "start": { @@ -5565,8 +5565,8 @@ "type": "Block", "value": "*\n * Returns the value for the AdSense attribute associated with the given key.\n *\n * @param {string} key Name of the attribute to look for.\n * @returns {?string} Current value for the attribute key, or null if the key\n * is not present\n ", "range": [ - 3410, - 3664 + 3408, + 3662 ], "loc": { "start": { @@ -5588,8 +5588,8 @@ "type": "Identifier", "name": "get", "range": [ - 3667, - 3670 + 3665, + 3668 ], "loc": { "start": { @@ -5610,8 +5610,8 @@ "type": "Identifier", "name": "key", "range": [ - 3671, - 3674 + 3669, + 3672 ], "loc": { "start": { @@ -5642,8 +5642,8 @@ "object": { "type": "ThisExpression", "range": [ - 3689, - 3693 + 3687, + 3691 ], "loc": { "start": { @@ -5660,8 +5660,8 @@ "type": "Identifier", "name": "_attributes", "range": [ - 3694, - 3705 + 3692, + 3703 ], "loc": { "start": { @@ -5675,8 +5675,8 @@ } }, "range": [ - 3689, - 3705 + 3687, + 3703 ], "loc": { "start": { @@ -5693,8 +5693,8 @@ "type": "Identifier", "name": "key", "range": [ - 3706, - 3709 + 3704, + 3707 ], "loc": { "start": { @@ -5708,8 +5708,8 @@ } }, "range": [ - 3689, - 3710 + 3687, + 3708 ], "loc": { "start": { @@ -5727,8 +5727,8 @@ "value": null, "raw": "null", "range": [ - 3714, - 3718 + 3712, + 3716 ], "loc": { "start": { @@ -5742,8 +5742,8 @@ } }, "range": [ - 3689, - 3718 + 3687, + 3716 ], "loc": { "start": { @@ -5757,8 +5757,8 @@ } }, "range": [ - 3682, - 3719 + 3680, + 3717 ], "loc": { "start": { @@ -5773,8 +5773,8 @@ } ], "range": [ - 3676, - 3723 + 3674, + 3721 ], "loc": { "start": { @@ -5790,8 +5790,8 @@ "generator": false, "expression": false, "range": [ - 3670, - 3723 + 3668, + 3721 ], "loc": { "start": { @@ -5807,8 +5807,8 @@ "kind": "method", "computed": false, "range": [ - 3667, - 3723 + 3665, + 3721 ], "loc": { "start": { @@ -5825,8 +5825,8 @@ "type": "Block", "value": "*\n * Returns the value for the AdSense attribute associated with the given key.\n *\n * @param {string} key Name of the attribute to look for.\n * @returns {?string} Current value for the attribute key, or null if the key\n * is not present\n ", "range": [ - 3410, - 3664 + 3408, + 3662 ], "loc": { "start": { @@ -5845,8 +5845,8 @@ "type": "Block", "value": "*\n * Returns the attribute keys that have been set on this service.\n *\n * @returns {!Array} Array of attribute keys set on this service.\n * Ordering is undefined.\n ", "range": [ - 3727, - 3913 + 3725, + 3911 ], "loc": { "start": { @@ -5868,8 +5868,8 @@ "type": "Identifier", "name": "getAttributeKeys", "range": [ - 3916, - 3932 + 3914, + 3930 ], "loc": { "start": { @@ -5900,8 +5900,8 @@ "type": "Identifier", "name": "Object", "range": [ - 3948, - 3954 + 3946, + 3952 ], "loc": { "start": { @@ -5918,8 +5918,8 @@ "type": "Identifier", "name": "keys", "range": [ - 3955, - 3959 + 3953, + 3957 ], "loc": { "start": { @@ -5933,8 +5933,8 @@ } }, "range": [ - 3948, - 3959 + 3946, + 3957 ], "loc": { "start": { @@ -5954,8 +5954,8 @@ "object": { "type": "ThisExpression", "range": [ - 3960, - 3964 + 3958, + 3962 ], "loc": { "start": { @@ -5972,8 +5972,8 @@ "type": "Identifier", "name": "_attributes", "range": [ - 3965, - 3976 + 3963, + 3974 ], "loc": { "start": { @@ -5987,8 +5987,8 @@ } }, "range": [ - 3960, - 3976 + 3958, + 3974 ], "loc": { "start": { @@ -6003,8 +6003,8 @@ } ], "range": [ - 3948, - 3977 + 3946, + 3975 ], "loc": { "start": { @@ -6018,8 +6018,8 @@ } }, "range": [ - 3941, - 3978 + 3939, + 3976 ], "loc": { "start": { @@ -6034,8 +6034,8 @@ } ], "range": [ - 3935, - 3982 + 3933, + 3980 ], "loc": { "start": { @@ -6051,8 +6051,8 @@ "generator": false, "expression": false, "range": [ - 3932, - 3982 + 3930, + 3980 ], "loc": { "start": { @@ -6068,8 +6068,8 @@ "kind": "method", "computed": false, "range": [ - 3916, - 3982 + 3914, + 3980 ], "loc": { "start": { @@ -6086,8 +6086,8 @@ "type": "Block", "value": "*\n * Returns the attribute keys that have been set on this service.\n *\n * @returns {!Array} Array of attribute keys set on this service.\n * Ordering is undefined.\n ", "range": [ - 3727, - 3913 + 3725, + 3911 ], "loc": { "start": { @@ -6106,8 +6106,8 @@ "type": "Block", "value": "*\n * Sets values for AdSense attributes that apply to all ad slots under the\n * publisher ads service. See AdSense Attributes for a list of available keys\n * and values. Calling this more than once for the same key will override\n * previously set values for that key. All values must be set before the\n * first display call.\n *\n * @param {string} key The name of the attribute.\n * @param {string} value Attribute value.\n * @returns {Service} The service object on which the method was called.\n ", "range": [ - 3986, - 4504 + 3984, + 4502 ], "loc": { "start": { @@ -6129,8 +6129,8 @@ "type": "Identifier", "name": "set", "range": [ - 4507, - 4510 + 4505, + 4508 ], "loc": { "start": { @@ -6151,8 +6151,8 @@ "type": "Identifier", "name": "key", "range": [ - 4511, - 4514 + 4509, + 4512 ], "loc": { "start": { @@ -6169,8 +6169,8 @@ "type": "Identifier", "name": "value", "range": [ - 4516, - 4521 + 4514, + 4519 ], "loc": { "start": { @@ -6201,8 +6201,8 @@ "object": { "type": "ThisExpression", "range": [ - 4529, - 4533 + 4527, + 4531 ], "loc": { "start": { @@ -6219,8 +6219,8 @@ "type": "Identifier", "name": "_attributes", "range": [ - 4534, - 4545 + 4532, + 4543 ], "loc": { "start": { @@ -6234,8 +6234,8 @@ } }, "range": [ - 4529, - 4545 + 4527, + 4543 ], "loc": { "start": { @@ -6252,8 +6252,8 @@ "type": "Identifier", "name": "key", "range": [ - 4546, - 4549 + 4544, + 4547 ], "loc": { "start": { @@ -6267,8 +6267,8 @@ } }, "range": [ - 4529, - 4550 + 4527, + 4548 ], "loc": { "start": { @@ -6285,8 +6285,8 @@ "type": "Identifier", "name": "value", "range": [ - 4553, - 4558 + 4551, + 4556 ], "loc": { "start": { @@ -6300,8 +6300,8 @@ } }, "range": [ - 4529, - 4558 + 4527, + 4556 ], "loc": { "start": { @@ -6315,8 +6315,8 @@ } }, "range": [ - 4529, - 4559 + 4527, + 4557 ], "loc": { "start": { @@ -6334,8 +6334,8 @@ "argument": { "type": "ThisExpression", "range": [ - 4571, - 4575 + 4569, + 4573 ], "loc": { "start": { @@ -6349,8 +6349,8 @@ } }, "range": [ - 4564, - 4576 + 4562, + 4574 ], "loc": { "start": { @@ -6365,8 +6365,8 @@ } ], "range": [ - 4523, - 4580 + 4521, + 4578 ], "loc": { "start": { @@ -6382,8 +6382,8 @@ "generator": false, "expression": false, "range": [ - 4510, - 4580 + 4508, + 4578 ], "loc": { "start": { @@ -6399,8 +6399,8 @@ "kind": "method", "computed": false, "range": [ - 4507, - 4580 + 4505, + 4578 ], "loc": { "start": { @@ -6417,8 +6417,8 @@ "type": "Block", "value": "*\n * Sets values for AdSense attributes that apply to all ad slots under the\n * publisher ads service. See AdSense Attributes for a list of available keys\n * and values. Calling this more than once for the same key will override\n * previously set values for that key. All values must be set before the\n * first display call.\n *\n * @param {string} key The name of the attribute.\n * @param {string} value Attribute value.\n * @returns {Service} The service object on which the method was called.\n ", "range": [ - 3986, - 4504 + 3984, + 4502 ], "loc": { "start": { @@ -6437,8 +6437,8 @@ "type": "Block", "value": "*\n * Constructs and displays an ad slot with the given ad unit path and size.\n * This method does not work with single request mode.\n *\n * @param {string} adUnitPath Ad unit path of slot to be rendered.\n * @param {GeneralSize} size Width and height of the slot.\n * @param {string} [optDiv] ID of the div containing the slot.\n * @param {string} [optClickUrl] The click URL to use on this slot.\n ", "range": [ - 4584, - 4998 + 4582, + 4996 ], "loc": { "start": { @@ -6460,8 +6460,8 @@ "type": "Identifier", "name": "display", "range": [ - 5001, - 5008 + 4999, + 5006 ], "loc": { "start": { @@ -6482,8 +6482,8 @@ "type": "Identifier", "name": "adUnitPath", "range": [ - 5009, - 5019 + 5007, + 5017 ], "loc": { "start": { @@ -6500,8 +6500,8 @@ "type": "Identifier", "name": "size", "range": [ - 5021, - 5025 + 5019, + 5023 ], "loc": { "start": { @@ -6518,8 +6518,8 @@ "type": "Identifier", "name": "optDiv", "range": [ - 5027, - 5033 + 5025, + 5031 ], "loc": { "start": { @@ -6536,8 +6536,8 @@ "type": "Identifier", "name": "optClickUrl", "range": [ - 5035, - 5046 + 5033, + 5044 ], "loc": { "start": { @@ -6565,8 +6565,8 @@ "object": { "type": "ThisExpression", "range": [ - 5054, - 5058 + 5052, + 5056 ], "loc": { "start": { @@ -6583,8 +6583,8 @@ "type": "Identifier", "name": "_used", "range": [ - 5059, - 5064 + 5057, + 5062 ], "loc": { "start": { @@ -6598,8 +6598,8 @@ } }, "range": [ - 5054, - 5064 + 5052, + 5062 ], "loc": { "start": { @@ -6617,8 +6617,8 @@ "value": true, "raw": "true", "range": [ - 5067, - 5071 + 5065, + 5069 ], "loc": { "start": { @@ -6632,8 +6632,8 @@ } }, "range": [ - 5054, - 5071 + 5052, + 5069 ], "loc": { "start": { @@ -6647,8 +6647,8 @@ } }, "range": [ - 5054, - 5072 + 5052, + 5070 ], "loc": { "start": { @@ -6671,8 +6671,8 @@ "object": { "type": "ThisExpression", "range": [ - 5077, - 5081 + 5075, + 5079 ], "loc": { "start": { @@ -6689,8 +6689,8 @@ "type": "Identifier", "name": "enable", "range": [ - 5082, - 5088 + 5080, + 5086 ], "loc": { "start": { @@ -6704,8 +6704,8 @@ } }, "range": [ - 5077, - 5088 + 5075, + 5086 ], "loc": { "start": { @@ -6720,8 +6720,8 @@ }, "arguments": [], "range": [ - 5077, - 5090 + 5075, + 5088 ], "loc": { "start": { @@ -6735,8 +6735,8 @@ } }, "range": [ - 5077, - 5091 + 5075, + 5089 ], "loc": { "start": { @@ -6772,8 +6772,8 @@ "object": { "type": "ThisExpression", "range": [ - 5096, - 5100 + 5094, + 5098 ], "loc": { "start": { @@ -6790,8 +6790,8 @@ "type": "Identifier", "name": "_gpt", "range": [ - 5101, - 5105 + 5099, + 5103 ], "loc": { "start": { @@ -6805,8 +6805,8 @@ } }, "range": [ - 5096, - 5105 + 5094, + 5103 ], "loc": { "start": { @@ -6823,8 +6823,8 @@ "type": "Identifier", "name": "defineSlot", "range": [ - 5106, - 5116 + 5104, + 5114 ], "loc": { "start": { @@ -6838,8 +6838,8 @@ } }, "range": [ - 5096, - 5116 + 5094, + 5114 ], "loc": { "start": { @@ -6857,8 +6857,8 @@ "type": "Identifier", "name": "adUnitPath", "range": [ - 5117, - 5127 + 5115, + 5125 ], "loc": { "start": { @@ -6875,8 +6875,8 @@ "type": "Identifier", "name": "size", "range": [ - 5129, - 5133 + 5127, + 5131 ], "loc": { "start": { @@ -6893,8 +6893,8 @@ "type": "Identifier", "name": "optDiv", "range": [ - 5135, - 5141 + 5133, + 5139 ], "loc": { "start": { @@ -6909,8 +6909,8 @@ } ], "range": [ - 5096, - 5142 + 5094, + 5140 ], "loc": { "start": { @@ -6927,8 +6927,8 @@ "type": "Identifier", "name": "addService", "range": [ - 5143, - 5153 + 5141, + 5151 ], "loc": { "start": { @@ -6942,8 +6942,8 @@ } }, "range": [ - 5096, - 5153 + 5094, + 5151 ], "loc": { "start": { @@ -6960,8 +6960,8 @@ { "type": "ThisExpression", "range": [ - 5154, - 5158 + 5152, + 5156 ], "loc": { "start": { @@ -6976,8 +6976,8 @@ } ], "range": [ - 5096, - 5159 + 5094, + 5157 ], "loc": { "start": { @@ -6994,8 +6994,8 @@ "type": "Identifier", "name": "setClickUrl", "range": [ - 5160, - 5171 + 5158, + 5169 ], "loc": { "start": { @@ -7009,8 +7009,8 @@ } }, "range": [ - 5096, - 5171 + 5094, + 5169 ], "loc": { "start": { @@ -7028,8 +7028,8 @@ "type": "Identifier", "name": "optClickUrl", "range": [ - 5172, - 5183 + 5170, + 5181 ], "loc": { "start": { @@ -7044,8 +7044,8 @@ } ], "range": [ - 5096, - 5184 + 5094, + 5182 ], "loc": { "start": { @@ -7059,8 +7059,8 @@ } }, "range": [ - 5096, - 5185 + 5094, + 5183 ], "loc": { "start": { @@ -7075,8 +7075,8 @@ } ], "range": [ - 5048, - 5189 + 5046, + 5187 ], "loc": { "start": { @@ -7092,8 +7092,8 @@ "generator": false, "expression": false, "range": [ - 5008, - 5189 + 5006, + 5187 ], "loc": { "start": { @@ -7109,8 +7109,8 @@ "kind": "method", "computed": false, "range": [ - 5001, - 5189 + 4999, + 5187 ], "loc": { "start": { @@ -7127,8 +7127,8 @@ "type": "Block", "value": "*\n * Constructs and displays an ad slot with the given ad unit path and size.\n * This method does not work with single request mode.\n *\n * @param {string} adUnitPath Ad unit path of slot to be rendered.\n * @param {GeneralSize} size Width and height of the slot.\n * @param {string} [optDiv] ID of the div containing the slot.\n * @param {string} [optClickUrl] The click URL to use on this slot.\n ", "range": [ - 4584, - 4998 + 4582, + 4996 ], "loc": { "start": { @@ -7147,8 +7147,8 @@ "type": "Block", "value": "*\n * Enables the service.\n *\n * @experimental\n ", "range": [ - 5193, - 5252 + 5191, + 5250 ], "loc": { "start": { @@ -7170,8 +7170,8 @@ "type": "Identifier", "name": "enable", "range": [ - 5255, - 5261 + 5253, + 5259 ], "loc": { "start": { @@ -7202,8 +7202,8 @@ "object": { "type": "ThisExpression", "range": [ - 5270, - 5274 + 5268, + 5272 ], "loc": { "start": { @@ -7220,8 +7220,8 @@ "type": "Identifier", "name": "_enabled", "range": [ - 5275, - 5283 + 5273, + 5281 ], "loc": { "start": { @@ -7235,8 +7235,8 @@ } }, "range": [ - 5270, - 5283 + 5268, + 5281 ], "loc": { "start": { @@ -7254,8 +7254,8 @@ "value": true, "raw": "true", "range": [ - 5286, - 5290 + 5284, + 5288 ], "loc": { "start": { @@ -7269,8 +7269,8 @@ } }, "range": [ - 5270, - 5290 + 5268, + 5288 ], "loc": { "start": { @@ -7284,8 +7284,8 @@ } }, "range": [ - 5270, - 5291 + 5268, + 5289 ], "loc": { "start": { @@ -7300,8 +7300,8 @@ } ], "range": [ - 5264, - 5295 + 5262, + 5293 ], "loc": { "start": { @@ -7317,8 +7317,8 @@ "generator": false, "expression": false, "range": [ - 5261, - 5295 + 5259, + 5293 ], "loc": { "start": { @@ -7334,8 +7334,8 @@ "kind": "method", "computed": false, "range": [ - 5255, - 5295 + 5253, + 5293 ], "loc": { "start": { @@ -7352,8 +7352,8 @@ "type": "Block", "value": "*\n * Enables the service.\n *\n * @experimental\n ", "range": [ - 5193, - 5252 + 5191, + 5250 ], "loc": { "start": { @@ -7372,7 +7372,7 @@ ], "range": [ 106, - 5297 + 5295 ], "loc": { "start": { @@ -7387,7 +7387,7 @@ }, "range": [ 92, - 5297 + 5295 ], "loc": { "start": { @@ -7423,7 +7423,7 @@ }, "range": [ 77, - 5297 + 5295 ], "loc": { "start": { @@ -7460,7 +7460,7 @@ "sourceType": "module", "range": [ 77, - 5297 + 5295 ], "loc": { "start": { @@ -7601,10 +7601,10 @@ }, { "type": "Block", - "value": "*\n * Returns a map of ID's to slots.\n *\n * @experimental\n * @returns {object} The map of ID's to slots.\n ", + "value": "*\n * Returns a map of IDs to slots.\n *\n * @experimental\n * @returns {Object} The map of IDs to slots.\n ", "range": [ 1870, - 1989 + 1987 ], "loc": { "start": { @@ -7619,10 +7619,10 @@ }, { "type": "Block", - "value": "*\n * Registers a listener that allows you to set up and call a JavaScript\n * function when a specific {@link GPT} event happens on the page. The following\n * events are supported:\n * * googletag.events.ImpressionViewableEvent\n * * googletag.events.SlotOnloadEvent\n * * googletag.events.SlotRenderEndedEvent\n * * googletag.events.SlotVisibilityChangedEvent\n *\n * An object of the appropriate event type is passed to the listener when it is called.\n *\n * @param {string} eventType A string representing the type of event generated\n * by GPT. Event types are case sensitive.\n * @param {function(event: object)} listener Function that takes a single event object argument.\n * @returns {Service} The service object on which the method was called.\n ", + "value": "*\n * Registers a listener that allows you to set up and call a JavaScript\n * function when a specific {@link GPT} event happens on the page. The following\n * events are supported:\n * * googletag.events.ImpressionViewableEvent\n * * googletag.events.SlotOnloadEvent\n * * googletag.events.SlotRenderEndedEvent\n * * googletag.events.SlotVisibilityChangedEvent\n *\n * An object of the appropriate event type is passed to the listener when it is called.\n *\n * @param {string} eventType A string representing the type of event generated\n * by GPT. Event types are case sensitive.\n * @param {function(event: Object)} listener Function that takes a single event object argument.\n * @returns {Service} The service object on which the method was called.\n ", "range": [ - 2063, - 2840 + 2061, + 2838 ], "loc": { "start": { @@ -7637,10 +7637,10 @@ }, { "type": "Block", - "value": "*\n * Fires the specified eventType, calling all registered listeners with the\n * specified event object.\n *\n * @param {string} eventType The event type to fire.\n * @param {object} event The event object to pass to listeners.\n * @private\n ", + "value": "*\n * Fires the specified eventType, calling all registered listeners with the\n * specified event object.\n *\n * @param {string} eventType The event type to fire.\n * @param {Object} event The event object to pass to listeners.\n * @private\n ", "range": [ - 3021, - 3277 + 3019, + 3275 ], "loc": { "start": { @@ -7657,8 +7657,8 @@ "type": "Block", "value": "*\n * Returns the value for the AdSense attribute associated with the given key.\n *\n * @param {string} key Name of the attribute to look for.\n * @returns {?string} Current value for the attribute key, or null if the key\n * is not present\n ", "range": [ - 3410, - 3664 + 3408, + 3662 ], "loc": { "start": { @@ -7675,8 +7675,8 @@ "type": "Block", "value": "*\n * Returns the attribute keys that have been set on this service.\n *\n * @returns {!Array} Array of attribute keys set on this service.\n * Ordering is undefined.\n ", "range": [ - 3727, - 3913 + 3725, + 3911 ], "loc": { "start": { @@ -7693,8 +7693,8 @@ "type": "Block", "value": "*\n * Sets values for AdSense attributes that apply to all ad slots under the\n * publisher ads service. See AdSense Attributes for a list of available keys\n * and values. Calling this more than once for the same key will override\n * previously set values for that key. All values must be set before the\n * first display call.\n *\n * @param {string} key The name of the attribute.\n * @param {string} value Attribute value.\n * @returns {Service} The service object on which the method was called.\n ", "range": [ - 3986, - 4504 + 3984, + 4502 ], "loc": { "start": { @@ -7711,8 +7711,8 @@ "type": "Block", "value": "*\n * Constructs and displays an ad slot with the given ad unit path and size.\n * This method does not work with single request mode.\n *\n * @param {string} adUnitPath Ad unit path of slot to be rendered.\n * @param {GeneralSize} size Width and height of the slot.\n * @param {string} [optDiv] ID of the div containing the slot.\n * @param {string} [optClickUrl] The click URL to use on this slot.\n ", "range": [ - 4584, - 4998 + 4582, + 4996 ], "loc": { "start": { @@ -7729,8 +7729,8 @@ "type": "Block", "value": "*\n * Enables the service.\n *\n * @experimental\n ", "range": [ - 5193, - 5252 + 5191, + 5250 ], "loc": { "start": { diff --git a/docs/ast/source/Size.js.json b/docs/ast/source/Size.js.json index bd02e43..77cc97a 100644 --- a/docs/ast/source/Size.js.json +++ b/docs/ast/source/Size.js.json @@ -811,7 +811,7 @@ "trailingComments": [ { "type": "Block", - "value": "*\n * Returns whether the {@link Size} is empty.\n *\n * @experimental\n * @type {boolean} True if the size is empty.\n ", + "value": "*\n * Returns whether the {@link Size} is empty.\n *\n * @experimental\n * @type {boolean} true if the size is empty.\n ", "range": [ 698, 827 @@ -1069,7 +1069,7 @@ "leadingComments": [ { "type": "Block", - "value": "*\n * Returns whether the {@link Size} is empty.\n *\n * @experimental\n * @type {boolean} True if the size is empty.\n ", + "value": "*\n * Returns whether the {@link Size} is empty.\n *\n * @experimental\n * @type {boolean} true if the size is empty.\n ", "range": [ 698, 827 @@ -3042,7 +3042,7 @@ }, { "type": "Block", - "value": "*\n * Returns whether the {@link Size} is empty.\n *\n * @experimental\n * @type {boolean} True if the size is empty.\n ", + "value": "*\n * Returns whether the {@link Size} is empty.\n *\n * @experimental\n * @type {boolean} true if the size is empty.\n ", "range": [ 698, 827 diff --git a/docs/ast/source/Slot.js.json b/docs/ast/source/Slot.js.json index db1cefd..6041e09 100644 --- a/docs/ast/source/Slot.js.json +++ b/docs/ast/source/Slot.js.json @@ -510,22 +510,95 @@ "line": 7, "column": 30 } + } + }, + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "TargetingMap", + "range": [ + 412, + 424 + ], + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 19 + } + } + }, + "range": [ + 412, + 424 + ], + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 19 + } + } + } + ], + "source": { + "type": "Literal", + "value": "./TargetingMap", + "raw": "'./TargetingMap'", + "range": [ + 430, + 446 + ], + "loc": { + "start": { + "line": 8, + "column": 25 + }, + "end": { + "line": 8, + "column": 41 + } + } + }, + "range": [ + 405, + 447 + ], + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 42 + } }, "trailingComments": [ { "type": "Block", "value": "*\n * Slot is an object representing single ad slot on a page.\n ", "range": [ - 406, - 473 + 449, + 516 ], "loc": { "start": { - "line": 9, + "line": 10, "column": 0 }, "end": { - "line": 11, + "line": 12, "column": 3 } } @@ -540,16 +613,16 @@ "type": "Identifier", "name": "Slot", "range": [ - 495, - 499 + 538, + 542 ], "loc": { "start": { - "line": 12, + "line": 13, "column": 21 }, "end": { - "line": 12, + "line": 13, "column": 25 } } @@ -564,16 +637,16 @@ "type": "Identifier", "name": "constructor", "range": [ - 1048, - 1059 + 1091, + 1102 ], "loc": { "start": { - "line": 23, + "line": 24, "column": 2 }, "end": { - "line": 23, + "line": 24, "column": 13 } } @@ -586,16 +659,16 @@ "type": "Identifier", "name": "adUnitPath", "range": [ - 1060, - 1070 + 1103, + 1113 ], "loc": { "start": { - "line": 23, + "line": 24, "column": 14 }, "end": { - "line": 23, + "line": 24, "column": 24 } } @@ -604,16 +677,16 @@ "type": "Identifier", "name": "size", "range": [ - 1072, - 1076 + 1115, + 1119 ], "loc": { "start": { - "line": 23, + "line": 24, "column": 26 }, "end": { - "line": 23, + "line": 24, "column": 30 } } @@ -622,16 +695,16 @@ "type": "Identifier", "name": "optDiv", "range": [ - 1078, - 1084 + 1121, + 1127 ], "loc": { "start": { - "line": 23, + "line": 24, "column": 32 }, "end": { - "line": 23, + "line": 24, "column": 38 } } @@ -642,16 +715,16 @@ "type": "Identifier", "name": "instance", "range": [ - 1086, - 1094 + 1129, + 1137 ], "loc": { "start": { - "line": 23, + "line": 24, "column": 40 }, "end": { - "line": 23, + "line": 24, "column": 48 } } @@ -661,31 +734,31 @@ "value": 0, "raw": "0", "range": [ - 1097, - 1098 + 1140, + 1141 ], "loc": { "start": { - "line": 23, + "line": 24, "column": 51 }, "end": { - "line": 23, + "line": 24, "column": 52 } } }, "range": [ - 1086, - 1098 + 1129, + 1141 ], "loc": { "start": { - "line": 23, + "line": 24, "column": 40 }, "end": { - "line": 23, + "line": 24, "column": 52 } } @@ -705,16 +778,16 @@ "object": { "type": "ThisExpression", "range": [ - 1106, - 1110 + 1149, + 1153 ], "loc": { "start": { - "line": 24, + "line": 25, "column": 4 }, "end": { - "line": 24, + "line": 25, "column": 8 } } @@ -723,31 +796,31 @@ "type": "Identifier", "name": "_id", "range": [ - 1111, - 1114 + 1154, + 1157 ], "loc": { "start": { - "line": 24, + "line": 25, "column": 9 }, "end": { - "line": 24, + "line": 25, "column": 12 } } }, "range": [ - 1106, - 1114 + 1149, + 1157 ], "loc": { "start": { - "line": 24, + "line": 25, "column": 4 }, "end": { - "line": 24, + "line": 25, "column": 12 } } @@ -758,16 +831,16 @@ "type": "Identifier", "name": "SlotId", "range": [ - 1121, - 1127 + 1164, + 1170 ], "loc": { "start": { - "line": 24, + "line": 25, "column": 19 }, "end": { - "line": 24, + "line": 25, "column": 25 } } @@ -777,16 +850,16 @@ "type": "Identifier", "name": "adUnitPath", "range": [ - 1128, - 1138 + 1171, + 1181 ], "loc": { "start": { - "line": 24, + "line": 25, "column": 26 }, "end": { - "line": 24, + "line": 25, "column": 36 } } @@ -795,16 +868,16 @@ "type": "Identifier", "name": "instance", "range": [ - 1140, - 1148 + 1183, + 1191 ], "loc": { "start": { - "line": 24, + "line": 25, "column": 38 }, "end": { - "line": 24, + "line": 25, "column": 46 } } @@ -813,62 +886,62 @@ "type": "Identifier", "name": "optDiv", "range": [ - 1150, - 1156 + 1193, + 1199 ], "loc": { "start": { - "line": 24, + "line": 25, "column": 48 }, "end": { - "line": 24, + "line": 25, "column": 54 } } } ], "range": [ - 1117, - 1157 + 1160, + 1200 ], "loc": { "start": { - "line": 24, + "line": 25, "column": 15 }, "end": { - "line": 24, + "line": 25, "column": 55 } } }, "range": [ - 1106, - 1157 + 1149, + 1200 ], "loc": { "start": { - "line": 24, + "line": 25, "column": 4 }, "end": { - "line": 24, + "line": 25, "column": 55 } } }, "range": [ - 1106, - 1158 + 1149, + 1201 ], "loc": { "start": { - "line": 24, + "line": 25, "column": 4 }, "end": { - "line": 24, + "line": 25, "column": 56 } } @@ -884,16 +957,16 @@ "object": { "type": "ThisExpression", "range": [ - 1163, - 1167 + 1206, + 1210 ], "loc": { "start": { - "line": 25, + "line": 26, "column": 4 }, "end": { - "line": 25, + "line": 26, "column": 8 } } @@ -902,31 +975,31 @@ "type": "Identifier", "name": "_sizes", "range": [ - 1168, - 1174 + 1211, + 1217 ], "loc": { "start": { - "line": 25, + "line": 26, "column": 9 }, "end": { - "line": 25, + "line": 26, "column": 15 } } }, "range": [ - 1163, - 1174 + 1206, + 1217 ], "loc": { "start": { - "line": 25, + "line": 26, "column": 4 }, "end": { - "line": 25, + "line": 26, "column": 15 } } @@ -940,16 +1013,16 @@ "type": "Identifier", "name": "GeneralSize", "range": [ - 1177, - 1188 + 1220, + 1231 ], "loc": { "start": { - "line": 25, + "line": 26, "column": 18 }, "end": { - "line": 25, + "line": 26, "column": 29 } } @@ -958,31 +1031,31 @@ "type": "Identifier", "name": "toSizes", "range": [ - 1189, - 1196 + 1232, + 1239 ], "loc": { "start": { - "line": 25, + "line": 26, "column": 30 }, "end": { - "line": 25, + "line": 26, "column": 37 } } }, "range": [ - 1177, - 1196 + 1220, + 1239 ], "loc": { "start": { - "line": 25, + "line": 26, "column": 18 }, "end": { - "line": 25, + "line": 26, "column": 37 } } @@ -992,62 +1065,62 @@ "type": "Identifier", "name": "size", "range": [ - 1197, - 1201 + 1240, + 1244 ], "loc": { "start": { - "line": 25, + "line": 26, "column": 38 }, "end": { - "line": 25, + "line": 26, "column": 42 } } } ], "range": [ - 1177, - 1202 + 1220, + 1245 ], "loc": { "start": { - "line": 25, + "line": 26, "column": 18 }, "end": { - "line": 25, + "line": 26, "column": 43 } } }, "range": [ - 1163, - 1202 + 1206, + 1245 ], "loc": { "start": { - "line": 25, + "line": 26, "column": 4 }, "end": { - "line": 25, + "line": 26, "column": 43 } } }, "range": [ - 1163, - 1203 + 1206, + 1246 ], "loc": { "start": { - "line": 25, + "line": 26, "column": 4 }, "end": { - "line": 25, + "line": 26, "column": 44 } } @@ -1063,16 +1136,16 @@ "object": { "type": "ThisExpression", "range": [ - 1208, - 1212 + 1251, + 1255 ], "loc": { "start": { - "line": 26, + "line": 27, "column": 4 }, "end": { - "line": 26, + "line": 27, "column": 8 } } @@ -1081,31 +1154,31 @@ "type": "Identifier", "name": "_services", "range": [ - 1213, - 1222 + 1256, + 1265 ], "loc": { "start": { - "line": 26, + "line": 27, "column": 9 }, "end": { - "line": 26, + "line": 27, "column": 18 } } }, "range": [ - 1208, - 1222 + 1251, + 1265 ], "loc": { "start": { - "line": 26, + "line": 27, "column": 4 }, "end": { - "line": 26, + "line": 27, "column": 18 } } @@ -1114,46 +1187,46 @@ "type": "ArrayExpression", "elements": [], "range": [ - 1225, - 1227 + 1268, + 1270 ], "loc": { "start": { - "line": 26, + "line": 27, "column": 21 }, "end": { - "line": 26, + "line": 27, "column": 23 } } }, "range": [ - 1208, - 1227 + 1251, + 1270 ], "loc": { "start": { - "line": 26, + "line": 27, "column": 4 }, "end": { - "line": 26, + "line": 27, "column": 23 } } }, "range": [ - 1208, - 1228 + 1251, + 1271 ], "loc": { "start": { - "line": 26, + "line": 27, "column": 4 }, "end": { - "line": 26, + "line": 27, "column": 24 } } @@ -1169,16 +1242,16 @@ "object": { "type": "ThisExpression", "range": [ - 1233, - 1237 + 1276, + 1280 ], "loc": { "start": { - "line": 27, + "line": 28, "column": 4 }, "end": { - "line": 27, + "line": 28, "column": 8 } } @@ -1187,31 +1260,31 @@ "type": "Identifier", "name": "_categoryExclusions", "range": [ - 1238, - 1257 + 1281, + 1300 ], "loc": { "start": { - "line": 27, + "line": 28, "column": 9 }, "end": { - "line": 27, + "line": 28, "column": 28 } } }, "range": [ - 1233, - 1257 + 1276, + 1300 ], "loc": { "start": { - "line": 27, + "line": 28, "column": 4 }, "end": { - "line": 27, + "line": 28, "column": 28 } } @@ -1220,46 +1293,46 @@ "type": "ArrayExpression", "elements": [], "range": [ - 1260, - 1262 + 1303, + 1305 ], "loc": { "start": { - "line": 27, + "line": 28, "column": 31 }, "end": { - "line": 27, + "line": 28, "column": 33 } } }, "range": [ - 1233, - 1262 + 1276, + 1305 ], "loc": { "start": { - "line": 27, + "line": 28, "column": 4 }, "end": { - "line": 27, + "line": 28, "column": 33 } } }, "range": [ - 1233, - 1263 + 1276, + 1306 ], "loc": { "start": { - "line": 27, + "line": 28, "column": 4 }, "end": { - "line": 27, + "line": 28, "column": 34 } } @@ -1275,16 +1348,16 @@ "object": { "type": "ThisExpression", "range": [ - 1268, - 1272 + 1311, + 1315 ], "loc": { "start": { - "line": 28, + "line": 29, "column": 4 }, "end": { - "line": 28, + "line": 29, "column": 8 } } @@ -1293,80 +1366,98 @@ "type": "Identifier", "name": "_targeting", "range": [ - 1273, - 1283 + 1316, + 1326 ], "loc": { "start": { - "line": 28, + "line": 29, "column": 9 }, "end": { - "line": 28, + "line": 29, "column": 19 } } }, "range": [ - 1268, - 1283 + 1311, + 1326 ], "loc": { "start": { - "line": 28, + "line": 29, "column": 4 }, "end": { - "line": 28, + "line": 29, "column": 19 } } }, "right": { - "type": "ObjectExpression", - "properties": [], + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "TargetingMap", + "range": [ + 1333, + 1345 + ], + "loc": { + "start": { + "line": 29, + "column": 26 + }, + "end": { + "line": 29, + "column": 38 + } + } + }, + "arguments": [], "range": [ - 1286, - 1288 + 1329, + 1347 ], "loc": { "start": { - "line": 28, + "line": 29, "column": 22 }, "end": { - "line": 28, - "column": 24 + "line": 29, + "column": 40 } } }, "range": [ - 1268, - 1288 + 1311, + 1347 ], "loc": { "start": { - "line": 28, + "line": 29, "column": 4 }, "end": { - "line": 28, - "column": 24 + "line": 29, + "column": 40 } } }, "range": [ - 1268, - 1289 + 1311, + 1348 ], "loc": { "start": { - "line": 28, + "line": 29, "column": 4 }, "end": { - "line": 28, - "column": 25 + "line": 29, + "column": 41 } } }, @@ -1381,16 +1472,16 @@ "object": { "type": "ThisExpression", "range": [ - 1294, - 1298 + 1353, + 1357 ], "loc": { "start": { - "line": 29, + "line": 30, "column": 4 }, "end": { - "line": 29, + "line": 30, "column": 8 } } @@ -1399,31 +1490,31 @@ "type": "Identifier", "name": "_attributes", "range": [ - 1299, - 1310 + 1358, + 1369 ], "loc": { "start": { - "line": 29, + "line": 30, "column": 9 }, "end": { - "line": 29, + "line": 30, "column": 20 } } }, "range": [ - 1294, - 1310 + 1353, + 1369 ], "loc": { "start": { - "line": 29, + "line": 30, "column": 4 }, "end": { - "line": 29, + "line": 30, "column": 20 } } @@ -1432,46 +1523,46 @@ "type": "ObjectExpression", "properties": [], "range": [ - 1313, - 1315 + 1372, + 1374 ], "loc": { "start": { - "line": 29, + "line": 30, "column": 23 }, "end": { - "line": 29, + "line": 30, "column": 25 } } }, "range": [ - 1294, - 1315 + 1353, + 1374 ], "loc": { "start": { - "line": 29, + "line": 30, "column": 4 }, "end": { - "line": 29, + "line": 30, "column": 25 } } }, "range": [ - 1294, - 1316 + 1353, + 1375 ], "loc": { "start": { - "line": 29, + "line": 30, "column": 4 }, "end": { - "line": 29, + "line": 30, "column": 26 } } @@ -1487,16 +1578,16 @@ "object": { "type": "ThisExpression", "range": [ - 1321, - 1325 + 1380, + 1384 ], "loc": { "start": { - "line": 30, + "line": 31, "column": 4 }, "end": { - "line": 30, + "line": 31, "column": 8 } } @@ -1505,31 +1596,31 @@ "type": "Identifier", "name": "_clickUrl", "range": [ - 1326, - 1335 + 1385, + 1394 ], "loc": { "start": { - "line": 30, + "line": 31, "column": 9 }, "end": { - "line": 30, + "line": 31, "column": 18 } } }, "range": [ - 1321, - 1335 + 1380, + 1394 ], "loc": { "start": { - "line": 30, + "line": 31, "column": 4 }, "end": { - "line": 30, + "line": 31, "column": 18 } } @@ -1539,46 +1630,46 @@ "value": null, "raw": "null", "range": [ - 1338, - 1342 + 1397, + 1401 ], "loc": { "start": { - "line": 30, + "line": 31, "column": 21 }, "end": { - "line": 30, + "line": 31, "column": 25 } } }, "range": [ - 1321, - 1342 + 1380, + 1401 ], "loc": { "start": { - "line": 30, + "line": 31, "column": 4 }, "end": { - "line": 30, + "line": 31, "column": 25 } } }, "range": [ - 1321, - 1343 + 1380, + 1402 ], "loc": { "start": { - "line": 30, + "line": 31, "column": 4 }, "end": { - "line": 30, + "line": 31, "column": 26 } } @@ -1594,16 +1685,16 @@ "object": { "type": "ThisExpression", "range": [ - 1348, - 1352 + 1407, + 1411 ], "loc": { "start": { - "line": 31, + "line": 32, "column": 4 }, "end": { - "line": 31, + "line": 32, "column": 8 } } @@ -1612,31 +1703,31 @@ "type": "Identifier", "name": "_responseInformation", "range": [ - 1353, - 1373 + 1412, + 1432 ], "loc": { "start": { - "line": 31, + "line": 32, "column": 9 }, "end": { - "line": 31, + "line": 32, "column": 29 } } }, "range": [ - 1348, - 1373 + 1407, + 1432 ], "loc": { "start": { - "line": 31, + "line": 32, "column": 4 }, "end": { - "line": 31, + "line": 32, "column": 29 } } @@ -1646,46 +1737,46 @@ "value": null, "raw": "null", "range": [ - 1376, - 1380 + 1435, + 1439 ], "loc": { "start": { - "line": 31, + "line": 32, "column": 32 }, "end": { - "line": 31, + "line": 32, "column": 36 } } }, "range": [ - 1348, - 1380 + 1407, + 1439 ], "loc": { "start": { - "line": 31, + "line": 32, "column": 4 }, "end": { - "line": 31, + "line": 32, "column": 36 } } }, "range": [ - 1348, - 1381 + 1407, + 1440 ], "loc": { "start": { - "line": 31, + "line": 32, "column": 4 }, "end": { - "line": 31, + "line": 32, "column": 37 } } @@ -1701,16 +1792,16 @@ "object": { "type": "ThisExpression", "range": [ - 1386, - 1390 + 1445, + 1449 ], "loc": { "start": { - "line": 32, + "line": 33, "column": 4 }, "end": { - "line": 32, + "line": 33, "column": 8 } } @@ -1719,31 +1810,31 @@ "type": "Identifier", "name": "_sizeMapping", "range": [ - 1391, - 1403 + 1450, + 1462 ], "loc": { "start": { - "line": 32, + "line": 33, "column": 9 }, "end": { - "line": 32, + "line": 33, "column": 21 } } }, "range": [ - 1386, - 1403 + 1445, + 1462 ], "loc": { "start": { - "line": 32, + "line": 33, "column": 4 }, "end": { - "line": 32, + "line": 33, "column": 21 } } @@ -1753,46 +1844,46 @@ "value": null, "raw": "null", "range": [ - 1406, - 1410 + 1465, + 1469 ], "loc": { "start": { - "line": 32, + "line": 33, "column": 24 }, "end": { - "line": 32, + "line": 33, "column": 28 } } }, "range": [ - 1386, - 1410 + 1445, + 1469 ], "loc": { "start": { - "line": 32, + "line": 33, "column": 4 }, "end": { - "line": 32, + "line": 33, "column": 28 } } }, "range": [ - 1386, - 1411 + 1445, + 1470 ], "loc": { "start": { - "line": 32, + "line": 33, "column": 4 }, "end": { - "line": 32, + "line": 33, "column": 29 } } @@ -1808,16 +1899,16 @@ "object": { "type": "ThisExpression", "range": [ - 1416, - 1420 + 1475, + 1479 ], "loc": { "start": { - "line": 33, + "line": 34, "column": 4 }, "end": { - "line": 33, + "line": 34, "column": 8 } } @@ -1826,31 +1917,31 @@ "type": "Identifier", "name": "_options", "range": [ - 1421, - 1429 + 1480, + 1488 ], "loc": { "start": { - "line": 33, + "line": 34, "column": 9 }, "end": { - "line": 33, + "line": 34, "column": 17 } } }, "range": [ - 1416, - 1429 + 1475, + 1488 ], "loc": { "start": { - "line": 33, + "line": 34, "column": 4 }, "end": { - "line": 33, + "line": 34, "column": 17 } } @@ -1864,16 +1955,16 @@ "type": "Identifier", "name": "content", "range": [ - 1440, - 1447 + 1499, + 1506 ], "loc": { "start": { - "line": 34, + "line": 35, "column": 6 }, "end": { - "line": 34, + "line": 35, "column": 13 } } @@ -1883,16 +1974,16 @@ "value": null, "raw": "null", "range": [ - 1449, - 1453 + 1508, + 1512 ], "loc": { "start": { - "line": 34, + "line": 35, "column": 15 }, "end": { - "line": 34, + "line": 35, "column": 19 } } @@ -1902,16 +1993,16 @@ "shorthand": false, "computed": false, "range": [ - 1440, - 1453 + 1499, + 1512 ], "loc": { "start": { - "line": 34, + "line": 35, "column": 6 }, "end": { - "line": 34, + "line": 35, "column": 19 } } @@ -1922,16 +2013,16 @@ "type": "Identifier", "name": "refreshed", "range": [ - 1461, - 1470 + 1520, + 1529 ], "loc": { "start": { - "line": 35, + "line": 36, "column": 6 }, "end": { - "line": 35, + "line": 36, "column": 15 } } @@ -1941,16 +2032,16 @@ "value": 0, "raw": "0", "range": [ - 1472, - 1473 + 1531, + 1532 ], "loc": { "start": { - "line": 35, + "line": 36, "column": 17 }, "end": { - "line": 35, + "line": 36, "column": 18 } } @@ -1960,16 +2051,16 @@ "shorthand": false, "computed": false, "range": [ - 1461, - 1473 + 1520, + 1532 ], "loc": { "start": { - "line": 35, + "line": 36, "column": 6 }, "end": { - "line": 35, + "line": 36, "column": 18 } } @@ -1980,16 +2071,16 @@ "type": "Identifier", "name": "displayed", "range": [ - 1481, - 1490 + 1540, + 1549 ], "loc": { "start": { - "line": 36, + "line": 37, "column": 6 }, "end": { - "line": 36, + "line": 37, "column": 15 } } @@ -1999,16 +2090,16 @@ "value": false, "raw": "false", "range": [ - 1492, - 1497 + 1551, + 1556 ], "loc": { "start": { - "line": 36, + "line": 37, "column": 17 }, "end": { - "line": 36, + "line": 37, "column": 22 } } @@ -2018,16 +2109,16 @@ "shorthand": false, "computed": false, "range": [ - 1481, - 1497 + 1540, + 1556 ], "loc": { "start": { - "line": 36, + "line": 37, "column": 6 }, "end": { - "line": 36, + "line": 37, "column": 22 } } @@ -2038,16 +2129,16 @@ "type": "Identifier", "name": "fetched", "range": [ - 1505, - 1512 + 1564, + 1571 ], "loc": { "start": { - "line": 37, + "line": 38, "column": 6 }, "end": { - "line": 37, + "line": 38, "column": 13 } } @@ -2057,16 +2148,16 @@ "value": false, "raw": "false", "range": [ - 1514, - 1519 + 1573, + 1578 ], "loc": { "start": { - "line": 37, + "line": 38, "column": 15 }, "end": { - "line": 37, + "line": 38, "column": 20 } } @@ -2076,16 +2167,16 @@ "shorthand": false, "computed": false, "range": [ - 1505, - 1519 + 1564, + 1578 ], "loc": { "start": { - "line": 37, + "line": 38, "column": 6 }, "end": { - "line": 37, + "line": 38, "column": 20 } } @@ -2096,16 +2187,16 @@ "type": "Identifier", "name": "passback", "range": [ - 1527, - 1535 + 1586, + 1594 ], "loc": { "start": { - "line": 38, + "line": 39, "column": 6 }, "end": { - "line": 38, + "line": 39, "column": 14 } } @@ -2115,16 +2206,16 @@ "value": false, "raw": "false", "range": [ - 1537, - 1542 + 1596, + 1601 ], "loc": { "start": { - "line": 38, + "line": 39, "column": 16 }, "end": { - "line": 38, + "line": 39, "column": 21 } } @@ -2134,16 +2225,16 @@ "shorthand": false, "computed": false, "range": [ - 1527, - 1542 + 1586, + 1601 ], "loc": { "start": { - "line": 38, + "line": 39, "column": 6 }, "end": { - "line": 38, + "line": 39, "column": 21 } } @@ -2154,16 +2245,16 @@ "type": "Identifier", "name": "outOfPage", "range": [ - 1550, - 1559 + 1609, + 1618 ], "loc": { "start": { - "line": 39, + "line": 40, "column": 6 }, "end": { - "line": 39, + "line": 40, "column": 15 } } @@ -2173,16 +2264,16 @@ "value": false, "raw": "false", "range": [ - 1561, - 1566 + 1620, + 1625 ], "loc": { "start": { - "line": 39, + "line": 40, "column": 17 }, "end": { - "line": 39, + "line": 40, "column": 22 } } @@ -2192,16 +2283,16 @@ "shorthand": false, "computed": false, "range": [ - 1550, - 1566 + 1609, + 1625 ], "loc": { "start": { - "line": 39, + "line": 40, "column": 6 }, "end": { - "line": 39, + "line": 40, "column": 22 } } @@ -2212,16 +2303,16 @@ "type": "Identifier", "name": "forceSafeFrame", "range": [ - 1574, - 1588 + 1633, + 1647 ], "loc": { "start": { - "line": 40, + "line": 41, "column": 6 }, "end": { - "line": 40, + "line": 41, "column": 20 } } @@ -2231,16 +2322,16 @@ "value": false, "raw": "false", "range": [ - 1590, - 1595 + 1649, + 1654 ], "loc": { "start": { - "line": 40, + "line": 41, "column": 22 }, "end": { - "line": 40, + "line": 41, "column": 27 } } @@ -2250,16 +2341,16 @@ "shorthand": false, "computed": false, "range": [ - 1574, - 1595 + 1633, + 1654 ], "loc": { "start": { - "line": 40, + "line": 41, "column": 6 }, "end": { - "line": 40, + "line": 41, "column": 27 } } @@ -2270,16 +2361,16 @@ "type": "Identifier", "name": "safeFrameConfig", "range": [ - 1603, - 1618 + 1662, + 1677 ], "loc": { "start": { - "line": 41, + "line": 42, "column": 6 }, "end": { - "line": 41, + "line": 42, "column": 21 } } @@ -2289,16 +2380,16 @@ "value": null, "raw": "null", "range": [ - 1620, - 1624 + 1679, + 1683 ], "loc": { "start": { - "line": 41, + "line": 42, "column": 23 }, "end": { - "line": 41, + "line": 42, "column": 27 } } @@ -2308,16 +2399,16 @@ "shorthand": false, "computed": false, "range": [ - 1603, - 1624 + 1662, + 1683 ], "loc": { "start": { - "line": 41, + "line": 42, "column": 6 }, "end": { - "line": 41, + "line": 42, "column": 27 } } @@ -2328,16 +2419,16 @@ "type": "Identifier", "name": "collapseEmptyDiv", "range": [ - 1632, - 1648 + 1691, + 1707 ], "loc": { "start": { - "line": 42, + "line": 43, "column": 6 }, "end": { - "line": 42, + "line": 43, "column": 22 } } @@ -2347,16 +2438,16 @@ "value": false, "raw": "false", "range": [ - 1650, - 1655 + 1709, + 1714 ], "loc": { "start": { - "line": 42, + "line": 43, "column": 24 }, "end": { - "line": 42, + "line": 43, "column": 29 } } @@ -2366,16 +2457,16 @@ "shorthand": false, "computed": false, "range": [ - 1632, - 1655 + 1691, + 1714 ], "loc": { "start": { - "line": 42, + "line": 43, "column": 6 }, "end": { - "line": 42, + "line": 43, "column": 29 } } @@ -2386,16 +2477,16 @@ "type": "Identifier", "name": "collapseBeforeAdFetch", "range": [ - 1663, - 1684 + 1722, + 1743 ], "loc": { "start": { - "line": 43, + "line": 44, "column": 6 }, "end": { - "line": 43, + "line": 44, "column": 27 } } @@ -2405,16 +2496,16 @@ "value": false, "raw": "false", "range": [ - 1686, - 1691 + 1745, + 1750 ], "loc": { "start": { - "line": 43, + "line": 44, "column": 29 }, "end": { - "line": 43, + "line": 44, "column": 34 } } @@ -2424,78 +2515,78 @@ "shorthand": false, "computed": false, "range": [ - 1663, - 1691 + 1722, + 1750 ], "loc": { "start": { - "line": 43, + "line": 44, "column": 6 }, "end": { - "line": 43, + "line": 44, "column": 34 } } } ], "range": [ - 1432, - 1697 + 1491, + 1756 ], "loc": { "start": { - "line": 33, + "line": 34, "column": 20 }, "end": { - "line": 44, + "line": 45, "column": 5 } } }, "range": [ - 1416, - 1697 + 1475, + 1756 ], "loc": { "start": { - "line": 33, + "line": 34, "column": 4 }, "end": { - "line": 44, + "line": 45, "column": 5 } } }, "range": [ - 1416, - 1698 + 1475, + 1757 ], "loc": { "start": { - "line": 33, + "line": 34, "column": 4 }, "end": { - "line": 44, + "line": 45, "column": 6 } } } ], "range": [ - 1100, - 1702 + 1143, + 1761 ], "loc": { "start": { - "line": 23, + "line": 24, "column": 54 }, "end": { - "line": 45, + "line": 46, "column": 3 } } @@ -2503,16 +2594,16 @@ "generator": false, "expression": false, "range": [ - 1059, - 1702 + 1102, + 1761 ], "loc": { "start": { - "line": 23, + "line": 24, "column": 13 }, "end": { - "line": 45, + "line": 46, "column": 3 } } @@ -2520,16 +2611,16 @@ "kind": "constructor", "computed": false, "range": [ - 1048, - 1702 + 1091, + 1761 ], "loc": { "start": { - "line": 23, + "line": 24, "column": 2 }, "end": { - "line": 45, + "line": 46, "column": 3 } }, @@ -2538,16 +2629,16 @@ "type": "Block", "value": "*\n * Creates a new {@link Slot}.\n *\n * @param {string} adUnitPath Full path of the ad unit with the network code and unit code.\n * @param {GeneralSize} [size] Width and height of the added slot. This is the\n * size that is used in the ad request if no responsive size mapping is provided\n * or the size of the viewport is smaller than the smallest size provided in the mapping.\n * @param {string} [optDiv] ID of the div that will contain this ad unit.\n * @param {number} [instance = 0] The instance count of the slot.\n ", "range": [ - 504, - 1045 + 547, + 1088 ], "loc": { "start": { - "line": 13, + "line": 14, "column": 2 }, "end": { - "line": 22, + "line": 23, "column": 5 } } @@ -2558,16 +2649,16 @@ "type": "Block", "value": "*\n * Returns the name of the slot\n *\n * @experimental\n * @returns {string} Ad unit path.\n ", "range": [ - 1706, - 1810 + 1765, + 1869 ], "loc": { "start": { - "line": 47, + "line": 48, "column": 2 }, "end": { - "line": 52, + "line": 53, "column": 5 } } @@ -2581,16 +2672,16 @@ "type": "Identifier", "name": "getName", "range": [ - 1813, - 1820 + 1872, + 1879 ], "loc": { "start": { - "line": 53, + "line": 54, "column": 2 }, "end": { - "line": 53, + "line": 54, "column": 9 } } @@ -2615,16 +2706,16 @@ "object": { "type": "ThisExpression", "range": [ - 1836, - 1840 + 1895, + 1899 ], "loc": { "start": { - "line": 54, + "line": 55, "column": 11 }, "end": { - "line": 54, + "line": 55, "column": 15 } } @@ -2633,31 +2724,31 @@ "type": "Identifier", "name": "_id", "range": [ - 1841, - 1844 + 1900, + 1903 ], "loc": { "start": { - "line": 54, + "line": 55, "column": 16 }, "end": { - "line": 54, + "line": 55, "column": 19 } } }, "range": [ - 1836, - 1844 + 1895, + 1903 ], "loc": { "start": { - "line": 54, + "line": 55, "column": 11 }, "end": { - "line": 54, + "line": 55, "column": 19 } } @@ -2666,78 +2757,78 @@ "type": "Identifier", "name": "getName", "range": [ - 1845, - 1852 + 1904, + 1911 ], "loc": { "start": { - "line": 54, + "line": 55, "column": 20 }, "end": { - "line": 54, + "line": 55, "column": 27 } } }, "range": [ - 1836, - 1852 + 1895, + 1911 ], "loc": { "start": { - "line": 54, + "line": 55, "column": 11 }, "end": { - "line": 54, + "line": 55, "column": 27 } } }, "arguments": [], "range": [ - 1836, - 1854 + 1895, + 1913 ], "loc": { "start": { - "line": 54, + "line": 55, "column": 11 }, "end": { - "line": 54, + "line": 55, "column": 29 } } }, "range": [ - 1829, - 1855 + 1888, + 1914 ], "loc": { "start": { - "line": 54, + "line": 55, "column": 4 }, "end": { - "line": 54, + "line": 55, "column": 30 } } } ], "range": [ - 1823, - 1859 + 1882, + 1918 ], "loc": { "start": { - "line": 53, + "line": 54, "column": 12 }, "end": { - "line": 55, + "line": 56, "column": 3 } } @@ -2745,16 +2836,16 @@ "generator": false, "expression": false, "range": [ - 1820, - 1859 + 1879, + 1918 ], "loc": { "start": { - "line": 53, + "line": 54, "column": 9 }, "end": { - "line": 55, + "line": 56, "column": 3 } } @@ -2762,16 +2853,16 @@ "kind": "method", "computed": false, "range": [ - 1813, - 1859 + 1872, + 1918 ], "loc": { "start": { - "line": 53, + "line": 54, "column": 2 }, "end": { - "line": 55, + "line": 56, "column": 3 } }, @@ -2780,16 +2871,16 @@ "type": "Block", "value": "*\n * Returns the name of the slot\n *\n * @experimental\n * @returns {string} Ad unit path.\n ", "range": [ - 1706, - 1810 + 1765, + 1869 ], "loc": { "start": { - "line": 47, + "line": 48, "column": 2 }, "end": { - "line": 52, + "line": 53, "column": 5 } } @@ -2800,16 +2891,16 @@ "type": "Block", "value": "*\n * Returns the instance of the {@link Slot}.\n *\n * @experimental\n * @returns {number} The instance\n ", "range": [ - 1863, - 1979 + 1922, + 2038 ], "loc": { "start": { - "line": 57, + "line": 58, "column": 2 }, "end": { - "line": 62, + "line": 63, "column": 5 } } @@ -2823,16 +2914,16 @@ "type": "Identifier", "name": "getDefinedId", "range": [ - 1982, - 1994 + 2041, + 2053 ], "loc": { "start": { - "line": 63, + "line": 64, "column": 2 }, "end": { - "line": 63, + "line": 64, "column": 14 } } @@ -2857,16 +2948,16 @@ "object": { "type": "ThisExpression", "range": [ - 2010, - 2014 + 2069, + 2073 ], "loc": { "start": { - "line": 64, + "line": 65, "column": 11 }, "end": { - "line": 64, + "line": 65, "column": 15 } } @@ -2875,31 +2966,31 @@ "type": "Identifier", "name": "_id", "range": [ - 2015, - 2018 + 2074, + 2077 ], "loc": { "start": { - "line": 64, + "line": 65, "column": 16 }, "end": { - "line": 64, + "line": 65, "column": 19 } } }, "range": [ - 2010, - 2018 + 2069, + 2077 ], "loc": { "start": { - "line": 64, + "line": 65, "column": 11 }, "end": { - "line": 64, + "line": 65, "column": 19 } } @@ -2908,78 +2999,78 @@ "type": "Identifier", "name": "getInstance", "range": [ - 2019, - 2030 + 2078, + 2089 ], "loc": { "start": { - "line": 64, + "line": 65, "column": 20 }, "end": { - "line": 64, + "line": 65, "column": 31 } } }, "range": [ - 2010, - 2030 + 2069, + 2089 ], "loc": { "start": { - "line": 64, + "line": 65, "column": 11 }, "end": { - "line": 64, + "line": 65, "column": 31 } } }, "arguments": [], "range": [ - 2010, - 2032 + 2069, + 2091 ], "loc": { "start": { - "line": 64, + "line": 65, "column": 11 }, "end": { - "line": 64, + "line": 65, "column": 33 } } }, "range": [ - 2003, - 2033 + 2062, + 2092 ], "loc": { "start": { - "line": 64, + "line": 65, "column": 4 }, "end": { - "line": 64, + "line": 65, "column": 34 } } } ], "range": [ - 1997, - 2037 + 2056, + 2096 ], "loc": { "start": { - "line": 63, + "line": 64, "column": 17 }, "end": { - "line": 65, + "line": 66, "column": 3 } } @@ -2987,16 +3078,16 @@ "generator": false, "expression": false, "range": [ - 1994, - 2037 + 2053, + 2096 ], "loc": { "start": { - "line": 63, + "line": 64, "column": 14 }, "end": { - "line": 65, + "line": 66, "column": 3 } } @@ -3004,16 +3095,16 @@ "kind": "method", "computed": false, "range": [ - 1982, - 2037 + 2041, + 2096 ], "loc": { "start": { - "line": 63, + "line": 64, "column": 2 }, "end": { - "line": 65, + "line": 66, "column": 3 } }, @@ -3022,16 +3113,16 @@ "type": "Block", "value": "*\n * Returns the instance of the {@link Slot}.\n *\n * @experimental\n * @returns {number} The instance\n ", "range": [ - 1863, - 1979 + 1922, + 2038 ], "loc": { "start": { - "line": 57, + "line": 58, "column": 2 }, "end": { - "line": 62, + "line": 63, "column": 5 } } @@ -3042,16 +3133,16 @@ "type": "Block", "value": "*\n * Returns the full path of the ad unit, with the network code and ad unit path.\n *\n * @returns {string} Ad unit path.\n ", "range": [ - 2041, - 2175 + 2100, + 2234 ], "loc": { "start": { - "line": 67, + "line": 68, "column": 2 }, "end": { - "line": 71, + "line": 72, "column": 5 } } @@ -3065,16 +3156,16 @@ "type": "Identifier", "name": "getAdUnitPath", "range": [ - 2178, - 2191 + 2237, + 2250 ], "loc": { "start": { - "line": 72, + "line": 73, "column": 2 }, "end": { - "line": 72, + "line": 73, "column": 15 } } @@ -3099,16 +3190,16 @@ "object": { "type": "ThisExpression", "range": [ - 2207, - 2211 + 2266, + 2270 ], "loc": { "start": { - "line": 73, + "line": 74, "column": 11 }, "end": { - "line": 73, + "line": 74, "column": 15 } } @@ -3117,31 +3208,31 @@ "type": "Identifier", "name": "_id", "range": [ - 2212, - 2215 + 2271, + 2274 ], "loc": { "start": { - "line": 73, + "line": 74, "column": 16 }, "end": { - "line": 73, + "line": 74, "column": 19 } } }, "range": [ - 2207, - 2215 + 2266, + 2274 ], "loc": { "start": { - "line": 73, + "line": 74, "column": 11 }, "end": { - "line": 73, + "line": 74, "column": 19 } } @@ -3150,78 +3241,78 @@ "type": "Identifier", "name": "getAdUnitPath", "range": [ - 2216, - 2229 + 2275, + 2288 ], "loc": { "start": { - "line": 73, + "line": 74, "column": 20 }, "end": { - "line": 73, + "line": 74, "column": 33 } } }, "range": [ - 2207, - 2229 + 2266, + 2288 ], "loc": { "start": { - "line": 73, + "line": 74, "column": 11 }, "end": { - "line": 73, + "line": 74, "column": 33 } } }, "arguments": [], "range": [ - 2207, - 2231 + 2266, + 2290 ], "loc": { "start": { - "line": 73, + "line": 74, "column": 11 }, "end": { - "line": 73, + "line": 74, "column": 35 } } }, "range": [ - 2200, - 2232 + 2259, + 2291 ], "loc": { "start": { - "line": 73, + "line": 74, "column": 4 }, "end": { - "line": 73, + "line": 74, "column": 36 } } } ], "range": [ - 2194, - 2236 + 2253, + 2295 ], "loc": { "start": { - "line": 72, + "line": 73, "column": 18 }, "end": { - "line": 74, + "line": 75, "column": 3 } } @@ -3229,16 +3320,16 @@ "generator": false, "expression": false, "range": [ - 2191, - 2236 + 2250, + 2295 ], "loc": { "start": { - "line": 72, + "line": 73, "column": 15 }, "end": { - "line": 74, + "line": 75, "column": 3 } } @@ -3246,16 +3337,16 @@ "kind": "method", "computed": false, "range": [ - 2178, - 2236 + 2237, + 2295 ], "loc": { "start": { - "line": 72, + "line": 73, "column": 2 }, "end": { - "line": 74, + "line": 75, "column": 3 } }, @@ -3264,16 +3355,16 @@ "type": "Block", "value": "*\n * Returns the full path of the ad unit, with the network code and ad unit path.\n *\n * @returns {string} Ad unit path.\n ", "range": [ - 2041, - 2175 + 2100, + 2234 ], "loc": { "start": { - "line": 67, + "line": 68, "column": 2 }, "end": { - "line": 71, + "line": 72, "column": 5 } } @@ -3284,16 +3375,16 @@ "type": "Block", "value": "*\n * Returns the id of the slot element provided when the {@link Slot} was defined.\n *\n * @returns {string} Slot element id.\n ", "range": [ - 2240, - 2378 + 2299, + 2437 ], "loc": { "start": { - "line": 76, + "line": 77, "column": 2 }, "end": { - "line": 80, + "line": 81, "column": 5 } } @@ -3307,16 +3398,16 @@ "type": "Identifier", "name": "getSlotElementId", "range": [ - 2381, - 2397 + 2440, + 2456 ], "loc": { "start": { - "line": 81, + "line": 82, "column": 2 }, "end": { - "line": 81, + "line": 82, "column": 18 } } @@ -3341,16 +3432,16 @@ "object": { "type": "ThisExpression", "range": [ - 2413, - 2417 + 2472, + 2476 ], "loc": { "start": { - "line": 82, + "line": 83, "column": 11 }, "end": { - "line": 82, + "line": 83, "column": 15 } } @@ -3359,31 +3450,31 @@ "type": "Identifier", "name": "_id", "range": [ - 2418, - 2421 + 2477, + 2480 ], "loc": { "start": { - "line": 82, + "line": 83, "column": 16 }, "end": { - "line": 82, + "line": 83, "column": 19 } } }, "range": [ - 2413, - 2421 + 2472, + 2480 ], "loc": { "start": { - "line": 82, + "line": 83, "column": 11 }, "end": { - "line": 82, + "line": 83, "column": 19 } } @@ -3392,78 +3483,78 @@ "type": "Identifier", "name": "getDomId", "range": [ - 2422, - 2430 + 2481, + 2489 ], "loc": { "start": { - "line": 82, + "line": 83, "column": 20 }, "end": { - "line": 82, + "line": 83, "column": 28 } } }, "range": [ - 2413, - 2430 + 2472, + 2489 ], "loc": { "start": { - "line": 82, + "line": 83, "column": 11 }, "end": { - "line": 82, + "line": 83, "column": 28 } } }, "arguments": [], "range": [ - 2413, - 2432 + 2472, + 2491 ], "loc": { "start": { - "line": 82, + "line": 83, "column": 11 }, "end": { - "line": 82, + "line": 83, "column": 30 } } }, "range": [ - 2406, - 2433 + 2465, + 2492 ], "loc": { "start": { - "line": 82, + "line": 83, "column": 4 }, "end": { - "line": 82, + "line": 83, "column": 31 } } } ], "range": [ - 2400, - 2437 + 2459, + 2496 ], "loc": { "start": { - "line": 81, + "line": 82, "column": 21 }, "end": { - "line": 83, + "line": 84, "column": 3 } } @@ -3471,16 +3562,16 @@ "generator": false, "expression": false, "range": [ - 2397, - 2437 + 2456, + 2496 ], "loc": { "start": { - "line": 81, + "line": 82, "column": 18 }, "end": { - "line": 83, + "line": 84, "column": 3 } } @@ -3488,16 +3579,16 @@ "kind": "method", "computed": false, "range": [ - 2381, - 2437 + 2440, + 2496 ], "loc": { "start": { - "line": 81, + "line": 82, "column": 2 }, "end": { - "line": 83, + "line": 84, "column": 3 } }, @@ -3506,16 +3597,16 @@ "type": "Block", "value": "*\n * Returns the id of the slot element provided when the {@link Slot} was defined.\n *\n * @returns {string} Slot element id.\n ", "range": [ - 2240, - 2378 + 2299, + 2437 ], "loc": { "start": { - "line": 76, + "line": 77, "column": 2 }, "end": { - "line": 80, + "line": 81, "column": 5 } } @@ -3526,16 +3617,16 @@ "type": "Block", "value": "*\n * Returns the enabled services.\n *\n * @experimental\n * @returns {Array} The list of enabled services.\n ", "range": [ - 2441, - 2570 + 2500, + 2629 ], "loc": { "start": { - "line": 85, + "line": 86, "column": 2 }, "end": { - "line": 90, + "line": 91, "column": 5 } } @@ -3549,16 +3640,16 @@ "type": "Identifier", "name": "getServices", "range": [ - 2573, - 2584 + 2632, + 2643 ], "loc": { "start": { - "line": 91, + "line": 92, "column": 2 }, "end": { - "line": 91, + "line": 92, "column": 13 } } @@ -3583,16 +3674,16 @@ "object": { "type": "ThisExpression", "range": [ - 2600, - 2604 + 2659, + 2663 ], "loc": { "start": { - "line": 92, + "line": 93, "column": 11 }, "end": { - "line": 92, + "line": 93, "column": 15 } } @@ -3601,31 +3692,31 @@ "type": "Identifier", "name": "_services", "range": [ - 2605, - 2614 + 2664, + 2673 ], "loc": { "start": { - "line": 92, + "line": 93, "column": 16 }, "end": { - "line": 92, + "line": 93, "column": 25 } } }, "range": [ - 2600, - 2614 + 2659, + 2673 ], "loc": { "start": { - "line": 92, + "line": 93, "column": 11 }, "end": { - "line": 92, + "line": 93, "column": 25 } } @@ -3634,31 +3725,31 @@ "type": "Identifier", "name": "slice", "range": [ - 2615, - 2620 + 2674, + 2679 ], "loc": { "start": { - "line": 92, + "line": 93, "column": 26 }, "end": { - "line": 92, + "line": 93, "column": 31 } } }, "range": [ - 2600, - 2620 + 2659, + 2679 ], "loc": { "start": { - "line": 92, + "line": 93, "column": 11 }, "end": { - "line": 92, + "line": 93, "column": 31 } } @@ -3669,63 +3760,63 @@ "value": 0, "raw": "0", "range": [ - 2621, - 2622 + 2680, + 2681 ], "loc": { "start": { - "line": 92, + "line": 93, "column": 32 }, "end": { - "line": 92, + "line": 93, "column": 33 } } } ], "range": [ - 2600, - 2623 + 2659, + 2682 ], "loc": { "start": { - "line": 92, + "line": 93, "column": 11 }, "end": { - "line": 92, + "line": 93, "column": 34 } } }, "range": [ - 2593, - 2624 + 2652, + 2683 ], "loc": { "start": { - "line": 92, + "line": 93, "column": 4 }, "end": { - "line": 92, + "line": 93, "column": 35 } } } ], "range": [ - 2587, - 2628 + 2646, + 2687 ], "loc": { "start": { - "line": 91, + "line": 92, "column": 16 }, "end": { - "line": 93, + "line": 94, "column": 3 } } @@ -3733,16 +3824,16 @@ "generator": false, "expression": false, "range": [ - 2584, - 2628 + 2643, + 2687 ], "loc": { "start": { - "line": 91, + "line": 92, "column": 13 }, "end": { - "line": 93, + "line": 94, "column": 3 } } @@ -3750,16 +3841,16 @@ "kind": "method", "computed": false, "range": [ - 2573, - 2628 + 2632, + 2687 ], "loc": { "start": { - "line": 91, + "line": 92, "column": 2 }, "end": { - "line": 93, + "line": 94, "column": 3 } }, @@ -3768,16 +3859,16 @@ "type": "Block", "value": "*\n * Returns the enabled services.\n *\n * @experimental\n * @returns {Array} The list of enabled services.\n ", "range": [ - 2441, - 2570 + 2500, + 2629 ], "loc": { "start": { - "line": 85, + "line": 86, "column": 2 }, "end": { - "line": 90, + "line": 91, "column": 5 } } @@ -3788,16 +3879,16 @@ "type": "Block", "value": "*\n * Returns the sizes.\n *\n * @experimental\n * @returns {Array} The list of sizes.\n ", "range": [ - 2632, - 2743 + 2691, + 2802 ], "loc": { "start": { - "line": 95, + "line": 96, "column": 2 }, "end": { - "line": 100, + "line": 101, "column": 5 } } @@ -3811,16 +3902,16 @@ "type": "Identifier", "name": "getSizes", "range": [ - 2746, - 2754 + 2805, + 2813 ], "loc": { "start": { - "line": 101, + "line": 102, "column": 2 }, "end": { - "line": 101, + "line": 102, "column": 10 } } @@ -3845,16 +3936,16 @@ "object": { "type": "ThisExpression", "range": [ - 2770, - 2774 + 2829, + 2833 ], "loc": { "start": { - "line": 102, + "line": 103, "column": 11 }, "end": { - "line": 102, + "line": 103, "column": 15 } } @@ -3863,31 +3954,31 @@ "type": "Identifier", "name": "_sizes", "range": [ - 2775, - 2781 + 2834, + 2840 ], "loc": { "start": { - "line": 102, + "line": 103, "column": 16 }, "end": { - "line": 102, + "line": 103, "column": 22 } } }, "range": [ - 2770, - 2781 + 2829, + 2840 ], "loc": { "start": { - "line": 102, + "line": 103, "column": 11 }, "end": { - "line": 102, + "line": 103, "column": 22 } } @@ -3896,31 +3987,31 @@ "type": "Identifier", "name": "slice", "range": [ - 2782, - 2787 + 2841, + 2846 ], "loc": { "start": { - "line": 102, + "line": 103, "column": 23 }, "end": { - "line": 102, + "line": 103, "column": 28 } } }, "range": [ - 2770, - 2787 + 2829, + 2846 ], "loc": { "start": { - "line": 102, + "line": 103, "column": 11 }, "end": { - "line": 102, + "line": 103, "column": 28 } } @@ -3931,63 +4022,63 @@ "value": 0, "raw": "0", "range": [ - 2788, - 2789 + 2847, + 2848 ], "loc": { "start": { - "line": 102, + "line": 103, "column": 29 }, "end": { - "line": 102, + "line": 103, "column": 30 } } } ], "range": [ - 2770, - 2790 + 2829, + 2849 ], "loc": { "start": { - "line": 102, + "line": 103, "column": 11 }, "end": { - "line": 102, + "line": 103, "column": 31 } } }, "range": [ - 2763, - 2791 + 2822, + 2850 ], "loc": { "start": { - "line": 102, + "line": 103, "column": 4 }, "end": { - "line": 102, + "line": 103, "column": 32 } } } ], "range": [ - 2757, - 2795 + 2816, + 2854 ], "loc": { "start": { - "line": 101, + "line": 102, "column": 13 }, "end": { - "line": 103, + "line": 104, "column": 3 } } @@ -3995,16 +4086,16 @@ "generator": false, "expression": false, "range": [ - 2754, - 2795 + 2813, + 2854 ], "loc": { "start": { - "line": 101, + "line": 102, "column": 10 }, "end": { - "line": 103, + "line": 104, "column": 3 } } @@ -4012,16 +4103,16 @@ "kind": "method", "computed": false, "range": [ - 2746, - 2795 + 2805, + 2854 ], "loc": { "start": { - "line": 101, + "line": 102, "column": 2 }, "end": { - "line": 103, + "line": 104, "column": 3 } }, @@ -4030,16 +4121,16 @@ "type": "Block", "value": "*\n * Returns the sizes.\n *\n * @experimental\n * @returns {Array} The list of sizes.\n ", "range": [ - 2632, - 2743 + 2691, + 2802 ], "loc": { "start": { - "line": 95, + "line": 96, "column": 2 }, "end": { - "line": 100, + "line": 101, "column": 5 } } @@ -4050,16 +4141,16 @@ "type": "Block", "value": "*\n * Returns a flag indicating whether the {@link Slot} is out of the page.\n *\n * @experimental\n * @returns {boolean}\n ", "range": [ - 2799, - 2932 + 2858, + 2991 ], "loc": { "start": { - "line": 105, + "line": 106, "column": 2 }, "end": { - "line": 110, + "line": 111, "column": 5 } } @@ -4073,16 +4164,16 @@ "type": "Identifier", "name": "getOutOfPage", "range": [ - 2935, - 2947 + 2994, + 3006 ], "loc": { "start": { - "line": 111, + "line": 112, "column": 2 }, "end": { - "line": 111, + "line": 112, "column": 14 } } @@ -4105,16 +4196,16 @@ "object": { "type": "ThisExpression", "range": [ - 2963, - 2967 + 3022, + 3026 ], "loc": { "start": { - "line": 112, + "line": 113, "column": 11 }, "end": { - "line": 112, + "line": 113, "column": 15 } } @@ -4123,31 +4214,31 @@ "type": "Identifier", "name": "_options", "range": [ - 2968, - 2976 + 3027, + 3035 ], "loc": { "start": { - "line": 112, + "line": 113, "column": 16 }, "end": { - "line": 112, + "line": 113, "column": 24 } } }, "range": [ - 2963, - 2976 + 3022, + 3035 ], "loc": { "start": { - "line": 112, + "line": 113, "column": 11 }, "end": { - "line": 112, + "line": 113, "column": 24 } } @@ -4156,62 +4247,62 @@ "type": "Identifier", "name": "outOfPage", "range": [ - 2977, - 2986 + 3036, + 3045 ], "loc": { "start": { - "line": 112, + "line": 113, "column": 25 }, "end": { - "line": 112, + "line": 113, "column": 34 } } }, "range": [ - 2963, - 2986 + 3022, + 3045 ], "loc": { "start": { - "line": 112, + "line": 113, "column": 11 }, "end": { - "line": 112, + "line": 113, "column": 34 } } }, "range": [ - 2956, - 2987 + 3015, + 3046 ], "loc": { "start": { - "line": 112, + "line": 113, "column": 4 }, "end": { - "line": 112, + "line": 113, "column": 35 } } } ], "range": [ - 2950, - 2991 + 3009, + 3050 ], "loc": { "start": { - "line": 111, + "line": 112, "column": 17 }, "end": { - "line": 113, + "line": 114, "column": 3 } } @@ -4219,16 +4310,16 @@ "generator": false, "expression": false, "range": [ - 2947, - 2991 + 3006, + 3050 ], "loc": { "start": { - "line": 111, + "line": 112, "column": 14 }, "end": { - "line": 113, + "line": 114, "column": 3 } } @@ -4236,16 +4327,16 @@ "kind": "method", "computed": false, "range": [ - 2935, - 2991 + 2994, + 3050 ], "loc": { "start": { - "line": 111, + "line": 112, "column": 2 }, "end": { - "line": 113, + "line": 114, "column": 3 } }, @@ -4254,16 +4345,16 @@ "type": "Block", "value": "*\n * Returns a flag indicating whether the {@link Slot} is out of the page.\n *\n * @experimental\n * @returns {boolean}\n ", "range": [ - 2799, - 2932 + 2858, + 2991 ], "loc": { "start": { - "line": 105, + "line": 106, "column": 2 }, "end": { - "line": 110, + "line": 111, "column": 5 } } @@ -4274,16 +4365,16 @@ "type": "Block", "value": "*\n * Initiates rendering of this slot.\n ", "range": [ - 2995, - 3043 + 3054, + 3102 ], "loc": { "start": { - "line": 115, + "line": 116, "column": 2 }, "end": { - "line": 117, + "line": 118, "column": 5 } } @@ -4297,16 +4388,16 @@ "type": "Identifier", "name": "display", "range": [ - 3046, - 3053 + 3105, + 3112 ], "loc": { "start": { - "line": 118, + "line": 119, "column": 2 }, "end": { - "line": 118, + "line": 119, "column": 9 } } @@ -4332,16 +4423,16 @@ "object": { "type": "ThisExpression", "range": [ - 3067, - 3071 + 3126, + 3130 ], "loc": { "start": { - "line": 119, + "line": 120, "column": 9 }, "end": { - "line": 119, + "line": 120, "column": 13 } } @@ -4350,31 +4441,31 @@ "type": "Identifier", "name": "_options", "range": [ - 3072, - 3080 + 3131, + 3139 ], "loc": { "start": { - "line": 119, + "line": 120, "column": 14 }, "end": { - "line": 119, + "line": 120, "column": 22 } } }, "range": [ - 3067, - 3080 + 3126, + 3139 ], "loc": { "start": { - "line": 119, + "line": 120, "column": 9 }, "end": { - "line": 119, + "line": 120, "column": 22 } } @@ -4383,47 +4474,47 @@ "type": "Identifier", "name": "displayed", "range": [ - 3081, - 3090 + 3140, + 3149 ], "loc": { "start": { - "line": 119, + "line": 120, "column": 23 }, "end": { - "line": 119, + "line": 120, "column": 32 } } }, "range": [ - 3067, - 3090 + 3126, + 3149 ], "loc": { "start": { - "line": 119, + "line": 120, "column": 9 }, "end": { - "line": 119, + "line": 120, "column": 32 } } }, "prefix": true, "range": [ - 3066, - 3090 + 3125, + 3149 ], "loc": { "start": { - "line": 119, + "line": 120, "column": 8 }, "end": { - "line": 119, + "line": 120, "column": 32 } } @@ -4441,16 +4532,16 @@ "object": { "type": "ThisExpression", "range": [ - 3100, - 3104 + 3159, + 3163 ], "loc": { "start": { - "line": 120, + "line": 121, "column": 6 }, "end": { - "line": 120, + "line": 121, "column": 10 } } @@ -4459,62 +4550,62 @@ "type": "Identifier", "name": "fetchStarted", "range": [ - 3105, - 3117 + 3164, + 3176 ], "loc": { "start": { - "line": 120, + "line": 121, "column": 11 }, "end": { - "line": 120, + "line": 121, "column": 23 } } }, "range": [ - 3100, - 3117 + 3159, + 3176 ], "loc": { "start": { - "line": 120, + "line": 121, "column": 6 }, "end": { - "line": 120, + "line": 121, "column": 23 } } }, "arguments": [], "range": [ - 3100, - 3119 + 3159, + 3178 ], "loc": { "start": { - "line": 120, + "line": 121, "column": 6 }, "end": { - "line": 120, + "line": 121, "column": 25 } } }, "range": [ - 3100, - 3120 + 3159, + 3179 ], "loc": { "start": { - "line": 120, + "line": 121, "column": 6 }, "end": { - "line": 120, + "line": 121, "column": 26 } } @@ -4529,16 +4620,16 @@ "object": { "type": "ThisExpression", "range": [ - 3127, - 3131 + 3186, + 3190 ], "loc": { "start": { - "line": 121, + "line": 122, "column": 6 }, "end": { - "line": 121, + "line": 122, "column": 10 } } @@ -4547,62 +4638,62 @@ "type": "Identifier", "name": "fetchEnded", "range": [ - 3132, - 3142 + 3191, + 3201 ], "loc": { "start": { - "line": 121, + "line": 122, "column": 11 }, "end": { - "line": 121, + "line": 122, "column": 21 } } }, "range": [ - 3127, - 3142 + 3186, + 3201 ], "loc": { "start": { - "line": 121, + "line": 122, "column": 6 }, "end": { - "line": 121, + "line": 122, "column": 21 } } }, "arguments": [], "range": [ - 3127, - 3144 + 3186, + 3203 ], "loc": { "start": { - "line": 121, + "line": 122, "column": 6 }, "end": { - "line": 121, + "line": 122, "column": 23 } } }, "range": [ - 3127, - 3145 + 3186, + 3204 ], "loc": { "start": { - "line": 121, + "line": 122, "column": 6 }, "end": { - "line": 121, + "line": 122, "column": 24 } } @@ -4617,16 +4708,16 @@ "object": { "type": "ThisExpression", "range": [ - 3152, - 3156 + 3211, + 3215 ], "loc": { "start": { - "line": 122, + "line": 123, "column": 6 }, "end": { - "line": 122, + "line": 123, "column": 10 } } @@ -4635,62 +4726,62 @@ "type": "Identifier", "name": "loaded", "range": [ - 3157, - 3163 + 3216, + 3222 ], "loc": { "start": { - "line": 122, + "line": 123, "column": 11 }, "end": { - "line": 122, + "line": 123, "column": 17 } } }, "range": [ - 3152, - 3163 + 3211, + 3222 ], "loc": { "start": { - "line": 122, + "line": 123, "column": 6 }, "end": { - "line": 122, + "line": 123, "column": 17 } } }, "arguments": [], "range": [ - 3152, - 3165 + 3211, + 3224 ], "loc": { "start": { - "line": 122, + "line": 123, "column": 6 }, "end": { - "line": 122, + "line": 123, "column": 19 } } }, "range": [ - 3152, - 3166 + 3211, + 3225 ], "loc": { "start": { - "line": 122, + "line": 123, "column": 6 }, "end": { - "line": 122, + "line": 123, "column": 20 } } @@ -4705,16 +4796,16 @@ "object": { "type": "ThisExpression", "range": [ - 3173, - 3177 + 3232, + 3236 ], "loc": { "start": { - "line": 123, + "line": 124, "column": 6 }, "end": { - "line": 123, + "line": 124, "column": 10 } } @@ -4723,62 +4814,62 @@ "type": "Identifier", "name": "renderStarted", "range": [ - 3178, - 3191 + 3237, + 3250 ], "loc": { "start": { - "line": 123, + "line": 124, "column": 11 }, "end": { - "line": 123, + "line": 124, "column": 24 } } }, "range": [ - 3173, - 3191 + 3232, + 3250 ], "loc": { "start": { - "line": 123, + "line": 124, "column": 6 }, "end": { - "line": 123, + "line": 124, "column": 24 } } }, "arguments": [], "range": [ - 3173, - 3193 + 3232, + 3252 ], "loc": { "start": { - "line": 123, + "line": 124, "column": 6 }, "end": { - "line": 123, + "line": 124, "column": 26 } } }, "range": [ - 3173, - 3194 + 3232, + 3253 ], "loc": { "start": { - "line": 123, + "line": 124, "column": 6 }, "end": { - "line": 123, + "line": 124, "column": 27 } } @@ -4793,16 +4884,16 @@ "object": { "type": "ThisExpression", "range": [ - 3201, - 3205 + 3260, + 3264 ], "loc": { "start": { - "line": 124, + "line": 125, "column": 6 }, "end": { - "line": 124, + "line": 125, "column": 10 } } @@ -4811,62 +4902,62 @@ "type": "Identifier", "name": "renderEnded", "range": [ - 3206, - 3217 + 3265, + 3276 ], "loc": { "start": { - "line": 124, + "line": 125, "column": 11 }, "end": { - "line": 124, + "line": 125, "column": 22 } } }, "range": [ - 3201, - 3217 + 3260, + 3276 ], "loc": { "start": { - "line": 124, + "line": 125, "column": 6 }, "end": { - "line": 124, + "line": 125, "column": 22 } } }, "arguments": [], "range": [ - 3201, - 3219 + 3260, + 3278 ], "loc": { "start": { - "line": 124, + "line": 125, "column": 6 }, "end": { - "line": 124, + "line": 125, "column": 24 } } }, "range": [ - 3201, - 3220 + 3260, + 3279 ], "loc": { "start": { - "line": 124, + "line": 125, "column": 6 }, "end": { - "line": 124, + "line": 125, "column": 25 } } @@ -4881,16 +4972,16 @@ "object": { "type": "ThisExpression", "range": [ - 3228, - 3232 + 3287, + 3291 ], "loc": { "start": { - "line": 126, + "line": 127, "column": 6 }, "end": { - "line": 126, + "line": 127, "column": 10 } } @@ -4899,62 +4990,62 @@ "type": "Identifier", "name": "impressionViewable", "range": [ - 3233, - 3251 + 3292, + 3310 ], "loc": { "start": { - "line": 126, + "line": 127, "column": 11 }, "end": { - "line": 126, + "line": 127, "column": 29 } } }, "range": [ - 3228, - 3251 + 3287, + 3310 ], "loc": { "start": { - "line": 126, + "line": 127, "column": 6 }, "end": { - "line": 126, + "line": 127, "column": 29 } } }, "arguments": [], "range": [ - 3228, - 3253 + 3287, + 3312 ], "loc": { "start": { - "line": 126, + "line": 127, "column": 6 }, "end": { - "line": 126, + "line": 127, "column": 31 } } }, "range": [ - 3228, - 3254 + 3287, + 3313 ], "loc": { "start": { - "line": 126, + "line": 127, "column": 6 }, "end": { - "line": 126, + "line": 127, "column": 32 } } @@ -4969,16 +5060,16 @@ "object": { "type": "ThisExpression", "range": [ - 3261, - 3265 + 3320, + 3324 ], "loc": { "start": { - "line": 127, + "line": 128, "column": 6 }, "end": { - "line": 127, + "line": 128, "column": 10 } } @@ -4987,31 +5078,31 @@ "type": "Identifier", "name": "visibilityChanged", "range": [ - 3266, - 3283 + 3325, + 3342 ], "loc": { "start": { - "line": 127, + "line": 128, "column": 11 }, "end": { - "line": 127, + "line": 128, "column": 28 } } }, "range": [ - 3261, - 3283 + 3320, + 3342 ], "loc": { "start": { - "line": 127, + "line": 128, "column": 6 }, "end": { - "line": 127, + "line": 128, "column": 28 } } @@ -5022,95 +5113,95 @@ "value": 100, "raw": "100", "range": [ - 3284, - 3287 + 3343, + 3346 ], "loc": { "start": { - "line": 127, + "line": 128, "column": 29 }, "end": { - "line": 127, + "line": 128, "column": 32 } } } ], "range": [ - 3261, - 3288 + 3320, + 3347 ], "loc": { "start": { - "line": 127, + "line": 128, "column": 6 }, "end": { - "line": 127, + "line": 128, "column": 33 } } }, "range": [ - 3261, - 3289 + 3320, + 3348 ], "loc": { "start": { - "line": 127, + "line": 128, "column": 6 }, "end": { - "line": 127, + "line": 128, "column": 34 } } } ], "range": [ - 3092, - 3295 + 3151, + 3354 ], "loc": { "start": { - "line": 119, + "line": 120, "column": 34 }, "end": { - "line": 128, + "line": 129, "column": 5 } } }, "alternate": null, "range": [ - 3062, - 3295 + 3121, + 3354 ], "loc": { "start": { - "line": 119, + "line": 120, "column": 4 }, "end": { - "line": 128, + "line": 129, "column": 5 } } } ], "range": [ - 3056, - 3299 + 3115, + 3358 ], "loc": { "start": { - "line": 118, + "line": 119, "column": 12 }, "end": { - "line": 129, + "line": 130, "column": 3 } } @@ -5118,16 +5209,16 @@ "generator": false, "expression": false, "range": [ - 3053, - 3299 + 3112, + 3358 ], "loc": { "start": { - "line": 118, + "line": 119, "column": 9 }, "end": { - "line": 129, + "line": 130, "column": 3 } } @@ -5135,16 +5226,16 @@ "kind": "method", "computed": false, "range": [ - 3046, - 3299 + 3105, + 3358 ], "loc": { "start": { - "line": 118, + "line": 119, "column": 2 }, "end": { - "line": 129, + "line": 130, "column": 3 } }, @@ -5153,16 +5244,16 @@ "type": "Block", "value": "*\n * Initiates rendering of this slot.\n ", "range": [ - 2995, - 3043 + 3054, + 3102 ], "loc": { "start": { - "line": 115, + "line": 116, "column": 2 }, "end": { - "line": 117, + "line": 118, "column": 5 } } @@ -5173,16 +5264,16 @@ "type": "Block", "value": "*\n * Returns the list of attribute keys set on this slot. If you intend to see\n * the keys of service-level attributes inherited by this {@link Slot}, you have to\n * use the {@link PubAdsService#getAttributeKeys} API.\n *\n * @returns {!Array} Array of attribute keys. Ordering is undefined.\n ", "range": [ - 3303, - 3618 + 3362, + 3677 ], "loc": { "start": { - "line": 131, + "line": 132, "column": 2 }, "end": { - "line": 137, + "line": 138, "column": 5 } } @@ -5196,16 +5287,16 @@ "type": "Identifier", "name": "getAttributeKeys", "range": [ - 3621, - 3637 + 3680, + 3696 ], "loc": { "start": { - "line": 138, + "line": 139, "column": 2 }, "end": { - "line": 138, + "line": 139, "column": 18 } } @@ -5228,16 +5319,16 @@ "type": "Identifier", "name": "Object", "range": [ - 3653, - 3659 + 3712, + 3718 ], "loc": { "start": { - "line": 139, + "line": 140, "column": 11 }, "end": { - "line": 139, + "line": 140, "column": 17 } } @@ -5246,31 +5337,31 @@ "type": "Identifier", "name": "keys", "range": [ - 3660, - 3664 + 3719, + 3723 ], "loc": { "start": { - "line": 139, + "line": 140, "column": 18 }, "end": { - "line": 139, + "line": 140, "column": 22 } } }, "range": [ - 3653, - 3664 + 3712, + 3723 ], "loc": { "start": { - "line": 139, + "line": 140, "column": 11 }, "end": { - "line": 139, + "line": 140, "column": 22 } } @@ -5282,16 +5373,16 @@ "object": { "type": "ThisExpression", "range": [ - 3665, - 3669 + 3724, + 3728 ], "loc": { "start": { - "line": 139, + "line": 140, "column": 23 }, "end": { - "line": 139, + "line": 140, "column": 27 } } @@ -5300,78 +5391,78 @@ "type": "Identifier", "name": "_attributes", "range": [ - 3670, - 3681 + 3729, + 3740 ], "loc": { "start": { - "line": 139, + "line": 140, "column": 28 }, "end": { - "line": 139, + "line": 140, "column": 39 } } }, "range": [ - 3665, - 3681 + 3724, + 3740 ], "loc": { "start": { - "line": 139, + "line": 140, "column": 23 }, "end": { - "line": 139, + "line": 140, "column": 39 } } } ], "range": [ - 3653, - 3682 + 3712, + 3741 ], "loc": { "start": { - "line": 139, + "line": 140, "column": 11 }, "end": { - "line": 139, + "line": 140, "column": 40 } } }, "range": [ - 3646, - 3683 + 3705, + 3742 ], "loc": { "start": { - "line": 139, + "line": 140, "column": 4 }, "end": { - "line": 139, + "line": 140, "column": 41 } } } ], "range": [ - 3640, - 3687 + 3699, + 3746 ], "loc": { "start": { - "line": 138, + "line": 139, "column": 21 }, "end": { - "line": 140, + "line": 141, "column": 3 } } @@ -5379,16 +5470,16 @@ "generator": false, "expression": false, "range": [ - 3637, - 3687 + 3696, + 3746 ], "loc": { "start": { - "line": 138, + "line": 139, "column": 18 }, "end": { - "line": 140, + "line": 141, "column": 3 } } @@ -5396,16 +5487,16 @@ "kind": "method", "computed": false, "range": [ - 3621, - 3687 + 3680, + 3746 ], "loc": { "start": { - "line": 138, + "line": 139, "column": 2 }, "end": { - "line": 140, + "line": 141, "column": 3 } }, @@ -5414,16 +5505,16 @@ "type": "Block", "value": "*\n * Returns the list of attribute keys set on this slot. If you intend to see\n * the keys of service-level attributes inherited by this {@link Slot}, you have to\n * use the {@link PubAdsService#getAttributeKeys} API.\n *\n * @returns {!Array} Array of attribute keys. Ordering is undefined.\n ", "range": [ - 3303, - 3618 + 3362, + 3677 ], "loc": { "start": { - "line": 131, + "line": 132, "column": 2 }, "end": { - "line": 137, + "line": 138, "column": 5 } } @@ -5434,16 +5525,16 @@ "type": "Block", "value": "*\n * Returns the value for the AdSense attribute associated with the given key.\n * Note that if you intend to see service-level attributes inherited by this\n * slot, you have to use the {@link PubAdsService#get} API.\n *\n * @param {string} key Name of the attribute to look for.\n * @returns {?string} Current value for the attribute key, or null if the key\n * is not present.\n ", "range": [ - 3691, - 4087 + 3750, + 4146 ], "loc": { "start": { - "line": 142, + "line": 143, "column": 2 }, "end": { - "line": 150, + "line": 151, "column": 5 } } @@ -5457,16 +5548,16 @@ "type": "Identifier", "name": "get", "range": [ - 4090, - 4093 + 4149, + 4152 ], "loc": { "start": { - "line": 151, + "line": 152, "column": 2 }, "end": { - "line": 151, + "line": 152, "column": 5 } } @@ -5479,16 +5570,16 @@ "type": "Identifier", "name": "key", "range": [ - 4094, - 4097 + 4153, + 4156 ], "loc": { "start": { - "line": 151, + "line": 152, "column": 6 }, "end": { - "line": 151, + "line": 152, "column": 9 } } @@ -5511,16 +5602,16 @@ "object": { "type": "ThisExpression", "range": [ - 4112, - 4116 + 4171, + 4175 ], "loc": { "start": { - "line": 152, + "line": 153, "column": 11 }, "end": { - "line": 152, + "line": 153, "column": 15 } } @@ -5529,31 +5620,31 @@ "type": "Identifier", "name": "_attributes", "range": [ - 4117, - 4128 + 4176, + 4187 ], "loc": { "start": { - "line": 152, + "line": 153, "column": 16 }, "end": { - "line": 152, + "line": 153, "column": 27 } } }, "range": [ - 4112, - 4128 + 4171, + 4187 ], "loc": { "start": { - "line": 152, + "line": 153, "column": 11 }, "end": { - "line": 152, + "line": 153, "column": 27 } } @@ -5562,31 +5653,31 @@ "type": "Identifier", "name": "key", "range": [ - 4129, - 4132 + 4188, + 4191 ], "loc": { "start": { - "line": 152, + "line": 153, "column": 28 }, "end": { - "line": 152, + "line": 153, "column": 31 } } }, "range": [ - 4112, - 4133 + 4171, + 4192 ], "loc": { "start": { - "line": 152, + "line": 153, "column": 11 }, "end": { - "line": 152, + "line": 153, "column": 32 } } @@ -5596,62 +5687,62 @@ "value": null, "raw": "null", "range": [ - 4137, - 4141 + 4196, + 4200 ], "loc": { "start": { - "line": 152, + "line": 153, "column": 36 }, "end": { - "line": 152, + "line": 153, "column": 40 } } }, "range": [ - 4112, - 4141 + 4171, + 4200 ], "loc": { "start": { - "line": 152, + "line": 153, "column": 11 }, "end": { - "line": 152, + "line": 153, "column": 40 } } }, "range": [ - 4105, - 4142 + 4164, + 4201 ], "loc": { "start": { - "line": 152, + "line": 153, "column": 4 }, "end": { - "line": 152, + "line": 153, "column": 41 } } } ], "range": [ - 4099, - 4146 + 4158, + 4205 ], "loc": { "start": { - "line": 151, + "line": 152, "column": 11 }, "end": { - "line": 153, + "line": 154, "column": 3 } } @@ -5659,16 +5750,16 @@ "generator": false, "expression": false, "range": [ - 4093, - 4146 + 4152, + 4205 ], "loc": { "start": { - "line": 151, + "line": 152, "column": 5 }, "end": { - "line": 153, + "line": 154, "column": 3 } } @@ -5676,16 +5767,16 @@ "kind": "method", "computed": false, "range": [ - 4090, - 4146 + 4149, + 4205 ], "loc": { "start": { - "line": 151, + "line": 152, "column": 2 }, "end": { - "line": 153, + "line": 154, "column": 3 } }, @@ -5694,16 +5785,16 @@ "type": "Block", "value": "*\n * Returns the value for the AdSense attribute associated with the given key.\n * Note that if you intend to see service-level attributes inherited by this\n * slot, you have to use the {@link PubAdsService#get} API.\n *\n * @param {string} key Name of the attribute to look for.\n * @returns {?string} Current value for the attribute key, or null if the key\n * is not present.\n ", "range": [ - 3691, - 4087 + 3750, + 4146 ], "loc": { "start": { - "line": 142, + "line": 143, "column": 2 }, "end": { - "line": 150, + "line": 151, "column": 5 } } @@ -5714,16 +5805,16 @@ "type": "Block", "value": "*\n * Sets a value for an AdSense attribute on a particular ad slot. This will\n * override any values set at the service level for this key. See the AdSense\n * Attributes for a list of available keys and values. Calling this method\n * more than once for the same key will override previously set values for\n * that key. All values must be set before any display call.\n *\n * @param {string} key The name of the attribute.\n * @param {string} value Attribute value.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n ", "range": [ - 4150, - 4712 + 4209, + 4771 ], "loc": { "start": { - "line": 155, + "line": 156, "column": 2 }, "end": { - "line": 165, + "line": 166, "column": 5 } } @@ -5737,16 +5828,16 @@ "type": "Identifier", "name": "set", "range": [ - 4715, - 4718 + 4774, + 4777 ], "loc": { "start": { - "line": 166, + "line": 167, "column": 2 }, "end": { - "line": 166, + "line": 167, "column": 5 } } @@ -5759,16 +5850,16 @@ "type": "Identifier", "name": "key", "range": [ - 4719, - 4722 + 4778, + 4781 ], "loc": { "start": { - "line": 166, + "line": 167, "column": 6 }, "end": { - "line": 166, + "line": 167, "column": 9 } } @@ -5777,16 +5868,16 @@ "type": "Identifier", "name": "value", "range": [ - 4724, - 4729 + 4783, + 4788 ], "loc": { "start": { - "line": 166, + "line": 167, "column": 11 }, "end": { - "line": 166, + "line": 167, "column": 16 } } @@ -5809,16 +5900,16 @@ "object": { "type": "ThisExpression", "range": [ - 4737, - 4741 + 4796, + 4800 ], "loc": { "start": { - "line": 167, + "line": 168, "column": 4 }, "end": { - "line": 167, + "line": 168, "column": 8 } } @@ -5827,31 +5918,31 @@ "type": "Identifier", "name": "_attributes", "range": [ - 4742, - 4753 + 4801, + 4812 ], "loc": { "start": { - "line": 167, + "line": 168, "column": 9 }, "end": { - "line": 167, + "line": 168, "column": 20 } } }, "range": [ - 4737, - 4753 + 4796, + 4812 ], "loc": { "start": { - "line": 167, + "line": 168, "column": 4 }, "end": { - "line": 167, + "line": 168, "column": 20 } } @@ -5860,31 +5951,31 @@ "type": "Identifier", "name": "key", "range": [ - 4754, - 4757 + 4813, + 4816 ], "loc": { "start": { - "line": 167, + "line": 168, "column": 21 }, "end": { - "line": 167, + "line": 168, "column": 24 } } }, "range": [ - 4737, - 4758 + 4796, + 4817 ], "loc": { "start": { - "line": 167, + "line": 168, "column": 4 }, "end": { - "line": 167, + "line": 168, "column": 25 } } @@ -5893,46 +5984,46 @@ "type": "Identifier", "name": "value", "range": [ - 4761, - 4766 + 4820, + 4825 ], "loc": { "start": { - "line": 167, + "line": 168, "column": 28 }, "end": { - "line": 167, + "line": 168, "column": 33 } } }, "range": [ - 4737, - 4766 + 4796, + 4825 ], "loc": { "start": { - "line": 167, + "line": 168, "column": 4 }, "end": { - "line": 167, + "line": 168, "column": 33 } } }, "range": [ - 4737, - 4767 + 4796, + 4826 ], "loc": { "start": { - "line": 167, + "line": 168, "column": 4 }, "end": { - "line": 167, + "line": 168, "column": 34 } } @@ -5942,47 +6033,47 @@ "argument": { "type": "ThisExpression", "range": [ - 4779, - 4783 + 4838, + 4842 ], "loc": { "start": { - "line": 168, + "line": 169, "column": 11 }, "end": { - "line": 168, + "line": 169, "column": 15 } } }, "range": [ - 4772, - 4784 + 4831, + 4843 ], "loc": { "start": { - "line": 168, + "line": 169, "column": 4 }, "end": { - "line": 168, + "line": 169, "column": 16 } } } ], "range": [ - 4731, - 4788 + 4790, + 4847 ], "loc": { "start": { - "line": 166, + "line": 167, "column": 18 }, "end": { - "line": 169, + "line": 170, "column": 3 } } @@ -5990,16 +6081,16 @@ "generator": false, "expression": false, "range": [ - 4718, - 4788 + 4777, + 4847 ], "loc": { "start": { - "line": 166, + "line": 167, "column": 5 }, "end": { - "line": 169, + "line": 170, "column": 3 } } @@ -6007,16 +6098,16 @@ "kind": "method", "computed": false, "range": [ - 4715, - 4788 + 4774, + 4847 ], "loc": { "start": { - "line": 166, + "line": 167, "column": 2 }, "end": { - "line": 169, + "line": 170, "column": 3 } }, @@ -6025,16 +6116,16 @@ "type": "Block", "value": "*\n * Sets a value for an AdSense attribute on a particular ad slot. This will\n * override any values set at the service level for this key. See the AdSense\n * Attributes for a list of available keys and values. Calling this method\n * more than once for the same key will override previously set values for\n * that key. All values must be set before any display call.\n *\n * @param {string} key The name of the attribute.\n * @param {string} value Attribute value.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n ", "range": [ - 4150, - 4712 + 4209, + 4771 ], "loc": { "start": { - "line": 155, + "line": 156, "column": 2 }, "end": { - "line": 165, + "line": 166, "column": 5 } } @@ -6045,16 +6136,16 @@ "type": "Block", "value": "*\n * Return the attribute map.\n *\n * @private\n * @returns {Object} The attribute map\n ", "range": [ - 4792, - 4908 + 4851, + 4967 ], "loc": { "start": { - "line": 171, + "line": 172, "column": 2 }, "end": { - "line": 176, + "line": 177, "column": 5 } } @@ -6068,16 +6159,16 @@ "type": "Identifier", "name": "_getAttributes", "range": [ - 4911, - 4925 + 4970, + 4984 ], "loc": { "start": { - "line": 177, + "line": 178, "column": 2 }, "end": { - "line": 177, + "line": 178, "column": 16 } } @@ -6100,16 +6191,16 @@ "type": "Identifier", "name": "Object", "range": [ - 4941, - 4947 + 5000, + 5006 ], "loc": { "start": { - "line": 178, + "line": 179, "column": 11 }, "end": { - "line": 178, + "line": 179, "column": 17 } } @@ -6118,31 +6209,31 @@ "type": "Identifier", "name": "assign", "range": [ - 4948, - 4954 + 5007, + 5013 ], "loc": { "start": { - "line": 178, + "line": 179, "column": 18 }, "end": { - "line": 178, + "line": 179, "column": 24 } } }, "range": [ - 4941, - 4954 + 5000, + 5013 ], "loc": { "start": { - "line": 178, + "line": 179, "column": 11 }, "end": { - "line": 178, + "line": 179, "column": 24 } } @@ -6152,16 +6243,16 @@ "type": "ObjectExpression", "properties": [], "range": [ - 4955, - 4957 + 5014, + 5016 ], "loc": { "start": { - "line": 178, + "line": 179, "column": 25 }, "end": { - "line": 178, + "line": 179, "column": 27 } } @@ -6172,16 +6263,16 @@ "object": { "type": "ThisExpression", "range": [ - 4959, - 4963 + 5018, + 5022 ], "loc": { "start": { - "line": 178, + "line": 179, "column": 29 }, "end": { - "line": 178, + "line": 179, "column": 33 } } @@ -6190,78 +6281,78 @@ "type": "Identifier", "name": "_attributes", "range": [ - 4964, - 4975 + 5023, + 5034 ], "loc": { "start": { - "line": 178, + "line": 179, "column": 34 }, "end": { - "line": 178, + "line": 179, "column": 45 } } }, "range": [ - 4959, - 4975 + 5018, + 5034 ], "loc": { "start": { - "line": 178, + "line": 179, "column": 29 }, "end": { - "line": 178, + "line": 179, "column": 45 } } } ], "range": [ - 4941, - 4976 + 5000, + 5035 ], "loc": { "start": { - "line": 178, + "line": 179, "column": 11 }, "end": { - "line": 178, + "line": 179, "column": 46 } } }, "range": [ - 4934, - 4977 + 4993, + 5036 ], "loc": { "start": { - "line": 178, + "line": 179, "column": 4 }, "end": { - "line": 178, + "line": 179, "column": 47 } } } ], "range": [ - 4928, - 4981 + 4987, + 5040 ], "loc": { "start": { - "line": 177, + "line": 178, "column": 19 }, "end": { - "line": 179, + "line": 180, "column": 3 } } @@ -6269,16 +6360,16 @@ "generator": false, "expression": false, "range": [ - 4925, - 4981 + 4984, + 5040 ], "loc": { "start": { - "line": 177, + "line": 178, "column": 16 }, "end": { - "line": 179, + "line": 180, "column": 3 } } @@ -6286,16 +6377,16 @@ "kind": "method", "computed": false, "range": [ - 4911, - 4981 + 4970, + 5040 ], "loc": { "start": { - "line": 177, + "line": 178, "column": 2 }, "end": { - "line": 179, + "line": 180, "column": 3 } }, @@ -6304,16 +6395,16 @@ "type": "Block", "value": "*\n * Return the attribute map.\n *\n * @private\n * @returns {Object} The attribute map\n ", "range": [ - 4792, - 4908 + 4851, + 4967 ], "loc": { "start": { - "line": 171, + "line": 172, "column": 2 }, "end": { - "line": 176, + "line": 177, "column": 5 } } @@ -6324,16 +6415,16 @@ "type": "Block", "value": "*\n * Returns a specific custom targeting parameter set on this slot.\n * Service-level targeting parameters are not included.\n *\n * @param {string} key The targeting key to look for.\n * @returns {!Array} The values associated with this key, or an empty\n * array if there is no such key.\n ", "range": [ - 4985, - 5298 + 5044, + 5357 ], "loc": { "start": { - "line": 181, + "line": 182, "column": 2 }, "end": { - "line": 188, + "line": 189, "column": 5 } } @@ -6347,16 +6438,16 @@ "type": "Identifier", "name": "getTargeting", "range": [ - 5301, - 5313 + 5360, + 5372 ], "loc": { "start": { - "line": 189, + "line": 190, "column": 2 }, "end": { - "line": 189, + "line": 190, "column": 14 } } @@ -6369,16 +6460,16 @@ "type": "Identifier", "name": "key", "range": [ - 5314, - 5317 + 5373, + 5376 ], "loc": { "start": { - "line": 189, + "line": 190, "column": 15 }, "end": { - "line": 189, + "line": 190, "column": 18 } } @@ -6390,27 +6481,26 @@ { "type": "ReturnStatement", "argument": { - "type": "LogicalExpression", - "operator": "||", - "left": { + "type": "CallExpression", + "callee": { "type": "MemberExpression", - "computed": true, + "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ - 5332, - 5336 + 5391, + 5395 ], "loc": { "start": { - "line": 190, + "line": 191, "column": 11 }, "end": { - "line": 190, + "line": 191, "column": 15 } } @@ -6419,128 +6509,130 @@ "type": "Identifier", "name": "_targeting", "range": [ - 5337, - 5347 + 5396, + 5406 ], "loc": { "start": { - "line": 190, + "line": 191, "column": 16 }, "end": { - "line": 190, + "line": 191, "column": 26 } } }, "range": [ - 5332, - 5347 + 5391, + 5406 ], "loc": { "start": { - "line": 190, + "line": 191, "column": 11 }, "end": { - "line": 190, + "line": 191, "column": 26 } } }, "property": { "type": "Identifier", - "name": "key", + "name": "get", "range": [ - 5348, - 5351 + 5407, + 5410 ], "loc": { "start": { - "line": 190, + "line": 191, "column": 27 }, "end": { - "line": 190, + "line": 191, "column": 30 } } }, "range": [ - 5332, - 5352 + 5391, + 5410 ], "loc": { "start": { - "line": 190, + "line": 191, "column": 11 }, "end": { - "line": 190, - "column": 31 + "line": 191, + "column": 30 } } }, - "right": { - "type": "ArrayExpression", - "elements": [], - "range": [ - 5356, - 5358 - ], - "loc": { - "start": { - "line": 190, - "column": 35 - }, - "end": { - "line": 190, - "column": 37 + "arguments": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 5411, + 5414 + ], + "loc": { + "start": { + "line": 191, + "column": 31 + }, + "end": { + "line": 191, + "column": 34 + } } } - }, + ], "range": [ - 5332, - 5358 + 5391, + 5415 ], "loc": { "start": { - "line": 190, + "line": 191, "column": 11 }, "end": { - "line": 190, - "column": 37 + "line": 191, + "column": 35 } } }, "range": [ - 5325, - 5359 + 5384, + 5416 ], "loc": { "start": { - "line": 190, + "line": 191, "column": 4 }, "end": { - "line": 190, - "column": 38 + "line": 191, + "column": 36 } } } ], "range": [ - 5319, - 5363 + 5378, + 5420 ], "loc": { "start": { - "line": 189, + "line": 190, "column": 20 }, "end": { - "line": 191, + "line": 192, "column": 3 } } @@ -6548,16 +6640,16 @@ "generator": false, "expression": false, "range": [ - 5313, - 5363 + 5372, + 5420 ], "loc": { "start": { - "line": 189, + "line": 190, "column": 14 }, "end": { - "line": 191, + "line": 192, "column": 3 } } @@ -6565,16 +6657,16 @@ "kind": "method", "computed": false, "range": [ - 5301, - 5363 + 5360, + 5420 ], "loc": { "start": { - "line": 189, + "line": 190, "column": 2 }, "end": { - "line": 191, + "line": 192, "column": 3 } }, @@ -6583,16 +6675,16 @@ "type": "Block", "value": "*\n * Returns a specific custom targeting parameter set on this slot.\n * Service-level targeting parameters are not included.\n *\n * @param {string} key The targeting key to look for.\n * @returns {!Array} The values associated with this key, or an empty\n * array if there is no such key.\n ", "range": [ - 4985, - 5298 + 5044, + 5357 ], "loc": { "start": { - "line": 181, + "line": 182, "column": 2 }, "end": { - "line": 188, + "line": 189, "column": 5 } } @@ -6601,18 +6693,18 @@ "trailingComments": [ { "type": "Block", - "value": "*\n * Returns the list of all custom targeting keys set on this slot. Service-level\n * targeting keys are not included.\n *\n * @returns {!Array} Array of targeting keys. Ordering is undefined.\n ", + "value": "*\n * Sets a custom targeting parameter for this slot. Calling this method\n * multiple times for the same key will overwrite old values. Values set here\n * will overwrite targeting parameters set on service level. These keys are\n * defined in your {@link DFP} account.\n *\n * @param {string} key Targeting parameter key.\n * @param {string|!Array} value Targeting parameter value or array of values.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n ", "range": [ - 5367, - 5581 + 5424, + 5927 ], "loc": { "start": { - "line": 193, + "line": 194, "column": 2 }, "end": { - "line": 198, + "line": 203, "column": 5 } } @@ -6624,184 +6716,273 @@ "type": "MethodDefinition", "key": { "type": "Identifier", - "name": "getTargetingKeys", + "name": "setTargeting", "range": [ - 5584, - 5600 + 5930, + 5942 ], "loc": { "start": { - "line": 199, + "line": 204, "column": 2 }, "end": { - "line": 199, - "column": 18 + "line": 204, + "column": 14 } } }, "value": { "type": "FunctionExpression", "id": null, - "params": [], + "params": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 5943, + 5946 + ], + "loc": { + "start": { + "line": 204, + "column": 15 + }, + "end": { + "line": 204, + "column": 18 + } + } + }, + { + "type": "Identifier", + "name": "value", + "range": [ + 5948, + 5953 + ], + "loc": { + "start": { + "line": 204, + "column": 20 + }, + "end": { + "line": 204, + "column": 25 + } + } + } + ], "body": { "type": "BlockStatement", "body": [ { - "type": "ReturnStatement", - "argument": { + "type": "ExpressionStatement", + "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { - "type": "Identifier", - "name": "Object", + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 5961, + 5965 + ], + "loc": { + "start": { + "line": 205, + "column": 4 + }, + "end": { + "line": 205, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_targeting", + "range": [ + 5966, + 5976 + ], + "loc": { + "start": { + "line": 205, + "column": 9 + }, + "end": { + "line": 205, + "column": 19 + } + } + }, "range": [ - 5616, - 5622 + 5961, + 5976 ], "loc": { "start": { - "line": 200, - "column": 11 + "line": 205, + "column": 4 }, "end": { - "line": 200, - "column": 17 + "line": 205, + "column": 19 } } }, "property": { "type": "Identifier", - "name": "keys", + "name": "set", "range": [ - 5623, - 5627 + 5977, + 5980 ], "loc": { "start": { - "line": 200, - "column": 18 + "line": 205, + "column": 20 }, "end": { - "line": 200, - "column": 22 + "line": 205, + "column": 23 } } }, "range": [ - 5616, - 5627 + 5961, + 5980 ], "loc": { "start": { - "line": 200, - "column": 11 + "line": 205, + "column": 4 }, "end": { - "line": 200, - "column": 22 + "line": 205, + "column": 23 } } }, "arguments": [ { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "ThisExpression", - "range": [ - 5628, - 5632 - ], - "loc": { - "start": { - "line": 200, - "column": 23 - }, - "end": { - "line": 200, - "column": 27 - } - } - }, - "property": { - "type": "Identifier", - "name": "_targeting", - "range": [ - 5633, - 5643 - ], - "loc": { - "start": { - "line": 200, - "column": 28 - }, - "end": { - "line": 200, - "column": 38 - } - } - }, + "type": "Identifier", + "name": "key", "range": [ - 5628, - 5643 + 5981, + 5984 ], "loc": { "start": { - "line": 200, - "column": 23 + "line": 205, + "column": 24 }, "end": { - "line": 200, - "column": 38 + "line": 205, + "column": 27 } } - } - ], + }, + { + "type": "Identifier", + "name": "value", + "range": [ + 5986, + 5991 + ], + "loc": { + "start": { + "line": 205, + "column": 29 + }, + "end": { + "line": 205, + "column": 34 + } + } + } + ], + "range": [ + 5961, + 5992 + ], + "loc": { + "start": { + "line": 205, + "column": 4 + }, + "end": { + "line": 205, + "column": 35 + } + } + }, + "range": [ + 5961, + 5993 + ], + "loc": { + "start": { + "line": 205, + "column": 4 + }, + "end": { + "line": 205, + "column": 36 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", "range": [ - 5616, - 5644 + 6005, + 6009 ], "loc": { "start": { - "line": 200, + "line": 206, "column": 11 }, "end": { - "line": 200, - "column": 39 + "line": 206, + "column": 15 } } }, "range": [ - 5609, - 5645 + 5998, + 6010 ], "loc": { "start": { - "line": 200, + "line": 206, "column": 4 }, "end": { - "line": 200, - "column": 40 + "line": 206, + "column": 16 } } } ], "range": [ - 5603, - 5649 + 5955, + 6014 ], "loc": { "start": { - "line": 199, - "column": 21 + "line": 204, + "column": 27 }, "end": { - "line": 201, + "line": 207, "column": 3 } } @@ -6809,16 +6990,16 @@ "generator": false, "expression": false, "range": [ - 5600, - 5649 + 5942, + 6014 ], "loc": { "start": { - "line": 199, - "column": 18 + "line": 204, + "column": 14 }, "end": { - "line": 201, + "line": 207, "column": 3 } } @@ -6826,34 +7007,34 @@ "kind": "method", "computed": false, "range": [ - 5584, - 5649 + 5930, + 6014 ], "loc": { "start": { - "line": 199, + "line": 204, "column": 2 }, "end": { - "line": 201, + "line": 207, "column": 3 } }, "leadingComments": [ { "type": "Block", - "value": "*\n * Returns the list of all custom targeting keys set on this slot. Service-level\n * targeting keys are not included.\n *\n * @returns {!Array} Array of targeting keys. Ordering is undefined.\n ", + "value": "*\n * Sets a custom targeting parameter for this slot. Calling this method\n * multiple times for the same key will overwrite old values. Values set here\n * will overwrite targeting parameters set on service level. These keys are\n * defined in your {@link DFP} account.\n *\n * @param {string} key Targeting parameter key.\n * @param {string|!Array} value Targeting parameter value or array of values.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n ", "range": [ - 5367, - 5581 + 5424, + 5927 ], "loc": { "start": { - "line": 193, + "line": 194, "column": 2 }, "end": { - "line": 198, + "line": 203, "column": 5 } } @@ -6862,18 +7043,18 @@ "trailingComments": [ { "type": "Block", - "value": "*\n * Sets a custom targeting parameter for this slot. Calling this method\n * multiple times for the same key will overwrite old values. Values set here\n * will overwrite targeting parameters set on service level. These keys are\n * defined in your {@link DFP} account.\n *\n * @param {string} key Targeting parameter key.\n * @param {string|!Array} value Targeting parameter value or array of values.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n ", + "value": "*\n * Returns the list of all custom targeting keys set on this slot. Service-level\n * targeting keys are not included.\n *\n * @returns {!Array} Array of targeting keys. Ordering is undefined.\n ", "range": [ - 5653, - 6156 + 6018, + 6232 ], "loc": { "start": { - "line": 203, + "line": 209, "column": 2 }, "end": { - "line": 212, + "line": 214, "column": 5 } } @@ -6885,561 +7066,165 @@ "type": "MethodDefinition", "key": { "type": "Identifier", - "name": "setTargeting", + "name": "getTargetingKeys", "range": [ - 6159, - 6171 + 6235, + 6251 ], "loc": { "start": { - "line": 213, + "line": 215, "column": 2 }, "end": { - "line": 213, - "column": 14 + "line": 215, + "column": 18 } } }, "value": { "type": "FunctionExpression", "id": null, - "params": [ - { - "type": "Identifier", - "name": "key", - "range": [ - 6172, - 6175 - ], - "loc": { - "start": { - "line": 213, - "column": 15 - }, - "end": { - "line": 213, - "column": 18 - } - } - }, - { - "type": "Identifier", - "name": "value", - "range": [ - 6177, - 6182 - ], - "loc": { - "start": { - "line": 213, - "column": 20 - }, - "end": { - "line": 213, - "column": 25 - } - } - } - ], + "params": [], "body": { "type": "BlockStatement", "body": [ { - "type": "IfStatement", - "test": { + "type": "ReturnStatement", + "argument": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { - "type": "Identifier", - "name": "Array", + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 6267, + 6271 + ], + "loc": { + "start": { + "line": 216, + "column": 11 + }, + "end": { + "line": 216, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_targeting", + "range": [ + 6272, + 6282 + ], + "loc": { + "start": { + "line": 216, + "column": 16 + }, + "end": { + "line": 216, + "column": 26 + } + } + }, "range": [ - 6194, - 6199 + 6267, + 6282 ], "loc": { "start": { - "line": 214, - "column": 8 + "line": 216, + "column": 11 }, "end": { - "line": 214, - "column": 13 + "line": 216, + "column": 26 } } }, "property": { "type": "Identifier", - "name": "isArray", + "name": "keys", "range": [ - 6200, - 6207 + 6283, + 6287 ], "loc": { "start": { - "line": 214, - "column": 14 + "line": 216, + "column": 27 }, "end": { - "line": 214, - "column": 21 + "line": 216, + "column": 31 } } }, "range": [ - 6194, - 6207 + 6267, + 6287 ], "loc": { "start": { - "line": 214, - "column": 8 + "line": 216, + "column": 11 }, "end": { - "line": 214, - "column": 21 + "line": 216, + "column": 31 } } }, - "arguments": [ - { - "type": "Identifier", - "name": "value", - "range": [ - 6208, - 6213 - ], - "loc": { - "start": { - "line": 214, - "column": 22 - }, - "end": { - "line": 214, - "column": 27 - } - } - } - ], + "arguments": [], "range": [ - 6194, - 6214 + 6267, + 6289 ], "loc": { "start": { - "line": 214, - "column": 8 + "line": 216, + "column": 11 }, "end": { - "line": 214, - "column": 28 - } - } - }, - "consequent": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "ThisExpression", - "range": [ - 6224, - 6228 - ], - "loc": { - "start": { - "line": 215, - "column": 6 - }, - "end": { - "line": 215, - "column": 10 - } - } - }, - "property": { - "type": "Identifier", - "name": "_targeting", - "range": [ - 6229, - 6239 - ], - "loc": { - "start": { - "line": 215, - "column": 11 - }, - "end": { - "line": 215, - "column": 21 - } - } - }, - "range": [ - 6224, - 6239 - ], - "loc": { - "start": { - "line": 215, - "column": 6 - }, - "end": { - "line": 215, - "column": 21 - } - } - }, - "property": { - "type": "Identifier", - "name": "key", - "range": [ - 6240, - 6243 - ], - "loc": { - "start": { - "line": 215, - "column": 22 - }, - "end": { - "line": 215, - "column": 25 - } - } - }, - "range": [ - 6224, - 6244 - ], - "loc": { - "start": { - "line": 215, - "column": 6 - }, - "end": { - "line": 215, - "column": 26 - } - } - }, - "right": { - "type": "Identifier", - "name": "value", - "range": [ - 6247, - 6252 - ], - "loc": { - "start": { - "line": 215, - "column": 29 - }, - "end": { - "line": 215, - "column": 34 - } - } - }, - "range": [ - 6224, - 6252 - ], - "loc": { - "start": { - "line": 215, - "column": 6 - }, - "end": { - "line": 215, - "column": 34 - } - } - }, - "range": [ - 6224, - 6253 - ], - "loc": { - "start": { - "line": 215, - "column": 6 - }, - "end": { - "line": 215, - "column": 35 - } - } - } - ], - "range": [ - 6216, - 6259 - ], - "loc": { - "start": { - "line": 214, - "column": 30 - }, - "end": { - "line": 216, - "column": 5 - } - } - }, - "alternate": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "ThisExpression", - "range": [ - 6273, - 6277 - ], - "loc": { - "start": { - "line": 217, - "column": 6 - }, - "end": { - "line": 217, - "column": 10 - } - } - }, - "property": { - "type": "Identifier", - "name": "_targeting", - "range": [ - 6278, - 6288 - ], - "loc": { - "start": { - "line": 217, - "column": 11 - }, - "end": { - "line": 217, - "column": 21 - } - } - }, - "range": [ - 6273, - 6288 - ], - "loc": { - "start": { - "line": 217, - "column": 6 - }, - "end": { - "line": 217, - "column": 21 - } - } - }, - "property": { - "type": "Identifier", - "name": "key", - "range": [ - 6289, - 6292 - ], - "loc": { - "start": { - "line": 217, - "column": 22 - }, - "end": { - "line": 217, - "column": 25 - } - } - }, - "range": [ - 6273, - 6293 - ], - "loc": { - "start": { - "line": 217, - "column": 6 - }, - "end": { - "line": 217, - "column": 26 - } - } - }, - "right": { - "type": "ArrayExpression", - "elements": [ - { - "type": "Identifier", - "name": "value", - "range": [ - 6297, - 6302 - ], - "loc": { - "start": { - "line": 217, - "column": 30 - }, - "end": { - "line": 217, - "column": 35 - } - } - } - ], - "range": [ - 6296, - 6303 - ], - "loc": { - "start": { - "line": 217, - "column": 29 - }, - "end": { - "line": 217, - "column": 36 - } - } - }, - "range": [ - 6273, - 6303 - ], - "loc": { - "start": { - "line": 217, - "column": 6 - }, - "end": { - "line": 217, - "column": 36 - } - } - }, - "range": [ - 6273, - 6304 - ], - "loc": { - "start": { - "line": 217, - "column": 6 - }, - "end": { - "line": 217, - "column": 37 - } - } - } - ], - "range": [ - 6265, - 6310 - ], - "loc": { - "start": { - "line": 216, - "column": 11 - }, - "end": { - "line": 218, - "column": 5 - } - } - }, - "range": [ - 6190, - 6310 - ], - "loc": { - "start": { - "line": 214, - "column": 4 - }, - "end": { - "line": 218, - "column": 5 - } - } - }, - { - "type": "ReturnStatement", - "argument": { - "type": "ThisExpression", - "range": [ - 6322, - 6326 - ], - "loc": { - "start": { - "line": 219, - "column": 11 - }, - "end": { - "line": 219, - "column": 15 + "line": 216, + "column": 33 } } }, "range": [ - 6315, - 6327 + 6260, + 6290 ], "loc": { "start": { - "line": 219, + "line": 216, "column": 4 }, "end": { - "line": 219, - "column": 16 + "line": 216, + "column": 34 } } } ], "range": [ - 6184, - 6331 + 6254, + 6294 ], "loc": { "start": { - "line": 213, - "column": 27 + "line": 215, + "column": 21 }, "end": { - "line": 220, + "line": 217, "column": 3 } } @@ -7447,16 +7232,16 @@ "generator": false, "expression": false, "range": [ - 6171, - 6331 + 6251, + 6294 ], "loc": { "start": { - "line": 213, - "column": 14 + "line": 215, + "column": 18 }, "end": { - "line": 220, + "line": 217, "column": 3 } } @@ -7464,34 +7249,34 @@ "kind": "method", "computed": false, "range": [ - 6159, - 6331 + 6235, + 6294 ], "loc": { "start": { - "line": 213, + "line": 215, "column": 2 }, "end": { - "line": 220, + "line": 217, "column": 3 } }, "leadingComments": [ { "type": "Block", - "value": "*\n * Sets a custom targeting parameter for this slot. Calling this method\n * multiple times for the same key will overwrite old values. Values set here\n * will overwrite targeting parameters set on service level. These keys are\n * defined in your {@link DFP} account.\n *\n * @param {string} key Targeting parameter key.\n * @param {string|!Array} value Targeting parameter value or array of values.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n ", + "value": "*\n * Returns the list of all custom targeting keys set on this slot. Service-level\n * targeting keys are not included.\n *\n * @returns {!Array} Array of targeting keys. Ordering is undefined.\n ", "range": [ - 5653, - 6156 + 6018, + 6232 ], "loc": { "start": { - "line": 203, + "line": 209, "column": 2 }, "end": { - "line": 212, + "line": 214, "column": 5 } } @@ -7500,18 +7285,18 @@ "trailingComments": [ { "type": "Block", - "value": "*\n * Sets custom targeting parameters for this passback slot, from a key:value\n * map in a JSON object. A badly formatted input will be rejected. This is the\n * same as calling @{link Slot#setTargeting} for all the key values\n * of the object. In case of overwriting, only the last value will be kept.\n * Values set here will overwrite targeting parameters set on service level.\n * These keys are defined in your {@link DFP} account.\n *\n * @param {Object>} map Targeting parameter key:value map.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n ", + "value": "*\n * Returns the current targeting key-value dictionary.\n *\n * @experimental\n * @returns {Object>} the targeting map.\n ", "range": [ - 6335, - 6960 + 6298, + 6453 ], "loc": { "start": { - "line": 222, + "line": 219, "column": 2 }, "end": { - "line": 232, + "line": 224, "column": 5 } } @@ -7523,494 +7308,165 @@ "type": "MethodDefinition", "key": { "type": "Identifier", - "name": "updateTargetingFromMap", + "name": "getTargetingMap", "range": [ - 6963, - 6985 + 6456, + 6471 ], "loc": { "start": { - "line": 233, + "line": 225, "column": 2 }, "end": { - "line": 233, - "column": 24 + "line": 225, + "column": 17 } } }, "value": { "type": "FunctionExpression", "id": null, - "params": [ - { - "type": "Identifier", - "name": "map", - "range": [ - 6986, - 6989 - ], - "loc": { - "start": { - "line": 233, - "column": 25 - }, - "end": { - "line": 233, - "column": 28 - } - } - } - ], + "params": [], "body": { "type": "BlockStatement", "body": [ { - "type": "ForInStatement", - "left": { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "key", + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", "range": [ - 7006, - 7009 + 6487, + 6491 ], "loc": { "start": { - "line": 234, - "column": 13 + "line": 226, + "column": 11 }, "end": { - "line": 234, + "line": 226, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_targeting", + "range": [ + 6492, + 6502 + ], + "loc": { + "start": { + "line": 226, "column": 16 + }, + "end": { + "line": 226, + "column": 26 } } }, - "init": null, "range": [ - 7006, - 7009 + 6487, + 6502 ], "loc": { "start": { - "line": 234, - "column": 13 + "line": 226, + "column": 11 }, "end": { - "line": 234, - "column": 16 + "line": 226, + "column": 26 } } - } - ], - "kind": "let", - "range": [ - 7002, - 7009 - ], - "loc": { - "start": { - "line": 234, - "column": 9 }, - "end": { - "line": 234, - "column": 16 - } - } - }, - "right": { - "type": "Identifier", - "name": "map", - "range": [ - 7013, - 7016 - ], - "loc": { - "start": { - "line": 234, - "column": 20 - }, - "end": { - "line": 234, - "column": 23 - } - } - }, - "body": { - "type": "BlockStatement", - "body": [ - { - "type": "IfStatement", - "test": { - "type": "CallExpression", - "callee": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "Identifier", - "name": "map", - "range": [ - 7030, - 7033 - ], - "loc": { - "start": { - "line": 235, - "column": 10 - }, - "end": { - "line": 235, - "column": 13 - } - } - }, - "property": { - "type": "Identifier", - "name": "hasOwnProperty", - "range": [ - 7034, - 7048 - ], - "loc": { - "start": { - "line": 235, - "column": 14 - }, - "end": { - "line": 235, - "column": 28 - } - } - }, - "range": [ - 7030, - 7048 - ], - "loc": { - "start": { - "line": 235, - "column": 10 - }, - "end": { - "line": 235, - "column": 28 - } - } - }, - "arguments": [ - { - "type": "Identifier", - "name": "key", - "range": [ - 7049, - 7052 - ], - "loc": { - "start": { - "line": 235, - "column": 29 - }, - "end": { - "line": 235, - "column": 32 - } - } - } - ], - "range": [ - 7030, - 7053 - ], - "loc": { - "start": { - "line": 235, - "column": 10 - }, - "end": { - "line": 235, - "column": 33 - } - } - }, - "consequent": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "CallExpression", - "callee": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "ThisExpression", - "range": [ - 7065, - 7069 - ], - "loc": { - "start": { - "line": 236, - "column": 8 - }, - "end": { - "line": 236, - "column": 12 - } - } - }, - "property": { - "type": "Identifier", - "name": "setTargeting", - "range": [ - 7070, - 7082 - ], - "loc": { - "start": { - "line": 236, - "column": 13 - }, - "end": { - "line": 236, - "column": 25 - } - } - }, - "range": [ - 7065, - 7082 - ], - "loc": { - "start": { - "line": 236, - "column": 8 - }, - "end": { - "line": 236, - "column": 25 - } - } - }, - "arguments": [ - { - "type": "Identifier", - "name": "key", - "range": [ - 7083, - 7086 - ], - "loc": { - "start": { - "line": 236, - "column": 26 - }, - "end": { - "line": 236, - "column": 29 - } - } - }, - { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "map", - "range": [ - 7088, - 7091 - ], - "loc": { - "start": { - "line": 236, - "column": 31 - }, - "end": { - "line": 236, - "column": 34 - } - } - }, - "property": { - "type": "Identifier", - "name": "key", - "range": [ - 7092, - 7095 - ], - "loc": { - "start": { - "line": 236, - "column": 35 - }, - "end": { - "line": 236, - "column": 38 - } - } - }, - "range": [ - 7088, - 7096 - ], - "loc": { - "start": { - "line": 236, - "column": 31 - }, - "end": { - "line": 236, - "column": 39 - } - } - } - ], - "range": [ - 7065, - 7097 - ], - "loc": { - "start": { - "line": 236, - "column": 8 - }, - "end": { - "line": 236, - "column": 40 - } - } - }, - "range": [ - 7065, - 7098 - ], - "loc": { - "start": { - "line": 236, - "column": 8 - }, - "end": { - "line": 236, - "column": 41 - } - } - } - ], - "range": [ - 7055, - 7106 - ], - "loc": { - "start": { - "line": 235, - "column": 35 - }, - "end": { - "line": 237, - "column": 7 - } - } - }, - "alternate": null, + "property": { + "type": "Identifier", + "name": "all", "range": [ - 7026, - 7106 + 6503, + 6506 ], "loc": { "start": { - "line": 235, - "column": 6 + "line": 226, + "column": 27 }, "end": { - "line": 237, - "column": 7 + "line": 226, + "column": 30 } } - } - ], - "range": [ - 7018, - 7112 - ], - "loc": { - "start": { - "line": 234, - "column": 25 }, - "end": { - "line": 238, - "column": 5 + "range": [ + 6487, + 6506 + ], + "loc": { + "start": { + "line": 226, + "column": 11 + }, + "end": { + "line": 226, + "column": 30 + } } - } - }, - "each": false, - "range": [ - 6997, - 7112 - ], - "loc": { - "start": { - "line": 234, - "column": 4 }, - "end": { - "line": 238, - "column": 5 - } - } - }, - { - "type": "ReturnStatement", - "argument": { - "type": "ThisExpression", + "arguments": [], "range": [ - 7124, - 7128 + 6487, + 6508 ], "loc": { "start": { - "line": 239, + "line": 226, "column": 11 }, "end": { - "line": 239, - "column": 15 + "line": 226, + "column": 32 } } }, "range": [ - 7117, - 7129 + 6480, + 6509 ], "loc": { "start": { - "line": 239, + "line": 226, "column": 4 }, "end": { - "line": 239, - "column": 16 + "line": 226, + "column": 33 } } } ], "range": [ - 6991, - 7133 + 6474, + 6513 ], "loc": { "start": { - "line": 233, - "column": 30 + "line": 225, + "column": 20 }, "end": { - "line": 240, + "line": 227, "column": 3 } } @@ -8018,16 +7474,16 @@ "generator": false, "expression": false, "range": [ - 6985, - 7133 + 6471, + 6513 ], "loc": { "start": { - "line": 233, - "column": 24 + "line": 225, + "column": 17 }, "end": { - "line": 240, + "line": 227, "column": 3 } } @@ -8035,34 +7491,34 @@ "kind": "method", "computed": false, "range": [ - 6963, - 7133 + 6456, + 6513 ], "loc": { "start": { - "line": 233, + "line": 225, "column": 2 }, "end": { - "line": 240, + "line": 227, "column": 3 } }, "leadingComments": [ { "type": "Block", - "value": "*\n * Sets custom targeting parameters for this passback slot, from a key:value\n * map in a JSON object. A badly formatted input will be rejected. This is the\n * same as calling @{link Slot#setTargeting} for all the key values\n * of the object. In case of overwriting, only the last value will be kept.\n * Values set here will overwrite targeting parameters set on service level.\n * These keys are defined in your {@link DFP} account.\n *\n * @param {Object>} map Targeting parameter key:value map.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n ", + "value": "*\n * Returns the current targeting key-value dictionary.\n *\n * @experimental\n * @returns {Object>} the targeting map.\n ", "range": [ - 6335, - 6960 + 6298, + 6453 ], "loc": { "start": { - "line": 222, + "line": 219, "column": 2 }, "end": { - "line": 232, + "line": 224, "column": 5 } } @@ -8073,16 +7529,16 @@ "type": "Block", "value": "*\n * Clears all custom slot-level targeting parameters for this slot.\n *\n * @returns {Slot} The {@link Slot} object on which the method was called.\n ", "range": [ - 7137, - 7298 + 6517, + 6678 ], "loc": { "start": { - "line": 242, + "line": 229, "column": 2 }, "end": { - "line": 246, + "line": 233, "column": 5 } } @@ -8096,16 +7552,16 @@ "type": "Identifier", "name": "clearTargeting", "range": [ - 7301, - 7315 + 6681, + 6695 ], "loc": { "start": { - "line": 247, + "line": 234, "column": 2 }, "end": { - "line": 247, + "line": 234, "column": 16 } } @@ -8120,106 +7576,124 @@ { "type": "ExpressionStatement", "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { + "type": "CallExpression", + "callee": { "type": "MemberExpression", "computed": false, "object": { - "type": "ThisExpression", + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 6704, + 6708 + ], + "loc": { + "start": { + "line": 235, + "column": 4 + }, + "end": { + "line": 235, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_targeting", + "range": [ + 6709, + 6719 + ], + "loc": { + "start": { + "line": 235, + "column": 9 + }, + "end": { + "line": 235, + "column": 19 + } + } + }, "range": [ - 7324, - 7328 + 6704, + 6719 ], "loc": { "start": { - "line": 248, + "line": 235, "column": 4 }, "end": { - "line": 248, - "column": 8 + "line": 235, + "column": 19 } } }, "property": { "type": "Identifier", - "name": "_targeting", + "name": "clear", "range": [ - 7329, - 7339 + 6720, + 6725 ], "loc": { "start": { - "line": 248, - "column": 9 + "line": 235, + "column": 20 }, "end": { - "line": 248, - "column": 19 + "line": 235, + "column": 25 } } }, "range": [ - 7324, - 7339 + 6704, + 6725 ], "loc": { "start": { - "line": 248, + "line": 235, "column": 4 }, "end": { - "line": 248, - "column": 19 - } - } - }, - "right": { - "type": "ObjectExpression", - "properties": [], - "range": [ - 7342, - 7344 - ], - "loc": { - "start": { - "line": 248, - "column": 22 - }, - "end": { - "line": 248, - "column": 24 + "line": 235, + "column": 25 } } }, + "arguments": [], "range": [ - 7324, - 7344 + 6704, + 6727 ], "loc": { "start": { - "line": 248, + "line": 235, "column": 4 }, "end": { - "line": 248, - "column": 24 + "line": 235, + "column": 27 } } }, "range": [ - 7324, - 7345 + 6704, + 6728 ], "loc": { "start": { - "line": 248, + "line": 235, "column": 4 }, "end": { - "line": 248, - "column": 25 + "line": 235, + "column": 28 } } }, @@ -8228,47 +7702,47 @@ "argument": { "type": "ThisExpression", "range": [ - 7357, - 7361 + 6740, + 6744 ], "loc": { "start": { - "line": 249, + "line": 236, "column": 11 }, "end": { - "line": 249, + "line": 236, "column": 15 } } }, "range": [ - 7350, - 7362 + 6733, + 6745 ], "loc": { "start": { - "line": 249, + "line": 236, "column": 4 }, "end": { - "line": 249, + "line": 236, "column": 16 } } } ], "range": [ - 7318, - 7366 + 6698, + 6749 ], "loc": { "start": { - "line": 247, + "line": 234, "column": 19 }, "end": { - "line": 250, + "line": 237, "column": 3 } } @@ -8276,16 +7750,16 @@ "generator": false, "expression": false, "range": [ - 7315, - 7366 + 6695, + 6749 ], "loc": { "start": { - "line": 247, + "line": 234, "column": 16 }, "end": { - "line": 250, + "line": 237, "column": 3 } } @@ -8293,16 +7767,16 @@ "kind": "method", "computed": false, "range": [ - 7301, - 7366 + 6681, + 6749 ], "loc": { "start": { - "line": 247, + "line": 234, "column": 2 }, "end": { - "line": 250, + "line": 237, "column": 3 } }, @@ -8311,16 +7785,16 @@ "type": "Block", "value": "*\n * Clears all custom slot-level targeting parameters for this slot.\n *\n * @returns {Slot} The {@link Slot} object on which the method was called.\n ", "range": [ - 7137, - 7298 + 6517, + 6678 ], "loc": { "start": { - "line": 242, + "line": 229, "column": 2 }, "end": { - "line": 246, + "line": 233, "column": 5 } } @@ -8329,18 +7803,18 @@ "trailingComments": [ { "type": "Block", - "value": "*\n * Returns the current targeting key-value dictionary.\n *\n * @experimental\n * @returns {Object>} the targeting map.\n ", + "value": "*\n * Sets custom targeting parameters for this passback slot, from a key:value\n * map in a JSON object. A badly formatted input will be rejected. This is the\n * same as calling @{link Slot#setTargeting} for all the key values\n * of the object. In case of overwriting, only the last value will be kept.\n * Values set here will overwrite targeting parameters set on service level.\n * These keys are defined in your {@link DFP} account.\n *\n * @param {Object>} map Targeting parameter key:value map.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n ", "range": [ - 7370, - 7525 + 6753, + 7378 ], "loc": { "start": { - "line": 252, + "line": 239, "column": 2 }, "end": { - "line": 257, + "line": 249, "column": 5 } } @@ -8352,202 +7826,494 @@ "type": "MethodDefinition", "key": { "type": "Identifier", - "name": "getTargetingMap", + "name": "updateTargetingFromMap", "range": [ - 7528, - 7543 + 7381, + 7403 ], "loc": { "start": { - "line": 258, + "line": 250, "column": 2 }, "end": { - "line": 258, - "column": 17 + "line": 250, + "column": 24 } } }, "value": { "type": "FunctionExpression", "id": null, - "params": [], + "params": [ + { + "type": "Identifier", + "name": "map", + "range": [ + 7404, + 7407 + ], + "loc": { + "start": { + "line": 250, + "column": 25 + }, + "end": { + "line": 250, + "column": 28 + } + } + } + ], "body": { "type": "BlockStatement", "body": [ { - "type": "ReturnStatement", - "argument": { - "type": "CallExpression", - "callee": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "Identifier", - "name": "Object", - "range": [ - 7559, - 7565 - ], - "loc": { - "start": { - "line": 259, - "column": 11 - }, - "end": { - "line": 259, - "column": 17 + "type": "ForInStatement", + "left": { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "key", + "range": [ + 7424, + 7427 + ], + "loc": { + "start": { + "line": 251, + "column": 13 + }, + "end": { + "line": 251, + "column": 16 + } } - } - }, - "property": { - "type": "Identifier", - "name": "assign", + }, + "init": null, "range": [ - 7566, - 7572 + 7424, + 7427 ], "loc": { "start": { - "line": 259, - "column": 18 + "line": 251, + "column": 13 }, "end": { - "line": 259, - "column": 24 + "line": 251, + "column": 16 } } + } + ], + "kind": "let", + "range": [ + 7420, + 7427 + ], + "loc": { + "start": { + "line": 251, + "column": 9 }, - "range": [ - 7559, - 7572 - ], - "loc": { - "start": { - "line": 259, - "column": 11 - }, - "end": { - "line": 259, - "column": 24 - } + "end": { + "line": 251, + "column": 16 } - }, - "arguments": [ - { - "type": "ObjectExpression", - "properties": [], - "range": [ - 7573, - 7575 - ], - "loc": { - "start": { - "line": 259, - "column": 25 - }, - "end": { - "line": 259, - "column": 27 - } - } + } + }, + "right": { + "type": "Identifier", + "name": "map", + "range": [ + 7431, + 7434 + ], + "loc": { + "start": { + "line": 251, + "column": 20 }, + "end": { + "line": 251, + "column": 23 + } + } + }, + "body": { + "type": "BlockStatement", + "body": [ { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "ThisExpression", + "type": "IfStatement", + "test": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 7448, + 7451 + ], + "loc": { + "start": { + "line": 252, + "column": 10 + }, + "end": { + "line": 252, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "name": "hasOwnProperty", + "range": [ + 7452, + 7466 + ], + "loc": { + "start": { + "line": 252, + "column": 14 + }, + "end": { + "line": 252, + "column": 28 + } + } + }, + "range": [ + 7448, + 7466 + ], + "loc": { + "start": { + "line": 252, + "column": 10 + }, + "end": { + "line": 252, + "column": 28 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 7467, + 7470 + ], + "loc": { + "start": { + "line": 252, + "column": 29 + }, + "end": { + "line": 252, + "column": 32 + } + } + } + ], "range": [ - 7577, - 7581 + 7448, + 7471 ], "loc": { "start": { - "line": 259, - "column": 29 + "line": 252, + "column": 10 }, "end": { - "line": 259, + "line": 252, "column": 33 } - } - }, - "property": { - "type": "Identifier", - "name": "_targeting", + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 7483, + 7487 + ], + "loc": { + "start": { + "line": 253, + "column": 8 + }, + "end": { + "line": 253, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "name": "setTargeting", + "range": [ + 7488, + 7500 + ], + "loc": { + "start": { + "line": 253, + "column": 13 + }, + "end": { + "line": 253, + "column": 25 + } + } + }, + "range": [ + 7483, + 7500 + ], + "loc": { + "start": { + "line": 253, + "column": 8 + }, + "end": { + "line": 253, + "column": 25 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 7501, + 7504 + ], + "loc": { + "start": { + "line": 253, + "column": 26 + }, + "end": { + "line": 253, + "column": 29 + } + } + }, + { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 7506, + 7509 + ], + "loc": { + "start": { + "line": 253, + "column": 31 + }, + "end": { + "line": 253, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "key", + "range": [ + 7510, + 7513 + ], + "loc": { + "start": { + "line": 253, + "column": 35 + }, + "end": { + "line": 253, + "column": 38 + } + } + }, + "range": [ + 7506, + 7514 + ], + "loc": { + "start": { + "line": 253, + "column": 31 + }, + "end": { + "line": 253, + "column": 39 + } + } + } + ], + "range": [ + 7483, + 7515 + ], + "loc": { + "start": { + "line": 253, + "column": 8 + }, + "end": { + "line": 253, + "column": 40 + } + } + }, + "range": [ + 7483, + 7516 + ], + "loc": { + "start": { + "line": 253, + "column": 8 + }, + "end": { + "line": 253, + "column": 41 + } + } + } + ], "range": [ - 7582, - 7592 + 7473, + 7524 ], "loc": { "start": { - "line": 259, - "column": 34 + "line": 252, + "column": 35 }, "end": { - "line": 259, - "column": 44 + "line": 254, + "column": 7 } } }, + "alternate": null, "range": [ - 7577, - 7592 + 7444, + 7524 ], "loc": { "start": { - "line": 259, - "column": 29 + "line": 252, + "column": 6 }, "end": { - "line": 259, - "column": 44 + "line": 254, + "column": 7 } } } ], "range": [ - 7559, - 7593 + 7436, + 7530 + ], + "loc": { + "start": { + "line": 251, + "column": 25 + }, + "end": { + "line": 255, + "column": 5 + } + } + }, + "each": false, + "range": [ + 7415, + 7530 + ], + "loc": { + "start": { + "line": 251, + "column": 4 + }, + "end": { + "line": 255, + "column": 5 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "ThisExpression", + "range": [ + 7542, + 7546 ], "loc": { "start": { - "line": 259, + "line": 256, "column": 11 }, "end": { - "line": 259, - "column": 45 + "line": 256, + "column": 15 } } }, "range": [ - 7552, - 7594 + 7535, + 7547 ], "loc": { "start": { - "line": 259, + "line": 256, "column": 4 }, "end": { - "line": 259, - "column": 46 + "line": 256, + "column": 16 } } } ], "range": [ - 7546, - 7598 + 7409, + 7551 ], "loc": { "start": { - "line": 258, - "column": 20 + "line": 250, + "column": 30 }, "end": { - "line": 260, + "line": 257, "column": 3 } } @@ -8555,16 +8321,16 @@ "generator": false, "expression": false, "range": [ - 7543, - 7598 + 7403, + 7551 ], "loc": { "start": { - "line": 258, - "column": 17 + "line": 250, + "column": 24 }, "end": { - "line": 260, + "line": 257, "column": 3 } } @@ -8572,34 +8338,34 @@ "kind": "method", "computed": false, "range": [ - 7528, - 7598 + 7381, + 7551 ], "loc": { "start": { - "line": 258, + "line": 250, "column": 2 }, "end": { - "line": 260, + "line": 257, "column": 3 } }, "leadingComments": [ { "type": "Block", - "value": "*\n * Returns the current targeting key-value dictionary.\n *\n * @experimental\n * @returns {Object>} the targeting map.\n ", + "value": "*\n * Sets custom targeting parameters for this passback slot, from a key:value\n * map in a JSON object. A badly formatted input will be rejected. This is the\n * same as calling @{link Slot#setTargeting} for all the key values\n * of the object. In case of overwriting, only the last value will be kept.\n * Values set here will overwrite targeting parameters set on service level.\n * These keys are defined in your {@link DFP} account.\n *\n * @param {Object>} map Targeting parameter key:value map.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n ", "range": [ - 7370, - 7525 + 6753, + 7378 ], "loc": { "start": { - "line": 252, + "line": 239, "column": 2 }, "end": { - "line": 257, + "line": 249, "column": 5 } } @@ -8610,16 +8376,16 @@ "type": "Block", "value": "*\n * Adds a service to this slot.\n *\n * @param {Service} service The service to be added.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n ", "range": [ - 7602, - 7782 + 7555, + 7735 ], "loc": { "start": { - "line": 262, + "line": 259, "column": 2 }, "end": { - "line": 267, + "line": 264, "column": 5 } } @@ -8633,16 +8399,16 @@ "type": "Identifier", "name": "addService", "range": [ - 7785, - 7795 + 7738, + 7748 ], "loc": { "start": { - "line": 268, + "line": 265, "column": 2 }, "end": { - "line": 268, + "line": 265, "column": 12 } } @@ -8655,16 +8421,16 @@ "type": "Identifier", "name": "service", "range": [ - 7796, - 7803 + 7749, + 7756 ], "loc": { "start": { - "line": 268, + "line": 265, "column": 13 }, "end": { - "line": 268, + "line": 265, "column": 20 } } @@ -8689,16 +8455,16 @@ "object": { "type": "ThisExpression", "range": [ - 7815, - 7819 + 7768, + 7772 ], "loc": { "start": { - "line": 269, + "line": 266, "column": 8 }, "end": { - "line": 269, + "line": 266, "column": 12 } } @@ -8707,31 +8473,31 @@ "type": "Identifier", "name": "_services", "range": [ - 7820, - 7829 + 7773, + 7782 ], "loc": { "start": { - "line": 269, + "line": 266, "column": 13 }, "end": { - "line": 269, + "line": 266, "column": 22 } } }, "range": [ - 7815, - 7829 + 7768, + 7782 ], "loc": { "start": { - "line": 269, + "line": 266, "column": 8 }, "end": { - "line": 269, + "line": 266, "column": 22 } } @@ -8740,31 +8506,31 @@ "type": "Identifier", "name": "indexOf", "range": [ - 7830, - 7837 + 7783, + 7790 ], "loc": { "start": { - "line": 269, + "line": 266, "column": 23 }, "end": { - "line": 269, + "line": 266, "column": 30 } } }, "range": [ - 7815, - 7837 + 7768, + 7790 ], "loc": { "start": { - "line": 269, + "line": 266, "column": 8 }, "end": { - "line": 269, + "line": 266, "column": 30 } } @@ -8774,32 +8540,32 @@ "type": "Identifier", "name": "service", "range": [ - 7838, - 7845 + 7791, + 7798 ], "loc": { "start": { - "line": 269, + "line": 266, "column": 31 }, "end": { - "line": 269, + "line": 266, "column": 38 } } } ], "range": [ - 7815, - 7846 + 7768, + 7799 ], "loc": { "start": { - "line": 269, + "line": 266, "column": 8 }, "end": { - "line": 269, + "line": 266, "column": 39 } } @@ -8812,47 +8578,47 @@ "value": 1, "raw": "1", "range": [ - 7852, - 7853 + 7805, + 7806 ], "loc": { "start": { - "line": 269, + "line": 266, "column": 45 }, "end": { - "line": 269, + "line": 266, "column": 46 } } }, "prefix": true, "range": [ - 7851, - 7853 + 7804, + 7806 ], "loc": { "start": { - "line": 269, + "line": 266, "column": 44 }, "end": { - "line": 269, + "line": 266, "column": 46 } } }, "range": [ - 7815, - 7853 + 7768, + 7806 ], "loc": { "start": { - "line": 269, + "line": 266, "column": 8 }, "end": { - "line": 269, + "line": 266, "column": 46 } } @@ -8873,16 +8639,16 @@ "object": { "type": "ThisExpression", "range": [ - 7863, - 7867 + 7816, + 7820 ], "loc": { "start": { - "line": 270, + "line": 267, "column": 6 }, "end": { - "line": 270, + "line": 267, "column": 10 } } @@ -8891,31 +8657,31 @@ "type": "Identifier", "name": "_services", "range": [ - 7868, - 7877 + 7821, + 7830 ], "loc": { "start": { - "line": 270, + "line": 267, "column": 11 }, "end": { - "line": 270, + "line": 267, "column": 20 } } }, "range": [ - 7863, - 7877 + 7816, + 7830 ], "loc": { "start": { - "line": 270, + "line": 267, "column": 6 }, "end": { - "line": 270, + "line": 267, "column": 20 } } @@ -8924,31 +8690,31 @@ "type": "Identifier", "name": "push", "range": [ - 7878, - 7882 + 7831, + 7835 ], "loc": { "start": { - "line": 270, + "line": 267, "column": 21 }, "end": { - "line": 270, + "line": 267, "column": 25 } } }, "range": [ - 7863, - 7882 + 7816, + 7835 ], "loc": { "start": { - "line": 270, + "line": 267, "column": 6 }, "end": { - "line": 270, + "line": 267, "column": 25 } } @@ -8958,47 +8724,47 @@ "type": "Identifier", "name": "service", "range": [ - 7883, - 7890 + 7836, + 7843 ], "loc": { "start": { - "line": 270, + "line": 267, "column": 26 }, "end": { - "line": 270, + "line": 267, "column": 33 } } } ], "range": [ - 7863, - 7891 + 7816, + 7844 ], "loc": { "start": { - "line": 270, + "line": 267, "column": 6 }, "end": { - "line": 270, + "line": 267, "column": 34 } } }, "range": [ - 7863, - 7892 + 7816, + 7845 ], "loc": { "start": { - "line": 270, + "line": 267, "column": 6 }, "end": { - "line": 270, + "line": 267, "column": 35 } } @@ -9014,16 +8780,16 @@ "type": "Identifier", "name": "service", "range": [ - 7899, - 7906 + 7852, + 7859 ], "loc": { "start": { - "line": 271, + "line": 268, "column": 6 }, "end": { - "line": 271, + "line": 268, "column": 13 } } @@ -9032,31 +8798,31 @@ "type": "Identifier", "name": "_addSlot", "range": [ - 7907, - 7915 + 7860, + 7868 ], "loc": { "start": { - "line": 271, + "line": 268, "column": 14 }, "end": { - "line": 271, + "line": 268, "column": 22 } } }, "range": [ - 7899, - 7915 + 7852, + 7868 ], "loc": { "start": { - "line": 271, + "line": 268, "column": 6 }, "end": { - "line": 271, + "line": 268, "column": 22 } } @@ -9065,79 +8831,79 @@ { "type": "ThisExpression", "range": [ - 7916, - 7920 + 7869, + 7873 ], "loc": { "start": { - "line": 271, + "line": 268, "column": 23 }, "end": { - "line": 271, + "line": 268, "column": 27 } } } ], "range": [ - 7899, - 7921 + 7852, + 7874 ], "loc": { "start": { - "line": 271, + "line": 268, "column": 6 }, "end": { - "line": 271, + "line": 268, "column": 28 } } }, "range": [ - 7899, - 7922 + 7852, + 7875 ], "loc": { "start": { - "line": 271, + "line": 268, "column": 6 }, "end": { - "line": 271, + "line": 268, "column": 29 } } } ], "range": [ - 7855, - 7928 + 7808, + 7881 ], "loc": { "start": { - "line": 269, + "line": 266, "column": 48 }, "end": { - "line": 272, + "line": 269, "column": 5 } } }, "alternate": null, "range": [ - 7811, - 7928 + 7764, + 7881 ], "loc": { "start": { - "line": 269, + "line": 266, "column": 4 }, "end": { - "line": 272, + "line": 269, "column": 5 } } @@ -9147,47 +8913,47 @@ "argument": { "type": "ThisExpression", "range": [ - 7940, - 7944 + 7893, + 7897 ], "loc": { "start": { - "line": 273, + "line": 270, "column": 11 }, "end": { - "line": 273, + "line": 270, "column": 15 } } }, "range": [ - 7933, - 7945 + 7886, + 7898 ], "loc": { "start": { - "line": 273, + "line": 270, "column": 4 }, "end": { - "line": 273, + "line": 270, "column": 16 } } } ], "range": [ - 7805, - 7949 + 7758, + 7902 ], "loc": { "start": { - "line": 268, + "line": 265, "column": 22 }, "end": { - "line": 274, + "line": 271, "column": 3 } } @@ -9195,16 +8961,16 @@ "generator": false, "expression": false, "range": [ - 7795, - 7949 + 7748, + 7902 ], "loc": { "start": { - "line": 268, + "line": 265, "column": 12 }, "end": { - "line": 274, + "line": 271, "column": 3 } } @@ -9212,16 +8978,16 @@ "kind": "method", "computed": false, "range": [ - 7785, - 7949 + 7738, + 7902 ], "loc": { "start": { - "line": 268, + "line": 265, "column": 2 }, "end": { - "line": 274, + "line": 271, "column": 3 } }, @@ -9230,16 +8996,16 @@ "type": "Block", "value": "*\n * Adds a service to this slot.\n *\n * @param {Service} service The service to be added.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n ", "range": [ - 7602, - 7782 + 7555, + 7735 ], "loc": { "start": { - "line": 262, + "line": 259, "column": 2 }, "end": { - "line": 267, + "line": 264, "column": 5 } } @@ -9250,16 +9016,16 @@ "type": "Block", "value": "*\n * Removes all of the services from the slot.\n *\n * @private\n ", "range": [ - 7953, - 8029 + 7906, + 7982 ], "loc": { "start": { - "line": 276, + "line": 273, "column": 2 }, "end": { - "line": 280, + "line": 277, "column": 5 } } @@ -9273,16 +9039,16 @@ "type": "Identifier", "name": "_removeServices", "range": [ - 8032, - 8047 + 7985, + 8000 ], "loc": { "start": { - "line": 281, + "line": 278, "column": 2 }, "end": { - "line": 281, + "line": 278, "column": 17 } } @@ -9305,32 +9071,32 @@ "type": "Identifier", "name": "service", "range": [ - 8065, - 8072 + 8018, + 8025 ], "loc": { "start": { - "line": 282, + "line": 279, "column": 13 }, "end": { - "line": 282, + "line": 279, "column": 20 } } }, "init": null, "range": [ - 8065, - 8072 + 8018, + 8025 ], "loc": { "start": { - "line": 282, + "line": 279, "column": 13 }, "end": { - "line": 282, + "line": 279, "column": 20 } } @@ -9338,16 +9104,16 @@ ], "kind": "let", "range": [ - 8061, - 8072 + 8014, + 8025 ], "loc": { "start": { - "line": 282, + "line": 279, "column": 9 }, "end": { - "line": 282, + "line": 279, "column": 20 } } @@ -9358,16 +9124,16 @@ "object": { "type": "ThisExpression", "range": [ - 8076, - 8080 + 8029, + 8033 ], "loc": { "start": { - "line": 282, + "line": 279, "column": 24 }, "end": { - "line": 282, + "line": 279, "column": 28 } } @@ -9376,31 +9142,31 @@ "type": "Identifier", "name": "_services", "range": [ - 8081, - 8090 + 8034, + 8043 ], "loc": { "start": { - "line": 282, + "line": 279, "column": 29 }, "end": { - "line": 282, + "line": 279, "column": 38 } } }, "range": [ - 8076, - 8090 + 8029, + 8043 ], "loc": { "start": { - "line": 282, + "line": 279, "column": 24 }, "end": { - "line": 282, + "line": 279, "column": 38 } } @@ -9419,16 +9185,16 @@ "type": "Identifier", "name": "service", "range": [ - 8100, - 8107 + 8053, + 8060 ], "loc": { "start": { - "line": 283, + "line": 280, "column": 6 }, "end": { - "line": 283, + "line": 280, "column": 13 } } @@ -9437,31 +9203,31 @@ "type": "Identifier", "name": "_removeSlot", "range": [ - 8108, - 8119 + 8061, + 8072 ], "loc": { "start": { - "line": 283, + "line": 280, "column": 14 }, "end": { - "line": 283, + "line": 280, "column": 25 } } }, "range": [ - 8100, - 8119 + 8053, + 8072 ], "loc": { "start": { - "line": 283, + "line": 280, "column": 6 }, "end": { - "line": 283, + "line": 280, "column": 25 } } @@ -9470,78 +9236,78 @@ { "type": "ThisExpression", "range": [ - 8120, - 8124 + 8073, + 8077 ], "loc": { "start": { - "line": 283, + "line": 280, "column": 26 }, "end": { - "line": 283, + "line": 280, "column": 30 } } } ], "range": [ - 8100, - 8125 + 8053, + 8078 ], "loc": { "start": { - "line": 283, + "line": 280, "column": 6 }, "end": { - "line": 283, + "line": 280, "column": 31 } } }, "range": [ - 8100, - 8126 + 8053, + 8079 ], "loc": { "start": { - "line": 283, + "line": 280, "column": 6 }, "end": { - "line": 283, + "line": 280, "column": 32 } } } ], "range": [ - 8092, - 8132 + 8045, + 8085 ], "loc": { "start": { - "line": 282, + "line": 279, "column": 40 }, "end": { - "line": 284, + "line": 281, "column": 5 } } }, "range": [ - 8056, - 8132 + 8009, + 8085 ], "loc": { "start": { - "line": 282, + "line": 279, "column": 4 }, "end": { - "line": 284, + "line": 281, "column": 5 } } @@ -9557,16 +9323,16 @@ "object": { "type": "ThisExpression", "range": [ - 8138, - 8142 + 8091, + 8095 ], "loc": { "start": { - "line": 286, + "line": 283, "column": 4 }, "end": { - "line": 286, + "line": 283, "column": 8 } } @@ -9575,31 +9341,31 @@ "type": "Identifier", "name": "_services", "range": [ - 8143, - 8152 + 8096, + 8105 ], "loc": { "start": { - "line": 286, + "line": 283, "column": 9 }, "end": { - "line": 286, + "line": 283, "column": 18 } } }, "range": [ - 8138, - 8152 + 8091, + 8105 ], "loc": { "start": { - "line": 286, + "line": 283, "column": 4 }, "end": { - "line": 286, + "line": 283, "column": 18 } } @@ -9608,62 +9374,62 @@ "type": "ArrayExpression", "elements": [], "range": [ - 8155, - 8157 + 8108, + 8110 ], "loc": { "start": { - "line": 286, + "line": 283, "column": 21 }, "end": { - "line": 286, + "line": 283, "column": 23 } } }, "range": [ - 8138, - 8157 + 8091, + 8110 ], "loc": { "start": { - "line": 286, + "line": 283, "column": 4 }, "end": { - "line": 286, + "line": 283, "column": 23 } } }, "range": [ - 8138, - 8158 + 8091, + 8111 ], "loc": { "start": { - "line": 286, + "line": 283, "column": 4 }, "end": { - "line": 286, + "line": 283, "column": 24 } } } ], "range": [ - 8050, - 8162 + 8003, + 8115 ], "loc": { "start": { - "line": 281, + "line": 278, "column": 20 }, "end": { - "line": 287, + "line": 284, "column": 3 } } @@ -9671,16 +9437,16 @@ "generator": false, "expression": false, "range": [ - 8047, - 8162 + 8000, + 8115 ], "loc": { "start": { - "line": 281, + "line": 278, "column": 17 }, "end": { - "line": 287, + "line": 284, "column": 3 } } @@ -9688,16 +9454,16 @@ "kind": "method", "computed": false, "range": [ - 8032, - 8162 + 7985, + 8115 ], "loc": { "start": { - "line": 281, + "line": 278, "column": 2 }, "end": { - "line": 287, + "line": 284, "column": 3 } }, @@ -9706,16 +9472,16 @@ "type": "Block", "value": "*\n * Removes all of the services from the slot.\n *\n * @private\n ", "range": [ - 7953, - 8029 + 7906, + 7982 ], "loc": { "start": { - "line": 276, + "line": 273, "column": 2 }, "end": { - "line": 280, + "line": 277, "column": 5 } } @@ -9726,16 +9492,16 @@ "type": "Block", "value": "*\n * Returns the ad category exclusion labels for this slot.\n *\n * @returns {!Array} The ad category exclusion labels for this slot.\n ", "range": [ - 8166, - 8320 + 8119, + 8273 ], "loc": { "start": { - "line": 289, + "line": 286, "column": 2 }, "end": { - "line": 293, + "line": 290, "column": 5 } } @@ -9749,16 +9515,16 @@ "type": "Identifier", "name": "getCategoryExclusions", "range": [ - 8323, - 8344 + 8276, + 8297 ], "loc": { "start": { - "line": 294, + "line": 291, "column": 2 }, "end": { - "line": 294, + "line": 291, "column": 23 } } @@ -9783,16 +9549,16 @@ "object": { "type": "ThisExpression", "range": [ - 8360, - 8364 + 8313, + 8317 ], "loc": { "start": { - "line": 295, + "line": 292, "column": 11 }, "end": { - "line": 295, + "line": 292, "column": 15 } } @@ -9801,31 +9567,31 @@ "type": "Identifier", "name": "_categoryExclusions", "range": [ - 8365, - 8384 + 8318, + 8337 ], "loc": { "start": { - "line": 295, + "line": 292, "column": 16 }, "end": { - "line": 295, + "line": 292, "column": 35 } } }, "range": [ - 8360, - 8384 + 8313, + 8337 ], "loc": { "start": { - "line": 295, + "line": 292, "column": 11 }, "end": { - "line": 295, + "line": 292, "column": 35 } } @@ -9834,31 +9600,31 @@ "type": "Identifier", "name": "slice", "range": [ - 8385, - 8390 + 8338, + 8343 ], "loc": { "start": { - "line": 295, + "line": 292, "column": 36 }, "end": { - "line": 295, + "line": 292, "column": 41 } } }, "range": [ - 8360, - 8390 + 8313, + 8343 ], "loc": { "start": { - "line": 295, + "line": 292, "column": 11 }, "end": { - "line": 295, + "line": 292, "column": 41 } } @@ -9869,63 +9635,63 @@ "value": 0, "raw": "0", "range": [ - 8391, - 8392 + 8344, + 8345 ], "loc": { "start": { - "line": 295, + "line": 292, "column": 42 }, "end": { - "line": 295, + "line": 292, "column": 43 } } } ], "range": [ - 8360, - 8393 + 8313, + 8346 ], "loc": { "start": { - "line": 295, + "line": 292, "column": 11 }, "end": { - "line": 295, + "line": 292, "column": 44 } } }, "range": [ - 8353, - 8394 + 8306, + 8347 ], "loc": { "start": { - "line": 295, + "line": 292, "column": 4 }, "end": { - "line": 295, + "line": 292, "column": 45 } } } ], "range": [ - 8347, - 8398 + 8300, + 8351 ], "loc": { "start": { - "line": 294, + "line": 291, "column": 26 }, "end": { - "line": 296, + "line": 293, "column": 3 } } @@ -9933,16 +9699,16 @@ "generator": false, "expression": false, "range": [ - 8344, - 8398 + 8297, + 8351 ], "loc": { "start": { - "line": 294, + "line": 291, "column": 23 }, "end": { - "line": 296, + "line": 293, "column": 3 } } @@ -9950,16 +9716,16 @@ "kind": "method", "computed": false, "range": [ - 8323, - 8398 + 8276, + 8351 ], "loc": { "start": { - "line": 294, + "line": 291, "column": 2 }, "end": { - "line": 296, + "line": 293, "column": 3 } }, @@ -9968,16 +9734,16 @@ "type": "Block", "value": "*\n * Returns the ad category exclusion labels for this slot.\n *\n * @returns {!Array} The ad category exclusion labels for this slot.\n ", "range": [ - 8166, - 8320 + 8119, + 8273 ], "loc": { "start": { - "line": 289, + "line": 286, "column": 2 }, "end": { - "line": 293, + "line": 290, "column": 5 } } @@ -9988,16 +9754,16 @@ "type": "Block", "value": "*\n * Sets a slot-level ad category exclusion label on this slot.\n *\n * @param {string} categoryExclusion The ad category exclusion label to add.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n ", "range": [ - 8402, - 8637 + 8355, + 8590 ], "loc": { "start": { - "line": 298, + "line": 295, "column": 2 }, "end": { - "line": 303, + "line": 300, "column": 5 } } @@ -10011,16 +9777,16 @@ "type": "Identifier", "name": "setCategoryExclusion", "range": [ - 8640, - 8660 + 8593, + 8613 ], "loc": { "start": { - "line": 304, + "line": 301, "column": 2 }, "end": { - "line": 304, + "line": 301, "column": 22 } } @@ -10033,16 +9799,16 @@ "type": "Identifier", "name": "categoryExclusion", "range": [ - 8661, - 8678 + 8614, + 8631 ], "loc": { "start": { - "line": 304, + "line": 301, "column": 23 }, "end": { - "line": 304, + "line": 301, "column": 40 } } @@ -10064,16 +9830,16 @@ "object": { "type": "ThisExpression", "range": [ - 8686, - 8690 + 8639, + 8643 ], "loc": { "start": { - "line": 305, + "line": 302, "column": 4 }, "end": { - "line": 305, + "line": 302, "column": 8 } } @@ -10082,31 +9848,31 @@ "type": "Identifier", "name": "_categoryExclusions", "range": [ - 8691, - 8710 + 8644, + 8663 ], "loc": { "start": { - "line": 305, + "line": 302, "column": 9 }, "end": { - "line": 305, + "line": 302, "column": 28 } } }, "range": [ - 8686, - 8710 + 8639, + 8663 ], "loc": { "start": { - "line": 305, + "line": 302, "column": 4 }, "end": { - "line": 305, + "line": 302, "column": 28 } } @@ -10115,31 +9881,31 @@ "type": "Identifier", "name": "push", "range": [ - 8711, - 8715 + 8664, + 8668 ], "loc": { "start": { - "line": 305, + "line": 302, "column": 29 }, "end": { - "line": 305, + "line": 302, "column": 33 } } }, "range": [ - 8686, - 8715 + 8639, + 8668 ], "loc": { "start": { - "line": 305, + "line": 302, "column": 4 }, "end": { - "line": 305, + "line": 302, "column": 33 } } @@ -10149,47 +9915,47 @@ "type": "Identifier", "name": "categoryExclusion", "range": [ - 8716, - 8733 + 8669, + 8686 ], "loc": { "start": { - "line": 305, + "line": 302, "column": 34 }, "end": { - "line": 305, + "line": 302, "column": 51 } } } ], "range": [ - 8686, - 8734 + 8639, + 8687 ], "loc": { "start": { - "line": 305, + "line": 302, "column": 4 }, "end": { - "line": 305, + "line": 302, "column": 52 } } }, "range": [ - 8686, - 8735 + 8639, + 8688 ], "loc": { "start": { - "line": 305, + "line": 302, "column": 4 }, "end": { - "line": 305, + "line": 302, "column": 53 } } @@ -10199,47 +9965,47 @@ "argument": { "type": "ThisExpression", "range": [ - 8747, - 8751 + 8700, + 8704 ], "loc": { "start": { - "line": 306, + "line": 303, "column": 11 }, "end": { - "line": 306, + "line": 303, "column": 15 } } }, "range": [ - 8740, - 8752 + 8693, + 8705 ], "loc": { "start": { - "line": 306, + "line": 303, "column": 4 }, "end": { - "line": 306, + "line": 303, "column": 16 } } } ], "range": [ - 8680, - 8756 + 8633, + 8709 ], "loc": { "start": { - "line": 304, + "line": 301, "column": 42 }, "end": { - "line": 307, + "line": 304, "column": 3 } } @@ -10247,16 +10013,16 @@ "generator": false, "expression": false, "range": [ - 8660, - 8756 + 8613, + 8709 ], "loc": { "start": { - "line": 304, + "line": 301, "column": 22 }, "end": { - "line": 307, + "line": 304, "column": 3 } } @@ -10264,16 +10030,16 @@ "kind": "method", "computed": false, "range": [ - 8640, - 8756 + 8593, + 8709 ], "loc": { "start": { - "line": 304, + "line": 301, "column": 2 }, "end": { - "line": 307, + "line": 304, "column": 3 } }, @@ -10282,16 +10048,16 @@ "type": "Block", "value": "*\n * Sets a slot-level ad category exclusion label on this slot.\n *\n * @param {string} categoryExclusion The ad category exclusion label to add.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n ", "range": [ - 8402, - 8637 + 8355, + 8590 ], "loc": { "start": { - "line": 298, + "line": 295, "column": 2 }, "end": { - "line": 303, + "line": 300, "column": 5 } } @@ -10302,16 +10068,16 @@ "type": "Block", "value": "*\n * Clears all slot-level ad category exclusion labels for this slot.\n *\n * @returns {Slot} The {@link Slot} object on which the method was called.\n ", "range": [ - 8760, - 8922 + 8713, + 8875 ], "loc": { "start": { - "line": 309, + "line": 306, "column": 2 }, "end": { - "line": 313, + "line": 310, "column": 5 } } @@ -10325,16 +10091,16 @@ "type": "Identifier", "name": "clearCategoryExclusions", "range": [ - 8925, - 8948 + 8878, + 8901 ], "loc": { "start": { - "line": 314, + "line": 311, "column": 2 }, "end": { - "line": 314, + "line": 311, "column": 25 } } @@ -10357,16 +10123,16 @@ "object": { "type": "ThisExpression", "range": [ - 8957, - 8961 + 8910, + 8914 ], "loc": { "start": { - "line": 315, + "line": 312, "column": 4 }, "end": { - "line": 315, + "line": 312, "column": 8 } } @@ -10375,31 +10141,31 @@ "type": "Identifier", "name": "_categoryExclusions", "range": [ - 8962, - 8981 + 8915, + 8934 ], "loc": { "start": { - "line": 315, + "line": 312, "column": 9 }, "end": { - "line": 315, + "line": 312, "column": 28 } } }, "range": [ - 8957, - 8981 + 8910, + 8934 ], "loc": { "start": { - "line": 315, + "line": 312, "column": 4 }, "end": { - "line": 315, + "line": 312, "column": 28 } } @@ -10408,46 +10174,46 @@ "type": "ArrayExpression", "elements": [], "range": [ - 8984, - 8986 + 8937, + 8939 ], "loc": { "start": { - "line": 315, + "line": 312, "column": 31 }, "end": { - "line": 315, + "line": 312, "column": 33 } } }, "range": [ - 8957, - 8986 + 8910, + 8939 ], "loc": { "start": { - "line": 315, + "line": 312, "column": 4 }, "end": { - "line": 315, + "line": 312, "column": 33 } } }, "range": [ - 8957, - 8987 + 8910, + 8940 ], "loc": { "start": { - "line": 315, + "line": 312, "column": 4 }, "end": { - "line": 315, + "line": 312, "column": 34 } } @@ -10457,47 +10223,47 @@ "argument": { "type": "ThisExpression", "range": [ - 8999, - 9003 + 8952, + 8956 ], "loc": { "start": { - "line": 316, + "line": 313, "column": 11 }, "end": { - "line": 316, + "line": 313, "column": 15 } } }, "range": [ - 8992, - 9004 + 8945, + 8957 ], "loc": { "start": { - "line": 316, + "line": 313, "column": 4 }, "end": { - "line": 316, + "line": 313, "column": 16 } } } ], "range": [ - 8951, - 9008 + 8904, + 8961 ], "loc": { "start": { - "line": 314, + "line": 311, "column": 28 }, "end": { - "line": 317, + "line": 314, "column": 3 } } @@ -10505,16 +10271,16 @@ "generator": false, "expression": false, "range": [ - 8948, - 9008 + 8901, + 8961 ], "loc": { "start": { - "line": 314, + "line": 311, "column": 25 }, "end": { - "line": 317, + "line": 314, "column": 3 } } @@ -10522,16 +10288,16 @@ "kind": "method", "computed": false, "range": [ - 8925, - 9008 + 8878, + 8961 ], "loc": { "start": { - "line": 314, + "line": 311, "column": 2 }, "end": { - "line": 317, + "line": 314, "column": 3 } }, @@ -10540,16 +10306,16 @@ "type": "Block", "value": "*\n * Clears all slot-level ad category exclusion labels for this slot.\n *\n * @returns {Slot} The {@link Slot} object on which the method was called.\n ", "range": [ - 8760, - 8922 + 8713, + 8875 ], "loc": { "start": { - "line": 309, + "line": 306, "column": 2 }, "end": { - "line": 313, + "line": 310, "column": 5 } } @@ -10560,16 +10326,16 @@ "type": "Block", "value": "*\n * Sets an array of mappings from a minimum viewport size to slot size for this slot.\n *\n * @param {!SizeMappingArray} sizeMapping Array of size mappings. You can use\n * {@link SizeMappingBuilder} to create it. Each size mapping is an array of two elements:\n * {@link SingleSizeArray} and {@link GeneralSize}.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n * @throws {Error} Size mapping has to be an array\n ", "range": [ - 9012, - 9471 + 8965, + 9424 ], "loc": { "start": { - "line": 319, + "line": 316, "column": 2 }, "end": { - "line": 327, + "line": 324, "column": 5 } } @@ -10583,16 +10349,16 @@ "type": "Identifier", "name": "defineSizeMapping", "range": [ - 9474, - 9491 + 9427, + 9444 ], "loc": { "start": { - "line": 328, + "line": 325, "column": 2 }, "end": { - "line": 328, + "line": 325, "column": 19 } } @@ -10605,16 +10371,16 @@ "type": "Identifier", "name": "sizeMapping", "range": [ - 9492, - 9503 + 9445, + 9456 ], "loc": { "start": { - "line": 328, + "line": 325, "column": 20 }, "end": { - "line": 328, + "line": 325, "column": 31 } } @@ -10637,16 +10403,16 @@ "type": "Identifier", "name": "SizeMappingArray", "range": [ - 9516, - 9532 + 9469, + 9485 ], "loc": { "start": { - "line": 329, + "line": 326, "column": 9 }, "end": { - "line": 329, + "line": 326, "column": 25 } } @@ -10655,31 +10421,31 @@ "type": "Identifier", "name": "isSizeMappingArray", "range": [ - 9533, - 9551 + 9486, + 9504 ], "loc": { "start": { - "line": 329, + "line": 326, "column": 26 }, "end": { - "line": 329, + "line": 326, "column": 44 } } }, "range": [ - 9516, - 9551 + 9469, + 9504 ], "loc": { "start": { - "line": 329, + "line": 326, "column": 9 }, "end": { - "line": 329, + "line": 326, "column": 44 } } @@ -10689,48 +10455,48 @@ "type": "Identifier", "name": "sizeMapping", "range": [ - 9552, - 9563 + 9505, + 9516 ], "loc": { "start": { - "line": 329, + "line": 326, "column": 45 }, "end": { - "line": 329, + "line": 326, "column": 56 } } } ], "range": [ - 9516, - 9564 + 9469, + 9517 ], "loc": { "start": { - "line": 329, + "line": 326, "column": 9 }, "end": { - "line": 329, + "line": 326, "column": 57 } } }, "prefix": true, "range": [ - 9515, - 9564 + 9468, + 9517 ], "loc": { "start": { - "line": 329, + "line": 326, "column": 8 }, "end": { - "line": 329, + "line": 326, "column": 57 } } @@ -10746,16 +10512,16 @@ "type": "Identifier", "name": "Error", "range": [ - 9580, - 9585 + 9533, + 9538 ], "loc": { "start": { - "line": 330, + "line": 327, "column": 12 }, "end": { - "line": 330, + "line": 327, "column": 17 } } @@ -10766,79 +10532,79 @@ "value": "Size mapping has to be an array", "raw": "'Size mapping has to be an array'", "range": [ - 9586, - 9619 + 9539, + 9572 ], "loc": { "start": { - "line": 330, + "line": 327, "column": 18 }, "end": { - "line": 330, + "line": 327, "column": 51 } } } ], "range": [ - 9580, - 9620 + 9533, + 9573 ], "loc": { "start": { - "line": 330, + "line": 327, "column": 12 }, "end": { - "line": 330, + "line": 327, "column": 52 } } }, "range": [ - 9574, - 9621 + 9527, + 9574 ], "loc": { "start": { - "line": 330, + "line": 327, "column": 6 }, "end": { - "line": 330, + "line": 327, "column": 53 } } } ], "range": [ - 9566, - 9627 + 9519, + 9580 ], "loc": { "start": { - "line": 329, + "line": 326, "column": 59 }, "end": { - "line": 331, + "line": 328, "column": 5 } } }, "alternate": null, "range": [ - 9511, - 9627 + 9464, + 9580 ], "loc": { "start": { - "line": 329, + "line": 326, "column": 4 }, "end": { - "line": 331, + "line": 328, "column": 5 } } @@ -10854,16 +10620,16 @@ "object": { "type": "ThisExpression", "range": [ - 9633, - 9637 + 9586, + 9590 ], "loc": { "start": { - "line": 333, + "line": 330, "column": 4 }, "end": { - "line": 333, + "line": 330, "column": 8 } } @@ -10872,31 +10638,31 @@ "type": "Identifier", "name": "_sizeMapping", "range": [ - 9638, - 9650 + 9591, + 9603 ], "loc": { "start": { - "line": 333, + "line": 330, "column": 9 }, "end": { - "line": 333, + "line": 330, "column": 21 } } }, "range": [ - 9633, - 9650 + 9586, + 9603 ], "loc": { "start": { - "line": 333, + "line": 330, "column": 4 }, "end": { - "line": 333, + "line": 330, "column": 21 } } @@ -10905,46 +10671,46 @@ "type": "Identifier", "name": "sizeMapping", "range": [ - 9653, - 9664 + 9606, + 9617 ], "loc": { "start": { - "line": 333, + "line": 330, "column": 24 }, "end": { - "line": 333, + "line": 330, "column": 35 } } }, "range": [ - 9633, - 9664 + 9586, + 9617 ], "loc": { "start": { - "line": 333, + "line": 330, "column": 4 }, "end": { - "line": 333, + "line": 330, "column": 35 } } }, "range": [ - 9633, - 9665 + 9586, + 9618 ], "loc": { "start": { - "line": 333, + "line": 330, "column": 4 }, "end": { - "line": 333, + "line": 330, "column": 36 } } @@ -10954,47 +10720,47 @@ "argument": { "type": "ThisExpression", "range": [ - 9678, - 9682 + 9631, + 9635 ], "loc": { "start": { - "line": 335, + "line": 332, "column": 11 }, "end": { - "line": 335, + "line": 332, "column": 15 } } }, "range": [ - 9671, - 9683 + 9624, + 9636 ], "loc": { "start": { - "line": 335, + "line": 332, "column": 4 }, "end": { - "line": 335, + "line": 332, "column": 16 } } } ], "range": [ - 9505, - 9687 + 9458, + 9640 ], "loc": { "start": { - "line": 328, + "line": 325, "column": 33 }, "end": { - "line": 336, + "line": 333, "column": 3 } } @@ -11002,16 +10768,16 @@ "generator": false, "expression": false, "range": [ - 9491, - 9687 + 9444, + 9640 ], "loc": { "start": { - "line": 328, + "line": 325, "column": 19 }, "end": { - "line": 336, + "line": 333, "column": 3 } } @@ -11019,16 +10785,16 @@ "kind": "method", "computed": false, "range": [ - 9474, - 9687 + 9427, + 9640 ], "loc": { "start": { - "line": 328, + "line": 325, "column": 2 }, "end": { - "line": 336, + "line": 333, "column": 3 } }, @@ -11037,16 +10803,16 @@ "type": "Block", "value": "*\n * Sets an array of mappings from a minimum viewport size to slot size for this slot.\n *\n * @param {!SizeMappingArray} sizeMapping Array of size mappings. You can use\n * {@link SizeMappingBuilder} to create it. Each size mapping is an array of two elements:\n * {@link SingleSizeArray} and {@link GeneralSize}.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n * @throws {Error} Size mapping has to be an array\n ", "range": [ - 9012, - 9471 + 8965, + 9424 ], "loc": { "start": { - "line": 319, + "line": 316, "column": 2 }, "end": { - "line": 327, + "line": 324, "column": 5 } } @@ -11057,16 +10823,16 @@ "type": "Block", "value": "*\n * Sets the click URL to which users will be redirected after clicking on the\n * ad. The {@link DFP} servers still record a click even if the click URL is replaced,\n * but any landing page URL associated with the creative that is served is\n * overridden. Subsequent calls overwrite the value. This works only for\n * non-SRA requests\n *\n * @param {string} value The click URL to set.\n * @returns {Slot} The slot object on which the method was called.\n ", "range": [ - 9691, - 10166 + 9644, + 10119 ], "loc": { "start": { - "line": 338, + "line": 335, "column": 2 }, "end": { - "line": 347, + "line": 344, "column": 5 } } @@ -11080,16 +10846,16 @@ "type": "Identifier", "name": "setClickUrl", "range": [ - 10169, - 10180 + 10122, + 10133 ], "loc": { "start": { - "line": 348, + "line": 345, "column": 2 }, "end": { - "line": 348, + "line": 345, "column": 13 } } @@ -11102,16 +10868,16 @@ "type": "Identifier", "name": "value", "range": [ - 10181, - 10186 + 10134, + 10139 ], "loc": { "start": { - "line": 348, + "line": 345, "column": 14 }, "end": { - "line": 348, + "line": 345, "column": 19 } } @@ -11131,16 +10897,16 @@ "object": { "type": "ThisExpression", "range": [ - 10194, - 10198 + 10147, + 10151 ], "loc": { "start": { - "line": 349, + "line": 346, "column": 4 }, "end": { - "line": 349, + "line": 346, "column": 8 } } @@ -11149,31 +10915,31 @@ "type": "Identifier", "name": "_clickUrl", "range": [ - 10199, - 10208 + 10152, + 10161 ], "loc": { "start": { - "line": 349, + "line": 346, "column": 9 }, "end": { - "line": 349, + "line": 346, "column": 18 } } }, "range": [ - 10194, - 10208 + 10147, + 10161 ], "loc": { "start": { - "line": 349, + "line": 346, "column": 4 }, "end": { - "line": 349, + "line": 346, "column": 18 } } @@ -11182,46 +10948,46 @@ "type": "Identifier", "name": "value", "range": [ - 10211, - 10216 + 10164, + 10169 ], "loc": { "start": { - "line": 349, + "line": 346, "column": 21 }, "end": { - "line": 349, + "line": 346, "column": 26 } } }, "range": [ - 10194, - 10216 + 10147, + 10169 ], "loc": { "start": { - "line": 349, + "line": 346, "column": 4 }, "end": { - "line": 349, + "line": 346, "column": 26 } } }, "range": [ - 10194, - 10217 + 10147, + 10170 ], "loc": { "start": { - "line": 349, + "line": 346, "column": 4 }, "end": { - "line": 349, + "line": 346, "column": 27 } } @@ -11231,47 +10997,47 @@ "argument": { "type": "ThisExpression", "range": [ - 10229, - 10233 + 10182, + 10186 ], "loc": { "start": { - "line": 350, + "line": 347, "column": 11 }, "end": { - "line": 350, + "line": 347, "column": 15 } } }, "range": [ - 10222, - 10234 + 10175, + 10187 ], "loc": { "start": { - "line": 350, + "line": 347, "column": 4 }, "end": { - "line": 350, + "line": 347, "column": 16 } } } ], "range": [ - 10188, - 10238 + 10141, + 10191 ], "loc": { "start": { - "line": 348, + "line": 345, "column": 21 }, "end": { - "line": 351, + "line": 348, "column": 3 } } @@ -11279,16 +11045,16 @@ "generator": false, "expression": false, "range": [ - 10180, - 10238 + 10133, + 10191 ], "loc": { "start": { - "line": 348, + "line": 345, "column": 13 }, "end": { - "line": 351, + "line": 348, "column": 3 } } @@ -11296,16 +11062,16 @@ "kind": "method", "computed": false, "range": [ - 10169, - 10238 + 10122, + 10191 ], "loc": { "start": { - "line": 348, + "line": 345, "column": 2 }, "end": { - "line": 351, + "line": 348, "column": 3 } }, @@ -11314,16 +11080,16 @@ "type": "Block", "value": "*\n * Sets the click URL to which users will be redirected after clicking on the\n * ad. The {@link DFP} servers still record a click even if the click URL is replaced,\n * but any landing page URL associated with the creative that is served is\n * overridden. Subsequent calls overwrite the value. This works only for\n * non-SRA requests\n *\n * @param {string} value The click URL to set.\n * @returns {Slot} The slot object on which the method was called.\n ", "range": [ - 9691, - 10166 + 9644, + 10119 ], "loc": { "start": { - "line": 338, + "line": 335, "column": 2 }, "end": { - "line": 347, + "line": 344, "column": 5 } } @@ -11334,16 +11100,16 @@ "type": "Block", "value": "*\n * Gets the click URL.\n *\n * @experimental\n * @returns {?string} The click URL\n ", "range": [ - 10242, - 10338 + 10195, + 10291 ], "loc": { "start": { - "line": 353, + "line": 350, "column": 2 }, "end": { - "line": 358, + "line": 355, "column": 5 } } @@ -11357,16 +11123,16 @@ "type": "Identifier", "name": "getClickUrl", "range": [ - 10341, - 10352 + 10294, + 10305 ], "loc": { "start": { - "line": 359, + "line": 356, "column": 2 }, "end": { - "line": 359, + "line": 356, "column": 13 } } @@ -11386,16 +11152,16 @@ "object": { "type": "ThisExpression", "range": [ - 10368, - 10372 + 10321, + 10325 ], "loc": { "start": { - "line": 360, + "line": 357, "column": 11 }, "end": { - "line": 360, + "line": 357, "column": 15 } } @@ -11404,62 +11170,62 @@ "type": "Identifier", "name": "_clickUrl", "range": [ - 10373, - 10382 + 10326, + 10335 ], "loc": { "start": { - "line": 360, + "line": 357, "column": 16 }, "end": { - "line": 360, + "line": 357, "column": 25 } } }, "range": [ - 10368, - 10382 + 10321, + 10335 ], "loc": { "start": { - "line": 360, + "line": 357, "column": 11 }, "end": { - "line": 360, + "line": 357, "column": 25 } } }, "range": [ - 10361, - 10383 + 10314, + 10336 ], "loc": { "start": { - "line": 360, + "line": 357, "column": 4 }, "end": { - "line": 360, + "line": 357, "column": 26 } } } ], "range": [ - 10355, - 10387 + 10308, + 10340 ], "loc": { "start": { - "line": 359, + "line": 356, "column": 16 }, "end": { - "line": 361, + "line": 358, "column": 3 } } @@ -11467,16 +11233,16 @@ "generator": false, "expression": false, "range": [ - 10352, - 10387 + 10305, + 10340 ], "loc": { "start": { - "line": 359, + "line": 356, "column": 13 }, "end": { - "line": 361, + "line": 358, "column": 3 } } @@ -11484,16 +11250,16 @@ "kind": "method", "computed": false, "range": [ - 10341, - 10387 + 10294, + 10340 ], "loc": { "start": { - "line": 359, + "line": 356, "column": 2 }, "end": { - "line": 361, + "line": 358, "column": 3 } }, @@ -11502,16 +11268,16 @@ "type": "Block", "value": "*\n * Gets the click URL.\n *\n * @experimental\n * @returns {?string} The click URL\n ", "range": [ - 10242, - 10338 + 10195, + 10291 ], "loc": { "start": { - "line": 353, + "line": 350, "column": 2 }, "end": { - "line": 358, + "line": 355, "column": 5 } } @@ -11522,16 +11288,16 @@ "type": "Block", "value": "*\n * Returns the ad response information. This is based on the last ad response\n * for the slot. If this is called when the slot has no ad, null will be\n * returned.\n *\n * @returns {?ResponseInformation}\n ", "range": [ - 10391, - 10612 + 10344, + 10565 ], "loc": { "start": { - "line": 363, + "line": 360, "column": 2 }, "end": { - "line": 369, + "line": 366, "column": 5 } } @@ -11545,16 +11311,16 @@ "type": "Identifier", "name": "getResponseInformation", "range": [ - 10615, - 10637 + 10568, + 10590 ], "loc": { "start": { - "line": 370, + "line": 367, "column": 2 }, "end": { - "line": 370, + "line": 367, "column": 24 } } @@ -11574,16 +11340,16 @@ "object": { "type": "ThisExpression", "range": [ - 10653, - 10657 + 10606, + 10610 ], "loc": { "start": { - "line": 371, + "line": 368, "column": 11 }, "end": { - "line": 371, + "line": 368, "column": 15 } } @@ -11592,62 +11358,62 @@ "type": "Identifier", "name": "_responseInformation", "range": [ - 10658, - 10678 + 10611, + 10631 ], "loc": { "start": { - "line": 371, + "line": 368, "column": 16 }, "end": { - "line": 371, + "line": 368, "column": 36 } } }, "range": [ - 10653, - 10678 + 10606, + 10631 ], "loc": { "start": { - "line": 371, + "line": 368, "column": 11 }, "end": { - "line": 371, + "line": 368, "column": 36 } } }, "range": [ - 10646, - 10679 + 10599, + 10632 ], "loc": { "start": { - "line": 371, + "line": 368, "column": 4 }, "end": { - "line": 371, + "line": 368, "column": 37 } } } ], "range": [ - 10640, - 10683 + 10593, + 10636 ], "loc": { "start": { - "line": 370, + "line": 367, "column": 27 }, "end": { - "line": 372, + "line": 369, "column": 3 } } @@ -11655,16 +11421,16 @@ "generator": false, "expression": false, "range": [ - 10637, - 10683 + 10590, + 10636 ], "loc": { "start": { - "line": 370, + "line": 367, "column": 24 }, "end": { - "line": 372, + "line": 369, "column": 3 } } @@ -11672,16 +11438,16 @@ "kind": "method", "computed": false, "range": [ - 10615, - 10683 + 10568, + 10636 ], "loc": { "start": { - "line": 370, + "line": 367, "column": 2 }, "end": { - "line": 372, + "line": 369, "column": 3 } }, @@ -11690,16 +11456,16 @@ "type": "Block", "value": "*\n * Returns the ad response information. This is based on the last ad response\n * for the slot. If this is called when the slot has no ad, null will be\n * returned.\n *\n * @returns {?ResponseInformation}\n ", "range": [ - 10391, - 10612 + 10344, + 10565 ], "loc": { "start": { - "line": 363, + "line": 360, "column": 2 }, "end": { - "line": 369, + "line": 366, "column": 5 } } @@ -11710,16 +11476,16 @@ "type": "Block", "value": "*\n * Sets whether the slot div should be hidden when there is no ad in the slot.\n * This overrides the service-level settings.\n *\n * @param {boolean} collapse Whether to collapse the slot if no ad is returned.\n * @param {boolean} [optCollapseBeforeAdFetch] Whether to collapse the slot\n * even before an ad is fetched. Ignored if collapse is not true.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n ", "range": [ - 10687, - 11135 + 10640, + 11088 ], "loc": { "start": { - "line": 374, + "line": 371, "column": 2 }, "end": { - "line": 382, + "line": 379, "column": 5 } } @@ -11733,16 +11499,16 @@ "type": "Identifier", "name": "setCollapseEmptyDiv", "range": [ - 11138, - 11157 + 11091, + 11110 ], "loc": { "start": { - "line": 383, + "line": 380, "column": 2 }, "end": { - "line": 383, + "line": 380, "column": 21 } } @@ -11755,16 +11521,16 @@ "type": "Identifier", "name": "collapse", "range": [ - 11158, - 11166 + 11111, + 11119 ], "loc": { "start": { - "line": 383, + "line": 380, "column": 22 }, "end": { - "line": 383, + "line": 380, "column": 30 } } @@ -11773,16 +11539,16 @@ "type": "Identifier", "name": "optCollapseBeforeAdFetch", "range": [ - 11168, - 11192 + 11121, + 11145 ], "loc": { "start": { - "line": 383, + "line": 380, "column": 32 }, "end": { - "line": 383, + "line": 380, "column": 56 } } @@ -11805,16 +11571,16 @@ "object": { "type": "ThisExpression", "range": [ - 11200, - 11204 + 11153, + 11157 ], "loc": { "start": { - "line": 384, + "line": 381, "column": 4 }, "end": { - "line": 384, + "line": 381, "column": 8 } } @@ -11823,31 +11589,31 @@ "type": "Identifier", "name": "_options", "range": [ - 11205, - 11213 + 11158, + 11166 ], "loc": { "start": { - "line": 384, + "line": 381, "column": 9 }, "end": { - "line": 384, + "line": 381, "column": 17 } } }, "range": [ - 11200, - 11213 + 11153, + 11166 ], "loc": { "start": { - "line": 384, + "line": 381, "column": 4 }, "end": { - "line": 384, + "line": 381, "column": 17 } } @@ -11856,31 +11622,31 @@ "type": "Identifier", "name": "collapseEmptyDiv", "range": [ - 11214, - 11230 + 11167, + 11183 ], "loc": { "start": { - "line": 384, + "line": 381, "column": 18 }, "end": { - "line": 384, + "line": 381, "column": 34 } } }, "range": [ - 11200, - 11230 + 11153, + 11183 ], "loc": { "start": { - "line": 384, + "line": 381, "column": 4 }, "end": { - "line": 384, + "line": 381, "column": 34 } } @@ -11889,46 +11655,46 @@ "type": "Identifier", "name": "collapse", "range": [ - 11233, - 11241 + 11186, + 11194 ], "loc": { "start": { - "line": 384, + "line": 381, "column": 37 }, "end": { - "line": 384, + "line": 381, "column": 45 } } }, "range": [ - 11200, - 11241 + 11153, + 11194 ], "loc": { "start": { - "line": 384, + "line": 381, "column": 4 }, "end": { - "line": 384, + "line": 381, "column": 45 } } }, "range": [ - 11200, - 11242 + 11153, + 11195 ], "loc": { "start": { - "line": 384, + "line": 381, "column": 4 }, "end": { - "line": 384, + "line": 381, "column": 46 } } @@ -11939,16 +11705,16 @@ "type": "Identifier", "name": "collapse", "range": [ - 11251, - 11259 + 11204, + 11212 ], "loc": { "start": { - "line": 385, + "line": 382, "column": 8 }, "end": { - "line": 385, + "line": 382, "column": 16 } } @@ -11970,16 +11736,16 @@ "object": { "type": "ThisExpression", "range": [ - 11269, - 11273 + 11222, + 11226 ], "loc": { "start": { - "line": 386, + "line": 383, "column": 6 }, "end": { - "line": 386, + "line": 383, "column": 10 } } @@ -11988,31 +11754,31 @@ "type": "Identifier", "name": "_options", "range": [ - 11274, - 11282 + 11227, + 11235 ], "loc": { "start": { - "line": 386, + "line": 383, "column": 11 }, "end": { - "line": 386, + "line": 383, "column": 19 } } }, "range": [ - 11269, - 11282 + 11222, + 11235 ], "loc": { "start": { - "line": 386, + "line": 383, "column": 6 }, "end": { - "line": 386, + "line": 383, "column": 19 } } @@ -12021,31 +11787,31 @@ "type": "Identifier", "name": "collapseBeforeAdFetch", "range": [ - 11283, - 11304 + 11236, + 11257 ], "loc": { "start": { - "line": 386, + "line": 383, "column": 20 }, "end": { - "line": 386, + "line": 383, "column": 41 } } }, "range": [ - 11269, - 11304 + 11222, + 11257 ], "loc": { "start": { - "line": 386, + "line": 383, "column": 6 }, "end": { - "line": 386, + "line": 383, "column": 41 } } @@ -12054,78 +11820,78 @@ "type": "Identifier", "name": "optCollapseBeforeAdFetch", "range": [ - 11307, - 11331 + 11260, + 11284 ], "loc": { "start": { - "line": 386, + "line": 383, "column": 44 }, "end": { - "line": 386, + "line": 383, "column": 68 } } }, "range": [ - 11269, - 11331 + 11222, + 11284 ], "loc": { "start": { - "line": 386, + "line": 383, "column": 6 }, "end": { - "line": 386, + "line": 383, "column": 68 } } }, "range": [ - 11269, - 11332 + 11222, + 11285 ], "loc": { "start": { - "line": 386, + "line": 383, "column": 6 }, "end": { - "line": 386, + "line": 383, "column": 69 } } } ], "range": [ - 11261, - 11338 + 11214, + 11291 ], "loc": { "start": { - "line": 385, + "line": 382, "column": 18 }, "end": { - "line": 387, + "line": 384, "column": 5 } } }, "alternate": null, "range": [ - 11247, - 11338 + 11200, + 11291 ], "loc": { "start": { - "line": 385, + "line": 382, "column": 4 }, "end": { - "line": 387, + "line": 384, "column": 5 } } @@ -12135,47 +11901,47 @@ "argument": { "type": "ThisExpression", "range": [ - 11350, - 11354 + 11303, + 11307 ], "loc": { "start": { - "line": 388, + "line": 385, "column": 11 }, "end": { - "line": 388, + "line": 385, "column": 15 } } }, "range": [ - 11343, - 11355 + 11296, + 11308 ], "loc": { "start": { - "line": 388, + "line": 385, "column": 4 }, "end": { - "line": 388, + "line": 385, "column": 16 } } } ], "range": [ - 11194, - 11359 + 11147, + 11312 ], "loc": { "start": { - "line": 383, + "line": 380, "column": 58 }, "end": { - "line": 389, + "line": 386, "column": 3 } } @@ -12183,16 +11949,16 @@ "generator": false, "expression": false, "range": [ - 11157, - 11359 + 11110, + 11312 ], "loc": { "start": { - "line": 383, + "line": 380, "column": 21 }, "end": { - "line": 389, + "line": 386, "column": 3 } } @@ -12200,16 +11966,16 @@ "kind": "method", "computed": false, "range": [ - 11138, - 11359 + 11091, + 11312 ], "loc": { "start": { - "line": 383, + "line": 380, "column": 2 }, "end": { - "line": 389, + "line": 386, "column": 3 } }, @@ -12218,16 +11984,16 @@ "type": "Block", "value": "*\n * Sets whether the slot div should be hidden when there is no ad in the slot.\n * This overrides the service-level settings.\n *\n * @param {boolean} collapse Whether to collapse the slot if no ad is returned.\n * @param {boolean} [optCollapseBeforeAdFetch] Whether to collapse the slot\n * even before an ad is fetched. Ignored if collapse is not true.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n ", "range": [ - 10687, - 11135 + 10640, + 11088 ], "loc": { "start": { - "line": 374, + "line": 371, "column": 2 }, "end": { - "line": 382, + "line": 379, "column": 5 } } @@ -12238,16 +12004,16 @@ "type": "Block", "value": "*\n * Returns whether the slot div should be hiddne when there is no ad in the slot.\n *\n * @experimental\n * @returns {boolean} true to collapse the slot if no ad is returned.\n ", "range": [ - 11363, - 11552 + 11316, + 11505 ], "loc": { "start": { - "line": 391, + "line": 388, "column": 2 }, "end": { - "line": 396, + "line": 393, "column": 5 } } @@ -12261,16 +12027,16 @@ "type": "Identifier", "name": "getCollapseEmptyDiv", "range": [ - 11555, - 11574 + 11508, + 11527 ], "loc": { "start": { - "line": 397, + "line": 394, "column": 2 }, "end": { - "line": 397, + "line": 394, "column": 21 } } @@ -12293,16 +12059,16 @@ "object": { "type": "ThisExpression", "range": [ - 11590, - 11594 + 11543, + 11547 ], "loc": { "start": { - "line": 398, + "line": 395, "column": 11 }, "end": { - "line": 398, + "line": 395, "column": 15 } } @@ -12311,31 +12077,31 @@ "type": "Identifier", "name": "_options", "range": [ - 11595, - 11603 + 11548, + 11556 ], "loc": { "start": { - "line": 398, + "line": 395, "column": 16 }, "end": { - "line": 398, + "line": 395, "column": 24 } } }, "range": [ - 11590, - 11603 + 11543, + 11556 ], "loc": { "start": { - "line": 398, + "line": 395, "column": 11 }, "end": { - "line": 398, + "line": 395, "column": 24 } } @@ -12344,62 +12110,62 @@ "type": "Identifier", "name": "collapseEmptyDiv", "range": [ - 11604, - 11620 + 11557, + 11573 ], "loc": { "start": { - "line": 398, + "line": 395, "column": 25 }, "end": { - "line": 398, + "line": 395, "column": 41 } } }, "range": [ - 11590, - 11620 + 11543, + 11573 ], "loc": { "start": { - "line": 398, + "line": 395, "column": 11 }, "end": { - "line": 398, + "line": 395, "column": 41 } } }, "range": [ - 11583, - 11621 + 11536, + 11574 ], "loc": { "start": { - "line": 398, + "line": 395, "column": 4 }, "end": { - "line": 398, + "line": 395, "column": 42 } } } ], "range": [ - 11577, - 11625 + 11530, + 11578 ], "loc": { "start": { - "line": 397, + "line": 394, "column": 24 }, "end": { - "line": 399, + "line": 396, "column": 3 } } @@ -12407,16 +12173,16 @@ "generator": false, "expression": false, "range": [ - 11574, - 11625 + 11527, + 11578 ], "loc": { "start": { - "line": 397, + "line": 394, "column": 21 }, "end": { - "line": 399, + "line": 396, "column": 3 } } @@ -12424,16 +12190,16 @@ "kind": "method", "computed": false, "range": [ - 11555, - 11625 + 11508, + 11578 ], "loc": { "start": { - "line": 397, + "line": 394, "column": 2 }, "end": { - "line": 399, + "line": 396, "column": 3 } }, @@ -12442,16 +12208,16 @@ "type": "Block", "value": "*\n * Returns whether the slot div should be hiddne when there is no ad in the slot.\n *\n * @experimental\n * @returns {boolean} true to collapse the slot if no ad is returned.\n ", "range": [ - 11363, - 11552 + 11316, + 11505 ], "loc": { "start": { - "line": 391, + "line": 388, "column": 2 }, "end": { - "line": 396, + "line": 393, "column": 5 } } @@ -12462,16 +12228,16 @@ "type": "Block", "value": "*\n * Configures whether ads in this slot should be forced to be rendered using\n * a SafeFrame container\n *\n * @param {boolean} forceSafeFrame true to force all ads in this slot to be\n * rendered in SafeFrames and false to opt-out of a page-level setting (if\n * present). Setting this to false when not specified at page-level, won't\n * change anything.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n ", "range": [ - 11629, - 12080 + 11582, + 12033 ], "loc": { "start": { - "line": 401, + "line": 398, "column": 2 }, "end": { - "line": 410, + "line": 407, "column": 5 } } @@ -12485,16 +12251,16 @@ "type": "Identifier", "name": "setForceSafeFrame", "range": [ - 12083, - 12100 + 12036, + 12053 ], "loc": { "start": { - "line": 411, + "line": 408, "column": 2 }, "end": { - "line": 411, + "line": 408, "column": 19 } } @@ -12507,16 +12273,16 @@ "type": "Identifier", "name": "forceSafeFrame", "range": [ - 12101, - 12115 + 12054, + 12068 ], "loc": { "start": { - "line": 411, + "line": 408, "column": 20 }, "end": { - "line": 411, + "line": 408, "column": 34 } } @@ -12539,16 +12305,16 @@ "object": { "type": "ThisExpression", "range": [ - 12123, - 12127 + 12076, + 12080 ], "loc": { "start": { - "line": 412, + "line": 409, "column": 4 }, "end": { - "line": 412, + "line": 409, "column": 8 } } @@ -12557,31 +12323,31 @@ "type": "Identifier", "name": "_options", "range": [ - 12128, - 12136 + 12081, + 12089 ], "loc": { "start": { - "line": 412, + "line": 409, "column": 9 }, "end": { - "line": 412, + "line": 409, "column": 17 } } }, "range": [ - 12123, - 12136 + 12076, + 12089 ], "loc": { "start": { - "line": 412, + "line": 409, "column": 4 }, "end": { - "line": 412, + "line": 409, "column": 17 } } @@ -12590,31 +12356,31 @@ "type": "Identifier", "name": "forceSafeFrame", "range": [ - 12137, - 12151 + 12090, + 12104 ], "loc": { "start": { - "line": 412, + "line": 409, "column": 18 }, "end": { - "line": 412, + "line": 409, "column": 32 } } }, "range": [ - 12123, - 12151 + 12076, + 12104 ], "loc": { "start": { - "line": 412, + "line": 409, "column": 4 }, "end": { - "line": 412, + "line": 409, "column": 32 } } @@ -12623,46 +12389,46 @@ "type": "Identifier", "name": "forceSafeFrame", "range": [ - 12154, - 12168 + 12107, + 12121 ], "loc": { "start": { - "line": 412, + "line": 409, "column": 35 }, "end": { - "line": 412, + "line": 409, "column": 49 } } }, "range": [ - 12123, - 12168 + 12076, + 12121 ], "loc": { "start": { - "line": 412, + "line": 409, "column": 4 }, "end": { - "line": 412, + "line": 409, "column": 49 } } }, "range": [ - 12123, - 12169 + 12076, + 12122 ], "loc": { "start": { - "line": 412, + "line": 409, "column": 4 }, "end": { - "line": 412, + "line": 409, "column": 50 } } @@ -12672,47 +12438,47 @@ "argument": { "type": "ThisExpression", "range": [ - 12181, - 12185 + 12134, + 12138 ], "loc": { "start": { - "line": 413, + "line": 410, "column": 11 }, "end": { - "line": 413, + "line": 410, "column": 15 } } }, "range": [ - 12174, - 12186 + 12127, + 12139 ], "loc": { "start": { - "line": 413, + "line": 410, "column": 4 }, "end": { - "line": 413, + "line": 410, "column": 16 } } } ], "range": [ - 12117, - 12190 + 12070, + 12143 ], "loc": { "start": { - "line": 411, + "line": 408, "column": 36 }, "end": { - "line": 414, + "line": 411, "column": 3 } } @@ -12720,16 +12486,16 @@ "generator": false, "expression": false, "range": [ - 12100, - 12190 + 12053, + 12143 ], "loc": { "start": { - "line": 411, + "line": 408, "column": 19 }, "end": { - "line": 414, + "line": 411, "column": 3 } } @@ -12737,16 +12503,16 @@ "kind": "method", "computed": false, "range": [ - 12083, - 12190 + 12036, + 12143 ], "loc": { "start": { - "line": 411, + "line": 408, "column": 2 }, "end": { - "line": 414, + "line": 411, "column": 3 } }, @@ -12755,16 +12521,16 @@ "type": "Block", "value": "*\n * Configures whether ads in this slot should be forced to be rendered using\n * a SafeFrame container\n *\n * @param {boolean} forceSafeFrame true to force all ads in this slot to be\n * rendered in SafeFrames and false to opt-out of a page-level setting (if\n * present). Setting this to false when not specified at page-level, won't\n * change anything.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n ", "range": [ - 11629, - 12080 + 11582, + 12033 ], "loc": { "start": { - "line": 401, + "line": 398, "column": 2 }, "end": { - "line": 410, + "line": 407, "column": 5 } } @@ -12775,16 +12541,16 @@ "type": "Block", "value": "*\n * Sets the slot-level preferences for SafeFrame configuration. Any unrecognized\n * keys in the config object will be ignored. The entire config will be ignored\n * if an invalid value is passed for a recognized key. These slot level\n * preferences, if specified, will override any page level preferences.\n *\n * @param {SafeFrameConfig} config The configuration object.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n ", "range": [ - 12194, - 12661 + 12147, + 12614 ], "loc": { "start": { - "line": 416, + "line": 413, "column": 2 }, "end": { - "line": 424, + "line": 421, "column": 5 } } @@ -12798,16 +12564,16 @@ "type": "Identifier", "name": "setSafeFrameConfig", "range": [ - 12664, - 12682 + 12617, + 12635 ], "loc": { "start": { - "line": 425, + "line": 422, "column": 2 }, "end": { - "line": 425, + "line": 422, "column": 20 } } @@ -12820,16 +12586,16 @@ "type": "Identifier", "name": "config", "range": [ - 12683, - 12689 + 12636, + 12642 ], "loc": { "start": { - "line": 425, + "line": 422, "column": 21 }, "end": { - "line": 425, + "line": 422, "column": 27 } } @@ -12852,16 +12618,16 @@ "object": { "type": "ThisExpression", "range": [ - 12697, - 12701 + 12650, + 12654 ], "loc": { "start": { - "line": 426, + "line": 423, "column": 4 }, "end": { - "line": 426, + "line": 423, "column": 8 } } @@ -12870,31 +12636,31 @@ "type": "Identifier", "name": "_options", "range": [ - 12702, - 12710 + 12655, + 12663 ], "loc": { "start": { - "line": 426, + "line": 423, "column": 9 }, "end": { - "line": 426, + "line": 423, "column": 17 } } }, "range": [ - 12697, - 12710 + 12650, + 12663 ], "loc": { "start": { - "line": 426, + "line": 423, "column": 4 }, "end": { - "line": 426, + "line": 423, "column": 17 } } @@ -12903,31 +12669,31 @@ "type": "Identifier", "name": "safeFrameConfig", "range": [ - 12711, - 12726 + 12664, + 12679 ], "loc": { "start": { - "line": 426, + "line": 423, "column": 18 }, "end": { - "line": 426, + "line": 423, "column": 33 } } }, "range": [ - 12697, - 12726 + 12650, + 12679 ], "loc": { "start": { - "line": 426, + "line": 423, "column": 4 }, "end": { - "line": 426, + "line": 423, "column": 33 } } @@ -12936,46 +12702,46 @@ "type": "Identifier", "name": "config", "range": [ - 12729, - 12735 + 12682, + 12688 ], "loc": { "start": { - "line": 426, + "line": 423, "column": 36 }, "end": { - "line": 426, + "line": 423, "column": 42 } } }, "range": [ - 12697, - 12735 + 12650, + 12688 ], "loc": { "start": { - "line": 426, + "line": 423, "column": 4 }, "end": { - "line": 426, + "line": 423, "column": 42 } } }, "range": [ - 12697, - 12736 + 12650, + 12689 ], "loc": { "start": { - "line": 426, + "line": 423, "column": 4 }, "end": { - "line": 426, + "line": 423, "column": 43 } } @@ -12985,47 +12751,47 @@ "argument": { "type": "ThisExpression", "range": [ - 12748, - 12752 + 12701, + 12705 ], "loc": { "start": { - "line": 427, + "line": 424, "column": 11 }, "end": { - "line": 427, + "line": 424, "column": 15 } } }, "range": [ - 12741, - 12753 + 12694, + 12706 ], "loc": { "start": { - "line": 427, + "line": 424, "column": 4 }, "end": { - "line": 427, + "line": 424, "column": 16 } } } ], "range": [ - 12691, - 12757 + 12644, + 12710 ], "loc": { "start": { - "line": 425, + "line": 422, "column": 29 }, "end": { - "line": 428, + "line": 425, "column": 3 } } @@ -13033,16 +12799,16 @@ "generator": false, "expression": false, "range": [ - 12682, - 12757 + 12635, + 12710 ], "loc": { "start": { - "line": 425, + "line": 422, "column": 20 }, "end": { - "line": 428, + "line": 425, "column": 3 } } @@ -13050,16 +12816,16 @@ "kind": "method", "computed": false, "range": [ - 12664, - 12757 + 12617, + 12710 ], "loc": { "start": { - "line": 425, + "line": 422, "column": 2 }, "end": { - "line": 428, + "line": 425, "column": 3 } }, @@ -13068,16 +12834,16 @@ "type": "Block", "value": "*\n * Sets the slot-level preferences for SafeFrame configuration. Any unrecognized\n * keys in the config object will be ignored. The entire config will be ignored\n * if an invalid value is passed for a recognized key. These slot level\n * preferences, if specified, will override any page level preferences.\n *\n * @param {SafeFrameConfig} config The configuration object.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n ", "range": [ - 12194, - 12661 + 12147, + 12614 ], "loc": { "start": { - "line": 416, + "line": 413, "column": 2 }, "end": { - "line": 424, + "line": 421, "column": 5 } } @@ -13088,16 +12854,16 @@ "type": "Block", "value": "*\n * Informs the {@link Slot} that its fetch has started.\n *\n * @experimental\n ", "range": [ - 12761, - 12852 + 12714, + 12805 ], "loc": { "start": { - "line": 430, + "line": 427, "column": 2 }, "end": { - "line": 434, + "line": 431, "column": 5 } } @@ -13111,16 +12877,16 @@ "type": "Identifier", "name": "fetchStarted", "range": [ - 12855, - 12867 + 12808, + 12820 ], "loc": { "start": { - "line": 435, + "line": 432, "column": 2 }, "end": { - "line": 435, + "line": 432, "column": 14 } } @@ -13146,16 +12912,16 @@ "object": { "type": "ThisExpression", "range": [ - 12876, - 12880 + 12829, + 12833 ], "loc": { "start": { - "line": 436, + "line": 433, "column": 4 }, "end": { - "line": 436, + "line": 433, "column": 8 } } @@ -13164,31 +12930,31 @@ "type": "Identifier", "name": "_options", "range": [ - 12881, - 12889 + 12834, + 12842 ], "loc": { "start": { - "line": 436, + "line": 433, "column": 9 }, "end": { - "line": 436, + "line": 433, "column": 17 } } }, "range": [ - 12876, - 12889 + 12829, + 12842 ], "loc": { "start": { - "line": 436, + "line": 433, "column": 4 }, "end": { - "line": 436, + "line": 433, "column": 17 } } @@ -13197,31 +12963,31 @@ "type": "Identifier", "name": "fetched", "range": [ - 12890, - 12897 + 12843, + 12850 ], "loc": { "start": { - "line": 436, + "line": 433, "column": 18 }, "end": { - "line": 436, + "line": 433, "column": 25 } } }, "range": [ - 12876, - 12897 + 12829, + 12850 ], "loc": { "start": { - "line": 436, + "line": 433, "column": 4 }, "end": { - "line": 436, + "line": 433, "column": 25 } } @@ -13231,62 +12997,62 @@ "value": false, "raw": "false", "range": [ - 12900, - 12905 + 12853, + 12858 ], "loc": { "start": { - "line": 436, + "line": 433, "column": 28 }, "end": { - "line": 436, + "line": 433, "column": 33 } } }, "range": [ - 12876, - 12905 + 12829, + 12858 ], "loc": { "start": { - "line": 436, + "line": 433, "column": 4 }, "end": { - "line": 436, + "line": 433, "column": 33 } } }, "range": [ - 12876, - 12906 + 12829, + 12859 ], "loc": { "start": { - "line": 436, + "line": 433, "column": 4 }, "end": { - "line": 436, + "line": 433, "column": 34 } } } ], "range": [ - 12870, - 12910 + 12823, + 12863 ], "loc": { "start": { - "line": 435, + "line": 432, "column": 17 }, "end": { - "line": 437, + "line": 434, "column": 3 } } @@ -13294,16 +13060,16 @@ "generator": false, "expression": false, "range": [ - 12867, - 12910 + 12820, + 12863 ], "loc": { "start": { - "line": 435, + "line": 432, "column": 14 }, "end": { - "line": 437, + "line": 434, "column": 3 } } @@ -13311,16 +13077,16 @@ "kind": "method", "computed": false, "range": [ - 12855, - 12910 + 12808, + 12863 ], "loc": { "start": { - "line": 435, + "line": 432, "column": 2 }, "end": { - "line": 437, + "line": 434, "column": 3 } }, @@ -13329,16 +13095,16 @@ "type": "Block", "value": "*\n * Informs the {@link Slot} that its fetch has started.\n *\n * @experimental\n ", "range": [ - 12761, - 12852 + 12714, + 12805 ], "loc": { "start": { - "line": 430, + "line": 427, "column": 2 }, "end": { - "line": 434, + "line": 431, "column": 5 } } @@ -13349,16 +13115,16 @@ "type": "Block", "value": "*\n * Informs the {@link Slot} that its fetch has finished.\n *\n * @experimental\n ", "range": [ - 12914, - 13006 + 12867, + 12959 ], "loc": { "start": { - "line": 439, + "line": 436, "column": 2 }, "end": { - "line": 443, + "line": 440, "column": 5 } } @@ -13372,16 +13138,16 @@ "type": "Identifier", "name": "fetchEnded", "range": [ - 13009, - 13019 + 12962, + 12972 ], "loc": { "start": { - "line": 444, + "line": 441, "column": 2 }, "end": { - "line": 444, + "line": 441, "column": 12 } } @@ -13407,16 +13173,16 @@ "object": { "type": "ThisExpression", "range": [ - 13028, - 13032 + 12981, + 12985 ], "loc": { "start": { - "line": 445, + "line": 442, "column": 4 }, "end": { - "line": 445, + "line": 442, "column": 8 } } @@ -13425,31 +13191,31 @@ "type": "Identifier", "name": "_options", "range": [ - 13033, - 13041 + 12986, + 12994 ], "loc": { "start": { - "line": 445, + "line": 442, "column": 9 }, "end": { - "line": 445, + "line": 442, "column": 17 } } }, "range": [ - 13028, - 13041 + 12981, + 12994 ], "loc": { "start": { - "line": 445, + "line": 442, "column": 4 }, "end": { - "line": 445, + "line": 442, "column": 17 } } @@ -13458,31 +13224,31 @@ "type": "Identifier", "name": "fetched", "range": [ - 13042, - 13049 + 12995, + 13002 ], "loc": { "start": { - "line": 445, + "line": 442, "column": 18 }, "end": { - "line": 445, + "line": 442, "column": 25 } } }, "range": [ - 13028, - 13049 + 12981, + 13002 ], "loc": { "start": { - "line": 445, + "line": 442, "column": 4 }, "end": { - "line": 445, + "line": 442, "column": 25 } } @@ -13492,62 +13258,62 @@ "value": true, "raw": "true", "range": [ - 13052, - 13056 + 13005, + 13009 ], "loc": { "start": { - "line": 445, + "line": 442, "column": 28 }, "end": { - "line": 445, + "line": 442, "column": 32 } } }, "range": [ - 13028, - 13056 + 12981, + 13009 ], "loc": { "start": { - "line": 445, + "line": 442, "column": 4 }, "end": { - "line": 445, + "line": 442, "column": 32 } } }, "range": [ - 13028, - 13057 + 12981, + 13010 ], "loc": { "start": { - "line": 445, + "line": 442, "column": 4 }, "end": { - "line": 445, + "line": 442, "column": 33 } } } ], "range": [ - 13022, - 13061 + 12975, + 13014 ], "loc": { "start": { - "line": 444, + "line": 441, "column": 15 }, "end": { - "line": 446, + "line": 443, "column": 3 } } @@ -13555,16 +13321,16 @@ "generator": false, "expression": false, "range": [ - 13019, - 13061 + 12972, + 13014 ], "loc": { "start": { - "line": 444, + "line": 441, "column": 12 }, "end": { - "line": 446, + "line": 443, "column": 3 } } @@ -13572,16 +13338,16 @@ "kind": "method", "computed": false, "range": [ - 13009, - 13061 + 12962, + 13014 ], "loc": { "start": { - "line": 444, + "line": 441, "column": 2 }, "end": { - "line": 446, + "line": 443, "column": 3 } }, @@ -13590,16 +13356,16 @@ "type": "Block", "value": "*\n * Informs the {@link Slot} that its fetch has finished.\n *\n * @experimental\n ", "range": [ - 12914, - 13006 + 12867, + 12959 ], "loc": { "start": { - "line": 439, + "line": 436, "column": 2 }, "end": { - "line": 443, + "line": 440, "column": 5 } } @@ -13610,16 +13376,16 @@ "type": "Block", "value": "*\n * Informs the {@link Slot} that it has been loaded.\n *\n * @experimental\n * @emits {SlotOnloadEvent}\n ", "range": [ - 13065, - 13183 + 13018, + 13136 ], "loc": { "start": { - "line": 448, + "line": 445, "column": 2 }, "end": { - "line": 453, + "line": 450, "column": 5 } } @@ -13633,16 +13399,16 @@ "type": "Identifier", "name": "loaded", "range": [ - 13186, - 13192 + 13139, + 13145 ], "loc": { "start": { - "line": 454, + "line": 451, "column": 2 }, "end": { - "line": 454, + "line": 451, "column": 8 } } @@ -13665,32 +13431,32 @@ "type": "Identifier", "name": "service", "range": [ - 13210, - 13217 + 13163, + 13170 ], "loc": { "start": { - "line": 455, + "line": 452, "column": 13 }, "end": { - "line": 455, + "line": 452, "column": 20 } } }, "init": null, "range": [ - 13210, - 13217 + 13163, + 13170 ], "loc": { "start": { - "line": 455, + "line": 452, "column": 13 }, "end": { - "line": 455, + "line": 452, "column": 20 } } @@ -13698,16 +13464,16 @@ ], "kind": "let", "range": [ - 13206, - 13217 + 13159, + 13170 ], "loc": { "start": { - "line": 455, + "line": 452, "column": 9 }, "end": { - "line": 455, + "line": 452, "column": 20 } } @@ -13718,16 +13484,16 @@ "object": { "type": "ThisExpression", "range": [ - 13221, - 13225 + 13174, + 13178 ], "loc": { "start": { - "line": 455, + "line": 452, "column": 24 }, "end": { - "line": 455, + "line": 452, "column": 28 } } @@ -13736,31 +13502,31 @@ "type": "Identifier", "name": "_services", "range": [ - 13226, - 13235 + 13179, + 13188 ], "loc": { "start": { - "line": 455, + "line": 452, "column": 29 }, "end": { - "line": 455, + "line": 452, "column": 38 } } }, "range": [ - 13221, - 13235 + 13174, + 13188 ], "loc": { "start": { - "line": 455, + "line": 452, "column": 24 }, "end": { - "line": 455, + "line": 452, "column": 38 } } @@ -13777,16 +13543,16 @@ "type": "Identifier", "name": "event", "range": [ - 13251, - 13256 + 13204, + 13209 ], "loc": { "start": { - "line": 456, + "line": 453, "column": 12 }, "end": { - "line": 456, + "line": 453, "column": 17 } } @@ -13797,16 +13563,16 @@ "type": "Identifier", "name": "SlotOnloadEvent", "range": [ - 13263, - 13278 + 13216, + 13231 ], "loc": { "start": { - "line": 456, + "line": 453, "column": 24 }, "end": { - "line": 456, + "line": 453, "column": 39 } } @@ -13821,16 +13587,16 @@ "type": "Identifier", "name": "service", "range": [ - 13279, - 13286 + 13232, + 13239 ], "loc": { "start": { - "line": 456, + "line": 453, "column": 40 }, "end": { - "line": 456, + "line": 453, "column": 47 } } @@ -13839,47 +13605,47 @@ "type": "Identifier", "name": "getName", "range": [ - 13287, - 13294 + 13240, + 13247 ], "loc": { "start": { - "line": 456, + "line": 453, "column": 48 }, "end": { - "line": 456, + "line": 453, "column": 55 } } }, "range": [ - 13279, - 13294 + 13232, + 13247 ], "loc": { "start": { - "line": 456, + "line": 453, "column": 40 }, "end": { - "line": 456, + "line": 453, "column": 55 } } }, "arguments": [], "range": [ - 13279, - 13296 + 13232, + 13249 ], "loc": { "start": { - "line": 456, + "line": 453, "column": 40 }, "end": { - "line": 456, + "line": 453, "column": 57 } } @@ -13887,47 +13653,47 @@ { "type": "ThisExpression", "range": [ - 13298, - 13302 + 13251, + 13255 ], "loc": { "start": { - "line": 456, + "line": 453, "column": 59 }, "end": { - "line": 456, + "line": 453, "column": 63 } } } ], "range": [ - 13259, - 13303 + 13212, + 13256 ], "loc": { "start": { - "line": 456, + "line": 453, "column": 20 }, "end": { - "line": 456, + "line": 453, "column": 64 } } }, "range": [ - 13251, - 13303 + 13204, + 13256 ], "loc": { "start": { - "line": 456, + "line": 453, "column": 12 }, "end": { - "line": 456, + "line": 453, "column": 64 } } @@ -13935,16 +13701,16 @@ ], "kind": "const", "range": [ - 13245, - 13304 + 13198, + 13257 ], "loc": { "start": { - "line": 456, + "line": 453, "column": 6 }, "end": { - "line": 456, + "line": 453, "column": 65 } } @@ -13960,16 +13726,16 @@ "type": "Identifier", "name": "service", "range": [ - 13311, - 13318 + 13264, + 13271 ], "loc": { "start": { - "line": 457, + "line": 454, "column": 6 }, "end": { - "line": 457, + "line": 454, "column": 13 } } @@ -13978,31 +13744,31 @@ "type": "Identifier", "name": "_fireEvent", "range": [ - 13319, - 13329 + 13272, + 13282 ], "loc": { "start": { - "line": 457, + "line": 454, "column": 14 }, "end": { - "line": 457, + "line": 454, "column": 24 } } }, "range": [ - 13311, - 13329 + 13264, + 13282 ], "loc": { "start": { - "line": 457, + "line": 454, "column": 6 }, "end": { - "line": 457, + "line": 454, "column": 24 } } @@ -14015,16 +13781,16 @@ "type": "Identifier", "name": "event", "range": [ - 13330, - 13335 + 13283, + 13288 ], "loc": { "start": { - "line": 457, + "line": 454, "column": 25 }, "end": { - "line": 457, + "line": 454, "column": 30 } } @@ -14033,31 +13799,31 @@ "type": "Identifier", "name": "_name", "range": [ - 13336, - 13341 + 13289, + 13294 ], "loc": { "start": { - "line": 457, + "line": 454, "column": 31 }, "end": { - "line": 457, + "line": 454, "column": 36 } } }, "range": [ - 13330, - 13341 + 13283, + 13294 ], "loc": { "start": { - "line": 457, + "line": 454, "column": 25 }, "end": { - "line": 457, + "line": 454, "column": 36 } } @@ -14066,94 +13832,94 @@ "type": "Identifier", "name": "event", "range": [ - 13343, - 13348 + 13296, + 13301 ], "loc": { "start": { - "line": 457, + "line": 454, "column": 38 }, "end": { - "line": 457, + "line": 454, "column": 43 } } } ], "range": [ - 13311, - 13349 + 13264, + 13302 ], "loc": { "start": { - "line": 457, + "line": 454, "column": 6 }, "end": { - "line": 457, + "line": 454, "column": 44 } } }, "range": [ - 13311, - 13350 + 13264, + 13303 ], "loc": { "start": { - "line": 457, + "line": 454, "column": 6 }, "end": { - "line": 457, + "line": 454, "column": 45 } } } ], "range": [ - 13237, - 13356 + 13190, + 13309 ], "loc": { "start": { - "line": 455, + "line": 452, "column": 40 }, "end": { - "line": 458, + "line": 455, "column": 5 } } }, "range": [ - 13201, - 13356 + 13154, + 13309 ], "loc": { "start": { - "line": 455, + "line": 452, "column": 4 }, "end": { - "line": 458, + "line": 455, "column": 5 } } } ], "range": [ - 13195, - 13360 + 13148, + 13313 ], "loc": { "start": { - "line": 454, + "line": 451, "column": 11 }, "end": { - "line": 459, + "line": 456, "column": 3 } } @@ -14161,16 +13927,16 @@ "generator": false, "expression": false, "range": [ - 13192, - 13360 + 13145, + 13313 ], "loc": { "start": { - "line": 454, + "line": 451, "column": 8 }, "end": { - "line": 459, + "line": 456, "column": 3 } } @@ -14178,16 +13944,16 @@ "kind": "method", "computed": false, "range": [ - 13186, - 13360 + 13139, + 13313 ], "loc": { "start": { - "line": 454, + "line": 451, "column": 2 }, "end": { - "line": 459, + "line": 456, "column": 3 } }, @@ -14196,16 +13962,16 @@ "type": "Block", "value": "*\n * Informs the {@link Slot} that it has been loaded.\n *\n * @experimental\n * @emits {SlotOnloadEvent}\n ", "range": [ - 13065, - 13183 + 13018, + 13136 ], "loc": { "start": { - "line": 448, + "line": 445, "column": 2 }, "end": { - "line": 453, + "line": 450, "column": 5 } } @@ -14216,16 +13982,16 @@ "type": "Block", "value": "*\n * Informs the {@link Slot} that its rendering has started.\n *\n * @experimental\n ", "range": [ - 13364, - 13459 + 13317, + 13412 ], "loc": { "start": { - "line": 461, + "line": 458, "column": 2 }, "end": { - "line": 465, + "line": 462, "column": 5 } } @@ -14239,16 +14005,16 @@ "type": "Identifier", "name": "renderStarted", "range": [ - 13462, - 13475 + 13415, + 13428 ], "loc": { "start": { - "line": 466, + "line": 463, "column": 2 }, "end": { - "line": 466, + "line": 463, "column": 15 } } @@ -14274,16 +14040,16 @@ "object": { "type": "ThisExpression", "range": [ - 13484, - 13488 + 13437, + 13441 ], "loc": { "start": { - "line": 467, + "line": 464, "column": 4 }, "end": { - "line": 467, + "line": 464, "column": 8 } } @@ -14292,31 +14058,31 @@ "type": "Identifier", "name": "_options", "range": [ - 13489, - 13497 + 13442, + 13450 ], "loc": { "start": { - "line": 467, + "line": 464, "column": 9 }, "end": { - "line": 467, + "line": 464, "column": 17 } } }, "range": [ - 13484, - 13497 + 13437, + 13450 ], "loc": { "start": { - "line": 467, + "line": 464, "column": 4 }, "end": { - "line": 467, + "line": 464, "column": 17 } } @@ -14325,31 +14091,31 @@ "type": "Identifier", "name": "displayed", "range": [ - 13498, - 13507 + 13451, + 13460 ], "loc": { "start": { - "line": 467, + "line": 464, "column": 18 }, "end": { - "line": 467, + "line": 464, "column": 27 } } }, "range": [ - 13484, - 13507 + 13437, + 13460 ], "loc": { "start": { - "line": 467, + "line": 464, "column": 4 }, "end": { - "line": 467, + "line": 464, "column": 27 } } @@ -14359,62 +14125,62 @@ "value": false, "raw": "false", "range": [ - 13510, - 13515 + 13463, + 13468 ], "loc": { "start": { - "line": 467, + "line": 464, "column": 30 }, "end": { - "line": 467, + "line": 464, "column": 35 } } }, "range": [ - 13484, - 13515 + 13437, + 13468 ], "loc": { "start": { - "line": 467, + "line": 464, "column": 4 }, "end": { - "line": 467, + "line": 464, "column": 35 } } }, "range": [ - 13484, - 13516 + 13437, + 13469 ], "loc": { "start": { - "line": 467, + "line": 464, "column": 4 }, "end": { - "line": 467, + "line": 464, "column": 36 } } } ], "range": [ - 13478, - 13520 + 13431, + 13473 ], "loc": { "start": { - "line": 466, + "line": 463, "column": 18 }, "end": { - "line": 468, + "line": 465, "column": 3 } } @@ -14422,16 +14188,16 @@ "generator": false, "expression": false, "range": [ - 13475, - 13520 + 13428, + 13473 ], "loc": { "start": { - "line": 466, + "line": 463, "column": 15 }, "end": { - "line": 468, + "line": 465, "column": 3 } } @@ -14439,16 +14205,16 @@ "kind": "method", "computed": false, "range": [ - 13462, - 13520 + 13415, + 13473 ], "loc": { "start": { - "line": 466, + "line": 463, "column": 2 }, "end": { - "line": 468, + "line": 465, "column": 3 } }, @@ -14457,16 +14223,16 @@ "type": "Block", "value": "*\n * Informs the {@link Slot} that its rendering has started.\n *\n * @experimental\n ", "range": [ - 13364, - 13459 + 13317, + 13412 ], "loc": { "start": { - "line": 461, + "line": 458, "column": 2 }, "end": { - "line": 465, + "line": 462, "column": 5 } } @@ -14477,16 +14243,16 @@ "type": "Block", "value": "*\n * Informs the {@link Slot} that its rendering has finished.\n *\n * @experimental\n * @param {?ResponseInformation} [responseInformation] The response information.\n * @emits {SlotRenderEndedEvent}\n ", "range": [ - 13524, - 13738 + 13477, + 13691 ], "loc": { "start": { - "line": 470, + "line": 467, "column": 2 }, "end": { - "line": 476, + "line": 473, "column": 5 } } @@ -14500,16 +14266,16 @@ "type": "Identifier", "name": "renderEnded", "range": [ - 13741, - 13752 + 13694, + 13705 ], "loc": { "start": { - "line": 477, + "line": 474, "column": 2 }, "end": { - "line": 477, + "line": 474, "column": 13 } } @@ -14522,16 +14288,16 @@ "type": "Identifier", "name": "responseInformation", "range": [ - 13753, - 13772 + 13706, + 13725 ], "loc": { "start": { - "line": 477, + "line": 474, "column": 14 }, "end": { - "line": 477, + "line": 474, "column": 33 } } @@ -14551,16 +14317,16 @@ "object": { "type": "ThisExpression", "range": [ - 13780, - 13784 + 13733, + 13737 ], "loc": { "start": { - "line": 478, + "line": 475, "column": 4 }, "end": { - "line": 478, + "line": 475, "column": 8 } } @@ -14569,31 +14335,31 @@ "type": "Identifier", "name": "_responseInformation", "range": [ - 13785, - 13805 + 13738, + 13758 ], "loc": { "start": { - "line": 478, + "line": 475, "column": 9 }, "end": { - "line": 478, + "line": 475, "column": 29 } } }, "range": [ - 13780, - 13805 + 13733, + 13758 ], "loc": { "start": { - "line": 478, + "line": 475, "column": 4 }, "end": { - "line": 478, + "line": 475, "column": 29 } } @@ -14602,46 +14368,46 @@ "type": "Identifier", "name": "responseInformation", "range": [ - 13808, - 13827 + 13761, + 13780 ], "loc": { "start": { - "line": 478, + "line": 475, "column": 32 }, "end": { - "line": 478, + "line": 475, "column": 51 } } }, "range": [ - 13780, - 13827 + 13733, + 13780 ], "loc": { "start": { - "line": 478, + "line": 475, "column": 4 }, "end": { - "line": 478, + "line": 475, "column": 51 } } }, "range": [ - 13780, - 13828 + 13733, + 13781 ], "loc": { "start": { - "line": 478, + "line": 475, "column": 4 }, "end": { - "line": 478, + "line": 475, "column": 52 } } @@ -14660,16 +14426,16 @@ "object": { "type": "ThisExpression", "range": [ - 13833, - 13837 + 13786, + 13790 ], "loc": { "start": { - "line": 479, + "line": 476, "column": 4 }, "end": { - "line": 479, + "line": 476, "column": 8 } } @@ -14678,31 +14444,31 @@ "type": "Identifier", "name": "_options", "range": [ - 13838, - 13846 + 13791, + 13799 ], "loc": { "start": { - "line": 479, + "line": 476, "column": 9 }, "end": { - "line": 479, + "line": 476, "column": 17 } } }, "range": [ - 13833, - 13846 + 13786, + 13799 ], "loc": { "start": { - "line": 479, + "line": 476, "column": 4 }, "end": { - "line": 479, + "line": 476, "column": 17 } } @@ -14711,31 +14477,31 @@ "type": "Identifier", "name": "displayed", "range": [ - 13847, - 13856 + 13800, + 13809 ], "loc": { "start": { - "line": 479, + "line": 476, "column": 18 }, "end": { - "line": 479, + "line": 476, "column": 27 } } }, "range": [ - 13833, - 13856 + 13786, + 13809 ], "loc": { "start": { - "line": 479, + "line": 476, "column": 4 }, "end": { - "line": 479, + "line": 476, "column": 27 } } @@ -14745,46 +14511,46 @@ "value": true, "raw": "true", "range": [ - 13859, - 13863 + 13812, + 13816 ], "loc": { "start": { - "line": 479, + "line": 476, "column": 30 }, "end": { - "line": 479, + "line": 476, "column": 34 } } }, "range": [ - 13833, - 13863 + 13786, + 13816 ], "loc": { "start": { - "line": 479, + "line": 476, "column": 4 }, "end": { - "line": 479, + "line": 476, "column": 34 } } }, "range": [ - 13833, - 13864 + 13786, + 13817 ], "loc": { "start": { - "line": 479, + "line": 476, "column": 4 }, "end": { - "line": 479, + "line": 476, "column": 35 } } @@ -14798,16 +14564,16 @@ "type": "Identifier", "name": "size", "range": [ - 13876, - 13880 + 13829, + 13833 ], "loc": { "start": { - "line": 481, + "line": 478, "column": 10 }, "end": { - "line": 481, + "line": 478, "column": 14 } } @@ -14823,16 +14589,16 @@ "object": { "type": "ThisExpression", "range": [ - 13883, - 13887 + 13836, + 13840 ], "loc": { "start": { - "line": 481, + "line": 478, "column": 17 }, "end": { - "line": 481, + "line": 478, "column": 21 } } @@ -14841,47 +14607,47 @@ "type": "Identifier", "name": "getSizes", "range": [ - 13888, - 13896 + 13841, + 13849 ], "loc": { "start": { - "line": 481, + "line": 478, "column": 22 }, "end": { - "line": 481, + "line": 478, "column": 30 } } }, "range": [ - 13883, - 13896 + 13836, + 13849 ], "loc": { "start": { - "line": 481, + "line": 478, "column": 17 }, "end": { - "line": 481, + "line": 478, "column": 30 } } }, "arguments": [], "range": [ - 13883, - 13898 + 13836, + 13851 ], "loc": { "start": { - "line": 481, + "line": 478, "column": 17 }, "end": { - "line": 481, + "line": 478, "column": 32 } } @@ -14891,46 +14657,46 @@ "value": 0, "raw": "0", "range": [ - 13899, - 13900 + 13852, + 13853 ], "loc": { "start": { - "line": 481, + "line": 478, "column": 33 }, "end": { - "line": 481, + "line": 478, "column": 34 } } }, "range": [ - 13883, - 13901 + 13836, + 13854 ], "loc": { "start": { - "line": 481, + "line": 478, "column": 17 }, "end": { - "line": 481, + "line": 478, "column": 35 } } }, "range": [ - 13876, - 13901 + 13829, + 13854 ], "loc": { "start": { - "line": 481, + "line": 478, "column": 10 }, "end": { - "line": 481, + "line": 478, "column": 35 } } @@ -14938,16 +14704,16 @@ ], "kind": "const", "range": [ - 13870, - 13902 + 13823, + 13855 ], "loc": { "start": { - "line": 481, + "line": 478, "column": 4 }, "end": { - "line": 481, + "line": 478, "column": 36 } } @@ -14963,32 +14729,32 @@ "type": "Identifier", "name": "service", "range": [ - 13917, - 13924 + 13870, + 13877 ], "loc": { "start": { - "line": 483, + "line": 480, "column": 13 }, "end": { - "line": 483, + "line": 480, "column": 20 } } }, "init": null, "range": [ - 13917, - 13924 + 13870, + 13877 ], "loc": { "start": { - "line": 483, + "line": 480, "column": 13 }, "end": { - "line": 483, + "line": 480, "column": 20 } } @@ -14996,16 +14762,16 @@ ], "kind": "let", "range": [ - 13913, - 13924 + 13866, + 13877 ], "loc": { "start": { - "line": 483, + "line": 480, "column": 9 }, "end": { - "line": 483, + "line": 480, "column": 20 } } @@ -15016,16 +14782,16 @@ "object": { "type": "ThisExpression", "range": [ - 13928, - 13932 + 13881, + 13885 ], "loc": { "start": { - "line": 483, + "line": 480, "column": 24 }, "end": { - "line": 483, + "line": 480, "column": 28 } } @@ -15034,31 +14800,31 @@ "type": "Identifier", "name": "_services", "range": [ - 13933, - 13942 + 13886, + 13895 ], "loc": { "start": { - "line": 483, + "line": 480, "column": 29 }, "end": { - "line": 483, + "line": 480, "column": 38 } } }, "range": [ - 13928, - 13942 + 13881, + 13895 ], "loc": { "start": { - "line": 483, + "line": 480, "column": 24 }, "end": { - "line": 483, + "line": 480, "column": 38 } } @@ -15075,32 +14841,32 @@ "type": "Identifier", "name": "event", "range": [ - 13956, - 13961 + 13909, + 13914 ], "loc": { "start": { - "line": 484, + "line": 481, "column": 10 }, "end": { - "line": 484, + "line": 481, "column": 15 } } }, "init": null, "range": [ - 13956, - 13961 + 13909, + 13914 ], "loc": { "start": { - "line": 484, + "line": 481, "column": 10 }, "end": { - "line": 484, + "line": 481, "column": 15 } } @@ -15108,16 +14874,16 @@ ], "kind": "let", "range": [ - 13952, - 13962 + 13905, + 13915 ], "loc": { "start": { - "line": 484, + "line": 481, "column": 6 }, "end": { - "line": 484, + "line": 481, "column": 16 } } @@ -15131,16 +14897,16 @@ "type": "Identifier", "name": "responseInformation", "range": [ - 13974, - 13993 + 13927, + 13946 ], "loc": { "start": { - "line": 486, + "line": 483, "column": 10 }, "end": { - "line": 486, + "line": 483, "column": 29 } } @@ -15150,31 +14916,31 @@ "value": null, "raw": "null", "range": [ - 13997, - 14001 + 13950, + 13954 ], "loc": { "start": { - "line": 486, + "line": 483, "column": 33 }, "end": { - "line": 486, + "line": 483, "column": 37 } } }, "range": [ - 13974, - 14001 + 13927, + 13954 ], "loc": { "start": { - "line": 486, + "line": 483, "column": 10 }, "end": { - "line": 486, + "line": 483, "column": 37 } } @@ -15191,16 +14957,16 @@ "type": "Identifier", "name": "event", "range": [ - 14013, - 14018 + 13966, + 13971 ], "loc": { "start": { - "line": 487, + "line": 484, "column": 8 }, "end": { - "line": 487, + "line": 484, "column": 13 } } @@ -15211,16 +14977,16 @@ "type": "Identifier", "name": "SlotRenderEndedEvent", "range": [ - 14025, - 14045 + 13978, + 13998 ], "loc": { "start": { - "line": 487, + "line": 484, "column": 20 }, "end": { - "line": 487, + "line": 484, "column": 40 } } @@ -15235,16 +15001,16 @@ "type": "Identifier", "name": "service", "range": [ - 14046, - 14053 + 13999, + 14006 ], "loc": { "start": { - "line": 487, + "line": 484, "column": 41 }, "end": { - "line": 487, + "line": 484, "column": 48 } } @@ -15253,47 +15019,47 @@ "type": "Identifier", "name": "getName", "range": [ - 14054, - 14061 + 14007, + 14014 ], "loc": { "start": { - "line": 487, + "line": 484, "column": 49 }, "end": { - "line": 487, + "line": 484, "column": 56 } } }, "range": [ - 14046, - 14061 + 13999, + 14014 ], "loc": { "start": { - "line": 487, + "line": 484, "column": 41 }, "end": { - "line": 487, + "line": 484, "column": 56 } } }, "arguments": [], "range": [ - 14046, - 14063 + 13999, + 14016 ], "loc": { "start": { - "line": 487, + "line": 484, "column": 41 }, "end": { - "line": 487, + "line": 484, "column": 58 } } @@ -15301,16 +15067,16 @@ { "type": "ThisExpression", "range": [ - 14065, - 14069 + 14018, + 14022 ], "loc": { "start": { - "line": 487, + "line": 484, "column": 60 }, "end": { - "line": 487, + "line": 484, "column": 64 } } @@ -15322,16 +15088,16 @@ "type": "Identifier", "name": "responseInformation", "range": [ - 14081, - 14100 + 14034, + 14053 ], "loc": { "start": { - "line": 488, + "line": 485, "column": 10 }, "end": { - "line": 488, + "line": 485, "column": 29 } } @@ -15340,31 +15106,31 @@ "type": "Identifier", "name": "creativeId", "range": [ - 14101, - 14111 + 14054, + 14064 ], "loc": { "start": { - "line": 488, + "line": 485, "column": 30 }, "end": { - "line": 488, + "line": 485, "column": 40 } } }, "range": [ - 14081, - 14111 + 14034, + 14064 ], "loc": { "start": { - "line": 488, + "line": 485, "column": 10 }, "end": { - "line": 488, + "line": 485, "column": 40 } } @@ -15376,16 +15142,16 @@ "type": "Identifier", "name": "responseInformation", "range": [ - 14113, - 14132 + 14066, + 14085 ], "loc": { "start": { - "line": 488, + "line": 485, "column": 42 }, "end": { - "line": 488, + "line": 485, "column": 61 } } @@ -15394,31 +15160,31 @@ "type": "Identifier", "name": "lineItemId", "range": [ - 14133, - 14143 + 14086, + 14096 ], "loc": { "start": { - "line": 488, + "line": 485, "column": 62 }, "end": { - "line": 488, + "line": 485, "column": 72 } } }, "range": [ - 14113, - 14143 + 14066, + 14096 ], "loc": { "start": { - "line": 488, + "line": 485, "column": 42 }, "end": { - "line": 488, + "line": 485, "column": 72 } } @@ -15428,16 +15194,16 @@ "value": false, "raw": "false", "range": [ - 14145, - 14150 + 14098, + 14103 ], "loc": { "start": { - "line": 488, + "line": 485, "column": 74 }, "end": { - "line": 488, + "line": 485, "column": 79 } } @@ -15446,78 +15212,78 @@ "type": "Identifier", "name": "size", "range": [ - 14152, - 14156 + 14105, + 14109 ], "loc": { "start": { - "line": 488, + "line": 485, "column": 81 }, "end": { - "line": 488, + "line": 485, "column": 85 } } } ], "range": [ - 14021, - 14157 + 13974, + 14110 ], "loc": { "start": { - "line": 487, + "line": 484, "column": 16 }, "end": { - "line": 488, + "line": 485, "column": 86 } } }, "range": [ - 14013, - 14157 + 13966, + 14110 ], "loc": { "start": { - "line": 487, + "line": 484, "column": 8 }, "end": { - "line": 488, + "line": 485, "column": 86 } } }, "range": [ - 14013, - 14158 + 13966, + 14111 ], "loc": { "start": { - "line": 487, + "line": 484, "column": 8 }, "end": { - "line": 488, + "line": 485, "column": 87 } } } ], "range": [ - 14003, - 14166 + 13956, + 14119 ], "loc": { "start": { - "line": 486, + "line": 483, "column": 39 }, "end": { - "line": 489, + "line": 486, "column": 7 } } @@ -15534,16 +15300,16 @@ "type": "Identifier", "name": "event", "range": [ - 14182, - 14187 + 14135, + 14140 ], "loc": { "start": { - "line": 490, + "line": 487, "column": 8 }, "end": { - "line": 490, + "line": 487, "column": 13 } } @@ -15554,16 +15320,16 @@ "type": "Identifier", "name": "SlotRenderEndedEvent", "range": [ - 14194, - 14214 + 14147, + 14167 ], "loc": { "start": { - "line": 490, + "line": 487, "column": 20 }, "end": { - "line": 490, + "line": 487, "column": 40 } } @@ -15578,16 +15344,16 @@ "type": "Identifier", "name": "service", "range": [ - 14215, - 14222 + 14168, + 14175 ], "loc": { "start": { - "line": 490, + "line": 487, "column": 41 }, "end": { - "line": 490, + "line": 487, "column": 48 } } @@ -15596,47 +15362,47 @@ "type": "Identifier", "name": "getName", "range": [ - 14223, - 14230 + 14176, + 14183 ], "loc": { "start": { - "line": 490, + "line": 487, "column": 49 }, "end": { - "line": 490, + "line": 487, "column": 56 } } }, "range": [ - 14215, - 14230 + 14168, + 14183 ], "loc": { "start": { - "line": 490, + "line": 487, "column": 41 }, "end": { - "line": 490, + "line": 487, "column": 56 } } }, "arguments": [], "range": [ - 14215, - 14232 + 14168, + 14185 ], "loc": { "start": { - "line": 490, + "line": 487, "column": 41 }, "end": { - "line": 490, + "line": 487, "column": 58 } } @@ -15644,16 +15410,16 @@ { "type": "ThisExpression", "range": [ - 14234, - 14238 + 14187, + 14191 ], "loc": { "start": { - "line": 490, + "line": 487, "column": 60 }, "end": { - "line": 490, + "line": 487, "column": 64 } } @@ -15663,16 +15429,16 @@ "value": null, "raw": "null", "range": [ - 14240, - 14244 + 14193, + 14197 ], "loc": { "start": { - "line": 490, + "line": 487, "column": 66 }, "end": { - "line": 490, + "line": 487, "column": 70 } } @@ -15682,16 +15448,16 @@ "value": null, "raw": "null", "range": [ - 14246, - 14250 + 14199, + 14203 ], "loc": { "start": { - "line": 490, + "line": 487, "column": 72 }, "end": { - "line": 490, + "line": 487, "column": 76 } } @@ -15701,16 +15467,16 @@ "value": true, "raw": "true", "range": [ - 14252, - 14256 + 14205, + 14209 ], "loc": { "start": { - "line": 490, + "line": 487, "column": 78 }, "end": { - "line": 490, + "line": 487, "column": 82 } } @@ -15719,93 +15485,93 @@ "type": "Identifier", "name": "size", "range": [ - 14258, - 14262 + 14211, + 14215 ], "loc": { "start": { - "line": 490, + "line": 487, "column": 84 }, "end": { - "line": 490, + "line": 487, "column": 88 } } } ], "range": [ - 14190, - 14263 + 14143, + 14216 ], "loc": { "start": { - "line": 490, + "line": 487, "column": 16 }, "end": { - "line": 490, + "line": 487, "column": 89 } } }, "range": [ - 14182, - 14263 + 14135, + 14216 ], "loc": { "start": { - "line": 490, + "line": 487, "column": 8 }, "end": { - "line": 490, + "line": 487, "column": 89 } } }, "range": [ - 14182, - 14264 + 14135, + 14217 ], "loc": { "start": { - "line": 490, + "line": 487, "column": 8 }, "end": { - "line": 490, + "line": 487, "column": 90 } } } ], "range": [ - 14172, - 14272 + 14125, + 14225 ], "loc": { "start": { - "line": 489, + "line": 486, "column": 13 }, "end": { - "line": 491, + "line": 488, "column": 7 } } }, "range": [ - 13970, - 14272 + 13923, + 14225 ], "loc": { "start": { - "line": 486, + "line": 483, "column": 6 }, "end": { - "line": 491, + "line": 488, "column": 7 } } @@ -15821,16 +15587,16 @@ "type": "Identifier", "name": "service", "range": [ - 14280, - 14287 + 14233, + 14240 ], "loc": { "start": { - "line": 493, + "line": 490, "column": 6 }, "end": { - "line": 493, + "line": 490, "column": 13 } } @@ -15839,31 +15605,31 @@ "type": "Identifier", "name": "_fireEvent", "range": [ - 14288, - 14298 + 14241, + 14251 ], "loc": { "start": { - "line": 493, + "line": 490, "column": 14 }, "end": { - "line": 493, + "line": 490, "column": 24 } } }, "range": [ - 14280, - 14298 + 14233, + 14251 ], "loc": { "start": { - "line": 493, + "line": 490, "column": 6 }, "end": { - "line": 493, + "line": 490, "column": 24 } } @@ -15876,16 +15642,16 @@ "type": "Identifier", "name": "event", "range": [ - 14299, - 14304 + 14252, + 14257 ], "loc": { "start": { - "line": 493, + "line": 490, "column": 25 }, "end": { - "line": 493, + "line": 490, "column": 30 } } @@ -15894,31 +15660,31 @@ "type": "Identifier", "name": "_name", "range": [ - 14305, - 14310 + 14258, + 14263 ], "loc": { "start": { - "line": 493, + "line": 490, "column": 31 }, "end": { - "line": 493, + "line": 490, "column": 36 } } }, "range": [ - 14299, - 14310 + 14252, + 14263 ], "loc": { "start": { - "line": 493, + "line": 490, "column": 25 }, "end": { - "line": 493, + "line": 490, "column": 36 } } @@ -15927,94 +15693,94 @@ "type": "Identifier", "name": "event", "range": [ - 14312, - 14317 + 14265, + 14270 ], "loc": { "start": { - "line": 493, + "line": 490, "column": 38 }, "end": { - "line": 493, + "line": 490, "column": 43 } } } ], "range": [ - 14280, - 14318 + 14233, + 14271 ], "loc": { "start": { - "line": 493, + "line": 490, "column": 6 }, "end": { - "line": 493, + "line": 490, "column": 44 } } }, "range": [ - 14280, - 14319 + 14233, + 14272 ], "loc": { "start": { - "line": 493, + "line": 490, "column": 6 }, "end": { - "line": 493, + "line": 490, "column": 45 } } } ], "range": [ - 13944, - 14325 + 13897, + 14278 ], "loc": { "start": { - "line": 483, + "line": 480, "column": 40 }, "end": { - "line": 494, + "line": 491, "column": 5 } } }, "range": [ - 13908, - 14325 + 13861, + 14278 ], "loc": { "start": { - "line": 483, + "line": 480, "column": 4 }, "end": { - "line": 494, + "line": 491, "column": 5 } } } ], "range": [ - 13774, - 14329 + 13727, + 14282 ], "loc": { "start": { - "line": 477, + "line": 474, "column": 35 }, "end": { - "line": 495, + "line": 492, "column": 3 } } @@ -16022,16 +15788,16 @@ "generator": false, "expression": false, "range": [ - 13752, - 14329 + 13705, + 14282 ], "loc": { "start": { - "line": 477, + "line": 474, "column": 13 }, "end": { - "line": 495, + "line": 492, "column": 3 } } @@ -16039,16 +15805,16 @@ "kind": "method", "computed": false, "range": [ - 13741, - 14329 + 13694, + 14282 ], "loc": { "start": { - "line": 477, + "line": 474, "column": 2 }, "end": { - "line": 495, + "line": 492, "column": 3 } }, @@ -16057,16 +15823,16 @@ "type": "Block", "value": "*\n * Informs the {@link Slot} that its rendering has finished.\n *\n * @experimental\n * @param {?ResponseInformation} [responseInformation] The response information.\n * @emits {SlotRenderEndedEvent}\n ", "range": [ - 13524, - 13738 + 13477, + 13691 ], "loc": { "start": { - "line": 470, + "line": 467, "column": 2 }, "end": { - "line": 476, + "line": 473, "column": 5 } } @@ -16077,16 +15843,16 @@ "type": "Block", "value": "*\n * Notifies the {@link Slot} that it's impression is viewable.\n *\n * @emits {ImpressionViewableEvent}\n ", "range": [ - 14333, - 14450 + 14286, + 14403 ], "loc": { "start": { - "line": 497, + "line": 494, "column": 2 }, "end": { - "line": 501, + "line": 498, "column": 5 } } @@ -16100,16 +15866,16 @@ "type": "Identifier", "name": "impressionViewable", "range": [ - 14453, - 14471 + 14406, + 14424 ], "loc": { "start": { - "line": 502, + "line": 499, "column": 2 }, "end": { - "line": 502, + "line": 499, "column": 20 } } @@ -16132,32 +15898,32 @@ "type": "Identifier", "name": "service", "range": [ - 14489, - 14496 + 14442, + 14449 ], "loc": { "start": { - "line": 503, + "line": 500, "column": 13 }, "end": { - "line": 503, + "line": 500, "column": 20 } } }, "init": null, "range": [ - 14489, - 14496 + 14442, + 14449 ], "loc": { "start": { - "line": 503, + "line": 500, "column": 13 }, "end": { - "line": 503, + "line": 500, "column": 20 } } @@ -16165,16 +15931,16 @@ ], "kind": "let", "range": [ - 14485, - 14496 + 14438, + 14449 ], "loc": { "start": { - "line": 503, + "line": 500, "column": 9 }, "end": { - "line": 503, + "line": 500, "column": 20 } } @@ -16185,16 +15951,16 @@ "object": { "type": "ThisExpression", "range": [ - 14500, - 14504 + 14453, + 14457 ], "loc": { "start": { - "line": 503, + "line": 500, "column": 24 }, "end": { - "line": 503, + "line": 500, "column": 28 } } @@ -16203,31 +15969,31 @@ "type": "Identifier", "name": "_services", "range": [ - 14505, - 14514 + 14458, + 14467 ], "loc": { "start": { - "line": 503, + "line": 500, "column": 29 }, "end": { - "line": 503, + "line": 500, "column": 38 } } }, "range": [ - 14500, - 14514 + 14453, + 14467 ], "loc": { "start": { - "line": 503, + "line": 500, "column": 24 }, "end": { - "line": 503, + "line": 500, "column": 38 } } @@ -16244,16 +16010,16 @@ "type": "Identifier", "name": "event", "range": [ - 14530, - 14535 + 14483, + 14488 ], "loc": { "start": { - "line": 504, + "line": 501, "column": 12 }, "end": { - "line": 504, + "line": 501, "column": 17 } } @@ -16264,16 +16030,16 @@ "type": "Identifier", "name": "ImpressionViewableEvent", "range": [ - 14542, - 14565 + 14495, + 14518 ], "loc": { "start": { - "line": 504, + "line": 501, "column": 24 }, "end": { - "line": 504, + "line": 501, "column": 47 } } @@ -16288,16 +16054,16 @@ "type": "Identifier", "name": "service", "range": [ - 14566, - 14573 + 14519, + 14526 ], "loc": { "start": { - "line": 504, + "line": 501, "column": 48 }, "end": { - "line": 504, + "line": 501, "column": 55 } } @@ -16306,47 +16072,47 @@ "type": "Identifier", "name": "getName", "range": [ - 14574, - 14581 + 14527, + 14534 ], "loc": { "start": { - "line": 504, + "line": 501, "column": 56 }, "end": { - "line": 504, + "line": 501, "column": 63 } } }, "range": [ - 14566, - 14581 + 14519, + 14534 ], "loc": { "start": { - "line": 504, + "line": 501, "column": 48 }, "end": { - "line": 504, + "line": 501, "column": 63 } } }, "arguments": [], "range": [ - 14566, - 14583 + 14519, + 14536 ], "loc": { "start": { - "line": 504, + "line": 501, "column": 48 }, "end": { - "line": 504, + "line": 501, "column": 65 } } @@ -16354,47 +16120,47 @@ { "type": "ThisExpression", "range": [ - 14585, - 14589 + 14538, + 14542 ], "loc": { "start": { - "line": 504, + "line": 501, "column": 67 }, "end": { - "line": 504, + "line": 501, "column": 71 } } } ], "range": [ - 14538, - 14590 + 14491, + 14543 ], "loc": { "start": { - "line": 504, + "line": 501, "column": 20 }, "end": { - "line": 504, + "line": 501, "column": 72 } } }, "range": [ - 14530, - 14590 + 14483, + 14543 ], "loc": { "start": { - "line": 504, + "line": 501, "column": 12 }, "end": { - "line": 504, + "line": 501, "column": 72 } } @@ -16402,16 +16168,16 @@ ], "kind": "const", "range": [ - 14524, - 14591 + 14477, + 14544 ], "loc": { "start": { - "line": 504, + "line": 501, "column": 6 }, "end": { - "line": 504, + "line": 501, "column": 73 } } @@ -16427,16 +16193,16 @@ "type": "Identifier", "name": "service", "range": [ - 14599, - 14606 + 14552, + 14559 ], "loc": { "start": { - "line": 506, + "line": 503, "column": 6 }, "end": { - "line": 506, + "line": 503, "column": 13 } } @@ -16445,31 +16211,31 @@ "type": "Identifier", "name": "_fireEvent", "range": [ - 14607, - 14617 + 14560, + 14570 ], "loc": { "start": { - "line": 506, + "line": 503, "column": 14 }, "end": { - "line": 506, + "line": 503, "column": 24 } } }, "range": [ - 14599, - 14617 + 14552, + 14570 ], "loc": { "start": { - "line": 506, + "line": 503, "column": 6 }, "end": { - "line": 506, + "line": 503, "column": 24 } } @@ -16482,16 +16248,16 @@ "type": "Identifier", "name": "event", "range": [ - 14618, - 14623 + 14571, + 14576 ], "loc": { "start": { - "line": 506, + "line": 503, "column": 25 }, "end": { - "line": 506, + "line": 503, "column": 30 } } @@ -16500,31 +16266,31 @@ "type": "Identifier", "name": "_name", "range": [ - 14624, - 14629 + 14577, + 14582 ], "loc": { "start": { - "line": 506, + "line": 503, "column": 31 }, "end": { - "line": 506, + "line": 503, "column": 36 } } }, "range": [ - 14618, - 14629 + 14571, + 14582 ], "loc": { "start": { - "line": 506, + "line": 503, "column": 25 }, "end": { - "line": 506, + "line": 503, "column": 36 } } @@ -16533,94 +16299,94 @@ "type": "Identifier", "name": "event", "range": [ - 14631, - 14636 + 14584, + 14589 ], "loc": { "start": { - "line": 506, + "line": 503, "column": 38 }, "end": { - "line": 506, + "line": 503, "column": 43 } } } ], "range": [ - 14599, - 14637 + 14552, + 14590 ], "loc": { "start": { - "line": 506, + "line": 503, "column": 6 }, "end": { - "line": 506, + "line": 503, "column": 44 } } }, "range": [ - 14599, - 14638 + 14552, + 14591 ], "loc": { "start": { - "line": 506, + "line": 503, "column": 6 }, "end": { - "line": 506, + "line": 503, "column": 45 } } } ], "range": [ - 14516, - 14644 + 14469, + 14597 ], "loc": { "start": { - "line": 503, + "line": 500, "column": 40 }, "end": { - "line": 507, + "line": 504, "column": 5 } } }, "range": [ - 14480, - 14644 + 14433, + 14597 ], "loc": { "start": { - "line": 503, + "line": 500, "column": 4 }, "end": { - "line": 507, + "line": 504, "column": 5 } } } ], "range": [ - 14474, - 14648 + 14427, + 14601 ], "loc": { "start": { - "line": 502, + "line": 499, "column": 23 }, "end": { - "line": 508, + "line": 505, "column": 3 } } @@ -16628,16 +16394,16 @@ "generator": false, "expression": false, "range": [ - 14471, - 14648 + 14424, + 14601 ], "loc": { "start": { - "line": 502, + "line": 499, "column": 20 }, "end": { - "line": 508, + "line": 505, "column": 3 } } @@ -16645,16 +16411,16 @@ "kind": "method", "computed": false, "range": [ - 14453, - 14648 + 14406, + 14601 ], "loc": { "start": { - "line": 502, + "line": 499, "column": 2 }, "end": { - "line": 508, + "line": 505, "column": 3 } }, @@ -16663,16 +16429,16 @@ "type": "Block", "value": "*\n * Notifies the {@link Slot} that it's impression is viewable.\n *\n * @emits {ImpressionViewableEvent}\n ", "range": [ - 14333, - 14450 + 14286, + 14403 ], "loc": { "start": { - "line": 497, + "line": 494, "column": 2 }, "end": { - "line": 501, + "line": 498, "column": 5 } } @@ -16683,16 +16449,16 @@ "type": "Block", "value": "*\n * Notifies the {@link Slot} of its in view percentage.\n *\n * @param {number} inViewPercentage The percentage (0-100) of the ad's area that is visible.\n * @emits {SlotVisibilityChangedEvent}\n ", "range": [ - 14652, - 14860 + 14605, + 14813 ], "loc": { "start": { - "line": 510, + "line": 507, "column": 2 }, "end": { - "line": 515, + "line": 512, "column": 5 } } @@ -16706,16 +16472,16 @@ "type": "Identifier", "name": "visibilityChanged", "range": [ - 14863, - 14880 + 14816, + 14833 ], "loc": { "start": { - "line": 516, + "line": 513, "column": 2 }, "end": { - "line": 516, + "line": 513, "column": 19 } } @@ -16728,16 +16494,16 @@ "type": "Identifier", "name": "inViewPercentage", "range": [ - 14881, - 14897 + 14834, + 14850 ], "loc": { "start": { - "line": 516, + "line": 513, "column": 20 }, "end": { - "line": 516, + "line": 513, "column": 36 } } @@ -16760,16 +16526,16 @@ "object": { "type": "ThisExpression", "range": [ - 14909, - 14913 + 14862, + 14866 ], "loc": { "start": { - "line": 517, + "line": 514, "column": 8 }, "end": { - "line": 517, + "line": 514, "column": 12 } } @@ -16778,31 +16544,31 @@ "type": "Identifier", "name": "_options", "range": [ - 14914, - 14922 + 14867, + 14875 ], "loc": { "start": { - "line": 517, + "line": 514, "column": 13 }, "end": { - "line": 517, + "line": 514, "column": 21 } } }, "range": [ - 14909, - 14922 + 14862, + 14875 ], "loc": { "start": { - "line": 517, + "line": 514, "column": 8 }, "end": { - "line": 517, + "line": 514, "column": 21 } } @@ -16811,31 +16577,31 @@ "type": "Identifier", "name": "inViewPercentage", "range": [ - 14923, - 14939 + 14876, + 14892 ], "loc": { "start": { - "line": 517, + "line": 514, "column": 22 }, "end": { - "line": 517, + "line": 514, "column": 38 } } }, "range": [ - 14909, - 14939 + 14862, + 14892 ], "loc": { "start": { - "line": 517, + "line": 514, "column": 8 }, "end": { - "line": 517, + "line": 514, "column": 38 } } @@ -16844,31 +16610,31 @@ "type": "Identifier", "name": "inViewPercentage", "range": [ - 14944, - 14960 + 14897, + 14913 ], "loc": { "start": { - "line": 517, + "line": 514, "column": 43 }, "end": { - "line": 517, + "line": 514, "column": 59 } } }, "range": [ - 14909, - 14960 + 14862, + 14913 ], "loc": { "start": { - "line": 517, + "line": 514, "column": 8 }, "end": { - "line": 517, + "line": 514, "column": 59 } } @@ -16890,16 +16656,16 @@ "object": { "type": "ThisExpression", "range": [ - 14970, - 14974 + 14923, + 14927 ], "loc": { "start": { - "line": 518, + "line": 515, "column": 6 }, "end": { - "line": 518, + "line": 515, "column": 10 } } @@ -16908,31 +16674,31 @@ "type": "Identifier", "name": "_options", "range": [ - 14975, - 14983 + 14928, + 14936 ], "loc": { "start": { - "line": 518, + "line": 515, "column": 11 }, "end": { - "line": 518, + "line": 515, "column": 19 } } }, "range": [ - 14970, - 14983 + 14923, + 14936 ], "loc": { "start": { - "line": 518, + "line": 515, "column": 6 }, "end": { - "line": 518, + "line": 515, "column": 19 } } @@ -16941,31 +16707,31 @@ "type": "Identifier", "name": "inViewPercentage", "range": [ - 14984, - 15000 + 14937, + 14953 ], "loc": { "start": { - "line": 518, + "line": 515, "column": 20 }, "end": { - "line": 518, + "line": 515, "column": 36 } } }, "range": [ - 14970, - 15000 + 14923, + 14953 ], "loc": { "start": { - "line": 518, + "line": 515, "column": 6 }, "end": { - "line": 518, + "line": 515, "column": 36 } } @@ -16974,46 +16740,46 @@ "type": "Identifier", "name": "inViewPercentage", "range": [ - 15003, - 15019 + 14956, + 14972 ], "loc": { "start": { - "line": 518, + "line": 515, "column": 39 }, "end": { - "line": 518, + "line": 515, "column": 55 } } }, "range": [ - 14970, - 15019 + 14923, + 14972 ], "loc": { "start": { - "line": 518, + "line": 515, "column": 6 }, "end": { - "line": 518, + "line": 515, "column": 55 } } }, "range": [ - 14970, - 15020 + 14923, + 14973 ], "loc": { "start": { - "line": 518, + "line": 515, "column": 6 }, "end": { - "line": 518, + "line": 515, "column": 56 } } @@ -17029,32 +16795,32 @@ "type": "Identifier", "name": "service", "range": [ - 15036, - 15043 + 14989, + 14996 ], "loc": { "start": { - "line": 519, + "line": 516, "column": 15 }, "end": { - "line": 519, + "line": 516, "column": 22 } } }, "init": null, "range": [ - 15036, - 15043 + 14989, + 14996 ], "loc": { "start": { - "line": 519, + "line": 516, "column": 15 }, "end": { - "line": 519, + "line": 516, "column": 22 } } @@ -17062,16 +16828,16 @@ ], "kind": "let", "range": [ - 15032, - 15043 + 14985, + 14996 ], "loc": { "start": { - "line": 519, + "line": 516, "column": 11 }, "end": { - "line": 519, + "line": 516, "column": 22 } } @@ -17082,16 +16848,16 @@ "object": { "type": "ThisExpression", "range": [ - 15047, - 15051 + 15000, + 15004 ], "loc": { "start": { - "line": 519, + "line": 516, "column": 26 }, "end": { - "line": 519, + "line": 516, "column": 30 } } @@ -17100,31 +16866,31 @@ "type": "Identifier", "name": "_services", "range": [ - 15052, - 15061 + 15005, + 15014 ], "loc": { "start": { - "line": 519, + "line": 516, "column": 31 }, "end": { - "line": 519, + "line": 516, "column": 40 } } }, "range": [ - 15047, - 15061 + 15000, + 15014 ], "loc": { "start": { - "line": 519, + "line": 516, "column": 26 }, "end": { - "line": 519, + "line": 516, "column": 40 } } @@ -17141,16 +16907,16 @@ "type": "Identifier", "name": "event", "range": [ - 15079, - 15084 + 15032, + 15037 ], "loc": { "start": { - "line": 520, + "line": 517, "column": 14 }, "end": { - "line": 520, + "line": 517, "column": 19 } } @@ -17161,16 +16927,16 @@ "type": "Identifier", "name": "SlotVisibilityChangedEvent", "range": [ - 15091, - 15117 + 15044, + 15070 ], "loc": { "start": { - "line": 520, + "line": 517, "column": 26 }, "end": { - "line": 520, + "line": 517, "column": 52 } } @@ -17185,16 +16951,16 @@ "type": "Identifier", "name": "service", "range": [ - 15118, - 15125 + 15071, + 15078 ], "loc": { "start": { - "line": 520, + "line": 517, "column": 53 }, "end": { - "line": 520, + "line": 517, "column": 60 } } @@ -17203,47 +16969,47 @@ "type": "Identifier", "name": "getName", "range": [ - 15126, - 15133 + 15079, + 15086 ], "loc": { "start": { - "line": 520, + "line": 517, "column": 61 }, "end": { - "line": 520, + "line": 517, "column": 68 } } }, "range": [ - 15118, - 15133 + 15071, + 15086 ], "loc": { "start": { - "line": 520, + "line": 517, "column": 53 }, "end": { - "line": 520, + "line": 517, "column": 68 } } }, "arguments": [], "range": [ - 15118, - 15135 + 15071, + 15088 ], "loc": { "start": { - "line": 520, + "line": 517, "column": 53 }, "end": { - "line": 520, + "line": 517, "column": 70 } } @@ -17251,16 +17017,16 @@ { "type": "ThisExpression", "range": [ - 15137, - 15141 + 15090, + 15094 ], "loc": { "start": { - "line": 520, + "line": 517, "column": 72 }, "end": { - "line": 520, + "line": 517, "column": 76 } } @@ -17269,47 +17035,47 @@ "type": "Identifier", "name": "inViewPercentage", "range": [ - 15143, - 15159 + 15096, + 15112 ], "loc": { "start": { - "line": 520, + "line": 517, "column": 78 }, "end": { - "line": 520, + "line": 517, "column": 94 } } } ], "range": [ - 15087, - 15160 + 15040, + 15113 ], "loc": { "start": { - "line": 520, + "line": 517, "column": 22 }, "end": { - "line": 520, + "line": 517, "column": 95 } } }, "range": [ - 15079, - 15160 + 15032, + 15113 ], "loc": { "start": { - "line": 520, + "line": 517, "column": 14 }, "end": { - "line": 520, + "line": 517, "column": 95 } } @@ -17317,16 +17083,16 @@ ], "kind": "const", "range": [ - 15073, - 15161 + 15026, + 15114 ], "loc": { "start": { - "line": 520, + "line": 517, "column": 8 }, "end": { - "line": 520, + "line": 517, "column": 96 } } @@ -17342,16 +17108,16 @@ "type": "Identifier", "name": "service", "range": [ - 15170, - 15177 + 15123, + 15130 ], "loc": { "start": { - "line": 521, + "line": 518, "column": 8 }, "end": { - "line": 521, + "line": 518, "column": 15 } } @@ -17360,31 +17126,31 @@ "type": "Identifier", "name": "_fireEvent", "range": [ - 15178, - 15188 + 15131, + 15141 ], "loc": { "start": { - "line": 521, + "line": 518, "column": 16 }, "end": { - "line": 521, + "line": 518, "column": 26 } } }, "range": [ - 15170, - 15188 + 15123, + 15141 ], "loc": { "start": { - "line": 521, + "line": 518, "column": 8 }, "end": { - "line": 521, + "line": 518, "column": 26 } } @@ -17397,16 +17163,16 @@ "type": "Identifier", "name": "event", "range": [ - 15189, - 15194 + 15142, + 15147 ], "loc": { "start": { - "line": 521, + "line": 518, "column": 27 }, "end": { - "line": 521, + "line": 518, "column": 32 } } @@ -17415,31 +17181,31 @@ "type": "Identifier", "name": "_name", "range": [ - 15195, - 15200 + 15148, + 15153 ], "loc": { "start": { - "line": 521, + "line": 518, "column": 33 }, "end": { - "line": 521, + "line": 518, "column": 38 } } }, "range": [ - 15189, - 15200 + 15142, + 15153 ], "loc": { "start": { - "line": 521, + "line": 518, "column": 27 }, "end": { - "line": 521, + "line": 518, "column": 38 } } @@ -17448,126 +17214,126 @@ "type": "Identifier", "name": "event", "range": [ - 15202, - 15207 + 15155, + 15160 ], "loc": { "start": { - "line": 521, + "line": 518, "column": 40 }, "end": { - "line": 521, + "line": 518, "column": 45 } } } ], "range": [ - 15170, - 15208 + 15123, + 15161 ], "loc": { "start": { - "line": 521, + "line": 518, "column": 8 }, "end": { - "line": 521, + "line": 518, "column": 46 } } }, "range": [ - 15170, - 15209 + 15123, + 15162 ], "loc": { "start": { - "line": 521, + "line": 518, "column": 8 }, "end": { - "line": 521, + "line": 518, "column": 47 } } } ], "range": [ - 15063, - 15217 + 15016, + 15170 ], "loc": { "start": { - "line": 519, + "line": 516, "column": 42 }, "end": { - "line": 522, + "line": 519, "column": 7 } } }, "range": [ - 15027, - 15217 + 14980, + 15170 ], "loc": { "start": { - "line": 519, + "line": 516, "column": 6 }, "end": { - "line": 522, + "line": 519, "column": 7 } } } ], "range": [ - 14962, - 15223 + 14915, + 15176 ], "loc": { "start": { - "line": 517, + "line": 514, "column": 61 }, "end": { - "line": 523, + "line": 520, "column": 5 } } }, "alternate": null, "range": [ - 14905, - 15223 + 14858, + 15176 ], "loc": { "start": { - "line": 517, + "line": 514, "column": 4 }, "end": { - "line": 523, + "line": 520, "column": 5 } } } ], "range": [ - 14899, - 15227 + 14852, + 15180 ], "loc": { "start": { - "line": 516, + "line": 513, "column": 38 }, "end": { - "line": 524, + "line": 521, "column": 3 } } @@ -17575,16 +17341,16 @@ "generator": false, "expression": false, "range": [ - 14880, - 15227 + 14833, + 15180 ], "loc": { "start": { - "line": 516, + "line": 513, "column": 19 }, "end": { - "line": 524, + "line": 521, "column": 3 } } @@ -17592,16 +17358,16 @@ "kind": "method", "computed": false, "range": [ - 14863, - 15227 + 14816, + 15180 ], "loc": { "start": { - "line": 516, + "line": 513, "column": 2 }, "end": { - "line": 524, + "line": 521, "column": 3 } }, @@ -17610,16 +17376,16 @@ "type": "Block", "value": "*\n * Notifies the {@link Slot} of its in view percentage.\n *\n * @param {number} inViewPercentage The percentage (0-100) of the ad's area that is visible.\n * @emits {SlotVisibilityChangedEvent}\n ", "range": [ - 14652, - 14860 + 14605, + 14813 ], "loc": { "start": { - "line": 510, + "line": 507, "column": 2 }, "end": { - "line": 515, + "line": 512, "column": 5 } } @@ -17630,16 +17396,16 @@ "type": "Block", "value": "*\n * Refreshes the {@link Slot}.\n *\n * @private\n ", "range": [ - 15231, - 15292 + 15184, + 15245 ], "loc": { "start": { - "line": 526, + "line": 523, "column": 2 }, "end": { - "line": 530, + "line": 527, "column": 5 } } @@ -17653,16 +17419,16 @@ "type": "Identifier", "name": "_refresh", "range": [ - 15295, - 15303 + 15248, + 15256 ], "loc": { "start": { - "line": 531, + "line": 528, "column": 2 }, "end": { - "line": 531, + "line": 528, "column": 10 } } @@ -17688,16 +17454,16 @@ "object": { "type": "ThisExpression", "range": [ - 15312, - 15316 + 15265, + 15269 ], "loc": { "start": { - "line": 532, + "line": 529, "column": 4 }, "end": { - "line": 532, + "line": 529, "column": 8 } } @@ -17706,31 +17472,31 @@ "type": "Identifier", "name": "_options", "range": [ - 15317, - 15325 + 15270, + 15278 ], "loc": { "start": { - "line": 532, + "line": 529, "column": 9 }, "end": { - "line": 532, + "line": 529, "column": 17 } } }, "range": [ - 15312, - 15325 + 15265, + 15278 ], "loc": { "start": { - "line": 532, + "line": 529, "column": 4 }, "end": { - "line": 532, + "line": 529, "column": 17 } } @@ -17739,31 +17505,31 @@ "type": "Identifier", "name": "refreshed", "range": [ - 15326, - 15335 + 15279, + 15288 ], "loc": { "start": { - "line": 532, + "line": 529, "column": 18 }, "end": { - "line": 532, + "line": 529, "column": 27 } } }, "range": [ - 15312, - 15335 + 15265, + 15288 ], "loc": { "start": { - "line": 532, + "line": 529, "column": 4 }, "end": { - "line": 532, + "line": 529, "column": 27 } } @@ -17773,46 +17539,46 @@ "value": 1, "raw": "1", "range": [ - 15339, - 15340 + 15292, + 15293 ], "loc": { "start": { - "line": 532, + "line": 529, "column": 31 }, "end": { - "line": 532, + "line": 529, "column": 32 } } }, "range": [ - 15312, - 15340 + 15265, + 15293 ], "loc": { "start": { - "line": 532, + "line": 529, "column": 4 }, "end": { - "line": 532, + "line": 529, "column": 32 } } }, "range": [ - 15312, - 15341 + 15265, + 15294 ], "loc": { "start": { - "line": 532, + "line": 529, "column": 4 }, "end": { - "line": 532, + "line": 529, "column": 33 } } @@ -17827,16 +17593,16 @@ "object": { "type": "ThisExpression", "range": [ - 15347, - 15351 + 15300, + 15304 ], "loc": { "start": { - "line": 534, + "line": 531, "column": 4 }, "end": { - "line": 534, + "line": 531, "column": 8 } } @@ -17845,62 +17611,62 @@ "type": "Identifier", "name": "fetchStarted", "range": [ - 15352, - 15364 + 15305, + 15317 ], "loc": { "start": { - "line": 534, + "line": 531, "column": 9 }, "end": { - "line": 534, + "line": 531, "column": 21 } } }, "range": [ - 15347, - 15364 + 15300, + 15317 ], "loc": { "start": { - "line": 534, + "line": 531, "column": 4 }, "end": { - "line": 534, + "line": 531, "column": 21 } } }, "arguments": [], "range": [ - 15347, - 15366 + 15300, + 15319 ], "loc": { "start": { - "line": 534, + "line": 531, "column": 4 }, "end": { - "line": 534, + "line": 531, "column": 23 } } }, "range": [ - 15347, - 15367 + 15300, + 15320 ], "loc": { "start": { - "line": 534, + "line": 531, "column": 4 }, "end": { - "line": 534, + "line": 531, "column": 24 } } @@ -17915,16 +17681,16 @@ "object": { "type": "ThisExpression", "range": [ - 15372, - 15376 + 15325, + 15329 ], "loc": { "start": { - "line": 535, + "line": 532, "column": 4 }, "end": { - "line": 535, + "line": 532, "column": 8 } } @@ -17933,62 +17699,62 @@ "type": "Identifier", "name": "fetchEnded", "range": [ - 15377, - 15387 + 15330, + 15340 ], "loc": { "start": { - "line": 535, + "line": 532, "column": 9 }, "end": { - "line": 535, + "line": 532, "column": 19 } } }, "range": [ - 15372, - 15387 + 15325, + 15340 ], "loc": { "start": { - "line": 535, + "line": 532, "column": 4 }, "end": { - "line": 535, + "line": 532, "column": 19 } } }, "arguments": [], "range": [ - 15372, - 15389 + 15325, + 15342 ], "loc": { "start": { - "line": 535, + "line": 532, "column": 4 }, "end": { - "line": 535, + "line": 532, "column": 21 } } }, "range": [ - 15372, - 15390 + 15325, + 15343 ], "loc": { "start": { - "line": 535, + "line": 532, "column": 4 }, "end": { - "line": 535, + "line": 532, "column": 22 } } @@ -18003,16 +17769,16 @@ "object": { "type": "ThisExpression", "range": [ - 15395, - 15399 + 15348, + 15352 ], "loc": { "start": { - "line": 536, + "line": 533, "column": 4 }, "end": { - "line": 536, + "line": 533, "column": 8 } } @@ -18021,62 +17787,62 @@ "type": "Identifier", "name": "loaded", "range": [ - 15400, - 15406 + 15353, + 15359 ], "loc": { "start": { - "line": 536, + "line": 533, "column": 9 }, "end": { - "line": 536, + "line": 533, "column": 15 } } }, "range": [ - 15395, - 15406 + 15348, + 15359 ], "loc": { "start": { - "line": 536, + "line": 533, "column": 4 }, "end": { - "line": 536, + "line": 533, "column": 15 } } }, "arguments": [], "range": [ - 15395, - 15408 + 15348, + 15361 ], "loc": { "start": { - "line": 536, + "line": 533, "column": 4 }, "end": { - "line": 536, + "line": 533, "column": 17 } } }, "range": [ - 15395, - 15409 + 15348, + 15362 ], "loc": { "start": { - "line": 536, + "line": 533, "column": 4 }, "end": { - "line": 536, + "line": 533, "column": 18 } } @@ -18091,16 +17857,16 @@ "object": { "type": "ThisExpression", "range": [ - 15414, - 15418 + 15367, + 15371 ], "loc": { "start": { - "line": 537, + "line": 534, "column": 4 }, "end": { - "line": 537, + "line": 534, "column": 8 } } @@ -18109,62 +17875,62 @@ "type": "Identifier", "name": "renderStarted", "range": [ - 15419, - 15432 + 15372, + 15385 ], "loc": { "start": { - "line": 537, + "line": 534, "column": 9 }, "end": { - "line": 537, + "line": 534, "column": 22 } } }, "range": [ - 15414, - 15432 + 15367, + 15385 ], "loc": { "start": { - "line": 537, + "line": 534, "column": 4 }, "end": { - "line": 537, + "line": 534, "column": 22 } } }, "arguments": [], "range": [ - 15414, - 15434 + 15367, + 15387 ], "loc": { "start": { - "line": 537, + "line": 534, "column": 4 }, "end": { - "line": 537, + "line": 534, "column": 24 } } }, "range": [ - 15414, - 15435 + 15367, + 15388 ], "loc": { "start": { - "line": 537, + "line": 534, "column": 4 }, "end": { - "line": 537, + "line": 534, "column": 25 } } @@ -18179,16 +17945,16 @@ "object": { "type": "ThisExpression", "range": [ - 15440, - 15444 + 15393, + 15397 ], "loc": { "start": { - "line": 538, + "line": 535, "column": 4 }, "end": { - "line": 538, + "line": 535, "column": 8 } } @@ -18197,62 +17963,62 @@ "type": "Identifier", "name": "renderEnded", "range": [ - 15445, - 15456 + 15398, + 15409 ], "loc": { "start": { - "line": 538, + "line": 535, "column": 9 }, "end": { - "line": 538, + "line": 535, "column": 20 } } }, "range": [ - 15440, - 15456 + 15393, + 15409 ], "loc": { "start": { - "line": 538, + "line": 535, "column": 4 }, "end": { - "line": 538, + "line": 535, "column": 20 } } }, "arguments": [], "range": [ - 15440, - 15458 + 15393, + 15411 ], "loc": { "start": { - "line": 538, + "line": 535, "column": 4 }, "end": { - "line": 538, + "line": 535, "column": 22 } } }, "range": [ - 15440, - 15459 + 15393, + 15412 ], "loc": { "start": { - "line": 538, + "line": 535, "column": 4 }, "end": { - "line": 538, + "line": 535, "column": 23 } } @@ -18267,16 +18033,16 @@ "object": { "type": "ThisExpression", "range": [ - 15465, - 15469 + 15418, + 15422 ], "loc": { "start": { - "line": 540, + "line": 537, "column": 4 }, "end": { - "line": 540, + "line": 537, "column": 8 } } @@ -18285,62 +18051,62 @@ "type": "Identifier", "name": "impressionViewable", "range": [ - 15470, - 15488 + 15423, + 15441 ], "loc": { "start": { - "line": 540, + "line": 537, "column": 9 }, "end": { - "line": 540, + "line": 537, "column": 27 } } }, "range": [ - 15465, - 15488 + 15418, + 15441 ], "loc": { "start": { - "line": 540, + "line": 537, "column": 4 }, "end": { - "line": 540, + "line": 537, "column": 27 } } }, "arguments": [], "range": [ - 15465, - 15490 + 15418, + 15443 ], "loc": { "start": { - "line": 540, + "line": 537, "column": 4 }, "end": { - "line": 540, + "line": 537, "column": 29 } } }, "range": [ - 15465, - 15491 + 15418, + 15444 ], "loc": { "start": { - "line": 540, + "line": 537, "column": 4 }, "end": { - "line": 540, + "line": 537, "column": 30 } } @@ -18355,16 +18121,16 @@ "object": { "type": "ThisExpression", "range": [ - 15496, - 15500 + 15449, + 15453 ], "loc": { "start": { - "line": 541, + "line": 538, "column": 4 }, "end": { - "line": 541, + "line": 538, "column": 8 } } @@ -18373,31 +18139,31 @@ "type": "Identifier", "name": "visibilityChanged", "range": [ - 15501, - 15518 + 15454, + 15471 ], "loc": { "start": { - "line": 541, + "line": 538, "column": 9 }, "end": { - "line": 541, + "line": 538, "column": 26 } } }, "range": [ - 15496, - 15518 + 15449, + 15471 ], "loc": { "start": { - "line": 541, + "line": 538, "column": 4 }, "end": { - "line": 541, + "line": 538, "column": 26 } } @@ -18408,63 +18174,63 @@ "value": 100, "raw": "100", "range": [ - 15519, - 15522 + 15472, + 15475 ], "loc": { "start": { - "line": 541, + "line": 538, "column": 27 }, "end": { - "line": 541, + "line": 538, "column": 30 } } } ], "range": [ - 15496, - 15523 + 15449, + 15476 ], "loc": { "start": { - "line": 541, + "line": 538, "column": 4 }, "end": { - "line": 541, + "line": 538, "column": 31 } } }, "range": [ - 15496, - 15524 + 15449, + 15477 ], "loc": { "start": { - "line": 541, + "line": 538, "column": 4 }, "end": { - "line": 541, + "line": 538, "column": 32 } } } ], "range": [ - 15306, - 15528 + 15259, + 15481 ], "loc": { "start": { - "line": 531, + "line": 528, "column": 13 }, "end": { - "line": 542, + "line": 539, "column": 3 } } @@ -18472,16 +18238,16 @@ "generator": false, "expression": false, "range": [ - 15303, - 15528 + 15256, + 15481 ], "loc": { "start": { - "line": 531, + "line": 528, "column": 10 }, "end": { - "line": 542, + "line": 539, "column": 3 } } @@ -18489,16 +18255,16 @@ "kind": "method", "computed": false, "range": [ - 15295, - 15528 + 15248, + 15481 ], "loc": { "start": { - "line": 531, + "line": 528, "column": 2 }, "end": { - "line": 542, + "line": 539, "column": 3 } }, @@ -18507,16 +18273,16 @@ "type": "Block", "value": "*\n * Refreshes the {@link Slot}.\n *\n * @private\n ", "range": [ - 15231, - 15292 + 15184, + 15245 ], "loc": { "start": { - "line": 526, + "line": 523, "column": 2 }, "end": { - "line": 530, + "line": 527, "column": 5 } } @@ -18527,16 +18293,16 @@ "type": "Block", "value": "*\n * Clears the {@link Slot}.\n *\n * @private\n ", "range": [ - 15532, - 15590 + 15485, + 15543 ], "loc": { "start": { - "line": 544, + "line": 541, "column": 2 }, "end": { - "line": 548, + "line": 545, "column": 5 } } @@ -18550,16 +18316,16 @@ "type": "Identifier", "name": "_clear", "range": [ - 15593, - 15599 + 15546, + 15552 ], "loc": { "start": { - "line": 549, + "line": 546, "column": 2 }, "end": { - "line": 549, + "line": 546, "column": 8 } } @@ -18585,16 +18351,16 @@ "object": { "type": "ThisExpression", "range": [ - 15608, - 15612 + 15561, + 15565 ], "loc": { "start": { - "line": 550, + "line": 547, "column": 4 }, "end": { - "line": 550, + "line": 547, "column": 8 } } @@ -18603,31 +18369,31 @@ "type": "Identifier", "name": "_options", "range": [ - 15613, - 15621 + 15566, + 15574 ], "loc": { "start": { - "line": 550, + "line": 547, "column": 9 }, "end": { - "line": 550, + "line": 547, "column": 17 } } }, "range": [ - 15608, - 15621 + 15561, + 15574 ], "loc": { "start": { - "line": 550, + "line": 547, "column": 4 }, "end": { - "line": 550, + "line": 547, "column": 17 } } @@ -18636,31 +18402,31 @@ "type": "Identifier", "name": "content", "range": [ - 15622, - 15629 + 15575, + 15582 ], "loc": { "start": { - "line": 550, + "line": 547, "column": 18 }, "end": { - "line": 550, + "line": 547, "column": 25 } } }, "range": [ - 15608, - 15629 + 15561, + 15582 ], "loc": { "start": { - "line": 550, + "line": 547, "column": 4 }, "end": { - "line": 550, + "line": 547, "column": 25 } } @@ -18670,46 +18436,46 @@ "value": null, "raw": "null", "range": [ - 15632, - 15636 + 15585, + 15589 ], "loc": { "start": { - "line": 550, + "line": 547, "column": 28 }, "end": { - "line": 550, + "line": 547, "column": 32 } } }, "range": [ - 15608, - 15636 + 15561, + 15589 ], "loc": { "start": { - "line": 550, + "line": 547, "column": 4 }, "end": { - "line": 550, + "line": 547, "column": 32 } } }, "range": [ - 15608, - 15637 + 15561, + 15590 ], "loc": { "start": { - "line": 550, + "line": 547, "column": 4 }, "end": { - "line": 550, + "line": 547, "column": 33 } } @@ -18728,16 +18494,16 @@ "object": { "type": "ThisExpression", "range": [ - 15642, - 15646 + 15595, + 15599 ], "loc": { "start": { - "line": 551, + "line": 548, "column": 4 }, "end": { - "line": 551, + "line": 548, "column": 8 } } @@ -18746,31 +18512,31 @@ "type": "Identifier", "name": "_options", "range": [ - 15647, - 15655 + 15600, + 15608 ], "loc": { "start": { - "line": 551, + "line": 548, "column": 9 }, "end": { - "line": 551, + "line": 548, "column": 17 } } }, "range": [ - 15642, - 15655 + 15595, + 15608 ], "loc": { "start": { - "line": 551, + "line": 548, "column": 4 }, "end": { - "line": 551, + "line": 548, "column": 17 } } @@ -18779,31 +18545,31 @@ "type": "Identifier", "name": "fetched", "range": [ - 15656, - 15663 + 15609, + 15616 ], "loc": { "start": { - "line": 551, + "line": 548, "column": 18 }, "end": { - "line": 551, + "line": 548, "column": 25 } } }, "range": [ - 15642, - 15663 + 15595, + 15616 ], "loc": { "start": { - "line": 551, + "line": 548, "column": 4 }, "end": { - "line": 551, + "line": 548, "column": 25 } } @@ -18813,62 +18579,62 @@ "value": false, "raw": "false", "range": [ - 15666, - 15671 + 15619, + 15624 ], "loc": { "start": { - "line": 551, + "line": 548, "column": 28 }, "end": { - "line": 551, + "line": 548, "column": 33 } } }, "range": [ - 15642, - 15671 + 15595, + 15624 ], "loc": { "start": { - "line": 551, + "line": 548, "column": 4 }, "end": { - "line": 551, + "line": 548, "column": 33 } } }, "range": [ - 15642, - 15672 + 15595, + 15625 ], "loc": { "start": { - "line": 551, + "line": 548, "column": 4 }, "end": { - "line": 551, + "line": 548, "column": 34 } } } ], "range": [ - 15602, - 15676 + 15555, + 15629 ], "loc": { "start": { - "line": 549, + "line": 546, "column": 11 }, "end": { - "line": 552, + "line": 549, "column": 3 } } @@ -18876,16 +18642,16 @@ "generator": false, "expression": false, "range": [ - 15599, - 15676 + 15552, + 15629 ], "loc": { "start": { - "line": 549, + "line": 546, "column": 8 }, "end": { - "line": 552, + "line": 549, "column": 3 } } @@ -18893,16 +18659,16 @@ "kind": "method", "computed": false, "range": [ - 15593, - 15676 + 15546, + 15629 ], "loc": { "start": { - "line": 549, + "line": 546, "column": 2 }, "end": { - "line": 552, + "line": 549, "column": 3 } }, @@ -18911,16 +18677,16 @@ "type": "Block", "value": "*\n * Clears the {@link Slot}.\n *\n * @private\n ", "range": [ - 15532, - 15590 + 15485, + 15543 ], "loc": { "start": { - "line": 544, + "line": 541, "column": 2 }, "end": { - "line": 548, + "line": 545, "column": 5 } } @@ -18931,16 +18697,16 @@ "type": "Block", "value": "*\n * Sets the content of the {@link Slot}.\n *\n * @private\n * @param {?string} content The content to set; or null to clear the content.\n ", "range": [ - 15680, - 15831 + 15633, + 15784 ], "loc": { "start": { - "line": 554, + "line": 551, "column": 2 }, "end": { - "line": 559, + "line": 556, "column": 5 } } @@ -18954,16 +18720,16 @@ "type": "Identifier", "name": "_setContent", "range": [ - 15834, - 15845 + 15787, + 15798 ], "loc": { "start": { - "line": 560, + "line": 557, "column": 2 }, "end": { - "line": 560, + "line": 557, "column": 13 } } @@ -18976,16 +18742,16 @@ "type": "Identifier", "name": "content", "range": [ - 15846, - 15853 + 15799, + 15806 ], "loc": { "start": { - "line": 560, + "line": 557, "column": 14 }, "end": { - "line": 560, + "line": 557, "column": 21 } } @@ -19008,16 +18774,16 @@ "object": { "type": "ThisExpression", "range": [ - 15861, - 15865 + 15814, + 15818 ], "loc": { "start": { - "line": 561, + "line": 558, "column": 4 }, "end": { - "line": 561, + "line": 558, "column": 8 } } @@ -19026,31 +18792,31 @@ "type": "Identifier", "name": "_options", "range": [ - 15866, - 15874 + 15819, + 15827 ], "loc": { "start": { - "line": 561, + "line": 558, "column": 9 }, "end": { - "line": 561, + "line": 558, "column": 17 } } }, "range": [ - 15861, - 15874 + 15814, + 15827 ], "loc": { "start": { - "line": 561, + "line": 558, "column": 4 }, "end": { - "line": 561, + "line": 558, "column": 17 } } @@ -19059,31 +18825,31 @@ "type": "Identifier", "name": "content", "range": [ - 15875, - 15882 + 15828, + 15835 ], "loc": { "start": { - "line": 561, + "line": 558, "column": 18 }, "end": { - "line": 561, + "line": 558, "column": 25 } } }, "range": [ - 15861, - 15882 + 15814, + 15835 ], "loc": { "start": { - "line": 561, + "line": 558, "column": 4 }, "end": { - "line": 561, + "line": 558, "column": 25 } } @@ -19092,62 +18858,62 @@ "type": "Identifier", "name": "content", "range": [ - 15885, - 15892 + 15838, + 15845 ], "loc": { "start": { - "line": 561, + "line": 558, "column": 28 }, "end": { - "line": 561, + "line": 558, "column": 35 } } }, "range": [ - 15861, - 15892 + 15814, + 15845 ], "loc": { "start": { - "line": 561, + "line": 558, "column": 4 }, "end": { - "line": 561, + "line": 558, "column": 35 } } }, "range": [ - 15861, - 15893 + 15814, + 15846 ], "loc": { "start": { - "line": 561, + "line": 558, "column": 4 }, "end": { - "line": 561, + "line": 558, "column": 36 } } } ], "range": [ - 15855, - 15897 + 15808, + 15850 ], "loc": { "start": { - "line": 560, + "line": 557, "column": 23 }, "end": { - "line": 562, + "line": 559, "column": 3 } } @@ -19155,16 +18921,16 @@ "generator": false, "expression": false, "range": [ - 15845, - 15897 + 15798, + 15850 ], "loc": { "start": { - "line": 560, + "line": 557, "column": 13 }, "end": { - "line": 562, + "line": 559, "column": 3 } } @@ -19172,16 +18938,16 @@ "kind": "method", "computed": false, "range": [ - 15834, - 15897 + 15787, + 15850 ], "loc": { "start": { - "line": 560, + "line": 557, "column": 2 }, "end": { - "line": 562, + "line": 559, "column": 3 } }, @@ -19190,16 +18956,16 @@ "type": "Block", "value": "*\n * Sets the content of the {@link Slot}.\n *\n * @private\n * @param {?string} content The content to set; or null to clear the content.\n ", "range": [ - 15680, - 15831 + 15633, + 15784 ], "loc": { "start": { - "line": 554, + "line": 551, "column": 2 }, "end": { - "line": 559, + "line": 556, "column": 5 } } @@ -19210,16 +18976,16 @@ "type": "Block", "value": "*\n * Gets the content of the slot {@link Slot}.\n *\n * @private\n * @returns {?string} The content of the slot; or null if the slot has no content.\n ", "range": [ - 15901, - 16062 + 15854, + 16015 ], "loc": { "start": { - "line": 564, + "line": 561, "column": 2 }, "end": { - "line": 569, + "line": 566, "column": 5 } } @@ -19233,16 +18999,16 @@ "type": "Identifier", "name": "_getContent", "range": [ - 16065, - 16076 + 16018, + 16029 ], "loc": { "start": { - "line": 570, + "line": 567, "column": 2 }, "end": { - "line": 570, + "line": 567, "column": 13 } } @@ -19265,16 +19031,16 @@ "object": { "type": "ThisExpression", "range": [ - 16092, - 16096 + 16045, + 16049 ], "loc": { "start": { - "line": 571, + "line": 568, "column": 11 }, "end": { - "line": 571, + "line": 568, "column": 15 } } @@ -19283,31 +19049,31 @@ "type": "Identifier", "name": "_options", "range": [ - 16097, - 16105 + 16050, + 16058 ], "loc": { "start": { - "line": 571, + "line": 568, "column": 16 }, "end": { - "line": 571, + "line": 568, "column": 24 } } }, "range": [ - 16092, - 16105 + 16045, + 16058 ], "loc": { "start": { - "line": 571, + "line": 568, "column": 11 }, "end": { - "line": 571, + "line": 568, "column": 24 } } @@ -19316,62 +19082,62 @@ "type": "Identifier", "name": "content", "range": [ - 16106, - 16113 + 16059, + 16066 ], "loc": { "start": { - "line": 571, + "line": 568, "column": 25 }, "end": { - "line": 571, + "line": 568, "column": 32 } } }, "range": [ - 16092, - 16113 + 16045, + 16066 ], "loc": { "start": { - "line": 571, + "line": 568, "column": 11 }, "end": { - "line": 571, + "line": 568, "column": 32 } } }, "range": [ - 16085, - 16114 + 16038, + 16067 ], "loc": { "start": { - "line": 571, + "line": 568, "column": 4 }, "end": { - "line": 571, + "line": 568, "column": 33 } } } ], "range": [ - 16079, - 16118 + 16032, + 16071 ], "loc": { "start": { - "line": 570, + "line": 567, "column": 16 }, "end": { - "line": 572, + "line": 569, "column": 3 } } @@ -19379,16 +19145,16 @@ "generator": false, "expression": false, "range": [ - 16076, - 16118 + 16029, + 16071 ], "loc": { "start": { - "line": 570, + "line": 567, "column": 13 }, "end": { - "line": 572, + "line": 569, "column": 3 } } @@ -19396,16 +19162,16 @@ "kind": "method", "computed": false, "range": [ - 16065, - 16118 + 16018, + 16071 ], "loc": { "start": { - "line": 570, + "line": 567, "column": 2 }, "end": { - "line": 572, + "line": 569, "column": 3 } }, @@ -19414,16 +19180,16 @@ "type": "Block", "value": "*\n * Gets the content of the slot {@link Slot}.\n *\n * @private\n * @returns {?string} The content of the slot; or null if the slot has no content.\n ", "range": [ - 15901, - 16062 + 15854, + 16015 ], "loc": { "start": { - "line": 564, + "line": 561, "column": 2 }, "end": { - "line": 569, + "line": 566, "column": 5 } } @@ -19433,31 +19199,31 @@ } ], "range": [ - 500, - 16120 + 543, + 16073 ], "loc": { "start": { - "line": 12, + "line": 13, "column": 26 }, "end": { - "line": 573, + "line": 570, "column": 1 } } }, "range": [ - 489, - 16120 + 532, + 16073 ], "loc": { "start": { - "line": 12, + "line": 13, "column": 15 }, "end": { - "line": 573, + "line": 570, "column": 1 } }, @@ -19466,16 +19232,16 @@ "type": "Block", "value": "*\n * Slot is an object representing single ad slot on a page.\n ", "range": [ - 406, - 473 + 449, + 516 ], "loc": { "start": { - "line": 9, + "line": 10, "column": 0 }, "end": { - "line": 11, + "line": 12, "column": 3 } } @@ -19484,16 +19250,16 @@ "trailingComments": [] }, "range": [ - 474, - 16120 + 517, + 16073 ], "loc": { "start": { - "line": 12, + "line": 13, "column": 0 }, "end": { - "line": 573, + "line": 570, "column": 1 } }, @@ -19502,16 +19268,16 @@ "type": "Block", "value": "*\n * Slot is an object representing single ad slot on a page.\n ", "range": [ - 406, - 473 + 449, + 516 ], "loc": { "start": { - "line": 9, + "line": 10, "column": 0 }, "end": { - "line": 11, + "line": 12, "column": 3 } } @@ -19522,7 +19288,7 @@ "sourceType": "module", "range": [ 0, - 16120 + 16073 ], "loc": { "start": { @@ -19530,7 +19296,7 @@ "column": 0 }, "end": { - "line": 573, + "line": 570, "column": 1 } }, @@ -19539,16 +19305,16 @@ "type": "Block", "value": "*\n * Slot is an object representing single ad slot on a page.\n ", "range": [ - 406, - 473 + 449, + 516 ], "loc": { "start": { - "line": 9, + "line": 10, "column": 0 }, "end": { - "line": 11, + "line": 12, "column": 3 } } @@ -19557,16 +19323,16 @@ "type": "Block", "value": "*\n * Creates a new {@link Slot}.\n *\n * @param {string} adUnitPath Full path of the ad unit with the network code and unit code.\n * @param {GeneralSize} [size] Width and height of the added slot. This is the\n * size that is used in the ad request if no responsive size mapping is provided\n * or the size of the viewport is smaller than the smallest size provided in the mapping.\n * @param {string} [optDiv] ID of the div that will contain this ad unit.\n * @param {number} [instance = 0] The instance count of the slot.\n ", "range": [ - 504, - 1045 + 547, + 1088 ], "loc": { "start": { - "line": 13, + "line": 14, "column": 2 }, "end": { - "line": 22, + "line": 23, "column": 5 } } @@ -19575,16 +19341,16 @@ "type": "Block", "value": "*\n * Returns the name of the slot\n *\n * @experimental\n * @returns {string} Ad unit path.\n ", "range": [ - 1706, - 1810 + 1765, + 1869 ], "loc": { "start": { - "line": 47, + "line": 48, "column": 2 }, "end": { - "line": 52, + "line": 53, "column": 5 } } @@ -19593,16 +19359,16 @@ "type": "Block", "value": "*\n * Returns the instance of the {@link Slot}.\n *\n * @experimental\n * @returns {number} The instance\n ", "range": [ - 1863, - 1979 + 1922, + 2038 ], "loc": { "start": { - "line": 57, + "line": 58, "column": 2 }, "end": { - "line": 62, + "line": 63, "column": 5 } } @@ -19611,16 +19377,16 @@ "type": "Block", "value": "*\n * Returns the full path of the ad unit, with the network code and ad unit path.\n *\n * @returns {string} Ad unit path.\n ", "range": [ - 2041, - 2175 + 2100, + 2234 ], "loc": { "start": { - "line": 67, + "line": 68, "column": 2 }, "end": { - "line": 71, + "line": 72, "column": 5 } } @@ -19629,16 +19395,16 @@ "type": "Block", "value": "*\n * Returns the id of the slot element provided when the {@link Slot} was defined.\n *\n * @returns {string} Slot element id.\n ", "range": [ - 2240, - 2378 + 2299, + 2437 ], "loc": { "start": { - "line": 76, + "line": 77, "column": 2 }, "end": { - "line": 80, + "line": 81, "column": 5 } } @@ -19647,16 +19413,16 @@ "type": "Block", "value": "*\n * Returns the enabled services.\n *\n * @experimental\n * @returns {Array} The list of enabled services.\n ", "range": [ - 2441, - 2570 + 2500, + 2629 ], "loc": { "start": { - "line": 85, + "line": 86, "column": 2 }, "end": { - "line": 90, + "line": 91, "column": 5 } } @@ -19665,16 +19431,16 @@ "type": "Block", "value": "*\n * Returns the sizes.\n *\n * @experimental\n * @returns {Array} The list of sizes.\n ", "range": [ - 2632, - 2743 + 2691, + 2802 ], "loc": { "start": { - "line": 95, + "line": 96, "column": 2 }, "end": { - "line": 100, + "line": 101, "column": 5 } } @@ -19683,16 +19449,16 @@ "type": "Block", "value": "*\n * Returns a flag indicating whether the {@link Slot} is out of the page.\n *\n * @experimental\n * @returns {boolean}\n ", "range": [ - 2799, - 2932 + 2858, + 2991 ], "loc": { "start": { - "line": 105, + "line": 106, "column": 2 }, "end": { - "line": 110, + "line": 111, "column": 5 } } @@ -19701,16 +19467,16 @@ "type": "Block", "value": "*\n * Initiates rendering of this slot.\n ", "range": [ - 2995, - 3043 + 3054, + 3102 ], "loc": { "start": { - "line": 115, + "line": 116, "column": 2 }, "end": { - "line": 117, + "line": 118, "column": 5 } } @@ -19719,16 +19485,16 @@ "type": "Block", "value": "*\n * Returns the list of attribute keys set on this slot. If you intend to see\n * the keys of service-level attributes inherited by this {@link Slot}, you have to\n * use the {@link PubAdsService#getAttributeKeys} API.\n *\n * @returns {!Array} Array of attribute keys. Ordering is undefined.\n ", "range": [ - 3303, - 3618 + 3362, + 3677 ], "loc": { "start": { - "line": 131, + "line": 132, "column": 2 }, "end": { - "line": 137, + "line": 138, "column": 5 } } @@ -19737,16 +19503,16 @@ "type": "Block", "value": "*\n * Returns the value for the AdSense attribute associated with the given key.\n * Note that if you intend to see service-level attributes inherited by this\n * slot, you have to use the {@link PubAdsService#get} API.\n *\n * @param {string} key Name of the attribute to look for.\n * @returns {?string} Current value for the attribute key, or null if the key\n * is not present.\n ", "range": [ - 3691, - 4087 + 3750, + 4146 ], "loc": { "start": { - "line": 142, + "line": 143, "column": 2 }, "end": { - "line": 150, + "line": 151, "column": 5 } } @@ -19755,16 +19521,16 @@ "type": "Block", "value": "*\n * Sets a value for an AdSense attribute on a particular ad slot. This will\n * override any values set at the service level for this key. See the AdSense\n * Attributes for a list of available keys and values. Calling this method\n * more than once for the same key will override previously set values for\n * that key. All values must be set before any display call.\n *\n * @param {string} key The name of the attribute.\n * @param {string} value Attribute value.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n ", "range": [ - 4150, - 4712 + 4209, + 4771 ], "loc": { "start": { - "line": 155, + "line": 156, "column": 2 }, "end": { - "line": 165, + "line": 166, "column": 5 } } @@ -19773,16 +19539,16 @@ "type": "Block", "value": "*\n * Return the attribute map.\n *\n * @private\n * @returns {Object} The attribute map\n ", "range": [ - 4792, - 4908 + 4851, + 4967 ], "loc": { "start": { - "line": 171, + "line": 172, "column": 2 }, "end": { - "line": 176, + "line": 177, "column": 5 } } @@ -19791,70 +19557,70 @@ "type": "Block", "value": "*\n * Returns a specific custom targeting parameter set on this slot.\n * Service-level targeting parameters are not included.\n *\n * @param {string} key The targeting key to look for.\n * @returns {!Array} The values associated with this key, or an empty\n * array if there is no such key.\n ", "range": [ - 4985, - 5298 + 5044, + 5357 ], "loc": { "start": { - "line": 181, + "line": 182, "column": 2 }, "end": { - "line": 188, + "line": 189, "column": 5 } } }, { "type": "Block", - "value": "*\n * Returns the list of all custom targeting keys set on this slot. Service-level\n * targeting keys are not included.\n *\n * @returns {!Array} Array of targeting keys. Ordering is undefined.\n ", + "value": "*\n * Sets a custom targeting parameter for this slot. Calling this method\n * multiple times for the same key will overwrite old values. Values set here\n * will overwrite targeting parameters set on service level. These keys are\n * defined in your {@link DFP} account.\n *\n * @param {string} key Targeting parameter key.\n * @param {string|!Array} value Targeting parameter value or array of values.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n ", "range": [ - 5367, - 5581 + 5424, + 5927 ], "loc": { "start": { - "line": 193, + "line": 194, "column": 2 }, "end": { - "line": 198, + "line": 203, "column": 5 } } }, { "type": "Block", - "value": "*\n * Sets a custom targeting parameter for this slot. Calling this method\n * multiple times for the same key will overwrite old values. Values set here\n * will overwrite targeting parameters set on service level. These keys are\n * defined in your {@link DFP} account.\n *\n * @param {string} key Targeting parameter key.\n * @param {string|!Array} value Targeting parameter value or array of values.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n ", + "value": "*\n * Returns the list of all custom targeting keys set on this slot. Service-level\n * targeting keys are not included.\n *\n * @returns {!Array} Array of targeting keys. Ordering is undefined.\n ", "range": [ - 5653, - 6156 + 6018, + 6232 ], "loc": { "start": { - "line": 203, + "line": 209, "column": 2 }, "end": { - "line": 212, + "line": 214, "column": 5 } } }, { "type": "Block", - "value": "*\n * Sets custom targeting parameters for this passback slot, from a key:value\n * map in a JSON object. A badly formatted input will be rejected. This is the\n * same as calling @{link Slot#setTargeting} for all the key values\n * of the object. In case of overwriting, only the last value will be kept.\n * Values set here will overwrite targeting parameters set on service level.\n * These keys are defined in your {@link DFP} account.\n *\n * @param {Object>} map Targeting parameter key:value map.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n ", + "value": "*\n * Returns the current targeting key-value dictionary.\n *\n * @experimental\n * @returns {Object>} the targeting map.\n ", "range": [ - 6335, - 6960 + 6298, + 6453 ], "loc": { "start": { - "line": 222, + "line": 219, "column": 2 }, "end": { - "line": 232, + "line": 224, "column": 5 } } @@ -19863,34 +19629,34 @@ "type": "Block", "value": "*\n * Clears all custom slot-level targeting parameters for this slot.\n *\n * @returns {Slot} The {@link Slot} object on which the method was called.\n ", "range": [ - 7137, - 7298 + 6517, + 6678 ], "loc": { "start": { - "line": 242, + "line": 229, "column": 2 }, "end": { - "line": 246, + "line": 233, "column": 5 } } }, { "type": "Block", - "value": "*\n * Returns the current targeting key-value dictionary.\n *\n * @experimental\n * @returns {Object>} the targeting map.\n ", + "value": "*\n * Sets custom targeting parameters for this passback slot, from a key:value\n * map in a JSON object. A badly formatted input will be rejected. This is the\n * same as calling @{link Slot#setTargeting} for all the key values\n * of the object. In case of overwriting, only the last value will be kept.\n * Values set here will overwrite targeting parameters set on service level.\n * These keys are defined in your {@link DFP} account.\n *\n * @param {Object>} map Targeting parameter key:value map.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n ", "range": [ - 7370, - 7525 + 6753, + 7378 ], "loc": { "start": { - "line": 252, + "line": 239, "column": 2 }, "end": { - "line": 257, + "line": 249, "column": 5 } } @@ -19899,16 +19665,16 @@ "type": "Block", "value": "*\n * Adds a service to this slot.\n *\n * @param {Service} service The service to be added.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n ", "range": [ - 7602, - 7782 + 7555, + 7735 ], "loc": { "start": { - "line": 262, + "line": 259, "column": 2 }, "end": { - "line": 267, + "line": 264, "column": 5 } } @@ -19917,16 +19683,16 @@ "type": "Block", "value": "*\n * Removes all of the services from the slot.\n *\n * @private\n ", "range": [ - 7953, - 8029 + 7906, + 7982 ], "loc": { "start": { - "line": 276, + "line": 273, "column": 2 }, "end": { - "line": 280, + "line": 277, "column": 5 } } @@ -19935,16 +19701,16 @@ "type": "Block", "value": "*\n * Returns the ad category exclusion labels for this slot.\n *\n * @returns {!Array} The ad category exclusion labels for this slot.\n ", "range": [ - 8166, - 8320 + 8119, + 8273 ], "loc": { "start": { - "line": 289, + "line": 286, "column": 2 }, "end": { - "line": 293, + "line": 290, "column": 5 } } @@ -19953,16 +19719,16 @@ "type": "Block", "value": "*\n * Sets a slot-level ad category exclusion label on this slot.\n *\n * @param {string} categoryExclusion The ad category exclusion label to add.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n ", "range": [ - 8402, - 8637 + 8355, + 8590 ], "loc": { "start": { - "line": 298, + "line": 295, "column": 2 }, "end": { - "line": 303, + "line": 300, "column": 5 } } @@ -19971,16 +19737,16 @@ "type": "Block", "value": "*\n * Clears all slot-level ad category exclusion labels for this slot.\n *\n * @returns {Slot} The {@link Slot} object on which the method was called.\n ", "range": [ - 8760, - 8922 + 8713, + 8875 ], "loc": { "start": { - "line": 309, + "line": 306, "column": 2 }, "end": { - "line": 313, + "line": 310, "column": 5 } } @@ -19989,16 +19755,16 @@ "type": "Block", "value": "*\n * Sets an array of mappings from a minimum viewport size to slot size for this slot.\n *\n * @param {!SizeMappingArray} sizeMapping Array of size mappings. You can use\n * {@link SizeMappingBuilder} to create it. Each size mapping is an array of two elements:\n * {@link SingleSizeArray} and {@link GeneralSize}.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n * @throws {Error} Size mapping has to be an array\n ", "range": [ - 9012, - 9471 + 8965, + 9424 ], "loc": { "start": { - "line": 319, + "line": 316, "column": 2 }, "end": { - "line": 327, + "line": 324, "column": 5 } } @@ -20007,16 +19773,16 @@ "type": "Block", "value": "*\n * Sets the click URL to which users will be redirected after clicking on the\n * ad. The {@link DFP} servers still record a click even if the click URL is replaced,\n * but any landing page URL associated with the creative that is served is\n * overridden. Subsequent calls overwrite the value. This works only for\n * non-SRA requests\n *\n * @param {string} value The click URL to set.\n * @returns {Slot} The slot object on which the method was called.\n ", "range": [ - 9691, - 10166 + 9644, + 10119 ], "loc": { "start": { - "line": 338, + "line": 335, "column": 2 }, "end": { - "line": 347, + "line": 344, "column": 5 } } @@ -20025,16 +19791,16 @@ "type": "Block", "value": "*\n * Gets the click URL.\n *\n * @experimental\n * @returns {?string} The click URL\n ", "range": [ - 10242, - 10338 + 10195, + 10291 ], "loc": { "start": { - "line": 353, + "line": 350, "column": 2 }, "end": { - "line": 358, + "line": 355, "column": 5 } } @@ -20043,16 +19809,16 @@ "type": "Block", "value": "*\n * Returns the ad response information. This is based on the last ad response\n * for the slot. If this is called when the slot has no ad, null will be\n * returned.\n *\n * @returns {?ResponseInformation}\n ", "range": [ - 10391, - 10612 + 10344, + 10565 ], "loc": { "start": { - "line": 363, + "line": 360, "column": 2 }, "end": { - "line": 369, + "line": 366, "column": 5 } } @@ -20061,16 +19827,16 @@ "type": "Block", "value": "*\n * Sets whether the slot div should be hidden when there is no ad in the slot.\n * This overrides the service-level settings.\n *\n * @param {boolean} collapse Whether to collapse the slot if no ad is returned.\n * @param {boolean} [optCollapseBeforeAdFetch] Whether to collapse the slot\n * even before an ad is fetched. Ignored if collapse is not true.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n ", "range": [ - 10687, - 11135 + 10640, + 11088 ], "loc": { "start": { - "line": 374, + "line": 371, "column": 2 }, "end": { - "line": 382, + "line": 379, "column": 5 } } @@ -20079,16 +19845,16 @@ "type": "Block", "value": "*\n * Returns whether the slot div should be hiddne when there is no ad in the slot.\n *\n * @experimental\n * @returns {boolean} true to collapse the slot if no ad is returned.\n ", "range": [ - 11363, - 11552 + 11316, + 11505 ], "loc": { "start": { - "line": 391, + "line": 388, "column": 2 }, "end": { - "line": 396, + "line": 393, "column": 5 } } @@ -20097,16 +19863,16 @@ "type": "Block", "value": "*\n * Configures whether ads in this slot should be forced to be rendered using\n * a SafeFrame container\n *\n * @param {boolean} forceSafeFrame true to force all ads in this slot to be\n * rendered in SafeFrames and false to opt-out of a page-level setting (if\n * present). Setting this to false when not specified at page-level, won't\n * change anything.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n ", "range": [ - 11629, - 12080 + 11582, + 12033 ], "loc": { "start": { - "line": 401, + "line": 398, "column": 2 }, "end": { - "line": 410, + "line": 407, "column": 5 } } @@ -20115,16 +19881,16 @@ "type": "Block", "value": "*\n * Sets the slot-level preferences for SafeFrame configuration. Any unrecognized\n * keys in the config object will be ignored. The entire config will be ignored\n * if an invalid value is passed for a recognized key. These slot level\n * preferences, if specified, will override any page level preferences.\n *\n * @param {SafeFrameConfig} config The configuration object.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n ", "range": [ - 12194, - 12661 + 12147, + 12614 ], "loc": { "start": { - "line": 416, + "line": 413, "column": 2 }, "end": { - "line": 424, + "line": 421, "column": 5 } } @@ -20133,16 +19899,16 @@ "type": "Block", "value": "*\n * Informs the {@link Slot} that its fetch has started.\n *\n * @experimental\n ", "range": [ - 12761, - 12852 + 12714, + 12805 ], "loc": { "start": { - "line": 430, + "line": 427, "column": 2 }, "end": { - "line": 434, + "line": 431, "column": 5 } } @@ -20151,16 +19917,16 @@ "type": "Block", "value": "*\n * Informs the {@link Slot} that its fetch has finished.\n *\n * @experimental\n ", "range": [ - 12914, - 13006 + 12867, + 12959 ], "loc": { "start": { - "line": 439, + "line": 436, "column": 2 }, "end": { - "line": 443, + "line": 440, "column": 5 } } @@ -20169,16 +19935,16 @@ "type": "Block", "value": "*\n * Informs the {@link Slot} that it has been loaded.\n *\n * @experimental\n * @emits {SlotOnloadEvent}\n ", "range": [ - 13065, - 13183 + 13018, + 13136 ], "loc": { "start": { - "line": 448, + "line": 445, "column": 2 }, "end": { - "line": 453, + "line": 450, "column": 5 } } @@ -20187,16 +19953,16 @@ "type": "Block", "value": "*\n * Informs the {@link Slot} that its rendering has started.\n *\n * @experimental\n ", "range": [ - 13364, - 13459 + 13317, + 13412 ], "loc": { "start": { - "line": 461, + "line": 458, "column": 2 }, "end": { - "line": 465, + "line": 462, "column": 5 } } @@ -20205,16 +19971,16 @@ "type": "Block", "value": "*\n * Informs the {@link Slot} that its rendering has finished.\n *\n * @experimental\n * @param {?ResponseInformation} [responseInformation] The response information.\n * @emits {SlotRenderEndedEvent}\n ", "range": [ - 13524, - 13738 + 13477, + 13691 ], "loc": { "start": { - "line": 470, + "line": 467, "column": 2 }, "end": { - "line": 476, + "line": 473, "column": 5 } } @@ -20223,16 +19989,16 @@ "type": "Block", "value": "*\n * Notifies the {@link Slot} that it's impression is viewable.\n *\n * @emits {ImpressionViewableEvent}\n ", "range": [ - 14333, - 14450 + 14286, + 14403 ], "loc": { "start": { - "line": 497, + "line": 494, "column": 2 }, "end": { - "line": 501, + "line": 498, "column": 5 } } @@ -20241,16 +20007,16 @@ "type": "Block", "value": "*\n * Notifies the {@link Slot} of its in view percentage.\n *\n * @param {number} inViewPercentage The percentage (0-100) of the ad's area that is visible.\n * @emits {SlotVisibilityChangedEvent}\n ", "range": [ - 14652, - 14860 + 14605, + 14813 ], "loc": { "start": { - "line": 510, + "line": 507, "column": 2 }, "end": { - "line": 515, + "line": 512, "column": 5 } } @@ -20259,16 +20025,16 @@ "type": "Block", "value": "*\n * Refreshes the {@link Slot}.\n *\n * @private\n ", "range": [ - 15231, - 15292 + 15184, + 15245 ], "loc": { "start": { - "line": 526, + "line": 523, "column": 2 }, "end": { - "line": 530, + "line": 527, "column": 5 } } @@ -20277,16 +20043,16 @@ "type": "Block", "value": "*\n * Clears the {@link Slot}.\n *\n * @private\n ", "range": [ - 15532, - 15590 + 15485, + 15543 ], "loc": { "start": { - "line": 544, + "line": 541, "column": 2 }, "end": { - "line": 548, + "line": 545, "column": 5 } } @@ -20295,16 +20061,16 @@ "type": "Block", "value": "*\n * Sets the content of the {@link Slot}.\n *\n * @private\n * @param {?string} content The content to set; or null to clear the content.\n ", "range": [ - 15680, - 15831 + 15633, + 15784 ], "loc": { "start": { - "line": 554, + "line": 551, "column": 2 }, "end": { - "line": 559, + "line": 556, "column": 5 } } @@ -20313,16 +20079,16 @@ "type": "Block", "value": "*\n * Gets the content of the slot {@link Slot}.\n *\n * @private\n * @returns {?string} The content of the slot; or null if the slot has no content.\n ", "range": [ - 15901, - 16062 + 15854, + 16015 ], "loc": { "start": { - "line": 564, + "line": 561, "column": 2 }, "end": { - "line": 569, + "line": 566, "column": 5 } } diff --git a/docs/ast/source/TargetingMap.js.json b/docs/ast/source/TargetingMap.js.json new file mode 100644 index 0000000..bcf0dae --- /dev/null +++ b/docs/ast/source/TargetingMap.js.json @@ -0,0 +1,2366 @@ +{ + "type": "Program", + "body": [ + { + "type": "ExportDefaultDeclaration", + "declaration": { + "type": "ClassDeclaration", + "id": { + "type": "Identifier", + "name": "TargetingMap", + "range": [ + 94, + 106 + ], + "loc": { + "start": { + "line": 6, + "column": 21 + }, + "end": { + "line": 6, + "column": 33 + } + } + }, + "superClass": null, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "constructor", + "range": [ + 173, + 184 + ], + "loc": { + "start": { + "line": 10, + "column": 2 + }, + "end": { + "line": 10, + "column": 13 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 193, + 197 + ], + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "name": "_targeting", + "range": [ + 198, + 208 + ], + "loc": { + "start": { + "line": 11, + "column": 9 + }, + "end": { + "line": 11, + "column": 19 + } + } + }, + "range": [ + 193, + 208 + ], + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 19 + } + } + }, + "right": { + "type": "ObjectExpression", + "properties": [], + "range": [ + 211, + 213 + ], + "loc": { + "start": { + "line": 11, + "column": 22 + }, + "end": { + "line": 11, + "column": 24 + } + } + }, + "range": [ + 193, + 213 + ], + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 24 + } + } + }, + "range": [ + 193, + 214 + ], + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 25 + } + } + } + ], + "range": [ + 187, + 218 + ], + "loc": { + "start": { + "line": 10, + "column": 16 + }, + "end": { + "line": 12, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 184, + 218 + ], + "loc": { + "start": { + "line": 10, + "column": 13 + }, + "end": { + "line": 12, + "column": 3 + } + } + }, + "kind": "constructor", + "computed": false, + "range": [ + 173, + 218 + ], + "loc": { + "start": { + "line": 10, + "column": 2 + }, + "end": { + "line": 12, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Creates a new {@link TargetingMap} instance.\n ", + "range": [ + 111, + 170 + ], + "loc": { + "start": { + "line": 7, + "column": 2 + }, + "end": { + "line": 9, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Sets custom targeting parameters for a given key.\n *\n * @param {string} key Targeting parameter key.\n * @param {string|!Array} value Targeting parameter value or array of values.\n ", + "range": [ + 222, + 429 + ], + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 19, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "set", + "range": [ + 432, + 435 + ], + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 20, + "column": 5 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 436, + 439 + ], + "loc": { + "start": { + "line": 20, + "column": 6 + }, + "end": { + "line": 20, + "column": 9 + } + } + }, + { + "type": "Identifier", + "name": "value", + "range": [ + 441, + 446 + ], + "loc": { + "start": { + "line": 20, + "column": 11 + }, + "end": { + "line": 20, + "column": 16 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Array", + "range": [ + 458, + 463 + ], + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "name": "isArray", + "range": [ + 464, + 471 + ], + "loc": { + "start": { + "line": 21, + "column": 14 + }, + "end": { + "line": 21, + "column": 21 + } + } + }, + "range": [ + 458, + 471 + ], + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 21 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "value", + "range": [ + 472, + 477 + ], + "loc": { + "start": { + "line": 21, + "column": 22 + }, + "end": { + "line": 21, + "column": 27 + } + } + } + ], + "range": [ + 458, + 478 + ], + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 28 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 488, + 492 + ], + "loc": { + "start": { + "line": 22, + "column": 6 + }, + "end": { + "line": 22, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "_targeting", + "range": [ + 493, + 503 + ], + "loc": { + "start": { + "line": 22, + "column": 11 + }, + "end": { + "line": 22, + "column": 21 + } + } + }, + "range": [ + 488, + 503 + ], + "loc": { + "start": { + "line": 22, + "column": 6 + }, + "end": { + "line": 22, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "name": "key", + "range": [ + 504, + 507 + ], + "loc": { + "start": { + "line": 22, + "column": 22 + }, + "end": { + "line": 22, + "column": 25 + } + } + }, + "range": [ + 488, + 508 + ], + "loc": { + "start": { + "line": 22, + "column": 6 + }, + "end": { + "line": 22, + "column": 26 + } + } + }, + "right": { + "type": "Identifier", + "name": "value", + "range": [ + 511, + 516 + ], + "loc": { + "start": { + "line": 22, + "column": 29 + }, + "end": { + "line": 22, + "column": 34 + } + } + }, + "range": [ + 488, + 516 + ], + "loc": { + "start": { + "line": 22, + "column": 6 + }, + "end": { + "line": 22, + "column": 34 + } + } + }, + "range": [ + 488, + 517 + ], + "loc": { + "start": { + "line": 22, + "column": 6 + }, + "end": { + "line": 22, + "column": 35 + } + } + } + ], + "range": [ + 480, + 523 + ], + "loc": { + "start": { + "line": 21, + "column": 30 + }, + "end": { + "line": 23, + "column": 5 + } + } + }, + "alternate": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 537, + 541 + ], + "loc": { + "start": { + "line": 24, + "column": 6 + }, + "end": { + "line": 24, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "_targeting", + "range": [ + 542, + 552 + ], + "loc": { + "start": { + "line": 24, + "column": 11 + }, + "end": { + "line": 24, + "column": 21 + } + } + }, + "range": [ + 537, + 552 + ], + "loc": { + "start": { + "line": 24, + "column": 6 + }, + "end": { + "line": 24, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "name": "key", + "range": [ + 553, + 556 + ], + "loc": { + "start": { + "line": 24, + "column": 22 + }, + "end": { + "line": 24, + "column": 25 + } + } + }, + "range": [ + 537, + 557 + ], + "loc": { + "start": { + "line": 24, + "column": 6 + }, + "end": { + "line": 24, + "column": 26 + } + } + }, + "right": { + "type": "ArrayExpression", + "elements": [ + { + "type": "Identifier", + "name": "value", + "range": [ + 561, + 566 + ], + "loc": { + "start": { + "line": 24, + "column": 30 + }, + "end": { + "line": 24, + "column": 35 + } + } + } + ], + "range": [ + 560, + 567 + ], + "loc": { + "start": { + "line": 24, + "column": 29 + }, + "end": { + "line": 24, + "column": 36 + } + } + }, + "range": [ + 537, + 567 + ], + "loc": { + "start": { + "line": 24, + "column": 6 + }, + "end": { + "line": 24, + "column": 36 + } + } + }, + "range": [ + 537, + 568 + ], + "loc": { + "start": { + "line": 24, + "column": 6 + }, + "end": { + "line": 24, + "column": 37 + } + } + } + ], + "range": [ + 529, + 574 + ], + "loc": { + "start": { + "line": 23, + "column": 11 + }, + "end": { + "line": 25, + "column": 5 + } + } + }, + "range": [ + 454, + 574 + ], + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 25, + "column": 5 + } + } + } + ], + "range": [ + 448, + 578 + ], + "loc": { + "start": { + "line": 20, + "column": 18 + }, + "end": { + "line": 26, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 435, + 578 + ], + "loc": { + "start": { + "line": 20, + "column": 5 + }, + "end": { + "line": 26, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 432, + 578 + ], + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 26, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Sets custom targeting parameters for a given key.\n *\n * @param {string} key Targeting parameter key.\n * @param {string|!Array} value Targeting parameter value or array of values.\n ", + "range": [ + 222, + 429 + ], + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 19, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Returns a specific targeting parameter that has been set.\n *\n * @param {string} key The targeting key to look for.\n * @returns {!Array} The values associated with this key, or an empty\n * array if there is no such key.\n ", + "range": [ + 582, + 831 + ], + "loc": { + "start": { + "line": 28, + "column": 2 + }, + "end": { + "line": 34, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "get", + "range": [ + 834, + 837 + ], + "loc": { + "start": { + "line": 35, + "column": 2 + }, + "end": { + "line": 35, + "column": 5 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 838, + 841 + ], + "loc": { + "start": { + "line": 35, + "column": 6 + }, + "end": { + "line": 35, + "column": 9 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "LogicalExpression", + "operator": "||", + "left": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 856, + 860 + ], + "loc": { + "start": { + "line": 36, + "column": 11 + }, + "end": { + "line": 36, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "name": "_targeting", + "range": [ + 861, + 871 + ], + "loc": { + "start": { + "line": 36, + "column": 16 + }, + "end": { + "line": 36, + "column": 26 + } + } + }, + "range": [ + 856, + 871 + ], + "loc": { + "start": { + "line": 36, + "column": 11 + }, + "end": { + "line": 36, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "key", + "range": [ + 872, + 875 + ], + "loc": { + "start": { + "line": 36, + "column": 27 + }, + "end": { + "line": 36, + "column": 30 + } + } + }, + "range": [ + 856, + 876 + ], + "loc": { + "start": { + "line": 36, + "column": 11 + }, + "end": { + "line": 36, + "column": 31 + } + } + }, + "right": { + "type": "ArrayExpression", + "elements": [], + "range": [ + 880, + 882 + ], + "loc": { + "start": { + "line": 36, + "column": 35 + }, + "end": { + "line": 36, + "column": 37 + } + } + }, + "range": [ + 856, + 882 + ], + "loc": { + "start": { + "line": 36, + "column": 11 + }, + "end": { + "line": 36, + "column": 37 + } + } + }, + "range": [ + 849, + 883 + ], + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 36, + "column": 38 + } + } + } + ], + "range": [ + 843, + 887 + ], + "loc": { + "start": { + "line": 35, + "column": 11 + }, + "end": { + "line": 37, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 837, + 887 + ], + "loc": { + "start": { + "line": 35, + "column": 5 + }, + "end": { + "line": 37, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 834, + 887 + ], + "loc": { + "start": { + "line": 35, + "column": 2 + }, + "end": { + "line": 37, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Returns a specific targeting parameter that has been set.\n *\n * @param {string} key The targeting key to look for.\n * @returns {!Array} The values associated with this key, or an empty\n * array if there is no such key.\n ", + "range": [ + 582, + 831 + ], + "loc": { + "start": { + "line": 28, + "column": 2 + }, + "end": { + "line": 34, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Returns the list of all targeting keys that have been set.\n *\n * @returns {!Array} Array of targeting keys. Ordering is undefined.\n ", + "range": [ + 891, + 1048 + ], + "loc": { + "start": { + "line": 39, + "column": 2 + }, + "end": { + "line": 43, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "keys", + "range": [ + 1051, + 1055 + ], + "loc": { + "start": { + "line": 44, + "column": 2 + }, + "end": { + "line": 44, + "column": 6 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Object", + "range": [ + 1071, + 1077 + ], + "loc": { + "start": { + "line": 45, + "column": 11 + }, + "end": { + "line": 45, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "keys", + "range": [ + 1078, + 1082 + ], + "loc": { + "start": { + "line": 45, + "column": 18 + }, + "end": { + "line": 45, + "column": 22 + } + } + }, + "range": [ + 1071, + 1082 + ], + "loc": { + "start": { + "line": 45, + "column": 11 + }, + "end": { + "line": 45, + "column": 22 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1083, + 1087 + ], + "loc": { + "start": { + "line": 45, + "column": 23 + }, + "end": { + "line": 45, + "column": 27 + } + } + }, + "property": { + "type": "Identifier", + "name": "_targeting", + "range": [ + 1088, + 1098 + ], + "loc": { + "start": { + "line": 45, + "column": 28 + }, + "end": { + "line": 45, + "column": 38 + } + } + }, + "range": [ + 1083, + 1098 + ], + "loc": { + "start": { + "line": 45, + "column": 23 + }, + "end": { + "line": 45, + "column": 38 + } + } + } + ], + "range": [ + 1071, + 1099 + ], + "loc": { + "start": { + "line": 45, + "column": 11 + }, + "end": { + "line": 45, + "column": 39 + } + } + }, + "range": [ + 1064, + 1100 + ], + "loc": { + "start": { + "line": 45, + "column": 4 + }, + "end": { + "line": 45, + "column": 40 + } + } + } + ], + "range": [ + 1058, + 1104 + ], + "loc": { + "start": { + "line": 44, + "column": 9 + }, + "end": { + "line": 46, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1055, + 1104 + ], + "loc": { + "start": { + "line": 44, + "column": 6 + }, + "end": { + "line": 46, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1051, + 1104 + ], + "loc": { + "start": { + "line": 44, + "column": 2 + }, + "end": { + "line": 46, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Returns the list of all targeting keys that have been set.\n *\n * @returns {!Array} Array of targeting keys. Ordering is undefined.\n ", + "range": [ + 891, + 1048 + ], + "loc": { + "start": { + "line": 39, + "column": 2 + }, + "end": { + "line": 43, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Clears custom targeting parameters for a given key.\n *\n * @param {string} [key] Targeting parameter key.\n ", + "range": [ + 1108, + 1231 + ], + "loc": { + "start": { + "line": 48, + "column": 2 + }, + "end": { + "line": 52, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "clear", + "range": [ + 1234, + 1239 + ], + "loc": { + "start": { + "line": 53, + "column": 2 + }, + "end": { + "line": 53, + "column": 7 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "key", + "range": [ + 1240, + 1243 + ], + "loc": { + "start": { + "line": 53, + "column": 8 + }, + "end": { + "line": 53, + "column": 11 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "BinaryExpression", + "operator": "==", + "left": { + "type": "Identifier", + "name": "key", + "range": [ + 1255, + 1258 + ], + "loc": { + "start": { + "line": 54, + "column": 8 + }, + "end": { + "line": 54, + "column": 11 + } + } + }, + "right": { + "type": "Literal", + "value": null, + "raw": "null", + "range": [ + 1262, + 1266 + ], + "loc": { + "start": { + "line": 54, + "column": 15 + }, + "end": { + "line": 54, + "column": 19 + } + } + }, + "range": [ + 1255, + 1266 + ], + "loc": { + "start": { + "line": 54, + "column": 8 + }, + "end": { + "line": 54, + "column": 19 + } + } + }, + "consequent": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1276, + 1280 + ], + "loc": { + "start": { + "line": 55, + "column": 6 + }, + "end": { + "line": 55, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "name": "_targeting", + "range": [ + 1281, + 1291 + ], + "loc": { + "start": { + "line": 55, + "column": 11 + }, + "end": { + "line": 55, + "column": 21 + } + } + }, + "range": [ + 1276, + 1291 + ], + "loc": { + "start": { + "line": 55, + "column": 6 + }, + "end": { + "line": 55, + "column": 21 + } + } + }, + "right": { + "type": "ObjectExpression", + "properties": [], + "range": [ + 1294, + 1296 + ], + "loc": { + "start": { + "line": 55, + "column": 24 + }, + "end": { + "line": 55, + "column": 26 + } + } + }, + "range": [ + 1276, + 1296 + ], + "loc": { + "start": { + "line": 55, + "column": 6 + }, + "end": { + "line": 55, + "column": 26 + } + } + }, + "range": [ + 1276, + 1297 + ], + "loc": { + "start": { + "line": 55, + "column": 6 + }, + "end": { + "line": 55, + "column": 27 + } + } + } + ], + "range": [ + 1268, + 1303 + ], + "loc": { + "start": { + "line": 54, + "column": 21 + }, + "end": { + "line": 56, + "column": 5 + } + } + }, + "alternate": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "UnaryExpression", + "operator": "delete", + "argument": { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1324, + 1328 + ], + "loc": { + "start": { + "line": 57, + "column": 13 + }, + "end": { + "line": 57, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "_targeting", + "range": [ + 1329, + 1339 + ], + "loc": { + "start": { + "line": 57, + "column": 18 + }, + "end": { + "line": 57, + "column": 28 + } + } + }, + "range": [ + 1324, + 1339 + ], + "loc": { + "start": { + "line": 57, + "column": 13 + }, + "end": { + "line": 57, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "key", + "range": [ + 1340, + 1343 + ], + "loc": { + "start": { + "line": 57, + "column": 29 + }, + "end": { + "line": 57, + "column": 32 + } + } + }, + "range": [ + 1324, + 1344 + ], + "loc": { + "start": { + "line": 57, + "column": 13 + }, + "end": { + "line": 57, + "column": 33 + } + } + }, + "prefix": true, + "range": [ + 1317, + 1344 + ], + "loc": { + "start": { + "line": 57, + "column": 6 + }, + "end": { + "line": 57, + "column": 33 + } + } + }, + "range": [ + 1317, + 1345 + ], + "loc": { + "start": { + "line": 57, + "column": 6 + }, + "end": { + "line": 57, + "column": 34 + } + } + } + ], + "range": [ + 1309, + 1351 + ], + "loc": { + "start": { + "line": 56, + "column": 11 + }, + "end": { + "line": 58, + "column": 5 + } + } + }, + "range": [ + 1251, + 1351 + ], + "loc": { + "start": { + "line": 54, + "column": 4 + }, + "end": { + "line": 58, + "column": 5 + } + } + } + ], + "range": [ + 1245, + 1355 + ], + "loc": { + "start": { + "line": 53, + "column": 13 + }, + "end": { + "line": 59, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1239, + 1355 + ], + "loc": { + "start": { + "line": 53, + "column": 7 + }, + "end": { + "line": 59, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1234, + 1355 + ], + "loc": { + "start": { + "line": 53, + "column": 2 + }, + "end": { + "line": 59, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Clears custom targeting parameters for a given key.\n *\n * @param {string} [key] Targeting parameter key.\n ", + "range": [ + 1108, + 1231 + ], + "loc": { + "start": { + "line": 48, + "column": 2 + }, + "end": { + "line": 52, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\n * Returns the current targeting key-value dictionary.\n *\n * @returns {Object>} the targeting map.\n ", + "range": [ + 1359, + 1495 + ], + "loc": { + "start": { + "line": 61, + "column": 2 + }, + "end": { + "line": 65, + "column": 5 + } + } + } + ], + "static": false + }, + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "all", + "range": [ + 1498, + 1501 + ], + "loc": { + "start": { + "line": 66, + "column": 2 + }, + "end": { + "line": 66, + "column": 5 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Object", + "range": [ + 1517, + 1523 + ], + "loc": { + "start": { + "line": 67, + "column": 11 + }, + "end": { + "line": 67, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "name": "assign", + "range": [ + 1524, + 1530 + ], + "loc": { + "start": { + "line": 67, + "column": 18 + }, + "end": { + "line": 67, + "column": 24 + } + } + }, + "range": [ + 1517, + 1530 + ], + "loc": { + "start": { + "line": 67, + "column": 11 + }, + "end": { + "line": 67, + "column": 24 + } + } + }, + "arguments": [ + { + "type": "ObjectExpression", + "properties": [], + "range": [ + 1531, + 1533 + ], + "loc": { + "start": { + "line": 67, + "column": 25 + }, + "end": { + "line": 67, + "column": 27 + } + } + }, + { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1535, + 1539 + ], + "loc": { + "start": { + "line": 67, + "column": 29 + }, + "end": { + "line": 67, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "name": "_targeting", + "range": [ + 1540, + 1550 + ], + "loc": { + "start": { + "line": 67, + "column": 34 + }, + "end": { + "line": 67, + "column": 44 + } + } + }, + "range": [ + 1535, + 1550 + ], + "loc": { + "start": { + "line": 67, + "column": 29 + }, + "end": { + "line": 67, + "column": 44 + } + } + } + ], + "range": [ + 1517, + 1551 + ], + "loc": { + "start": { + "line": 67, + "column": 11 + }, + "end": { + "line": 67, + "column": 45 + } + } + }, + "range": [ + 1510, + 1552 + ], + "loc": { + "start": { + "line": 67, + "column": 4 + }, + "end": { + "line": 67, + "column": 46 + } + } + } + ], + "range": [ + 1504, + 1556 + ], + "loc": { + "start": { + "line": 66, + "column": 8 + }, + "end": { + "line": 68, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1501, + 1556 + ], + "loc": { + "start": { + "line": 66, + "column": 5 + }, + "end": { + "line": 68, + "column": 3 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 1498, + 1556 + ], + "loc": { + "start": { + "line": 66, + "column": 2 + }, + "end": { + "line": 68, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Returns the current targeting key-value dictionary.\n *\n * @returns {Object>} the targeting map.\n ", + "range": [ + 1359, + 1495 + ], + "loc": { + "start": { + "line": 61, + "column": 2 + }, + "end": { + "line": 65, + "column": 5 + } + } + } + ], + "static": false + } + ], + "range": [ + 107, + 1558 + ], + "loc": { + "start": { + "line": 6, + "column": 34 + }, + "end": { + "line": 69, + "column": 1 + } + } + }, + "range": [ + 88, + 1558 + ], + "loc": { + "start": { + "line": 6, + "column": 15 + }, + "end": { + "line": 69, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Manages setting and retrieving targeting.\n *\n * @experimental\n ", + "range": [ + 0, + 72 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "range": [ + 73, + 1558 + ], + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 69, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\n * Manages setting and retrieving targeting.\n *\n * @experimental\n ", + "range": [ + 0, + 72 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 73, + 1558 + ], + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 69, + "column": 1 + } + }, + "comments": [ + { + "type": "Block", + "value": "*\n * Manages setting and retrieving targeting.\n *\n * @experimental\n ", + "range": [ + 0, + 72 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + }, + { + "type": "Block", + "value": "*\n * Creates a new {@link TargetingMap} instance.\n ", + "range": [ + 111, + 170 + ], + "loc": { + "start": { + "line": 7, + "column": 2 + }, + "end": { + "line": 9, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * Sets custom targeting parameters for a given key.\n *\n * @param {string} key Targeting parameter key.\n * @param {string|!Array} value Targeting parameter value or array of values.\n ", + "range": [ + 222, + 429 + ], + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 19, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * Returns a specific targeting parameter that has been set.\n *\n * @param {string} key The targeting key to look for.\n * @returns {!Array} The values associated with this key, or an empty\n * array if there is no such key.\n ", + "range": [ + 582, + 831 + ], + "loc": { + "start": { + "line": 28, + "column": 2 + }, + "end": { + "line": 34, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * Returns the list of all targeting keys that have been set.\n *\n * @returns {!Array} Array of targeting keys. Ordering is undefined.\n ", + "range": [ + 891, + 1048 + ], + "loc": { + "start": { + "line": 39, + "column": 2 + }, + "end": { + "line": 43, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * Clears custom targeting parameters for a given key.\n *\n * @param {string} [key] Targeting parameter key.\n ", + "range": [ + 1108, + 1231 + ], + "loc": { + "start": { + "line": 48, + "column": 2 + }, + "end": { + "line": 52, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\n * Returns the current targeting key-value dictionary.\n *\n * @returns {Object>} the targeting map.\n ", + "range": [ + 1359, + 1495 + ], + "loc": { + "start": { + "line": 61, + "column": 2 + }, + "end": { + "line": 65, + "column": 5 + } + } + } + ] +} \ No newline at end of file diff --git a/docs/ast/test/TargetingMap.spec.js.json b/docs/ast/test/TargetingMap.spec.js.json new file mode 100644 index 0000000..b95f6bf --- /dev/null +++ b/docs/ast/test/TargetingMap.spec.js.json @@ -0,0 +1,14604 @@ +{ + "type": "Program", + "body": [ + { + "type": "ImportDeclaration", + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "local": { + "type": "Identifier", + "name": "TargetingMap", + "range": [ + 7, + 19 + ], + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 19 + } + } + }, + "range": [ + 7, + 19 + ], + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 19 + } + } + } + ], + "source": { + "type": "Literal", + "value": "../../src/TargetingMap", + "raw": "'../../src/TargetingMap'", + "range": [ + 25, + 49 + ], + "loc": { + "start": { + "line": 1, + "column": 25 + }, + "end": { + "line": 1, + "column": 49 + } + } + }, + "range": [ + 0, + 50 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 50 + } + }, + "trailingComments": [ + { + "type": "Block", + "value": "* @test {TargetingMap} ", + "range": [ + 52, + 79 + ], + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 27 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "describe", + "range": [ + 80, + 88 + ], + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 8 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "TargetingMap", + "raw": "'TargetingMap'", + "range": [ + 89, + 103 + ], + "loc": { + "start": { + "line": 4, + "column": 9 + }, + "end": { + "line": 4, + "column": 23 + } + } + }, + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "describe", + "range": [ + 149, + 157 + ], + "loc": { + "start": { + "line": 6, + "column": 2 + }, + "end": { + "line": 6, + "column": 10 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "#get", + "raw": "'#get'", + "range": [ + 158, + 164 + ], + "loc": { + "start": { + "line": 6, + "column": 11 + }, + "end": { + "line": 6, + "column": 17 + } + } + }, + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "it", + "range": [ + 178, + 180 + ], + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 7, + "column": 6 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "returns empty array if not set", + "raw": "'returns empty array if not set'", + "range": [ + 181, + 213 + ], + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 39 + } + } + }, + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "map", + "range": [ + 235, + 238 + ], + "loc": { + "start": { + "line": 8, + "column": 12 + }, + "end": { + "line": 8, + "column": 15 + } + } + }, + "init": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "TargetingMap", + "range": [ + 245, + 257 + ], + "loc": { + "start": { + "line": 8, + "column": 22 + }, + "end": { + "line": 8, + "column": 34 + } + } + }, + "arguments": [], + "range": [ + 241, + 259 + ], + "loc": { + "start": { + "line": 8, + "column": 18 + }, + "end": { + "line": 8, + "column": 36 + } + } + }, + "range": [ + 235, + 259 + ], + "loc": { + "start": { + "line": 8, + "column": 12 + }, + "end": { + "line": 8, + "column": 36 + } + } + } + ], + "kind": "const", + "range": [ + 229, + 260 + ], + "loc": { + "start": { + "line": 8, + "column": 6 + }, + "end": { + "line": 8, + "column": 37 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "expect", + "range": [ + 267, + 273 + ], + "loc": { + "start": { + "line": 9, + "column": 6 + }, + "end": { + "line": 9, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 274, + 277 + ], + "loc": { + "start": { + "line": 9, + "column": 13 + }, + "end": { + "line": 9, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 278, + 281 + ], + "loc": { + "start": { + "line": 9, + "column": 17 + }, + "end": { + "line": 9, + "column": 20 + } + } + }, + "range": [ + 274, + 281 + ], + "loc": { + "start": { + "line": 9, + "column": 13 + }, + "end": { + "line": 9, + "column": 20 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "kv1", + "raw": "'kv1'", + "range": [ + 282, + 287 + ], + "loc": { + "start": { + "line": 9, + "column": 21 + }, + "end": { + "line": 9, + "column": 26 + } + } + } + ], + "range": [ + 274, + 288 + ], + "loc": { + "start": { + "line": 9, + "column": 13 + }, + "end": { + "line": 9, + "column": 27 + } + } + } + ], + "range": [ + 267, + 289 + ], + "loc": { + "start": { + "line": 9, + "column": 6 + }, + "end": { + "line": 9, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "to", + "range": [ + 290, + 292 + ], + "loc": { + "start": { + "line": 9, + "column": 29 + }, + "end": { + "line": 9, + "column": 31 + } + } + }, + "range": [ + 267, + 292 + ], + "loc": { + "start": { + "line": 9, + "column": 6 + }, + "end": { + "line": 9, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "be", + "range": [ + 293, + 295 + ], + "loc": { + "start": { + "line": 9, + "column": 32 + }, + "end": { + "line": 9, + "column": 34 + } + } + }, + "range": [ + 267, + 295 + ], + "loc": { + "start": { + "line": 9, + "column": 6 + }, + "end": { + "line": 9, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "an", + "range": [ + 296, + 298 + ], + "loc": { + "start": { + "line": 9, + "column": 35 + }, + "end": { + "line": 9, + "column": 37 + } + } + }, + "range": [ + 267, + 298 + ], + "loc": { + "start": { + "line": 9, + "column": 6 + }, + "end": { + "line": 9, + "column": 37 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "array", + "raw": "'array'", + "range": [ + 299, + 306 + ], + "loc": { + "start": { + "line": 9, + "column": 38 + }, + "end": { + "line": 9, + "column": 45 + } + } + } + ], + "range": [ + 267, + 307 + ], + "loc": { + "start": { + "line": 9, + "column": 6 + }, + "end": { + "line": 9, + "column": 46 + } + } + }, + "range": [ + 267, + 308 + ], + "loc": { + "start": { + "line": 9, + "column": 6 + }, + "end": { + "line": 9, + "column": 47 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "expect", + "range": [ + 315, + 321 + ], + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 322, + 325 + ], + "loc": { + "start": { + "line": 10, + "column": 13 + }, + "end": { + "line": 10, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 326, + 329 + ], + "loc": { + "start": { + "line": 10, + "column": 17 + }, + "end": { + "line": 10, + "column": 20 + } + } + }, + "range": [ + 322, + 329 + ], + "loc": { + "start": { + "line": 10, + "column": 13 + }, + "end": { + "line": 10, + "column": 20 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "kv1", + "raw": "'kv1'", + "range": [ + 330, + 335 + ], + "loc": { + "start": { + "line": 10, + "column": 21 + }, + "end": { + "line": 10, + "column": 26 + } + } + } + ], + "range": [ + 322, + 336 + ], + "loc": { + "start": { + "line": 10, + "column": 13 + }, + "end": { + "line": 10, + "column": 27 + } + } + } + ], + "range": [ + 315, + 337 + ], + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "to", + "range": [ + 338, + 340 + ], + "loc": { + "start": { + "line": 10, + "column": 29 + }, + "end": { + "line": 10, + "column": 31 + } + } + }, + "range": [ + 315, + 340 + ], + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "be", + "range": [ + 341, + 343 + ], + "loc": { + "start": { + "line": 10, + "column": 32 + }, + "end": { + "line": 10, + "column": 34 + } + } + }, + "range": [ + 315, + 343 + ], + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "empty", + "range": [ + 344, + 349 + ], + "loc": { + "start": { + "line": 10, + "column": 35 + }, + "end": { + "line": 10, + "column": 40 + } + } + }, + "range": [ + 315, + 349 + ], + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 40 + } + } + }, + "arguments": [], + "range": [ + 315, + 351 + ], + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 42 + } + } + }, + "range": [ + 315, + 352 + ], + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 43 + } + } + } + ], + "range": [ + 221, + 358 + ], + "loc": { + "start": { + "line": 7, + "column": 47 + }, + "end": { + "line": 11, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 215, + 358 + ], + "loc": { + "start": { + "line": 7, + "column": 41 + }, + "end": { + "line": 11, + "column": 5 + } + } + } + ], + "range": [ + 178, + 359 + ], + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 11, + "column": 6 + } + }, + "_esdocTestId": 468, + "_esdocTestName": "it468" + }, + "range": [ + 178, + 360 + ], + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 11, + "column": 7 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "it", + "range": [ + 366, + 368 + ], + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 6 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "returns the value (as an array) if set", + "raw": "'returns the value (as an array) if set'", + "range": [ + 369, + 409 + ], + "loc": { + "start": { + "line": 13, + "column": 7 + }, + "end": { + "line": 13, + "column": 47 + } + } + }, + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "map", + "range": [ + 431, + 434 + ], + "loc": { + "start": { + "line": 14, + "column": 12 + }, + "end": { + "line": 14, + "column": 15 + } + } + }, + "init": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "TargetingMap", + "range": [ + 441, + 453 + ], + "loc": { + "start": { + "line": 14, + "column": 22 + }, + "end": { + "line": 14, + "column": 34 + } + } + }, + "arguments": [], + "range": [ + 437, + 455 + ], + "loc": { + "start": { + "line": 14, + "column": 18 + }, + "end": { + "line": 14, + "column": 36 + } + } + }, + "range": [ + 431, + 455 + ], + "loc": { + "start": { + "line": 14, + "column": 12 + }, + "end": { + "line": 14, + "column": 36 + } + } + } + ], + "kind": "const", + "range": [ + 425, + 456 + ], + "loc": { + "start": { + "line": 14, + "column": 6 + }, + "end": { + "line": 14, + "column": 37 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 463, + 466 + ], + "loc": { + "start": { + "line": 15, + "column": 6 + }, + "end": { + "line": 15, + "column": 9 + } + } + }, + "property": { + "type": "Identifier", + "name": "set", + "range": [ + 467, + 470 + ], + "loc": { + "start": { + "line": 15, + "column": 10 + }, + "end": { + "line": 15, + "column": 13 + } + } + }, + "range": [ + 463, + 470 + ], + "loc": { + "start": { + "line": 15, + "column": 6 + }, + "end": { + "line": 15, + "column": 13 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "kv1", + "raw": "'kv1'", + "range": [ + 471, + 476 + ], + "loc": { + "start": { + "line": 15, + "column": 14 + }, + "end": { + "line": 15, + "column": 19 + } + } + }, + { + "type": "Literal", + "value": "value", + "raw": "'value'", + "range": [ + 478, + 485 + ], + "loc": { + "start": { + "line": 15, + "column": 21 + }, + "end": { + "line": 15, + "column": 28 + } + } + } + ], + "range": [ + 463, + 486 + ], + "loc": { + "start": { + "line": 15, + "column": 6 + }, + "end": { + "line": 15, + "column": 29 + } + } + }, + "range": [ + 463, + 487 + ], + "loc": { + "start": { + "line": 15, + "column": 6 + }, + "end": { + "line": 15, + "column": 30 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "expect", + "range": [ + 494, + 500 + ], + "loc": { + "start": { + "line": 16, + "column": 6 + }, + "end": { + "line": 16, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 501, + 504 + ], + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 16, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 505, + 508 + ], + "loc": { + "start": { + "line": 16, + "column": 17 + }, + "end": { + "line": 16, + "column": 20 + } + } + }, + "range": [ + 501, + 508 + ], + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 16, + "column": 20 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "kv1", + "raw": "'kv1'", + "range": [ + 509, + 514 + ], + "loc": { + "start": { + "line": 16, + "column": 21 + }, + "end": { + "line": 16, + "column": 26 + } + } + } + ], + "range": [ + 501, + 515 + ], + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 16, + "column": 27 + } + } + } + ], + "range": [ + 494, + 516 + ], + "loc": { + "start": { + "line": 16, + "column": 6 + }, + "end": { + "line": 16, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "to", + "range": [ + 517, + 519 + ], + "loc": { + "start": { + "line": 16, + "column": 29 + }, + "end": { + "line": 16, + "column": 31 + } + } + }, + "range": [ + 494, + 519 + ], + "loc": { + "start": { + "line": 16, + "column": 6 + }, + "end": { + "line": 16, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "be", + "range": [ + 520, + 522 + ], + "loc": { + "start": { + "line": 16, + "column": 32 + }, + "end": { + "line": 16, + "column": 34 + } + } + }, + "range": [ + 494, + 522 + ], + "loc": { + "start": { + "line": 16, + "column": 6 + }, + "end": { + "line": 16, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "an", + "range": [ + 523, + 525 + ], + "loc": { + "start": { + "line": 16, + "column": 35 + }, + "end": { + "line": 16, + "column": 37 + } + } + }, + "range": [ + 494, + 525 + ], + "loc": { + "start": { + "line": 16, + "column": 6 + }, + "end": { + "line": 16, + "column": 37 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "array", + "raw": "'array'", + "range": [ + 526, + 533 + ], + "loc": { + "start": { + "line": 16, + "column": 38 + }, + "end": { + "line": 16, + "column": 45 + } + } + } + ], + "range": [ + 494, + 534 + ], + "loc": { + "start": { + "line": 16, + "column": 6 + }, + "end": { + "line": 16, + "column": 46 + } + } + }, + "range": [ + 494, + 535 + ], + "loc": { + "start": { + "line": 16, + "column": 6 + }, + "end": { + "line": 16, + "column": 47 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "expect", + "range": [ + 542, + 548 + ], + "loc": { + "start": { + "line": 17, + "column": 6 + }, + "end": { + "line": 17, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 549, + 552 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 553, + 556 + ], + "loc": { + "start": { + "line": 17, + "column": 17 + }, + "end": { + "line": 17, + "column": 20 + } + } + }, + "range": [ + 549, + 556 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 20 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "kv1", + "raw": "'kv1'", + "range": [ + 557, + 562 + ], + "loc": { + "start": { + "line": 17, + "column": 21 + }, + "end": { + "line": 17, + "column": 26 + } + } + } + ], + "range": [ + 549, + 563 + ], + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 27 + } + } + } + ], + "range": [ + 542, + 564 + ], + "loc": { + "start": { + "line": 17, + "column": 6 + }, + "end": { + "line": 17, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "to", + "range": [ + 565, + 567 + ], + "loc": { + "start": { + "line": 17, + "column": 29 + }, + "end": { + "line": 17, + "column": 31 + } + } + }, + "range": [ + 542, + 567 + ], + "loc": { + "start": { + "line": 17, + "column": 6 + }, + "end": { + "line": 17, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "eql", + "range": [ + 568, + 571 + ], + "loc": { + "start": { + "line": 17, + "column": 32 + }, + "end": { + "line": 17, + "column": 35 + } + } + }, + "range": [ + 542, + 571 + ], + "loc": { + "start": { + "line": 17, + "column": 6 + }, + "end": { + "line": 17, + "column": 35 + } + } + }, + "arguments": [ + { + "type": "ArrayExpression", + "elements": [ + { + "type": "Literal", + "value": "value", + "raw": "'value'", + "range": [ + 573, + 580 + ], + "loc": { + "start": { + "line": 17, + "column": 37 + }, + "end": { + "line": 17, + "column": 44 + } + } + } + ], + "range": [ + 572, + 581 + ], + "loc": { + "start": { + "line": 17, + "column": 36 + }, + "end": { + "line": 17, + "column": 45 + } + } + } + ], + "range": [ + 542, + 582 + ], + "loc": { + "start": { + "line": 17, + "column": 6 + }, + "end": { + "line": 17, + "column": 46 + } + } + }, + "range": [ + 542, + 583 + ], + "loc": { + "start": { + "line": 17, + "column": 6 + }, + "end": { + "line": 17, + "column": 47 + } + } + } + ], + "range": [ + 417, + 589 + ], + "loc": { + "start": { + "line": 13, + "column": 55 + }, + "end": { + "line": 18, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 411, + 589 + ], + "loc": { + "start": { + "line": 13, + "column": 49 + }, + "end": { + "line": 18, + "column": 5 + } + } + } + ], + "range": [ + 366, + 590 + ], + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 18, + "column": 6 + } + }, + "_esdocTestId": 469, + "_esdocTestName": "it469" + }, + "range": [ + 366, + 591 + ], + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 18, + "column": 7 + } + } + } + ], + "range": [ + 172, + 595 + ], + "loc": { + "start": { + "line": 6, + "column": 25 + }, + "end": { + "line": 19, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 166, + 595 + ], + "loc": { + "start": { + "line": 6, + "column": 19 + }, + "end": { + "line": 19, + "column": 3 + } + } + } + ], + "range": [ + 149, + 596 + ], + "loc": { + "start": { + "line": 6, + "column": 2 + }, + "end": { + "line": 19, + "column": 4 + } + }, + "_esdocTestId": 467, + "_esdocTestName": "describe467" + }, + "range": [ + 149, + 597 + ], + "loc": { + "start": { + "line": 6, + "column": 2 + }, + "end": { + "line": 19, + "column": 5 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "* @test {TargetingMap#get} ", + "range": [ + 115, + 146 + ], + "loc": { + "start": { + "line": 5, + "column": 2 + }, + "end": { + "line": 5, + "column": 33 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "* @test {TargetingMap#keys} ", + "range": [ + 601, + 633 + ], + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 21, + "column": 34 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "describe", + "range": [ + 636, + 644 + ], + "loc": { + "start": { + "line": 22, + "column": 2 + }, + "end": { + "line": 22, + "column": 10 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "#keys", + "raw": "'#keys'", + "range": [ + 645, + 652 + ], + "loc": { + "start": { + "line": 22, + "column": 11 + }, + "end": { + "line": 22, + "column": 18 + } + } + }, + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "it", + "range": [ + 666, + 668 + ], + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 6 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "returns empty array if no keys", + "raw": "'returns empty array if no keys'", + "range": [ + 669, + 701 + ], + "loc": { + "start": { + "line": 23, + "column": 7 + }, + "end": { + "line": 23, + "column": 39 + } + } + }, + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "map", + "range": [ + 723, + 726 + ], + "loc": { + "start": { + "line": 24, + "column": 12 + }, + "end": { + "line": 24, + "column": 15 + } + } + }, + "init": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "TargetingMap", + "range": [ + 733, + 745 + ], + "loc": { + "start": { + "line": 24, + "column": 22 + }, + "end": { + "line": 24, + "column": 34 + } + } + }, + "arguments": [], + "range": [ + 729, + 747 + ], + "loc": { + "start": { + "line": 24, + "column": 18 + }, + "end": { + "line": 24, + "column": 36 + } + } + }, + "range": [ + 723, + 747 + ], + "loc": { + "start": { + "line": 24, + "column": 12 + }, + "end": { + "line": 24, + "column": 36 + } + } + } + ], + "kind": "const", + "range": [ + 717, + 748 + ], + "loc": { + "start": { + "line": 24, + "column": 6 + }, + "end": { + "line": 24, + "column": 37 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "expect", + "range": [ + 755, + 761 + ], + "loc": { + "start": { + "line": 25, + "column": 6 + }, + "end": { + "line": 25, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 762, + 765 + ], + "loc": { + "start": { + "line": 25, + "column": 13 + }, + "end": { + "line": 25, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "keys", + "range": [ + 766, + 770 + ], + "loc": { + "start": { + "line": 25, + "column": 17 + }, + "end": { + "line": 25, + "column": 21 + } + } + }, + "range": [ + 762, + 770 + ], + "loc": { + "start": { + "line": 25, + "column": 13 + }, + "end": { + "line": 25, + "column": 21 + } + } + }, + "arguments": [], + "range": [ + 762, + 772 + ], + "loc": { + "start": { + "line": 25, + "column": 13 + }, + "end": { + "line": 25, + "column": 23 + } + } + } + ], + "range": [ + 755, + 773 + ], + "loc": { + "start": { + "line": 25, + "column": 6 + }, + "end": { + "line": 25, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "name": "to", + "range": [ + 774, + 776 + ], + "loc": { + "start": { + "line": 25, + "column": 25 + }, + "end": { + "line": 25, + "column": 27 + } + } + }, + "range": [ + 755, + 776 + ], + "loc": { + "start": { + "line": 25, + "column": 6 + }, + "end": { + "line": 25, + "column": 27 + } + } + }, + "property": { + "type": "Identifier", + "name": "be", + "range": [ + 777, + 779 + ], + "loc": { + "start": { + "line": 25, + "column": 28 + }, + "end": { + "line": 25, + "column": 30 + } + } + }, + "range": [ + 755, + 779 + ], + "loc": { + "start": { + "line": 25, + "column": 6 + }, + "end": { + "line": 25, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "an", + "range": [ + 780, + 782 + ], + "loc": { + "start": { + "line": 25, + "column": 31 + }, + "end": { + "line": 25, + "column": 33 + } + } + }, + "range": [ + 755, + 782 + ], + "loc": { + "start": { + "line": 25, + "column": 6 + }, + "end": { + "line": 25, + "column": 33 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "array", + "raw": "'array'", + "range": [ + 783, + 790 + ], + "loc": { + "start": { + "line": 25, + "column": 34 + }, + "end": { + "line": 25, + "column": 41 + } + } + } + ], + "range": [ + 755, + 791 + ], + "loc": { + "start": { + "line": 25, + "column": 6 + }, + "end": { + "line": 25, + "column": 42 + } + } + }, + "range": [ + 755, + 792 + ], + "loc": { + "start": { + "line": 25, + "column": 6 + }, + "end": { + "line": 25, + "column": 43 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "expect", + "range": [ + 799, + 805 + ], + "loc": { + "start": { + "line": 26, + "column": 6 + }, + "end": { + "line": 26, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 806, + 809 + ], + "loc": { + "start": { + "line": 26, + "column": 13 + }, + "end": { + "line": 26, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "keys", + "range": [ + 810, + 814 + ], + "loc": { + "start": { + "line": 26, + "column": 17 + }, + "end": { + "line": 26, + "column": 21 + } + } + }, + "range": [ + 806, + 814 + ], + "loc": { + "start": { + "line": 26, + "column": 13 + }, + "end": { + "line": 26, + "column": 21 + } + } + }, + "arguments": [], + "range": [ + 806, + 816 + ], + "loc": { + "start": { + "line": 26, + "column": 13 + }, + "end": { + "line": 26, + "column": 23 + } + } + } + ], + "range": [ + 799, + 817 + ], + "loc": { + "start": { + "line": 26, + "column": 6 + }, + "end": { + "line": 26, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "name": "to", + "range": [ + 818, + 820 + ], + "loc": { + "start": { + "line": 26, + "column": 25 + }, + "end": { + "line": 26, + "column": 27 + } + } + }, + "range": [ + 799, + 820 + ], + "loc": { + "start": { + "line": 26, + "column": 6 + }, + "end": { + "line": 26, + "column": 27 + } + } + }, + "property": { + "type": "Identifier", + "name": "be", + "range": [ + 821, + 823 + ], + "loc": { + "start": { + "line": 26, + "column": 28 + }, + "end": { + "line": 26, + "column": 30 + } + } + }, + "range": [ + 799, + 823 + ], + "loc": { + "start": { + "line": 26, + "column": 6 + }, + "end": { + "line": 26, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "empty", + "range": [ + 824, + 829 + ], + "loc": { + "start": { + "line": 26, + "column": 31 + }, + "end": { + "line": 26, + "column": 36 + } + } + }, + "range": [ + 799, + 829 + ], + "loc": { + "start": { + "line": 26, + "column": 6 + }, + "end": { + "line": 26, + "column": 36 + } + } + }, + "arguments": [], + "range": [ + 799, + 831 + ], + "loc": { + "start": { + "line": 26, + "column": 6 + }, + "end": { + "line": 26, + "column": 38 + } + } + }, + "range": [ + 799, + 832 + ], + "loc": { + "start": { + "line": 26, + "column": 6 + }, + "end": { + "line": 26, + "column": 39 + } + } + } + ], + "range": [ + 709, + 838 + ], + "loc": { + "start": { + "line": 23, + "column": 47 + }, + "end": { + "line": 27, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 703, + 838 + ], + "loc": { + "start": { + "line": 23, + "column": 41 + }, + "end": { + "line": 27, + "column": 5 + } + } + } + ], + "range": [ + 666, + 839 + ], + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 27, + "column": 6 + } + }, + "_esdocTestId": 471, + "_esdocTestName": "it471" + }, + "range": [ + 666, + 840 + ], + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 27, + "column": 7 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "it", + "range": [ + 846, + 848 + ], + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 6 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "returns array of keys", + "raw": "'returns array of keys'", + "range": [ + 849, + 872 + ], + "loc": { + "start": { + "line": 29, + "column": 7 + }, + "end": { + "line": 29, + "column": 30 + } + } + }, + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "map", + "range": [ + 894, + 897 + ], + "loc": { + "start": { + "line": 30, + "column": 12 + }, + "end": { + "line": 30, + "column": 15 + } + } + }, + "init": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "TargetingMap", + "range": [ + 904, + 916 + ], + "loc": { + "start": { + "line": 30, + "column": 22 + }, + "end": { + "line": 30, + "column": 34 + } + } + }, + "arguments": [], + "range": [ + 900, + 918 + ], + "loc": { + "start": { + "line": 30, + "column": 18 + }, + "end": { + "line": 30, + "column": 36 + } + } + }, + "range": [ + 894, + 918 + ], + "loc": { + "start": { + "line": 30, + "column": 12 + }, + "end": { + "line": 30, + "column": 36 + } + } + } + ], + "kind": "const", + "range": [ + 888, + 919 + ], + "loc": { + "start": { + "line": 30, + "column": 6 + }, + "end": { + "line": 30, + "column": 37 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 926, + 929 + ], + "loc": { + "start": { + "line": 31, + "column": 6 + }, + "end": { + "line": 31, + "column": 9 + } + } + }, + "property": { + "type": "Identifier", + "name": "set", + "range": [ + 930, + 933 + ], + "loc": { + "start": { + "line": 31, + "column": 10 + }, + "end": { + "line": 31, + "column": 13 + } + } + }, + "range": [ + 926, + 933 + ], + "loc": { + "start": { + "line": 31, + "column": 6 + }, + "end": { + "line": 31, + "column": 13 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "kv1", + "raw": "'kv1'", + "range": [ + 934, + 939 + ], + "loc": { + "start": { + "line": 31, + "column": 14 + }, + "end": { + "line": 31, + "column": 19 + } + } + }, + { + "type": "Literal", + "value": "value1", + "raw": "'value1'", + "range": [ + 941, + 949 + ], + "loc": { + "start": { + "line": 31, + "column": 21 + }, + "end": { + "line": 31, + "column": 29 + } + } + } + ], + "range": [ + 926, + 950 + ], + "loc": { + "start": { + "line": 31, + "column": 6 + }, + "end": { + "line": 31, + "column": 30 + } + } + }, + "range": [ + 926, + 951 + ], + "loc": { + "start": { + "line": 31, + "column": 6 + }, + "end": { + "line": 31, + "column": 31 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 958, + 961 + ], + "loc": { + "start": { + "line": 32, + "column": 6 + }, + "end": { + "line": 32, + "column": 9 + } + } + }, + "property": { + "type": "Identifier", + "name": "set", + "range": [ + 962, + 965 + ], + "loc": { + "start": { + "line": 32, + "column": 10 + }, + "end": { + "line": 32, + "column": 13 + } + } + }, + "range": [ + 958, + 965 + ], + "loc": { + "start": { + "line": 32, + "column": 6 + }, + "end": { + "line": 32, + "column": 13 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "kv2", + "raw": "'kv2'", + "range": [ + 966, + 971 + ], + "loc": { + "start": { + "line": 32, + "column": 14 + }, + "end": { + "line": 32, + "column": 19 + } + } + }, + { + "type": "Literal", + "value": "value2", + "raw": "'value2'", + "range": [ + 973, + 981 + ], + "loc": { + "start": { + "line": 32, + "column": 21 + }, + "end": { + "line": 32, + "column": 29 + } + } + } + ], + "range": [ + 958, + 982 + ], + "loc": { + "start": { + "line": 32, + "column": 6 + }, + "end": { + "line": 32, + "column": 30 + } + } + }, + "range": [ + 958, + 983 + ], + "loc": { + "start": { + "line": 32, + "column": 6 + }, + "end": { + "line": 32, + "column": 31 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "expect", + "range": [ + 990, + 996 + ], + "loc": { + "start": { + "line": 33, + "column": 6 + }, + "end": { + "line": 33, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 997, + 1000 + ], + "loc": { + "start": { + "line": 33, + "column": 13 + }, + "end": { + "line": 33, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "keys", + "range": [ + 1001, + 1005 + ], + "loc": { + "start": { + "line": 33, + "column": 17 + }, + "end": { + "line": 33, + "column": 21 + } + } + }, + "range": [ + 997, + 1005 + ], + "loc": { + "start": { + "line": 33, + "column": 13 + }, + "end": { + "line": 33, + "column": 21 + } + } + }, + "arguments": [], + "range": [ + 997, + 1007 + ], + "loc": { + "start": { + "line": 33, + "column": 13 + }, + "end": { + "line": 33, + "column": 23 + } + } + } + ], + "range": [ + 990, + 1008 + ], + "loc": { + "start": { + "line": 33, + "column": 6 + }, + "end": { + "line": 33, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "name": "to", + "range": [ + 1009, + 1011 + ], + "loc": { + "start": { + "line": 33, + "column": 25 + }, + "end": { + "line": 33, + "column": 27 + } + } + }, + "range": [ + 990, + 1011 + ], + "loc": { + "start": { + "line": 33, + "column": 6 + }, + "end": { + "line": 33, + "column": 27 + } + } + }, + "property": { + "type": "Identifier", + "name": "be", + "range": [ + 1012, + 1014 + ], + "loc": { + "start": { + "line": 33, + "column": 28 + }, + "end": { + "line": 33, + "column": 30 + } + } + }, + "range": [ + 990, + 1014 + ], + "loc": { + "start": { + "line": 33, + "column": 6 + }, + "end": { + "line": 33, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "name": "an", + "range": [ + 1015, + 1017 + ], + "loc": { + "start": { + "line": 33, + "column": 31 + }, + "end": { + "line": 33, + "column": 33 + } + } + }, + "range": [ + 990, + 1017 + ], + "loc": { + "start": { + "line": 33, + "column": 6 + }, + "end": { + "line": 33, + "column": 33 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "array", + "raw": "'array'", + "range": [ + 1018, + 1025 + ], + "loc": { + "start": { + "line": 33, + "column": 34 + }, + "end": { + "line": 33, + "column": 41 + } + } + } + ], + "range": [ + 990, + 1026 + ], + "loc": { + "start": { + "line": 33, + "column": 6 + }, + "end": { + "line": 33, + "column": 42 + } + } + }, + "range": [ + 990, + 1027 + ], + "loc": { + "start": { + "line": 33, + "column": 6 + }, + "end": { + "line": 33, + "column": 43 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "expect", + "range": [ + 1034, + 1040 + ], + "loc": { + "start": { + "line": 34, + "column": 6 + }, + "end": { + "line": 34, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 1041, + 1044 + ], + "loc": { + "start": { + "line": 34, + "column": 13 + }, + "end": { + "line": 34, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "keys", + "range": [ + 1045, + 1049 + ], + "loc": { + "start": { + "line": 34, + "column": 17 + }, + "end": { + "line": 34, + "column": 21 + } + } + }, + "range": [ + 1041, + 1049 + ], + "loc": { + "start": { + "line": 34, + "column": 13 + }, + "end": { + "line": 34, + "column": 21 + } + } + }, + "arguments": [], + "range": [ + 1041, + 1051 + ], + "loc": { + "start": { + "line": 34, + "column": 13 + }, + "end": { + "line": 34, + "column": 23 + } + } + } + ], + "range": [ + 1034, + 1052 + ], + "loc": { + "start": { + "line": 34, + "column": 6 + }, + "end": { + "line": 34, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "name": "to", + "range": [ + 1053, + 1055 + ], + "loc": { + "start": { + "line": 34, + "column": 25 + }, + "end": { + "line": 34, + "column": 27 + } + } + }, + "range": [ + 1034, + 1055 + ], + "loc": { + "start": { + "line": 34, + "column": 6 + }, + "end": { + "line": 34, + "column": 27 + } + } + }, + "property": { + "type": "Identifier", + "name": "eql", + "range": [ + 1056, + 1059 + ], + "loc": { + "start": { + "line": 34, + "column": 28 + }, + "end": { + "line": 34, + "column": 31 + } + } + }, + "range": [ + 1034, + 1059 + ], + "loc": { + "start": { + "line": 34, + "column": 6 + }, + "end": { + "line": 34, + "column": 31 + } + } + }, + "arguments": [ + { + "type": "ArrayExpression", + "elements": [ + { + "type": "Literal", + "value": "kv1", + "raw": "'kv1'", + "range": [ + 1061, + 1066 + ], + "loc": { + "start": { + "line": 34, + "column": 33 + }, + "end": { + "line": 34, + "column": 38 + } + } + }, + { + "type": "Literal", + "value": "kv2", + "raw": "'kv2'", + "range": [ + 1068, + 1073 + ], + "loc": { + "start": { + "line": 34, + "column": 40 + }, + "end": { + "line": 34, + "column": 45 + } + } + } + ], + "range": [ + 1060, + 1074 + ], + "loc": { + "start": { + "line": 34, + "column": 32 + }, + "end": { + "line": 34, + "column": 46 + } + } + } + ], + "range": [ + 1034, + 1075 + ], + "loc": { + "start": { + "line": 34, + "column": 6 + }, + "end": { + "line": 34, + "column": 47 + } + } + }, + "range": [ + 1034, + 1076 + ], + "loc": { + "start": { + "line": 34, + "column": 6 + }, + "end": { + "line": 34, + "column": 48 + } + } + } + ], + "range": [ + 880, + 1082 + ], + "loc": { + "start": { + "line": 29, + "column": 38 + }, + "end": { + "line": 35, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 874, + 1082 + ], + "loc": { + "start": { + "line": 29, + "column": 32 + }, + "end": { + "line": 35, + "column": 5 + } + } + } + ], + "range": [ + 846, + 1083 + ], + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 35, + "column": 6 + } + }, + "_esdocTestId": 472, + "_esdocTestName": "it472" + }, + "range": [ + 846, + 1084 + ], + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 35, + "column": 7 + } + } + } + ], + "range": [ + 660, + 1088 + ], + "loc": { + "start": { + "line": 22, + "column": 26 + }, + "end": { + "line": 36, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 654, + 1088 + ], + "loc": { + "start": { + "line": 22, + "column": 20 + }, + "end": { + "line": 36, + "column": 3 + } + } + } + ], + "range": [ + 636, + 1089 + ], + "loc": { + "start": { + "line": 22, + "column": 2 + }, + "end": { + "line": 36, + "column": 4 + } + }, + "_esdocTestId": 470, + "_esdocTestName": "describe470" + }, + "range": [ + 636, + 1090 + ], + "loc": { + "start": { + "line": 22, + "column": 2 + }, + "end": { + "line": 36, + "column": 5 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "* @test {TargetingMap#keys} ", + "range": [ + 601, + 633 + ], + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 21, + "column": 34 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "* @test {TargetingMap#all} ", + "range": [ + 1094, + 1125 + ], + "loc": { + "start": { + "line": 38, + "column": 2 + }, + "end": { + "line": 38, + "column": 33 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "describe", + "range": [ + 1128, + 1136 + ], + "loc": { + "start": { + "line": 39, + "column": 2 + }, + "end": { + "line": 39, + "column": 10 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "all", + "raw": "'all'", + "range": [ + 1137, + 1142 + ], + "loc": { + "start": { + "line": 39, + "column": 11 + }, + "end": { + "line": 39, + "column": 16 + } + } + }, + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "it", + "range": [ + 1156, + 1158 + ], + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 6 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "returns the targeting map", + "raw": "'returns the targeting map'", + "range": [ + 1159, + 1186 + ], + "loc": { + "start": { + "line": 40, + "column": 7 + }, + "end": { + "line": 40, + "column": 34 + } + } + }, + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "map", + "range": [ + 1208, + 1211 + ], + "loc": { + "start": { + "line": 41, + "column": 12 + }, + "end": { + "line": 41, + "column": 15 + } + } + }, + "init": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "TargetingMap", + "range": [ + 1218, + 1230 + ], + "loc": { + "start": { + "line": 41, + "column": 22 + }, + "end": { + "line": 41, + "column": 34 + } + } + }, + "arguments": [], + "range": [ + 1214, + 1232 + ], + "loc": { + "start": { + "line": 41, + "column": 18 + }, + "end": { + "line": 41, + "column": 36 + } + } + }, + "range": [ + 1208, + 1232 + ], + "loc": { + "start": { + "line": 41, + "column": 12 + }, + "end": { + "line": 41, + "column": 36 + } + } + } + ], + "kind": "const", + "range": [ + 1202, + 1233 + ], + "loc": { + "start": { + "line": 41, + "column": 6 + }, + "end": { + "line": 41, + "column": 37 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 1240, + 1243 + ], + "loc": { + "start": { + "line": 42, + "column": 6 + }, + "end": { + "line": 42, + "column": 9 + } + } + }, + "property": { + "type": "Identifier", + "name": "set", + "range": [ + 1244, + 1247 + ], + "loc": { + "start": { + "line": 42, + "column": 10 + }, + "end": { + "line": 42, + "column": 13 + } + } + }, + "range": [ + 1240, + 1247 + ], + "loc": { + "start": { + "line": 42, + "column": 6 + }, + "end": { + "line": 42, + "column": 13 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "kv1", + "raw": "'kv1'", + "range": [ + 1248, + 1253 + ], + "loc": { + "start": { + "line": 42, + "column": 14 + }, + "end": { + "line": 42, + "column": 19 + } + } + }, + { + "type": "Literal", + "value": "value1", + "raw": "'value1'", + "range": [ + 1255, + 1263 + ], + "loc": { + "start": { + "line": 42, + "column": 21 + }, + "end": { + "line": 42, + "column": 29 + } + } + } + ], + "range": [ + 1240, + 1264 + ], + "loc": { + "start": { + "line": 42, + "column": 6 + }, + "end": { + "line": 42, + "column": 30 + } + } + }, + "range": [ + 1240, + 1265 + ], + "loc": { + "start": { + "line": 42, + "column": 6 + }, + "end": { + "line": 42, + "column": 31 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 1272, + 1275 + ], + "loc": { + "start": { + "line": 43, + "column": 6 + }, + "end": { + "line": 43, + "column": 9 + } + } + }, + "property": { + "type": "Identifier", + "name": "set", + "range": [ + 1276, + 1279 + ], + "loc": { + "start": { + "line": 43, + "column": 10 + }, + "end": { + "line": 43, + "column": 13 + } + } + }, + "range": [ + 1272, + 1279 + ], + "loc": { + "start": { + "line": 43, + "column": 6 + }, + "end": { + "line": 43, + "column": 13 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "kv2", + "raw": "'kv2'", + "range": [ + 1280, + 1285 + ], + "loc": { + "start": { + "line": 43, + "column": 14 + }, + "end": { + "line": 43, + "column": 19 + } + } + }, + { + "type": "Literal", + "value": "value2", + "raw": "'value2'", + "range": [ + 1287, + 1295 + ], + "loc": { + "start": { + "line": 43, + "column": 21 + }, + "end": { + "line": 43, + "column": 29 + } + } + } + ], + "range": [ + 1272, + 1296 + ], + "loc": { + "start": { + "line": 43, + "column": 6 + }, + "end": { + "line": 43, + "column": 30 + } + } + }, + "range": [ + 1272, + 1297 + ], + "loc": { + "start": { + "line": 43, + "column": 6 + }, + "end": { + "line": 43, + "column": 31 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "expect", + "range": [ + 1304, + 1310 + ], + "loc": { + "start": { + "line": 44, + "column": 6 + }, + "end": { + "line": 44, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 1311, + 1314 + ], + "loc": { + "start": { + "line": 44, + "column": 13 + }, + "end": { + "line": 44, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "all", + "range": [ + 1315, + 1318 + ], + "loc": { + "start": { + "line": 44, + "column": 17 + }, + "end": { + "line": 44, + "column": 20 + } + } + }, + "range": [ + 1311, + 1318 + ], + "loc": { + "start": { + "line": 44, + "column": 13 + }, + "end": { + "line": 44, + "column": 20 + } + } + }, + "arguments": [], + "range": [ + 1311, + 1320 + ], + "loc": { + "start": { + "line": 44, + "column": 13 + }, + "end": { + "line": 44, + "column": 22 + } + } + } + ], + "range": [ + 1304, + 1321 + ], + "loc": { + "start": { + "line": 44, + "column": 6 + }, + "end": { + "line": 44, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "to", + "range": [ + 1322, + 1324 + ], + "loc": { + "start": { + "line": 44, + "column": 24 + }, + "end": { + "line": 44, + "column": 26 + } + } + }, + "range": [ + 1304, + 1324 + ], + "loc": { + "start": { + "line": 44, + "column": 6 + }, + "end": { + "line": 44, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "be", + "range": [ + 1325, + 1327 + ], + "loc": { + "start": { + "line": 44, + "column": 27 + }, + "end": { + "line": 44, + "column": 29 + } + } + }, + "range": [ + 1304, + 1327 + ], + "loc": { + "start": { + "line": 44, + "column": 6 + }, + "end": { + "line": 44, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "name": "an", + "range": [ + 1328, + 1330 + ], + "loc": { + "start": { + "line": 44, + "column": 30 + }, + "end": { + "line": 44, + "column": 32 + } + } + }, + "range": [ + 1304, + 1330 + ], + "loc": { + "start": { + "line": 44, + "column": 6 + }, + "end": { + "line": 44, + "column": 32 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "object", + "raw": "'object'", + "range": [ + 1331, + 1339 + ], + "loc": { + "start": { + "line": 44, + "column": 33 + }, + "end": { + "line": 44, + "column": 41 + } + } + } + ], + "range": [ + 1304, + 1340 + ], + "loc": { + "start": { + "line": 44, + "column": 6 + }, + "end": { + "line": 44, + "column": 42 + } + } + }, + "range": [ + 1304, + 1341 + ], + "loc": { + "start": { + "line": 44, + "column": 6 + }, + "end": { + "line": 44, + "column": 43 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "expect", + "range": [ + 1348, + 1354 + ], + "loc": { + "start": { + "line": 45, + "column": 6 + }, + "end": { + "line": 45, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 1355, + 1358 + ], + "loc": { + "start": { + "line": 45, + "column": 13 + }, + "end": { + "line": 45, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "all", + "range": [ + 1359, + 1362 + ], + "loc": { + "start": { + "line": 45, + "column": 17 + }, + "end": { + "line": 45, + "column": 20 + } + } + }, + "range": [ + 1355, + 1362 + ], + "loc": { + "start": { + "line": 45, + "column": 13 + }, + "end": { + "line": 45, + "column": 20 + } + } + }, + "arguments": [], + "range": [ + 1355, + 1364 + ], + "loc": { + "start": { + "line": 45, + "column": 13 + }, + "end": { + "line": 45, + "column": 22 + } + } + } + ], + "range": [ + 1348, + 1365 + ], + "loc": { + "start": { + "line": 45, + "column": 6 + }, + "end": { + "line": 45, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "name": "to", + "range": [ + 1366, + 1368 + ], + "loc": { + "start": { + "line": 45, + "column": 24 + }, + "end": { + "line": 45, + "column": 26 + } + } + }, + "range": [ + 1348, + 1368 + ], + "loc": { + "start": { + "line": 45, + "column": 6 + }, + "end": { + "line": 45, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "name": "eql", + "range": [ + 1369, + 1372 + ], + "loc": { + "start": { + "line": 45, + "column": 27 + }, + "end": { + "line": 45, + "column": 30 + } + } + }, + "range": [ + 1348, + 1372 + ], + "loc": { + "start": { + "line": 45, + "column": 6 + }, + "end": { + "line": 45, + "column": 30 + } + } + }, + "arguments": [ + { + "type": "ObjectExpression", + "properties": [ + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "kv1", + "range": [ + 1383, + 1386 + ], + "loc": { + "start": { + "line": 46, + "column": 8 + }, + "end": { + "line": 46, + "column": 11 + } + } + }, + "value": { + "type": "ArrayExpression", + "elements": [ + { + "type": "Literal", + "value": "value1", + "raw": "'value1'", + "range": [ + 1389, + 1397 + ], + "loc": { + "start": { + "line": 46, + "column": 14 + }, + "end": { + "line": 46, + "column": 22 + } + } + } + ], + "range": [ + 1388, + 1398 + ], + "loc": { + "start": { + "line": 46, + "column": 13 + }, + "end": { + "line": 46, + "column": 23 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1383, + 1398 + ], + "loc": { + "start": { + "line": 46, + "column": 8 + }, + "end": { + "line": 46, + "column": 23 + } + } + }, + { + "type": "Property", + "key": { + "type": "Identifier", + "name": "kv2", + "range": [ + 1408, + 1411 + ], + "loc": { + "start": { + "line": 47, + "column": 8 + }, + "end": { + "line": 47, + "column": 11 + } + } + }, + "value": { + "type": "ArrayExpression", + "elements": [ + { + "type": "Literal", + "value": "value2", + "raw": "'value2'", + "range": [ + 1414, + 1422 + ], + "loc": { + "start": { + "line": 47, + "column": 14 + }, + "end": { + "line": 47, + "column": 22 + } + } + } + ], + "range": [ + 1413, + 1423 + ], + "loc": { + "start": { + "line": 47, + "column": 13 + }, + "end": { + "line": 47, + "column": 23 + } + } + }, + "kind": "init", + "method": false, + "shorthand": false, + "computed": false, + "range": [ + 1408, + 1423 + ], + "loc": { + "start": { + "line": 47, + "column": 8 + }, + "end": { + "line": 47, + "column": 23 + } + } + } + ], + "range": [ + 1373, + 1431 + ], + "loc": { + "start": { + "line": 45, + "column": 31 + }, + "end": { + "line": 48, + "column": 7 + } + } + } + ], + "range": [ + 1348, + 1432 + ], + "loc": { + "start": { + "line": 45, + "column": 6 + }, + "end": { + "line": 48, + "column": 8 + } + } + }, + "range": [ + 1348, + 1433 + ], + "loc": { + "start": { + "line": 45, + "column": 6 + }, + "end": { + "line": 48, + "column": 9 + } + } + } + ], + "range": [ + 1194, + 1439 + ], + "loc": { + "start": { + "line": 40, + "column": 42 + }, + "end": { + "line": 49, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1188, + 1439 + ], + "loc": { + "start": { + "line": 40, + "column": 36 + }, + "end": { + "line": 49, + "column": 5 + } + } + } + ], + "range": [ + 1156, + 1440 + ], + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 49, + "column": 6 + } + }, + "_esdocTestId": 474, + "_esdocTestName": "it474" + }, + "range": [ + 1156, + 1441 + ], + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 49, + "column": 7 + } + } + } + ], + "range": [ + 1150, + 1445 + ], + "loc": { + "start": { + "line": 39, + "column": 24 + }, + "end": { + "line": 50, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1144, + 1445 + ], + "loc": { + "start": { + "line": 39, + "column": 18 + }, + "end": { + "line": 50, + "column": 3 + } + } + } + ], + "range": [ + 1128, + 1446 + ], + "loc": { + "start": { + "line": 39, + "column": 2 + }, + "end": { + "line": 50, + "column": 4 + } + }, + "_esdocTestId": 473, + "_esdocTestName": "describe473" + }, + "range": [ + 1128, + 1447 + ], + "loc": { + "start": { + "line": 39, + "column": 2 + }, + "end": { + "line": 50, + "column": 5 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "* @test {TargetingMap#all} ", + "range": [ + 1094, + 1125 + ], + "loc": { + "start": { + "line": 38, + "column": 2 + }, + "end": { + "line": 38, + "column": 33 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "* @test {TargetingMap#set} ", + "range": [ + 1451, + 1482 + ], + "loc": { + "start": { + "line": 52, + "column": 2 + }, + "end": { + "line": 52, + "column": 33 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "describe", + "range": [ + 1485, + 1493 + ], + "loc": { + "start": { + "line": 53, + "column": 2 + }, + "end": { + "line": 53, + "column": 10 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "#set", + "raw": "'#set'", + "range": [ + 1494, + 1500 + ], + "loc": { + "start": { + "line": 53, + "column": 11 + }, + "end": { + "line": 53, + "column": 17 + } + } + }, + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "it", + "range": [ + 1514, + 1516 + ], + "loc": { + "start": { + "line": 54, + "column": 4 + }, + "end": { + "line": 54, + "column": 6 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "saves the value", + "raw": "'saves the value'", + "range": [ + 1517, + 1534 + ], + "loc": { + "start": { + "line": 54, + "column": 7 + }, + "end": { + "line": 54, + "column": 24 + } + } + }, + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "map", + "range": [ + 1556, + 1559 + ], + "loc": { + "start": { + "line": 55, + "column": 12 + }, + "end": { + "line": 55, + "column": 15 + } + } + }, + "init": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "TargetingMap", + "range": [ + 1566, + 1578 + ], + "loc": { + "start": { + "line": 55, + "column": 22 + }, + "end": { + "line": 55, + "column": 34 + } + } + }, + "arguments": [], + "range": [ + 1562, + 1580 + ], + "loc": { + "start": { + "line": 55, + "column": 18 + }, + "end": { + "line": 55, + "column": 36 + } + } + }, + "range": [ + 1556, + 1580 + ], + "loc": { + "start": { + "line": 55, + "column": 12 + }, + "end": { + "line": 55, + "column": 36 + } + } + } + ], + "kind": "const", + "range": [ + 1550, + 1581 + ], + "loc": { + "start": { + "line": 55, + "column": 6 + }, + "end": { + "line": 55, + "column": 37 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 1588, + 1591 + ], + "loc": { + "start": { + "line": 56, + "column": 6 + }, + "end": { + "line": 56, + "column": 9 + } + } + }, + "property": { + "type": "Identifier", + "name": "set", + "range": [ + 1592, + 1595 + ], + "loc": { + "start": { + "line": 56, + "column": 10 + }, + "end": { + "line": 56, + "column": 13 + } + } + }, + "range": [ + 1588, + 1595 + ], + "loc": { + "start": { + "line": 56, + "column": 6 + }, + "end": { + "line": 56, + "column": 13 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "kv1", + "raw": "'kv1'", + "range": [ + 1596, + 1601 + ], + "loc": { + "start": { + "line": 56, + "column": 14 + }, + "end": { + "line": 56, + "column": 19 + } + } + }, + { + "type": "Literal", + "value": "value", + "raw": "'value'", + "range": [ + 1603, + 1610 + ], + "loc": { + "start": { + "line": 56, + "column": 21 + }, + "end": { + "line": 56, + "column": 28 + } + } + } + ], + "range": [ + 1588, + 1611 + ], + "loc": { + "start": { + "line": 56, + "column": 6 + }, + "end": { + "line": 56, + "column": 29 + } + } + }, + "range": [ + 1588, + 1612 + ], + "loc": { + "start": { + "line": 56, + "column": 6 + }, + "end": { + "line": 56, + "column": 30 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "expect", + "range": [ + 1619, + 1625 + ], + "loc": { + "start": { + "line": 57, + "column": 6 + }, + "end": { + "line": 57, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 1626, + 1629 + ], + "loc": { + "start": { + "line": 57, + "column": 13 + }, + "end": { + "line": 57, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 1630, + 1633 + ], + "loc": { + "start": { + "line": 57, + "column": 17 + }, + "end": { + "line": 57, + "column": 20 + } + } + }, + "range": [ + 1626, + 1633 + ], + "loc": { + "start": { + "line": 57, + "column": 13 + }, + "end": { + "line": 57, + "column": 20 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "kv1", + "raw": "'kv1'", + "range": [ + 1634, + 1639 + ], + "loc": { + "start": { + "line": 57, + "column": 21 + }, + "end": { + "line": 57, + "column": 26 + } + } + } + ], + "range": [ + 1626, + 1640 + ], + "loc": { + "start": { + "line": 57, + "column": 13 + }, + "end": { + "line": 57, + "column": 27 + } + } + } + ], + "range": [ + 1619, + 1641 + ], + "loc": { + "start": { + "line": 57, + "column": 6 + }, + "end": { + "line": 57, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "to", + "range": [ + 1642, + 1644 + ], + "loc": { + "start": { + "line": 57, + "column": 29 + }, + "end": { + "line": 57, + "column": 31 + } + } + }, + "range": [ + 1619, + 1644 + ], + "loc": { + "start": { + "line": 57, + "column": 6 + }, + "end": { + "line": 57, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "be", + "range": [ + 1645, + 1647 + ], + "loc": { + "start": { + "line": 57, + "column": 32 + }, + "end": { + "line": 57, + "column": 34 + } + } + }, + "range": [ + 1619, + 1647 + ], + "loc": { + "start": { + "line": 57, + "column": 6 + }, + "end": { + "line": 57, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "an", + "range": [ + 1648, + 1650 + ], + "loc": { + "start": { + "line": 57, + "column": 35 + }, + "end": { + "line": 57, + "column": 37 + } + } + }, + "range": [ + 1619, + 1650 + ], + "loc": { + "start": { + "line": 57, + "column": 6 + }, + "end": { + "line": 57, + "column": 37 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "array", + "raw": "'array'", + "range": [ + 1651, + 1658 + ], + "loc": { + "start": { + "line": 57, + "column": 38 + }, + "end": { + "line": 57, + "column": 45 + } + } + } + ], + "range": [ + 1619, + 1659 + ], + "loc": { + "start": { + "line": 57, + "column": 6 + }, + "end": { + "line": 57, + "column": 46 + } + } + }, + "range": [ + 1619, + 1660 + ], + "loc": { + "start": { + "line": 57, + "column": 6 + }, + "end": { + "line": 57, + "column": 47 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "expect", + "range": [ + 1667, + 1673 + ], + "loc": { + "start": { + "line": 58, + "column": 6 + }, + "end": { + "line": 58, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 1674, + 1677 + ], + "loc": { + "start": { + "line": 58, + "column": 13 + }, + "end": { + "line": 58, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 1678, + 1681 + ], + "loc": { + "start": { + "line": 58, + "column": 17 + }, + "end": { + "line": 58, + "column": 20 + } + } + }, + "range": [ + 1674, + 1681 + ], + "loc": { + "start": { + "line": 58, + "column": 13 + }, + "end": { + "line": 58, + "column": 20 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "kv1", + "raw": "'kv1'", + "range": [ + 1682, + 1687 + ], + "loc": { + "start": { + "line": 58, + "column": 21 + }, + "end": { + "line": 58, + "column": 26 + } + } + } + ], + "range": [ + 1674, + 1688 + ], + "loc": { + "start": { + "line": 58, + "column": 13 + }, + "end": { + "line": 58, + "column": 27 + } + } + } + ], + "range": [ + 1667, + 1689 + ], + "loc": { + "start": { + "line": 58, + "column": 6 + }, + "end": { + "line": 58, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "to", + "range": [ + 1690, + 1692 + ], + "loc": { + "start": { + "line": 58, + "column": 29 + }, + "end": { + "line": 58, + "column": 31 + } + } + }, + "range": [ + 1667, + 1692 + ], + "loc": { + "start": { + "line": 58, + "column": 6 + }, + "end": { + "line": 58, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "eql", + "range": [ + 1693, + 1696 + ], + "loc": { + "start": { + "line": 58, + "column": 32 + }, + "end": { + "line": 58, + "column": 35 + } + } + }, + "range": [ + 1667, + 1696 + ], + "loc": { + "start": { + "line": 58, + "column": 6 + }, + "end": { + "line": 58, + "column": 35 + } + } + }, + "arguments": [ + { + "type": "ArrayExpression", + "elements": [ + { + "type": "Literal", + "value": "value", + "raw": "'value'", + "range": [ + 1698, + 1705 + ], + "loc": { + "start": { + "line": 58, + "column": 37 + }, + "end": { + "line": 58, + "column": 44 + } + } + } + ], + "range": [ + 1697, + 1706 + ], + "loc": { + "start": { + "line": 58, + "column": 36 + }, + "end": { + "line": 58, + "column": 45 + } + } + } + ], + "range": [ + 1667, + 1707 + ], + "loc": { + "start": { + "line": 58, + "column": 6 + }, + "end": { + "line": 58, + "column": 46 + } + } + }, + "range": [ + 1667, + 1708 + ], + "loc": { + "start": { + "line": 58, + "column": 6 + }, + "end": { + "line": 58, + "column": 47 + } + } + } + ], + "range": [ + 1542, + 1714 + ], + "loc": { + "start": { + "line": 54, + "column": 32 + }, + "end": { + "line": 59, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1536, + 1714 + ], + "loc": { + "start": { + "line": 54, + "column": 26 + }, + "end": { + "line": 59, + "column": 5 + } + } + } + ], + "range": [ + 1514, + 1715 + ], + "loc": { + "start": { + "line": 54, + "column": 4 + }, + "end": { + "line": 59, + "column": 6 + } + }, + "_esdocTestId": 476, + "_esdocTestName": "it476" + }, + "range": [ + 1514, + 1716 + ], + "loc": { + "start": { + "line": 54, + "column": 4 + }, + "end": { + "line": 59, + "column": 7 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "it", + "range": [ + 1722, + 1724 + ], + "loc": { + "start": { + "line": 61, + "column": 4 + }, + "end": { + "line": 61, + "column": 6 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "saves the array value", + "raw": "'saves the array value'", + "range": [ + 1725, + 1748 + ], + "loc": { + "start": { + "line": 61, + "column": 7 + }, + "end": { + "line": 61, + "column": 30 + } + } + }, + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "map", + "range": [ + 1770, + 1773 + ], + "loc": { + "start": { + "line": 62, + "column": 12 + }, + "end": { + "line": 62, + "column": 15 + } + } + }, + "init": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "TargetingMap", + "range": [ + 1780, + 1792 + ], + "loc": { + "start": { + "line": 62, + "column": 22 + }, + "end": { + "line": 62, + "column": 34 + } + } + }, + "arguments": [], + "range": [ + 1776, + 1794 + ], + "loc": { + "start": { + "line": 62, + "column": 18 + }, + "end": { + "line": 62, + "column": 36 + } + } + }, + "range": [ + 1770, + 1794 + ], + "loc": { + "start": { + "line": 62, + "column": 12 + }, + "end": { + "line": 62, + "column": 36 + } + } + } + ], + "kind": "const", + "range": [ + 1764, + 1795 + ], + "loc": { + "start": { + "line": 62, + "column": 6 + }, + "end": { + "line": 62, + "column": 37 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 1802, + 1805 + ], + "loc": { + "start": { + "line": 63, + "column": 6 + }, + "end": { + "line": 63, + "column": 9 + } + } + }, + "property": { + "type": "Identifier", + "name": "set", + "range": [ + 1806, + 1809 + ], + "loc": { + "start": { + "line": 63, + "column": 10 + }, + "end": { + "line": 63, + "column": 13 + } + } + }, + "range": [ + 1802, + 1809 + ], + "loc": { + "start": { + "line": 63, + "column": 6 + }, + "end": { + "line": 63, + "column": 13 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "kv1", + "raw": "'kv1'", + "range": [ + 1810, + 1815 + ], + "loc": { + "start": { + "line": 63, + "column": 14 + }, + "end": { + "line": 63, + "column": 19 + } + } + }, + { + "type": "ArrayExpression", + "elements": [ + { + "type": "Literal", + "value": "value", + "raw": "'value'", + "range": [ + 1818, + 1825 + ], + "loc": { + "start": { + "line": 63, + "column": 22 + }, + "end": { + "line": 63, + "column": 29 + } + } + } + ], + "range": [ + 1817, + 1826 + ], + "loc": { + "start": { + "line": 63, + "column": 21 + }, + "end": { + "line": 63, + "column": 30 + } + } + } + ], + "range": [ + 1802, + 1827 + ], + "loc": { + "start": { + "line": 63, + "column": 6 + }, + "end": { + "line": 63, + "column": 31 + } + } + }, + "range": [ + 1802, + 1828 + ], + "loc": { + "start": { + "line": 63, + "column": 6 + }, + "end": { + "line": 63, + "column": 32 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "expect", + "range": [ + 1835, + 1841 + ], + "loc": { + "start": { + "line": 64, + "column": 6 + }, + "end": { + "line": 64, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 1842, + 1845 + ], + "loc": { + "start": { + "line": 64, + "column": 13 + }, + "end": { + "line": 64, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 1846, + 1849 + ], + "loc": { + "start": { + "line": 64, + "column": 17 + }, + "end": { + "line": 64, + "column": 20 + } + } + }, + "range": [ + 1842, + 1849 + ], + "loc": { + "start": { + "line": 64, + "column": 13 + }, + "end": { + "line": 64, + "column": 20 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "kv1", + "raw": "'kv1'", + "range": [ + 1850, + 1855 + ], + "loc": { + "start": { + "line": 64, + "column": 21 + }, + "end": { + "line": 64, + "column": 26 + } + } + } + ], + "range": [ + 1842, + 1856 + ], + "loc": { + "start": { + "line": 64, + "column": 13 + }, + "end": { + "line": 64, + "column": 27 + } + } + } + ], + "range": [ + 1835, + 1857 + ], + "loc": { + "start": { + "line": 64, + "column": 6 + }, + "end": { + "line": 64, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "to", + "range": [ + 1858, + 1860 + ], + "loc": { + "start": { + "line": 64, + "column": 29 + }, + "end": { + "line": 64, + "column": 31 + } + } + }, + "range": [ + 1835, + 1860 + ], + "loc": { + "start": { + "line": 64, + "column": 6 + }, + "end": { + "line": 64, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "be", + "range": [ + 1861, + 1863 + ], + "loc": { + "start": { + "line": 64, + "column": 32 + }, + "end": { + "line": 64, + "column": 34 + } + } + }, + "range": [ + 1835, + 1863 + ], + "loc": { + "start": { + "line": 64, + "column": 6 + }, + "end": { + "line": 64, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "an", + "range": [ + 1864, + 1866 + ], + "loc": { + "start": { + "line": 64, + "column": 35 + }, + "end": { + "line": 64, + "column": 37 + } + } + }, + "range": [ + 1835, + 1866 + ], + "loc": { + "start": { + "line": 64, + "column": 6 + }, + "end": { + "line": 64, + "column": 37 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "array", + "raw": "'array'", + "range": [ + 1867, + 1874 + ], + "loc": { + "start": { + "line": 64, + "column": 38 + }, + "end": { + "line": 64, + "column": 45 + } + } + } + ], + "range": [ + 1835, + 1875 + ], + "loc": { + "start": { + "line": 64, + "column": 6 + }, + "end": { + "line": 64, + "column": 46 + } + } + }, + "range": [ + 1835, + 1876 + ], + "loc": { + "start": { + "line": 64, + "column": 6 + }, + "end": { + "line": 64, + "column": 47 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "expect", + "range": [ + 1883, + 1889 + ], + "loc": { + "start": { + "line": 65, + "column": 6 + }, + "end": { + "line": 65, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 1890, + 1893 + ], + "loc": { + "start": { + "line": 65, + "column": 13 + }, + "end": { + "line": 65, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 1894, + 1897 + ], + "loc": { + "start": { + "line": 65, + "column": 17 + }, + "end": { + "line": 65, + "column": 20 + } + } + }, + "range": [ + 1890, + 1897 + ], + "loc": { + "start": { + "line": 65, + "column": 13 + }, + "end": { + "line": 65, + "column": 20 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "kv1", + "raw": "'kv1'", + "range": [ + 1898, + 1903 + ], + "loc": { + "start": { + "line": 65, + "column": 21 + }, + "end": { + "line": 65, + "column": 26 + } + } + } + ], + "range": [ + 1890, + 1904 + ], + "loc": { + "start": { + "line": 65, + "column": 13 + }, + "end": { + "line": 65, + "column": 27 + } + } + } + ], + "range": [ + 1883, + 1905 + ], + "loc": { + "start": { + "line": 65, + "column": 6 + }, + "end": { + "line": 65, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "to", + "range": [ + 1906, + 1908 + ], + "loc": { + "start": { + "line": 65, + "column": 29 + }, + "end": { + "line": 65, + "column": 31 + } + } + }, + "range": [ + 1883, + 1908 + ], + "loc": { + "start": { + "line": 65, + "column": 6 + }, + "end": { + "line": 65, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "eql", + "range": [ + 1909, + 1912 + ], + "loc": { + "start": { + "line": 65, + "column": 32 + }, + "end": { + "line": 65, + "column": 35 + } + } + }, + "range": [ + 1883, + 1912 + ], + "loc": { + "start": { + "line": 65, + "column": 6 + }, + "end": { + "line": 65, + "column": 35 + } + } + }, + "arguments": [ + { + "type": "ArrayExpression", + "elements": [ + { + "type": "Literal", + "value": "value", + "raw": "'value'", + "range": [ + 1914, + 1921 + ], + "loc": { + "start": { + "line": 65, + "column": 37 + }, + "end": { + "line": 65, + "column": 44 + } + } + } + ], + "range": [ + 1913, + 1922 + ], + "loc": { + "start": { + "line": 65, + "column": 36 + }, + "end": { + "line": 65, + "column": 45 + } + } + } + ], + "range": [ + 1883, + 1923 + ], + "loc": { + "start": { + "line": 65, + "column": 6 + }, + "end": { + "line": 65, + "column": 46 + } + } + }, + "range": [ + 1883, + 1924 + ], + "loc": { + "start": { + "line": 65, + "column": 6 + }, + "end": { + "line": 65, + "column": 47 + } + } + } + ], + "range": [ + 1756, + 1930 + ], + "loc": { + "start": { + "line": 61, + "column": 38 + }, + "end": { + "line": 66, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1750, + 1930 + ], + "loc": { + "start": { + "line": 61, + "column": 32 + }, + "end": { + "line": 66, + "column": 5 + } + } + } + ], + "range": [ + 1722, + 1931 + ], + "loc": { + "start": { + "line": 61, + "column": 4 + }, + "end": { + "line": 66, + "column": 6 + } + }, + "_esdocTestId": 477, + "_esdocTestName": "it477" + }, + "range": [ + 1722, + 1932 + ], + "loc": { + "start": { + "line": 61, + "column": 4 + }, + "end": { + "line": 66, + "column": 7 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "it", + "range": [ + 1938, + 1940 + ], + "loc": { + "start": { + "line": 68, + "column": 4 + }, + "end": { + "line": 68, + "column": 6 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "overwrites the previous value", + "raw": "'overwrites the previous value'", + "range": [ + 1941, + 1972 + ], + "loc": { + "start": { + "line": 68, + "column": 7 + }, + "end": { + "line": 68, + "column": 38 + } + } + }, + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "map", + "range": [ + 1994, + 1997 + ], + "loc": { + "start": { + "line": 69, + "column": 12 + }, + "end": { + "line": 69, + "column": 15 + } + } + }, + "init": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "TargetingMap", + "range": [ + 2004, + 2016 + ], + "loc": { + "start": { + "line": 69, + "column": 22 + }, + "end": { + "line": 69, + "column": 34 + } + } + }, + "arguments": [], + "range": [ + 2000, + 2018 + ], + "loc": { + "start": { + "line": 69, + "column": 18 + }, + "end": { + "line": 69, + "column": 36 + } + } + }, + "range": [ + 1994, + 2018 + ], + "loc": { + "start": { + "line": 69, + "column": 12 + }, + "end": { + "line": 69, + "column": 36 + } + } + } + ], + "kind": "const", + "range": [ + 1988, + 2019 + ], + "loc": { + "start": { + "line": 69, + "column": 6 + }, + "end": { + "line": 69, + "column": 37 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 2026, + 2029 + ], + "loc": { + "start": { + "line": 70, + "column": 6 + }, + "end": { + "line": 70, + "column": 9 + } + } + }, + "property": { + "type": "Identifier", + "name": "set", + "range": [ + 2030, + 2033 + ], + "loc": { + "start": { + "line": 70, + "column": 10 + }, + "end": { + "line": 70, + "column": 13 + } + } + }, + "range": [ + 2026, + 2033 + ], + "loc": { + "start": { + "line": 70, + "column": 6 + }, + "end": { + "line": 70, + "column": 13 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "kv1", + "raw": "'kv1'", + "range": [ + 2034, + 2039 + ], + "loc": { + "start": { + "line": 70, + "column": 14 + }, + "end": { + "line": 70, + "column": 19 + } + } + }, + { + "type": "Literal", + "value": "value1", + "raw": "'value1'", + "range": [ + 2041, + 2049 + ], + "loc": { + "start": { + "line": 70, + "column": 21 + }, + "end": { + "line": 70, + "column": 29 + } + } + } + ], + "range": [ + 2026, + 2050 + ], + "loc": { + "start": { + "line": 70, + "column": 6 + }, + "end": { + "line": 70, + "column": 30 + } + } + }, + "range": [ + 2026, + 2051 + ], + "loc": { + "start": { + "line": 70, + "column": 6 + }, + "end": { + "line": 70, + "column": 31 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "expect", + "range": [ + 2058, + 2064 + ], + "loc": { + "start": { + "line": 71, + "column": 6 + }, + "end": { + "line": 71, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 2065, + 2068 + ], + "loc": { + "start": { + "line": 71, + "column": 13 + }, + "end": { + "line": 71, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 2069, + 2072 + ], + "loc": { + "start": { + "line": 71, + "column": 17 + }, + "end": { + "line": 71, + "column": 20 + } + } + }, + "range": [ + 2065, + 2072 + ], + "loc": { + "start": { + "line": 71, + "column": 13 + }, + "end": { + "line": 71, + "column": 20 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "kv1", + "raw": "'kv1'", + "range": [ + 2073, + 2078 + ], + "loc": { + "start": { + "line": 71, + "column": 21 + }, + "end": { + "line": 71, + "column": 26 + } + } + } + ], + "range": [ + 2065, + 2079 + ], + "loc": { + "start": { + "line": 71, + "column": 13 + }, + "end": { + "line": 71, + "column": 27 + } + } + } + ], + "range": [ + 2058, + 2080 + ], + "loc": { + "start": { + "line": 71, + "column": 6 + }, + "end": { + "line": 71, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "to", + "range": [ + 2081, + 2083 + ], + "loc": { + "start": { + "line": 71, + "column": 29 + }, + "end": { + "line": 71, + "column": 31 + } + } + }, + "range": [ + 2058, + 2083 + ], + "loc": { + "start": { + "line": 71, + "column": 6 + }, + "end": { + "line": 71, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "be", + "range": [ + 2084, + 2086 + ], + "loc": { + "start": { + "line": 71, + "column": 32 + }, + "end": { + "line": 71, + "column": 34 + } + } + }, + "range": [ + 2058, + 2086 + ], + "loc": { + "start": { + "line": 71, + "column": 6 + }, + "end": { + "line": 71, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "an", + "range": [ + 2087, + 2089 + ], + "loc": { + "start": { + "line": 71, + "column": 35 + }, + "end": { + "line": 71, + "column": 37 + } + } + }, + "range": [ + 2058, + 2089 + ], + "loc": { + "start": { + "line": 71, + "column": 6 + }, + "end": { + "line": 71, + "column": 37 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "array", + "raw": "'array'", + "range": [ + 2090, + 2097 + ], + "loc": { + "start": { + "line": 71, + "column": 38 + }, + "end": { + "line": 71, + "column": 45 + } + } + } + ], + "range": [ + 2058, + 2098 + ], + "loc": { + "start": { + "line": 71, + "column": 6 + }, + "end": { + "line": 71, + "column": 46 + } + } + }, + "range": [ + 2058, + 2099 + ], + "loc": { + "start": { + "line": 71, + "column": 6 + }, + "end": { + "line": 71, + "column": 47 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "expect", + "range": [ + 2106, + 2112 + ], + "loc": { + "start": { + "line": 72, + "column": 6 + }, + "end": { + "line": 72, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 2113, + 2116 + ], + "loc": { + "start": { + "line": 72, + "column": 13 + }, + "end": { + "line": 72, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 2117, + 2120 + ], + "loc": { + "start": { + "line": 72, + "column": 17 + }, + "end": { + "line": 72, + "column": 20 + } + } + }, + "range": [ + 2113, + 2120 + ], + "loc": { + "start": { + "line": 72, + "column": 13 + }, + "end": { + "line": 72, + "column": 20 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "kv1", + "raw": "'kv1'", + "range": [ + 2121, + 2126 + ], + "loc": { + "start": { + "line": 72, + "column": 21 + }, + "end": { + "line": 72, + "column": 26 + } + } + } + ], + "range": [ + 2113, + 2127 + ], + "loc": { + "start": { + "line": 72, + "column": 13 + }, + "end": { + "line": 72, + "column": 27 + } + } + } + ], + "range": [ + 2106, + 2128 + ], + "loc": { + "start": { + "line": 72, + "column": 6 + }, + "end": { + "line": 72, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "to", + "range": [ + 2129, + 2131 + ], + "loc": { + "start": { + "line": 72, + "column": 29 + }, + "end": { + "line": 72, + "column": 31 + } + } + }, + "range": [ + 2106, + 2131 + ], + "loc": { + "start": { + "line": 72, + "column": 6 + }, + "end": { + "line": 72, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "eql", + "range": [ + 2132, + 2135 + ], + "loc": { + "start": { + "line": 72, + "column": 32 + }, + "end": { + "line": 72, + "column": 35 + } + } + }, + "range": [ + 2106, + 2135 + ], + "loc": { + "start": { + "line": 72, + "column": 6 + }, + "end": { + "line": 72, + "column": 35 + } + } + }, + "arguments": [ + { + "type": "ArrayExpression", + "elements": [ + { + "type": "Literal", + "value": "value1", + "raw": "'value1'", + "range": [ + 2137, + 2145 + ], + "loc": { + "start": { + "line": 72, + "column": 37 + }, + "end": { + "line": 72, + "column": 45 + } + } + } + ], + "range": [ + 2136, + 2146 + ], + "loc": { + "start": { + "line": 72, + "column": 36 + }, + "end": { + "line": 72, + "column": 46 + } + } + } + ], + "range": [ + 2106, + 2147 + ], + "loc": { + "start": { + "line": 72, + "column": 6 + }, + "end": { + "line": 72, + "column": 47 + } + } + }, + "range": [ + 2106, + 2148 + ], + "loc": { + "start": { + "line": 72, + "column": 6 + }, + "end": { + "line": 72, + "column": 48 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 2155, + 2158 + ], + "loc": { + "start": { + "line": 73, + "column": 6 + }, + "end": { + "line": 73, + "column": 9 + } + } + }, + "property": { + "type": "Identifier", + "name": "set", + "range": [ + 2159, + 2162 + ], + "loc": { + "start": { + "line": 73, + "column": 10 + }, + "end": { + "line": 73, + "column": 13 + } + } + }, + "range": [ + 2155, + 2162 + ], + "loc": { + "start": { + "line": 73, + "column": 6 + }, + "end": { + "line": 73, + "column": 13 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "kv1", + "raw": "'kv1'", + "range": [ + 2163, + 2168 + ], + "loc": { + "start": { + "line": 73, + "column": 14 + }, + "end": { + "line": 73, + "column": 19 + } + } + }, + { + "type": "Literal", + "value": "value2", + "raw": "'value2'", + "range": [ + 2170, + 2178 + ], + "loc": { + "start": { + "line": 73, + "column": 21 + }, + "end": { + "line": 73, + "column": 29 + } + } + } + ], + "range": [ + 2155, + 2179 + ], + "loc": { + "start": { + "line": 73, + "column": 6 + }, + "end": { + "line": 73, + "column": 30 + } + } + }, + "range": [ + 2155, + 2180 + ], + "loc": { + "start": { + "line": 73, + "column": 6 + }, + "end": { + "line": 73, + "column": 31 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "expect", + "range": [ + 2187, + 2193 + ], + "loc": { + "start": { + "line": 74, + "column": 6 + }, + "end": { + "line": 74, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 2194, + 2197 + ], + "loc": { + "start": { + "line": 74, + "column": 13 + }, + "end": { + "line": 74, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 2198, + 2201 + ], + "loc": { + "start": { + "line": 74, + "column": 17 + }, + "end": { + "line": 74, + "column": 20 + } + } + }, + "range": [ + 2194, + 2201 + ], + "loc": { + "start": { + "line": 74, + "column": 13 + }, + "end": { + "line": 74, + "column": 20 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "kv1", + "raw": "'kv1'", + "range": [ + 2202, + 2207 + ], + "loc": { + "start": { + "line": 74, + "column": 21 + }, + "end": { + "line": 74, + "column": 26 + } + } + } + ], + "range": [ + 2194, + 2208 + ], + "loc": { + "start": { + "line": 74, + "column": 13 + }, + "end": { + "line": 74, + "column": 27 + } + } + } + ], + "range": [ + 2187, + 2209 + ], + "loc": { + "start": { + "line": 74, + "column": 6 + }, + "end": { + "line": 74, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "to", + "range": [ + 2210, + 2212 + ], + "loc": { + "start": { + "line": 74, + "column": 29 + }, + "end": { + "line": 74, + "column": 31 + } + } + }, + "range": [ + 2187, + 2212 + ], + "loc": { + "start": { + "line": 74, + "column": 6 + }, + "end": { + "line": 74, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "be", + "range": [ + 2213, + 2215 + ], + "loc": { + "start": { + "line": 74, + "column": 32 + }, + "end": { + "line": 74, + "column": 34 + } + } + }, + "range": [ + 2187, + 2215 + ], + "loc": { + "start": { + "line": 74, + "column": 6 + }, + "end": { + "line": 74, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "an", + "range": [ + 2216, + 2218 + ], + "loc": { + "start": { + "line": 74, + "column": 35 + }, + "end": { + "line": 74, + "column": 37 + } + } + }, + "range": [ + 2187, + 2218 + ], + "loc": { + "start": { + "line": 74, + "column": 6 + }, + "end": { + "line": 74, + "column": 37 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "array", + "raw": "'array'", + "range": [ + 2219, + 2226 + ], + "loc": { + "start": { + "line": 74, + "column": 38 + }, + "end": { + "line": 74, + "column": 45 + } + } + } + ], + "range": [ + 2187, + 2227 + ], + "loc": { + "start": { + "line": 74, + "column": 6 + }, + "end": { + "line": 74, + "column": 46 + } + } + }, + "range": [ + 2187, + 2228 + ], + "loc": { + "start": { + "line": 74, + "column": 6 + }, + "end": { + "line": 74, + "column": 47 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "expect", + "range": [ + 2235, + 2241 + ], + "loc": { + "start": { + "line": 75, + "column": 6 + }, + "end": { + "line": 75, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 2242, + 2245 + ], + "loc": { + "start": { + "line": 75, + "column": 13 + }, + "end": { + "line": 75, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 2246, + 2249 + ], + "loc": { + "start": { + "line": 75, + "column": 17 + }, + "end": { + "line": 75, + "column": 20 + } + } + }, + "range": [ + 2242, + 2249 + ], + "loc": { + "start": { + "line": 75, + "column": 13 + }, + "end": { + "line": 75, + "column": 20 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "kv1", + "raw": "'kv1'", + "range": [ + 2250, + 2255 + ], + "loc": { + "start": { + "line": 75, + "column": 21 + }, + "end": { + "line": 75, + "column": 26 + } + } + } + ], + "range": [ + 2242, + 2256 + ], + "loc": { + "start": { + "line": 75, + "column": 13 + }, + "end": { + "line": 75, + "column": 27 + } + } + } + ], + "range": [ + 2235, + 2257 + ], + "loc": { + "start": { + "line": 75, + "column": 6 + }, + "end": { + "line": 75, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "to", + "range": [ + 2258, + 2260 + ], + "loc": { + "start": { + "line": 75, + "column": 29 + }, + "end": { + "line": 75, + "column": 31 + } + } + }, + "range": [ + 2235, + 2260 + ], + "loc": { + "start": { + "line": 75, + "column": 6 + }, + "end": { + "line": 75, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "eql", + "range": [ + 2261, + 2264 + ], + "loc": { + "start": { + "line": 75, + "column": 32 + }, + "end": { + "line": 75, + "column": 35 + } + } + }, + "range": [ + 2235, + 2264 + ], + "loc": { + "start": { + "line": 75, + "column": 6 + }, + "end": { + "line": 75, + "column": 35 + } + } + }, + "arguments": [ + { + "type": "ArrayExpression", + "elements": [ + { + "type": "Literal", + "value": "value2", + "raw": "'value2'", + "range": [ + 2266, + 2274 + ], + "loc": { + "start": { + "line": 75, + "column": 37 + }, + "end": { + "line": 75, + "column": 45 + } + } + } + ], + "range": [ + 2265, + 2275 + ], + "loc": { + "start": { + "line": 75, + "column": 36 + }, + "end": { + "line": 75, + "column": 46 + } + } + } + ], + "range": [ + 2235, + 2276 + ], + "loc": { + "start": { + "line": 75, + "column": 6 + }, + "end": { + "line": 75, + "column": 47 + } + } + }, + "range": [ + 2235, + 2277 + ], + "loc": { + "start": { + "line": 75, + "column": 6 + }, + "end": { + "line": 75, + "column": 48 + } + } + } + ], + "range": [ + 1980, + 2283 + ], + "loc": { + "start": { + "line": 68, + "column": 46 + }, + "end": { + "line": 76, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1974, + 2283 + ], + "loc": { + "start": { + "line": 68, + "column": 40 + }, + "end": { + "line": 76, + "column": 5 + } + } + } + ], + "range": [ + 1938, + 2284 + ], + "loc": { + "start": { + "line": 68, + "column": 4 + }, + "end": { + "line": 76, + "column": 6 + } + }, + "_esdocTestId": 478, + "_esdocTestName": "it478" + }, + "range": [ + 1938, + 2285 + ], + "loc": { + "start": { + "line": 68, + "column": 4 + }, + "end": { + "line": 76, + "column": 7 + } + } + } + ], + "range": [ + 1508, + 2289 + ], + "loc": { + "start": { + "line": 53, + "column": 25 + }, + "end": { + "line": 77, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 1502, + 2289 + ], + "loc": { + "start": { + "line": 53, + "column": 19 + }, + "end": { + "line": 77, + "column": 3 + } + } + } + ], + "range": [ + 1485, + 2290 + ], + "loc": { + "start": { + "line": 53, + "column": 2 + }, + "end": { + "line": 77, + "column": 4 + } + }, + "_esdocTestId": 475, + "_esdocTestName": "describe475" + }, + "range": [ + 1485, + 2291 + ], + "loc": { + "start": { + "line": 53, + "column": 2 + }, + "end": { + "line": 77, + "column": 5 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "* @test {TargetingMap#set} ", + "range": [ + 1451, + 1482 + ], + "loc": { + "start": { + "line": 52, + "column": 2 + }, + "end": { + "line": 52, + "column": 33 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "* @test {TargetingMap#clear} ", + "range": [ + 2295, + 2328 + ], + "loc": { + "start": { + "line": 79, + "column": 2 + }, + "end": { + "line": 79, + "column": 35 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "describe", + "range": [ + 2331, + 2339 + ], + "loc": { + "start": { + "line": 80, + "column": 2 + }, + "end": { + "line": 80, + "column": 10 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "#clear", + "raw": "'#clear'", + "range": [ + 2340, + 2348 + ], + "loc": { + "start": { + "line": 80, + "column": 11 + }, + "end": { + "line": 80, + "column": 19 + } + } + }, + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "it", + "range": [ + 2362, + 2364 + ], + "loc": { + "start": { + "line": 81, + "column": 4 + }, + "end": { + "line": 81, + "column": 6 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "clears all targeting", + "raw": "'clears all targeting'", + "range": [ + 2365, + 2387 + ], + "loc": { + "start": { + "line": 81, + "column": 7 + }, + "end": { + "line": 81, + "column": 29 + } + } + }, + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "map", + "range": [ + 2409, + 2412 + ], + "loc": { + "start": { + "line": 82, + "column": 12 + }, + "end": { + "line": 82, + "column": 15 + } + } + }, + "init": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "TargetingMap", + "range": [ + 2419, + 2431 + ], + "loc": { + "start": { + "line": 82, + "column": 22 + }, + "end": { + "line": 82, + "column": 34 + } + } + }, + "arguments": [], + "range": [ + 2415, + 2433 + ], + "loc": { + "start": { + "line": 82, + "column": 18 + }, + "end": { + "line": 82, + "column": 36 + } + } + }, + "range": [ + 2409, + 2433 + ], + "loc": { + "start": { + "line": 82, + "column": 12 + }, + "end": { + "line": 82, + "column": 36 + } + } + } + ], + "kind": "const", + "range": [ + 2403, + 2434 + ], + "loc": { + "start": { + "line": 82, + "column": 6 + }, + "end": { + "line": 82, + "column": 37 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 2441, + 2444 + ], + "loc": { + "start": { + "line": 83, + "column": 6 + }, + "end": { + "line": 83, + "column": 9 + } + } + }, + "property": { + "type": "Identifier", + "name": "set", + "range": [ + 2445, + 2448 + ], + "loc": { + "start": { + "line": 83, + "column": 10 + }, + "end": { + "line": 83, + "column": 13 + } + } + }, + "range": [ + 2441, + 2448 + ], + "loc": { + "start": { + "line": 83, + "column": 6 + }, + "end": { + "line": 83, + "column": 13 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "kv1", + "raw": "'kv1'", + "range": [ + 2449, + 2454 + ], + "loc": { + "start": { + "line": 83, + "column": 14 + }, + "end": { + "line": 83, + "column": 19 + } + } + }, + { + "type": "Literal", + "value": "value1", + "raw": "'value1'", + "range": [ + 2456, + 2464 + ], + "loc": { + "start": { + "line": 83, + "column": 21 + }, + "end": { + "line": 83, + "column": 29 + } + } + } + ], + "range": [ + 2441, + 2465 + ], + "loc": { + "start": { + "line": 83, + "column": 6 + }, + "end": { + "line": 83, + "column": 30 + } + } + }, + "range": [ + 2441, + 2466 + ], + "loc": { + "start": { + "line": 83, + "column": 6 + }, + "end": { + "line": 83, + "column": 31 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 2473, + 2476 + ], + "loc": { + "start": { + "line": 84, + "column": 6 + }, + "end": { + "line": 84, + "column": 9 + } + } + }, + "property": { + "type": "Identifier", + "name": "set", + "range": [ + 2477, + 2480 + ], + "loc": { + "start": { + "line": 84, + "column": 10 + }, + "end": { + "line": 84, + "column": 13 + } + } + }, + "range": [ + 2473, + 2480 + ], + "loc": { + "start": { + "line": 84, + "column": 6 + }, + "end": { + "line": 84, + "column": 13 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "kv2", + "raw": "'kv2'", + "range": [ + 2481, + 2486 + ], + "loc": { + "start": { + "line": 84, + "column": 14 + }, + "end": { + "line": 84, + "column": 19 + } + } + }, + { + "type": "Literal", + "value": "value2", + "raw": "'value2'", + "range": [ + 2488, + 2496 + ], + "loc": { + "start": { + "line": 84, + "column": 21 + }, + "end": { + "line": 84, + "column": 29 + } + } + } + ], + "range": [ + 2473, + 2497 + ], + "loc": { + "start": { + "line": 84, + "column": 6 + }, + "end": { + "line": 84, + "column": 30 + } + } + }, + "range": [ + 2473, + 2498 + ], + "loc": { + "start": { + "line": 84, + "column": 6 + }, + "end": { + "line": 84, + "column": 31 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "expect", + "range": [ + 2505, + 2511 + ], + "loc": { + "start": { + "line": 85, + "column": 6 + }, + "end": { + "line": 85, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 2512, + 2515 + ], + "loc": { + "start": { + "line": 85, + "column": 13 + }, + "end": { + "line": 85, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 2516, + 2519 + ], + "loc": { + "start": { + "line": 85, + "column": 17 + }, + "end": { + "line": 85, + "column": 20 + } + } + }, + "range": [ + 2512, + 2519 + ], + "loc": { + "start": { + "line": 85, + "column": 13 + }, + "end": { + "line": 85, + "column": 20 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "kv1", + "raw": "'kv1'", + "range": [ + 2520, + 2525 + ], + "loc": { + "start": { + "line": 85, + "column": 21 + }, + "end": { + "line": 85, + "column": 26 + } + } + } + ], + "range": [ + 2512, + 2526 + ], + "loc": { + "start": { + "line": 85, + "column": 13 + }, + "end": { + "line": 85, + "column": 27 + } + } + } + ], + "range": [ + 2505, + 2527 + ], + "loc": { + "start": { + "line": 85, + "column": 6 + }, + "end": { + "line": 85, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "to", + "range": [ + 2528, + 2530 + ], + "loc": { + "start": { + "line": 85, + "column": 29 + }, + "end": { + "line": 85, + "column": 31 + } + } + }, + "range": [ + 2505, + 2530 + ], + "loc": { + "start": { + "line": 85, + "column": 6 + }, + "end": { + "line": 85, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "be", + "range": [ + 2531, + 2533 + ], + "loc": { + "start": { + "line": 85, + "column": 32 + }, + "end": { + "line": 85, + "column": 34 + } + } + }, + "range": [ + 2505, + 2533 + ], + "loc": { + "start": { + "line": 85, + "column": 6 + }, + "end": { + "line": 85, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "an", + "range": [ + 2534, + 2536 + ], + "loc": { + "start": { + "line": 85, + "column": 35 + }, + "end": { + "line": 85, + "column": 37 + } + } + }, + "range": [ + 2505, + 2536 + ], + "loc": { + "start": { + "line": 85, + "column": 6 + }, + "end": { + "line": 85, + "column": 37 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "array", + "raw": "'array'", + "range": [ + 2537, + 2544 + ], + "loc": { + "start": { + "line": 85, + "column": 38 + }, + "end": { + "line": 85, + "column": 45 + } + } + } + ], + "range": [ + 2505, + 2545 + ], + "loc": { + "start": { + "line": 85, + "column": 6 + }, + "end": { + "line": 85, + "column": 46 + } + } + }, + "range": [ + 2505, + 2546 + ], + "loc": { + "start": { + "line": 85, + "column": 6 + }, + "end": { + "line": 85, + "column": 47 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "expect", + "range": [ + 2553, + 2559 + ], + "loc": { + "start": { + "line": 86, + "column": 6 + }, + "end": { + "line": 86, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 2560, + 2563 + ], + "loc": { + "start": { + "line": 86, + "column": 13 + }, + "end": { + "line": 86, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 2564, + 2567 + ], + "loc": { + "start": { + "line": 86, + "column": 17 + }, + "end": { + "line": 86, + "column": 20 + } + } + }, + "range": [ + 2560, + 2567 + ], + "loc": { + "start": { + "line": 86, + "column": 13 + }, + "end": { + "line": 86, + "column": 20 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "kv1", + "raw": "'kv1'", + "range": [ + 2568, + 2573 + ], + "loc": { + "start": { + "line": 86, + "column": 21 + }, + "end": { + "line": 86, + "column": 26 + } + } + } + ], + "range": [ + 2560, + 2574 + ], + "loc": { + "start": { + "line": 86, + "column": 13 + }, + "end": { + "line": 86, + "column": 27 + } + } + } + ], + "range": [ + 2553, + 2575 + ], + "loc": { + "start": { + "line": 86, + "column": 6 + }, + "end": { + "line": 86, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "to", + "range": [ + 2576, + 2578 + ], + "loc": { + "start": { + "line": 86, + "column": 29 + }, + "end": { + "line": 86, + "column": 31 + } + } + }, + "range": [ + 2553, + 2578 + ], + "loc": { + "start": { + "line": 86, + "column": 6 + }, + "end": { + "line": 86, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "eql", + "range": [ + 2579, + 2582 + ], + "loc": { + "start": { + "line": 86, + "column": 32 + }, + "end": { + "line": 86, + "column": 35 + } + } + }, + "range": [ + 2553, + 2582 + ], + "loc": { + "start": { + "line": 86, + "column": 6 + }, + "end": { + "line": 86, + "column": 35 + } + } + }, + "arguments": [ + { + "type": "ArrayExpression", + "elements": [ + { + "type": "Literal", + "value": "value1", + "raw": "'value1'", + "range": [ + 2584, + 2592 + ], + "loc": { + "start": { + "line": 86, + "column": 37 + }, + "end": { + "line": 86, + "column": 45 + } + } + } + ], + "range": [ + 2583, + 2593 + ], + "loc": { + "start": { + "line": 86, + "column": 36 + }, + "end": { + "line": 86, + "column": 46 + } + } + } + ], + "range": [ + 2553, + 2594 + ], + "loc": { + "start": { + "line": 86, + "column": 6 + }, + "end": { + "line": 86, + "column": 47 + } + } + }, + "range": [ + 2553, + 2595 + ], + "loc": { + "start": { + "line": 86, + "column": 6 + }, + "end": { + "line": 86, + "column": 48 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "expect", + "range": [ + 2602, + 2608 + ], + "loc": { + "start": { + "line": 87, + "column": 6 + }, + "end": { + "line": 87, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 2609, + 2612 + ], + "loc": { + "start": { + "line": 87, + "column": 13 + }, + "end": { + "line": 87, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 2613, + 2616 + ], + "loc": { + "start": { + "line": 87, + "column": 17 + }, + "end": { + "line": 87, + "column": 20 + } + } + }, + "range": [ + 2609, + 2616 + ], + "loc": { + "start": { + "line": 87, + "column": 13 + }, + "end": { + "line": 87, + "column": 20 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "kv2", + "raw": "'kv2'", + "range": [ + 2617, + 2622 + ], + "loc": { + "start": { + "line": 87, + "column": 21 + }, + "end": { + "line": 87, + "column": 26 + } + } + } + ], + "range": [ + 2609, + 2623 + ], + "loc": { + "start": { + "line": 87, + "column": 13 + }, + "end": { + "line": 87, + "column": 27 + } + } + } + ], + "range": [ + 2602, + 2624 + ], + "loc": { + "start": { + "line": 87, + "column": 6 + }, + "end": { + "line": 87, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "to", + "range": [ + 2625, + 2627 + ], + "loc": { + "start": { + "line": 87, + "column": 29 + }, + "end": { + "line": 87, + "column": 31 + } + } + }, + "range": [ + 2602, + 2627 + ], + "loc": { + "start": { + "line": 87, + "column": 6 + }, + "end": { + "line": 87, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "be", + "range": [ + 2628, + 2630 + ], + "loc": { + "start": { + "line": 87, + "column": 32 + }, + "end": { + "line": 87, + "column": 34 + } + } + }, + "range": [ + 2602, + 2630 + ], + "loc": { + "start": { + "line": 87, + "column": 6 + }, + "end": { + "line": 87, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "an", + "range": [ + 2631, + 2633 + ], + "loc": { + "start": { + "line": 87, + "column": 35 + }, + "end": { + "line": 87, + "column": 37 + } + } + }, + "range": [ + 2602, + 2633 + ], + "loc": { + "start": { + "line": 87, + "column": 6 + }, + "end": { + "line": 87, + "column": 37 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "array", + "raw": "'array'", + "range": [ + 2634, + 2641 + ], + "loc": { + "start": { + "line": 87, + "column": 38 + }, + "end": { + "line": 87, + "column": 45 + } + } + } + ], + "range": [ + 2602, + 2642 + ], + "loc": { + "start": { + "line": 87, + "column": 6 + }, + "end": { + "line": 87, + "column": 46 + } + } + }, + "range": [ + 2602, + 2643 + ], + "loc": { + "start": { + "line": 87, + "column": 6 + }, + "end": { + "line": 87, + "column": 47 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "expect", + "range": [ + 2650, + 2656 + ], + "loc": { + "start": { + "line": 88, + "column": 6 + }, + "end": { + "line": 88, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 2657, + 2660 + ], + "loc": { + "start": { + "line": 88, + "column": 13 + }, + "end": { + "line": 88, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 2661, + 2664 + ], + "loc": { + "start": { + "line": 88, + "column": 17 + }, + "end": { + "line": 88, + "column": 20 + } + } + }, + "range": [ + 2657, + 2664 + ], + "loc": { + "start": { + "line": 88, + "column": 13 + }, + "end": { + "line": 88, + "column": 20 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "kv2", + "raw": "'kv2'", + "range": [ + 2665, + 2670 + ], + "loc": { + "start": { + "line": 88, + "column": 21 + }, + "end": { + "line": 88, + "column": 26 + } + } + } + ], + "range": [ + 2657, + 2671 + ], + "loc": { + "start": { + "line": 88, + "column": 13 + }, + "end": { + "line": 88, + "column": 27 + } + } + } + ], + "range": [ + 2650, + 2672 + ], + "loc": { + "start": { + "line": 88, + "column": 6 + }, + "end": { + "line": 88, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "to", + "range": [ + 2673, + 2675 + ], + "loc": { + "start": { + "line": 88, + "column": 29 + }, + "end": { + "line": 88, + "column": 31 + } + } + }, + "range": [ + 2650, + 2675 + ], + "loc": { + "start": { + "line": 88, + "column": 6 + }, + "end": { + "line": 88, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "eql", + "range": [ + 2676, + 2679 + ], + "loc": { + "start": { + "line": 88, + "column": 32 + }, + "end": { + "line": 88, + "column": 35 + } + } + }, + "range": [ + 2650, + 2679 + ], + "loc": { + "start": { + "line": 88, + "column": 6 + }, + "end": { + "line": 88, + "column": 35 + } + } + }, + "arguments": [ + { + "type": "ArrayExpression", + "elements": [ + { + "type": "Literal", + "value": "value2", + "raw": "'value2'", + "range": [ + 2681, + 2689 + ], + "loc": { + "start": { + "line": 88, + "column": 37 + }, + "end": { + "line": 88, + "column": 45 + } + } + } + ], + "range": [ + 2680, + 2690 + ], + "loc": { + "start": { + "line": 88, + "column": 36 + }, + "end": { + "line": 88, + "column": 46 + } + } + } + ], + "range": [ + 2650, + 2691 + ], + "loc": { + "start": { + "line": 88, + "column": 6 + }, + "end": { + "line": 88, + "column": 47 + } + } + }, + "range": [ + 2650, + 2692 + ], + "loc": { + "start": { + "line": 88, + "column": 6 + }, + "end": { + "line": 88, + "column": 48 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 2699, + 2702 + ], + "loc": { + "start": { + "line": 89, + "column": 6 + }, + "end": { + "line": 89, + "column": 9 + } + } + }, + "property": { + "type": "Identifier", + "name": "clear", + "range": [ + 2703, + 2708 + ], + "loc": { + "start": { + "line": 89, + "column": 10 + }, + "end": { + "line": 89, + "column": 15 + } + } + }, + "range": [ + 2699, + 2708 + ], + "loc": { + "start": { + "line": 89, + "column": 6 + }, + "end": { + "line": 89, + "column": 15 + } + } + }, + "arguments": [], + "range": [ + 2699, + 2710 + ], + "loc": { + "start": { + "line": 89, + "column": 6 + }, + "end": { + "line": 89, + "column": 17 + } + } + }, + "range": [ + 2699, + 2711 + ], + "loc": { + "start": { + "line": 89, + "column": 6 + }, + "end": { + "line": 89, + "column": 18 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "expect", + "range": [ + 2718, + 2724 + ], + "loc": { + "start": { + "line": 90, + "column": 6 + }, + "end": { + "line": 90, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 2725, + 2728 + ], + "loc": { + "start": { + "line": 90, + "column": 13 + }, + "end": { + "line": 90, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 2729, + 2732 + ], + "loc": { + "start": { + "line": 90, + "column": 17 + }, + "end": { + "line": 90, + "column": 20 + } + } + }, + "range": [ + 2725, + 2732 + ], + "loc": { + "start": { + "line": 90, + "column": 13 + }, + "end": { + "line": 90, + "column": 20 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "kv1", + "raw": "'kv1'", + "range": [ + 2733, + 2738 + ], + "loc": { + "start": { + "line": 90, + "column": 21 + }, + "end": { + "line": 90, + "column": 26 + } + } + } + ], + "range": [ + 2725, + 2739 + ], + "loc": { + "start": { + "line": 90, + "column": 13 + }, + "end": { + "line": 90, + "column": 27 + } + } + } + ], + "range": [ + 2718, + 2740 + ], + "loc": { + "start": { + "line": 90, + "column": 6 + }, + "end": { + "line": 90, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "to", + "range": [ + 2741, + 2743 + ], + "loc": { + "start": { + "line": 90, + "column": 29 + }, + "end": { + "line": 90, + "column": 31 + } + } + }, + "range": [ + 2718, + 2743 + ], + "loc": { + "start": { + "line": 90, + "column": 6 + }, + "end": { + "line": 90, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "be", + "range": [ + 2744, + 2746 + ], + "loc": { + "start": { + "line": 90, + "column": 32 + }, + "end": { + "line": 90, + "column": 34 + } + } + }, + "range": [ + 2718, + 2746 + ], + "loc": { + "start": { + "line": 90, + "column": 6 + }, + "end": { + "line": 90, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "an", + "range": [ + 2747, + 2749 + ], + "loc": { + "start": { + "line": 90, + "column": 35 + }, + "end": { + "line": 90, + "column": 37 + } + } + }, + "range": [ + 2718, + 2749 + ], + "loc": { + "start": { + "line": 90, + "column": 6 + }, + "end": { + "line": 90, + "column": 37 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "array", + "raw": "'array'", + "range": [ + 2750, + 2757 + ], + "loc": { + "start": { + "line": 90, + "column": 38 + }, + "end": { + "line": 90, + "column": 45 + } + } + } + ], + "range": [ + 2718, + 2758 + ], + "loc": { + "start": { + "line": 90, + "column": 6 + }, + "end": { + "line": 90, + "column": 46 + } + } + }, + "range": [ + 2718, + 2759 + ], + "loc": { + "start": { + "line": 90, + "column": 6 + }, + "end": { + "line": 90, + "column": 47 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "expect", + "range": [ + 2766, + 2772 + ], + "loc": { + "start": { + "line": 91, + "column": 6 + }, + "end": { + "line": 91, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 2773, + 2776 + ], + "loc": { + "start": { + "line": 91, + "column": 13 + }, + "end": { + "line": 91, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 2777, + 2780 + ], + "loc": { + "start": { + "line": 91, + "column": 17 + }, + "end": { + "line": 91, + "column": 20 + } + } + }, + "range": [ + 2773, + 2780 + ], + "loc": { + "start": { + "line": 91, + "column": 13 + }, + "end": { + "line": 91, + "column": 20 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "kv1", + "raw": "'kv1'", + "range": [ + 2781, + 2786 + ], + "loc": { + "start": { + "line": 91, + "column": 21 + }, + "end": { + "line": 91, + "column": 26 + } + } + } + ], + "range": [ + 2773, + 2787 + ], + "loc": { + "start": { + "line": 91, + "column": 13 + }, + "end": { + "line": 91, + "column": 27 + } + } + } + ], + "range": [ + 2766, + 2788 + ], + "loc": { + "start": { + "line": 91, + "column": 6 + }, + "end": { + "line": 91, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "to", + "range": [ + 2789, + 2791 + ], + "loc": { + "start": { + "line": 91, + "column": 29 + }, + "end": { + "line": 91, + "column": 31 + } + } + }, + "range": [ + 2766, + 2791 + ], + "loc": { + "start": { + "line": 91, + "column": 6 + }, + "end": { + "line": 91, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "empty", + "range": [ + 2792, + 2797 + ], + "loc": { + "start": { + "line": 91, + "column": 32 + }, + "end": { + "line": 91, + "column": 37 + } + } + }, + "range": [ + 2766, + 2797 + ], + "loc": { + "start": { + "line": 91, + "column": 6 + }, + "end": { + "line": 91, + "column": 37 + } + } + }, + "arguments": [], + "range": [ + 2766, + 2799 + ], + "loc": { + "start": { + "line": 91, + "column": 6 + }, + "end": { + "line": 91, + "column": 39 + } + } + }, + "range": [ + 2766, + 2800 + ], + "loc": { + "start": { + "line": 91, + "column": 6 + }, + "end": { + "line": 91, + "column": 40 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "expect", + "range": [ + 2807, + 2813 + ], + "loc": { + "start": { + "line": 92, + "column": 6 + }, + "end": { + "line": 92, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 2814, + 2817 + ], + "loc": { + "start": { + "line": 92, + "column": 13 + }, + "end": { + "line": 92, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 2818, + 2821 + ], + "loc": { + "start": { + "line": 92, + "column": 17 + }, + "end": { + "line": 92, + "column": 20 + } + } + }, + "range": [ + 2814, + 2821 + ], + "loc": { + "start": { + "line": 92, + "column": 13 + }, + "end": { + "line": 92, + "column": 20 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "kv2", + "raw": "'kv2'", + "range": [ + 2822, + 2827 + ], + "loc": { + "start": { + "line": 92, + "column": 21 + }, + "end": { + "line": 92, + "column": 26 + } + } + } + ], + "range": [ + 2814, + 2828 + ], + "loc": { + "start": { + "line": 92, + "column": 13 + }, + "end": { + "line": 92, + "column": 27 + } + } + } + ], + "range": [ + 2807, + 2829 + ], + "loc": { + "start": { + "line": 92, + "column": 6 + }, + "end": { + "line": 92, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "to", + "range": [ + 2830, + 2832 + ], + "loc": { + "start": { + "line": 92, + "column": 29 + }, + "end": { + "line": 92, + "column": 31 + } + } + }, + "range": [ + 2807, + 2832 + ], + "loc": { + "start": { + "line": 92, + "column": 6 + }, + "end": { + "line": 92, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "be", + "range": [ + 2833, + 2835 + ], + "loc": { + "start": { + "line": 92, + "column": 32 + }, + "end": { + "line": 92, + "column": 34 + } + } + }, + "range": [ + 2807, + 2835 + ], + "loc": { + "start": { + "line": 92, + "column": 6 + }, + "end": { + "line": 92, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "an", + "range": [ + 2836, + 2838 + ], + "loc": { + "start": { + "line": 92, + "column": 35 + }, + "end": { + "line": 92, + "column": 37 + } + } + }, + "range": [ + 2807, + 2838 + ], + "loc": { + "start": { + "line": 92, + "column": 6 + }, + "end": { + "line": 92, + "column": 37 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "array", + "raw": "'array'", + "range": [ + 2839, + 2846 + ], + "loc": { + "start": { + "line": 92, + "column": 38 + }, + "end": { + "line": 92, + "column": 45 + } + } + } + ], + "range": [ + 2807, + 2847 + ], + "loc": { + "start": { + "line": 92, + "column": 6 + }, + "end": { + "line": 92, + "column": 46 + } + } + }, + "range": [ + 2807, + 2848 + ], + "loc": { + "start": { + "line": 92, + "column": 6 + }, + "end": { + "line": 92, + "column": 47 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "expect", + "range": [ + 2855, + 2861 + ], + "loc": { + "start": { + "line": 93, + "column": 6 + }, + "end": { + "line": 93, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 2862, + 2865 + ], + "loc": { + "start": { + "line": 93, + "column": 13 + }, + "end": { + "line": 93, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 2866, + 2869 + ], + "loc": { + "start": { + "line": 93, + "column": 17 + }, + "end": { + "line": 93, + "column": 20 + } + } + }, + "range": [ + 2862, + 2869 + ], + "loc": { + "start": { + "line": 93, + "column": 13 + }, + "end": { + "line": 93, + "column": 20 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "kv2", + "raw": "'kv2'", + "range": [ + 2870, + 2875 + ], + "loc": { + "start": { + "line": 93, + "column": 21 + }, + "end": { + "line": 93, + "column": 26 + } + } + } + ], + "range": [ + 2862, + 2876 + ], + "loc": { + "start": { + "line": 93, + "column": 13 + }, + "end": { + "line": 93, + "column": 27 + } + } + } + ], + "range": [ + 2855, + 2877 + ], + "loc": { + "start": { + "line": 93, + "column": 6 + }, + "end": { + "line": 93, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "to", + "range": [ + 2878, + 2880 + ], + "loc": { + "start": { + "line": 93, + "column": 29 + }, + "end": { + "line": 93, + "column": 31 + } + } + }, + "range": [ + 2855, + 2880 + ], + "loc": { + "start": { + "line": 93, + "column": 6 + }, + "end": { + "line": 93, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "empty", + "range": [ + 2881, + 2886 + ], + "loc": { + "start": { + "line": 93, + "column": 32 + }, + "end": { + "line": 93, + "column": 37 + } + } + }, + "range": [ + 2855, + 2886 + ], + "loc": { + "start": { + "line": 93, + "column": 6 + }, + "end": { + "line": 93, + "column": 37 + } + } + }, + "arguments": [], + "range": [ + 2855, + 2888 + ], + "loc": { + "start": { + "line": 93, + "column": 6 + }, + "end": { + "line": 93, + "column": 39 + } + } + }, + "range": [ + 2855, + 2889 + ], + "loc": { + "start": { + "line": 93, + "column": 6 + }, + "end": { + "line": 93, + "column": 40 + } + } + } + ], + "range": [ + 2395, + 2895 + ], + "loc": { + "start": { + "line": 81, + "column": 37 + }, + "end": { + "line": 94, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2389, + 2895 + ], + "loc": { + "start": { + "line": 81, + "column": 31 + }, + "end": { + "line": 94, + "column": 5 + } + } + } + ], + "range": [ + 2362, + 2896 + ], + "loc": { + "start": { + "line": 81, + "column": 4 + }, + "end": { + "line": 94, + "column": 6 + } + }, + "_esdocTestId": 480, + "_esdocTestName": "it480" + }, + "range": [ + 2362, + 2897 + ], + "loc": { + "start": { + "line": 81, + "column": 4 + }, + "end": { + "line": 94, + "column": 7 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "it", + "range": [ + 2903, + 2905 + ], + "loc": { + "start": { + "line": 96, + "column": 4 + }, + "end": { + "line": 96, + "column": 6 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "clears specific targeting", + "raw": "'clears specific targeting'", + "range": [ + 2906, + 2933 + ], + "loc": { + "start": { + "line": 96, + "column": 7 + }, + "end": { + "line": 96, + "column": 34 + } + } + }, + { + "type": "ArrowFunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "map", + "range": [ + 2955, + 2958 + ], + "loc": { + "start": { + "line": 97, + "column": 12 + }, + "end": { + "line": 97, + "column": 15 + } + } + }, + "init": { + "type": "NewExpression", + "callee": { + "type": "Identifier", + "name": "TargetingMap", + "range": [ + 2965, + 2977 + ], + "loc": { + "start": { + "line": 97, + "column": 22 + }, + "end": { + "line": 97, + "column": 34 + } + } + }, + "arguments": [], + "range": [ + 2961, + 2979 + ], + "loc": { + "start": { + "line": 97, + "column": 18 + }, + "end": { + "line": 97, + "column": 36 + } + } + }, + "range": [ + 2955, + 2979 + ], + "loc": { + "start": { + "line": 97, + "column": 12 + }, + "end": { + "line": 97, + "column": 36 + } + } + } + ], + "kind": "const", + "range": [ + 2949, + 2980 + ], + "loc": { + "start": { + "line": 97, + "column": 6 + }, + "end": { + "line": 97, + "column": 37 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 2987, + 2990 + ], + "loc": { + "start": { + "line": 98, + "column": 6 + }, + "end": { + "line": 98, + "column": 9 + } + } + }, + "property": { + "type": "Identifier", + "name": "set", + "range": [ + 2991, + 2994 + ], + "loc": { + "start": { + "line": 98, + "column": 10 + }, + "end": { + "line": 98, + "column": 13 + } + } + }, + "range": [ + 2987, + 2994 + ], + "loc": { + "start": { + "line": 98, + "column": 6 + }, + "end": { + "line": 98, + "column": 13 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "kv1", + "raw": "'kv1'", + "range": [ + 2995, + 3000 + ], + "loc": { + "start": { + "line": 98, + "column": 14 + }, + "end": { + "line": 98, + "column": 19 + } + } + }, + { + "type": "Literal", + "value": "value1", + "raw": "'value1'", + "range": [ + 3002, + 3010 + ], + "loc": { + "start": { + "line": 98, + "column": 21 + }, + "end": { + "line": 98, + "column": 29 + } + } + } + ], + "range": [ + 2987, + 3011 + ], + "loc": { + "start": { + "line": 98, + "column": 6 + }, + "end": { + "line": 98, + "column": 30 + } + } + }, + "range": [ + 2987, + 3012 + ], + "loc": { + "start": { + "line": 98, + "column": 6 + }, + "end": { + "line": 98, + "column": 31 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 3019, + 3022 + ], + "loc": { + "start": { + "line": 99, + "column": 6 + }, + "end": { + "line": 99, + "column": 9 + } + } + }, + "property": { + "type": "Identifier", + "name": "set", + "range": [ + 3023, + 3026 + ], + "loc": { + "start": { + "line": 99, + "column": 10 + }, + "end": { + "line": 99, + "column": 13 + } + } + }, + "range": [ + 3019, + 3026 + ], + "loc": { + "start": { + "line": 99, + "column": 6 + }, + "end": { + "line": 99, + "column": 13 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "kv2", + "raw": "'kv2'", + "range": [ + 3027, + 3032 + ], + "loc": { + "start": { + "line": 99, + "column": 14 + }, + "end": { + "line": 99, + "column": 19 + } + } + }, + { + "type": "Literal", + "value": "value2", + "raw": "'value2'", + "range": [ + 3034, + 3042 + ], + "loc": { + "start": { + "line": 99, + "column": 21 + }, + "end": { + "line": 99, + "column": 29 + } + } + } + ], + "range": [ + 3019, + 3043 + ], + "loc": { + "start": { + "line": 99, + "column": 6 + }, + "end": { + "line": 99, + "column": 30 + } + } + }, + "range": [ + 3019, + 3044 + ], + "loc": { + "start": { + "line": 99, + "column": 6 + }, + "end": { + "line": 99, + "column": 31 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "expect", + "range": [ + 3051, + 3057 + ], + "loc": { + "start": { + "line": 100, + "column": 6 + }, + "end": { + "line": 100, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 3058, + 3061 + ], + "loc": { + "start": { + "line": 100, + "column": 13 + }, + "end": { + "line": 100, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 3062, + 3065 + ], + "loc": { + "start": { + "line": 100, + "column": 17 + }, + "end": { + "line": 100, + "column": 20 + } + } + }, + "range": [ + 3058, + 3065 + ], + "loc": { + "start": { + "line": 100, + "column": 13 + }, + "end": { + "line": 100, + "column": 20 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "kv1", + "raw": "'kv1'", + "range": [ + 3066, + 3071 + ], + "loc": { + "start": { + "line": 100, + "column": 21 + }, + "end": { + "line": 100, + "column": 26 + } + } + } + ], + "range": [ + 3058, + 3072 + ], + "loc": { + "start": { + "line": 100, + "column": 13 + }, + "end": { + "line": 100, + "column": 27 + } + } + } + ], + "range": [ + 3051, + 3073 + ], + "loc": { + "start": { + "line": 100, + "column": 6 + }, + "end": { + "line": 100, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "to", + "range": [ + 3074, + 3076 + ], + "loc": { + "start": { + "line": 100, + "column": 29 + }, + "end": { + "line": 100, + "column": 31 + } + } + }, + "range": [ + 3051, + 3076 + ], + "loc": { + "start": { + "line": 100, + "column": 6 + }, + "end": { + "line": 100, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "be", + "range": [ + 3077, + 3079 + ], + "loc": { + "start": { + "line": 100, + "column": 32 + }, + "end": { + "line": 100, + "column": 34 + } + } + }, + "range": [ + 3051, + 3079 + ], + "loc": { + "start": { + "line": 100, + "column": 6 + }, + "end": { + "line": 100, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "an", + "range": [ + 3080, + 3082 + ], + "loc": { + "start": { + "line": 100, + "column": 35 + }, + "end": { + "line": 100, + "column": 37 + } + } + }, + "range": [ + 3051, + 3082 + ], + "loc": { + "start": { + "line": 100, + "column": 6 + }, + "end": { + "line": 100, + "column": 37 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "array", + "raw": "'array'", + "range": [ + 3083, + 3090 + ], + "loc": { + "start": { + "line": 100, + "column": 38 + }, + "end": { + "line": 100, + "column": 45 + } + } + } + ], + "range": [ + 3051, + 3091 + ], + "loc": { + "start": { + "line": 100, + "column": 6 + }, + "end": { + "line": 100, + "column": 46 + } + } + }, + "range": [ + 3051, + 3092 + ], + "loc": { + "start": { + "line": 100, + "column": 6 + }, + "end": { + "line": 100, + "column": 47 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "expect", + "range": [ + 3099, + 3105 + ], + "loc": { + "start": { + "line": 101, + "column": 6 + }, + "end": { + "line": 101, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 3106, + 3109 + ], + "loc": { + "start": { + "line": 101, + "column": 13 + }, + "end": { + "line": 101, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 3110, + 3113 + ], + "loc": { + "start": { + "line": 101, + "column": 17 + }, + "end": { + "line": 101, + "column": 20 + } + } + }, + "range": [ + 3106, + 3113 + ], + "loc": { + "start": { + "line": 101, + "column": 13 + }, + "end": { + "line": 101, + "column": 20 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "kv1", + "raw": "'kv1'", + "range": [ + 3114, + 3119 + ], + "loc": { + "start": { + "line": 101, + "column": 21 + }, + "end": { + "line": 101, + "column": 26 + } + } + } + ], + "range": [ + 3106, + 3120 + ], + "loc": { + "start": { + "line": 101, + "column": 13 + }, + "end": { + "line": 101, + "column": 27 + } + } + } + ], + "range": [ + 3099, + 3121 + ], + "loc": { + "start": { + "line": 101, + "column": 6 + }, + "end": { + "line": 101, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "to", + "range": [ + 3122, + 3124 + ], + "loc": { + "start": { + "line": 101, + "column": 29 + }, + "end": { + "line": 101, + "column": 31 + } + } + }, + "range": [ + 3099, + 3124 + ], + "loc": { + "start": { + "line": 101, + "column": 6 + }, + "end": { + "line": 101, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "eql", + "range": [ + 3125, + 3128 + ], + "loc": { + "start": { + "line": 101, + "column": 32 + }, + "end": { + "line": 101, + "column": 35 + } + } + }, + "range": [ + 3099, + 3128 + ], + "loc": { + "start": { + "line": 101, + "column": 6 + }, + "end": { + "line": 101, + "column": 35 + } + } + }, + "arguments": [ + { + "type": "ArrayExpression", + "elements": [ + { + "type": "Literal", + "value": "value1", + "raw": "'value1'", + "range": [ + 3130, + 3138 + ], + "loc": { + "start": { + "line": 101, + "column": 37 + }, + "end": { + "line": 101, + "column": 45 + } + } + } + ], + "range": [ + 3129, + 3139 + ], + "loc": { + "start": { + "line": 101, + "column": 36 + }, + "end": { + "line": 101, + "column": 46 + } + } + } + ], + "range": [ + 3099, + 3140 + ], + "loc": { + "start": { + "line": 101, + "column": 6 + }, + "end": { + "line": 101, + "column": 47 + } + } + }, + "range": [ + 3099, + 3141 + ], + "loc": { + "start": { + "line": 101, + "column": 6 + }, + "end": { + "line": 101, + "column": 48 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "expect", + "range": [ + 3148, + 3154 + ], + "loc": { + "start": { + "line": 102, + "column": 6 + }, + "end": { + "line": 102, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 3155, + 3158 + ], + "loc": { + "start": { + "line": 102, + "column": 13 + }, + "end": { + "line": 102, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 3159, + 3162 + ], + "loc": { + "start": { + "line": 102, + "column": 17 + }, + "end": { + "line": 102, + "column": 20 + } + } + }, + "range": [ + 3155, + 3162 + ], + "loc": { + "start": { + "line": 102, + "column": 13 + }, + "end": { + "line": 102, + "column": 20 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "kv2", + "raw": "'kv2'", + "range": [ + 3163, + 3168 + ], + "loc": { + "start": { + "line": 102, + "column": 21 + }, + "end": { + "line": 102, + "column": 26 + } + } + } + ], + "range": [ + 3155, + 3169 + ], + "loc": { + "start": { + "line": 102, + "column": 13 + }, + "end": { + "line": 102, + "column": 27 + } + } + } + ], + "range": [ + 3148, + 3170 + ], + "loc": { + "start": { + "line": 102, + "column": 6 + }, + "end": { + "line": 102, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "to", + "range": [ + 3171, + 3173 + ], + "loc": { + "start": { + "line": 102, + "column": 29 + }, + "end": { + "line": 102, + "column": 31 + } + } + }, + "range": [ + 3148, + 3173 + ], + "loc": { + "start": { + "line": 102, + "column": 6 + }, + "end": { + "line": 102, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "be", + "range": [ + 3174, + 3176 + ], + "loc": { + "start": { + "line": 102, + "column": 32 + }, + "end": { + "line": 102, + "column": 34 + } + } + }, + "range": [ + 3148, + 3176 + ], + "loc": { + "start": { + "line": 102, + "column": 6 + }, + "end": { + "line": 102, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "an", + "range": [ + 3177, + 3179 + ], + "loc": { + "start": { + "line": 102, + "column": 35 + }, + "end": { + "line": 102, + "column": 37 + } + } + }, + "range": [ + 3148, + 3179 + ], + "loc": { + "start": { + "line": 102, + "column": 6 + }, + "end": { + "line": 102, + "column": 37 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "array", + "raw": "'array'", + "range": [ + 3180, + 3187 + ], + "loc": { + "start": { + "line": 102, + "column": 38 + }, + "end": { + "line": 102, + "column": 45 + } + } + } + ], + "range": [ + 3148, + 3188 + ], + "loc": { + "start": { + "line": 102, + "column": 6 + }, + "end": { + "line": 102, + "column": 46 + } + } + }, + "range": [ + 3148, + 3189 + ], + "loc": { + "start": { + "line": 102, + "column": 6 + }, + "end": { + "line": 102, + "column": 47 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "expect", + "range": [ + 3196, + 3202 + ], + "loc": { + "start": { + "line": 103, + "column": 6 + }, + "end": { + "line": 103, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 3203, + 3206 + ], + "loc": { + "start": { + "line": 103, + "column": 13 + }, + "end": { + "line": 103, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 3207, + 3210 + ], + "loc": { + "start": { + "line": 103, + "column": 17 + }, + "end": { + "line": 103, + "column": 20 + } + } + }, + "range": [ + 3203, + 3210 + ], + "loc": { + "start": { + "line": 103, + "column": 13 + }, + "end": { + "line": 103, + "column": 20 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "kv2", + "raw": "'kv2'", + "range": [ + 3211, + 3216 + ], + "loc": { + "start": { + "line": 103, + "column": 21 + }, + "end": { + "line": 103, + "column": 26 + } + } + } + ], + "range": [ + 3203, + 3217 + ], + "loc": { + "start": { + "line": 103, + "column": 13 + }, + "end": { + "line": 103, + "column": 27 + } + } + } + ], + "range": [ + 3196, + 3218 + ], + "loc": { + "start": { + "line": 103, + "column": 6 + }, + "end": { + "line": 103, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "to", + "range": [ + 3219, + 3221 + ], + "loc": { + "start": { + "line": 103, + "column": 29 + }, + "end": { + "line": 103, + "column": 31 + } + } + }, + "range": [ + 3196, + 3221 + ], + "loc": { + "start": { + "line": 103, + "column": 6 + }, + "end": { + "line": 103, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "eql", + "range": [ + 3222, + 3225 + ], + "loc": { + "start": { + "line": 103, + "column": 32 + }, + "end": { + "line": 103, + "column": 35 + } + } + }, + "range": [ + 3196, + 3225 + ], + "loc": { + "start": { + "line": 103, + "column": 6 + }, + "end": { + "line": 103, + "column": 35 + } + } + }, + "arguments": [ + { + "type": "ArrayExpression", + "elements": [ + { + "type": "Literal", + "value": "value2", + "raw": "'value2'", + "range": [ + 3227, + 3235 + ], + "loc": { + "start": { + "line": 103, + "column": 37 + }, + "end": { + "line": 103, + "column": 45 + } + } + } + ], + "range": [ + 3226, + 3236 + ], + "loc": { + "start": { + "line": 103, + "column": 36 + }, + "end": { + "line": 103, + "column": 46 + } + } + } + ], + "range": [ + 3196, + 3237 + ], + "loc": { + "start": { + "line": 103, + "column": 6 + }, + "end": { + "line": 103, + "column": 47 + } + } + }, + "range": [ + 3196, + 3238 + ], + "loc": { + "start": { + "line": 103, + "column": 6 + }, + "end": { + "line": 103, + "column": 48 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 3245, + 3248 + ], + "loc": { + "start": { + "line": 104, + "column": 6 + }, + "end": { + "line": 104, + "column": 9 + } + } + }, + "property": { + "type": "Identifier", + "name": "clear", + "range": [ + 3249, + 3254 + ], + "loc": { + "start": { + "line": 104, + "column": 10 + }, + "end": { + "line": 104, + "column": 15 + } + } + }, + "range": [ + 3245, + 3254 + ], + "loc": { + "start": { + "line": 104, + "column": 6 + }, + "end": { + "line": 104, + "column": 15 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "kv2", + "raw": "'kv2'", + "range": [ + 3255, + 3260 + ], + "loc": { + "start": { + "line": 104, + "column": 16 + }, + "end": { + "line": 104, + "column": 21 + } + } + } + ], + "range": [ + 3245, + 3261 + ], + "loc": { + "start": { + "line": 104, + "column": 6 + }, + "end": { + "line": 104, + "column": 22 + } + } + }, + "range": [ + 3245, + 3262 + ], + "loc": { + "start": { + "line": 104, + "column": 6 + }, + "end": { + "line": 104, + "column": 23 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "expect", + "range": [ + 3269, + 3275 + ], + "loc": { + "start": { + "line": 105, + "column": 6 + }, + "end": { + "line": 105, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 3276, + 3279 + ], + "loc": { + "start": { + "line": 105, + "column": 13 + }, + "end": { + "line": 105, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 3280, + 3283 + ], + "loc": { + "start": { + "line": 105, + "column": 17 + }, + "end": { + "line": 105, + "column": 20 + } + } + }, + "range": [ + 3276, + 3283 + ], + "loc": { + "start": { + "line": 105, + "column": 13 + }, + "end": { + "line": 105, + "column": 20 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "kv1", + "raw": "'kv1'", + "range": [ + 3284, + 3289 + ], + "loc": { + "start": { + "line": 105, + "column": 21 + }, + "end": { + "line": 105, + "column": 26 + } + } + } + ], + "range": [ + 3276, + 3290 + ], + "loc": { + "start": { + "line": 105, + "column": 13 + }, + "end": { + "line": 105, + "column": 27 + } + } + } + ], + "range": [ + 3269, + 3291 + ], + "loc": { + "start": { + "line": 105, + "column": 6 + }, + "end": { + "line": 105, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "to", + "range": [ + 3292, + 3294 + ], + "loc": { + "start": { + "line": 105, + "column": 29 + }, + "end": { + "line": 105, + "column": 31 + } + } + }, + "range": [ + 3269, + 3294 + ], + "loc": { + "start": { + "line": 105, + "column": 6 + }, + "end": { + "line": 105, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "be", + "range": [ + 3295, + 3297 + ], + "loc": { + "start": { + "line": 105, + "column": 32 + }, + "end": { + "line": 105, + "column": 34 + } + } + }, + "range": [ + 3269, + 3297 + ], + "loc": { + "start": { + "line": 105, + "column": 6 + }, + "end": { + "line": 105, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "an", + "range": [ + 3298, + 3300 + ], + "loc": { + "start": { + "line": 105, + "column": 35 + }, + "end": { + "line": 105, + "column": 37 + } + } + }, + "range": [ + 3269, + 3300 + ], + "loc": { + "start": { + "line": 105, + "column": 6 + }, + "end": { + "line": 105, + "column": 37 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "array", + "raw": "'array'", + "range": [ + 3301, + 3308 + ], + "loc": { + "start": { + "line": 105, + "column": 38 + }, + "end": { + "line": 105, + "column": 45 + } + } + } + ], + "range": [ + 3269, + 3309 + ], + "loc": { + "start": { + "line": 105, + "column": 6 + }, + "end": { + "line": 105, + "column": 46 + } + } + }, + "range": [ + 3269, + 3310 + ], + "loc": { + "start": { + "line": 105, + "column": 6 + }, + "end": { + "line": 105, + "column": 47 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "expect", + "range": [ + 3317, + 3323 + ], + "loc": { + "start": { + "line": 106, + "column": 6 + }, + "end": { + "line": 106, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 3324, + 3327 + ], + "loc": { + "start": { + "line": 106, + "column": 13 + }, + "end": { + "line": 106, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 3328, + 3331 + ], + "loc": { + "start": { + "line": 106, + "column": 17 + }, + "end": { + "line": 106, + "column": 20 + } + } + }, + "range": [ + 3324, + 3331 + ], + "loc": { + "start": { + "line": 106, + "column": 13 + }, + "end": { + "line": 106, + "column": 20 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "kv1", + "raw": "'kv1'", + "range": [ + 3332, + 3337 + ], + "loc": { + "start": { + "line": 106, + "column": 21 + }, + "end": { + "line": 106, + "column": 26 + } + } + } + ], + "range": [ + 3324, + 3338 + ], + "loc": { + "start": { + "line": 106, + "column": 13 + }, + "end": { + "line": 106, + "column": 27 + } + } + } + ], + "range": [ + 3317, + 3339 + ], + "loc": { + "start": { + "line": 106, + "column": 6 + }, + "end": { + "line": 106, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "to", + "range": [ + 3340, + 3342 + ], + "loc": { + "start": { + "line": 106, + "column": 29 + }, + "end": { + "line": 106, + "column": 31 + } + } + }, + "range": [ + 3317, + 3342 + ], + "loc": { + "start": { + "line": 106, + "column": 6 + }, + "end": { + "line": 106, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "eql", + "range": [ + 3343, + 3346 + ], + "loc": { + "start": { + "line": 106, + "column": 32 + }, + "end": { + "line": 106, + "column": 35 + } + } + }, + "range": [ + 3317, + 3346 + ], + "loc": { + "start": { + "line": 106, + "column": 6 + }, + "end": { + "line": 106, + "column": 35 + } + } + }, + "arguments": [ + { + "type": "ArrayExpression", + "elements": [ + { + "type": "Literal", + "value": "value1", + "raw": "'value1'", + "range": [ + 3348, + 3356 + ], + "loc": { + "start": { + "line": 106, + "column": 37 + }, + "end": { + "line": 106, + "column": 45 + } + } + } + ], + "range": [ + 3347, + 3357 + ], + "loc": { + "start": { + "line": 106, + "column": 36 + }, + "end": { + "line": 106, + "column": 46 + } + } + } + ], + "range": [ + 3317, + 3358 + ], + "loc": { + "start": { + "line": 106, + "column": 6 + }, + "end": { + "line": 106, + "column": 47 + } + } + }, + "range": [ + 3317, + 3359 + ], + "loc": { + "start": { + "line": 106, + "column": 6 + }, + "end": { + "line": 106, + "column": 48 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "expect", + "range": [ + 3366, + 3372 + ], + "loc": { + "start": { + "line": 107, + "column": 6 + }, + "end": { + "line": 107, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 3373, + 3376 + ], + "loc": { + "start": { + "line": 107, + "column": 13 + }, + "end": { + "line": 107, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 3377, + 3380 + ], + "loc": { + "start": { + "line": 107, + "column": 17 + }, + "end": { + "line": 107, + "column": 20 + } + } + }, + "range": [ + 3373, + 3380 + ], + "loc": { + "start": { + "line": 107, + "column": 13 + }, + "end": { + "line": 107, + "column": 20 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "kv2", + "raw": "'kv2'", + "range": [ + 3381, + 3386 + ], + "loc": { + "start": { + "line": 107, + "column": 21 + }, + "end": { + "line": 107, + "column": 26 + } + } + } + ], + "range": [ + 3373, + 3387 + ], + "loc": { + "start": { + "line": 107, + "column": 13 + }, + "end": { + "line": 107, + "column": 27 + } + } + } + ], + "range": [ + 3366, + 3388 + ], + "loc": { + "start": { + "line": 107, + "column": 6 + }, + "end": { + "line": 107, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "to", + "range": [ + 3389, + 3391 + ], + "loc": { + "start": { + "line": 107, + "column": 29 + }, + "end": { + "line": 107, + "column": 31 + } + } + }, + "range": [ + 3366, + 3391 + ], + "loc": { + "start": { + "line": 107, + "column": 6 + }, + "end": { + "line": 107, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "be", + "range": [ + 3392, + 3394 + ], + "loc": { + "start": { + "line": 107, + "column": 32 + }, + "end": { + "line": 107, + "column": 34 + } + } + }, + "range": [ + 3366, + 3394 + ], + "loc": { + "start": { + "line": 107, + "column": 6 + }, + "end": { + "line": 107, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "name": "an", + "range": [ + 3395, + 3397 + ], + "loc": { + "start": { + "line": 107, + "column": 35 + }, + "end": { + "line": 107, + "column": 37 + } + } + }, + "range": [ + 3366, + 3397 + ], + "loc": { + "start": { + "line": 107, + "column": 6 + }, + "end": { + "line": 107, + "column": 37 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "array", + "raw": "'array'", + "range": [ + 3398, + 3405 + ], + "loc": { + "start": { + "line": 107, + "column": 38 + }, + "end": { + "line": 107, + "column": 45 + } + } + } + ], + "range": [ + 3366, + 3406 + ], + "loc": { + "start": { + "line": 107, + "column": 6 + }, + "end": { + "line": 107, + "column": 46 + } + } + }, + "range": [ + 3366, + 3407 + ], + "loc": { + "start": { + "line": 107, + "column": 6 + }, + "end": { + "line": 107, + "column": 47 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "expect", + "range": [ + 3414, + 3420 + ], + "loc": { + "start": { + "line": 108, + "column": 6 + }, + "end": { + "line": 108, + "column": 12 + } + } + }, + "arguments": [ + { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "map", + "range": [ + 3421, + 3424 + ], + "loc": { + "start": { + "line": 108, + "column": 13 + }, + "end": { + "line": 108, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "name": "get", + "range": [ + 3425, + 3428 + ], + "loc": { + "start": { + "line": 108, + "column": 17 + }, + "end": { + "line": 108, + "column": 20 + } + } + }, + "range": [ + 3421, + 3428 + ], + "loc": { + "start": { + "line": 108, + "column": 13 + }, + "end": { + "line": 108, + "column": 20 + } + } + }, + "arguments": [ + { + "type": "Literal", + "value": "kv2", + "raw": "'kv2'", + "range": [ + 3429, + 3434 + ], + "loc": { + "start": { + "line": 108, + "column": 21 + }, + "end": { + "line": 108, + "column": 26 + } + } + } + ], + "range": [ + 3421, + 3435 + ], + "loc": { + "start": { + "line": 108, + "column": 13 + }, + "end": { + "line": 108, + "column": 27 + } + } + } + ], + "range": [ + 3414, + 3436 + ], + "loc": { + "start": { + "line": 108, + "column": 6 + }, + "end": { + "line": 108, + "column": 28 + } + } + }, + "property": { + "type": "Identifier", + "name": "to", + "range": [ + 3437, + 3439 + ], + "loc": { + "start": { + "line": 108, + "column": 29 + }, + "end": { + "line": 108, + "column": 31 + } + } + }, + "range": [ + 3414, + 3439 + ], + "loc": { + "start": { + "line": 108, + "column": 6 + }, + "end": { + "line": 108, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "name": "empty", + "range": [ + 3440, + 3445 + ], + "loc": { + "start": { + "line": 108, + "column": 32 + }, + "end": { + "line": 108, + "column": 37 + } + } + }, + "range": [ + 3414, + 3445 + ], + "loc": { + "start": { + "line": 108, + "column": 6 + }, + "end": { + "line": 108, + "column": 37 + } + } + }, + "arguments": [], + "range": [ + 3414, + 3447 + ], + "loc": { + "start": { + "line": 108, + "column": 6 + }, + "end": { + "line": 108, + "column": 39 + } + } + }, + "range": [ + 3414, + 3448 + ], + "loc": { + "start": { + "line": 108, + "column": 6 + }, + "end": { + "line": 108, + "column": 40 + } + } + } + ], + "range": [ + 2941, + 3454 + ], + "loc": { + "start": { + "line": 96, + "column": 42 + }, + "end": { + "line": 109, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2935, + 3454 + ], + "loc": { + "start": { + "line": 96, + "column": 36 + }, + "end": { + "line": 109, + "column": 5 + } + } + } + ], + "range": [ + 2903, + 3455 + ], + "loc": { + "start": { + "line": 96, + "column": 4 + }, + "end": { + "line": 109, + "column": 6 + } + }, + "_esdocTestId": 481, + "_esdocTestName": "it481" + }, + "range": [ + 2903, + 3456 + ], + "loc": { + "start": { + "line": 96, + "column": 4 + }, + "end": { + "line": 109, + "column": 7 + } + } + } + ], + "range": [ + 2356, + 3460 + ], + "loc": { + "start": { + "line": 80, + "column": 27 + }, + "end": { + "line": 110, + "column": 3 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 2350, + 3460 + ], + "loc": { + "start": { + "line": 80, + "column": 21 + }, + "end": { + "line": 110, + "column": 3 + } + } + } + ], + "range": [ + 2331, + 3461 + ], + "loc": { + "start": { + "line": 80, + "column": 2 + }, + "end": { + "line": 110, + "column": 4 + } + }, + "_esdocTestId": 479, + "_esdocTestName": "describe479" + }, + "range": [ + 2331, + 3462 + ], + "loc": { + "start": { + "line": 80, + "column": 2 + }, + "end": { + "line": 110, + "column": 5 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "* @test {TargetingMap#clear} ", + "range": [ + 2295, + 2328 + ], + "loc": { + "start": { + "line": 79, + "column": 2 + }, + "end": { + "line": 79, + "column": 35 + } + } + } + ] + } + ], + "range": [ + 111, + 3464 + ], + "loc": { + "start": { + "line": 4, + "column": 31 + }, + "end": { + "line": 111, + "column": 1 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 105, + 3464 + ], + "loc": { + "start": { + "line": 4, + "column": 25 + }, + "end": { + "line": 111, + "column": 1 + } + } + } + ], + "range": [ + 80, + 3465 + ], + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 111, + "column": 2 + } + }, + "_esdocTestId": 466, + "_esdocTestName": "describe466" + }, + "range": [ + 80, + 3466 + ], + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 111, + "column": 3 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "* @test {TargetingMap} ", + "range": [ + 52, + 79 + ], + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 27 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 0, + 3466 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 111, + "column": 3 + } + }, + "comments": [ + { + "type": "Block", + "value": "* @test {TargetingMap} ", + "range": [ + 52, + 79 + ], + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 27 + } + } + }, + { + "type": "Block", + "value": "* @test {TargetingMap#get} ", + "range": [ + 115, + 146 + ], + "loc": { + "start": { + "line": 5, + "column": 2 + }, + "end": { + "line": 5, + "column": 33 + } + } + }, + { + "type": "Block", + "value": "* @test {TargetingMap#keys} ", + "range": [ + 601, + 633 + ], + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 21, + "column": 34 + } + } + }, + { + "type": "Block", + "value": "* @test {TargetingMap#all} ", + "range": [ + 1094, + 1125 + ], + "loc": { + "start": { + "line": 38, + "column": 2 + }, + "end": { + "line": 38, + "column": 33 + } + } + }, + { + "type": "Block", + "value": "* @test {TargetingMap#set} ", + "range": [ + 1451, + 1482 + ], + "loc": { + "start": { + "line": 52, + "column": 2 + }, + "end": { + "line": 52, + "column": 33 + } + } + }, + { + "type": "Block", + "value": "* @test {TargetingMap#clear} ", + "range": [ + 2295, + 2328 + ], + "loc": { + "start": { + "line": 79, + "column": 2 + }, + "end": { + "line": 79, + "column": 35 + } + } + } + ] +} \ No newline at end of file diff --git a/docs/ast/test/events/ImpressionViewableEvent.spec.js.json b/docs/ast/test/events/ImpressionViewableEvent.spec.js.json index d56be31..fc27899 100644 --- a/docs/ast/test/events/ImpressionViewableEvent.spec.js.json +++ b/docs/ast/test/events/ImpressionViewableEvent.spec.js.json @@ -783,8 +783,8 @@ "column": 6 } }, - "_esdocTestId": 468, - "_esdocTestName": "it468" + "_esdocTestId": 484, + "_esdocTestName": "it484" }, "range": [ 321, @@ -849,8 +849,8 @@ "column": 4 } }, - "_esdocTestId": 467, - "_esdocTestName": "describe467" + "_esdocTestId": 483, + "_esdocTestName": "describe483" }, "range": [ 284, @@ -1399,8 +1399,8 @@ "column": 6 } }, - "_esdocTestId": 470, - "_esdocTestName": "it470" + "_esdocTestId": 486, + "_esdocTestName": "it486" }, "range": [ 541, @@ -1465,8 +1465,8 @@ "column": 4 } }, - "_esdocTestId": 469, - "_esdocTestName": "describe469" + "_esdocTestId": 485, + "_esdocTestName": "describe485" }, "range": [ 510, @@ -2014,8 +2014,8 @@ "column": 6 } }, - "_esdocTestId": 472, - "_esdocTestName": "it472" + "_esdocTestId": 488, + "_esdocTestName": "it488" }, "range": [ 820, @@ -2080,8 +2080,8 @@ "column": 4 } }, - "_esdocTestId": 471, - "_esdocTestName": "describe471" + "_esdocTestId": 487, + "_esdocTestName": "describe487" }, "range": [ 783, @@ -2629,8 +2629,8 @@ "column": 6 } }, - "_esdocTestId": 474, - "_esdocTestName": "it474" + "_esdocTestId": 490, + "_esdocTestName": "it490" }, "range": [ 1067, @@ -2695,8 +2695,8 @@ "column": 4 } }, - "_esdocTestId": 473, - "_esdocTestName": "describe473" + "_esdocTestId": 489, + "_esdocTestName": "describe489" }, "range": [ 1037, @@ -2781,8 +2781,8 @@ "column": 2 } }, - "_esdocTestId": 466, - "_esdocTestName": "describe466" + "_esdocTestId": 482, + "_esdocTestName": "describe482" }, "range": [ 123, diff --git a/docs/ast/test/events/SlotOnloadEvent.spec.js.json b/docs/ast/test/events/SlotOnloadEvent.spec.js.json index 166f419..2511191 100644 --- a/docs/ast/test/events/SlotOnloadEvent.spec.js.json +++ b/docs/ast/test/events/SlotOnloadEvent.spec.js.json @@ -783,8 +783,8 @@ "column": 6 } }, - "_esdocTestId": 477, - "_esdocTestName": "it477" + "_esdocTestId": 493, + "_esdocTestName": "it493" }, "range": [ 281, @@ -849,8 +849,8 @@ "column": 4 } }, - "_esdocTestId": 476, - "_esdocTestName": "describe476" + "_esdocTestId": 492, + "_esdocTestName": "describe492" }, "range": [ 244, @@ -1399,8 +1399,8 @@ "column": 6 } }, - "_esdocTestId": 479, - "_esdocTestName": "it479" + "_esdocTestId": 495, + "_esdocTestName": "it495" }, "range": [ 485, @@ -1465,8 +1465,8 @@ "column": 4 } }, - "_esdocTestId": 478, - "_esdocTestName": "describe478" + "_esdocTestId": 494, + "_esdocTestName": "describe494" }, "range": [ 454, @@ -2014,8 +2014,8 @@ "column": 6 } }, - "_esdocTestId": 481, - "_esdocTestName": "it481" + "_esdocTestId": 497, + "_esdocTestName": "it497" }, "range": [ 741, @@ -2080,8 +2080,8 @@ "column": 4 } }, - "_esdocTestId": 480, - "_esdocTestName": "describe480" + "_esdocTestId": 496, + "_esdocTestName": "describe496" }, "range": [ 704, @@ -2629,8 +2629,8 @@ "column": 6 } }, - "_esdocTestId": 483, - "_esdocTestName": "it483" + "_esdocTestId": 499, + "_esdocTestName": "it499" }, "range": [ 972, @@ -2695,8 +2695,8 @@ "column": 4 } }, - "_esdocTestId": 482, - "_esdocTestName": "describe482" + "_esdocTestId": 498, + "_esdocTestName": "describe498" }, "range": [ 942, @@ -2781,8 +2781,8 @@ "column": 2 } }, - "_esdocTestId": 475, - "_esdocTestName": "describe475" + "_esdocTestId": 491, + "_esdocTestName": "describe491" }, "range": [ 99, diff --git a/docs/ast/test/events/SlotRenderEndedEvent.spec.js.json b/docs/ast/test/events/SlotRenderEndedEvent.spec.js.json index 1ebe735..5e81642 100644 --- a/docs/ast/test/events/SlotRenderEndedEvent.spec.js.json +++ b/docs/ast/test/events/SlotRenderEndedEvent.spec.js.json @@ -1299,8 +1299,8 @@ "column": 6 } }, - "_esdocTestId": 486, - "_esdocTestName": "it486" + "_esdocTestId": 502, + "_esdocTestName": "it502" }, "range": [ 541, @@ -1365,8 +1365,8 @@ "column": 4 } }, - "_esdocTestId": 485, - "_esdocTestName": "describe485" + "_esdocTestId": 501, + "_esdocTestName": "describe501" }, "range": [ 504, @@ -1878,8 +1878,8 @@ "column": 6 } }, - "_esdocTestId": 488, - "_esdocTestName": "it488" + "_esdocTestId": 504, + "_esdocTestName": "it504" }, "range": [ 726, @@ -1944,8 +1944,8 @@ "column": 4 } }, - "_esdocTestId": 487, - "_esdocTestName": "describe487" + "_esdocTestId": 503, + "_esdocTestName": "describe503" }, "range": [ 695, @@ -2456,8 +2456,8 @@ "column": 6 } }, - "_esdocTestId": 490, - "_esdocTestName": "it490" + "_esdocTestId": 506, + "_esdocTestName": "it506" }, "range": [ 968, @@ -2522,8 +2522,8 @@ "column": 4 } }, - "_esdocTestId": 489, - "_esdocTestName": "describe489" + "_esdocTestId": 505, + "_esdocTestName": "describe505" }, "range": [ 931, @@ -3034,8 +3034,8 @@ "column": 6 } }, - "_esdocTestId": 492, - "_esdocTestName": "it492" + "_esdocTestId": 508, + "_esdocTestName": "it508" }, "range": [ 1180, @@ -3100,8 +3100,8 @@ "column": 4 } }, - "_esdocTestId": 491, - "_esdocTestName": "describe491" + "_esdocTestId": 507, + "_esdocTestName": "describe507" }, "range": [ 1150, @@ -3612,8 +3612,8 @@ "column": 6 } }, - "_esdocTestId": 494, - "_esdocTestName": "it494" + "_esdocTestId": 510, + "_esdocTestName": "it510" }, "range": [ 1383, @@ -3678,8 +3678,8 @@ "column": 4 } }, - "_esdocTestId": 493, - "_esdocTestName": "describe493" + "_esdocTestId": 509, + "_esdocTestName": "describe509" }, "range": [ 1347, @@ -4190,8 +4190,8 @@ "column": 6 } }, - "_esdocTestId": 496, - "_esdocTestName": "it496" + "_esdocTestId": 512, + "_esdocTestName": "it512" }, "range": [ 1598, @@ -4256,8 +4256,8 @@ "column": 4 } }, - "_esdocTestId": 495, - "_esdocTestName": "describe495" + "_esdocTestId": 511, + "_esdocTestName": "describe511" }, "range": [ 1565, @@ -4768,8 +4768,8 @@ "column": 6 } }, - "_esdocTestId": 498, - "_esdocTestName": "it498" + "_esdocTestId": 514, + "_esdocTestName": "it514" }, "range": [ 1810, @@ -4834,8 +4834,8 @@ "column": 4 } }, - "_esdocTestId": 497, - "_esdocTestName": "describe497" + "_esdocTestId": 513, + "_esdocTestName": "describe513" }, "range": [ 1774, @@ -5346,8 +5346,8 @@ "column": 6 } }, - "_esdocTestId": 500, - "_esdocTestName": "it500" + "_esdocTestId": 516, + "_esdocTestName": "it516" }, "range": [ 2019, @@ -5412,8 +5412,8 @@ "column": 4 } }, - "_esdocTestId": 499, - "_esdocTestName": "describe499" + "_esdocTestId": 515, + "_esdocTestName": "describe515" }, "range": [ 1989, @@ -5498,8 +5498,8 @@ "column": 2 } }, - "_esdocTestId": 484, - "_esdocTestName": "describe484" + "_esdocTestId": 500, + "_esdocTestName": "describe500" }, "range": [ 114, diff --git a/docs/ast/test/events/SlotVisibilityChangedEvent.spec.js.json b/docs/ast/test/events/SlotVisibilityChangedEvent.spec.js.json index 57d2bcb..9d12ce4 100644 --- a/docs/ast/test/events/SlotVisibilityChangedEvent.spec.js.json +++ b/docs/ast/test/events/SlotVisibilityChangedEvent.spec.js.json @@ -875,8 +875,8 @@ "column": 6 } }, - "_esdocTestId": 503, - "_esdocTestName": "it503" + "_esdocTestId": 519, + "_esdocTestName": "it519" }, "range": [ 367, @@ -941,8 +941,8 @@ "column": 4 } }, - "_esdocTestId": 502, - "_esdocTestName": "describe502" + "_esdocTestId": 518, + "_esdocTestName": "describe518" }, "range": [ 330, @@ -1509,8 +1509,8 @@ "column": 6 } }, - "_esdocTestId": 505, - "_esdocTestName": "it505" + "_esdocTestId": 521, + "_esdocTestName": "it521" }, "range": [ 611, @@ -1575,8 +1575,8 @@ "column": 4 } }, - "_esdocTestId": 504, - "_esdocTestName": "describe504" + "_esdocTestId": 520, + "_esdocTestName": "describe520" }, "range": [ 580, @@ -2142,8 +2142,8 @@ "column": 6 } }, - "_esdocTestId": 507, - "_esdocTestName": "it507" + "_esdocTestId": 523, + "_esdocTestName": "it523" }, "range": [ 918, @@ -2208,8 +2208,8 @@ "column": 4 } }, - "_esdocTestId": 506, - "_esdocTestName": "describe506" + "_esdocTestId": 522, + "_esdocTestName": "describe522" }, "range": [ 881, @@ -2775,8 +2775,8 @@ "column": 6 } }, - "_esdocTestId": 509, - "_esdocTestName": "it509" + "_esdocTestId": 525, + "_esdocTestName": "it525" }, "range": [ 1189, @@ -2841,8 +2841,8 @@ "column": 4 } }, - "_esdocTestId": 508, - "_esdocTestName": "describe508" + "_esdocTestId": 524, + "_esdocTestName": "describe524" }, "range": [ 1159, @@ -3408,8 +3408,8 @@ "column": 6 } }, - "_esdocTestId": 511, - "_esdocTestName": "it511" + "_esdocTestId": 527, + "_esdocTestName": "it527" }, "range": [ 1463, @@ -3474,8 +3474,8 @@ "column": 4 } }, - "_esdocTestId": 510, - "_esdocTestName": "describe510" + "_esdocTestId": 526, + "_esdocTestName": "describe526" }, "range": [ 1421, @@ -3560,8 +3560,8 @@ "column": 2 } }, - "_esdocTestId": 501, - "_esdocTestName": "describe501" + "_esdocTestId": 517, + "_esdocTestName": "describe517" }, "range": [ 132, diff --git a/docs/class/src/CommandArray.js~CommandArray.html b/docs/class/src/CommandArray.js~CommandArray.html index 37f3700..dbb75cd 100644 --- a/docs/class/src/CommandArray.js~CommandArray.html +++ b/docs/class/src/CommandArray.js~CommandArray.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/class/src/CompanionAdsService.js~CompanionAdsService.html b/docs/class/src/CompanionAdsService.js~CompanionAdsService.html index ca25b82..bf97a0f 100644 --- a/docs/class/src/CompanionAdsService.js~CompanionAdsService.html +++ b/docs/class/src/CompanionAdsService.js~CompanionAdsService.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • @@ -211,7 +212,7 @@

    Test:

    - addEventListener(eventType: string, listener: function(event: object)): Service + addEventListener(eventType: string, listener: function(event: Object)): Service

    @@ -368,13 +369,13 @@

    Test:

    this method is experimental.
    -

    Returns a map of ID's to slots.

    +

    Returns a map of IDs to slots.

    diff --git a/docs/class/src/ContentService.js~ContentService.html b/docs/class/src/ContentService.js~ContentService.html index f74100c..d0bdfc3 100644 --- a/docs/class/src/ContentService.js~ContentService.html +++ b/docs/class/src/ContentService.js~ContentService.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • @@ -210,7 +211,7 @@

    Test:

    - addEventListener(eventType: string, listener: function(event: object)): Service + addEventListener(eventType: string, listener: function(event: Object)): Service

    @@ -367,13 +368,13 @@

    Test:

    this method is experimental.
    -

    Returns a map of ID's to slots.

    +

    Returns a map of IDs to slots.

    diff --git a/docs/class/src/GPT.js~GPT.html b/docs/class/src/GPT.js~GPT.html index 150939c..0dad37e 100644 --- a/docs/class/src/GPT.js~GPT.html +++ b/docs/class/src/GPT.js~GPT.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/class/src/PubAdsService.js~PubAdsService.html b/docs/class/src/PubAdsService.js~PubAdsService.html index c7c1d8b..63915ce 100644 --- a/docs/class/src/PubAdsService.js~PubAdsService.html +++ b/docs/class/src/PubAdsService.js~PubAdsService.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • @@ -55,13 +56,13 @@
    -
    import PubAdsService from 'gpt-mock/dist/PubAdsService.js'
    +
    import PubAdsService from 'gpt-mock/dist/PubAdsService.js'
    public class - | source + | source
    @@ -871,7 +872,7 @@

    Test:

    - addEventListener(eventType: string, listener: function(event: object)): Service + addEventListener(eventType: string, listener: function(event: Object)): Service

    @@ -1028,13 +1029,13 @@

    Test:

    this method is experimental.
    -

    Returns a map of ID's to slots.

    +

    Returns a map of IDs to slots.

    @@ -1141,7 +1142,7 @@

    - source + source

    @@ -1209,7 +1210,7 @@

    - source + source

    @@ -1286,7 +1287,7 @@

    - source + source

    @@ -1345,7 +1346,7 @@

    - source + source

    @@ -1403,7 +1404,7 @@

    - source + source

    @@ -1478,7 +1479,7 @@

    - source + source

    @@ -1560,7 +1561,7 @@

    - source + source

    @@ -1639,7 +1640,7 @@

    - source + source

    @@ -1725,7 +1726,7 @@

    - source + source

    @@ -1775,7 +1776,7 @@

    - source + source

    @@ -1822,7 +1823,7 @@

    - source + source

    @@ -1948,7 +1949,7 @@

    - source + source

    @@ -2010,7 +2011,7 @@

    - source + source

    @@ -2060,7 +2061,7 @@

    - source + source

    @@ -2136,7 +2137,7 @@

    - source + source

    @@ -2194,7 +2195,7 @@

    - source + source

    @@ -2277,7 +2278,7 @@

    - source + source

    @@ -2352,7 +2353,7 @@

    - source + source

    @@ -2417,7 +2418,7 @@

    - source + source

    @@ -2493,7 +2494,7 @@

    - source + source

    @@ -2571,7 +2572,7 @@

    - source + source

    @@ -2663,7 +2664,7 @@

    - source + source

    @@ -2739,7 +2740,7 @@

    - source + source

    @@ -2818,7 +2819,7 @@

    - source + source

    @@ -2895,7 +2896,7 @@

    - source + source

    @@ -2979,7 +2980,7 @@

    - source + source

    @@ -3053,7 +3054,7 @@

    - source + source

    diff --git a/docs/class/src/ResponseInformation.js~ResponseInformation.html b/docs/class/src/ResponseInformation.js~ResponseInformation.html index 155d7d4..6313f7f 100644 --- a/docs/class/src/ResponseInformation.js~ResponseInformation.html +++ b/docs/class/src/ResponseInformation.js~ResponseInformation.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/class/src/SafeFrameConfig.js~SafeFrameConfig.html b/docs/class/src/SafeFrameConfig.js~SafeFrameConfig.html index 2e05fb0..160e5b1 100644 --- a/docs/class/src/SafeFrameConfig.js~SafeFrameConfig.html +++ b/docs/class/src/SafeFrameConfig.js~SafeFrameConfig.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/class/src/Service.js~Service.html b/docs/class/src/Service.js~Service.html index 2846ffc..9e38d8c 100644 --- a/docs/class/src/Service.js~Service.html +++ b/docs/class/src/Service.js~Service.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • @@ -150,7 +151,7 @@

    Test:

    - addEventListener(eventType: string, listener: function(event: object)): Service + addEventListener(eventType: string, listener: function(event: Object)): Service

    @@ -307,13 +308,13 @@

    Test:

    this method is experimental.
    -

    Returns a map of ID's to slots.

    +

    Returns a map of IDs to slots.

    @@ -493,7 +494,7 @@

    - addEventListener(eventType: string, listener: function(event: object)): Service + addEventListener(eventType: string, listener: function(event: Object)): Service @@ -536,7 +537,7 @@

    Params:

    listener - function(event: object) + function(event: Object)

    Function that takes a single event object argument.

    @@ -911,7 +912,7 @@

    - getSlotIdMap(): object + getSlotIdMap(): Object @@ -922,7 +923,7 @@

    this method is experimental.
    -

    Returns a map of ID's to slots.

    +

    Returns a map of IDs to slots.

    @@ -934,8 +935,8 @@

    Return:

    - - +
    object

    The map of ID's to slots.

    +
    Object

    The map of IDs to slots.

    diff --git a/docs/class/src/Size.js~Size.html b/docs/class/src/Size.js~Size.html index 894a690..d69fe94 100644 --- a/docs/class/src/Size.js~Size.html +++ b/docs/class/src/Size.js~Size.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/class/src/SizeMappingBuilder.js~SizeMappingBuilder.html b/docs/class/src/SizeMappingBuilder.js~SizeMappingBuilder.html index dde8055..2ee10c4 100644 --- a/docs/class/src/SizeMappingBuilder.js~SizeMappingBuilder.html +++ b/docs/class/src/SizeMappingBuilder.js~SizeMappingBuilder.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/class/src/Slot.js~Slot.html b/docs/class/src/Slot.js~Slot.html index 8bebc7d..f85db81 100644 --- a/docs/class/src/Slot.js~Slot.html +++ b/docs/class/src/Slot.js~Slot.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • @@ -55,13 +56,13 @@
    -
    import Slot from 'gpt-mock/dist/Slot.js'
    +
    import Slot from 'gpt-mock/dist/Slot.js'
    public class - | source + | source
    @@ -1099,7 +1100,7 @@

    - source + source

    @@ -1190,7 +1191,7 @@

    - source + source

    @@ -1265,7 +1266,7 @@

    - source + source

    @@ -1323,7 +1324,7 @@

    - source + source

    @@ -1381,7 +1382,7 @@

    - source + source

    @@ -1470,7 +1471,7 @@

    - source + source

    @@ -1517,7 +1518,7 @@

    - source + source

    @@ -1564,7 +1565,7 @@

    - source + source

    @@ -1611,7 +1612,7 @@

    - source + source

    @@ -1689,7 +1690,7 @@

    - source + source

    @@ -1747,7 +1748,7 @@

    - source + source

    @@ -1807,7 +1808,7 @@

    - source + source

    @@ -1865,7 +1866,7 @@

    - source + source

    @@ -1923,7 +1924,7 @@

    - source + source

    @@ -1981,7 +1982,7 @@

    - source + source

    @@ -2039,7 +2040,7 @@

    - source + source

    @@ -2097,7 +2098,7 @@

    - source + source

    @@ -2154,7 +2155,7 @@

    - source + source

    @@ -2213,7 +2214,7 @@

    - source + source

    @@ -2271,7 +2272,7 @@

    - source + source

    @@ -2329,7 +2330,7 @@

    - source + source

    @@ -2387,7 +2388,7 @@

    - source + source

    @@ -2464,7 +2465,7 @@

    - source + source

    @@ -2523,7 +2524,7 @@

    - source + source

    @@ -2581,7 +2582,7 @@

    - source + source

    @@ -2639,7 +2640,7 @@

    - source + source

    @@ -2697,7 +2698,7 @@

    - source + source

    @@ -2773,7 +2774,7 @@

    - source + source

    @@ -2820,7 +2821,7 @@

    - source + source

    @@ -2906,7 +2907,7 @@

    - source + source

    @@ -2981,7 +2982,7 @@

    - source + source

    @@ -3060,7 +3061,7 @@

    - source + source

    @@ -3144,7 +3145,7 @@

    - source + source

    @@ -3223,7 +3224,7 @@

    - source + source

    @@ -3301,7 +3302,7 @@

    - source + source

    @@ -3386,7 +3387,7 @@

    - source + source

    @@ -3466,7 +3467,7 @@

    - source + source

    diff --git a/docs/class/src/SlotId.js~SlotId.html b/docs/class/src/SlotId.js~SlotId.html index 1bc8a05..c422119 100644 --- a/docs/class/src/SlotId.js~SlotId.html +++ b/docs/class/src/SlotId.js~SlotId.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/class/src/TargetingMap.js~TargetingMap.html b/docs/class/src/TargetingMap.js~TargetingMap.html new file mode 100644 index 0000000..35c04df --- /dev/null +++ b/docs/class/src/TargetingMap.js~TargetingMap.html @@ -0,0 +1,670 @@ + + + + + + TargetingMap | gpt-mock API Document + + + + + + + + + +
    + Home + Manual + Reference + Source + Test + + +
    + + + +
    +
    import TargetingMap from 'gpt-mock/dist/TargetingMap.js'
    + public + class + + + + | source +
    + +
    +

    TargetingMap

    + + + + + + + + + + + + + + +
    this class is experimental.
    +

    Manages setting and retrieving targeting.

    +
    + + + + + +
    +

    Test:

    + +
    + + +
    + + + +

    Constructor Summary

    + + + + + + + + + +
    Public Constructor
    + public + + + + + +
    +

    + constructor +

    +
    +
    + + +

    Creates a new TargetingMap instance.

    +
    +
    +
    + + +
    +
    + +

    Method Summary

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Public Methods
    + public + + + + + +
    +

    + all(): Object<string, Array<string>> +

    +
    +
    + + +

    Returns the current targeting key-value dictionary.

    +
    +
    +
    + + +
    + public + + + + + +
    +

    + clear(key: string) +

    +
    +
    + + +

    Clears custom targeting parameters for a given key.

    +
    +
    +
    + + +
    + public + + + + + +
    +

    + get(key: string): Array<string> +

    +
    +
    + + +

    Returns a specific targeting parameter that has been set.

    +
    +
    +
    + + +
    + public + + + + + +
    +

    + keys(): Array<string> +

    +
    +
    + + +

    Returns the list of all targeting keys that have been set.

    +
    +
    +
    + + +
    + public + + + + + +
    +

    + set(key: string, value: string | !Array<string>) +

    +
    +
    + + +

    Sets custom targeting parameters for a given key.

    +
    +
    +
    + + +
    +
    + + + + + +

    Public Constructors

    + +
    +

    + public + + + + + constructor + + + + source + +

    + + + + +

    Creates a new TargetingMap instance.

    +
    + + + +
    +
    + + + + + + + + + + + + + + + +
    +
    + +

    Public Methods

    + +
    +

    + public + + + + + all(): Object<string, Array<string>> + + + + source + +

    + + + + +

    Returns the current targeting key-value dictionary.

    +
    + + + +
    +
    + +
    +

    Return:

    + + + + + +
    Object<string, Array<string>>

    the targeting map.

    +
    +
    +
    +
    + + + + + + + + + +
    +

    Test:

    + +
    + + + +
    +
    +

    + public + + + + + clear(key: string) + + + + source + +

    + + + + +

    Clears custom targeting parameters for a given key.

    +
    + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    keystring
    • optional

    Targeting parameter key.

    +
    +
    +
    + + + + + + + + + + + +
    +

    Test:

    + +
    + + + +
    +
    +

    + public + + + + + get(key: string): Array<string> + + + + source + +

    + + + + +

    Returns a specific targeting parameter that has been set.

    +
    + + + +
    +

    Params:

    + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    keystring

    The targeting key to look for.

    +
    +
    +
    + +
    +

    Return:

    + + + + + +
    Array<string> (nullable: false)

    The values associated with this key, or an empty +array if there is no such key.

    +
    +
    +
    +
    + + + + + + + + + +
    +

    Test:

    + +
    + + + +
    +
    +

    + public + + + + + keys(): Array<string> + + + + source + +

    + + + + +

    Returns the list of all targeting keys that have been set.

    +
    + + + +
    +
    + +
    +

    Return:

    + + + + + +
    Array<string> (nullable: false)

    Array of targeting keys. Ordering is undefined.

    +
    +
    +
    +
    + + + + + + + + + +
    +

    Test:

    + +
    + + + +
    +
    +

    + public + + + + + set(key: string, value: string | !Array<string>) + + + + source + +

    + + + + +

    Sets custom targeting parameters for a given key.

    +
    + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    keystring

    Targeting parameter key.

    +
    valuestring | !Array<string>

    Targeting parameter value or array of values.

    +
    +
    +
    + + + + + + + + + + + +
    +

    Test:

    + +
    + + + +
    +
    +
    + + + + + + + + + + + + diff --git a/docs/class/src/events/ImpressionViewableEvent.js~ImpressionViewableEvent.html b/docs/class/src/events/ImpressionViewableEvent.js~ImpressionViewableEvent.html index 616c7e9..df6bcaa 100644 --- a/docs/class/src/events/ImpressionViewableEvent.js~ImpressionViewableEvent.html +++ b/docs/class/src/events/ImpressionViewableEvent.js~ImpressionViewableEvent.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/class/src/events/SlotOnloadEvent.js~SlotOnloadEvent.html b/docs/class/src/events/SlotOnloadEvent.js~SlotOnloadEvent.html index ff8c4cb..0f5da47 100644 --- a/docs/class/src/events/SlotOnloadEvent.js~SlotOnloadEvent.html +++ b/docs/class/src/events/SlotOnloadEvent.js~SlotOnloadEvent.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/class/src/events/SlotRenderEndedEvent.js~SlotRenderEndedEvent.html b/docs/class/src/events/SlotRenderEndedEvent.js~SlotRenderEndedEvent.html index 1b9a318..e207fd1 100644 --- a/docs/class/src/events/SlotRenderEndedEvent.js~SlotRenderEndedEvent.html +++ b/docs/class/src/events/SlotRenderEndedEvent.js~SlotRenderEndedEvent.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/class/src/events/SlotVisibilityChangedEvent.js~SlotVisibilityChangedEvent.html b/docs/class/src/events/SlotVisibilityChangedEvent.js~SlotVisibilityChangedEvent.html index 4082234..ad08582 100644 --- a/docs/class/src/events/SlotVisibilityChangedEvent.js~SlotVisibilityChangedEvent.html +++ b/docs/class/src/events/SlotVisibilityChangedEvent.js~SlotVisibilityChangedEvent.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/coverage.json b/docs/coverage.json index aa5d56d..7dd137b 100644 --- a/docs/coverage.json +++ b/docs/coverage.json @@ -1,7 +1,7 @@ { "coverage": "100%", - "expectCount": 164, - "actualCount": 164, + "expectCount": 171, + "actualCount": 171, "files": { "src/CommandArray.js": { "expectCount": 3, @@ -82,6 +82,11 @@ "expectCount": 5, "actualCount": 5, "undocumentLines": [] + }, + "src/TargetingMap.js": { + "expectCount": 7, + "actualCount": 7, + "undocumentLines": [] } } } \ No newline at end of file diff --git a/docs/dump.json b/docs/dump.json index ea285e4..19d76be 100644 --- a/docs/dump.json +++ b/docs/dump.json @@ -1518,7 +1518,7 @@ "access": null, "description": null, "lineNumber": 1, - "content": "import Service from './Service';\nimport Slot from './Slot';\n\n/**\n * Publisher Ads service. This service is used to fetch and show ads from your\n * {@link DFP} account.\n */\nexport default class PubAdsService extends Service {\n /**\n * Creates a new PubAdsService.\n *\n * @param {GPT} gt The containing {@link GPT} instance.\n */\n constructor(gt) {\n super(gt, PubAdsService._name);\n this._categoryExclusions = [];\n this._targeting = {};\n this._options = {\n collapseEmptyDivs: false,\n collapseBeforeAdFetch: false,\n initialLoad: true,\n asyncRendering: false,\n singleRequest: false,\n syncRendering: false,\n videoAds: false,\n centerAds: false,\n forceSafeFrame: false,\n cookieOptions: null,\n ppid: null,\n videoContentId: null,\n videoCmsId: null,\n safeFrameConfig: null,\n tagForChildDirectedTreatment: null\n };\n this._correlator = Math.random();\n }\n\n /**\n * The name of the service.\n *\n * @private\n * @type {string}\n */\n static get _name() {\n return 'publisher_ads';\n }\n\n /**\n * Enables the service.\n *\n * @override\n */\n enable() {\n super.enable();\n this._gpt.pubadsReady = true;\n }\n\n /**\n * Fetches and displays new ads for specific or all slots on the page.\n * Works only in asynchronous rendering mode.\n *\n * For proper behavior across all browsers, calling refresh must be preceded\n * by a call to display the ad slot. If the call to display is omitted, refresh\n * may behave unexpectedly. If desired, the {@link PubAdsService#disableInitialLoad} method can be\n * used to stop display from fetching an ad.\n *\n * @param {Array} [optSlots] The slots to refresh. Array is optional;\n * all slots will be refreshed if it is unspecified.\n * @param {{changeCorrelator: boolean}} [optOptions] Configuration options\n * associated with this refresh call. changeCorrelator specifies whether or\n * not a new correlator is to be generated for fetching ads. Our ad servers\n * maintain this correlator value briefly (currently for 30 seconds, but\n * subject to change), such that requests with the same correlator received\n * close together will be considered a single page view. By default a new\n * correlator is generated for every refresh.\n */\n refresh(optSlots, optOptions) {\n let slots = this._slots;\n if (optSlots != null) {\n slots = optSlots;\n }\n for (let slot of slots) {\n slot._refresh();\n }\n if (optOptions && optOptions.changeCorrelator) {\n this._correlator = Math.random();\n }\n }\n\n /**\n * Removes the ads from the given slots and replaces them with blank\n * content. The slots will be marked as unfetched.\n *\n * @param {Array} [optSlots] The array of slots to clear. Array is\n * optional; all slots will be cleared if it is unspecified.\n * @returns {boolean} Returns true if slots have been cleared, false otherwise.\n */\n clear(optSlots) {\n let slots = this._slots;\n if (optSlots != null) {\n slots = optSlots;\n }\n\n for (let slot of slots) {\n if (this._slots.indexOf(slot) !== -1) {\n slot._clear();\n } else {\n return false;\n }\n }\n\n return true;\n }\n\n /**\n * Constructs an out-of-page passback slot. A passback is where a {@link GPT} snippet\n * is used as a creative in an ad serving system. The ad serving system could\n * be {@link DFP} or a third party. In this case, the ads are always requested\n * synchronously in non-single request mode.\n *\n * @param {string} adUnitPath The ad unit path of the slot to use as a passback.\n * @returns {?Slot} The new passback object or null if the method was\n * called with invalid arguments.\n */\n defineOutOfPagePassback(adUnitPath) {\n if (adUnitPath != null) {\n const slot = new Slot(adUnitPath).addService(this);\n slot._passback = true;\n slot._outOfPage = true;\n return slot;\n } else {\n return null;\n }\n }\n\n /**\n * Constructs a passback slot. A passback is where a {@link GPT} snippet is used as a\n * creative in an ad serving system. The ad serving system could be {@link DFP} or a\n * third party. In this case, the ads are always requested synchronously in\n * non-single request mode.\n *\n * @param {string} adUnitPath The ad unit path of the slot to use as a passback.\n * @param {GeneralSize} size The size of the slot.\n * @returns {?Slot} The new passback object or null if the method was\n * called with invalid arguments.\n */\n definePassback(adUnitPath, size) {\n if (adUnitPath != null && size != null) {\n const slot = new Slot(adUnitPath, size).addService(this);\n slot._passback = true;\n return slot;\n } else {\n return null;\n }\n }\n\n /**\n * Disables requests for ads on page load, but allows ads to be requested with\n * a {@link PubAdsService#refresh} call. This should be set prior to enabling\n * the service. Async mode must be used; otherwise it will be impossible to\n * request ads using {@link PubAdsService#refresh}.\n */\n disableInitialLoad() {\n this._options.initialLoad = false;\n }\n\n /**\n * Enables async rendering mode to enable non-blocking fetching and rendering\n * of ads. Because the service uses asynchronous rendering by default, you\n * only need to use this method to override a previous setting. Async mode\n * must be set before the service is enabled.\n *\n * @returns {boolean} Returns true if async rendering mode was enabled and\n * false if it is impossible to enable async rendering mode because the method\n * was called after the service was enabled.\n */\n enableAsyncRendering() {\n if (this._enabled) {\n return false;\n } else {\n this._options.asyncRendering = true;\n return true;\n }\n }\n\n /**\n * Enables single request mode for fetching multiple ads at the same time.\n * This requires all pubads slots to be defined and added to the {@link PubAdsService}\n * prior to enabling the service. Single request mode must be set\n * before the service is enabled.\n *\n * @returns {boolean} Returns true if single request mode was enabled and false\n * if it is impossible to enable single request mode because the method was\n * called after the service was enabled.\n */\n enableSingleRequest() {\n if (this._enabled) {\n return false;\n } else {\n this._options.singleRequest = true;\n return true;\n }\n }\n\n /**\n * Enables sync rendering mode to enable blocking fetching and rendering of ads.\n * This mode must be set before the service is enabled. Synchronous rendering\n * also requires that the {@link GPT} JavaScript be loaded synchronously.\n *\n * @returns {boolean} Returns true if sync rendering mode was enabled and false\n * if it is impossible to enable sync rendering mode because the method was\n * called after the service was enabled.\n */\n enableSyncRendering() {\n if (this._enabled) {\n return false;\n } else {\n this._options.syncRendering = true;\n return true;\n }\n }\n\n /**\n * Signals to {@link GPT} that video ads will be present on the page. This enables\n * competitive exclusion constraints on display and video ads. If the video\n * content is known, call setVideoContent in order to be able to use content\n * exclusion for display ads.\n */\n enableVideoAds() {\n this._options.videoAds = true;\n }\n\n /**\n * Sets custom targeting parameters for a given key that apply to all pubads\n * service ad slots. Calling this multiple times for the same key will\n * overwrite old values. These keys are defined in your {@link DFP} account.\n *\n * @param {string} key Targeting parameter key.\n * @param {string|!Array} value Targeting parameter value or array of values.\n * @returns {PubAdsService} The service object on which the method was called.\n */\n setTargeting(key, value) {\n if (Array.isArray(value)) {\n this._targeting[key] = value;\n } else {\n this._targeting[key] = [value];\n }\n return this;\n }\n\n /**\n * Returns a specific custom service-level targeting parameter that has been set.\n *\n * @param {string} key The targeting key to look for.\n * @returns {!Array} The values associated with this key, or an empty\n * array if there is no such key.\n */\n getTargeting(key) {\n return this._targeting[key] || [];\n }\n\n /**\n * Returns the list of all custom service-level targeting keys that have been set.\n *\n * @returns {!Array} Array of targeting keys. Ordering is undefined.\n */\n getTargetingKeys() {\n return Object.keys(this._targeting);\n }\n\n /**\n * Clears custom targeting parameters for a given key.\n *\n * @param {string} key Targeting parameter key.\n * @returns {PubAdsService} The service object on which the method was called.\n */\n clearTargeting(key) {\n delete this._targeting[key];\n return this;\n }\n\n /**\n * Enables collapsing of slot divs so that they don't take up any space on the\n * page when there is no ad content to display. This mode must be set before\n * the service is enabled.\n *\n * @param {boolean} [optCollapseBeforeAdFetch=false] Whether to collapse the slots\n * even before the ads are fetched. This parameter is optional; if not\n * provided, false will be used as the default value.\n * @returns {boolean} Returns true if div collapse mode was enabled and false\n * if it is impossible to enable collapse mode because the method was called\n * after the service was enabled.\n */\n collapseEmptyDivs(optCollapseBeforeAdFetch = false) {\n if (this._enabled) {\n return false;\n } else {\n this._options.collapseEmptyDivs = true;\n this._options.collapseBeforeAdFetch = optCollapseBeforeAdFetch;\n return true;\n }\n }\n\n /**\n * Sets a page-level ad category exclusion for the given label name.\n *\n * @param {string} categoryExclusion The ad category exclusion label to add.\n * @returns {PubAdsService} The service object on which the method was called.\n */\n setCategoryExclusion(categoryExclusion) {\n this._categoryExclusions.push(categoryExclusion);\n return this;\n }\n\n /**\n * Clears all page-level ad category exclusion labels.\n * This is useful if you want to refresh the slot.\n *\n * @returns {PubAdsService} The service object on which the method was called.\n */\n clearCategoryExclusions() {\n this._categoryExclusions = [];\n return this;\n }\n\n /**\n * Enables/disables centering of ads. This mode must be set before the service\n * is enabled. Centering is disabled by default.\n *\n * @param {boolean} centerAds true to center ads, false to left-align them.\n */\n setCentering(centerAds) {\n if (!this._enabled) {\n this._options.centerAds = centerAds;\n }\n }\n\n /**\n * Sets cookie options for GPT on the page.\n *\n * @param {number} options The cookie options to set. Set the options parameter\n * to the integer value 1 to ignore cookies, and to 0 to use cookies.\n * @returns {PubAdsService} The service object on which the method was called.\n */\n setCookieOptions(options) {\n this._options.cookieOptions = options;\n return this;\n }\n\n /**\n * Configures whether all ads on the page should be forced to be rendered using\n * a SafeFrame container.\n *\n * @param {boolean} forceSafeFrame true to force all ads on the page to be\n * rendered in SafeFrames and false to change the previous setting to false.\n * Setting this to false when unspecified earlier, won't change anything.\n * @returns {PubAdsService} The service object on which the function was called.\n */\n setForceSafeFrame(forceSafeFrame) {\n this._options.forceSafeFrame = forceSafeFrame;\n return this;\n }\n\n /**\n * Passes location information from websites so you can geo-target line items\n * to specific locations. {@link DFP} will not use location data unless this feature\n * has been enabled for your network.\n *\n * @param {string|number} latitudeOrAddress Latitude or freeform address.\n * @param {number} [optLongitude] The longitude (if a latitude was provided as first argument).\n * @param {number} [optRadius] The radius in millimeters. Will be rounded to closest integer.\n * Only used when passing the latitude and longitude.\n * @returns {PubAdsService} The service object on which the method was called.\n */\n setLocation(latitudeOrAddress, optLongitude, optRadius) {\n if (typeof latitudeOrAddress === 'number') {\n this._options.latitude = latitudeOrAddress || null;\n this._options.longitude = optLongitude || null;\n this._options.radius = optRadius || null;\n this._options.address = null;\n } else {\n this._options.address = latitudeOrAddress;\n this._options.latitude = null;\n this._options.longitude = null;\n this._options.radius = null;\n }\n return this;\n }\n\n /**\n * Sets the value for the publisher-provided ID.\n *\n * @param {string} ppid An alphanumeric ID provided by the publisher with a\n * recommended maximum of 150 characters.\n * @returns {PubAdsService} The service object on which the method was called.\n */\n setPublisherProvidedId(ppid) {\n this._options.ppid = ppid;\n return this;\n }\n\n /**\n * Sets the page-level preferences for SafeFrame configuration. Any\n * unrecognized keys in the config object will be ignored. The entire config\n * will be ignored if an invalid value is passed for a recognized key. These\n * page level preferences will be overriden by slot level preferences, if\n * specified.\n *\n * @param {SafeFrameConfig} config The configuration object.\n * @returns {PubAdsService} The service object on which the method was called.\n */\n setSafeFrameConfig(config) {\n this._options.safeFrameConfig = config;\n return this;\n }\n\n /**\n * Configures whether the page should be treated as child-directed.\n *\n * @param {number} value The child-directed treatment tag status to set. Set\n * the options parameter to the integer value 1 to mark the ad request as\n * child-directed, and to 0 for ad requests that are not child-directed.\n * @returns {PubAdsService} The service object on which the method was called.\n */\n setTagForChildDirectedTreatment(value) {\n this._options.tagForChildDirectedTreatment = value;\n return this;\n }\n\n /**\n * Clears the configuration for whether the page should be treated as child-directed.\n *\n * @returns {PubAdsService} The service object on which the method was called.\n */\n clearTagForChildDirectedTreatment() {\n this._options.tagForChildDirectedTreatment = null;\n return this;\n }\n\n /**\n * Sets the video content information to be sent along with the ad requests for\n * targeting and content exclusion purposes. Video ads will be automatically\n * enabled when this method is called. For videoContentId and videoCmsId, use\n * the values that are provided to the {@link DFP} content ingestion service.\n *\n * @param {string} videoContentId The video content ID.\n * @param {string} videoCmsId The video CMS ID.\n */\n setVideoContent(videoContentId, videoCmsId) {\n this._options.videoContentId = videoContentId;\n this._options.videoCmsId = videoCmsId;\n }\n\n /**\n * Changes the correlator that is sent with ad requests, effectively starting\n * a new page view. The correlator is the same for all the ad requests coming\n * from one page view, and unique across page views. Only applies to async mode.\n *\n * @returns {PubAdsService} The service object on which the function was called.\n */\n updateCorrelator() {\n return this;\n }\n\n}\n" + "content": "import Service from './Service';\nimport Slot from './Slot';\nimport TargetingMap from './TargetingMap';\n\n/**\n * Publisher Ads service. This service is used to fetch and show ads from your\n * {@link DFP} account.\n */\nexport default class PubAdsService extends Service {\n /**\n * Creates a new PubAdsService.\n *\n * @param {GPT} gt The containing {@link GPT} instance.\n */\n constructor(gt) {\n super(gt, PubAdsService._name);\n this._categoryExclusions = [];\n this._targeting = new TargetingMap();\n this._options = {\n collapseEmptyDivs: false,\n collapseBeforeAdFetch: false,\n initialLoad: true,\n asyncRendering: false,\n singleRequest: false,\n syncRendering: false,\n videoAds: false,\n centerAds: false,\n forceSafeFrame: false,\n cookieOptions: null,\n ppid: null,\n videoContentId: null,\n videoCmsId: null,\n safeFrameConfig: null,\n tagForChildDirectedTreatment: null\n };\n this._correlator = Math.random();\n }\n\n /**\n * The name of the service.\n *\n * @private\n * @type {string}\n */\n static get _name() {\n return 'publisher_ads';\n }\n\n /**\n * Enables the service.\n *\n * @override\n */\n enable() {\n super.enable();\n this._gpt.pubadsReady = true;\n }\n\n /**\n * Fetches and displays new ads for specific or all slots on the page.\n * Works only in asynchronous rendering mode.\n *\n * For proper behavior across all browsers, calling refresh must be preceded\n * by a call to display the ad slot. If the call to display is omitted, refresh\n * may behave unexpectedly. If desired, the {@link PubAdsService#disableInitialLoad} method can be\n * used to stop display from fetching an ad.\n *\n * @param {Array} [optSlots] The slots to refresh. Array is optional;\n * all slots will be refreshed if it is unspecified.\n * @param {{changeCorrelator: boolean}} [optOptions] Configuration options\n * associated with this refresh call. changeCorrelator specifies whether or\n * not a new correlator is to be generated for fetching ads. Our ad servers\n * maintain this correlator value briefly (currently for 30 seconds, but\n * subject to change), such that requests with the same correlator received\n * close together will be considered a single page view. By default a new\n * correlator is generated for every refresh.\n */\n refresh(optSlots, optOptions) {\n let slots = this._slots;\n if (optSlots != null) {\n slots = optSlots;\n }\n for (let slot of slots) {\n slot._refresh();\n }\n if (optOptions && optOptions.changeCorrelator) {\n this._correlator = Math.random();\n }\n }\n\n /**\n * Removes the ads from the given slots and replaces them with blank\n * content. The slots will be marked as unfetched.\n *\n * @param {Array} [optSlots] The array of slots to clear. Array is\n * optional; all slots will be cleared if it is unspecified.\n * @returns {boolean} Returns true if slots have been cleared, false otherwise.\n */\n clear(optSlots) {\n let slots = this._slots;\n if (optSlots != null) {\n slots = optSlots;\n }\n\n for (let slot of slots) {\n if (this._slots.indexOf(slot) !== -1) {\n slot._clear();\n } else {\n return false;\n }\n }\n\n return true;\n }\n\n /**\n * Constructs an out-of-page passback slot. A passback is where a {@link GPT} snippet\n * is used as a creative in an ad serving system. The ad serving system could\n * be {@link DFP} or a third party. In this case, the ads are always requested\n * synchronously in non-single request mode.\n *\n * @param {string} adUnitPath The ad unit path of the slot to use as a passback.\n * @returns {?Slot} The new passback object or null if the method was\n * called with invalid arguments.\n */\n defineOutOfPagePassback(adUnitPath) {\n if (adUnitPath != null) {\n const slot = new Slot(adUnitPath).addService(this);\n slot._passback = true;\n slot._outOfPage = true;\n return slot;\n } else {\n return null;\n }\n }\n\n /**\n * Constructs a passback slot. A passback is where a {@link GPT} snippet is used as a\n * creative in an ad serving system. The ad serving system could be {@link DFP} or a\n * third party. In this case, the ads are always requested synchronously in\n * non-single request mode.\n *\n * @param {string} adUnitPath The ad unit path of the slot to use as a passback.\n * @param {GeneralSize} size The size of the slot.\n * @returns {?Slot} The new passback object or null if the method was\n * called with invalid arguments.\n */\n definePassback(adUnitPath, size) {\n if (adUnitPath != null && size != null) {\n const slot = new Slot(adUnitPath, size).addService(this);\n slot._passback = true;\n return slot;\n } else {\n return null;\n }\n }\n\n /**\n * Disables requests for ads on page load, but allows ads to be requested with\n * a {@link PubAdsService#refresh} call. This should be set prior to enabling\n * the service. Async mode must be used; otherwise it will be impossible to\n * request ads using {@link PubAdsService#refresh}.\n */\n disableInitialLoad() {\n this._unlessEnabled(() => {\n this._options.initialLoad = false;\n });\n }\n\n /**\n * Enables async rendering mode to enable non-blocking fetching and rendering\n * of ads. Because the service uses asynchronous rendering by default, you\n * only need to use this method to override a previous setting. Async mode\n * must be set before the service is enabled.\n *\n * @returns {boolean} Returns true if async rendering mode was enabled and\n * false if it is impossible to enable async rendering mode because the method\n * was called after the service was enabled.\n */\n enableAsyncRendering() {\n return this._unlessEnabled(() => {\n this._options.asyncRendering = true;\n });\n }\n\n /**\n * Enables single request mode for fetching multiple ads at the same time.\n * This requires all pubads slots to be defined and added to the {@link PubAdsService}\n * prior to enabling the service. Single request mode must be set\n * before the service is enabled.\n *\n * @returns {boolean} Returns true if single request mode was enabled and false\n * if it is impossible to enable single request mode because the method was\n * called after the service was enabled.\n */\n enableSingleRequest() {\n return this._unlessEnabled(() => {\n this._options.singleRequest = true;\n });\n }\n\n /**\n * Enables sync rendering mode to enable blocking fetching and rendering of ads.\n * This mode must be set before the service is enabled. Synchronous rendering\n * also requires that the {@link GPT} JavaScript be loaded synchronously.\n *\n * @returns {boolean} Returns true if sync rendering mode was enabled and false\n * if it is impossible to enable sync rendering mode because the method was\n * called after the service was enabled.\n */\n enableSyncRendering() {\n return this._unlessEnabled(() => {\n this._options.syncRendering = true;\n });\n }\n\n /**\n * Signals to {@link GPT} that video ads will be present on the page. This enables\n * competitive exclusion constraints on display and video ads. If the video\n * content is known, call setVideoContent in order to be able to use content\n * exclusion for display ads.\n */\n enableVideoAds() {\n this._options.videoAds = true;\n }\n\n /**\n * Sets custom targeting parameters for a given key that apply to all pubads\n * service ad slots. Calling this multiple times for the same key will\n * overwrite old values. These keys are defined in your {@link DFP} account.\n *\n * @param {string} key Targeting parameter key.\n * @param {string|!Array} value Targeting parameter value or array of values.\n * @returns {PubAdsService} The service object on which the method was called.\n */\n setTargeting(key, value) {\n this._targeting.set(key, value);\n return this;\n }\n\n /**\n * Returns a specific custom service-level targeting parameter that has been set.\n *\n * @param {string} key The targeting key to look for.\n * @returns {!Array} The values associated with this key, or an empty\n * array if there is no such key.\n */\n getTargeting(key) {\n return this._targeting.get(key);\n }\n\n /**\n * Returns the list of all custom service-level targeting keys that have been set.\n *\n * @returns {!Array} Array of targeting keys. Ordering is undefined.\n */\n getTargetingKeys() {\n return this._targeting.keys();\n }\n\n /**\n * Clears custom targeting parameters for a given key.\n *\n * @param {string} key Targeting parameter key.\n * @returns {PubAdsService} The service object on which the method was called.\n */\n clearTargeting(key) {\n this._targeting.clear(key);\n return this;\n }\n\n /**\n * Enables collapsing of slot divs so that they don't take up any space on the\n * page when there is no ad content to display. This mode must be set before\n * the service is enabled.\n *\n * @param {boolean} [optCollapseBeforeAdFetch=false] Whether to collapse the slots\n * even before the ads are fetched. This parameter is optional; if not\n * provided, false will be used as the default value.\n * @returns {boolean} Returns true if div collapse mode was enabled and false\n * if it is impossible to enable collapse mode because the method was called\n * after the service was enabled.\n */\n collapseEmptyDivs(optCollapseBeforeAdFetch = false) {\n return this._unlessEnabled(() => {\n this._options.collapseEmptyDivs = true;\n this._options.collapseBeforeAdFetch = optCollapseBeforeAdFetch;\n });\n }\n\n /**\n * Sets a page-level ad category exclusion for the given label name.\n *\n * @param {string} categoryExclusion The ad category exclusion label to add.\n * @returns {PubAdsService} The service object on which the method was called.\n */\n setCategoryExclusion(categoryExclusion) {\n this._categoryExclusions.push(categoryExclusion);\n return this;\n }\n\n /**\n * Clears all page-level ad category exclusion labels.\n * This is useful if you want to refresh the slot.\n *\n * @returns {PubAdsService} The service object on which the method was called.\n */\n clearCategoryExclusions() {\n this._categoryExclusions = [];\n return this;\n }\n\n /**\n * Enables/disables centering of ads. This mode must be set before the service\n * is enabled. Centering is disabled by default.\n *\n * @param {boolean} centerAds true to center ads, false to left-align them.\n */\n setCentering(centerAds) {\n this._unlessEnabled(() => {\n this._options.centerAds = centerAds;\n });\n }\n\n /**\n * Sets cookie options for GPT on the page.\n *\n * @param {number} options The cookie options to set. Set the options parameter\n * to the integer value 1 to ignore cookies, and to 0 to use cookies.\n * @returns {PubAdsService} The service object on which the method was called.\n */\n setCookieOptions(options) {\n this._options.cookieOptions = options;\n return this;\n }\n\n /**\n * Configures whether all ads on the page should be forced to be rendered using\n * a SafeFrame container.\n *\n * @param {boolean} forceSafeFrame true to force all ads on the page to be\n * rendered in SafeFrames and false to change the previous setting to false.\n * Setting this to false when unspecified earlier, won't change anything.\n * @returns {PubAdsService} The service object on which the function was called.\n */\n setForceSafeFrame(forceSafeFrame) {\n this._options.forceSafeFrame = forceSafeFrame;\n return this;\n }\n\n /**\n * Passes location information from websites so you can geo-target line items\n * to specific locations. {@link DFP} will not use location data unless this feature\n * has been enabled for your network.\n *\n * @param {string|number} latitudeOrAddress Latitude or freeform address.\n * @param {number} [optLongitude] The longitude (if a latitude was provided as first argument).\n * @param {number} [optRadius] The radius in millimeters. Will be rounded to closest integer.\n * Only used when passing the latitude and longitude.\n * @returns {PubAdsService} The service object on which the method was called.\n */\n setLocation(latitudeOrAddress, optLongitude, optRadius) {\n if (typeof latitudeOrAddress === 'number') {\n this._options.latitude = latitudeOrAddress || null;\n this._options.longitude = optLongitude || null;\n this._options.radius = optRadius || null;\n this._options.address = null;\n } else {\n this._options.address = latitudeOrAddress;\n this._options.latitude = null;\n this._options.longitude = null;\n this._options.radius = null;\n }\n return this;\n }\n\n /**\n * Sets the value for the publisher-provided ID.\n *\n * @param {string} ppid An alphanumeric ID provided by the publisher with a\n * recommended maximum of 150 characters.\n * @returns {PubAdsService} The service object on which the method was called.\n */\n setPublisherProvidedId(ppid) {\n this._options.ppid = ppid;\n return this;\n }\n\n /**\n * Sets the page-level preferences for SafeFrame configuration. Any\n * unrecognized keys in the config object will be ignored. The entire config\n * will be ignored if an invalid value is passed for a recognized key. These\n * page level preferences will be overriden by slot level preferences, if\n * specified.\n *\n * @param {SafeFrameConfig} config The configuration object.\n * @returns {PubAdsService} The service object on which the method was called.\n */\n setSafeFrameConfig(config) {\n this._options.safeFrameConfig = config;\n return this;\n }\n\n /**\n * Configures whether the page should be treated as child-directed.\n *\n * @param {number} value The child-directed treatment tag status to set. Set\n * the options parameter to the integer value 1 to mark the ad request as\n * child-directed, and to 0 for ad requests that are not child-directed.\n * @returns {PubAdsService} The service object on which the method was called.\n */\n setTagForChildDirectedTreatment(value) {\n this._options.tagForChildDirectedTreatment = value;\n return this;\n }\n\n /**\n * Clears the configuration for whether the page should be treated as child-directed.\n *\n * @returns {PubAdsService} The service object on which the method was called.\n */\n clearTagForChildDirectedTreatment() {\n this._options.tagForChildDirectedTreatment = null;\n return this;\n }\n\n /**\n * Sets the video content information to be sent along with the ad requests for\n * targeting and content exclusion purposes. Video ads will be automatically\n * enabled when this method is called. For videoContentId and videoCmsId, use\n * the values that are provided to the {@link DFP} content ingestion service.\n *\n * @param {string} videoContentId The video content ID.\n * @param {string} videoCmsId The video CMS ID.\n */\n setVideoContent(videoContentId, videoCmsId) {\n this._options.videoContentId = videoContentId;\n this._options.videoCmsId = videoCmsId;\n }\n\n /**\n * Changes the correlator that is sent with ad requests, effectively starting\n * a new page view. The correlator is the same for all the ad requests coming\n * from one page view, and unique across page views. Only applies to async mode.\n *\n * @returns {PubAdsService} The service object on which the function was called.\n */\n updateCorrelator() {\n return this;\n }\n\n /**\n * Conditionally execute a function unless the service has already been\n * enabled.\n *\n * @param {function} fn The function to call if the service is not enabled\n * @returns {boolean} true if the function was called; false if the service has\n * already been enabled.\n */\n _unlessEnabled(fn) {\n if (this._enabled) {\n return false;\n } else {\n fn();\n return true;\n }\n }\n}\n" }, { "__docId__": 66, @@ -1533,7 +1533,7 @@ "importPath": "gpt-mock/dist/PubAdsService.js", "importStyle": "PubAdsService", "description": "Publisher Ads service. This service is used to fetch and show ads from your\n{@link DFP} account.", - "lineNumber": 8, + "lineNumber": 9, "interface": false, "extends": [ "src/Service.js~Service" @@ -1549,7 +1549,7 @@ "longname": "src/PubAdsService.js~PubAdsService#constructor", "access": null, "description": "Creates a new PubAdsService.", - "lineNumber": 14, + "lineNumber": 15, "params": [ { "nullable": null, @@ -1574,7 +1574,7 @@ "longname": "src/PubAdsService.js~PubAdsService#_categoryExclusions", "access": null, "description": null, - "lineNumber": 16, + "lineNumber": 17, "undocument": true, "type": { "types": [ @@ -1592,7 +1592,7 @@ "longname": "src/PubAdsService.js~PubAdsService#_targeting", "access": null, "description": null, - "lineNumber": 17, + "lineNumber": 18, "undocument": true, "type": { "types": [ @@ -1610,7 +1610,7 @@ "longname": "src/PubAdsService.js~PubAdsService#_options", "access": null, "description": null, - "lineNumber": 18, + "lineNumber": 19, "undocument": true, "type": { "types": [ @@ -1628,7 +1628,7 @@ "longname": "src/PubAdsService.js~PubAdsService#_correlator", "access": null, "description": null, - "lineNumber": 35, + "lineNumber": 36, "undocument": true, "type": { "types": [ @@ -1646,7 +1646,7 @@ "longname": "src/PubAdsService.js~PubAdsService._name", "access": "private", "description": "The name of the service.", - "lineNumber": 44, + "lineNumber": 45, "type": { "nullable": null, "types": [ @@ -1667,7 +1667,7 @@ "longname": "src/PubAdsService.js~PubAdsService#enable", "access": null, "description": "Enables the service.", - "lineNumber": 53, + "lineNumber": 54, "params": [], "override": true, "generator": false @@ -1682,7 +1682,7 @@ "longname": "src/PubAdsService.js~PubAdsService#refresh", "access": null, "description": "Fetches and displays new ads for specific or all slots on the page.\nWorks only in asynchronous rendering mode.\n\nFor proper behavior across all browsers, calling refresh must be preceded\nby a call to display the ad slot. If the call to display is omitted, refresh\nmay behave unexpectedly. If desired, the {@link PubAdsService#disableInitialLoad} method can be\nused to stop display from fetching an ad.", - "lineNumber": 77, + "lineNumber": 78, "params": [ { "nullable": null, @@ -1717,7 +1717,7 @@ "longname": "src/PubAdsService.js~PubAdsService#_correlator", "access": null, "description": null, - "lineNumber": 86, + "lineNumber": 87, "undocument": true, "type": { "types": [ @@ -1735,7 +1735,7 @@ "longname": "src/PubAdsService.js~PubAdsService#clear", "access": null, "description": "Removes the ads from the given slots and replaces them with blank\ncontent. The slots will be marked as unfetched.", - "lineNumber": 98, + "lineNumber": 99, "unknown": [ { "tagName": "@returns", @@ -1774,7 +1774,7 @@ "longname": "src/PubAdsService.js~PubAdsService#defineOutOfPagePassback", "access": null, "description": "Constructs an out-of-page passback slot. A passback is where a {@link GPT} snippet\nis used as a creative in an ad serving system. The ad serving system could\nbe {@link DFP} or a third party. In this case, the ads are always requested\nsynchronously in non-single request mode.", - "lineNumber": 125, + "lineNumber": 126, "unknown": [ { "tagName": "@returns", @@ -1813,7 +1813,7 @@ "longname": "src/PubAdsService.js~PubAdsService#definePassback", "access": null, "description": "Constructs a passback slot. A passback is where a {@link GPT} snippet is used as a\ncreative in an ad serving system. The ad serving system could be {@link DFP} or a\nthird party. In this case, the ads are always requested synchronously in\nnon-single request mode.", - "lineNumber": 147, + "lineNumber": 148, "unknown": [ { "tagName": "@returns", @@ -1862,7 +1862,7 @@ "longname": "src/PubAdsService.js~PubAdsService#disableInitialLoad", "access": null, "description": "Disables requests for ads on page load, but allows ads to be requested with\na {@link PubAdsService#refresh} call. This should be set prior to enabling\nthe service. Async mode must be used; otherwise it will be impossible to\nrequest ads using {@link PubAdsService#refresh}.", - "lineNumber": 163, + "lineNumber": 164, "params": [], "generator": false }, @@ -1876,7 +1876,7 @@ "longname": "src/PubAdsService.js~PubAdsService#enableAsyncRendering", "access": null, "description": "Enables async rendering mode to enable non-blocking fetching and rendering\nof ads. Because the service uses asynchronous rendering by default, you\nonly need to use this method to override a previous setting. Async mode\nmust be set before the service is enabled.", - "lineNumber": 177, + "lineNumber": 180, "unknown": [ { "tagName": "@returns", @@ -1932,7 +1932,7 @@ "longname": "src/PubAdsService.js~PubAdsService#enableSyncRendering", "access": null, "description": "Enables sync rendering mode to enable blocking fetching and rendering of ads.\nThis mode must be set before the service is enabled. Synchronous rendering\nalso requires that the {@link GPT} JavaScript be loaded synchronously.", - "lineNumber": 214, + "lineNumber": 211, "unknown": [ { "tagName": "@returns", @@ -1960,7 +1960,7 @@ "longname": "src/PubAdsService.js~PubAdsService#enableVideoAds", "access": null, "description": "Signals to {@link GPT} that video ads will be present on the page. This enables\ncompetitive exclusion constraints on display and video ads. If the video\ncontent is known, call setVideoContent in order to be able to use content\nexclusion for display ads.", - "lineNumber": 229, + "lineNumber": 223, "params": [], "generator": false }, @@ -1974,7 +1974,7 @@ "longname": "src/PubAdsService.js~PubAdsService#setTargeting", "access": null, "description": "Sets custom targeting parameters for a given key that apply to all pubads\nservice ad slots. Calling this multiple times for the same key will\noverwrite old values. These keys are defined in your {@link DFP} account.", - "lineNumber": 242, + "lineNumber": 236, "unknown": [ { "tagName": "@returns", @@ -2024,7 +2024,7 @@ "longname": "src/PubAdsService.js~PubAdsService#getTargeting", "access": null, "description": "Returns a specific custom service-level targeting parameter that has been set.", - "lineNumber": 258, + "lineNumber": 248, "unknown": [ { "tagName": "@returns", @@ -2063,7 +2063,7 @@ "longname": "src/PubAdsService.js~PubAdsService#getTargetingKeys", "access": null, "description": "Returns the list of all custom service-level targeting keys that have been set.", - "lineNumber": 267, + "lineNumber": 257, "unknown": [ { "tagName": "@returns", @@ -2091,7 +2091,7 @@ "longname": "src/PubAdsService.js~PubAdsService#clearTargeting", "access": null, "description": "Clears custom targeting parameters for a given key.", - "lineNumber": 277, + "lineNumber": 267, "unknown": [ { "tagName": "@returns", @@ -2130,7 +2130,7 @@ "longname": "src/PubAdsService.js~PubAdsService#collapseEmptyDivs", "access": null, "description": "Enables collapsing of slot divs so that they don't take up any space on the\npage when there is no ad content to display. This mode must be set before\nthe service is enabled.", - "lineNumber": 294, + "lineNumber": 284, "unknown": [ { "tagName": "@returns", @@ -2171,7 +2171,7 @@ "longname": "src/PubAdsService.js~PubAdsService#setCategoryExclusion", "access": null, "description": "Sets a page-level ad category exclusion for the given label name.", - "lineNumber": 310, + "lineNumber": 297, "unknown": [ { "tagName": "@returns", @@ -2210,7 +2210,7 @@ "longname": "src/PubAdsService.js~PubAdsService#clearCategoryExclusions", "access": null, "description": "Clears all page-level ad category exclusion labels.\nThis is useful if you want to refresh the slot.", - "lineNumber": 321, + "lineNumber": 308, "unknown": [ { "tagName": "@returns", @@ -2238,7 +2238,7 @@ "longname": "src/PubAdsService.js~PubAdsService#_categoryExclusions", "access": null, "description": null, - "lineNumber": 322, + "lineNumber": 309, "undocument": true, "type": { "types": [ @@ -2256,7 +2256,7 @@ "longname": "src/PubAdsService.js~PubAdsService#setCentering", "access": null, "description": "Enables/disables centering of ads. This mode must be set before the service\nis enabled. Centering is disabled by default.", - "lineNumber": 332, + "lineNumber": 319, "params": [ { "nullable": null, @@ -2281,7 +2281,7 @@ "longname": "src/PubAdsService.js~PubAdsService#setCookieOptions", "access": null, "description": "Sets cookie options for GPT on the page.", - "lineNumber": 345, + "lineNumber": 332, "unknown": [ { "tagName": "@returns", @@ -2320,7 +2320,7 @@ "longname": "src/PubAdsService.js~PubAdsService#setForceSafeFrame", "access": null, "description": "Configures whether all ads on the page should be forced to be rendered using\na SafeFrame container.", - "lineNumber": 359, + "lineNumber": 346, "unknown": [ { "tagName": "@returns", @@ -2359,7 +2359,7 @@ "longname": "src/PubAdsService.js~PubAdsService#setLocation", "access": null, "description": "Passes location information from websites so you can geo-target line items\nto specific locations. {@link DFP} will not use location data unless this feature\nhas been enabled for your network.", - "lineNumber": 375, + "lineNumber": 362, "unknown": [ { "tagName": "@returns", @@ -2419,7 +2419,7 @@ "longname": "src/PubAdsService.js~PubAdsService#setPublisherProvidedId", "access": null, "description": "Sets the value for the publisher-provided ID.", - "lineNumber": 397, + "lineNumber": 384, "unknown": [ { "tagName": "@returns", @@ -2458,7 +2458,7 @@ "longname": "src/PubAdsService.js~PubAdsService#setSafeFrameConfig", "access": null, "description": "Sets the page-level preferences for SafeFrame configuration. Any\nunrecognized keys in the config object will be ignored. The entire config\nwill be ignored if an invalid value is passed for a recognized key. These\npage level preferences will be overriden by slot level preferences, if\nspecified.", - "lineNumber": 412, + "lineNumber": 399, "unknown": [ { "tagName": "@returns", @@ -2497,7 +2497,7 @@ "longname": "src/PubAdsService.js~PubAdsService#setTagForChildDirectedTreatment", "access": null, "description": "Configures whether the page should be treated as child-directed.", - "lineNumber": 425, + "lineNumber": 412, "unknown": [ { "tagName": "@returns", @@ -2536,7 +2536,7 @@ "longname": "src/PubAdsService.js~PubAdsService#clearTagForChildDirectedTreatment", "access": null, "description": "Clears the configuration for whether the page should be treated as child-directed.", - "lineNumber": 435, + "lineNumber": 422, "unknown": [ { "tagName": "@returns", @@ -2564,7 +2564,7 @@ "longname": "src/PubAdsService.js~PubAdsService#setVideoContent", "access": null, "description": "Sets the video content information to be sent along with the ad requests for\ntargeting and content exclusion purposes. Video ads will be automatically\nenabled when this method is called. For videoContentId and videoCmsId, use\nthe values that are provided to the {@link DFP} content ingestion service.", - "lineNumber": 449, + "lineNumber": 436, "params": [ { "nullable": null, @@ -2599,7 +2599,7 @@ "longname": "src/PubAdsService.js~PubAdsService#updateCorrelator", "access": null, "description": "Changes the correlator that is sent with ad requests, effectively starting\na new page view. The correlator is the same for all the ad requests coming\nfrom one page view, and unique across page views. Only applies to async mode.", - "lineNumber": 461, + "lineNumber": 448, "unknown": [ { "tagName": "@returns", @@ -2619,6 +2619,45 @@ }, { "__docId__": 102, + "kind": "method", + "static": false, + "variation": null, + "name": "_unlessEnabled", + "memberof": "src/PubAdsService.js~PubAdsService", + "longname": "src/PubAdsService.js~PubAdsService#_unlessEnabled", + "access": null, + "description": "Conditionally execute a function unless the service has already been\nenabled.", + "lineNumber": 460, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{boolean} true if the function was called; false if the service has\nalready been enabled." + } + ], + "params": [ + { + "nullable": null, + "types": [ + "function" + ], + "spread": false, + "optional": false, + "name": "fn", + "description": "The function to call if the service is not enabled" + } + ], + "return": { + "nullable": null, + "types": [ + "boolean" + ], + "spread": false, + "description": "true if the function was called; false if the service has\nalready been enabled." + }, + "generator": false + }, + { + "__docId__": 103, "kind": "file", "static": true, "variation": null, @@ -2631,7 +2670,7 @@ "content": "/**\n * Public interface for ResponseInformation.\n */\nexport default class ResponseInformation {\n /**\n * Creates a new {@link ResponseInformation}.\n *\n * @param {string} advertiserId The ID of the advertiser.\n * @param {string} campaignId The ID of the campaign.\n * @param {?number} lineItemId The ID of the line item.\n * @param {?number} creativeId The ID of the creative.\n * @param {?Array} [labelIds] The label IDs of the creative.\n */\n constructor(advertiserId, campaignId, lineItemId, creativeId, labelIds) {\n this._advertiserId = advertiserId;\n this._campaignId = campaignId;\n this._lineItemId = lineItemId;\n this._creativeId = creativeId;\n this._labelIds = labelIds;\n }\n\n /**\n * The ID of the advertiser.\n *\n * @type {string}\n */\n get advertiserId() {\n return this._advertiserId;\n }\n\n /**\n * The ID of the campaign.\n *\n * @type {string}\n */\n get campaignId() {\n return this._campaignId;\n }\n\n /**\n * The ID of the line item.\n *\n * @type {?number}\n */\n get lineItemId() {\n return this._lineItemId;\n }\n\n /**\n * The ID of the creative.\n *\n * @type {?number}\n */\n get creativeId() {\n return this._creativeId;\n }\n\n /**\n * The label IDs of the creative.\n *\n * @type {?Array}\n */\n get labelIds() {\n return this._labelIds;\n }\n}\n" }, { - "__docId__": 103, + "__docId__": 104, "kind": "class", "static": true, "variation": null, @@ -2647,7 +2686,7 @@ "interface": false }, { - "__docId__": 104, + "__docId__": 105, "kind": "constructor", "static": false, "variation": null, @@ -2712,7 +2751,7 @@ "generator": false }, { - "__docId__": 105, + "__docId__": 106, "kind": "member", "static": false, "variation": null, @@ -2730,7 +2769,7 @@ } }, { - "__docId__": 106, + "__docId__": 107, "kind": "member", "static": false, "variation": null, @@ -2748,7 +2787,7 @@ } }, { - "__docId__": 107, + "__docId__": 108, "kind": "member", "static": false, "variation": null, @@ -2766,7 +2805,7 @@ } }, { - "__docId__": 108, + "__docId__": 109, "kind": "member", "static": false, "variation": null, @@ -2784,7 +2823,7 @@ } }, { - "__docId__": 109, + "__docId__": 110, "kind": "member", "static": false, "variation": null, @@ -2802,7 +2841,7 @@ } }, { - "__docId__": 110, + "__docId__": 111, "kind": "get", "static": false, "variation": null, @@ -2823,7 +2862,7 @@ "generator": false }, { - "__docId__": 111, + "__docId__": 112, "kind": "get", "static": false, "variation": null, @@ -2844,7 +2883,7 @@ "generator": false }, { - "__docId__": 112, + "__docId__": 113, "kind": "get", "static": false, "variation": null, @@ -2865,7 +2904,7 @@ "generator": false }, { - "__docId__": 113, + "__docId__": 114, "kind": "get", "static": false, "variation": null, @@ -2886,7 +2925,7 @@ "generator": false }, { - "__docId__": 114, + "__docId__": 115, "kind": "get", "static": false, "variation": null, @@ -2907,7 +2946,7 @@ "generator": false }, { - "__docId__": 115, + "__docId__": 116, "kind": "file", "static": true, "variation": null, @@ -2920,7 +2959,7 @@ "content": "/**\n * Configuration object for SafeFrame containers.\n */\nexport default class SafeFrameConfig {\n /**\n * Creates a new {@link SafeFrameConfig}\n *\n * @param {boolean} allowOverlayExpansion true to allow expansion by overlay and false otherwise.\n * @param {boolean} allowPushExpansion true to allow expansion by push and false otherwise.\n * @param {boolean} sandbox true if SafeFrame should use the HTML5 sandbox\n * attribute to prevent top level navigation.\n */\n constructor(allowOverlayExpansion, allowPushExpansion, sandbox) {\n this._allowOverlayExpansion = allowOverlayExpansion;\n this._allowPushExpansion = allowPushExpansion;\n this._sandbox = sandbox;\n }\n\n /**\n * true to allow expansion by overlay and false otherwise.\n *\n * @type {boolean}\n */\n get allowOverlayExpansion() {\n return this._allowOverlayExpansion;\n }\n\n /**\n * true to allow expansion by push and false otherwise.\n *\n * @type {boolean}\n */\n get allowPushExpansion() {\n return this._allowPushExpansion;\n }\n\n /**\n * true if SafeFrame should use the HTML5 sandbox\n * attribute to prevent top level navigation. The only valid value is true (cannot\n * be forced to false). Note that the sandbox attribute disables plugins (e.g. Flash)\n * and creatives that attempt to navigate the top level page instead of opening\n * in a new window.\n *\n * @type {boolean} boolean\n */\n get sandbox() {\n return this._sandbox;\n }\n}\n" }, { - "__docId__": 116, + "__docId__": 117, "kind": "class", "static": true, "variation": null, @@ -2936,7 +2975,7 @@ "interface": false }, { - "__docId__": 117, + "__docId__": 118, "kind": "constructor", "static": false, "variation": null, @@ -2981,7 +3020,7 @@ "generator": false }, { - "__docId__": 118, + "__docId__": 119, "kind": "member", "static": false, "variation": null, @@ -2999,7 +3038,7 @@ } }, { - "__docId__": 119, + "__docId__": 120, "kind": "member", "static": false, "variation": null, @@ -3017,7 +3056,7 @@ } }, { - "__docId__": 120, + "__docId__": 121, "kind": "member", "static": false, "variation": null, @@ -3035,7 +3074,7 @@ } }, { - "__docId__": 121, + "__docId__": 122, "kind": "get", "static": false, "variation": null, @@ -3056,7 +3095,7 @@ "generator": false }, { - "__docId__": 122, + "__docId__": 123, "kind": "get", "static": false, "variation": null, @@ -3077,7 +3116,7 @@ "generator": false }, { - "__docId__": 123, + "__docId__": 124, "kind": "get", "static": false, "variation": null, @@ -3098,7 +3137,7 @@ "generator": false }, { - "__docId__": 124, + "__docId__": 125, "kind": "file", "static": true, "variation": null, @@ -3108,10 +3147,10 @@ "access": null, "description": null, "lineNumber": 4, - "content": "/**\n * Base service class that contains methods common for all services.\n */\nexport default class Service {\n /**\n * Creates a new {@link Service}.\n *\n * @param {GPT} gpt The containing {@link GPT} instance.\n * @param {string} name The name of the service\n */\n constructor(gpt, name) {\n this._name = name;\n this._gpt = gpt;\n this._enabled = false;\n this._used = false;\n this._listeners = {};\n this._attributes = {};\n this._slots = [];\n this._slotCounter = 0;\n this._slotIdMap = {};\n }\n\n /**\n * Returns the name of the service.\n *\n * @experimental\n * @returns {string} The name of the service\n */\n getName() {\n return this._name;\n }\n\n /**\n * Returns a version string.\n *\n * @experimental\n * @returns {string} The version string.\n */\n getVersion() {\n return 'unversioned';\n }\n\n /**\n * Returns the slots with this service enabled.\n *\n * @experimental\n * @returns {Array} The slots\n */\n getSlots() {\n return this._slots.slice(0);\n }\n\n /**\n * Adds the given slot to this service.\n *\n * @param {Slot} slot The slot to add\n * @returns {Slot}\n * @private\n */\n _addSlot(slot) {\n if (this._slots.indexOf(slot) === -1) {\n this._gpt._addSlot(slot);\n\n this._slots.push(slot);\n this._slotCounter = this._slotCounter + 1;\n\n const id = `${slot.getAdUnitPath()}_${this._slotCounter}`;\n this._slotIdMap[id] = slot;\n }\n\n this._used = true;\n return slot;\n }\n\n /**\n * Removes the given slot from the service.\n *\n * @param {Slot} slot The slot to remove\n * @private\n */\n _removeSlot(slot) {\n const index = this._slots.indexOf(slot);\n if (index !== -1) {\n this._slots.splice(index, 1);\n this._gpt._removeSlot(slot);\n const id = `${slot.getAdUnitPath()}_${index + 1}`;\n delete this._slotIdMap[id];\n }\n }\n\n /**\n * Returns a map of ID's to slots.\n *\n * @experimental\n * @returns {object} The map of ID's to slots.\n */\n getSlotIdMap() {\n return Object.assign({}, this._slotIdMap);\n }\n\n /**\n * Registers a listener that allows you to set up and call a JavaScript\n * function when a specific {@link GPT} event happens on the page. The following\n * events are supported:\n * * googletag.events.ImpressionViewableEvent\n * * googletag.events.SlotOnloadEvent\n * * googletag.events.SlotRenderEndedEvent\n * * googletag.events.SlotVisibilityChangedEvent\n *\n * An object of the appropriate event type is passed to the listener when it is called.\n *\n * @param {string} eventType A string representing the type of event generated\n * by GPT. Event types are case sensitive.\n * @param {function(event: object)} listener Function that takes a single event object argument.\n * @returns {Service} The service object on which the method was called.\n */\n addEventListener(eventType, listener) {\n this._listeners[eventType] = this._listeners[eventType] || [];\n this._listeners[eventType].push(listener);\n return this;\n }\n\n /**\n * Fires the specified eventType, calling all registered listeners with the\n * specified event object.\n *\n * @param {string} eventType The event type to fire.\n * @param {object} event The event object to pass to listeners.\n * @private\n */\n _fireEvent(eventType, event) {\n for (let listener of (this._listeners[eventType] || [])) {\n listener(event);\n }\n }\n\n /**\n * Returns the value for the AdSense attribute associated with the given key.\n *\n * @param {string} key Name of the attribute to look for.\n * @returns {?string} Current value for the attribute key, or null if the key\n * is not present\n */\n get(key) {\n return this._attributes[key] || null;\n }\n\n /**\n * Returns the attribute keys that have been set on this service.\n *\n * @returns {!Array} Array of attribute keys set on this service.\n * Ordering is undefined.\n */\n getAttributeKeys() {\n return Object.keys(this._attributes);\n }\n\n /**\n * Sets values for AdSense attributes that apply to all ad slots under the\n * publisher ads service. See AdSense Attributes for a list of available keys\n * and values. Calling this more than once for the same key will override\n * previously set values for that key. All values must be set before the\n * first display call.\n *\n * @param {string} key The name of the attribute.\n * @param {string} value Attribute value.\n * @returns {Service} The service object on which the method was called.\n */\n set(key, value) {\n this._attributes[key] = value;\n return this;\n }\n\n /**\n * Constructs and displays an ad slot with the given ad unit path and size.\n * This method does not work with single request mode.\n *\n * @param {string} adUnitPath Ad unit path of slot to be rendered.\n * @param {GeneralSize} size Width and height of the slot.\n * @param {string} [optDiv] ID of the div containing the slot.\n * @param {string} [optClickUrl] The click URL to use on this slot.\n */\n display(adUnitPath, size, optDiv, optClickUrl) {\n this._used = true;\n this.enable();\n this._gpt.defineSlot(adUnitPath, size, optDiv).addService(this).setClickUrl(optClickUrl);\n }\n\n /**\n * Enables the service.\n *\n * @experimental\n */\n enable() {\n this._enabled = true;\n }\n}\n" + "content": "/**\n * Base service class that contains methods common for all services.\n */\nexport default class Service {\n /**\n * Creates a new {@link Service}.\n *\n * @param {GPT} gpt The containing {@link GPT} instance.\n * @param {string} name The name of the service\n */\n constructor(gpt, name) {\n this._name = name;\n this._gpt = gpt;\n this._enabled = false;\n this._used = false;\n this._listeners = {};\n this._attributes = {};\n this._slots = [];\n this._slotCounter = 0;\n this._slotIdMap = {};\n }\n\n /**\n * Returns the name of the service.\n *\n * @experimental\n * @returns {string} The name of the service\n */\n getName() {\n return this._name;\n }\n\n /**\n * Returns a version string.\n *\n * @experimental\n * @returns {string} The version string.\n */\n getVersion() {\n return 'unversioned';\n }\n\n /**\n * Returns the slots with this service enabled.\n *\n * @experimental\n * @returns {Array} The slots\n */\n getSlots() {\n return this._slots.slice(0);\n }\n\n /**\n * Adds the given slot to this service.\n *\n * @param {Slot} slot The slot to add\n * @returns {Slot}\n * @private\n */\n _addSlot(slot) {\n if (this._slots.indexOf(slot) === -1) {\n this._gpt._addSlot(slot);\n\n this._slots.push(slot);\n this._slotCounter = this._slotCounter + 1;\n\n const id = `${slot.getAdUnitPath()}_${this._slotCounter}`;\n this._slotIdMap[id] = slot;\n }\n\n this._used = true;\n return slot;\n }\n\n /**\n * Removes the given slot from the service.\n *\n * @param {Slot} slot The slot to remove\n * @private\n */\n _removeSlot(slot) {\n const index = this._slots.indexOf(slot);\n if (index !== -1) {\n this._slots.splice(index, 1);\n this._gpt._removeSlot(slot);\n const id = `${slot.getAdUnitPath()}_${index + 1}`;\n delete this._slotIdMap[id];\n }\n }\n\n /**\n * Returns a map of IDs to slots.\n *\n * @experimental\n * @returns {Object} The map of IDs to slots.\n */\n getSlotIdMap() {\n return Object.assign({}, this._slotIdMap);\n }\n\n /**\n * Registers a listener that allows you to set up and call a JavaScript\n * function when a specific {@link GPT} event happens on the page. The following\n * events are supported:\n * * googletag.events.ImpressionViewableEvent\n * * googletag.events.SlotOnloadEvent\n * * googletag.events.SlotRenderEndedEvent\n * * googletag.events.SlotVisibilityChangedEvent\n *\n * An object of the appropriate event type is passed to the listener when it is called.\n *\n * @param {string} eventType A string representing the type of event generated\n * by GPT. Event types are case sensitive.\n * @param {function(event: Object)} listener Function that takes a single event object argument.\n * @returns {Service} The service object on which the method was called.\n */\n addEventListener(eventType, listener) {\n this._listeners[eventType] = this._listeners[eventType] || [];\n this._listeners[eventType].push(listener);\n return this;\n }\n\n /**\n * Fires the specified eventType, calling all registered listeners with the\n * specified event object.\n *\n * @param {string} eventType The event type to fire.\n * @param {Object} event The event object to pass to listeners.\n * @private\n */\n _fireEvent(eventType, event) {\n for (let listener of (this._listeners[eventType] || [])) {\n listener(event);\n }\n }\n\n /**\n * Returns the value for the AdSense attribute associated with the given key.\n *\n * @param {string} key Name of the attribute to look for.\n * @returns {?string} Current value for the attribute key, or null if the key\n * is not present\n */\n get(key) {\n return this._attributes[key] || null;\n }\n\n /**\n * Returns the attribute keys that have been set on this service.\n *\n * @returns {!Array} Array of attribute keys set on this service.\n * Ordering is undefined.\n */\n getAttributeKeys() {\n return Object.keys(this._attributes);\n }\n\n /**\n * Sets values for AdSense attributes that apply to all ad slots under the\n * publisher ads service. See AdSense Attributes for a list of available keys\n * and values. Calling this more than once for the same key will override\n * previously set values for that key. All values must be set before the\n * first display call.\n *\n * @param {string} key The name of the attribute.\n * @param {string} value Attribute value.\n * @returns {Service} The service object on which the method was called.\n */\n set(key, value) {\n this._attributes[key] = value;\n return this;\n }\n\n /**\n * Constructs and displays an ad slot with the given ad unit path and size.\n * This method does not work with single request mode.\n *\n * @param {string} adUnitPath Ad unit path of slot to be rendered.\n * @param {GeneralSize} size Width and height of the slot.\n * @param {string} [optDiv] ID of the div containing the slot.\n * @param {string} [optClickUrl] The click URL to use on this slot.\n */\n display(adUnitPath, size, optDiv, optClickUrl) {\n this._used = true;\n this.enable();\n this._gpt.defineSlot(adUnitPath, size, optDiv).addService(this).setClickUrl(optClickUrl);\n }\n\n /**\n * Enables the service.\n *\n * @experimental\n */\n enable() {\n this._enabled = true;\n }\n}\n" }, { - "__docId__": 125, + "__docId__": 126, "kind": "class", "static": true, "variation": null, @@ -3127,7 +3166,7 @@ "interface": false }, { - "__docId__": 126, + "__docId__": 127, "kind": "constructor", "static": false, "variation": null, @@ -3162,7 +3201,7 @@ "generator": false }, { - "__docId__": 127, + "__docId__": 128, "kind": "member", "static": false, "variation": null, @@ -3180,7 +3219,7 @@ } }, { - "__docId__": 128, + "__docId__": 129, "kind": "member", "static": false, "variation": null, @@ -3198,7 +3237,7 @@ } }, { - "__docId__": 129, + "__docId__": 130, "kind": "member", "static": false, "variation": null, @@ -3216,7 +3255,7 @@ } }, { - "__docId__": 130, + "__docId__": 131, "kind": "member", "static": false, "variation": null, @@ -3234,7 +3273,7 @@ } }, { - "__docId__": 131, + "__docId__": 132, "kind": "member", "static": false, "variation": null, @@ -3252,7 +3291,7 @@ } }, { - "__docId__": 132, + "__docId__": 133, "kind": "member", "static": false, "variation": null, @@ -3270,7 +3309,7 @@ } }, { - "__docId__": 133, + "__docId__": 134, "kind": "member", "static": false, "variation": null, @@ -3288,7 +3327,7 @@ } }, { - "__docId__": 134, + "__docId__": 135, "kind": "member", "static": false, "variation": null, @@ -3306,7 +3345,7 @@ } }, { - "__docId__": 135, + "__docId__": 136, "kind": "member", "static": false, "variation": null, @@ -3324,7 +3363,7 @@ } }, { - "__docId__": 136, + "__docId__": 137, "kind": "method", "static": false, "variation": null, @@ -3353,7 +3392,7 @@ "generator": false }, { - "__docId__": 137, + "__docId__": 138, "kind": "method", "static": false, "variation": null, @@ -3382,7 +3421,7 @@ "generator": false }, { - "__docId__": 138, + "__docId__": 139, "kind": "method", "static": false, "variation": null, @@ -3411,7 +3450,7 @@ "generator": false }, { - "__docId__": 139, + "__docId__": 140, "kind": "method", "static": false, "variation": null, @@ -3450,7 +3489,7 @@ "generator": false }, { - "__docId__": 140, + "__docId__": 141, "kind": "member", "static": false, "variation": null, @@ -3468,7 +3507,7 @@ } }, { - "__docId__": 141, + "__docId__": 142, "kind": "member", "static": false, "variation": null, @@ -3486,7 +3525,7 @@ } }, { - "__docId__": 142, + "__docId__": 143, "kind": "method", "static": false, "variation": null, @@ -3511,7 +3550,7 @@ "generator": false }, { - "__docId__": 143, + "__docId__": 144, "kind": "method", "static": false, "variation": null, @@ -3519,28 +3558,28 @@ "memberof": "src/Service.js~Service", "longname": "src/Service.js~Service#getSlotIdMap", "access": null, - "description": "Returns a map of ID's to slots.", + "description": "Returns a map of IDs to slots.", "lineNumber": 97, "experimental": true, "unknown": [ { "tagName": "@returns", - "tagValue": "{object} The map of ID's to slots." + "tagValue": "{Object} The map of IDs to slots." } ], "params": [], "return": { "nullable": null, "types": [ - "object" + "Object" ], "spread": false, - "description": "The map of ID's to slots." + "description": "The map of IDs to slots." }, "generator": false }, { - "__docId__": 144, + "__docId__": 145, "kind": "method", "static": false, "variation": null, @@ -3570,7 +3609,7 @@ { "nullable": null, "types": [ - "function(event: object)" + "function(event: Object)" ], "spread": false, "optional": false, @@ -3589,7 +3628,7 @@ "generator": false }, { - "__docId__": 145, + "__docId__": 146, "kind": "method", "static": false, "variation": null, @@ -3613,7 +3652,7 @@ { "nullable": null, "types": [ - "object" + "Object" ], "spread": false, "optional": false, @@ -3624,7 +3663,7 @@ "generator": false }, { - "__docId__": 146, + "__docId__": 147, "kind": "method", "static": false, "variation": null, @@ -3663,7 +3702,7 @@ "generator": false }, { - "__docId__": 147, + "__docId__": 148, "kind": "method", "static": false, "variation": null, @@ -3691,7 +3730,7 @@ "generator": false }, { - "__docId__": 148, + "__docId__": 149, "kind": "method", "static": false, "variation": null, @@ -3740,7 +3779,7 @@ "generator": false }, { - "__docId__": 149, + "__docId__": 150, "kind": "method", "static": false, "variation": null, @@ -3795,7 +3834,7 @@ "generator": false }, { - "__docId__": 150, + "__docId__": 151, "kind": "member", "static": false, "variation": null, @@ -3813,7 +3852,7 @@ } }, { - "__docId__": 151, + "__docId__": 152, "kind": "method", "static": false, "variation": null, @@ -3828,7 +3867,7 @@ "generator": false }, { - "__docId__": 152, + "__docId__": 153, "kind": "member", "static": false, "variation": null, @@ -3846,7 +3885,7 @@ } }, { - "__docId__": 153, + "__docId__": 154, "kind": "file", "static": true, "variation": null, @@ -3859,7 +3898,7 @@ "content": "/**\n * @typedef {SingleSizeArray|NamedSize} SingleSize\n * @private\n */\nimport * as SingleSizeArray from './SingleSizeArray';\nimport * as NamedSize from './NamedSize';\n\n/**\n * Returns true if the given object is a {@link SingleSize}.\n *\n * @private\n * @param {SingleSize|*} obj The object to test\n */\nexport function isSingleSize(obj) {\n return obj != null && (SingleSizeArray.isSingleSizeArray(obj) || NamedSize.isNamedSize(obj));\n}\n\n/**\n * Returns a {@link Size} instance from the {@link SingleSize}.\n *\n * @private\n * @param {SingleSize|*} obj The object to convert.\n * @returns {?Size} The {@link Size} instance or null if the object is not a {@link SingleSizeArray}.\n */\nexport function toSize(obj) {\n if (SingleSizeArray.isSingleSizeArray(obj)) {\n return SingleSizeArray.toSize(obj);\n } else {\n return null;\n }\n}\n" }, { - "__docId__": 154, + "__docId__": 155, "kind": "typedef", "static": true, "variation": null, @@ -3879,7 +3918,7 @@ } }, { - "__docId__": 155, + "__docId__": 156, "kind": "function", "static": true, "variation": null, @@ -3913,7 +3952,7 @@ "generator": false }, { - "__docId__": 156, + "__docId__": 157, "kind": "function", "static": true, "variation": null, @@ -3956,7 +3995,7 @@ "generator": false }, { - "__docId__": 157, + "__docId__": 158, "kind": "file", "static": true, "variation": null, @@ -3969,7 +4008,7 @@ "content": "/**\n * Array of two numbers representing [width, height].\n * @typedef {Array} SingleSizeArray\n * @private\n */\nimport Size from './Size';\n\n/**\n * Returns true if the given object is a {@link SingleSizeArray}.\n *\n * @private\n * @param {SingleSizeArray|*} obj The object to test\n */\nexport function isSingleSizeArray(obj) {\n if (obj == null || !Array.isArray(obj) || obj.length !== 2) {\n return false;\n }\n\n const [w, h] = obj;\n return isInteger(w) && isInteger(h);\n}\n\n/**\n * Returns a {@link Size} instance from the {@link SingleSizeArray}.\n *\n * @private\n * @param {SingleSizeArray|*} obj The object to convert.\n * @returns {?Size} The {@link Size} instance or null if the object is not\n * a {@link SingleSizeArray}.\n */\nexport function toSize(obj) {\n if (isSingleSizeArray(obj)) {\n const [w, h] = obj;\n return new Size(w, h);\n } else {\n return null;\n }\n}\n\n/**\n * Returns true if the specified parameter is an integer.\n *\n * @private\n * @param {*} n The value to check\n * @returns {boolean} True if the value is an integer.\n */\nfunction isInteger(n) {\n return (typeof n === 'number') && (n % 1 === 0);\n}\n" }, { - "__docId__": 158, + "__docId__": 159, "kind": "typedef", "static": true, "variation": null, @@ -3988,7 +4027,7 @@ } }, { - "__docId__": 159, + "__docId__": 160, "kind": "function", "static": true, "variation": null, @@ -4022,7 +4061,7 @@ "generator": false }, { - "__docId__": 160, + "__docId__": 161, "kind": "function", "static": true, "variation": null, @@ -4065,7 +4104,7 @@ "generator": false }, { - "__docId__": 161, + "__docId__": 162, "kind": "function", "static": true, "variation": null, @@ -4107,7 +4146,7 @@ "generator": false }, { - "__docId__": 162, + "__docId__": 163, "kind": "file", "static": true, "variation": null, @@ -4117,10 +4156,10 @@ "access": null, "description": null, "lineNumber": 6, - "content": "/**\n * Size captures a two dimensional size.\n *\n * @experimental\n */\nexport default class Size {\n /**\n * Creates a new {@link Size} instance.\n *\n * @param {number} width The width\n * @param {number} height The height\n */\n constructor(width, height) {\n /**\n * The width\n * @type {number}\n */\n this.width = width;\n\n /**\n * The height\n * @type {number}\n */\n this.height = height;\n }\n\n /**\n * Gets the width in pixels.\n *\n * @type {number} The width in pixels\n */\n getWidth() {\n return this.width;\n }\n\n /**\n * Gets the height in pixels.\n *\n * @type {number} The height in pixels\n */\n getHeight() {\n return this.height;\n }\n\n /**\n * Returns whether the {@link Size} is empty.\n *\n * @experimental\n * @type {boolean} True if the size is empty.\n */\n isEmpty() {\n return !(this.width * this.height);\n }\n\n /**\n * Truncates the width and height upward.\n *\n * @experimental\n * @type {Size} The instance called\n */\n ceil() {\n this.width = Math.ceil(this.width);\n this.height = Math.ceil(this.height);\n return this;\n }\n\n /**\n * Truncates the width and height downard.\n *\n * @experimental\n * @type {Size} The instance called\n */\n floor() {\n this.width = Math.floor(this.width);\n this.height = Math.floor(this.height);\n return this;\n }\n\n /**\n * Rounds the width and height.\n *\n * @experimental\n * @type {Size} The instance called\n */\n round() {\n this.width = Math.round(this.width);\n this.height = Math.round(this.height);\n return this;\n }\n}\n" + "content": "/**\n * Size captures a two dimensional size.\n *\n * @experimental\n */\nexport default class Size {\n /**\n * Creates a new {@link Size} instance.\n *\n * @param {number} width The width\n * @param {number} height The height\n */\n constructor(width, height) {\n /**\n * The width\n * @type {number}\n */\n this.width = width;\n\n /**\n * The height\n * @type {number}\n */\n this.height = height;\n }\n\n /**\n * Gets the width in pixels.\n *\n * @type {number} The width in pixels\n */\n getWidth() {\n return this.width;\n }\n\n /**\n * Gets the height in pixels.\n *\n * @type {number} The height in pixels\n */\n getHeight() {\n return this.height;\n }\n\n /**\n * Returns whether the {@link Size} is empty.\n *\n * @experimental\n * @type {boolean} true if the size is empty.\n */\n isEmpty() {\n return !(this.width * this.height);\n }\n\n /**\n * Truncates the width and height upward.\n *\n * @experimental\n * @type {Size} The instance called\n */\n ceil() {\n this.width = Math.ceil(this.width);\n this.height = Math.ceil(this.height);\n return this;\n }\n\n /**\n * Truncates the width and height downard.\n *\n * @experimental\n * @type {Size} The instance called\n */\n floor() {\n this.width = Math.floor(this.width);\n this.height = Math.floor(this.height);\n return this;\n }\n\n /**\n * Rounds the width and height.\n *\n * @experimental\n * @type {Size} The instance called\n */\n round() {\n this.width = Math.round(this.width);\n this.height = Math.round(this.height);\n return this;\n }\n}\n" }, { - "__docId__": 163, + "__docId__": 164, "kind": "class", "static": true, "variation": null, @@ -4137,7 +4176,7 @@ "interface": false }, { - "__docId__": 164, + "__docId__": 165, "kind": "constructor", "static": false, "variation": null, @@ -4172,7 +4211,7 @@ "generator": false }, { - "__docId__": 165, + "__docId__": 166, "kind": "member", "static": false, "variation": null, @@ -4192,7 +4231,7 @@ } }, { - "__docId__": 166, + "__docId__": 167, "kind": "member", "static": false, "variation": null, @@ -4212,7 +4251,7 @@ } }, { - "__docId__": 167, + "__docId__": 168, "kind": "method", "static": false, "variation": null, @@ -4239,7 +4278,7 @@ "generator": false }, { - "__docId__": 168, + "__docId__": 169, "kind": "method", "static": false, "variation": null, @@ -4266,7 +4305,7 @@ "generator": false }, { - "__docId__": 169, + "__docId__": 170, "kind": "method", "static": false, "variation": null, @@ -4294,7 +4333,7 @@ "generator": false }, { - "__docId__": 170, + "__docId__": 171, "kind": "method", "static": false, "variation": null, @@ -4322,7 +4361,7 @@ "generator": false }, { - "__docId__": 171, + "__docId__": 172, "kind": "member", "static": false, "variation": null, @@ -4340,7 +4379,7 @@ } }, { - "__docId__": 172, + "__docId__": 173, "kind": "member", "static": false, "variation": null, @@ -4358,7 +4397,7 @@ } }, { - "__docId__": 173, + "__docId__": 174, "kind": "method", "static": false, "variation": null, @@ -4386,7 +4425,7 @@ "generator": false }, { - "__docId__": 174, + "__docId__": 175, "kind": "member", "static": false, "variation": null, @@ -4404,7 +4443,7 @@ } }, { - "__docId__": 175, + "__docId__": 176, "kind": "member", "static": false, "variation": null, @@ -4422,7 +4461,7 @@ } }, { - "__docId__": 176, + "__docId__": 177, "kind": "method", "static": false, "variation": null, @@ -4450,7 +4489,7 @@ "generator": false }, { - "__docId__": 177, + "__docId__": 178, "kind": "member", "static": false, "variation": null, @@ -4468,7 +4507,7 @@ } }, { - "__docId__": 178, + "__docId__": 179, "kind": "member", "static": false, "variation": null, @@ -4486,7 +4525,7 @@ } }, { - "__docId__": 179, + "__docId__": 180, "kind": "file", "static": true, "variation": null, @@ -4499,7 +4538,7 @@ "content": "/**\n * Each size mapping is an array of two elements: {@link SingleSizeArray} and\n * {@link GeneralSize}.\n *\n * @typedef {Array} SizeMapping\n * @private\n */\nimport * as GeneralSize from './GeneralSize';\nimport * as SingleSizeArray from './SingleSizeArray';\n\n/**\n * Returns true if the object is a {@link SizeMapping}.\n *\n * @private\n * @param {SizeMapping|*} obj The object to test\n */\nexport function isSizeMapping(obj) {\n if (!Array.isArray(obj) || obj.length !== 2) {\n return false;\n }\n\n const [viewport, mappings] = obj;\n\n return SingleSizeArray.isSingleSizeArray(viewport) &&\n GeneralSize.isGeneralSize(mappings);\n}\n" }, { - "__docId__": 180, + "__docId__": 181, "kind": "typedef", "static": true, "variation": null, @@ -4519,7 +4558,7 @@ } }, { - "__docId__": 181, + "__docId__": 182, "kind": "function", "static": true, "variation": null, @@ -4553,7 +4592,7 @@ "generator": false }, { - "__docId__": 182, + "__docId__": 183, "kind": "file", "static": true, "variation": null, @@ -4566,7 +4605,7 @@ "content": "/**\n * @typedef {Array} SizeMappingArray\n * @private\n */\nimport * as SizeMapping from './SizeMapping';\n\n/**\n * Returns true if the object is a {@link SizeMappingArray}.\n *\n * @private\n * @param {SizeMappingArray|*} obj The object to test\n */\nexport function isSizeMappingArray(obj) {\n if (!Array.isArray(obj)) {\n return false;\n }\n\n for (let ele of obj) {\n if (!SizeMapping.isSizeMapping(ele)) {\n return false;\n }\n }\n\n return true;\n}\n" }, { - "__docId__": 183, + "__docId__": 184, "kind": "typedef", "static": true, "variation": null, @@ -4585,7 +4624,7 @@ } }, { - "__docId__": 184, + "__docId__": 185, "kind": "function", "static": true, "variation": null, @@ -4619,7 +4658,7 @@ "generator": false }, { - "__docId__": 185, + "__docId__": 186, "kind": "file", "static": true, "variation": null, @@ -4632,7 +4671,7 @@ "content": "import * as SizeMappingArray from './SizeMappingArray';\n\n/**\n * Builder for size mapping specification objects. This builder is provided to\n * help easily construct size specifications.\n */\nexport default class SizeMappingBuilder {\n /**\n * Creates a new {@link SizeMappingBuilder}.\n */\n constructor() {\n this._mappings = [];\n }\n\n /**\n * Adds a mapping from a {@link SingleSizeArray} representing the viewport to\n * {@link GeneralSize} representing the slot.\n *\n * @param {SingleSizeArray} viewportSize The size of the viewport for this mapping entry.\n * @param {GeneralSize} slotSize The sizes of the slot for this mapping entry.\n * @returns {SizeMappingBuilder} A reference to this builder.\n */\n addSize(viewportSize, slotSize) {\n this._mappings.push([viewportSize, slotSize]);\n return this;\n }\n\n /**\n * Builds a size map specification from the mappings added to this builder. If\n * any invalid mappings have been supplied, this method will return null.\n * Otherwise it returns a specification in the correct format to pass to\n * {@link Slot#defineSizeMapping()}. The behavior of the builder after\n * calling {@link SizeMappingBuilder#build} is undefined.\n *\n * @returns {?SizeMappingArray} The result built by this builder. Can be null\n * if invalid size mappings were supplied.\n */\n build() {\n if (this._mappings.length > 0 &&\n SizeMappingArray.isSizeMappingArray(this._mappings)) {\n const mappings = this._mappings;\n this._mappings = [];\n return mappings;\n } else {\n return null;\n }\n }\n}\n" }, { - "__docId__": 186, + "__docId__": 187, "kind": "class", "static": true, "variation": null, @@ -4648,7 +4687,7 @@ "interface": false }, { - "__docId__": 187, + "__docId__": 188, "kind": "constructor", "static": false, "variation": null, @@ -4662,7 +4701,7 @@ "generator": false }, { - "__docId__": 188, + "__docId__": 189, "kind": "member", "static": false, "variation": null, @@ -4680,7 +4719,7 @@ } }, { - "__docId__": 189, + "__docId__": 190, "kind": "method", "static": false, "variation": null, @@ -4729,7 +4768,7 @@ "generator": false }, { - "__docId__": 190, + "__docId__": 191, "kind": "method", "static": false, "variation": null, @@ -4757,7 +4796,7 @@ "generator": false }, { - "__docId__": 191, + "__docId__": 192, "kind": "member", "static": false, "variation": null, @@ -4775,7 +4814,7 @@ } }, { - "__docId__": 192, + "__docId__": 193, "kind": "file", "static": true, "variation": null, @@ -4785,10 +4824,10 @@ "access": null, "description": null, "lineNumber": 1, - "content": "import * as GeneralSize from './GeneralSize';\nimport * as SizeMappingArray from './SizeMappingArray';\nimport ImpressionViewableEvent from './events/ImpressionViewableEvent';\nimport SlotOnloadEvent from './events/SlotOnloadEvent';\nimport SlotRenderEndedEvent from './events/SlotRenderEndedEvent';\nimport SlotVisibilityChangedEvent from './events/SlotVisibilityChangedEvent';\nimport SlotId from './SlotId';\n\n/**\n * Slot is an object representing single ad slot on a page.\n */\nexport default class Slot {\n /**\n * Creates a new {@link Slot}.\n *\n * @param {string} adUnitPath Full path of the ad unit with the network code and unit code.\n * @param {GeneralSize} [size] Width and height of the added slot. This is the\n * size that is used in the ad request if no responsive size mapping is provided\n * or the size of the viewport is smaller than the smallest size provided in the mapping.\n * @param {string} [optDiv] ID of the div that will contain this ad unit.\n * @param {number} [instance = 0] The instance count of the slot.\n */\n constructor(adUnitPath, size, optDiv, instance = 0) {\n this._id = new SlotId(adUnitPath, instance, optDiv);\n this._sizes = GeneralSize.toSizes(size);\n this._services = [];\n this._categoryExclusions = [];\n this._targeting = {};\n this._attributes = {};\n this._clickUrl = null;\n this._responseInformation = null;\n this._sizeMapping = null;\n this._options = {\n content: null,\n refreshed: 0,\n displayed: false,\n fetched: false,\n passback: false,\n outOfPage: false,\n forceSafeFrame: false,\n safeFrameConfig: null,\n collapseEmptyDiv: false,\n collapseBeforeAdFetch: false\n };\n }\n\n /**\n * Returns the name of the slot\n *\n * @experimental\n * @returns {string} Ad unit path.\n */\n getName() {\n return this._id.getName();\n }\n\n /**\n * Returns the instance of the {@link Slot}.\n *\n * @experimental\n * @returns {number} The instance\n */\n getDefinedId() {\n return this._id.getInstance();\n }\n\n /**\n * Returns the full path of the ad unit, with the network code and ad unit path.\n *\n * @returns {string} Ad unit path.\n */\n getAdUnitPath() {\n return this._id.getAdUnitPath();\n }\n\n /**\n * Returns the id of the slot element provided when the {@link Slot} was defined.\n *\n * @returns {string} Slot element id.\n */\n getSlotElementId() {\n return this._id.getDomId();\n }\n\n /**\n * Returns the enabled services.\n *\n * @experimental\n * @returns {Array} The list of enabled services.\n */\n getServices() {\n return this._services.slice(0);\n }\n\n /**\n * Returns the sizes.\n *\n * @experimental\n * @returns {Array} The list of sizes.\n */\n getSizes() {\n return this._sizes.slice(0);\n }\n\n /**\n * Returns a flag indicating whether the {@link Slot} is out of the page.\n *\n * @experimental\n * @returns {boolean}\n */\n getOutOfPage() {\n return this._options.outOfPage;\n }\n\n /**\n * Initiates rendering of this slot.\n */\n display() {\n if (!this._options.displayed) {\n this.fetchStarted();\n this.fetchEnded();\n this.loaded();\n this.renderStarted();\n this.renderEnded();\n\n this.impressionViewable();\n this.visibilityChanged(100);\n }\n }\n\n /**\n * Returns the list of attribute keys set on this slot. If you intend to see\n * the keys of service-level attributes inherited by this {@link Slot}, you have to\n * use the {@link PubAdsService#getAttributeKeys} API.\n *\n * @returns {!Array} Array of attribute keys. Ordering is undefined.\n */\n getAttributeKeys() {\n return Object.keys(this._attributes);\n }\n\n /**\n * Returns the value for the AdSense attribute associated with the given key.\n * Note that if you intend to see service-level attributes inherited by this\n * slot, you have to use the {@link PubAdsService#get} API.\n *\n * @param {string} key Name of the attribute to look for.\n * @returns {?string} Current value for the attribute key, or null if the key\n * is not present.\n */\n get(key) {\n return this._attributes[key] || null;\n }\n\n /**\n * Sets a value for an AdSense attribute on a particular ad slot. This will\n * override any values set at the service level for this key. See the AdSense\n * Attributes for a list of available keys and values. Calling this method\n * more than once for the same key will override previously set values for\n * that key. All values must be set before any display call.\n *\n * @param {string} key The name of the attribute.\n * @param {string} value Attribute value.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n */\n set(key, value) {\n this._attributes[key] = value;\n return this;\n }\n\n /**\n * Return the attribute map.\n *\n * @private\n * @returns {Object} The attribute map\n */\n _getAttributes() {\n return Object.assign({}, this._attributes);\n }\n\n /**\n * Returns a specific custom targeting parameter set on this slot.\n * Service-level targeting parameters are not included.\n *\n * @param {string} key The targeting key to look for.\n * @returns {!Array} The values associated with this key, or an empty\n * array if there is no such key.\n */\n getTargeting(key) {\n return this._targeting[key] || [];\n }\n\n /**\n * Returns the list of all custom targeting keys set on this slot. Service-level\n * targeting keys are not included.\n *\n * @returns {!Array} Array of targeting keys. Ordering is undefined.\n */\n getTargetingKeys() {\n return Object.keys(this._targeting);\n }\n\n /**\n * Sets a custom targeting parameter for this slot. Calling this method\n * multiple times for the same key will overwrite old values. Values set here\n * will overwrite targeting parameters set on service level. These keys are\n * defined in your {@link DFP} account.\n *\n * @param {string} key Targeting parameter key.\n * @param {string|!Array} value Targeting parameter value or array of values.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n */\n setTargeting(key, value) {\n if (Array.isArray(value)) {\n this._targeting[key] = value;\n } else {\n this._targeting[key] = [value];\n }\n return this;\n }\n\n /**\n * Sets custom targeting parameters for this passback slot, from a key:value\n * map in a JSON object. A badly formatted input will be rejected. This is the\n * same as calling @{link Slot#setTargeting} for all the key values\n * of the object. In case of overwriting, only the last value will be kept.\n * Values set here will overwrite targeting parameters set on service level.\n * These keys are defined in your {@link DFP} account.\n *\n * @param {Object>} map Targeting parameter key:value map.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n */\n updateTargetingFromMap(map) {\n for (let key in map) {\n if (map.hasOwnProperty(key)) {\n this.setTargeting(key, map[key]);\n }\n }\n return this;\n }\n\n /**\n * Clears all custom slot-level targeting parameters for this slot.\n *\n * @returns {Slot} The {@link Slot} object on which the method was called.\n */\n clearTargeting() {\n this._targeting = {};\n return this;\n }\n\n /**\n * Returns the current targeting key-value dictionary.\n *\n * @experimental\n * @returns {Object>} the targeting map.\n */\n getTargetingMap() {\n return Object.assign({}, this._targeting);\n }\n\n /**\n * Adds a service to this slot.\n *\n * @param {Service} service The service to be added.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n */\n addService(service) {\n if (this._services.indexOf(service) === -1) {\n this._services.push(service);\n service._addSlot(this);\n }\n return this;\n }\n\n /**\n * Removes all of the services from the slot.\n *\n * @private\n */\n _removeServices() {\n for (let service of this._services) {\n service._removeSlot(this);\n }\n\n this._services = [];\n }\n\n /**\n * Returns the ad category exclusion labels for this slot.\n *\n * @returns {!Array} The ad category exclusion labels for this slot.\n */\n getCategoryExclusions() {\n return this._categoryExclusions.slice(0);\n }\n\n /**\n * Sets a slot-level ad category exclusion label on this slot.\n *\n * @param {string} categoryExclusion The ad category exclusion label to add.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n */\n setCategoryExclusion(categoryExclusion) {\n this._categoryExclusions.push(categoryExclusion);\n return this;\n }\n\n /**\n * Clears all slot-level ad category exclusion labels for this slot.\n *\n * @returns {Slot} The {@link Slot} object on which the method was called.\n */\n clearCategoryExclusions() {\n this._categoryExclusions = [];\n return this;\n }\n\n /**\n * Sets an array of mappings from a minimum viewport size to slot size for this slot.\n *\n * @param {!SizeMappingArray} sizeMapping Array of size mappings. You can use\n * {@link SizeMappingBuilder} to create it. Each size mapping is an array of two elements:\n * {@link SingleSizeArray} and {@link GeneralSize}.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n * @throws {Error} Size mapping has to be an array\n */\n defineSizeMapping(sizeMapping) {\n if (!SizeMappingArray.isSizeMappingArray(sizeMapping)) {\n throw Error('Size mapping has to be an array');\n }\n\n this._sizeMapping = sizeMapping;\n\n return this;\n }\n\n /**\n * Sets the click URL to which users will be redirected after clicking on the\n * ad. The {@link DFP} servers still record a click even if the click URL is replaced,\n * but any landing page URL associated with the creative that is served is\n * overridden. Subsequent calls overwrite the value. This works only for\n * non-SRA requests\n *\n * @param {string} value The click URL to set.\n * @returns {Slot} The slot object on which the method was called.\n */\n setClickUrl(value) {\n this._clickUrl = value;\n return this;\n }\n\n /**\n * Gets the click URL.\n *\n * @experimental\n * @returns {?string} The click URL\n */\n getClickUrl() {\n return this._clickUrl;\n }\n\n /**\n * Returns the ad response information. This is based on the last ad response\n * for the slot. If this is called when the slot has no ad, null will be\n * returned.\n *\n * @returns {?ResponseInformation}\n */\n getResponseInformation() {\n return this._responseInformation;\n }\n\n /**\n * Sets whether the slot div should be hidden when there is no ad in the slot.\n * This overrides the service-level settings.\n *\n * @param {boolean} collapse Whether to collapse the slot if no ad is returned.\n * @param {boolean} [optCollapseBeforeAdFetch] Whether to collapse the slot\n * even before an ad is fetched. Ignored if collapse is not true.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n */\n setCollapseEmptyDiv(collapse, optCollapseBeforeAdFetch) {\n this._options.collapseEmptyDiv = collapse;\n if (collapse) {\n this._options.collapseBeforeAdFetch = optCollapseBeforeAdFetch;\n }\n return this;\n }\n\n /**\n * Returns whether the slot div should be hiddne when there is no ad in the slot.\n *\n * @experimental\n * @returns {boolean} true to collapse the slot if no ad is returned.\n */\n getCollapseEmptyDiv() {\n return this._options.collapseEmptyDiv;\n }\n\n /**\n * Configures whether ads in this slot should be forced to be rendered using\n * a SafeFrame container\n *\n * @param {boolean} forceSafeFrame true to force all ads in this slot to be\n * rendered in SafeFrames and false to opt-out of a page-level setting (if\n * present). Setting this to false when not specified at page-level, won't\n * change anything.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n */\n setForceSafeFrame(forceSafeFrame) {\n this._options.forceSafeFrame = forceSafeFrame;\n return this;\n }\n\n /**\n * Sets the slot-level preferences for SafeFrame configuration. Any unrecognized\n * keys in the config object will be ignored. The entire config will be ignored\n * if an invalid value is passed for a recognized key. These slot level\n * preferences, if specified, will override any page level preferences.\n *\n * @param {SafeFrameConfig} config The configuration object.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n */\n setSafeFrameConfig(config) {\n this._options.safeFrameConfig = config;\n return this;\n }\n\n /**\n * Informs the {@link Slot} that its fetch has started.\n *\n * @experimental\n */\n fetchStarted() {\n this._options.fetched = false;\n }\n\n /**\n * Informs the {@link Slot} that its fetch has finished.\n *\n * @experimental\n */\n fetchEnded() {\n this._options.fetched = true;\n }\n\n /**\n * Informs the {@link Slot} that it has been loaded.\n *\n * @experimental\n * @emits {SlotOnloadEvent}\n */\n loaded() {\n for (let service of this._services) {\n const event = new SlotOnloadEvent(service.getName(), this);\n service._fireEvent(event._name, event);\n }\n }\n\n /**\n * Informs the {@link Slot} that its rendering has started.\n *\n * @experimental\n */\n renderStarted() {\n this._options.displayed = false;\n }\n\n /**\n * Informs the {@link Slot} that its rendering has finished.\n *\n * @experimental\n * @param {?ResponseInformation} [responseInformation] The response information.\n * @emits {SlotRenderEndedEvent}\n */\n renderEnded(responseInformation) {\n this._responseInformation = responseInformation;\n this._options.displayed = true;\n\n const size = this.getSizes()[0];\n\n for (let service of this._services) {\n let event;\n\n if (responseInformation != null) {\n event = new SlotRenderEndedEvent(service.getName(), this,\n responseInformation.creativeId, responseInformation.lineItemId, false, size);\n } else {\n event = new SlotRenderEndedEvent(service.getName(), this, null, null, true, size);\n }\n\n service._fireEvent(event._name, event);\n }\n }\n\n /**\n * Notifies the {@link Slot} that it's impression is viewable.\n *\n * @emits {ImpressionViewableEvent}\n */\n impressionViewable() {\n for (let service of this._services) {\n const event = new ImpressionViewableEvent(service.getName(), this);\n\n service._fireEvent(event._name, event);\n }\n }\n\n /**\n * Notifies the {@link Slot} of its in view percentage.\n *\n * @param {number} inViewPercentage The percentage (0-100) of the ad's area that is visible.\n * @emits {SlotVisibilityChangedEvent}\n */\n visibilityChanged(inViewPercentage) {\n if (this._options.inViewPercentage !== inViewPercentage) {\n this._options.inViewPercentage = inViewPercentage;\n for (let service of this._services) {\n const event = new SlotVisibilityChangedEvent(service.getName(), this, inViewPercentage);\n service._fireEvent(event._name, event);\n }\n }\n }\n\n /**\n * Refreshes the {@link Slot}.\n *\n * @private\n */\n _refresh() {\n this._options.refreshed += 1;\n\n this.fetchStarted();\n this.fetchEnded();\n this.loaded();\n this.renderStarted();\n this.renderEnded();\n\n this.impressionViewable();\n this.visibilityChanged(100);\n }\n\n /**\n * Clears the {@link Slot}.\n *\n * @private\n */\n _clear() {\n this._options.content = null;\n this._options.fetched = false;\n }\n\n /**\n * Sets the content of the {@link Slot}.\n *\n * @private\n * @param {?string} content The content to set; or null to clear the content.\n */\n _setContent(content) {\n this._options.content = content;\n }\n\n /**\n * Gets the content of the slot {@link Slot}.\n *\n * @private\n * @returns {?string} The content of the slot; or null if the slot has no content.\n */\n _getContent() {\n return this._options.content;\n }\n}\n" + "content": "import * as GeneralSize from './GeneralSize';\nimport * as SizeMappingArray from './SizeMappingArray';\nimport ImpressionViewableEvent from './events/ImpressionViewableEvent';\nimport SlotOnloadEvent from './events/SlotOnloadEvent';\nimport SlotRenderEndedEvent from './events/SlotRenderEndedEvent';\nimport SlotVisibilityChangedEvent from './events/SlotVisibilityChangedEvent';\nimport SlotId from './SlotId';\nimport TargetingMap from './TargetingMap';\n\n/**\n * Slot is an object representing single ad slot on a page.\n */\nexport default class Slot {\n /**\n * Creates a new {@link Slot}.\n *\n * @param {string} adUnitPath Full path of the ad unit with the network code and unit code.\n * @param {GeneralSize} [size] Width and height of the added slot. This is the\n * size that is used in the ad request if no responsive size mapping is provided\n * or the size of the viewport is smaller than the smallest size provided in the mapping.\n * @param {string} [optDiv] ID of the div that will contain this ad unit.\n * @param {number} [instance = 0] The instance count of the slot.\n */\n constructor(adUnitPath, size, optDiv, instance = 0) {\n this._id = new SlotId(adUnitPath, instance, optDiv);\n this._sizes = GeneralSize.toSizes(size);\n this._services = [];\n this._categoryExclusions = [];\n this._targeting = new TargetingMap();\n this._attributes = {};\n this._clickUrl = null;\n this._responseInformation = null;\n this._sizeMapping = null;\n this._options = {\n content: null,\n refreshed: 0,\n displayed: false,\n fetched: false,\n passback: false,\n outOfPage: false,\n forceSafeFrame: false,\n safeFrameConfig: null,\n collapseEmptyDiv: false,\n collapseBeforeAdFetch: false\n };\n }\n\n /**\n * Returns the name of the slot\n *\n * @experimental\n * @returns {string} Ad unit path.\n */\n getName() {\n return this._id.getName();\n }\n\n /**\n * Returns the instance of the {@link Slot}.\n *\n * @experimental\n * @returns {number} The instance\n */\n getDefinedId() {\n return this._id.getInstance();\n }\n\n /**\n * Returns the full path of the ad unit, with the network code and ad unit path.\n *\n * @returns {string} Ad unit path.\n */\n getAdUnitPath() {\n return this._id.getAdUnitPath();\n }\n\n /**\n * Returns the id of the slot element provided when the {@link Slot} was defined.\n *\n * @returns {string} Slot element id.\n */\n getSlotElementId() {\n return this._id.getDomId();\n }\n\n /**\n * Returns the enabled services.\n *\n * @experimental\n * @returns {Array} The list of enabled services.\n */\n getServices() {\n return this._services.slice(0);\n }\n\n /**\n * Returns the sizes.\n *\n * @experimental\n * @returns {Array} The list of sizes.\n */\n getSizes() {\n return this._sizes.slice(0);\n }\n\n /**\n * Returns a flag indicating whether the {@link Slot} is out of the page.\n *\n * @experimental\n * @returns {boolean}\n */\n getOutOfPage() {\n return this._options.outOfPage;\n }\n\n /**\n * Initiates rendering of this slot.\n */\n display() {\n if (!this._options.displayed) {\n this.fetchStarted();\n this.fetchEnded();\n this.loaded();\n this.renderStarted();\n this.renderEnded();\n\n this.impressionViewable();\n this.visibilityChanged(100);\n }\n }\n\n /**\n * Returns the list of attribute keys set on this slot. If you intend to see\n * the keys of service-level attributes inherited by this {@link Slot}, you have to\n * use the {@link PubAdsService#getAttributeKeys} API.\n *\n * @returns {!Array} Array of attribute keys. Ordering is undefined.\n */\n getAttributeKeys() {\n return Object.keys(this._attributes);\n }\n\n /**\n * Returns the value for the AdSense attribute associated with the given key.\n * Note that if you intend to see service-level attributes inherited by this\n * slot, you have to use the {@link PubAdsService#get} API.\n *\n * @param {string} key Name of the attribute to look for.\n * @returns {?string} Current value for the attribute key, or null if the key\n * is not present.\n */\n get(key) {\n return this._attributes[key] || null;\n }\n\n /**\n * Sets a value for an AdSense attribute on a particular ad slot. This will\n * override any values set at the service level for this key. See the AdSense\n * Attributes for a list of available keys and values. Calling this method\n * more than once for the same key will override previously set values for\n * that key. All values must be set before any display call.\n *\n * @param {string} key The name of the attribute.\n * @param {string} value Attribute value.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n */\n set(key, value) {\n this._attributes[key] = value;\n return this;\n }\n\n /**\n * Return the attribute map.\n *\n * @private\n * @returns {Object} The attribute map\n */\n _getAttributes() {\n return Object.assign({}, this._attributes);\n }\n\n /**\n * Returns a specific custom targeting parameter set on this slot.\n * Service-level targeting parameters are not included.\n *\n * @param {string} key The targeting key to look for.\n * @returns {!Array} The values associated with this key, or an empty\n * array if there is no such key.\n */\n getTargeting(key) {\n return this._targeting.get(key);\n }\n\n /**\n * Sets a custom targeting parameter for this slot. Calling this method\n * multiple times for the same key will overwrite old values. Values set here\n * will overwrite targeting parameters set on service level. These keys are\n * defined in your {@link DFP} account.\n *\n * @param {string} key Targeting parameter key.\n * @param {string|!Array} value Targeting parameter value or array of values.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n */\n setTargeting(key, value) {\n this._targeting.set(key, value);\n return this;\n }\n\n /**\n * Returns the list of all custom targeting keys set on this slot. Service-level\n * targeting keys are not included.\n *\n * @returns {!Array} Array of targeting keys. Ordering is undefined.\n */\n getTargetingKeys() {\n return this._targeting.keys();\n }\n\n /**\n * Returns the current targeting key-value dictionary.\n *\n * @experimental\n * @returns {Object>} the targeting map.\n */\n getTargetingMap() {\n return this._targeting.all();\n }\n\n /**\n * Clears all custom slot-level targeting parameters for this slot.\n *\n * @returns {Slot} The {@link Slot} object on which the method was called.\n */\n clearTargeting() {\n this._targeting.clear();\n return this;\n }\n\n /**\n * Sets custom targeting parameters for this passback slot, from a key:value\n * map in a JSON object. A badly formatted input will be rejected. This is the\n * same as calling @{link Slot#setTargeting} for all the key values\n * of the object. In case of overwriting, only the last value will be kept.\n * Values set here will overwrite targeting parameters set on service level.\n * These keys are defined in your {@link DFP} account.\n *\n * @param {Object>} map Targeting parameter key:value map.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n */\n updateTargetingFromMap(map) {\n for (let key in map) {\n if (map.hasOwnProperty(key)) {\n this.setTargeting(key, map[key]);\n }\n }\n return this;\n }\n\n /**\n * Adds a service to this slot.\n *\n * @param {Service} service The service to be added.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n */\n addService(service) {\n if (this._services.indexOf(service) === -1) {\n this._services.push(service);\n service._addSlot(this);\n }\n return this;\n }\n\n /**\n * Removes all of the services from the slot.\n *\n * @private\n */\n _removeServices() {\n for (let service of this._services) {\n service._removeSlot(this);\n }\n\n this._services = [];\n }\n\n /**\n * Returns the ad category exclusion labels for this slot.\n *\n * @returns {!Array} The ad category exclusion labels for this slot.\n */\n getCategoryExclusions() {\n return this._categoryExclusions.slice(0);\n }\n\n /**\n * Sets a slot-level ad category exclusion label on this slot.\n *\n * @param {string} categoryExclusion The ad category exclusion label to add.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n */\n setCategoryExclusion(categoryExclusion) {\n this._categoryExclusions.push(categoryExclusion);\n return this;\n }\n\n /**\n * Clears all slot-level ad category exclusion labels for this slot.\n *\n * @returns {Slot} The {@link Slot} object on which the method was called.\n */\n clearCategoryExclusions() {\n this._categoryExclusions = [];\n return this;\n }\n\n /**\n * Sets an array of mappings from a minimum viewport size to slot size for this slot.\n *\n * @param {!SizeMappingArray} sizeMapping Array of size mappings. You can use\n * {@link SizeMappingBuilder} to create it. Each size mapping is an array of two elements:\n * {@link SingleSizeArray} and {@link GeneralSize}.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n * @throws {Error} Size mapping has to be an array\n */\n defineSizeMapping(sizeMapping) {\n if (!SizeMappingArray.isSizeMappingArray(sizeMapping)) {\n throw Error('Size mapping has to be an array');\n }\n\n this._sizeMapping = sizeMapping;\n\n return this;\n }\n\n /**\n * Sets the click URL to which users will be redirected after clicking on the\n * ad. The {@link DFP} servers still record a click even if the click URL is replaced,\n * but any landing page URL associated with the creative that is served is\n * overridden. Subsequent calls overwrite the value. This works only for\n * non-SRA requests\n *\n * @param {string} value The click URL to set.\n * @returns {Slot} The slot object on which the method was called.\n */\n setClickUrl(value) {\n this._clickUrl = value;\n return this;\n }\n\n /**\n * Gets the click URL.\n *\n * @experimental\n * @returns {?string} The click URL\n */\n getClickUrl() {\n return this._clickUrl;\n }\n\n /**\n * Returns the ad response information. This is based on the last ad response\n * for the slot. If this is called when the slot has no ad, null will be\n * returned.\n *\n * @returns {?ResponseInformation}\n */\n getResponseInformation() {\n return this._responseInformation;\n }\n\n /**\n * Sets whether the slot div should be hidden when there is no ad in the slot.\n * This overrides the service-level settings.\n *\n * @param {boolean} collapse Whether to collapse the slot if no ad is returned.\n * @param {boolean} [optCollapseBeforeAdFetch] Whether to collapse the slot\n * even before an ad is fetched. Ignored if collapse is not true.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n */\n setCollapseEmptyDiv(collapse, optCollapseBeforeAdFetch) {\n this._options.collapseEmptyDiv = collapse;\n if (collapse) {\n this._options.collapseBeforeAdFetch = optCollapseBeforeAdFetch;\n }\n return this;\n }\n\n /**\n * Returns whether the slot div should be hiddne when there is no ad in the slot.\n *\n * @experimental\n * @returns {boolean} true to collapse the slot if no ad is returned.\n */\n getCollapseEmptyDiv() {\n return this._options.collapseEmptyDiv;\n }\n\n /**\n * Configures whether ads in this slot should be forced to be rendered using\n * a SafeFrame container\n *\n * @param {boolean} forceSafeFrame true to force all ads in this slot to be\n * rendered in SafeFrames and false to opt-out of a page-level setting (if\n * present). Setting this to false when not specified at page-level, won't\n * change anything.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n */\n setForceSafeFrame(forceSafeFrame) {\n this._options.forceSafeFrame = forceSafeFrame;\n return this;\n }\n\n /**\n * Sets the slot-level preferences for SafeFrame configuration. Any unrecognized\n * keys in the config object will be ignored. The entire config will be ignored\n * if an invalid value is passed for a recognized key. These slot level\n * preferences, if specified, will override any page level preferences.\n *\n * @param {SafeFrameConfig} config The configuration object.\n * @returns {Slot} The {@link Slot} object on which the method was called.\n */\n setSafeFrameConfig(config) {\n this._options.safeFrameConfig = config;\n return this;\n }\n\n /**\n * Informs the {@link Slot} that its fetch has started.\n *\n * @experimental\n */\n fetchStarted() {\n this._options.fetched = false;\n }\n\n /**\n * Informs the {@link Slot} that its fetch has finished.\n *\n * @experimental\n */\n fetchEnded() {\n this._options.fetched = true;\n }\n\n /**\n * Informs the {@link Slot} that it has been loaded.\n *\n * @experimental\n * @emits {SlotOnloadEvent}\n */\n loaded() {\n for (let service of this._services) {\n const event = new SlotOnloadEvent(service.getName(), this);\n service._fireEvent(event._name, event);\n }\n }\n\n /**\n * Informs the {@link Slot} that its rendering has started.\n *\n * @experimental\n */\n renderStarted() {\n this._options.displayed = false;\n }\n\n /**\n * Informs the {@link Slot} that its rendering has finished.\n *\n * @experimental\n * @param {?ResponseInformation} [responseInformation] The response information.\n * @emits {SlotRenderEndedEvent}\n */\n renderEnded(responseInformation) {\n this._responseInformation = responseInformation;\n this._options.displayed = true;\n\n const size = this.getSizes()[0];\n\n for (let service of this._services) {\n let event;\n\n if (responseInformation != null) {\n event = new SlotRenderEndedEvent(service.getName(), this,\n responseInformation.creativeId, responseInformation.lineItemId, false, size);\n } else {\n event = new SlotRenderEndedEvent(service.getName(), this, null, null, true, size);\n }\n\n service._fireEvent(event._name, event);\n }\n }\n\n /**\n * Notifies the {@link Slot} that it's impression is viewable.\n *\n * @emits {ImpressionViewableEvent}\n */\n impressionViewable() {\n for (let service of this._services) {\n const event = new ImpressionViewableEvent(service.getName(), this);\n\n service._fireEvent(event._name, event);\n }\n }\n\n /**\n * Notifies the {@link Slot} of its in view percentage.\n *\n * @param {number} inViewPercentage The percentage (0-100) of the ad's area that is visible.\n * @emits {SlotVisibilityChangedEvent}\n */\n visibilityChanged(inViewPercentage) {\n if (this._options.inViewPercentage !== inViewPercentage) {\n this._options.inViewPercentage = inViewPercentage;\n for (let service of this._services) {\n const event = new SlotVisibilityChangedEvent(service.getName(), this, inViewPercentage);\n service._fireEvent(event._name, event);\n }\n }\n }\n\n /**\n * Refreshes the {@link Slot}.\n *\n * @private\n */\n _refresh() {\n this._options.refreshed += 1;\n\n this.fetchStarted();\n this.fetchEnded();\n this.loaded();\n this.renderStarted();\n this.renderEnded();\n\n this.impressionViewable();\n this.visibilityChanged(100);\n }\n\n /**\n * Clears the {@link Slot}.\n *\n * @private\n */\n _clear() {\n this._options.content = null;\n this._options.fetched = false;\n }\n\n /**\n * Sets the content of the {@link Slot}.\n *\n * @private\n * @param {?string} content The content to set; or null to clear the content.\n */\n _setContent(content) {\n this._options.content = content;\n }\n\n /**\n * Gets the content of the slot {@link Slot}.\n *\n * @private\n * @returns {?string} The content of the slot; or null if the slot has no content.\n */\n _getContent() {\n return this._options.content;\n }\n}\n" }, { - "__docId__": 193, + "__docId__": 194, "kind": "class", "static": true, "variation": null, @@ -4800,11 +4839,11 @@ "importPath": "gpt-mock/dist/Slot.js", "importStyle": "Slot", "description": "Slot is an object representing single ad slot on a page.", - "lineNumber": 12, + "lineNumber": 13, "interface": false }, { - "__docId__": 194, + "__docId__": 195, "kind": "constructor", "static": false, "variation": null, @@ -4813,7 +4852,7 @@ "longname": "src/Slot.js~Slot#constructor", "access": null, "description": "Creates a new {@link Slot}.", - "lineNumber": 23, + "lineNumber": 24, "params": [ { "nullable": null, @@ -4859,7 +4898,7 @@ "generator": false }, { - "__docId__": 195, + "__docId__": 196, "kind": "member", "static": false, "variation": null, @@ -4868,7 +4907,7 @@ "longname": "src/Slot.js~Slot#_id", "access": null, "description": null, - "lineNumber": 24, + "lineNumber": 25, "undocument": true, "type": { "types": [ @@ -4877,7 +4916,7 @@ } }, { - "__docId__": 196, + "__docId__": 197, "kind": "member", "static": false, "variation": null, @@ -4886,7 +4925,7 @@ "longname": "src/Slot.js~Slot#_sizes", "access": null, "description": null, - "lineNumber": 25, + "lineNumber": 26, "undocument": true, "type": { "types": [ @@ -4895,7 +4934,7 @@ } }, { - "__docId__": 197, + "__docId__": 198, "kind": "member", "static": false, "variation": null, @@ -4904,7 +4943,7 @@ "longname": "src/Slot.js~Slot#_services", "access": null, "description": null, - "lineNumber": 26, + "lineNumber": 27, "undocument": true, "type": { "types": [ @@ -4913,7 +4952,7 @@ } }, { - "__docId__": 198, + "__docId__": 199, "kind": "member", "static": false, "variation": null, @@ -4922,7 +4961,7 @@ "longname": "src/Slot.js~Slot#_categoryExclusions", "access": null, "description": null, - "lineNumber": 27, + "lineNumber": 28, "undocument": true, "type": { "types": [ @@ -4931,7 +4970,7 @@ } }, { - "__docId__": 199, + "__docId__": 200, "kind": "member", "static": false, "variation": null, @@ -4940,7 +4979,7 @@ "longname": "src/Slot.js~Slot#_targeting", "access": null, "description": null, - "lineNumber": 28, + "lineNumber": 29, "undocument": true, "type": { "types": [ @@ -4949,7 +4988,7 @@ } }, { - "__docId__": 200, + "__docId__": 201, "kind": "member", "static": false, "variation": null, @@ -4958,7 +4997,7 @@ "longname": "src/Slot.js~Slot#_attributes", "access": null, "description": null, - "lineNumber": 29, + "lineNumber": 30, "undocument": true, "type": { "types": [ @@ -4967,7 +5006,7 @@ } }, { - "__docId__": 201, + "__docId__": 202, "kind": "member", "static": false, "variation": null, @@ -4976,7 +5015,7 @@ "longname": "src/Slot.js~Slot#_clickUrl", "access": null, "description": null, - "lineNumber": 30, + "lineNumber": 31, "undocument": true, "type": { "types": [ @@ -4985,7 +5024,7 @@ } }, { - "__docId__": 202, + "__docId__": 203, "kind": "member", "static": false, "variation": null, @@ -4994,7 +5033,7 @@ "longname": "src/Slot.js~Slot#_responseInformation", "access": null, "description": null, - "lineNumber": 31, + "lineNumber": 32, "undocument": true, "type": { "types": [ @@ -5003,7 +5042,7 @@ } }, { - "__docId__": 203, + "__docId__": 204, "kind": "member", "static": false, "variation": null, @@ -5012,7 +5051,7 @@ "longname": "src/Slot.js~Slot#_sizeMapping", "access": null, "description": null, - "lineNumber": 32, + "lineNumber": 33, "undocument": true, "type": { "types": [ @@ -5021,7 +5060,7 @@ } }, { - "__docId__": 204, + "__docId__": 205, "kind": "member", "static": false, "variation": null, @@ -5030,7 +5069,7 @@ "longname": "src/Slot.js~Slot#_options", "access": null, "description": null, - "lineNumber": 33, + "lineNumber": 34, "undocument": true, "type": { "types": [ @@ -5039,7 +5078,7 @@ } }, { - "__docId__": 205, + "__docId__": 206, "kind": "method", "static": false, "variation": null, @@ -5048,7 +5087,7 @@ "longname": "src/Slot.js~Slot#getName", "access": null, "description": "Returns the name of the slot", - "lineNumber": 53, + "lineNumber": 54, "experimental": true, "unknown": [ { @@ -5068,7 +5107,7 @@ "generator": false }, { - "__docId__": 206, + "__docId__": 207, "kind": "method", "static": false, "variation": null, @@ -5077,7 +5116,7 @@ "longname": "src/Slot.js~Slot#getDefinedId", "access": null, "description": "Returns the instance of the {@link Slot}.", - "lineNumber": 63, + "lineNumber": 64, "experimental": true, "unknown": [ { @@ -5097,7 +5136,7 @@ "generator": false }, { - "__docId__": 207, + "__docId__": 208, "kind": "method", "static": false, "variation": null, @@ -5106,7 +5145,7 @@ "longname": "src/Slot.js~Slot#getAdUnitPath", "access": null, "description": "Returns the full path of the ad unit, with the network code and ad unit path.", - "lineNumber": 72, + "lineNumber": 73, "unknown": [ { "tagName": "@returns", @@ -5125,7 +5164,7 @@ "generator": false }, { - "__docId__": 208, + "__docId__": 209, "kind": "method", "static": false, "variation": null, @@ -5134,7 +5173,7 @@ "longname": "src/Slot.js~Slot#getSlotElementId", "access": null, "description": "Returns the id of the slot element provided when the {@link Slot} was defined.", - "lineNumber": 81, + "lineNumber": 82, "unknown": [ { "tagName": "@returns", @@ -5153,7 +5192,7 @@ "generator": false }, { - "__docId__": 209, + "__docId__": 210, "kind": "method", "static": false, "variation": null, @@ -5162,7 +5201,7 @@ "longname": "src/Slot.js~Slot#getServices", "access": null, "description": "Returns the enabled services.", - "lineNumber": 91, + "lineNumber": 92, "experimental": true, "unknown": [ { @@ -5182,7 +5221,7 @@ "generator": false }, { - "__docId__": 210, + "__docId__": 211, "kind": "method", "static": false, "variation": null, @@ -5191,7 +5230,7 @@ "longname": "src/Slot.js~Slot#getSizes", "access": null, "description": "Returns the sizes.", - "lineNumber": 101, + "lineNumber": 102, "experimental": true, "unknown": [ { @@ -5211,7 +5250,7 @@ "generator": false }, { - "__docId__": 211, + "__docId__": 212, "kind": "method", "static": false, "variation": null, @@ -5220,7 +5259,7 @@ "longname": "src/Slot.js~Slot#getOutOfPage", "access": null, "description": "Returns a flag indicating whether the {@link Slot} is out of the page.", - "lineNumber": 111, + "lineNumber": 112, "experimental": true, "unknown": [ { @@ -5240,7 +5279,7 @@ "generator": false }, { - "__docId__": 212, + "__docId__": 213, "kind": "method", "static": false, "variation": null, @@ -5249,12 +5288,12 @@ "longname": "src/Slot.js~Slot#display", "access": null, "description": "Initiates rendering of this slot.", - "lineNumber": 118, + "lineNumber": 119, "params": [], "generator": false }, { - "__docId__": 213, + "__docId__": 214, "kind": "method", "static": false, "variation": null, @@ -5263,7 +5302,7 @@ "longname": "src/Slot.js~Slot#getAttributeKeys", "access": null, "description": "Returns the list of attribute keys set on this slot. If you intend to see\nthe keys of service-level attributes inherited by this {@link Slot}, you have to\nuse the {@link PubAdsService#getAttributeKeys} API.", - "lineNumber": 138, + "lineNumber": 139, "unknown": [ { "tagName": "@returns", @@ -5282,7 +5321,7 @@ "generator": false }, { - "__docId__": 214, + "__docId__": 215, "kind": "method", "static": false, "variation": null, @@ -5291,7 +5330,7 @@ "longname": "src/Slot.js~Slot#get", "access": null, "description": "Returns the value for the AdSense attribute associated with the given key.\nNote that if you intend to see service-level attributes inherited by this\nslot, you have to use the {@link PubAdsService#get} API.", - "lineNumber": 151, + "lineNumber": 152, "unknown": [ { "tagName": "@returns", @@ -5321,7 +5360,7 @@ "generator": false }, { - "__docId__": 215, + "__docId__": 216, "kind": "method", "static": false, "variation": null, @@ -5330,7 +5369,7 @@ "longname": "src/Slot.js~Slot#set", "access": null, "description": "Sets a value for an AdSense attribute on a particular ad slot. This will\noverride any values set at the service level for this key. See the AdSense\nAttributes for a list of available keys and values. Calling this method\nmore than once for the same key will override previously set values for\nthat key. All values must be set before any display call.", - "lineNumber": 166, + "lineNumber": 167, "unknown": [ { "tagName": "@returns", @@ -5370,7 +5409,7 @@ "generator": false }, { - "__docId__": 216, + "__docId__": 217, "kind": "method", "static": false, "variation": null, @@ -5379,7 +5418,7 @@ "longname": "src/Slot.js~Slot#_getAttributes", "access": "private", "description": "Return the attribute map.", - "lineNumber": 177, + "lineNumber": 178, "unknown": [ { "tagName": "@returns", @@ -5398,7 +5437,7 @@ "generator": false }, { - "__docId__": 217, + "__docId__": 218, "kind": "method", "static": false, "variation": null, @@ -5407,7 +5446,7 @@ "longname": "src/Slot.js~Slot#getTargeting", "access": null, "description": "Returns a specific custom targeting parameter set on this slot.\nService-level targeting parameters are not included.", - "lineNumber": 189, + "lineNumber": 190, "unknown": [ { "tagName": "@returns", @@ -5436,34 +5475,6 @@ }, "generator": false }, - { - "__docId__": 218, - "kind": "method", - "static": false, - "variation": null, - "name": "getTargetingKeys", - "memberof": "src/Slot.js~Slot", - "longname": "src/Slot.js~Slot#getTargetingKeys", - "access": null, - "description": "Returns the list of all custom targeting keys set on this slot. Service-level\ntargeting keys are not included.", - "lineNumber": 199, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "{!Array} Array of targeting keys. Ordering is undefined." - } - ], - "params": [], - "return": { - "nullable": false, - "types": [ - "Array" - ], - "spread": false, - "description": "Array of targeting keys. Ordering is undefined." - }, - "generator": false - }, { "__docId__": 219, "kind": "method", @@ -5474,7 +5485,7 @@ "longname": "src/Slot.js~Slot#setTargeting", "access": null, "description": "Sets a custom targeting parameter for this slot. Calling this method\nmultiple times for the same key will overwrite old values. Values set here\nwill overwrite targeting parameters set on service level. These keys are\ndefined in your {@link DFP} account.", - "lineNumber": 213, + "lineNumber": 204, "unknown": [ { "tagName": "@returns", @@ -5519,43 +5530,60 @@ "kind": "method", "static": false, "variation": null, - "name": "updateTargetingFromMap", + "name": "getTargetingKeys", "memberof": "src/Slot.js~Slot", - "longname": "src/Slot.js~Slot#updateTargetingFromMap", + "longname": "src/Slot.js~Slot#getTargetingKeys", "access": null, - "description": "Sets custom targeting parameters for this passback slot, from a key:value\nmap in a JSON object. A badly formatted input will be rejected. This is the\nsame as calling @{link Slot#setTargeting} for all the key values\nof the object. In case of overwriting, only the last value will be kept.\nValues set here will overwrite targeting parameters set on service level.\nThese keys are defined in your {@link DFP} account.", - "lineNumber": 233, + "description": "Returns the list of all custom targeting keys set on this slot. Service-level\ntargeting keys are not included.", + "lineNumber": 215, "unknown": [ { "tagName": "@returns", - "tagValue": "{Slot} The {@link Slot} object on which the method was called." + "tagValue": "{!Array} Array of targeting keys. Ordering is undefined." } ], - "params": [ + "params": [], + "return": { + "nullable": false, + "types": [ + "Array" + ], + "spread": false, + "description": "Array of targeting keys. Ordering is undefined." + }, + "generator": false + }, + { + "__docId__": 221, + "kind": "method", + "static": false, + "variation": null, + "name": "getTargetingMap", + "memberof": "src/Slot.js~Slot", + "longname": "src/Slot.js~Slot#getTargetingMap", + "access": null, + "description": "Returns the current targeting key-value dictionary.", + "lineNumber": 225, + "experimental": true, + "unknown": [ { - "nullable": null, - "types": [ - "Object>" - ], - "spread": false, - "optional": false, - "name": "map", - "description": "Targeting parameter key:value map." + "tagName": "@returns", + "tagValue": "{Object>} the targeting map." } ], + "params": [], "return": { "nullable": null, "types": [ - "Slot" + "Object>" ], "spread": false, - "description": "The {@link Slot} object on which the method was called." + "description": "the targeting map." }, "generator": false }, { - "__docId__": 221, + "__docId__": 222, "kind": "method", "static": false, "variation": null, @@ -5564,7 +5592,7 @@ "longname": "src/Slot.js~Slot#clearTargeting", "access": null, "description": "Clears all custom slot-level targeting parameters for this slot.", - "lineNumber": 247, + "lineNumber": 234, "unknown": [ { "tagName": "@returns", @@ -5582,50 +5610,43 @@ }, "generator": false }, - { - "__docId__": 222, - "kind": "member", - "static": false, - "variation": null, - "name": "_targeting", - "memberof": "src/Slot.js~Slot", - "longname": "src/Slot.js~Slot#_targeting", - "access": null, - "description": null, - "lineNumber": 248, - "undocument": true, - "type": { - "types": [ - "*" - ] - } - }, { "__docId__": 223, "kind": "method", "static": false, "variation": null, - "name": "getTargetingMap", + "name": "updateTargetingFromMap", "memberof": "src/Slot.js~Slot", - "longname": "src/Slot.js~Slot#getTargetingMap", + "longname": "src/Slot.js~Slot#updateTargetingFromMap", "access": null, - "description": "Returns the current targeting key-value dictionary.", - "lineNumber": 258, - "experimental": true, + "description": "Sets custom targeting parameters for this passback slot, from a key:value\nmap in a JSON object. A badly formatted input will be rejected. This is the\nsame as calling @{link Slot#setTargeting} for all the key values\nof the object. In case of overwriting, only the last value will be kept.\nValues set here will overwrite targeting parameters set on service level.\nThese keys are defined in your {@link DFP} account.", + "lineNumber": 250, "unknown": [ { "tagName": "@returns", - "tagValue": "{Object>} the targeting map." + "tagValue": "{Slot} The {@link Slot} object on which the method was called." + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Object>" + ], + "spread": false, + "optional": false, + "name": "map", + "description": "Targeting parameter key:value map." } ], - "params": [], "return": { "nullable": null, "types": [ - "Object>" + "Slot" ], "spread": false, - "description": "the targeting map." + "description": "The {@link Slot} object on which the method was called." }, "generator": false }, @@ -5639,7 +5660,7 @@ "longname": "src/Slot.js~Slot#addService", "access": null, "description": "Adds a service to this slot.", - "lineNumber": 268, + "lineNumber": 265, "unknown": [ { "tagName": "@returns", @@ -5678,7 +5699,7 @@ "longname": "src/Slot.js~Slot#_removeServices", "access": "private", "description": "Removes all of the services from the slot.", - "lineNumber": 281, + "lineNumber": 278, "params": [], "generator": false }, @@ -5692,7 +5713,7 @@ "longname": "src/Slot.js~Slot#_services", "access": null, "description": null, - "lineNumber": 286, + "lineNumber": 283, "undocument": true, "type": { "types": [ @@ -5710,7 +5731,7 @@ "longname": "src/Slot.js~Slot#getCategoryExclusions", "access": null, "description": "Returns the ad category exclusion labels for this slot.", - "lineNumber": 294, + "lineNumber": 291, "unknown": [ { "tagName": "@returns", @@ -5738,7 +5759,7 @@ "longname": "src/Slot.js~Slot#setCategoryExclusion", "access": null, "description": "Sets a slot-level ad category exclusion label on this slot.", - "lineNumber": 304, + "lineNumber": 301, "unknown": [ { "tagName": "@returns", @@ -5777,7 +5798,7 @@ "longname": "src/Slot.js~Slot#clearCategoryExclusions", "access": null, "description": "Clears all slot-level ad category exclusion labels for this slot.", - "lineNumber": 314, + "lineNumber": 311, "unknown": [ { "tagName": "@returns", @@ -5805,7 +5826,7 @@ "longname": "src/Slot.js~Slot#_categoryExclusions", "access": null, "description": null, - "lineNumber": 315, + "lineNumber": 312, "undocument": true, "type": { "types": [ @@ -5823,7 +5844,7 @@ "longname": "src/Slot.js~Slot#defineSizeMapping", "access": null, "description": "Sets an array of mappings from a minimum viewport size to slot size for this slot.", - "lineNumber": 328, + "lineNumber": 325, "unknown": [ { "tagName": "@returns", @@ -5870,7 +5891,7 @@ "longname": "src/Slot.js~Slot#_sizeMapping", "access": null, "description": null, - "lineNumber": 333, + "lineNumber": 330, "undocument": true, "type": { "types": [ @@ -5888,7 +5909,7 @@ "longname": "src/Slot.js~Slot#setClickUrl", "access": null, "description": "Sets the click URL to which users will be redirected after clicking on the\nad. The {@link DFP} servers still record a click even if the click URL is replaced,\nbut any landing page URL associated with the creative that is served is\noverridden. Subsequent calls overwrite the value. This works only for\nnon-SRA requests", - "lineNumber": 348, + "lineNumber": 345, "unknown": [ { "tagName": "@returns", @@ -5927,7 +5948,7 @@ "longname": "src/Slot.js~Slot#_clickUrl", "access": null, "description": null, - "lineNumber": 349, + "lineNumber": 346, "undocument": true, "type": { "types": [ @@ -5945,7 +5966,7 @@ "longname": "src/Slot.js~Slot#getClickUrl", "access": null, "description": "Gets the click URL.", - "lineNumber": 359, + "lineNumber": 356, "experimental": true, "unknown": [ { @@ -5974,7 +5995,7 @@ "longname": "src/Slot.js~Slot#getResponseInformation", "access": null, "description": "Returns the ad response information. This is based on the last ad response\nfor the slot. If this is called when the slot has no ad, null will be\nreturned.", - "lineNumber": 370, + "lineNumber": 367, "unknown": [ { "tagName": "@returns", @@ -6002,7 +6023,7 @@ "longname": "src/Slot.js~Slot#setCollapseEmptyDiv", "access": null, "description": "Sets whether the slot div should be hidden when there is no ad in the slot.\nThis overrides the service-level settings.", - "lineNumber": 383, + "lineNumber": 380, "unknown": [ { "tagName": "@returns", @@ -6051,7 +6072,7 @@ "longname": "src/Slot.js~Slot#getCollapseEmptyDiv", "access": null, "description": "Returns whether the slot div should be hiddne when there is no ad in the slot.", - "lineNumber": 397, + "lineNumber": 394, "experimental": true, "unknown": [ { @@ -6080,7 +6101,7 @@ "longname": "src/Slot.js~Slot#setForceSafeFrame", "access": null, "description": "Configures whether ads in this slot should be forced to be rendered using\na SafeFrame container", - "lineNumber": 411, + "lineNumber": 408, "unknown": [ { "tagName": "@returns", @@ -6119,7 +6140,7 @@ "longname": "src/Slot.js~Slot#setSafeFrameConfig", "access": null, "description": "Sets the slot-level preferences for SafeFrame configuration. Any unrecognized\nkeys in the config object will be ignored. The entire config will be ignored\nif an invalid value is passed for a recognized key. These slot level\npreferences, if specified, will override any page level preferences.", - "lineNumber": 425, + "lineNumber": 422, "unknown": [ { "tagName": "@returns", @@ -6158,7 +6179,7 @@ "longname": "src/Slot.js~Slot#fetchStarted", "access": null, "description": "Informs the {@link Slot} that its fetch has started.", - "lineNumber": 435, + "lineNumber": 432, "experimental": true, "params": [], "generator": false @@ -6173,7 +6194,7 @@ "longname": "src/Slot.js~Slot#fetchEnded", "access": null, "description": "Informs the {@link Slot} that its fetch has finished.", - "lineNumber": 444, + "lineNumber": 441, "experimental": true, "params": [], "generator": false @@ -6188,7 +6209,7 @@ "longname": "src/Slot.js~Slot#loaded", "access": null, "description": "Informs the {@link Slot} that it has been loaded.", - "lineNumber": 454, + "lineNumber": 451, "experimental": true, "params": [], "emits": [ @@ -6211,7 +6232,7 @@ "longname": "src/Slot.js~Slot#renderStarted", "access": null, "description": "Informs the {@link Slot} that its rendering has started.", - "lineNumber": 466, + "lineNumber": 463, "experimental": true, "params": [], "generator": false @@ -6226,7 +6247,7 @@ "longname": "src/Slot.js~Slot#renderEnded", "access": null, "description": "Informs the {@link Slot} that its rendering has finished.", - "lineNumber": 477, + "lineNumber": 474, "experimental": true, "params": [ { @@ -6260,7 +6281,7 @@ "longname": "src/Slot.js~Slot#_responseInformation", "access": null, "description": null, - "lineNumber": 478, + "lineNumber": 475, "undocument": true, "type": { "types": [ @@ -6278,7 +6299,7 @@ "longname": "src/Slot.js~Slot#impressionViewable", "access": null, "description": "Notifies the {@link Slot} that it's impression is viewable.", - "lineNumber": 502, + "lineNumber": 499, "params": [], "emits": [ { @@ -6300,7 +6321,7 @@ "longname": "src/Slot.js~Slot#visibilityChanged", "access": null, "description": "Notifies the {@link Slot} of its in view percentage.", - "lineNumber": 516, + "lineNumber": 513, "params": [ { "nullable": null, @@ -6333,7 +6354,7 @@ "longname": "src/Slot.js~Slot#_refresh", "access": "private", "description": "Refreshes the {@link Slot}.", - "lineNumber": 531, + "lineNumber": 528, "params": [], "generator": false }, @@ -6347,7 +6368,7 @@ "longname": "src/Slot.js~Slot#_clear", "access": "private", "description": "Clears the {@link Slot}.", - "lineNumber": 549, + "lineNumber": 546, "params": [], "generator": false }, @@ -6361,7 +6382,7 @@ "longname": "src/Slot.js~Slot#_setContent", "access": "private", "description": "Sets the content of the {@link Slot}.", - "lineNumber": 560, + "lineNumber": 557, "params": [ { "nullable": true, @@ -6386,7 +6407,7 @@ "longname": "src/Slot.js~Slot#_getContent", "access": "private", "description": "Gets the content of the slot {@link Slot}.", - "lineNumber": 570, + "lineNumber": 567, "unknown": [ { "tagName": "@returns", @@ -6707,28 +6728,29 @@ "kind": "file", "static": true, "variation": null, - "name": "src/events/ImpressionViewableEvent.js", + "name": "src/TargetingMap.js", "memberof": null, - "longname": "src/events/ImpressionViewableEvent.js", + "longname": "src/TargetingMap.js", "access": null, "description": null, - "lineNumber": 5, - "content": "/**\n * This event is fired when an impression becomes viewable, according to the\n * Active View criteria.\n */\nexport default class ImpressionViewableEvent {\n /**\n * Constructs a new ImpressionViewableEvent instance.\n *\n * @param {string} serviceName Name of the service that rendered the slot.\n * @param {!Slot} slot The slot which contains the impression that became viewable.\n */\n constructor(serviceName, slot) {\n this._serviceName = serviceName;\n this._slot = slot;\n }\n\n /**\n * Name of the event.\n *\n * @private\n * @type {string}\n */\n get _name() {\n return 'googletag.events.ImpressionViewableEvent';\n }\n\n /**\n * Name of the service that rendered the slot.\n *\n * @type {string}\n */\n get serviceName() {\n return this._serviceName;\n }\n\n /**\n * The slot which contains the impression that became viewable.\n *\n * @type {!Slot}\n */\n get slot() {\n return this._slot;\n }\n}\n" + "lineNumber": 6, + "content": "/**\n * Manages setting and retrieving targeting.\n *\n * @experimental\n */\nexport default class TargetingMap {\n /**\n * Creates a new {@link TargetingMap} instance.\n */\n constructor() {\n this._targeting = {};\n }\n\n /**\n * Sets custom targeting parameters for a given key.\n *\n * @param {string} key Targeting parameter key.\n * @param {string|!Array} value Targeting parameter value or array of values.\n */\n set(key, value) {\n if (Array.isArray(value)) {\n this._targeting[key] = value;\n } else {\n this._targeting[key] = [value];\n }\n }\n\n /**\n * Returns a specific targeting parameter that has been set.\n *\n * @param {string} key The targeting key to look for.\n * @returns {!Array} The values associated with this key, or an empty\n * array if there is no such key.\n */\n get(key) {\n return this._targeting[key] || [];\n }\n\n /**\n * Returns the list of all targeting keys that have been set.\n *\n * @returns {!Array} Array of targeting keys. Ordering is undefined.\n */\n keys() {\n return Object.keys(this._targeting);\n }\n\n /**\n * Clears custom targeting parameters for a given key.\n *\n * @param {string} [key] Targeting parameter key.\n */\n clear(key) {\n if (key == null) {\n this._targeting = {};\n } else {\n delete this._targeting[key];\n }\n }\n\n /**\n * Returns the current targeting key-value dictionary.\n *\n * @returns {Object>} the targeting map.\n */\n all() {\n return Object.assign({}, this._targeting);\n }\n}\n" }, { "__docId__": 266, "kind": "class", "static": true, "variation": null, - "name": "ImpressionViewableEvent", - "memberof": "src/events/ImpressionViewableEvent.js", - "longname": "src/events/ImpressionViewableEvent.js~ImpressionViewableEvent", + "name": "TargetingMap", + "memberof": "src/TargetingMap.js", + "longname": "src/TargetingMap.js~TargetingMap", "access": null, "export": true, - "importPath": "gpt-mock/dist/events/ImpressionViewableEvent.js", - "importStyle": "ImpressionViewableEvent", - "description": "This event is fired when an impression becomes viewable, according to the\nActive View criteria.", - "lineNumber": 5, + "importPath": "gpt-mock/dist/TargetingMap.js", + "importStyle": "TargetingMap", + "description": "Manages setting and retrieving targeting.", + "lineNumber": 6, + "experimental": true, "interface": false }, { @@ -6737,33 +6759,12 @@ "static": false, "variation": null, "name": "constructor", - "memberof": "src/events/ImpressionViewableEvent.js~ImpressionViewableEvent", - "longname": "src/events/ImpressionViewableEvent.js~ImpressionViewableEvent#constructor", + "memberof": "src/TargetingMap.js~TargetingMap", + "longname": "src/TargetingMap.js~TargetingMap#constructor", "access": null, - "description": "Constructs a new ImpressionViewableEvent instance.", - "lineNumber": 12, - "params": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "serviceName", - "description": "Name of the service that rendered the slot." - }, - { - "nullable": false, - "types": [ - "Slot" - ], - "spread": false, - "optional": false, - "name": "slot", - "description": "The slot which contains the impression that became viewable." - } - ], + "description": "Creates a new {@link TargetingMap} instance.", + "lineNumber": 10, + "params": [], "generator": false }, { @@ -6771,12 +6772,12 @@ "kind": "member", "static": false, "variation": null, - "name": "_serviceName", - "memberof": "src/events/ImpressionViewableEvent.js~ImpressionViewableEvent", - "longname": "src/events/ImpressionViewableEvent.js~ImpressionViewableEvent#_serviceName", + "name": "_targeting", + "memberof": "src/TargetingMap.js~TargetingMap", + "longname": "src/TargetingMap.js~TargetingMap#_targeting", "access": null, "description": null, - "lineNumber": 13, + "lineNumber": 11, "undocument": true, "type": { "types": [ @@ -6786,11 +6787,267 @@ }, { "__docId__": 269, - "kind": "member", + "kind": "method", "static": false, "variation": null, - "name": "_slot", - "memberof": "src/events/ImpressionViewableEvent.js~ImpressionViewableEvent", + "name": "set", + "memberof": "src/TargetingMap.js~TargetingMap", + "longname": "src/TargetingMap.js~TargetingMap#set", + "access": null, + "description": "Sets custom targeting parameters for a given key.", + "lineNumber": 20, + "params": [ + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "key", + "description": "Targeting parameter key." + }, + { + "nullable": null, + "types": [ + "string", + "!Array" + ], + "spread": false, + "optional": false, + "name": "value", + "description": "Targeting parameter value or array of values." + } + ], + "generator": false + }, + { + "__docId__": 270, + "kind": "method", + "static": false, + "variation": null, + "name": "get", + "memberof": "src/TargetingMap.js~TargetingMap", + "longname": "src/TargetingMap.js~TargetingMap#get", + "access": null, + "description": "Returns a specific targeting parameter that has been set.", + "lineNumber": 35, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{!Array} The values associated with this key, or an empty\narray if there is no such key." + } + ], + "params": [ + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "key", + "description": "The targeting key to look for." + } + ], + "return": { + "nullable": false, + "types": [ + "Array" + ], + "spread": false, + "description": "The values associated with this key, or an empty\narray if there is no such key." + }, + "generator": false + }, + { + "__docId__": 271, + "kind": "method", + "static": false, + "variation": null, + "name": "keys", + "memberof": "src/TargetingMap.js~TargetingMap", + "longname": "src/TargetingMap.js~TargetingMap#keys", + "access": null, + "description": "Returns the list of all targeting keys that have been set.", + "lineNumber": 44, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{!Array} Array of targeting keys. Ordering is undefined." + } + ], + "params": [], + "return": { + "nullable": false, + "types": [ + "Array" + ], + "spread": false, + "description": "Array of targeting keys. Ordering is undefined." + }, + "generator": false + }, + { + "__docId__": 272, + "kind": "method", + "static": false, + "variation": null, + "name": "clear", + "memberof": "src/TargetingMap.js~TargetingMap", + "longname": "src/TargetingMap.js~TargetingMap#clear", + "access": null, + "description": "Clears custom targeting parameters for a given key.", + "lineNumber": 53, + "params": [ + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": true, + "name": "key", + "description": "Targeting parameter key." + } + ], + "generator": false + }, + { + "__docId__": 273, + "kind": "member", + "static": false, + "variation": null, + "name": "_targeting", + "memberof": "src/TargetingMap.js~TargetingMap", + "longname": "src/TargetingMap.js~TargetingMap#_targeting", + "access": null, + "description": null, + "lineNumber": 55, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 274, + "kind": "method", + "static": false, + "variation": null, + "name": "all", + "memberof": "src/TargetingMap.js~TargetingMap", + "longname": "src/TargetingMap.js~TargetingMap#all", + "access": null, + "description": "Returns the current targeting key-value dictionary.", + "lineNumber": 66, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Object>} the targeting map." + } + ], + "params": [], + "return": { + "nullable": null, + "types": [ + "Object>" + ], + "spread": false, + "description": "the targeting map." + }, + "generator": false + }, + { + "__docId__": 275, + "kind": "file", + "static": true, + "variation": null, + "name": "src/events/ImpressionViewableEvent.js", + "memberof": null, + "longname": "src/events/ImpressionViewableEvent.js", + "access": null, + "description": null, + "lineNumber": 5, + "content": "/**\n * This event is fired when an impression becomes viewable, according to the\n * Active View criteria.\n */\nexport default class ImpressionViewableEvent {\n /**\n * Constructs a new ImpressionViewableEvent instance.\n *\n * @param {string} serviceName Name of the service that rendered the slot.\n * @param {!Slot} slot The slot which contains the impression that became viewable.\n */\n constructor(serviceName, slot) {\n this._serviceName = serviceName;\n this._slot = slot;\n }\n\n /**\n * Name of the event.\n *\n * @private\n * @type {string}\n */\n get _name() {\n return 'googletag.events.ImpressionViewableEvent';\n }\n\n /**\n * Name of the service that rendered the slot.\n *\n * @type {string}\n */\n get serviceName() {\n return this._serviceName;\n }\n\n /**\n * The slot which contains the impression that became viewable.\n *\n * @type {!Slot}\n */\n get slot() {\n return this._slot;\n }\n}\n" + }, + { + "__docId__": 276, + "kind": "class", + "static": true, + "variation": null, + "name": "ImpressionViewableEvent", + "memberof": "src/events/ImpressionViewableEvent.js", + "longname": "src/events/ImpressionViewableEvent.js~ImpressionViewableEvent", + "access": null, + "export": true, + "importPath": "gpt-mock/dist/events/ImpressionViewableEvent.js", + "importStyle": "ImpressionViewableEvent", + "description": "This event is fired when an impression becomes viewable, according to the\nActive View criteria.", + "lineNumber": 5, + "interface": false + }, + { + "__docId__": 277, + "kind": "constructor", + "static": false, + "variation": null, + "name": "constructor", + "memberof": "src/events/ImpressionViewableEvent.js~ImpressionViewableEvent", + "longname": "src/events/ImpressionViewableEvent.js~ImpressionViewableEvent#constructor", + "access": null, + "description": "Constructs a new ImpressionViewableEvent instance.", + "lineNumber": 12, + "params": [ + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "serviceName", + "description": "Name of the service that rendered the slot." + }, + { + "nullable": false, + "types": [ + "Slot" + ], + "spread": false, + "optional": false, + "name": "slot", + "description": "The slot which contains the impression that became viewable." + } + ], + "generator": false + }, + { + "__docId__": 278, + "kind": "member", + "static": false, + "variation": null, + "name": "_serviceName", + "memberof": "src/events/ImpressionViewableEvent.js~ImpressionViewableEvent", + "longname": "src/events/ImpressionViewableEvent.js~ImpressionViewableEvent#_serviceName", + "access": null, + "description": null, + "lineNumber": 13, + "undocument": true, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 279, + "kind": "member", + "static": false, + "variation": null, + "name": "_slot", + "memberof": "src/events/ImpressionViewableEvent.js~ImpressionViewableEvent", "longname": "src/events/ImpressionViewableEvent.js~ImpressionViewableEvent#_slot", "access": null, "description": null, @@ -6803,7 +7060,7 @@ } }, { - "__docId__": 270, + "__docId__": 280, "kind": "get", "static": false, "variation": null, @@ -6824,7 +7081,7 @@ "generator": false }, { - "__docId__": 271, + "__docId__": 281, "kind": "get", "static": false, "variation": null, @@ -6845,7 +7102,7 @@ "generator": false }, { - "__docId__": 272, + "__docId__": 282, "kind": "get", "static": false, "variation": null, @@ -6866,7 +7123,7 @@ "generator": false }, { - "__docId__": 273, + "__docId__": 283, "kind": "file", "static": true, "variation": null, @@ -6879,7 +7136,7 @@ "content": "/**\n * This event is fired when the creative's iframe fires its load event. When\n * rendering rich media ads in sync rendering mode, no iframe is used so no\n * SlotOnLoadEvent will be fired.\n */\nexport default class SlotOnloadEvent {\n /**\n * Creates a new SlotOnloadEvent instance.\n *\n * @param {string} serviceName Name of the service that rendered the slot.\n * @param {!Slot} slot The slot in which the creative was loaded.\n */\n constructor(serviceName, slot) {\n this._serviceName = serviceName;\n this._slot = slot;\n }\n\n /**\n * Name of the event.\n *\n * @private\n * @type {string}\n */\n get _name() {\n return 'googletag.events.SlotOnloadEvent';\n }\n\n /**\n * Name of the service that rendered the slot.\n *\n * @type {string}\n */\n get serviceName() {\n return this._serviceName;\n }\n\n /**\n * The slot in which the creative was loaded.\n *\n * @type {!Slot}\n */\n get slot() {\n return this._slot;\n }\n}\n" }, { - "__docId__": 274, + "__docId__": 284, "kind": "class", "static": true, "variation": null, @@ -6895,7 +7152,7 @@ "interface": false }, { - "__docId__": 275, + "__docId__": 285, "kind": "constructor", "static": false, "variation": null, @@ -6930,7 +7187,7 @@ "generator": false }, { - "__docId__": 276, + "__docId__": 286, "kind": "member", "static": false, "variation": null, @@ -6948,7 +7205,7 @@ } }, { - "__docId__": 277, + "__docId__": 287, "kind": "member", "static": false, "variation": null, @@ -6966,7 +7223,7 @@ } }, { - "__docId__": 278, + "__docId__": 288, "kind": "get", "static": false, "variation": null, @@ -6987,7 +7244,7 @@ "generator": false }, { - "__docId__": 279, + "__docId__": 289, "kind": "get", "static": false, "variation": null, @@ -7008,7 +7265,7 @@ "generator": false }, { - "__docId__": 280, + "__docId__": 290, "kind": "get", "static": false, "variation": null, @@ -7029,7 +7286,7 @@ "generator": false }, { - "__docId__": 281, + "__docId__": 291, "kind": "file", "static": true, "variation": null, @@ -7042,7 +7299,7 @@ "content": "/**\n * This event is fired when a slot on the page has finished rendering. The event\n * is fired by the service that rendered the slot. Example: To listen to\n * companion ads, add a listener to the companionAds service, not the pubads\n * service.\n */\nexport default class SlotRenderEndedEvent {\n /**\n * Creates a new SlotRenderEndedEvent instance.\n *\n * @param {string} serviceName Name of the service that rendered the slot.\n * @param {!Slot} slot The slot in which the creative was rendered.\n * @param {?number} creativeId Creative ID of the rendered ad. Value is null\n * for empty slots, backfill ads or creatives rendered by services other than pubads service.\n * @param {?number} lineItemId Line item ID of the rendered ad. Value is null\n * for empty slots, backfill ads or creatives rendered by services other than pubads service.\n * @param {boolean} isEmpty true if no ad was returned for the slot, false otherwise.\n * @param {SingleSize} size Indicates the pixel size of the rendered\n * creative. Example: [728, 90]. Value is null for empty ad slots.\n */\n constructor(serviceName, slot, creativeId, lineItemId, isEmpty, size) {\n this._serviceName = serviceName;\n this._slot = slot;\n this._creativeId = creativeId;\n this._isEmpty = isEmpty;\n this._lineItemId = lineItemId;\n this._size = size;\n }\n\n /**\n * Name of the event.\n *\n * @private\n * @type {string}\n */\n get _name() {\n return 'googletag.events.SlotRenderEndedEvent';\n }\n\n /**\n * Name of the service that rendered the slot.\n *\n * @type {string}\n */\n get serviceName() {\n return this._serviceName;\n }\n\n /**\n * The slot in which the creative was rendered.\n *\n * @type {!Slot}\n */\n get slot() {\n return this._slot;\n }\n\n /**\n * Creative ID of the rendered ad. Value is null for empty slots, backfill ads\n * or creatives rendered by services other than pubads service.\n *\n * @type {?number}\n */\n get creativeId() {\n return this._creativeId;\n }\n\n /**\n * true if no ad was returned for the slot, false otherwise.\n *\n * @type {boolean}\n */\n get isEmpty() {\n return this._isEmpty;\n }\n\n /**\n * Line item ID of the rendered ad. Value is null for empty slots, backfill\n * ads or creatives rendered by services other than pubads service.\n *\n * @type {?number}\n */\n get lineItemId() {\n return this._lineItemId;\n }\n\n /**\n * Indicates the pixel size of the rendered creative. Example: [728, 90].\n * Value is null for empty ad slots.\n *\n * @type {SingleSize}\n */\n get size() {\n return this._size;\n }\n}\n" }, { - "__docId__": 282, + "__docId__": 292, "kind": "class", "static": true, "variation": null, @@ -7058,7 +7315,7 @@ "interface": false }, { - "__docId__": 283, + "__docId__": 293, "kind": "constructor", "static": false, "variation": null, @@ -7133,7 +7390,7 @@ "generator": false }, { - "__docId__": 284, + "__docId__": 294, "kind": "member", "static": false, "variation": null, @@ -7151,7 +7408,7 @@ } }, { - "__docId__": 285, + "__docId__": 295, "kind": "member", "static": false, "variation": null, @@ -7169,7 +7426,7 @@ } }, { - "__docId__": 286, + "__docId__": 296, "kind": "member", "static": false, "variation": null, @@ -7187,7 +7444,7 @@ } }, { - "__docId__": 287, + "__docId__": 297, "kind": "member", "static": false, "variation": null, @@ -7205,7 +7462,7 @@ } }, { - "__docId__": 288, + "__docId__": 298, "kind": "member", "static": false, "variation": null, @@ -7223,7 +7480,7 @@ } }, { - "__docId__": 289, + "__docId__": 299, "kind": "member", "static": false, "variation": null, @@ -7241,7 +7498,7 @@ } }, { - "__docId__": 290, + "__docId__": 300, "kind": "get", "static": false, "variation": null, @@ -7262,7 +7519,7 @@ "generator": false }, { - "__docId__": 291, + "__docId__": 301, "kind": "get", "static": false, "variation": null, @@ -7283,7 +7540,7 @@ "generator": false }, { - "__docId__": 292, + "__docId__": 302, "kind": "get", "static": false, "variation": null, @@ -7304,7 +7561,7 @@ "generator": false }, { - "__docId__": 293, + "__docId__": 303, "kind": "get", "static": false, "variation": null, @@ -7325,7 +7582,7 @@ "generator": false }, { - "__docId__": 294, + "__docId__": 304, "kind": "get", "static": false, "variation": null, @@ -7346,7 +7603,7 @@ "generator": false }, { - "__docId__": 295, + "__docId__": 305, "kind": "get", "static": false, "variation": null, @@ -7367,7 +7624,7 @@ "generator": false }, { - "__docId__": 296, + "__docId__": 306, "kind": "get", "static": false, "variation": null, @@ -7388,7 +7645,7 @@ "generator": false }, { - "__docId__": 297, + "__docId__": 307, "kind": "file", "static": true, "variation": null, @@ -7401,7 +7658,7 @@ "content": "/**\n * This event is fired whenever the on-screen percentage of an ad slot's area\n * changes. The event is throttled and will not fire more often than once every\n * 200ms.\n */\nexport default class SlotVisibilityChangedEvent {\n /**\n * Creates a new SlotVisibilityChangedEvent instance.\n *\n * @param {string} serviceName Name of the service that owns the slot.\n * @param {!Slot} slot The slot whose visibility changed.\n * @param {number} inViewPercentage The percentage (0-100) of the ad's area that is visible.\n */\n constructor(serviceName, slot, inViewPercentage) {\n this._serviceName = serviceName;\n this._slot = slot;\n this._inViewPercentage = inViewPercentage;\n }\n\n /**\n * Name of the event.\n *\n * @private\n * @type {string}\n */\n get _name() {\n return 'googletag.events.SlotVisibilityChangedEvent';\n }\n\n /**\n * Name of the service that rendered the slot.\n *\n * @type {string}\n */\n get serviceName() {\n return this._serviceName;\n }\n\n /**\n * The slot which contains the impression that became viewable.\n *\n * @type {!Slot}\n */\n get slot() {\n return this._slot;\n }\n\n /**\n * The percentage of the ad that is \"in view\".\n *\n * @type {number}\n */\n get inViewPercentage() {\n return this._inViewPercentage;\n }\n}\n" }, { - "__docId__": 298, + "__docId__": 308, "kind": "class", "static": true, "variation": null, @@ -7417,7 +7674,7 @@ "interface": false }, { - "__docId__": 299, + "__docId__": 309, "kind": "constructor", "static": false, "variation": null, @@ -7462,7 +7719,7 @@ "generator": false }, { - "__docId__": 300, + "__docId__": 310, "kind": "member", "static": false, "variation": null, @@ -7480,7 +7737,7 @@ } }, { - "__docId__": 301, + "__docId__": 311, "kind": "member", "static": false, "variation": null, @@ -7498,7 +7755,7 @@ } }, { - "__docId__": 302, + "__docId__": 312, "kind": "member", "static": false, "variation": null, @@ -7516,7 +7773,7 @@ } }, { - "__docId__": 303, + "__docId__": 313, "kind": "get", "static": false, "variation": null, @@ -7537,7 +7794,7 @@ "generator": false }, { - "__docId__": 304, + "__docId__": 314, "kind": "get", "static": false, "variation": null, @@ -7558,7 +7815,7 @@ "generator": false }, { - "__docId__": 305, + "__docId__": 315, "kind": "get", "static": false, "variation": null, @@ -7579,7 +7836,7 @@ "generator": false }, { - "__docId__": 306, + "__docId__": 316, "kind": "get", "static": false, "variation": null, @@ -7600,7 +7857,7 @@ "generator": false }, { - "__docId__": 307, + "__docId__": 317, "kind": "file", "static": true, "variation": null, @@ -7613,7 +7870,7 @@ "content": "import GPT from './GPT.js';\n\n/** @external {DFP} https://www.google.com/dfp */\n\n/**\n * @external {Array#push} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/push\n */\n\nmodule.exports = GPT;\n" }, { - "__docId__": 308, + "__docId__": 318, "kind": "external", "static": true, "variation": null, @@ -7625,7 +7882,7 @@ "description": null }, { - "__docId__": 309, + "__docId__": 319, "kind": "external", "static": true, "variation": null, @@ -7638,7 +7895,7 @@ "lineNumber": 9 }, { - "__docId__": 311, + "__docId__": 321, "kind": "external", "static": true, "variation": null, @@ -7651,7 +7908,7 @@ "builtinExternal": true }, { - "__docId__": 312, + "__docId__": 322, "kind": "external", "static": true, "variation": null, @@ -7664,7 +7921,7 @@ "builtinExternal": true }, { - "__docId__": 313, + "__docId__": 323, "kind": "external", "static": true, "variation": null, @@ -7677,7 +7934,7 @@ "builtinExternal": true }, { - "__docId__": 314, + "__docId__": 324, "kind": "external", "static": true, "variation": null, @@ -7690,7 +7947,7 @@ "builtinExternal": true }, { - "__docId__": 315, + "__docId__": 325, "kind": "external", "static": true, "variation": null, @@ -7703,7 +7960,7 @@ "builtinExternal": true }, { - "__docId__": 316, + "__docId__": 326, "kind": "external", "static": true, "variation": null, @@ -7716,7 +7973,7 @@ "builtinExternal": true }, { - "__docId__": 317, + "__docId__": 327, "kind": "external", "static": true, "variation": null, @@ -7729,7 +7986,7 @@ "builtinExternal": true }, { - "__docId__": 318, + "__docId__": 328, "kind": "external", "static": true, "variation": null, @@ -7742,7 +7999,7 @@ "builtinExternal": true }, { - "__docId__": 319, + "__docId__": 329, "kind": "external", "static": true, "variation": null, @@ -7755,7 +8012,7 @@ "builtinExternal": true }, { - "__docId__": 320, + "__docId__": 330, "kind": "external", "static": true, "variation": null, @@ -7768,7 +8025,7 @@ "builtinExternal": true }, { - "__docId__": 321, + "__docId__": 331, "kind": "external", "static": true, "variation": null, @@ -7781,7 +8038,7 @@ "builtinExternal": true }, { - "__docId__": 322, + "__docId__": 332, "kind": "external", "static": true, "variation": null, @@ -7794,7 +8051,7 @@ "builtinExternal": true }, { - "__docId__": 323, + "__docId__": 333, "kind": "external", "static": true, "variation": null, @@ -7807,7 +8064,7 @@ "builtinExternal": true }, { - "__docId__": 324, + "__docId__": 334, "kind": "external", "static": true, "variation": null, @@ -7820,7 +8077,7 @@ "builtinExternal": true }, { - "__docId__": 325, + "__docId__": 335, "kind": "external", "static": true, "variation": null, @@ -7833,7 +8090,7 @@ "builtinExternal": true }, { - "__docId__": 326, + "__docId__": 336, "kind": "external", "static": true, "variation": null, @@ -7846,7 +8103,7 @@ "builtinExternal": true }, { - "__docId__": 327, + "__docId__": 337, "kind": "external", "static": true, "variation": null, @@ -7859,7 +8116,7 @@ "builtinExternal": true }, { - "__docId__": 328, + "__docId__": 338, "kind": "external", "static": true, "variation": null, @@ -7872,7 +8129,7 @@ "builtinExternal": true }, { - "__docId__": 329, + "__docId__": 339, "kind": "external", "static": true, "variation": null, @@ -7885,7 +8142,7 @@ "builtinExternal": true }, { - "__docId__": 330, + "__docId__": 340, "kind": "external", "static": true, "variation": null, @@ -7898,7 +8155,7 @@ "builtinExternal": true }, { - "__docId__": 331, + "__docId__": 341, "kind": "external", "static": true, "variation": null, @@ -7911,7 +8168,7 @@ "builtinExternal": true }, { - "__docId__": 332, + "__docId__": 342, "kind": "external", "static": true, "variation": null, @@ -7924,7 +8181,7 @@ "builtinExternal": true }, { - "__docId__": 333, + "__docId__": 343, "kind": "external", "static": true, "variation": null, @@ -7937,7 +8194,7 @@ "builtinExternal": true }, { - "__docId__": 334, + "__docId__": 344, "kind": "external", "static": true, "variation": null, @@ -7950,7 +8207,7 @@ "builtinExternal": true }, { - "__docId__": 335, + "__docId__": 345, "kind": "external", "static": true, "variation": null, @@ -7963,7 +8220,7 @@ "builtinExternal": true }, { - "__docId__": 336, + "__docId__": 346, "kind": "external", "static": true, "variation": null, @@ -7976,7 +8233,7 @@ "builtinExternal": true }, { - "__docId__": 337, + "__docId__": 347, "kind": "external", "static": true, "variation": null, @@ -7989,7 +8246,7 @@ "builtinExternal": true }, { - "__docId__": 338, + "__docId__": 348, "kind": "external", "static": true, "variation": null, @@ -8002,7 +8259,7 @@ "builtinExternal": true }, { - "__docId__": 339, + "__docId__": 349, "kind": "external", "static": true, "variation": null, @@ -8015,7 +8272,7 @@ "builtinExternal": true }, { - "__docId__": 340, + "__docId__": 350, "kind": "external", "static": true, "variation": null, @@ -8028,7 +8285,7 @@ "builtinExternal": true }, { - "__docId__": 341, + "__docId__": 351, "kind": "external", "static": true, "variation": null, @@ -8041,7 +8298,7 @@ "builtinExternal": true }, { - "__docId__": 342, + "__docId__": 352, "kind": "external", "static": true, "variation": null, @@ -8054,7 +8311,7 @@ "builtinExternal": true }, { - "__docId__": 343, + "__docId__": 353, "kind": "external", "static": true, "variation": null, @@ -8067,7 +8324,7 @@ "builtinExternal": true }, { - "__docId__": 344, + "__docId__": 354, "kind": "external", "static": true, "variation": null, @@ -8080,7 +8337,7 @@ "builtinExternal": true }, { - "__docId__": 345, + "__docId__": 355, "kind": "external", "static": true, "variation": null, @@ -8093,7 +8350,7 @@ "builtinExternal": true }, { - "__docId__": 346, + "__docId__": 356, "kind": "external", "static": true, "variation": null, @@ -8106,7 +8363,7 @@ "builtinExternal": true }, { - "__docId__": 347, + "__docId__": 357, "kind": "external", "static": true, "variation": null, @@ -8119,7 +8376,7 @@ "builtinExternal": true }, { - "__docId__": 348, + "__docId__": 358, "kind": "external", "static": true, "variation": null, @@ -8132,7 +8389,7 @@ "builtinExternal": true }, { - "__docId__": 349, + "__docId__": 359, "kind": "external", "static": true, "variation": null, @@ -8145,7 +8402,7 @@ "builtinExternal": true }, { - "__docId__": 350, + "__docId__": 360, "kind": "external", "static": true, "variation": null, @@ -8158,7 +8415,7 @@ "builtinExternal": true }, { - "__docId__": 351, + "__docId__": 361, "kind": "external", "static": true, "variation": null, @@ -8171,7 +8428,7 @@ "builtinExternal": true }, { - "__docId__": 352, + "__docId__": 362, "kind": "external", "static": true, "variation": null, @@ -8184,7 +8441,7 @@ "builtinExternal": true }, { - "__docId__": 353, + "__docId__": 363, "kind": "external", "static": true, "variation": null, @@ -8197,7 +8454,7 @@ "builtinExternal": true }, { - "__docId__": 354, + "__docId__": 364, "kind": "external", "static": true, "variation": null, @@ -8210,7 +8467,7 @@ "builtinExternal": true }, { - "__docId__": 355, + "__docId__": 365, "kind": "external", "static": true, "variation": null, @@ -8223,7 +8480,7 @@ "builtinExternal": true }, { - "__docId__": 356, + "__docId__": 366, "kind": "external", "static": true, "variation": null, @@ -8236,7 +8493,7 @@ "builtinExternal": true }, { - "__docId__": 357, + "__docId__": 367, "kind": "external", "static": true, "variation": null, @@ -8249,7 +8506,7 @@ "builtinExternal": true }, { - "__docId__": 359, + "__docId__": 369, "kind": "external", "static": true, "variation": null, @@ -8262,7 +8519,7 @@ "builtinExternal": true }, { - "__docId__": 360, + "__docId__": 370, "kind": "external", "static": true, "variation": null, @@ -8275,7 +8532,7 @@ "builtinExternal": true }, { - "__docId__": 361, + "__docId__": 371, "kind": "external", "static": true, "variation": null, @@ -8288,7 +8545,7 @@ "builtinExternal": true }, { - "__docId__": 362, + "__docId__": 372, "kind": "external", "static": true, "variation": null, @@ -8301,7 +8558,7 @@ "builtinExternal": true }, { - "__docId__": 363, + "__docId__": 373, "kind": "external", "static": true, "variation": null, @@ -8314,7 +8571,7 @@ "builtinExternal": true }, { - "__docId__": 364, + "__docId__": 374, "kind": "external", "static": true, "variation": null, @@ -8327,7 +8584,7 @@ "builtinExternal": true }, { - "__docId__": 365, + "__docId__": 375, "kind": "external", "static": true, "variation": null, @@ -8340,7 +8597,7 @@ "builtinExternal": true }, { - "__docId__": 366, + "__docId__": 376, "kind": "external", "static": true, "variation": null, @@ -8353,7 +8610,7 @@ "builtinExternal": true }, { - "__docId__": 367, + "__docId__": 377, "kind": "testFile", "static": true, "variation": null, @@ -8366,7 +8623,7 @@ "content": "import CommandArray from '../../src/CommandArray';\n\n/** @test {CommandArray} */\ndescribe('CommandArray', () => {\n /** @test {CommandArray#constructor} */\n describe('#constructor', () => {\n it('constructs with empty array', () => {\n const cmd = new CommandArray([]);\n expect(cmd).to.be.ok();\n });\n\n it('constructs with calls commands', () => {\n const fn1 = sinon.spy();\n const fn2 = sinon.spy();\n const cmd = new CommandArray([fn1, fn2]);\n expect(cmd).to.be.ok();\n expect(cmd).to.have.property('_count', 2);\n expect(fn1.calledOnce).to.be(true);\n expect(fn2.calledOnce).to.be(true);\n });\n });\n\n /** @test {CommandArray#push} */\n describe('#push', () => {\n it('ignores null', () => {\n const cmd = new CommandArray([]);\n\n const result = cmd.push(null);\n expect(result).to.be(0);\n });\n\n it('ignores undefined', () => {\n const cmd = new CommandArray([]);\n\n const result = cmd.push(undefined);\n expect(result).to.be(0);\n });\n\n it('ignores non-functions', () => {\n const cmd = new CommandArray([]);\n\n const result = cmd.push('something');\n expect(result).to.be(0);\n\n const result2 = cmd.push({});\n expect(result2).to.be(0);\n });\n\n it('executes the function and updates the count', () => {\n const cmd = new CommandArray([]);\n const fn = sinon.spy();\n\n const result = cmd.push(fn);\n expect(result).to.be(1);\n expect(fn.calledOnce).to.be(true);\n });\n\n it('continues updating count after constructor', () => {\n const fn1 = sinon.spy();\n const fn2 = sinon.spy();\n const fn3 = sinon.spy();\n const cmd = new CommandArray([fn1, fn2]);\n expect(cmd).to.be.ok();\n expect(cmd).to.have.property('_count', 2);\n\n const result = cmd.push(fn3);\n expect(result).to.be(3);\n expect(cmd).to.have.property('_count', 3);\n\n expect(fn1.calledOnce).to.be(true);\n expect(fn2.calledOnce).to.be(true);\n expect(fn3.calledOnce).to.be(true);\n });\n });\n});\n" }, { - "__docId__": 368, + "__docId__": 378, "kind": "testDescribe", "static": true, "variation": null, @@ -8389,7 +8646,7 @@ ] }, { - "__docId__": 369, + "__docId__": 379, "kind": "testDescribe", "static": true, "variation": null, @@ -8412,7 +8669,7 @@ ] }, { - "__docId__": 370, + "__docId__": 380, "kind": "testIt", "static": true, "variation": null, @@ -8426,7 +8683,7 @@ "lineNumber": 7 }, { - "__docId__": 371, + "__docId__": 381, "kind": "testIt", "static": true, "variation": null, @@ -8440,7 +8697,7 @@ "lineNumber": 12 }, { - "__docId__": 372, + "__docId__": 382, "kind": "testDescribe", "static": true, "variation": null, @@ -8463,7 +8720,7 @@ ] }, { - "__docId__": 373, + "__docId__": 383, "kind": "testIt", "static": true, "variation": null, @@ -8477,7 +8734,7 @@ "lineNumber": 25 }, { - "__docId__": 374, + "__docId__": 384, "kind": "testIt", "static": true, "variation": null, @@ -8491,7 +8748,7 @@ "lineNumber": 32 }, { - "__docId__": 375, + "__docId__": 385, "kind": "testIt", "static": true, "variation": null, @@ -8505,7 +8762,7 @@ "lineNumber": 39 }, { - "__docId__": 376, + "__docId__": 386, "kind": "testIt", "static": true, "variation": null, @@ -8519,7 +8776,7 @@ "lineNumber": 49 }, { - "__docId__": 377, + "__docId__": 387, "kind": "testIt", "static": true, "variation": null, @@ -8533,7 +8790,7 @@ "lineNumber": 58 }, { - "__docId__": 378, + "__docId__": 388, "kind": "testFile", "static": true, "variation": null, @@ -8546,7 +8803,7 @@ "content": "import CompanionAdsService from '../../src/CompanionAdsService';\nimport GPT from '../../src/GPT';\n\n/** @test {CompanionAdsService} */\ndescribe('CompanionAdsService', () => {\n const gpt = new GPT();\n\n /** @test {CompanionAdsService#constructor} */\n describe('#constructor', () => {\n it('constructs', () => {\n const service = new CompanionAdsService(gpt);\n expect(service).to.be.ok();\n expect(service).to.have.property('_gpt', gpt);\n });\n });\n\n /** @test {CompanionAdsService#enableSyncLoading} */\n describe('#enableSyncLoading', () => {\n it('sets syncLoading option', () => {\n const service = new CompanionAdsService(gpt);\n service.enableSyncLoading();\n expect(service._options).to.have.property('syncLoading', true);\n });\n\n it('returns undefined', () => {\n const service = new CompanionAdsService(gpt);\n expect(service.enableSyncLoading()).to.be(undefined);\n });\n });\n\n /** @test {CompanionAdsService#setRefreshUnfilledSlots} */\n describe('#setRefreshUnfilledSlots', () => {\n it('sets refreshUnfilledSlots option', () => {\n const service = new CompanionAdsService(gpt);\n service.setRefreshUnfilledSlots(true);\n expect(service._options).to.have.property('refreshUnfilledSlots', true);\n });\n\n it('returns undefined', () => {\n const service = new CompanionAdsService(gpt);\n expect(service.setRefreshUnfilledSlots()).to.be(undefined);\n });\n });\n});\n" }, { - "__docId__": 379, + "__docId__": 389, "kind": "testDescribe", "static": true, "variation": null, @@ -8569,7 +8826,7 @@ ] }, { - "__docId__": 380, + "__docId__": 390, "kind": "testDescribe", "static": true, "variation": null, @@ -8592,7 +8849,7 @@ ] }, { - "__docId__": 381, + "__docId__": 391, "kind": "testIt", "static": true, "variation": null, @@ -8606,7 +8863,7 @@ "lineNumber": 10 }, { - "__docId__": 382, + "__docId__": 392, "kind": "testDescribe", "static": true, "variation": null, @@ -8629,7 +8886,7 @@ ] }, { - "__docId__": 383, + "__docId__": 393, "kind": "testIt", "static": true, "variation": null, @@ -8643,7 +8900,7 @@ "lineNumber": 19 }, { - "__docId__": 384, + "__docId__": 394, "kind": "testIt", "static": true, "variation": null, @@ -8657,7 +8914,7 @@ "lineNumber": 25 }, { - "__docId__": 385, + "__docId__": 395, "kind": "testDescribe", "static": true, "variation": null, @@ -8680,7 +8937,7 @@ ] }, { - "__docId__": 386, + "__docId__": 396, "kind": "testIt", "static": true, "variation": null, @@ -8694,7 +8951,7 @@ "lineNumber": 33 }, { - "__docId__": 387, + "__docId__": 397, "kind": "testIt", "static": true, "variation": null, @@ -8708,7 +8965,7 @@ "lineNumber": 39 }, { - "__docId__": 388, + "__docId__": 398, "kind": "testFile", "static": true, "variation": null, @@ -8721,7 +8978,7 @@ "content": "import ContentService from '../../src/ContentService';\nimport GPT from '../../src/GPT';\nimport Slot from '../../src/Slot';\n\n/** @test {ContentService} */\ndescribe('ContentService', () => {\n const gpt = new GPT();\n const adUnitPath = '/Test/123';\n const size = [728, 90];\n const content = 'TEST CONTENT';\n const content2 = 'TEST CONTENT 2';\n\n /** @test {ContentService#constructor} */\n describe('#constructor', () => {\n it('constructs', () => {\n const service = new ContentService(gpt);\n expect(service).to.be.ok();\n expect(service).to.have.property('_gpt', gpt);\n expect(service).to.have.property('_storedContent');\n expect(service._storedContent).to.be.an('array');\n expect(service._storedContent).to.be.empty();\n });\n });\n\n /** @test {ContentService#setContent} */\n describe('#setContent', () => {\n it('returns undefined', () => {\n const service = new ContentService(gpt);\n const slot = new Slot(adUnitPath, size).addService(service);\n expect(service.setContent(slot, content)).to.not.be.ok();\n });\n\n it('stores content if service is not enabled', () => {\n const service = new ContentService(gpt);\n const slot = new Slot(adUnitPath, size).addService(service);\n service.setContent(slot, content);\n expect(slot._getContent()).to.not.be(content);\n });\n\n it('sets content immediately if service is enabled', () => {\n const service = new ContentService(gpt);\n const slot = new Slot(adUnitPath, size).addService(service);\n service.enable();\n service.setContent(slot, content);\n expect(slot._getContent()).to.be(content);\n });\n\n it('overwrites previous content', () => {\n const service = new ContentService(gpt);\n const slot = new Slot(adUnitPath, size).addService(service);\n service.enable();\n service.setContent(slot, content);\n expect(slot._getContent()).to.be(content);\n service.setContent(slot, content2);\n expect(slot._getContent()).to.be(content2);\n });\n });\n\n /** @test {ContentService#enable} */\n describe('#enable', () => {\n it('returns undefined', () => {\n const service = new ContentService(gpt);\n expect(service.enable()).to.not.be.ok();\n });\n\n it('sets any stored content', () => {\n const service = new ContentService(gpt);\n const slot = new Slot(adUnitPath, size).addService(service);\n service.setContent(slot, content);\n expect(slot._getContent()).to.not.be(content);\n service.enable();\n expect(slot._getContent()).to.be(content);\n });\n });\n});\n" }, { - "__docId__": 389, + "__docId__": 399, "kind": "testDescribe", "static": true, "variation": null, @@ -8744,7 +9001,7 @@ ] }, { - "__docId__": 390, + "__docId__": 400, "kind": "testDescribe", "static": true, "variation": null, @@ -8767,7 +9024,7 @@ ] }, { - "__docId__": 391, + "__docId__": 401, "kind": "testIt", "static": true, "variation": null, @@ -8781,7 +9038,7 @@ "lineNumber": 15 }, { - "__docId__": 392, + "__docId__": 402, "kind": "testDescribe", "static": true, "variation": null, @@ -8804,7 +9061,7 @@ ] }, { - "__docId__": 393, + "__docId__": 403, "kind": "testIt", "static": true, "variation": null, @@ -8818,7 +9075,7 @@ "lineNumber": 27 }, { - "__docId__": 394, + "__docId__": 404, "kind": "testIt", "static": true, "variation": null, @@ -8832,7 +9089,7 @@ "lineNumber": 33 }, { - "__docId__": 395, + "__docId__": 405, "kind": "testIt", "static": true, "variation": null, @@ -8846,7 +9103,7 @@ "lineNumber": 40 }, { - "__docId__": 396, + "__docId__": 406, "kind": "testIt", "static": true, "variation": null, @@ -8860,7 +9117,7 @@ "lineNumber": 48 }, { - "__docId__": 397, + "__docId__": 407, "kind": "testDescribe", "static": true, "variation": null, @@ -8883,7 +9140,7 @@ ] }, { - "__docId__": 398, + "__docId__": 408, "kind": "testIt", "static": true, "variation": null, @@ -8897,7 +9154,7 @@ "lineNumber": 61 }, { - "__docId__": 399, + "__docId__": 409, "kind": "testIt", "static": true, "variation": null, @@ -8911,7 +9168,7 @@ "lineNumber": 66 }, { - "__docId__": 400, + "__docId__": 410, "kind": "testFile", "static": true, "variation": null, @@ -8924,7 +9181,7 @@ "content": "import GPT from '../../src/GPT';\nimport Slot from '../../src/Slot';\n\n/** @test {GPT} */\ndescribe('GPT', () => {\n const adUnitPath = '/Test/12345';\n const size = [728, 90];\n const optDiv = 'div-1';\n\n /** @test {GPT#constructor} */\n describe('#constructor', () => {\n it('constructs', () => {\n const gpt = new GPT();\n expect(gpt).to.be.ok();\n });\n });\n\n /** @test {GPT#getVersion} */\n describe('#getVersion', () => {\n it('returns current version', () => {\n const gpt = new GPT();\n expect(gpt.getVersion()).to.be('94');\n });\n });\n\n /** @test {GPT#companionAds} */\n describe('#companionAds', () => {\n it('returns the service', () => {\n const gpt = new GPT();\n expect(gpt.companionAds()).to.be.ok();\n expect(gpt.companionAds().getName()).to.be('companion_ads');\n });\n });\n\n /** @test {GPT#content} */\n describe('#content', () => {\n it('returns the service', () => {\n const gpt = new GPT();\n expect(gpt.content()).to.be.ok();\n expect(gpt.content().getName()).to.be('content');\n });\n });\n\n /** @test {GPT#pubads} */\n describe('#pubads', () => {\n it('returns the service', () => {\n const gpt = new GPT();\n expect(gpt.pubads()).to.be.ok();\n expect(gpt.pubads().getName()).to.be('publisher_ads');\n });\n });\n\n /** @test {GPT#enableServices} */\n describe('#enableServices', () => {\n it('returns undefined', () => {\n const gpt = new GPT();\n expect(gpt.enableServices()).to.be(undefined);\n });\n\n it('enables the services', () => {\n const gpt = new GPT();\n gpt.enableServices();\n expect(gpt.pubads()._enabled).to.be(true);\n });\n });\n\n /** @test {GPT#sizeMapping} */\n describe('#sizeMapping', () => {\n it('returns a new builder', () => {\n const gpt = new GPT();\n const builder1 = gpt.sizeMapping();\n expect(builder1).to.be.ok();\n const builder2 = gpt.sizeMapping();\n expect(builder2).to.be.ok();\n expect(builder2).to.not.be(builder1);\n });\n });\n\n /** @test {GPT#defineSlot} */\n describe('#defineSlot', () => {\n it('returns a slot', () => {\n const gpt = new GPT();\n const slot = gpt.defineSlot(adUnitPath, size, optDiv);\n expect(slot).to.be.ok();\n expect(slot.getAdUnitPath()).to.be(adUnitPath);\n });\n\n it('adds a slot to the list of slots', () => {\n const gpt = new GPT();\n expect(gpt._slots).to.be.an('array');\n expect(gpt._slots).to.be.empty();\n const slot = gpt.defineSlot(adUnitPath, size, optDiv);\n expect(slot).to.be.ok();\n expect(gpt._slots).to.have.length(1);\n expect(gpt._slots).to.eql([slot]);\n });\n });\n\n /** @test {GPT#defineOutOfPageSlot} */\n describe('#defineOutOfPageSlot', () => {\n it('returns a new slot', () => {\n const gpt = new GPT();\n const slot = gpt.defineOutOfPageSlot(adUnitPath, optDiv);\n expect(slot).to.be.ok();\n expect(slot.getAdUnitPath()).to.be(adUnitPath);\n expect(slot._outOfPage).to.be(true);\n });\n\n it('adds a slot to the list of slots', () => {\n const gpt = new GPT();\n expect(gpt._slots).to.be.an('array');\n expect(gpt._slots).to.be.empty();\n const slot = gpt.defineOutOfPageSlot(adUnitPath, optDiv);\n expect(slot).to.be.ok();\n expect(gpt._slots).to.have.length(1);\n expect(gpt._slots).to.eql([slot]);\n });\n });\n\n /** @test {GPT#destroySlots} */\n describe('#destroySlots', () => {\n it('returns true if no slots', () => {\n const gpt = new GPT();\n\n expect(gpt._slots).to.be.an('array');\n expect(gpt._slots).to.be.empty();\n expect(gpt.destroySlots()).to.be(true);\n });\n\n it('returns true if clearing all slots', () => {\n const gpt = new GPT();\n\n expect(gpt._slots).to.be.an('array');\n expect(gpt._slots).to.be.empty();\n const slot = gpt.defineOutOfPageSlot(adUnitPath, optDiv);\n expect(slot).to.be.ok();\n expect(gpt._slots).to.have.length(1);\n expect(gpt._slots).to.eql([slot]);\n\n expect(gpt.destroySlots()).to.be(true);\n\n expect(gpt._slots).to.be.empty();\n });\n\n it('returns true if clearing specific slot', () => {\n const gpt = new GPT();\n\n expect(gpt._slots).to.be.an('array');\n expect(gpt._slots).to.be.empty();\n const slot1 = gpt.defineOutOfPageSlot(adUnitPath, optDiv);\n const slot2 = gpt.defineOutOfPageSlot(adUnitPath, optDiv);\n expect(slot1).to.be.ok();\n expect(slot2).to.be.ok();\n expect(gpt._slots).to.have.length(2);\n expect(gpt._slots).to.eql([slot1, slot2]);\n\n expect(gpt.destroySlots([slot2])).to.be(true);\n\n expect(gpt._slots).to.be.eql([slot1]);\n });\n\n it('returns false if slot does not exist', () => {\n const gpt = new GPT();\n\n expect(gpt._slots).to.be.an('array');\n expect(gpt._slots).to.be.empty();\n const slot1 = gpt.defineOutOfPageSlot(adUnitPath, optDiv);\n const slot2 = gpt.defineOutOfPageSlot(adUnitPath, optDiv);\n expect(slot1).to.be.ok();\n expect(slot2).to.be.ok();\n expect(gpt._slots).to.have.length(2);\n expect(gpt._slots).to.eql([slot1, slot2]);\n\n expect(gpt.destroySlots([new Slot(adUnitPath, [], optDiv)])).to.be(false);\n });\n });\n\n /** @test {GPT#display} */\n describe('#display', () => {\n it('returns undefined', () => {\n const gpt = new GPT();\n expect(gpt.display('div')).to.be(undefined);\n });\n\n it('displays the slot', () => {\n const gpt = new GPT();\n const slot = gpt.defineSlot(adUnitPath, [], optDiv).addService(gpt.pubads());\n gpt.display(optDiv);\n expect(slot._options.displayed).to.be(true);\n });\n });\n\n /** @test {GPT#openConsole} */\n describe('#openConsole', () => {\n it('returns undefined', () => {\n const gpt = new GPT();\n expect(gpt.openConsole()).to.be(undefined);\n });\n });\n\n /** @test {GPT#disablePublisherConsole} */\n describe('#disablePublisherConsole', () => {\n it('returns undefined', () => {\n const gpt = new GPT();\n expect(gpt.disablePublisherConsole()).to.be(undefined);\n });\n });\n\n /** @test {GPT#setAdIframeTitle} */\n describe('#setAdIframeTitle', () => {\n const title = 'Advertisement';\n it('returns undefined', () => {\n const gpt = new GPT();\n expect(gpt.setAdIframeTitle(title)).to.be(undefined);\n });\n\n it('saves the title', () => {\n const gpt = new GPT();\n gpt.setAdIframeTitle(title);\n expect(gpt._title).to.be(title);\n });\n });\n\n /** @test {GPT#_loaded} */\n describe('#_loaded', () => {\n it('returns undefined', () => {\n const gpt = new GPT();\n expect(gpt._loaded()).to.be(undefined);\n });\n\n it('sets apiReady flag', () => {\n const gpt = new GPT();\n expect(gpt.apiReady).to.be(undefined);\n expect(gpt._loaded()).to.be(undefined);\n expect(gpt.apiReady).to.be(true);\n });\n\n it('replaces cmd with CommandArray', () => {\n const gpt = new GPT();\n expect(gpt.cmd).to.be.an('array');\n expect(gpt._loaded()).to.be(undefined);\n expect(gpt.cmd).to.be.an('object');\n });\n });\n\n});\n" }, { - "__docId__": 401, + "__docId__": 411, "kind": "testDescribe", "static": true, "variation": null, @@ -8947,7 +9204,7 @@ ] }, { - "__docId__": 402, + "__docId__": 412, "kind": "testDescribe", "static": true, "variation": null, @@ -8970,7 +9227,7 @@ ] }, { - "__docId__": 403, + "__docId__": 413, "kind": "testIt", "static": true, "variation": null, @@ -8984,7 +9241,7 @@ "lineNumber": 12 }, { - "__docId__": 404, + "__docId__": 414, "kind": "testDescribe", "static": true, "variation": null, @@ -9007,7 +9264,7 @@ ] }, { - "__docId__": 405, + "__docId__": 415, "kind": "testIt", "static": true, "variation": null, @@ -9021,7 +9278,7 @@ "lineNumber": 20 }, { - "__docId__": 406, + "__docId__": 416, "kind": "testDescribe", "static": true, "variation": null, @@ -9044,7 +9301,7 @@ ] }, { - "__docId__": 407, + "__docId__": 417, "kind": "testIt", "static": true, "variation": null, @@ -9058,7 +9315,7 @@ "lineNumber": 28 }, { - "__docId__": 408, + "__docId__": 418, "kind": "testDescribe", "static": true, "variation": null, @@ -9081,7 +9338,7 @@ ] }, { - "__docId__": 409, + "__docId__": 419, "kind": "testIt", "static": true, "variation": null, @@ -9095,7 +9352,7 @@ "lineNumber": 37 }, { - "__docId__": 410, + "__docId__": 420, "kind": "testDescribe", "static": true, "variation": null, @@ -9118,7 +9375,7 @@ ] }, { - "__docId__": 411, + "__docId__": 421, "kind": "testIt", "static": true, "variation": null, @@ -9132,7 +9389,7 @@ "lineNumber": 46 }, { - "__docId__": 412, + "__docId__": 422, "kind": "testDescribe", "static": true, "variation": null, @@ -9155,7 +9412,7 @@ ] }, { - "__docId__": 413, + "__docId__": 423, "kind": "testIt", "static": true, "variation": null, @@ -9169,7 +9426,7 @@ "lineNumber": 55 }, { - "__docId__": 414, + "__docId__": 424, "kind": "testIt", "static": true, "variation": null, @@ -9183,7 +9440,7 @@ "lineNumber": 60 }, { - "__docId__": 415, + "__docId__": 425, "kind": "testDescribe", "static": true, "variation": null, @@ -9206,7 +9463,7 @@ ] }, { - "__docId__": 416, + "__docId__": 426, "kind": "testIt", "static": true, "variation": null, @@ -9220,7 +9477,7 @@ "lineNumber": 69 }, { - "__docId__": 417, + "__docId__": 427, "kind": "testDescribe", "static": true, "variation": null, @@ -9243,7 +9500,7 @@ ] }, { - "__docId__": 418, + "__docId__": 428, "kind": "testIt", "static": true, "variation": null, @@ -9257,7 +9514,7 @@ "lineNumber": 81 }, { - "__docId__": 419, + "__docId__": 429, "kind": "testIt", "static": true, "variation": null, @@ -9271,7 +9528,7 @@ "lineNumber": 88 }, { - "__docId__": 420, + "__docId__": 430, "kind": "testDescribe", "static": true, "variation": null, @@ -9294,7 +9551,7 @@ ] }, { - "__docId__": 421, + "__docId__": 431, "kind": "testIt", "static": true, "variation": null, @@ -9308,7 +9565,7 @@ "lineNumber": 101 }, { - "__docId__": 422, + "__docId__": 432, "kind": "testIt", "static": true, "variation": null, @@ -9322,7 +9579,7 @@ "lineNumber": 109 }, { - "__docId__": 423, + "__docId__": 433, "kind": "testDescribe", "static": true, "variation": null, @@ -9345,7 +9602,7 @@ ] }, { - "__docId__": 424, + "__docId__": 434, "kind": "testIt", "static": true, "variation": null, @@ -9359,7 +9616,7 @@ "lineNumber": 122 }, { - "__docId__": 425, + "__docId__": 435, "kind": "testIt", "static": true, "variation": null, @@ -9373,7 +9630,7 @@ "lineNumber": 130 }, { - "__docId__": 426, + "__docId__": 436, "kind": "testIt", "static": true, "variation": null, @@ -9387,7 +9644,7 @@ "lineNumber": 145 }, { - "__docId__": 427, + "__docId__": 437, "kind": "testIt", "static": true, "variation": null, @@ -9401,7 +9658,7 @@ "lineNumber": 162 }, { - "__docId__": 428, + "__docId__": 438, "kind": "testDescribe", "static": true, "variation": null, @@ -9424,7 +9681,7 @@ ] }, { - "__docId__": 429, + "__docId__": 439, "kind": "testIt", "static": true, "variation": null, @@ -9438,7 +9695,7 @@ "lineNumber": 180 }, { - "__docId__": 430, + "__docId__": 440, "kind": "testIt", "static": true, "variation": null, @@ -9452,7 +9709,7 @@ "lineNumber": 185 }, { - "__docId__": 431, + "__docId__": 441, "kind": "testDescribe", "static": true, "variation": null, @@ -9475,7 +9732,7 @@ ] }, { - "__docId__": 432, + "__docId__": 442, "kind": "testIt", "static": true, "variation": null, @@ -9489,7 +9746,7 @@ "lineNumber": 195 }, { - "__docId__": 433, + "__docId__": 443, "kind": "testDescribe", "static": true, "variation": null, @@ -9512,7 +9769,7 @@ ] }, { - "__docId__": 434, + "__docId__": 444, "kind": "testIt", "static": true, "variation": null, @@ -9526,7 +9783,7 @@ "lineNumber": 203 }, { - "__docId__": 435, + "__docId__": 445, "kind": "testDescribe", "static": true, "variation": null, @@ -9549,7 +9806,7 @@ ] }, { - "__docId__": 436, + "__docId__": 446, "kind": "testIt", "static": true, "variation": null, @@ -9563,7 +9820,7 @@ "lineNumber": 212 }, { - "__docId__": 437, + "__docId__": 447, "kind": "testIt", "static": true, "variation": null, @@ -9577,7 +9834,7 @@ "lineNumber": 217 }, { - "__docId__": 438, + "__docId__": 448, "kind": "testDescribe", "static": true, "variation": null, @@ -9600,7 +9857,7 @@ ] }, { - "__docId__": 439, + "__docId__": 449, "kind": "testIt", "static": true, "variation": null, @@ -9614,7 +9871,7 @@ "lineNumber": 226 }, { - "__docId__": 440, + "__docId__": 450, "kind": "testIt", "static": true, "variation": null, @@ -9628,7 +9885,7 @@ "lineNumber": 231 }, { - "__docId__": 441, + "__docId__": 451, "kind": "testIt", "static": true, "variation": null, @@ -9642,7 +9899,7 @@ "lineNumber": 238 }, { - "__docId__": 442, + "__docId__": 452, "kind": "testFile", "static": true, "variation": null, @@ -9655,7 +9912,7 @@ "content": "import * as GeneralSize from '../../src/GeneralSize';\nimport Size from '../../src/Size';\n\n/** @test {GeneralSize} */\ndescribe('GeneralSize', () => {\n const triplet = [728, 90, 1];\n const singleSize = [728, 90];\n const multiSize = [[728, 90], [970, 90]];\n\n /** @test {GeneralSize#isGeneralSize} */\n describe('#isGeneralSize', () => {\n it('returns false for null', () => {\n expect(GeneralSize.isGeneralSize(null)).to.be(false);\n });\n\n it('returns false for undefined', () => {\n expect(GeneralSize.isGeneralSize(undefined)).to.be(false);\n });\n\n it('returns true for empty array', () => {\n expect(GeneralSize.isGeneralSize([])).to.be(true);\n });\n\n it('returns true for SingleSize', () => {\n expect(GeneralSize.isGeneralSize(singleSize)).to.be(true);\n });\n\n it('returns true for MultiSize', () => {\n expect(GeneralSize.isGeneralSize(multiSize)).to.be(true);\n });\n });\n\n /** @test {GeneralSize#toSizes} */\n describe('#toSizes', () => {\n it('returns empty array for null', () => {\n const result = GeneralSize.toSizes(null);\n expect(result).to.be.an('array');\n expect(result).to.be.empty();\n });\n\n it('returns empty array for empty array', () => {\n const result = GeneralSize.toSizes([]);\n expect(result).to.be.an('array');\n expect(result).to.be.empty();\n });\n\n it('returns empty array for triplet', () => {\n const result = GeneralSize.toSizes(triplet);\n expect(result).to.be.an('array');\n expect(result).to.be.empty();\n });\n\n it('returns array of sizes for SingleSize', () => {\n const result = GeneralSize.toSizes(singleSize);\n expect(result).to.be.an('array');\n expect(result).to.be.eql([\n new Size(728, 90)\n ]);\n });\n\n it('returns array of sizes for MultiSize', () => {\n const result = GeneralSize.toSizes(multiSize);\n expect(result).to.be.an('array');\n expect(result).to.be.eql([\n new Size(728, 90),\n new Size(970, 90)\n ]);\n });\n });\n});\n" }, { - "__docId__": 443, + "__docId__": 453, "kind": "testDescribe", "static": true, "variation": null, @@ -9678,7 +9935,7 @@ ] }, { - "__docId__": 444, + "__docId__": 454, "kind": "testDescribe", "static": true, "variation": null, @@ -9701,7 +9958,7 @@ ] }, { - "__docId__": 445, + "__docId__": 455, "kind": "testIt", "static": true, "variation": null, @@ -9715,7 +9972,7 @@ "lineNumber": 12 }, { - "__docId__": 446, + "__docId__": 456, "kind": "testIt", "static": true, "variation": null, @@ -9729,7 +9986,7 @@ "lineNumber": 16 }, { - "__docId__": 447, + "__docId__": 457, "kind": "testIt", "static": true, "variation": null, @@ -9743,7 +10000,7 @@ "lineNumber": 20 }, { - "__docId__": 448, + "__docId__": 458, "kind": "testIt", "static": true, "variation": null, @@ -9757,7 +10014,7 @@ "lineNumber": 24 }, { - "__docId__": 449, + "__docId__": 459, "kind": "testIt", "static": true, "variation": null, @@ -9771,7 +10028,7 @@ "lineNumber": 28 }, { - "__docId__": 450, + "__docId__": 460, "kind": "testDescribe", "static": true, "variation": null, @@ -9794,7 +10051,7 @@ ] }, { - "__docId__": 451, + "__docId__": 461, "kind": "testIt", "static": true, "variation": null, @@ -9808,7 +10065,7 @@ "lineNumber": 35 }, { - "__docId__": 452, + "__docId__": 462, "kind": "testIt", "static": true, "variation": null, @@ -9822,7 +10079,7 @@ "lineNumber": 41 }, { - "__docId__": 453, + "__docId__": 463, "kind": "testIt", "static": true, "variation": null, @@ -9836,7 +10093,7 @@ "lineNumber": 47 }, { - "__docId__": 454, + "__docId__": 464, "kind": "testIt", "static": true, "variation": null, @@ -9850,7 +10107,7 @@ "lineNumber": 53 }, { - "__docId__": 455, + "__docId__": 465, "kind": "testIt", "static": true, "variation": null, @@ -9864,7 +10121,7 @@ "lineNumber": 61 }, { - "__docId__": 456, + "__docId__": 466, "kind": "testFile", "static": true, "variation": null, @@ -9877,7 +10134,7 @@ "content": "import * as MultiSize from '../../src/MultiSize';\nimport Size from '../../src/Size';\n\n/** @test {MultiSize} */\ndescribe('MultiSize', () => {\n const singleSize = [728, 90];\n const multiSize = [[728, 90], [970, 90]];\n\n /** @test {MultiSize#isMultiSize} */\n describe('#isMultiSize', () => {\n it('returns false for null', () => {\n expect(MultiSize.isMultiSize(null)).to.be(false);\n });\n\n it('returns false for undefined', () => {\n expect(MultiSize.isMultiSize(undefined)).to.be(false);\n });\n\n it('returns true for empty array', () => {\n expect(MultiSize.isMultiSize([])).to.be(true);\n });\n\n it('returns false for SingleSize', () => {\n expect(MultiSize.isMultiSize(singleSize)).to.be(false);\n });\n\n it('returns true for MultiSize', () => {\n expect(MultiSize.isMultiSize(multiSize)).to.be(true);\n });\n });\n\n /** @test {MultiSize#toSizes} */\n describe('#toSizes', () => {\n it('returns empty array for null', () => {\n const result = MultiSize.toSizes(null);\n expect(result).to.be.an('array');\n expect(result).to.be.empty();\n });\n\n it('returns empty array for object', () => {\n const result = MultiSize.toSizes({});\n expect(result).to.be.an('array');\n expect(result).to.be.empty();\n });\n\n it('returns empty array for SingleSize', () => {\n const result = MultiSize.toSizes(singleSize);\n expect(result).to.be.an('array');\n expect(result).to.be.empty();\n });\n\n it('returns array of sizes for MultiSize', () => {\n const result = MultiSize.toSizes(multiSize);\n expect(result).to.be.an('array');\n expect(result).to.be.eql([\n new Size(728, 90),\n new Size(970, 90)\n ]);\n });\n });\n});\n" }, { - "__docId__": 457, + "__docId__": 467, "kind": "testDescribe", "static": true, "variation": null, @@ -9900,7 +10157,7 @@ ] }, { - "__docId__": 458, + "__docId__": 468, "kind": "testDescribe", "static": true, "variation": null, @@ -9923,7 +10180,7 @@ ] }, { - "__docId__": 459, + "__docId__": 469, "kind": "testIt", "static": true, "variation": null, @@ -9937,7 +10194,7 @@ "lineNumber": 11 }, { - "__docId__": 460, + "__docId__": 470, "kind": "testIt", "static": true, "variation": null, @@ -9951,7 +10208,7 @@ "lineNumber": 15 }, { - "__docId__": 461, + "__docId__": 471, "kind": "testIt", "static": true, "variation": null, @@ -9965,7 +10222,7 @@ "lineNumber": 19 }, { - "__docId__": 462, + "__docId__": 472, "kind": "testIt", "static": true, "variation": null, @@ -9979,7 +10236,7 @@ "lineNumber": 23 }, { - "__docId__": 463, + "__docId__": 473, "kind": "testIt", "static": true, "variation": null, @@ -9993,7 +10250,7 @@ "lineNumber": 27 }, { - "__docId__": 464, + "__docId__": 474, "kind": "testDescribe", "static": true, "variation": null, @@ -10016,7 +10273,7 @@ ] }, { - "__docId__": 465, + "__docId__": 475, "kind": "testIt", "static": true, "variation": null, @@ -10030,7 +10287,7 @@ "lineNumber": 34 }, { - "__docId__": 466, + "__docId__": 476, "kind": "testIt", "static": true, "variation": null, @@ -10044,7 +10301,7 @@ "lineNumber": 40 }, { - "__docId__": 467, + "__docId__": 477, "kind": "testIt", "static": true, "variation": null, @@ -10058,7 +10315,7 @@ "lineNumber": 46 }, { - "__docId__": 468, + "__docId__": 478, "kind": "testIt", "static": true, "variation": null, @@ -10072,7 +10329,7 @@ "lineNumber": 52 }, { - "__docId__": 469, + "__docId__": 479, "kind": "testFile", "static": true, "variation": null, @@ -10085,7 +10342,7 @@ "content": "import * as NamedSize from '../../src/NamedSize';\n\n/** @test {NamedSize} */\ndescribe('NamedSize', () => {\n const singleSize = [728, 90];\n const multiSize = [[728, 90], [970, 90]];\n\n /** @test {NamedSize#isNamedSize} */\n describe('#isNamedSize', () => {\n it('returns false for null', () => {\n expect(NamedSize.isNamedSize(null)).to.be(false);\n });\n\n it('returns false for undefined', () => {\n expect(NamedSize.isNamedSize(undefined)).to.be(false);\n });\n\n it('returns false for empty array', () => {\n expect(NamedSize.isNamedSize([])).to.be(false);\n });\n\n it('returns false for SingleSize', () => {\n expect(NamedSize.isNamedSize(singleSize)).to.be(false);\n });\n\n it('returns false for MultiSize', () => {\n expect(NamedSize.isNamedSize(multiSize)).to.be(false);\n });\n\n it('returns false for non-\"fluid\" string', () => {\n expect(NamedSize.isNamedSize('overflow')).to.be(false);\n });\n\n it('returns true for \"fluid\" string', () => {\n expect(NamedSize.isNamedSize('fluid')).to.be(true);\n });\n });\n});\n" }, { - "__docId__": 470, + "__docId__": 480, "kind": "testDescribe", "static": true, "variation": null, @@ -10108,7 +10365,7 @@ ] }, { - "__docId__": 471, + "__docId__": 481, "kind": "testDescribe", "static": true, "variation": null, @@ -10131,7 +10388,7 @@ ] }, { - "__docId__": 472, + "__docId__": 482, "kind": "testIt", "static": true, "variation": null, @@ -10145,7 +10402,7 @@ "lineNumber": 10 }, { - "__docId__": 473, + "__docId__": 483, "kind": "testIt", "static": true, "variation": null, @@ -10159,7 +10416,7 @@ "lineNumber": 14 }, { - "__docId__": 474, + "__docId__": 484, "kind": "testIt", "static": true, "variation": null, @@ -10173,7 +10430,7 @@ "lineNumber": 18 }, { - "__docId__": 475, + "__docId__": 485, "kind": "testIt", "static": true, "variation": null, @@ -10187,7 +10444,7 @@ "lineNumber": 22 }, { - "__docId__": 476, + "__docId__": 486, "kind": "testIt", "static": true, "variation": null, @@ -10201,7 +10458,7 @@ "lineNumber": 26 }, { - "__docId__": 477, + "__docId__": 487, "kind": "testIt", "static": true, "variation": null, @@ -10215,7 +10472,7 @@ "lineNumber": 30 }, { - "__docId__": 478, + "__docId__": 488, "kind": "testIt", "static": true, "variation": null, @@ -10229,7 +10486,7 @@ "lineNumber": 34 }, { - "__docId__": 479, + "__docId__": 489, "kind": "testFile", "static": true, "variation": null, @@ -10242,7 +10499,7 @@ "content": "import PubAdsService from '../../src/PubAdsService';\nimport SafeFrameConfig from '../../src/SafeFrameConfig';\nimport GPT from '../../src/GPT';\nimport Slot from '../../src/Slot';\n\n/** @test {PubAdsService} */\ndescribe('PubAdsService', () => {\n const gt = new GPT();\n const adUnitPath = '/Test/12345';\n const size = [728, 90];\n\n /** @test {PubAdsService#constructor} */\n describe('#constructor', () => {\n it('constructs', () => {\n const service = new PubAdsService(gt);\n expect(service).to.be.ok();\n });\n });\n\n /** @test {PubAdsService#enable} */\n describe('#enable', () => {\n it('returns undefined', () => {\n const service = new PubAdsService(gt);\n expect(service.enable()).to.be(undefined);\n });\n\n it('sets the pubadsReady flag', () => {\n const gt = new GPT();\n const service = new PubAdsService(gt);\n expect(gt.pubadsReady).to.be(undefined);\n service.enable();\n expect(gt.pubadsReady).to.be(true);\n });\n });\n\n /** @test {PubAdsService#refresh} */\n describe('#refresh', () => {\n it('returns undefined', () => {\n const service = new PubAdsService(gt);\n const correlator = service._correlator;\n expect(service.refresh()).to.be(undefined);\n expect(service._correlator).to.be(correlator);\n });\n\n it('updates the correlator', () => {\n const service = new PubAdsService(gt);\n const correlator = service._correlator;\n service.refresh(null, {changeCorrelator: true});\n expect(service._correlator).to.not.be(correlator);\n });\n\n it('fetches all ads', () => {\n const service = new PubAdsService(gt);\n const slot = service.definePassback(adUnitPath, size);\n expect(slot._options.refreshed).to.be(0);\n expect(slot._options.fetched).to.be(false);\n service.refresh();\n expect(slot._options.refreshed).to.be(1);\n expect(slot._options.fetched).to.be(true);\n service.refresh();\n expect(slot._options.refreshed).to.be(2);\n expect(slot._options.fetched).to.be(true);\n });\n\n it('fetches specified ads', () => {\n const service = new PubAdsService(gt);\n const slot1 = service.definePassback(adUnitPath, size);\n const slot2 = service.definePassback(adUnitPath, size);\n expect(slot1._options.refreshed).to.be(0);\n expect(slot1._options.fetched).to.be(false);\n expect(slot2._options.refreshed).to.be(0);\n expect(slot2._options.fetched).to.be(false);\n service.refresh([slot2]);\n expect(slot1._options.refreshed).to.be(0);\n expect(slot1._options.fetched).to.be(false);\n expect(slot2._options.refreshed).to.be(1);\n expect(slot2._options.fetched).to.be(true);\n service.refresh([slot2]);\n expect(slot1._options.refreshed).to.be(0);\n expect(slot1._options.fetched).to.be(false);\n expect(slot2._options.refreshed).to.be(2);\n expect(slot2._options.fetched).to.be(true);\n service.refresh([slot1]);\n expect(slot1._options.refreshed).to.be(1);\n expect(slot1._options.fetched).to.be(true);\n expect(slot2._options.refreshed).to.be(2);\n expect(slot2._options.fetched).to.be(true);\n });\n });\n\n /** @test {PubAdsService#clear} */\n describe('#clear', () => {\n const content = 'TEST CONTENT';\n\n it('returns true if no slots registered', () => {\n const service = new PubAdsService(gt);\n expect(service.clear()).to.be(true);\n });\n\n it('returns true if slots registered and clearing all', () => {\n const service = new PubAdsService(gt);\n const slot = service.definePassback(adUnitPath, size);\n slot._setContent(content);\n expect(slot._getContent()).to.be(content);\n expect(service.clear()).to.be(true);\n expect(slot._getContent()).to.be(null);\n });\n\n it('returns true if slots registered and clearing existing', () => {\n const service = new PubAdsService(gt);\n const slot = service.definePassback(adUnitPath, size);\n slot._setContent(content);\n expect(slot._getContent()).to.be(content);\n expect(service.clear([slot])).to.be(true);\n expect(slot._getContent()).to.be(null);\n });\n\n it('returns false if slots registered and clearing non-existing', () => {\n const service = new PubAdsService(gt);\n const slot = service.definePassback(adUnitPath, size);\n const unrelatedSlot = new Slot(adUnitPath, size);\n slot._setContent(content);\n expect(slot._getContent()).to.be(content);\n expect(service.clear([unrelatedSlot])).to.be(false);\n expect(slot._getContent()).to.be(content);\n });\n\n it('clears only specified', () => {\n const service = new PubAdsService(gt);\n const slot1 = service.definePassback(adUnitPath, size);\n const slot2 = service.definePassback(adUnitPath, size);\n slot1._setContent(content);\n slot2._setContent(content);\n expect(slot1._getContent()).to.be(content);\n expect(slot2._getContent()).to.be(content);\n expect(service.clear([slot2])).to.be(true);\n expect(slot1._getContent()).to.be(content);\n expect(slot2._getContent()).to.be(null);\n\n });\n });\n\n /** @test {PubAdsService#defineOutOfPagePassback} */\n describe('#defineOutOfPagePassback', () => {\n it('returns the null if no adUnitPath', () => {\n const service = new PubAdsService(gt);\n expect(service.defineOutOfPagePassback()).to.be(null);\n });\n\n it('returns slot if adUnitPath provided', () => {\n const service = new PubAdsService(gt);\n const slot = service.defineOutOfPagePassback(adUnitPath);\n expect(slot).to.be.ok();\n expect(slot.getAdUnitPath()).to.be(adUnitPath);\n expect(slot._passback).to.be(true);\n expect(slot._outOfPage).to.be(true);\n });\n });\n\n /** @test {PubAdsService#definePassback} */\n describe('#definePassback', () => {\n it('returns the null if no adUnitPath', () => {\n const service = new PubAdsService(gt);\n expect(service.definePassback()).to.be(null);\n });\n\n it('returns the null if no size', () => {\n const service = new PubAdsService(gt);\n expect(service.definePassback(adUnitPath)).to.be(null);\n });\n\n it('returns slot if adUnitPath and size provided', () => {\n const service = new PubAdsService(gt);\n const slot = service.definePassback(adUnitPath, size);\n expect(slot).to.be.ok();\n expect(slot.getAdUnitPath()).to.be(adUnitPath);\n expect(slot.getSizes()).to.be.an('array');\n expect(slot.getSizes()).to.have.length(1);\n expect(slot.getSizes()[0].getWidth()).to.be(size[0]);\n expect(slot.getSizes()[0].getHeight()).to.be(size[1]);\n expect(slot._passback).to.be(true);\n });\n });\n\n /** @test {PubAdsService#disableInitialLoad} */\n describe('#disableInitialLoad', () => {\n it('returns undefined', () => {\n const service = new PubAdsService(gt);\n expect(service.disableInitialLoad()).to.be(undefined);\n });\n\n it('sets the initialLoad flag', () => {\n const service = new PubAdsService(gt);\n expect(service._options.initialLoad).to.be(true);\n service.disableInitialLoad();\n expect(service._options.initialLoad).to.be(false);\n });\n });\n\n /** @test {PubAdsService#enableAsyncRendering} */\n describe('#enableAsyncRendering', () => {\n it('returns true if not enabled', () => {\n const service = new PubAdsService(gt);\n expect(service.enableAsyncRendering()).to.be(true);\n });\n\n it('returns false if enabled', () => {\n const service = new PubAdsService(gt);\n service.enable();\n expect(service.enableAsyncRendering()).to.be(false);\n });\n\n it('sets the asyncRendering flag', () => {\n const service = new PubAdsService(gt);\n expect(service._options.asyncRendering).to.be(false);\n service.enableAsyncRendering();\n expect(service._options.asyncRendering).to.be(true);\n });\n });\n\n /** @test {PubAdsService#enableSingleRequest} */\n describe('#enableSingleRequest', () => {\n it('returns true if not enabled', () => {\n const service = new PubAdsService(gt);\n expect(service.enableSingleRequest()).to.be(true);\n });\n\n it('returns false if enabled', () => {\n const service = new PubAdsService(gt);\n service.enable();\n expect(service.enableSingleRequest()).to.be(false);\n });\n\n it('sets the asyncRendering flag', () => {\n const service = new PubAdsService(gt);\n expect(service._options.singleRequest).to.be(false);\n service.enableSingleRequest();\n expect(service._options.singleRequest).to.be(true);\n });\n });\n\n /** @test {PubAdsService#enableSyncRendering} */\n describe('#enableSyncRendering', () => {\n it('returns true if not enabled', () => {\n const service = new PubAdsService(gt);\n expect(service.enableSyncRendering()).to.be(true);\n });\n\n it('returns false if enabled', () => {\n const service = new PubAdsService(gt);\n service.enable();\n expect(service.enableSyncRendering()).to.be(false);\n });\n\n it('sets the syncRendering flag', () => {\n const service = new PubAdsService(gt);\n expect(service._options.syncRendering).to.be(false);\n service.enableSyncRendering();\n expect(service._options.syncRendering).to.be(true);\n });\n });\n\n /** @test {PubAdsService#enableVideoAds} */\n describe('#enableVideoAds', () => {\n it('returns undefined', () => {\n const service = new PubAdsService(gt);\n expect(service.enableVideoAds()).to.be(undefined);\n });\n\n it('sets the videoAds flag', () => {\n const service = new PubAdsService(gt);\n expect(service._options.videoAds).to.be(false);\n service.enableVideoAds();\n expect(service._options.videoAds).to.be(true);\n });\n });\n\n /** @test {PubAdsService#setTargeting} */\n describe('#setTargeting', () => {\n it('returns the service', () => {\n const service = new PubAdsService(gt);\n expect(service.setTargeting('kv1', 'value1')).to.be(service);\n });\n\n it('saves value as array if given a single value', () => {\n const service = new PubAdsService(gt);\n service.setTargeting('kv1', 'value1');\n expect(service.getTargeting('kv1')).to.eql(['value1']);\n });\n\n it('saves value as array if given an array value', () => {\n const service = new PubAdsService(gt);\n service.setTargeting('kv1', ['value1', 'value2']);\n expect(service.getTargeting('kv1')).to.eql(['value1', 'value2']);\n });\n });\n\n /** @test {PubAdsService#getTargeting} */\n describe('#getTargeting', () => {\n it('returns empty array if no value', () => {\n const service = new PubAdsService(gt);\n expect(service.getTargeting('kv1')).to.be.an('array');\n expect(service.getTargeting('kv1')).to.be.empty();\n });\n\n it('returns value as an array', () => {\n const service = new PubAdsService(gt);\n service.setTargeting('kv1', 'value1');\n expect(service.getTargeting('kv1')).to.be.an('array');\n expect(service.getTargeting('kv1')).to.eql(['value1']);\n });\n });\n\n /** @test {PubAdsService#getTargetingKeys} */\n describe('#getTargetingKeys', () => {\n it('returns empty array if no targeting', () => {\n const service = new PubAdsService(gt);\n expect(service.getTargetingKeys()).to.be.an('array');\n expect(service.getTargetingKeys()).to.be.empty();\n });\n\n it('returns array of keys', () => {\n const service = new PubAdsService(gt);\n service.setTargeting('kv1', 'value1');\n expect(service.getTargetingKeys()).to.be.an('array');\n expect(service.getTargetingKeys()).to.eql(['kv1']);\n });\n });\n\n /** @test {PubAdsService#clearTargeting} */\n describe('#clearTargeting', () => {\n it('returns the service', () => {\n const service = new PubAdsService(gt);\n expect(service.clearTargeting('kv1')).to.be(service);\n });\n\n it('clears targeting', () => {\n const service = new PubAdsService(gt);\n service.setTargeting('kv1', 'value1');\n expect(service.getTargetingKeys()).to.be.an('array');\n expect(service.getTargetingKeys()).to.eql(['kv1']);\n service.clearTargeting('kv1');\n expect(service.getTargetingKeys()).to.be.an('array');\n expect(service.getTargetingKeys()).to.empty();\n });\n });\n\n /** @test {PubAdsService#collapseEmptyDivs} */\n describe('#collapseEmptyDivs', () => {\n it('returns true if not enabled', () => {\n const service = new PubAdsService(gt);\n expect(service.collapseEmptyDivs()).to.be(true);\n });\n\n it('returns false if enabled', () => {\n const service = new PubAdsService(gt);\n service.enable();\n expect(service.collapseEmptyDivs()).to.be(false);\n });\n\n it('sets the collapseEmptyDivs flag', () => {\n const service = new PubAdsService(gt);\n expect(service._options.collapseEmptyDivs).to.be(false);\n service.collapseEmptyDivs();\n expect(service._options.collapseEmptyDivs).to.be(true);\n });\n\n it('sets the collapseBeforeAdFetch flag', () => {\n const service = new PubAdsService(gt);\n expect(service._options.collapseBeforeAdFetch).to.be(false);\n service.collapseEmptyDivs(true);\n expect(service._options.collapseBeforeAdFetch).to.be(true);\n });\n });\n\n /** @test {PubAdsService#setCategoryExclusion} */\n describe('#setCategoryExclusion', () => {\n it('returns the service', () => {\n const service = new PubAdsService(gt);\n expect(service.setCategoryExclusion('ex1')).to.be(service);\n });\n\n it('adds an exclusion', () => {\n const service = new PubAdsService(gt);\n expect(service._categoryExclusions).to.be.an('array');\n expect(service._categoryExclusions).to.be.empty();\n service.setCategoryExclusion('ex1');\n expect(service._categoryExclusions).to.be.eql(['ex1']);\n });\n\n it('accumulates exclusions', () => {\n const service = new PubAdsService(gt);\n expect(service._categoryExclusions).to.be.an('array');\n expect(service._categoryExclusions).to.be.empty();\n service.setCategoryExclusion('ex1');\n expect(service._categoryExclusions).to.be.eql(['ex1']);\n service.setCategoryExclusion('ex2');\n expect(service._categoryExclusions).to.be.eql(['ex1', 'ex2']);\n });\n });\n\n /** @test {PubAdsService#clearCategoryExclusions} */\n describe('#clearCategoryExclusions', () => {\n it('returns the service', () => {\n const service = new PubAdsService(gt);\n expect(service.clearCategoryExclusions()).to.be(service);\n });\n\n it('clears the exclusions', () => {\n const service = new PubAdsService(gt);\n expect(service._categoryExclusions).to.be.an('array');\n expect(service._categoryExclusions).to.be.empty();\n service.setCategoryExclusion('ex1');\n expect(service._categoryExclusions).to.be.eql(['ex1']);\n service.setCategoryExclusion('ex2');\n expect(service._categoryExclusions).to.be.eql(['ex1', 'ex2']);\n service.clearCategoryExclusions();\n expect(service._categoryExclusions).to.be.empty();\n });\n });\n\n /** @test {PubAdsService#setCentering} */\n describe('#setCentering', () => {\n it('returns the service', () => {\n const service = new PubAdsService(gt);\n expect(service.setCentering(1)).to.be(undefined);\n });\n\n it('sets the centerAds flag', () => {\n const service = new PubAdsService(gt);\n service.setCentering(1);\n expect(service._options.centerAds).to.be(1);\n });\n });\n\n /** @test {PubAdsService#setCookieOptions} */\n describe('#setCookieOptions', () => {\n it('returns the service', () => {\n const service = new PubAdsService(gt);\n expect(service.setCookieOptions(1)).to.be(service);\n });\n\n it('does something else', () => {\n const service = new PubAdsService(gt);\n expect(service._options.cookieOptions).to.be(null);\n service.setCookieOptions(1);\n expect(service._options.cookieOptions).to.be(1);\n });\n });\n\n /** @test {PubAdsService#setForceSafeFrame} */\n describe('#setForceSafeFrame', () => {\n it('returns the service', () => {\n const service = new PubAdsService(gt);\n expect(service.setForceSafeFrame(true)).to.be(service);\n });\n\n it('does something else', () => {\n const service = new PubAdsService(gt);\n expect(service._options.forceSafeFrame).to.be(false);\n service.setForceSafeFrame(true);\n expect(service._options.forceSafeFrame).to.be(true);\n });\n });\n\n /** @test {PubAdsService#setLocation} */\n describe('#setLocation', () => {\n it('returns the service', () => {\n const service = new PubAdsService(gt);\n expect(service.setLocation(1.0)).to.be(service);\n });\n\n it('saves an address', () => {\n const address = '123 Main Street';\n const service = new PubAdsService(gt);\n service.setLocation(address);\n expect(service._options.address).to.be(address);\n expect(service._options.latitude).to.be(null);\n expect(service._options.longitude).to.be(null);\n expect(service._options.radius).to.be(null);\n });\n\n it('saves an lat/lon', () => {\n const latitude = 40.2524632;\n const longitude = 58.4374557;\n const service = new PubAdsService(gt);\n service.setLocation(latitude, longitude);\n expect(service._options.address).to.be(null);\n expect(service._options.latitude).to.be(latitude);\n expect(service._options.longitude).to.be(longitude);\n expect(service._options.radius).to.be(null);\n });\n\n it('saves an lat/lon with radius', () => {\n const latitude = 40.2524632;\n const longitude = 58.4374557;\n const radius = 100000;\n const service = new PubAdsService(gt);\n service.setLocation(latitude, longitude, radius);\n expect(service._options.address).to.be(null);\n expect(service._options.latitude).to.be(latitude);\n expect(service._options.longitude).to.be(longitude);\n expect(service._options.radius).to.be(radius);\n });\n });\n\n /** @test {PubAdsService#setPublisherProvidedId} */\n describe('#setPublisherProvidedId', () => {\n const ppid = 'ppid_1234567';\n\n it('returns the service', () => {\n const service = new PubAdsService(gt);\n expect(service.setPublisherProvidedId(ppid)).to.be(service);\n });\n\n it('saves the ppid', () => {\n const service = new PubAdsService(gt);\n service.setPublisherProvidedId(ppid);\n expect(service._options.ppid).to.be(ppid);\n });\n });\n\n /** @test {PubAdsService#setSafeFrameConfig} */\n describe('#setSafeFrameConfig', () => {\n it('returns the service', () => {\n const allowOverlayExpansion = true;\n const allowPushExpansion = true;\n const sandbox = true;\n const config = new SafeFrameConfig(allowOverlayExpansion, allowPushExpansion, sandbox);\n const service = new PubAdsService(gt);\n expect(service.setSafeFrameConfig(config)).to.be(service);\n });\n\n it('saves the config', () => {\n const allowOverlayExpansion = true;\n const allowPushExpansion = true;\n const sandbox = true;\n const config = new SafeFrameConfig(allowOverlayExpansion, allowPushExpansion, sandbox);\n const service = new PubAdsService(gt);\n service.setSafeFrameConfig(config);\n expect(service._options.safeFrameConfig).to.eql(config);\n });\n });\n\n /** @test {PubAdsService#setTagForChildDirectedTreatment} */\n describe('#setTagForChildDirectedTreatment', () => {\n it('returns the service', () => {\n const service = new PubAdsService(gt);\n expect(service.setTagForChildDirectedTreatment(1)).to.be(service);\n });\n\n it('does something else', () => {\n const service = new PubAdsService(gt);\n expect(service._options.tagForChildDirectedTreatment).to.be(null);\n service.setTagForChildDirectedTreatment(1);\n expect(service._options.tagForChildDirectedTreatment).to.be(1);\n });\n });\n\n /** @test {PubAdsService#clearTagForChildDirectedTreatment} */\n describe('#clearTagForChildDirectedTreatment', () => {\n it('returns the service', () => {\n const service = new PubAdsService(gt);\n expect(service.clearTagForChildDirectedTreatment()).to.be(service);\n });\n\n it('does something else', () => {\n const service = new PubAdsService(gt);\n expect(service._options.tagForChildDirectedTreatment).to.be(null);\n service.setTagForChildDirectedTreatment(1);\n expect(service._options.tagForChildDirectedTreatment).to.be(1);\n service.clearTagForChildDirectedTreatment();\n expect(service._options.tagForChildDirectedTreatment).to.be(null);\n });\n });\n\n /** @test {PubAdsService#setVideoContent} */\n describe('#setVideoContent', () => {\n const videoContentId = 'CONTENTID';\n const videoCmsId = 'CMSID';\n it('returns undefined', () => {\n const service = new PubAdsService(gt);\n expect(service.setVideoContent(videoContentId, videoCmsId)).to.be(undefined);\n });\n\n it('saves the ID\\'s', () => {\n const service = new PubAdsService(gt);\n service.setVideoContent(videoContentId, videoCmsId);\n expect(service._options.videoContentId).to.be(videoContentId);\n expect(service._options.videoCmsId).to.be(videoCmsId);\n });\n });\n\n /** @test {PubAdsService#updateCorrelator} */\n describe('#updateCorrelator', () => {\n it('returns the service', () => {\n const service = new PubAdsService(gt);\n expect(service.updateCorrelator()).to.be(service);\n });\n });\n\n});\n" }, { - "__docId__": 480, + "__docId__": 490, "kind": "testDescribe", "static": true, "variation": null, @@ -10265,7 +10522,7 @@ ] }, { - "__docId__": 481, + "__docId__": 491, "kind": "testDescribe", "static": true, "variation": null, @@ -10288,7 +10545,7 @@ ] }, { - "__docId__": 482, + "__docId__": 492, "kind": "testIt", "static": true, "variation": null, @@ -10302,7 +10559,7 @@ "lineNumber": 14 }, { - "__docId__": 483, + "__docId__": 493, "kind": "testDescribe", "static": true, "variation": null, @@ -10325,7 +10582,7 @@ ] }, { - "__docId__": 484, + "__docId__": 494, "kind": "testIt", "static": true, "variation": null, @@ -10339,7 +10596,7 @@ "lineNumber": 22 }, { - "__docId__": 485, + "__docId__": 495, "kind": "testIt", "static": true, "variation": null, @@ -10353,7 +10610,7 @@ "lineNumber": 27 }, { - "__docId__": 486, + "__docId__": 496, "kind": "testDescribe", "static": true, "variation": null, @@ -10376,7 +10633,7 @@ ] }, { - "__docId__": 487, + "__docId__": 497, "kind": "testIt", "static": true, "variation": null, @@ -10390,7 +10647,7 @@ "lineNumber": 38 }, { - "__docId__": 488, + "__docId__": 498, "kind": "testIt", "static": true, "variation": null, @@ -10404,7 +10661,7 @@ "lineNumber": 45 }, { - "__docId__": 489, + "__docId__": 499, "kind": "testIt", "static": true, "variation": null, @@ -10418,7 +10675,7 @@ "lineNumber": 52 }, { - "__docId__": 490, + "__docId__": 500, "kind": "testIt", "static": true, "variation": null, @@ -10432,7 +10689,7 @@ "lineNumber": 65 }, { - "__docId__": 491, + "__docId__": 501, "kind": "testDescribe", "static": true, "variation": null, @@ -10455,7 +10712,7 @@ ] }, { - "__docId__": 492, + "__docId__": 502, "kind": "testIt", "static": true, "variation": null, @@ -10469,7 +10726,7 @@ "lineNumber": 95 }, { - "__docId__": 493, + "__docId__": 503, "kind": "testIt", "static": true, "variation": null, @@ -10483,7 +10740,7 @@ "lineNumber": 100 }, { - "__docId__": 494, + "__docId__": 504, "kind": "testIt", "static": true, "variation": null, @@ -10497,7 +10754,7 @@ "lineNumber": 109 }, { - "__docId__": 495, + "__docId__": 505, "kind": "testIt", "static": true, "variation": null, @@ -10511,7 +10768,7 @@ "lineNumber": 118 }, { - "__docId__": 496, + "__docId__": 506, "kind": "testIt", "static": true, "variation": null, @@ -10525,7 +10782,7 @@ "lineNumber": 128 }, { - "__docId__": 497, + "__docId__": 507, "kind": "testDescribe", "static": true, "variation": null, @@ -10548,7 +10805,7 @@ ] }, { - "__docId__": 498, + "__docId__": 508, "kind": "testIt", "static": true, "variation": null, @@ -10562,7 +10819,7 @@ "lineNumber": 145 }, { - "__docId__": 499, + "__docId__": 509, "kind": "testIt", "static": true, "variation": null, @@ -10576,7 +10833,7 @@ "lineNumber": 150 }, { - "__docId__": 500, + "__docId__": 510, "kind": "testDescribe", "static": true, "variation": null, @@ -10599,7 +10856,7 @@ ] }, { - "__docId__": 501, + "__docId__": 511, "kind": "testIt", "static": true, "variation": null, @@ -10613,7 +10870,7 @@ "lineNumber": 162 }, { - "__docId__": 502, + "__docId__": 512, "kind": "testIt", "static": true, "variation": null, @@ -10627,7 +10884,7 @@ "lineNumber": 167 }, { - "__docId__": 503, + "__docId__": 513, "kind": "testIt", "static": true, "variation": null, @@ -10641,7 +10898,7 @@ "lineNumber": 172 }, { - "__docId__": 504, + "__docId__": 514, "kind": "testDescribe", "static": true, "variation": null, @@ -10664,7 +10921,7 @@ ] }, { - "__docId__": 505, + "__docId__": 515, "kind": "testIt", "static": true, "variation": null, @@ -10678,7 +10935,7 @@ "lineNumber": 187 }, { - "__docId__": 506, + "__docId__": 516, "kind": "testIt", "static": true, "variation": null, @@ -10692,7 +10949,7 @@ "lineNumber": 192 }, { - "__docId__": 507, + "__docId__": 517, "kind": "testDescribe", "static": true, "variation": null, @@ -10715,7 +10972,7 @@ ] }, { - "__docId__": 508, + "__docId__": 518, "kind": "testIt", "static": true, "variation": null, @@ -10729,7 +10986,7 @@ "lineNumber": 202 }, { - "__docId__": 509, + "__docId__": 519, "kind": "testIt", "static": true, "variation": null, @@ -10743,7 +11000,7 @@ "lineNumber": 207 }, { - "__docId__": 510, + "__docId__": 520, "kind": "testIt", "static": true, "variation": null, @@ -10757,7 +11014,7 @@ "lineNumber": 213 }, { - "__docId__": 511, + "__docId__": 521, "kind": "testDescribe", "static": true, "variation": null, @@ -10780,7 +11037,7 @@ ] }, { - "__docId__": 512, + "__docId__": 522, "kind": "testIt", "static": true, "variation": null, @@ -10794,7 +11051,7 @@ "lineNumber": 223 }, { - "__docId__": 513, + "__docId__": 523, "kind": "testIt", "static": true, "variation": null, @@ -10808,7 +11065,7 @@ "lineNumber": 228 }, { - "__docId__": 514, + "__docId__": 524, "kind": "testIt", "static": true, "variation": null, @@ -10822,7 +11079,7 @@ "lineNumber": 234 }, { - "__docId__": 515, + "__docId__": 525, "kind": "testDescribe", "static": true, "variation": null, @@ -10845,7 +11102,7 @@ ] }, { - "__docId__": 516, + "__docId__": 526, "kind": "testIt", "static": true, "variation": null, @@ -10859,7 +11116,7 @@ "lineNumber": 244 }, { - "__docId__": 517, + "__docId__": 527, "kind": "testIt", "static": true, "variation": null, @@ -10873,7 +11130,7 @@ "lineNumber": 249 }, { - "__docId__": 518, + "__docId__": 528, "kind": "testIt", "static": true, "variation": null, @@ -10887,7 +11144,7 @@ "lineNumber": 255 }, { - "__docId__": 519, + "__docId__": 529, "kind": "testDescribe", "static": true, "variation": null, @@ -10910,7 +11167,7 @@ ] }, { - "__docId__": 520, + "__docId__": 530, "kind": "testIt", "static": true, "variation": null, @@ -10924,7 +11181,7 @@ "lineNumber": 265 }, { - "__docId__": 521, + "__docId__": 531, "kind": "testIt", "static": true, "variation": null, @@ -10938,7 +11195,7 @@ "lineNumber": 270 }, { - "__docId__": 522, + "__docId__": 532, "kind": "testDescribe", "static": true, "variation": null, @@ -10961,7 +11218,7 @@ ] }, { - "__docId__": 523, + "__docId__": 533, "kind": "testIt", "static": true, "variation": null, @@ -10975,7 +11232,7 @@ "lineNumber": 280 }, { - "__docId__": 524, + "__docId__": 534, "kind": "testIt", "static": true, "variation": null, @@ -10989,7 +11246,7 @@ "lineNumber": 285 }, { - "__docId__": 525, + "__docId__": 535, "kind": "testIt", "static": true, "variation": null, @@ -11003,7 +11260,7 @@ "lineNumber": 291 }, { - "__docId__": 526, + "__docId__": 536, "kind": "testDescribe", "static": true, "variation": null, @@ -11026,7 +11283,7 @@ ] }, { - "__docId__": 527, + "__docId__": 537, "kind": "testIt", "static": true, "variation": null, @@ -11040,7 +11297,7 @@ "lineNumber": 300 }, { - "__docId__": 528, + "__docId__": 538, "kind": "testIt", "static": true, "variation": null, @@ -11054,7 +11311,7 @@ "lineNumber": 306 }, { - "__docId__": 529, + "__docId__": 539, "kind": "testDescribe", "static": true, "variation": null, @@ -11077,7 +11334,7 @@ ] }, { - "__docId__": 530, + "__docId__": 540, "kind": "testIt", "static": true, "variation": null, @@ -11091,7 +11348,7 @@ "lineNumber": 316 }, { - "__docId__": 531, + "__docId__": 541, "kind": "testIt", "static": true, "variation": null, @@ -11105,7 +11362,7 @@ "lineNumber": 322 }, { - "__docId__": 532, + "__docId__": 542, "kind": "testDescribe", "static": true, "variation": null, @@ -11128,7 +11385,7 @@ ] }, { - "__docId__": 533, + "__docId__": 543, "kind": "testIt", "static": true, "variation": null, @@ -11142,7 +11399,7 @@ "lineNumber": 332 }, { - "__docId__": 534, + "__docId__": 544, "kind": "testIt", "static": true, "variation": null, @@ -11156,7 +11413,7 @@ "lineNumber": 337 }, { - "__docId__": 535, + "__docId__": 545, "kind": "testDescribe", "static": true, "variation": null, @@ -11179,7 +11436,7 @@ ] }, { - "__docId__": 536, + "__docId__": 546, "kind": "testIt", "static": true, "variation": null, @@ -11193,7 +11450,7 @@ "lineNumber": 350 }, { - "__docId__": 537, + "__docId__": 547, "kind": "testIt", "static": true, "variation": null, @@ -11207,7 +11464,7 @@ "lineNumber": 355 }, { - "__docId__": 538, + "__docId__": 548, "kind": "testIt", "static": true, "variation": null, @@ -11221,7 +11478,7 @@ "lineNumber": 361 }, { - "__docId__": 539, + "__docId__": 549, "kind": "testIt", "static": true, "variation": null, @@ -11235,7 +11492,7 @@ "lineNumber": 368 }, { - "__docId__": 540, + "__docId__": 550, "kind": "testDescribe", "static": true, "variation": null, @@ -11258,7 +11515,7 @@ ] }, { - "__docId__": 541, + "__docId__": 551, "kind": "testIt", "static": true, "variation": null, @@ -11272,7 +11529,7 @@ "lineNumber": 378 }, { - "__docId__": 542, + "__docId__": 552, "kind": "testIt", "static": true, "variation": null, @@ -11286,7 +11543,7 @@ "lineNumber": 383 }, { - "__docId__": 543, + "__docId__": 553, "kind": "testIt", "static": true, "variation": null, @@ -11300,7 +11557,7 @@ "lineNumber": 391 }, { - "__docId__": 544, + "__docId__": 554, "kind": "testDescribe", "static": true, "variation": null, @@ -11323,7 +11580,7 @@ ] }, { - "__docId__": 545, + "__docId__": 555, "kind": "testIt", "static": true, "variation": null, @@ -11337,7 +11594,7 @@ "lineNumber": 404 }, { - "__docId__": 546, + "__docId__": 556, "kind": "testIt", "static": true, "variation": null, @@ -11351,7 +11608,7 @@ "lineNumber": 409 }, { - "__docId__": 547, + "__docId__": 557, "kind": "testDescribe", "static": true, "variation": null, @@ -11374,7 +11631,7 @@ ] }, { - "__docId__": 548, + "__docId__": 558, "kind": "testIt", "static": true, "variation": null, @@ -11388,7 +11645,7 @@ "lineNumber": 424 }, { - "__docId__": 549, + "__docId__": 559, "kind": "testIt", "static": true, "variation": null, @@ -11402,7 +11659,7 @@ "lineNumber": 429 }, { - "__docId__": 550, + "__docId__": 560, "kind": "testDescribe", "static": true, "variation": null, @@ -11425,7 +11682,7 @@ ] }, { - "__docId__": 551, + "__docId__": 561, "kind": "testIt", "static": true, "variation": null, @@ -11439,7 +11696,7 @@ "lineNumber": 438 }, { - "__docId__": 552, + "__docId__": 562, "kind": "testIt", "static": true, "variation": null, @@ -11453,7 +11710,7 @@ "lineNumber": 443 }, { - "__docId__": 553, + "__docId__": 563, "kind": "testDescribe", "static": true, "variation": null, @@ -11476,7 +11733,7 @@ ] }, { - "__docId__": 554, + "__docId__": 564, "kind": "testIt", "static": true, "variation": null, @@ -11490,7 +11747,7 @@ "lineNumber": 453 }, { - "__docId__": 555, + "__docId__": 565, "kind": "testIt", "static": true, "variation": null, @@ -11504,7 +11761,7 @@ "lineNumber": 458 }, { - "__docId__": 556, + "__docId__": 566, "kind": "testDescribe", "static": true, "variation": null, @@ -11527,7 +11784,7 @@ ] }, { - "__docId__": 557, + "__docId__": 567, "kind": "testIt", "static": true, "variation": null, @@ -11541,7 +11798,7 @@ "lineNumber": 468 }, { - "__docId__": 558, + "__docId__": 568, "kind": "testIt", "static": true, "variation": null, @@ -11555,7 +11812,7 @@ "lineNumber": 473 }, { - "__docId__": 559, + "__docId__": 569, "kind": "testIt", "static": true, "variation": null, @@ -11569,7 +11826,7 @@ "lineNumber": 483 }, { - "__docId__": 560, + "__docId__": 570, "kind": "testIt", "static": true, "variation": null, @@ -11583,7 +11840,7 @@ "lineNumber": 494 }, { - "__docId__": 561, + "__docId__": 571, "kind": "testDescribe", "static": true, "variation": null, @@ -11606,7 +11863,7 @@ ] }, { - "__docId__": 562, + "__docId__": 572, "kind": "testIt", "static": true, "variation": null, @@ -11620,7 +11877,7 @@ "lineNumber": 511 }, { - "__docId__": 563, + "__docId__": 573, "kind": "testIt", "static": true, "variation": null, @@ -11634,7 +11891,7 @@ "lineNumber": 516 }, { - "__docId__": 564, + "__docId__": 574, "kind": "testDescribe", "static": true, "variation": null, @@ -11657,7 +11914,7 @@ ] }, { - "__docId__": 565, + "__docId__": 575, "kind": "testIt", "static": true, "variation": null, @@ -11671,7 +11928,7 @@ "lineNumber": 525 }, { - "__docId__": 566, + "__docId__": 576, "kind": "testIt", "static": true, "variation": null, @@ -11685,7 +11942,7 @@ "lineNumber": 534 }, { - "__docId__": 567, + "__docId__": 577, "kind": "testDescribe", "static": true, "variation": null, @@ -11708,7 +11965,7 @@ ] }, { - "__docId__": 568, + "__docId__": 578, "kind": "testIt", "static": true, "variation": null, @@ -11722,7 +11979,7 @@ "lineNumber": 547 }, { - "__docId__": 569, + "__docId__": 579, "kind": "testIt", "static": true, "variation": null, @@ -11736,7 +11993,7 @@ "lineNumber": 552 }, { - "__docId__": 570, + "__docId__": 580, "kind": "testDescribe", "static": true, "variation": null, @@ -11759,7 +12016,7 @@ ] }, { - "__docId__": 571, + "__docId__": 581, "kind": "testIt", "static": true, "variation": null, @@ -11773,7 +12030,7 @@ "lineNumber": 562 }, { - "__docId__": 572, + "__docId__": 582, "kind": "testIt", "static": true, "variation": null, @@ -11787,7 +12044,7 @@ "lineNumber": 567 }, { - "__docId__": 573, + "__docId__": 583, "kind": "testDescribe", "static": true, "variation": null, @@ -11810,7 +12067,7 @@ ] }, { - "__docId__": 574, + "__docId__": 584, "kind": "testIt", "static": true, "variation": null, @@ -11824,7 +12081,7 @@ "lineNumber": 581 }, { - "__docId__": 575, + "__docId__": 585, "kind": "testIt", "static": true, "variation": null, @@ -11838,7 +12095,7 @@ "lineNumber": 586 }, { - "__docId__": 576, + "__docId__": 586, "kind": "testDescribe", "static": true, "variation": null, @@ -11861,7 +12118,7 @@ ] }, { - "__docId__": 577, + "__docId__": 587, "kind": "testIt", "static": true, "variation": null, @@ -11875,7 +12132,7 @@ "lineNumber": 596 }, { - "__docId__": 578, + "__docId__": 588, "kind": "testFile", "static": true, "variation": null, @@ -11888,7 +12145,7 @@ "content": "import ResponseInformation from '../../src/ResponseInformation';\n\n/** @test {ResponseInformation} */\ndescribe('ResponseInformation', () => {\n /** @test {ResponseInformation#constructor} */\n describe('#constructor', () => {\n it('constructs and properties are readonly', () => {\n const advertiserId = 'adv';\n const campaignId = 'camp';\n const lineItemId = 123;\n const creativeId = 456;\n const labelIds = ['label1', 'label2'];\n const info = new ResponseInformation(advertiserId, campaignId, lineItemId,\n creativeId, labelIds);\n expect(info).to.be.ok();\n expect(info).to.have.property('advertiserId', advertiserId);\n expect(info).to.have.property('campaignId', campaignId);\n expect(info).to.have.property('lineItemId', lineItemId);\n expect(info).to.have.property('creativeId', creativeId);\n expect(info).to.have.property('labelIds', labelIds);\n\n expect(() => { info.advertiserId = 'cannot'; }).to.throwError();\n expect(() => { info.campaignId = 'cannot'; }).to.throwError();\n expect(() => { info.lineItemId = 0; }).to.throwError();\n expect(() => { info.creativeId = 0; }).to.throwError();\n expect(() => { info.labelIds = []; }).to.throwError();\n });\n });\n});\n" }, { - "__docId__": 579, + "__docId__": 589, "kind": "testDescribe", "static": true, "variation": null, @@ -11911,7 +12168,7 @@ ] }, { - "__docId__": 580, + "__docId__": 590, "kind": "testDescribe", "static": true, "variation": null, @@ -11934,7 +12191,7 @@ ] }, { - "__docId__": 581, + "__docId__": 591, "kind": "testIt", "static": true, "variation": null, @@ -11948,7 +12205,7 @@ "lineNumber": 7 }, { - "__docId__": 582, + "__docId__": 592, "kind": "testFile", "static": true, "variation": null, @@ -11961,7 +12218,7 @@ "content": "import SafeFrameConfig from '../../src/SafeFrameConfig';\n\n/** @test {SafeFrameConfig} */\ndescribe('SafeFrameConfig', () => {\n /** @test {SafeFrameConfig#constructor} */\n describe('#constructor', () => {\n it('constructs and sets readonly properties', () => {\n const allowOverlayExpansion = true;\n const allowPushExpansion = true;\n const sandbox = true;\n const config = new SafeFrameConfig(allowOverlayExpansion, allowPushExpansion, sandbox);\n expect(config).to.be.ok();\n expect(config).to.have.property('allowOverlayExpansion', allowOverlayExpansion);\n expect(config).to.have.property('allowPushExpansion', allowPushExpansion);\n expect(config).to.have.property('sandbox', sandbox);\n expect(() => { config.allowOverlayExpansion = false; }).to.throwError();\n expect(() => { config.allowPushExpansion = false; }).to.throwError();\n expect(() => { config.sandbox = false; }).to.throwError();\n });\n });\n});\n" }, { - "__docId__": 583, + "__docId__": 593, "kind": "testDescribe", "static": true, "variation": null, @@ -11984,7 +12241,7 @@ ] }, { - "__docId__": 584, + "__docId__": 594, "kind": "testDescribe", "static": true, "variation": null, @@ -12007,7 +12264,7 @@ ] }, { - "__docId__": 585, + "__docId__": 595, "kind": "testIt", "static": true, "variation": null, @@ -12021,7 +12278,7 @@ "lineNumber": 7 }, { - "__docId__": 586, + "__docId__": 596, "kind": "testFile", "static": true, "variation": null, @@ -12034,7 +12291,7 @@ "content": "import Service from '../../src/Service';\nimport GPT from '../../src/GPT';\nimport Slot from '../../src/Slot';\n\n/** @test {Service} */\ndescribe('Service', () => {\n const gpt = new GPT();\n const name = 'something';\n const adUnitPath = '/Test/123';\n const size = [728, 90];\n const eventType = 'some.event';\n\n /** @test {Service#constructor} */\n describe('#constructor', () => {\n it('constructs', () => {\n const service = new Service(gpt, name);\n expect(service).to.be.ok();\n expect(service).to.have.property('_gpt', gpt);\n expect(service).to.have.property('_name', name);\n });\n });\n\n /** @test {Service#getName} */\n describe('#getName', () => {\n it('returns the name', () => {\n const service = new Service(gpt, name);\n expect(service.getName()).to.be(name);\n });\n });\n\n /** @test {Service#getVersion} */\n describe('#getVersion', () => {\n it('returns \"unversioned\"', () => {\n const service = new Service(gpt, name);\n expect(service.getVersion()).to.be('unversioned');\n });\n });\n\n /** @test {Service#getSlots} */\n describe('#getSlots', () => {\n it('returns empty array if no slots', () => {\n const service = new Service(gpt, name);\n expect(service.getSlots()).to.be.an('array');\n expect(service.getSlots()).to.be.empty();\n });\n\n it('return array of slots where this service is enabled', () => {\n const service = new Service(gpt, name);\n const slot1 = new Slot(adUnitPath, size).addService(service);\n const slot2 = new Slot(adUnitPath, size).addService(service);\n expect(service.getSlots()).to.be.an('array');\n expect(service.getSlots()).to.eql([slot1, slot2]);\n });\n });\n\n /** @test {Service#getSlotIdMap} */\n describe('#getSlotIdMap', () => {\n it('returns empty dictionary if no slots', () => {\n const service = new Service(gpt, name);\n expect(service.getSlotIdMap()).to.be.empty();\n });\n\n it('returns dictionary mapping keys to slots', () => {\n const service = new Service(gpt, name);\n const slot1 = new Slot(adUnitPath, size).addService(service);\n const slot2 = new Slot(adUnitPath, size).addService(service);\n expect(service.getSlotIdMap()).to.be.an('object');\n expect(service.getSlotIdMap()).to.be.eql({\n [`${adUnitPath}_1`]: slot1,\n [`${adUnitPath}_2`]: slot2\n });\n });\n\n it('returns dictionary without mapping keys for removed slots', () => {\n const service = new Service(gpt, name);\n const slot1 = new Slot(adUnitPath, size).addService(service);\n const slot2 = new Slot(adUnitPath, size).addService(service);\n expect(service.getSlotIdMap()).to.be.an('object');\n gpt.destroySlots([slot1]);\n expect(service.getSlotIdMap()).to.be.eql({\n [`${adUnitPath}_2`]: slot2\n });\n });\n });\n\n /** @test {Service#addEventListener} */\n describe('#addEventListener', () => {\n it('returns the service', () => {\n const service = new Service(gpt, name);\n const fn = sinon.spy();\n expect(service.addEventListener(eventType, fn)).to.be(service);\n });\n\n it('adds the listener to event listener map', () => {\n const service = new Service(gpt, name);\n const fn = sinon.spy();\n service.addEventListener(eventType, fn);\n expect(service).to.have.property('_listeners');\n expect(service._listeners).to.be.an('object');\n expect(service._listeners).to.have.property(eventType);\n expect(service._listeners[eventType]).to.be.an('array');\n expect(service._listeners[eventType]).to.contain(fn);\n });\n });\n\n /** @test {Service#get} */\n describe('#get', () => {\n it('returns empty map if no attribute', () => {\n const service = new Service(gpt, name);\n expect(service.get('attr1')).to.be(null);\n });\n\n it('attribute value if set', () => {\n const service = new Service(gpt, name);\n service.set('attr1', 'value1');\n expect(service.get('attr1')).to.be('value1');\n });\n });\n\n /** @test {Service#getAttributeKeys} */\n describe('#getAttributeKeys', () => {\n it('returns empty array if no attributes', () => {\n const service = new Service(gpt, name);\n expect(service.getAttributeKeys()).to.be.an('array');\n expect(service.getAttributeKeys()).to.be.empty();\n });\n\n it('returns array with with attribute keys', () => {\n const service = new Service(gpt, name);\n service.set('attr1', 'value1');\n service.set('attr2', 'value2');\n expect(service.getAttributeKeys()).to.be.an('array');\n expect(service.getAttributeKeys()).to.be.eql(['attr1', 'attr2']);\n });\n });\n\n /** @test {Service#set} */\n describe('#set', () => {\n it('returns the service', () => {\n const service = new Service(gpt, name);\n expect(service.set('attr1', 'value1')).to.be(service);\n });\n\n it('save the attribute value', () => {\n const service = new Service(gpt, name);\n service.set('attr1', 'value1');\n expect(service.get('attr1')).to.be('value1');\n });\n });\n\n /** @test {Service#display} */\n describe('#display', () => {\n it('returns undefined', () => {\n const service = new Service(gpt, name);\n expect(service.display(adUnitPath, size)).to.be(undefined);\n });\n\n it('marks the service as used', () => {\n const service = new Service(gpt, name);\n service.display(adUnitPath, size);\n expect(service._used).to.be(true);\n });\n\n it('enables the service', () => {\n const service = new Service(gpt, name);\n service.display(adUnitPath, size);\n expect(service._enabled).to.be(true);\n });\n\n it('adds a slot', () => {\n const service = new Service(gpt, name);\n service.display(adUnitPath, size);\n expect(service._slots).to.be.an('array');\n expect(service._slots[0].getAdUnitPath()).to.be(adUnitPath);\n });\n });\n\n /** @test {Service#enable} */\n describe('#enable', () => {\n it('set enabled flag', () => {\n const service = new Service(gpt, name);\n service.enable();\n expect(service._enabled).to.be(true);\n });\n });\n\n /** @test {Service#_fireEvent} */\n describe('#_fireEvent', () => {\n it('calls all listeners', () => {\n const service = new Service(gpt, name);\n const fn1 = sinon.spy();\n const fn2 = sinon.spy();\n const eventObject = {name: eventType};\n service.addEventListener(eventType, fn1);\n service.addEventListener(eventType, fn2);\n service._fireEvent(eventType, eventObject);\n expect(fn1.calledWith(eventObject)).to.be(true);\n expect(fn2.calledWith(eventObject)).to.be(true);\n });\n });\n\n});\n" }, { - "__docId__": 587, + "__docId__": 597, "kind": "testDescribe", "static": true, "variation": null, @@ -12057,7 +12314,7 @@ ] }, { - "__docId__": 588, + "__docId__": 598, "kind": "testDescribe", "static": true, "variation": null, @@ -12080,7 +12337,7 @@ ] }, { - "__docId__": 589, + "__docId__": 599, "kind": "testIt", "static": true, "variation": null, @@ -12094,7 +12351,7 @@ "lineNumber": 15 }, { - "__docId__": 590, + "__docId__": 600, "kind": "testDescribe", "static": true, "variation": null, @@ -12117,7 +12374,7 @@ ] }, { - "__docId__": 591, + "__docId__": 601, "kind": "testIt", "static": true, "variation": null, @@ -12131,7 +12388,7 @@ "lineNumber": 25 }, { - "__docId__": 592, + "__docId__": 602, "kind": "testDescribe", "static": true, "variation": null, @@ -12154,7 +12411,7 @@ ] }, { - "__docId__": 593, + "__docId__": 603, "kind": "testIt", "static": true, "variation": null, @@ -12168,7 +12425,7 @@ "lineNumber": 33 }, { - "__docId__": 594, + "__docId__": 604, "kind": "testDescribe", "static": true, "variation": null, @@ -12191,7 +12448,7 @@ ] }, { - "__docId__": 595, + "__docId__": 605, "kind": "testIt", "static": true, "variation": null, @@ -12205,7 +12462,7 @@ "lineNumber": 41 }, { - "__docId__": 596, + "__docId__": 606, "kind": "testIt", "static": true, "variation": null, @@ -12219,7 +12476,7 @@ "lineNumber": 47 }, { - "__docId__": 597, + "__docId__": 607, "kind": "testDescribe", "static": true, "variation": null, @@ -12242,7 +12499,7 @@ ] }, { - "__docId__": 598, + "__docId__": 608, "kind": "testIt", "static": true, "variation": null, @@ -12256,7 +12513,7 @@ "lineNumber": 58 }, { - "__docId__": 599, + "__docId__": 609, "kind": "testIt", "static": true, "variation": null, @@ -12270,7 +12527,7 @@ "lineNumber": 63 }, { - "__docId__": 600, + "__docId__": 610, "kind": "testIt", "static": true, "variation": null, @@ -12284,7 +12541,7 @@ "lineNumber": 74 }, { - "__docId__": 601, + "__docId__": 611, "kind": "testDescribe", "static": true, "variation": null, @@ -12307,7 +12564,7 @@ ] }, { - "__docId__": 602, + "__docId__": 612, "kind": "testIt", "static": true, "variation": null, @@ -12321,7 +12578,7 @@ "lineNumber": 88 }, { - "__docId__": 603, + "__docId__": 613, "kind": "testIt", "static": true, "variation": null, @@ -12335,7 +12592,7 @@ "lineNumber": 94 }, { - "__docId__": 604, + "__docId__": 614, "kind": "testDescribe", "static": true, "variation": null, @@ -12358,7 +12615,7 @@ ] }, { - "__docId__": 605, + "__docId__": 615, "kind": "testIt", "static": true, "variation": null, @@ -12372,7 +12629,7 @@ "lineNumber": 108 }, { - "__docId__": 606, + "__docId__": 616, "kind": "testIt", "static": true, "variation": null, @@ -12386,7 +12643,7 @@ "lineNumber": 113 }, { - "__docId__": 607, + "__docId__": 617, "kind": "testDescribe", "static": true, "variation": null, @@ -12409,7 +12666,7 @@ ] }, { - "__docId__": 608, + "__docId__": 618, "kind": "testIt", "static": true, "variation": null, @@ -12423,7 +12680,7 @@ "lineNumber": 122 }, { - "__docId__": 609, + "__docId__": 619, "kind": "testIt", "static": true, "variation": null, @@ -12437,7 +12694,7 @@ "lineNumber": 128 }, { - "__docId__": 610, + "__docId__": 620, "kind": "testDescribe", "static": true, "variation": null, @@ -12460,7 +12717,7 @@ ] }, { - "__docId__": 611, + "__docId__": 621, "kind": "testIt", "static": true, "variation": null, @@ -12474,7 +12731,7 @@ "lineNumber": 139 }, { - "__docId__": 612, + "__docId__": 622, "kind": "testIt", "static": true, "variation": null, @@ -12488,7 +12745,7 @@ "lineNumber": 144 }, { - "__docId__": 613, + "__docId__": 623, "kind": "testDescribe", "static": true, "variation": null, @@ -12511,7 +12768,7 @@ ] }, { - "__docId__": 614, + "__docId__": 624, "kind": "testIt", "static": true, "variation": null, @@ -12525,7 +12782,7 @@ "lineNumber": 153 }, { - "__docId__": 615, + "__docId__": 625, "kind": "testIt", "static": true, "variation": null, @@ -12539,7 +12796,7 @@ "lineNumber": 158 }, { - "__docId__": 616, + "__docId__": 626, "kind": "testIt", "static": true, "variation": null, @@ -12553,7 +12810,7 @@ "lineNumber": 164 }, { - "__docId__": 617, + "__docId__": 627, "kind": "testIt", "static": true, "variation": null, @@ -12567,7 +12824,7 @@ "lineNumber": 170 }, { - "__docId__": 618, + "__docId__": 628, "kind": "testDescribe", "static": true, "variation": null, @@ -12590,7 +12847,7 @@ ] }, { - "__docId__": 619, + "__docId__": 629, "kind": "testIt", "static": true, "variation": null, @@ -12604,7 +12861,7 @@ "lineNumber": 180 }, { - "__docId__": 620, + "__docId__": 630, "kind": "testDescribe", "static": true, "variation": null, @@ -12627,7 +12884,7 @@ ] }, { - "__docId__": 621, + "__docId__": 631, "kind": "testIt", "static": true, "variation": null, @@ -12641,7 +12898,7 @@ "lineNumber": 189 }, { - "__docId__": 622, + "__docId__": 632, "kind": "testFile", "static": true, "variation": null, @@ -12654,7 +12911,7 @@ "content": "import * as SingleSize from '../../src/SingleSize';\nimport Size from '../../src/Size';\n\n/** @test {SingleSize} */\ndescribe('SingleSize', () => {\n const singleSize = [728, 90];\n const multiSize = [[728, 90], [970, 90]];\n\n /** @test {SingleSize#isSingleSize} */\n describe('#isSingleSize', () => {\n it('returns false for null', () => {\n expect(SingleSize.isSingleSize(null)).to.be(false);\n });\n\n it('returns false for undefined', () => {\n expect(SingleSize.isSingleSize(undefined)).to.be(false);\n });\n\n it('returns false for empty array', () => {\n expect(SingleSize.isSingleSize([])).to.be(false);\n });\n\n it('returns true for SingleSize', () => {\n expect(SingleSize.isSingleSize(singleSize)).to.be(true);\n });\n\n it('returns false for MultiSize', () => {\n expect(SingleSize.isSingleSize(multiSize)).to.be(false);\n });\n\n it('returns false for non-\"fluid\" string', () => {\n expect(SingleSize.isSingleSize('overflow')).to.be(false);\n });\n\n it('returns true for \"fluid\" string', () => {\n expect(SingleSize.isSingleSize('fluid')).to.be(true);\n });\n });\n\n /** @test {SingleSize#toSize} */\n describe('#toSize', () => {\n it('returns null for null', () => {\n expect(SingleSize.toSize(null)).to.be(null);\n });\n\n it('returns null for undefined', () => {\n expect(SingleSize.toSize(undefined)).to.be(null);\n });\n\n it('returns null for empty array', () => {\n expect(SingleSize.toSize([])).to.be(null);\n });\n\n it('returns Size for SingleSize', () => {\n expect(SingleSize.toSize(singleSize)).to.eql(new Size(728, 90));\n });\n\n it('returns null for MultiSize', () => {\n expect(SingleSize.toSize(multiSize)).to.be(null);\n });\n\n it('returns null for non-\"fluid\" string', () => {\n expect(SingleSize.toSize('overflow')).to.be(null);\n });\n\n xit('returns UNKNOWN for \"fluid\" string', () => {\n expect(SingleSize.toSize('fluid')).to.be(true);\n });\n });\n});\n" }, { - "__docId__": 623, + "__docId__": 633, "kind": "testDescribe", "static": true, "variation": null, @@ -12677,7 +12934,7 @@ ] }, { - "__docId__": 624, + "__docId__": 634, "kind": "testDescribe", "static": true, "variation": null, @@ -12700,7 +12957,7 @@ ] }, { - "__docId__": 625, + "__docId__": 635, "kind": "testIt", "static": true, "variation": null, @@ -12714,7 +12971,7 @@ "lineNumber": 11 }, { - "__docId__": 626, + "__docId__": 636, "kind": "testIt", "static": true, "variation": null, @@ -12728,7 +12985,7 @@ "lineNumber": 15 }, { - "__docId__": 627, + "__docId__": 637, "kind": "testIt", "static": true, "variation": null, @@ -12742,7 +12999,7 @@ "lineNumber": 19 }, { - "__docId__": 628, + "__docId__": 638, "kind": "testIt", "static": true, "variation": null, @@ -12756,7 +13013,7 @@ "lineNumber": 23 }, { - "__docId__": 629, + "__docId__": 639, "kind": "testIt", "static": true, "variation": null, @@ -12770,7 +13027,7 @@ "lineNumber": 27 }, { - "__docId__": 630, + "__docId__": 640, "kind": "testIt", "static": true, "variation": null, @@ -12784,7 +13041,7 @@ "lineNumber": 31 }, { - "__docId__": 631, + "__docId__": 641, "kind": "testIt", "static": true, "variation": null, @@ -12798,7 +13055,7 @@ "lineNumber": 35 }, { - "__docId__": 632, + "__docId__": 642, "kind": "testDescribe", "static": true, "variation": null, @@ -12821,7 +13078,7 @@ ] }, { - "__docId__": 633, + "__docId__": 643, "kind": "testIt", "static": true, "variation": null, @@ -12835,7 +13092,7 @@ "lineNumber": 42 }, { - "__docId__": 634, + "__docId__": 644, "kind": "testIt", "static": true, "variation": null, @@ -12849,7 +13106,7 @@ "lineNumber": 46 }, { - "__docId__": 635, + "__docId__": 645, "kind": "testIt", "static": true, "variation": null, @@ -12863,7 +13120,7 @@ "lineNumber": 50 }, { - "__docId__": 636, + "__docId__": 646, "kind": "testIt", "static": true, "variation": null, @@ -12877,7 +13134,7 @@ "lineNumber": 54 }, { - "__docId__": 637, + "__docId__": 647, "kind": "testIt", "static": true, "variation": null, @@ -12891,7 +13148,7 @@ "lineNumber": 58 }, { - "__docId__": 638, + "__docId__": 648, "kind": "testIt", "static": true, "variation": null, @@ -12905,7 +13162,7 @@ "lineNumber": 62 }, { - "__docId__": 639, + "__docId__": 649, "kind": "testFile", "static": true, "variation": null, @@ -12918,7 +13175,7 @@ "content": "import * as SingleSizeArray from '../../src/SingleSizeArray';\nimport Size from '../../src/Size';\n\n/** @test {SingleSizeArray} */\ndescribe('SingleSizeArray', () => {\n const singleSize = [728, 90];\n const triplet = [728, 90, 200];\n const singlet = [728];\n const multiSize = [[728, 90], [970, 90]];\n\n /** @test {SingleSizeArray#isSingleSize} */\n describe('#isSingleSize', () => {\n it('returns false for null', () => {\n expect(SingleSizeArray.isSingleSizeArray(null)).to.be(false);\n });\n\n it('returns false for undefined', () => {\n expect(SingleSizeArray.isSingleSizeArray(undefined)).to.be(false);\n });\n\n it('returns false for empty array', () => {\n expect(SingleSizeArray.isSingleSizeArray([])).to.be(false);\n });\n\n it('returns true for SingleSize', () => {\n expect(SingleSizeArray.isSingleSizeArray(singleSize)).to.be(true);\n });\n\n it('returns false for a triple', () => {\n expect(SingleSizeArray.isSingleSizeArray(triplet)).to.be(false);\n });\n\n it('returns false for a single', () => {\n expect(SingleSizeArray.isSingleSizeArray(singlet)).to.be(false);\n });\n\n it('returns false for MultiSize', () => {\n expect(SingleSizeArray.isSingleSizeArray(multiSize)).to.be(false);\n });\n\n it('returns false for non-\"fluid\" string', () => {\n expect(SingleSizeArray.isSingleSizeArray('overflow')).to.be(false);\n });\n\n it('returns false for \"fluid\" string', () => {\n expect(SingleSizeArray.isSingleSizeArray('fluid')).to.be(false);\n });\n });\n\n /** @test {SingleSizeArray#toSize} */\n describe('#toSize', () => {\n it('returns null for null', () => {\n expect(SingleSizeArray.toSize(null)).to.be(null);\n });\n\n it('returns null for undefined', () => {\n expect(SingleSizeArray.toSize(undefined)).to.be(null);\n });\n\n it('returns null for empty array', () => {\n expect(SingleSizeArray.toSize([])).to.be(null);\n });\n\n it('returns Size for SingleSize', () => {\n expect(SingleSizeArray.toSize(singleSize)).to.eql(new Size(728, 90));\n });\n\n it('returns null for a triple', () => {\n expect(SingleSizeArray.toSize(triplet)).to.be(null);\n });\n\n it('returns null for a single', () => {\n expect(SingleSizeArray.toSize(singlet)).to.be(null);\n });\n\n it('returns null for MultiSize', () => {\n expect(SingleSizeArray.toSize(multiSize)).to.be(null);\n });\n\n it('returns null for non-\"fluid\" string', () => {\n expect(SingleSizeArray.toSize('overflow')).to.be(null);\n });\n\n xit('returns null for \"fluid\" string', () => {\n expect(SingleSizeArray.toSize('fluid')).to.be(null);\n });\n });\n});\n" }, { - "__docId__": 640, + "__docId__": 650, "kind": "testDescribe", "static": true, "variation": null, @@ -12941,7 +13198,7 @@ ] }, { - "__docId__": 641, + "__docId__": 651, "kind": "testDescribe", "static": true, "variation": null, @@ -12964,7 +13221,7 @@ ] }, { - "__docId__": 642, + "__docId__": 652, "kind": "testIt", "static": true, "variation": null, @@ -12978,7 +13235,7 @@ "lineNumber": 13 }, { - "__docId__": 643, + "__docId__": 653, "kind": "testIt", "static": true, "variation": null, @@ -12992,7 +13249,7 @@ "lineNumber": 17 }, { - "__docId__": 644, + "__docId__": 654, "kind": "testIt", "static": true, "variation": null, @@ -13006,7 +13263,7 @@ "lineNumber": 21 }, { - "__docId__": 645, + "__docId__": 655, "kind": "testIt", "static": true, "variation": null, @@ -13020,7 +13277,7 @@ "lineNumber": 25 }, { - "__docId__": 646, + "__docId__": 656, "kind": "testIt", "static": true, "variation": null, @@ -13034,7 +13291,7 @@ "lineNumber": 29 }, { - "__docId__": 647, + "__docId__": 657, "kind": "testIt", "static": true, "variation": null, @@ -13048,7 +13305,7 @@ "lineNumber": 33 }, { - "__docId__": 648, + "__docId__": 658, "kind": "testIt", "static": true, "variation": null, @@ -13062,7 +13319,7 @@ "lineNumber": 37 }, { - "__docId__": 649, + "__docId__": 659, "kind": "testIt", "static": true, "variation": null, @@ -13076,7 +13333,7 @@ "lineNumber": 41 }, { - "__docId__": 650, + "__docId__": 660, "kind": "testIt", "static": true, "variation": null, @@ -13090,7 +13347,7 @@ "lineNumber": 45 }, { - "__docId__": 651, + "__docId__": 661, "kind": "testDescribe", "static": true, "variation": null, @@ -13113,7 +13370,7 @@ ] }, { - "__docId__": 652, + "__docId__": 662, "kind": "testIt", "static": true, "variation": null, @@ -13127,7 +13384,7 @@ "lineNumber": 52 }, { - "__docId__": 653, + "__docId__": 663, "kind": "testIt", "static": true, "variation": null, @@ -13141,7 +13398,7 @@ "lineNumber": 56 }, { - "__docId__": 654, + "__docId__": 664, "kind": "testIt", "static": true, "variation": null, @@ -13155,7 +13412,7 @@ "lineNumber": 60 }, { - "__docId__": 655, + "__docId__": 665, "kind": "testIt", "static": true, "variation": null, @@ -13169,7 +13426,7 @@ "lineNumber": 64 }, { - "__docId__": 656, + "__docId__": 666, "kind": "testIt", "static": true, "variation": null, @@ -13183,7 +13440,7 @@ "lineNumber": 68 }, { - "__docId__": 657, + "__docId__": 667, "kind": "testIt", "static": true, "variation": null, @@ -13197,7 +13454,7 @@ "lineNumber": 72 }, { - "__docId__": 658, + "__docId__": 668, "kind": "testIt", "static": true, "variation": null, @@ -13211,7 +13468,7 @@ "lineNumber": 76 }, { - "__docId__": 659, + "__docId__": 669, "kind": "testIt", "static": true, "variation": null, @@ -13225,7 +13482,7 @@ "lineNumber": 80 }, { - "__docId__": 660, + "__docId__": 670, "kind": "testFile", "static": true, "variation": null, @@ -13238,7 +13495,7 @@ "content": "import Size from '../../src/Size';\n\n/** @test {Size} */\ndescribe('Size', () => {\n /** @test {Size#constructor} */\n describe('#constructor', () => {\n it('constructs', () => {\n const size = new Size(728, 90);\n expect(size).to.be.ok();\n expect(size).to.have.property('width', 728);\n expect(size).to.have.property('height', 90);\n });\n });\n\n /** @test {Size#getWidth} */\n describe('#getWidth', () => {\n it('returns the width', () => {\n const size = new Size(300, 250);\n expect(size.getWidth()).to.be(300);\n });\n });\n\n /** @test {Size#getHeight} */\n describe('#getHeight', () => {\n it('returns the height', () => {\n const size = new Size(300, 600);\n expect(size.getHeight()).to.be(600);\n });\n });\n\n /** @test {Size#isEmpty} */\n describe('#isEmpty', () => {\n it('returns false for a non-empty Size', () => {\n const size = new Size(300, 600);\n expect(size.isEmpty()).to.be(false);\n });\n\n it('returns true for an empty Size', () => {\n const size = new Size(0, 0);\n expect(size.isEmpty()).to.be(true);\n });\n });\n\n /** @test {Size#ceil} */\n describe('#ceil', () => {\n it('truncates upward', () => {\n const size = new Size(299.999999, 599.99999);\n expect(size.ceil()).to.eql(new Size(300, 600));\n });\n });\n\n /** @test {Size#floor} */\n describe('#floor', () => {\n it('truncates downward', () => {\n const size = new Size(300.000000001, 600.0000001);\n expect(size.floor()).to.eql(new Size(300, 600));\n });\n });\n\n /** @test {Size#round} */\n describe('#round', () => {\n it('rounds the size downward', () => {\n const size = new Size(300.000000001, 600.0000001);\n expect(size.round()).to.eql(new Size(300, 600));\n });\n\n it('rounds the size upward', () => {\n const size = new Size(299.999999, 599.99999);\n expect(size.round()).to.eql(new Size(300, 600));\n });\n });\n});\n" }, { - "__docId__": 661, + "__docId__": 671, "kind": "testDescribe", "static": true, "variation": null, @@ -13261,7 +13518,7 @@ ] }, { - "__docId__": 662, + "__docId__": 672, "kind": "testDescribe", "static": true, "variation": null, @@ -13284,7 +13541,7 @@ ] }, { - "__docId__": 663, + "__docId__": 673, "kind": "testIt", "static": true, "variation": null, @@ -13298,7 +13555,7 @@ "lineNumber": 7 }, { - "__docId__": 664, + "__docId__": 674, "kind": "testDescribe", "static": true, "variation": null, @@ -13321,7 +13578,7 @@ ] }, { - "__docId__": 665, + "__docId__": 675, "kind": "testIt", "static": true, "variation": null, @@ -13335,7 +13592,7 @@ "lineNumber": 17 }, { - "__docId__": 666, + "__docId__": 676, "kind": "testDescribe", "static": true, "variation": null, @@ -13358,7 +13615,7 @@ ] }, { - "__docId__": 667, + "__docId__": 677, "kind": "testIt", "static": true, "variation": null, @@ -13372,7 +13629,7 @@ "lineNumber": 25 }, { - "__docId__": 668, + "__docId__": 678, "kind": "testDescribe", "static": true, "variation": null, @@ -13395,7 +13652,7 @@ ] }, { - "__docId__": 669, + "__docId__": 679, "kind": "testIt", "static": true, "variation": null, @@ -13409,7 +13666,7 @@ "lineNumber": 33 }, { - "__docId__": 670, + "__docId__": 680, "kind": "testIt", "static": true, "variation": null, @@ -13423,7 +13680,7 @@ "lineNumber": 38 }, { - "__docId__": 671, + "__docId__": 681, "kind": "testDescribe", "static": true, "variation": null, @@ -13446,7 +13703,7 @@ ] }, { - "__docId__": 672, + "__docId__": 682, "kind": "testIt", "static": true, "variation": null, @@ -13460,7 +13717,7 @@ "lineNumber": 46 }, { - "__docId__": 673, + "__docId__": 683, "kind": "testDescribe", "static": true, "variation": null, @@ -13483,7 +13740,7 @@ ] }, { - "__docId__": 674, + "__docId__": 684, "kind": "testIt", "static": true, "variation": null, @@ -13497,7 +13754,7 @@ "lineNumber": 54 }, { - "__docId__": 675, + "__docId__": 685, "kind": "testDescribe", "static": true, "variation": null, @@ -13520,7 +13777,7 @@ ] }, { - "__docId__": 676, + "__docId__": 686, "kind": "testIt", "static": true, "variation": null, @@ -13534,7 +13791,7 @@ "lineNumber": 62 }, { - "__docId__": 677, + "__docId__": 687, "kind": "testIt", "static": true, "variation": null, @@ -13548,7 +13805,7 @@ "lineNumber": 67 }, { - "__docId__": 678, + "__docId__": 688, "kind": "testFile", "static": true, "variation": null, @@ -13561,7 +13818,7 @@ "content": "import * as SizeMapping from '../../src/SizeMapping';\n\n/** @test {SizeMapping} */\ndescribe('SizeMapping', () => {\n const singlet = [1600];\n const triplet = [1600, 1200, 1];\n const viewport = [1600, 1200];\n const singleMappings = [768, 60];\n const multiMappings = [[768, 60], [970, 60]];\n\n /** @test {SizeMapping#isSizeMapping} */\n describe('#isSizeMapping', () => {\n it('returns false for null', () => {\n expect(SizeMapping.isSizeMapping(null)).to.be(false);\n });\n\n it('returns false for undefined', () => {\n expect(SizeMapping.isSizeMapping(undefined)).to.be(false);\n });\n\n it('returns false for singlet', () => {\n expect(SizeMapping.isSizeMapping(singlet)).to.be(false);\n });\n\n it('returns false for triplet', () => {\n expect(SizeMapping.isSizeMapping(triplet)).to.be(false);\n });\n\n it('returns true for good single mapping', () => {\n expect(SizeMapping.isSizeMapping([viewport, singleMappings])).to.be(true);\n });\n\n it('returns true for good multi mapping', () => {\n expect(SizeMapping.isSizeMapping([viewport, multiMappings])).to.be(true);\n });\n\n it('returns true for good fluid mapping', () => {\n expect(SizeMapping.isSizeMapping([viewport, 'fluid'])).to.be(true);\n });\n\n it('returns false for singlet mapping', () => {\n expect(SizeMapping.isSizeMapping([viewport, singlet])).to.be(false);\n });\n\n it('returns false for triplet mapping', () => {\n expect(SizeMapping.isSizeMapping([viewport, triplet])).to.be(false);\n });\n\n it('returns false for bad viewport', () => {\n expect(SizeMapping.isSizeMapping(['fluid', singleMappings])).to.be(false);\n });\n\n it('returns false for bad viewport multi', () => {\n expect(SizeMapping.isSizeMapping([multiMappings, singleMappings])).to.be(false);\n });\n });\n});\n" }, { - "__docId__": 679, + "__docId__": 689, "kind": "testDescribe", "static": true, "variation": null, @@ -13584,7 +13841,7 @@ ] }, { - "__docId__": 680, + "__docId__": 690, "kind": "testDescribe", "static": true, "variation": null, @@ -13607,7 +13864,7 @@ ] }, { - "__docId__": 681, + "__docId__": 691, "kind": "testIt", "static": true, "variation": null, @@ -13621,7 +13878,7 @@ "lineNumber": 13 }, { - "__docId__": 682, + "__docId__": 692, "kind": "testIt", "static": true, "variation": null, @@ -13635,7 +13892,7 @@ "lineNumber": 17 }, { - "__docId__": 683, + "__docId__": 693, "kind": "testIt", "static": true, "variation": null, @@ -13649,7 +13906,7 @@ "lineNumber": 21 }, { - "__docId__": 684, + "__docId__": 694, "kind": "testIt", "static": true, "variation": null, @@ -13663,7 +13920,7 @@ "lineNumber": 25 }, { - "__docId__": 685, + "__docId__": 695, "kind": "testIt", "static": true, "variation": null, @@ -13677,7 +13934,7 @@ "lineNumber": 29 }, { - "__docId__": 686, + "__docId__": 696, "kind": "testIt", "static": true, "variation": null, @@ -13691,7 +13948,7 @@ "lineNumber": 33 }, { - "__docId__": 687, + "__docId__": 697, "kind": "testIt", "static": true, "variation": null, @@ -13705,7 +13962,7 @@ "lineNumber": 37 }, { - "__docId__": 688, + "__docId__": 698, "kind": "testIt", "static": true, "variation": null, @@ -13719,7 +13976,7 @@ "lineNumber": 41 }, { - "__docId__": 689, + "__docId__": 699, "kind": "testIt", "static": true, "variation": null, @@ -13733,7 +13990,7 @@ "lineNumber": 45 }, { - "__docId__": 690, + "__docId__": 700, "kind": "testIt", "static": true, "variation": null, @@ -13747,7 +14004,7 @@ "lineNumber": 49 }, { - "__docId__": 691, + "__docId__": 701, "kind": "testIt", "static": true, "variation": null, @@ -13761,7 +14018,7 @@ "lineNumber": 53 }, { - "__docId__": 692, + "__docId__": 702, "kind": "testFile", "static": true, "variation": null, @@ -13774,7 +14031,7 @@ "content": "import * as SizeMappingArray from '../../src/SizeMappingArray';\n\n/** @test {SizeMappingArray} */\ndescribe('SizeMappingArray', () => {\n const viewport1 = [1600, 1200];\n const viewport2 = [1050, 800];\n const single1 = [728, 90];\n const single2 = [970, 90];\n const multi = [single1, single2];\n\n /** @test {SizeMappingArray#isSizeMappingArray} */\n describe('#isSizeMappingArray', () => {\n it('returns false for null', () => {\n expect(SizeMappingArray.isSizeMappingArray(null)).to.be(false);\n });\n\n it('returns false for undefined', () => {\n expect(SizeMappingArray.isSizeMappingArray(undefined)).to.be(false);\n });\n\n it('returns false for \"fluid\"', () => {\n expect(SizeMappingArray.isSizeMappingArray('fluid')).to.be(false);\n });\n\n it('returns true for valid mapping', () => {\n expect(SizeMappingArray.isSizeMappingArray([\n [viewport1, multi],\n [viewport2, single2]\n ])).to.be(true);\n });\n\n it('returns false for invalid viewport', () => {\n expect(SizeMappingArray.isSizeMappingArray([\n [viewport1, multi],\n ['fluid', single2]\n ])).to.be(false);\n });\n });\n});\n" }, { - "__docId__": 693, + "__docId__": 703, "kind": "testDescribe", "static": true, "variation": null, @@ -13797,7 +14054,7 @@ ] }, { - "__docId__": 694, + "__docId__": 704, "kind": "testDescribe", "static": true, "variation": null, @@ -13820,7 +14077,7 @@ ] }, { - "__docId__": 695, + "__docId__": 705, "kind": "testIt", "static": true, "variation": null, @@ -13834,7 +14091,7 @@ "lineNumber": 13 }, { - "__docId__": 696, + "__docId__": 706, "kind": "testIt", "static": true, "variation": null, @@ -13848,7 +14105,7 @@ "lineNumber": 17 }, { - "__docId__": 697, + "__docId__": 707, "kind": "testIt", "static": true, "variation": null, @@ -13862,7 +14119,7 @@ "lineNumber": 21 }, { - "__docId__": 698, + "__docId__": 708, "kind": "testIt", "static": true, "variation": null, @@ -13876,7 +14133,7 @@ "lineNumber": 25 }, { - "__docId__": 699, + "__docId__": 709, "kind": "testIt", "static": true, "variation": null, @@ -13890,7 +14147,7 @@ "lineNumber": 32 }, { - "__docId__": 700, + "__docId__": 710, "kind": "testFile", "static": true, "variation": null, @@ -13903,7 +14160,7 @@ "content": "import SizeMappingBuilder from '../../src/SizeMappingBuilder';\n\n/** @test {SizeMappingBuilder} */\ndescribe('SizeMappingBuilder', () => {\n /** @test {SizeMappingBuilder#constructor} */\n describe('#constructor', () => {\n it('constructs', () => {\n const builder = new SizeMappingBuilder();\n expect(builder).to.be.ok();\n expect(builder).to.have.property('_mappings');\n expect(builder._mappings).to.be.an('array');\n expect(builder._mappings).to.be.empty();\n });\n });\n\n /** @test {SizeMappingBuilder#addSize} */\n describe('#addSize', () => {\n it('returns the builder', () => {\n const builder = new SizeMappingBuilder();\n const viewport = [1024, 768];\n const mappings = [768, 60];\n expect(builder.addSize(viewport, mappings)).to.be(builder);\n });\n\n it('adds a mapping', () => {\n const builder = new SizeMappingBuilder();\n const viewport = [1024, 768];\n const mappings = [768, 60];\n builder.addSize(viewport, mappings);\n expect(builder).to.have.property('_mappings');\n expect(builder._mappings).to.be.an('array');\n expect(builder._mappings).to.eql([\n [viewport, mappings]\n ]);\n });\n\n it('accumulates mappings', () => {\n const builder = new SizeMappingBuilder();\n const firstViewport = [1024, 768];\n const secondViewport = [1600, 1200];\n const firstMappings = [768, 60];\n const secondMappings = [[768, 60], [468, 60]];\n builder.addSize(firstViewport, firstMappings);\n builder.addSize(secondViewport, secondMappings);\n expect(builder).to.have.property('_mappings');\n expect(builder._mappings).to.be.an('array');\n expect(builder._mappings).to.eql([\n [firstViewport, firstMappings],\n [secondViewport, secondMappings]\n ]);\n });\n });\n\n /** @test {SizeMappingBuilder#build} */\n describe('#build', () => {\n it('returns null if no addSize call', () => {\n const builder = new SizeMappingBuilder();\n expect(builder).to.be.ok();\n expect(builder.build()).to.be(null);\n });\n\n it('returns null is invalid mappings are detected', () => {\n const builder = new SizeMappingBuilder();\n builder.addSize([1024, 768], 'rubbish');\n expect(builder.build()).to.be(null);\n });\n\n it('returns sizeMapping if addSize called', () => {\n const builder = new SizeMappingBuilder();\n const viewport = [1024, 768];\n const mappings = [768, 60];\n builder.addSize(viewport, mappings);\n const mapping = builder.build();\n\n expect(mapping).to.be.ok();\n expect(mapping).to.be.an('array');\n expect(mapping).to.have.length(1);\n expect(mapping[0]).to.be.an('array');\n expect(mapping[0]).to.have.length(2);\n\n const [viewport1, mappings1] = mapping[0];\n expect(viewport1).to.be.an('array');\n expect(viewport1).to.eql(viewport);\n expect(mappings1).to.be.an('array');\n expect(mappings1).to.eql(mappings);\n });\n\n it('returns null if build called a second time', () => {\n const builder = new SizeMappingBuilder();\n const viewport = [1024, 768];\n const mappings = [768, 60];\n builder.addSize(viewport, mappings);\n const mapping1 = builder.build();\n const mapping2 = builder.build();\n expect(mapping1).to.be.ok();\n expect(mapping2).to.not.be.ok();\n });\n });\n});\n" }, { - "__docId__": 701, + "__docId__": 711, "kind": "testDescribe", "static": true, "variation": null, @@ -13926,7 +14183,7 @@ ] }, { - "__docId__": 702, + "__docId__": 712, "kind": "testDescribe", "static": true, "variation": null, @@ -13949,7 +14206,7 @@ ] }, { - "__docId__": 703, + "__docId__": 713, "kind": "testIt", "static": true, "variation": null, @@ -13963,7 +14220,7 @@ "lineNumber": 7 }, { - "__docId__": 704, + "__docId__": 714, "kind": "testDescribe", "static": true, "variation": null, @@ -13986,7 +14243,7 @@ ] }, { - "__docId__": 705, + "__docId__": 715, "kind": "testIt", "static": true, "variation": null, @@ -14000,7 +14257,7 @@ "lineNumber": 18 }, { - "__docId__": 706, + "__docId__": 716, "kind": "testIt", "static": true, "variation": null, @@ -14014,7 +14271,7 @@ "lineNumber": 25 }, { - "__docId__": 707, + "__docId__": 717, "kind": "testIt", "static": true, "variation": null, @@ -14028,7 +14285,7 @@ "lineNumber": 37 }, { - "__docId__": 708, + "__docId__": 718, "kind": "testDescribe", "static": true, "variation": null, @@ -14051,7 +14308,7 @@ ] }, { - "__docId__": 709, + "__docId__": 719, "kind": "testIt", "static": true, "variation": null, @@ -14065,7 +14322,7 @@ "lineNumber": 56 }, { - "__docId__": 710, + "__docId__": 720, "kind": "testIt", "static": true, "variation": null, @@ -14079,7 +14336,7 @@ "lineNumber": 62 }, { - "__docId__": 711, + "__docId__": 721, "kind": "testIt", "static": true, "variation": null, @@ -14093,7 +14350,7 @@ "lineNumber": 68 }, { - "__docId__": 712, + "__docId__": 722, "kind": "testIt", "static": true, "variation": null, @@ -14107,7 +14364,7 @@ "lineNumber": 88 }, { - "__docId__": 713, + "__docId__": 723, "kind": "testFile", "static": true, "variation": null, @@ -14120,7 +14377,7 @@ "content": "import GPT from '../../src/GPT';\nimport Slot from '../../src/Slot';\nimport Service from '../../src/Service';\nimport ResponseInformation from '../../src/ResponseInformation';\nimport SafeFrameConfig from '../../src/SafeFrameConfig';\nimport SlotOnloadEvent from '../../src/events/SlotOnloadEvent';\nimport SlotRenderEndedEvent from '../../src/events/SlotRenderEndedEvent';\nimport ImpressionViewableEvent from '../../src/events/ImpressionViewableEvent';\nimport SlotVisibilityChangedEvent from '../../src/events/SlotVisibilityChangedEvent';\n\n/** @test {Slot} */\ndescribe('Slot', () => {\n const adUnitPath = '/Test/12345';\n const optDiv = 'gpt-div-123';\n const optDivNull = null;\n const size = [728, 90];\n const gt = new GPT();\n const clickUrl = 'http://www.google.com/';\n const advertiserId = 'adv';\n const campaignId = 'camp';\n const lineItemId = 123;\n const creativeId = 456;\n const labelIds = ['label1', 'label2'];\n const info = new ResponseInformation(advertiserId, campaignId, lineItemId,\n creativeId, labelIds);\n\n /** @test {Slot#constructor} */\n describe('#constructor', () => {\n it('constructs', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n expect(slot).to.be.ok();\n });\n });\n\n /** @test {Slot#getName} */\n describe('#getName', () => {\n it('returns the adUnitPath', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n expect(slot.getName()).to.be(adUnitPath);\n });\n });\n\n /** @test {Slot#getDefinedId} */\n describe('#getDefinedId', () => {\n it('returns the instance', () => {\n const slot = new Slot(adUnitPath, size, optDiv, 123);\n expect(slot.getDefinedId()).to.be(123);\n });\n });\n\n /** @test {Slot#getAdUnitPath} */\n describe('#getAdUnitPath', () => {\n it('returns the adUnitPath', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n expect(slot.getAdUnitPath()).to.be(adUnitPath);\n });\n });\n\n /** @test {Slot#getSlotElementId} */\n describe('#getSlotElementId', () => {\n it('returns the optDiv', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n expect(slot.getSlotElementId()).to.be(optDiv);\n });\n\n it('returns a generated ID if necessary', () => {\n const slot = new Slot(adUnitPath, size, optDivNull);\n expect(slot.getSlotElementId()).to.be(`gpt_unit_${adUnitPath}_0`);\n });\n });\n\n /** @test {Slot#getServices} */\n describe('#getServices', () => {\n it('returns the services', () => {\n const service = new Service(gt, 'test');\n const slot = new Slot(adUnitPath, size, optDiv).addService(service);\n expect(slot.getServices()).to.be.an('array');\n expect(slot.getServices()).to.be.eql([service]);\n });\n });\n\n /** @test {Slot#getSizes} */\n describe('#getSizes', () => {\n it('returns the sizes', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n expect(slot.getSizes()).to.be.an('array');\n expect(slot.getSizes()).to.have.length(1);\n const [size1] = slot.getSizes();\n expect(size1).to.be.ok();\n expect(size1.getWidth()).to.be(size[0]);\n expect(size1.getHeight()).to.be(size[1]);\n });\n });\n\n /** @test {Slot#getOutOfPage} */\n describe('#getOutOfPage', () => {\n it('returns the outOfPage status', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n expect(slot.getOutOfPage()).to.be.a('boolean');\n expect(slot.getOutOfPage()).to.be(false);\n slot._options.outOfPage = true;\n expect(slot.getOutOfPage()).to.be(true);\n });\n });\n\n /** @test {Slot#display} */\n describe('#display', () => {\n it('returns undefined', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n expect(slot.display()).to.be(undefined);\n });\n\n it('marks the slot as displayed', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n slot.display();\n expect(slot._options.displayed).to.be(true);\n });\n\n it('fires event listeners', () => {\n const service = new Service(gt, 'test');\n const onImpressionViewableEvent = sinon.spy();\n const onSlotOnloadEvent = sinon.spy();\n const onSlotRenderEndedEvent = sinon.spy();\n const onSlotVisibilityChangedEvent = sinon.spy();\n\n service.addEventListener('googletag.events.ImpressionViewableEvent',\n onImpressionViewableEvent);\n service.addEventListener('googletag.events.SlotOnloadEvent',\n onSlotOnloadEvent);\n service.addEventListener('googletag.events.SlotRenderEndedEvent',\n onSlotRenderEndedEvent);\n service.addEventListener('googletag.events.SlotVisibilityChangedEvent',\n onSlotVisibilityChangedEvent);\n\n const slot = new Slot(adUnitPath, size, optDiv).addService(service);\n\n slot.display();\n expect(onImpressionViewableEvent.calledOnce).to.be(true);\n expect(onSlotOnloadEvent.calledOnce).to.be(true);\n expect(onSlotRenderEndedEvent.calledOnce).to.be(true);\n expect(onSlotVisibilityChangedEvent.calledOnce).to.be(true);\n });\n });\n\n /** @test {Slot#getAttributeKeys} */\n describe('#getAttributeKeys', () => {\n it('returns the attribute keys', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n expect(slot.getAttributeKeys()).to.be.an('array');\n expect(slot.getAttributeKeys()).to.be.empty();\n slot.set('attr1', 'value1');\n expect(slot.getAttributeKeys()).to.not.be.empty();\n expect(slot.getAttributeKeys()).to.eql(['attr1']);\n });\n });\n\n /** @test {Slot#_getAttributes} */\n describe('#_getAttributes', () => {\n it('returns the attribute map', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n slot.set('attr1', 'value1');\n expect(slot._getAttributes()).to.eql({\n attr1: 'value1'\n });\n });\n });\n\n /** @test {Slot#get} */\n describe('#get', () => {\n it('returns null if attribute not set', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n expect(slot.get('attr1')).to.be(null);\n });\n\n it('returns the attribute value if set', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n slot.set('attr1', 'value1');\n expect(slot.get('attr1')).to.be('value1');\n });\n });\n\n /** @test {Slot#set} */\n describe('#set', () => {\n it('returns the slot', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n expect(slot.set('attr1', 'value1')).to.eql(slot);\n });\n\n it('saves the value', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n slot.set('attr1', 'value1');\n expect(slot.get('attr1')).to.be('value1');\n });\n });\n\n /** @test {Slot#getTargeting} */\n describe('#getTargeting', () => {\n it('returns the null is not set', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n expect(slot.getTargeting('kv1')).to.be.an('array');\n expect(slot.getTargeting('kv1')).to.be.empty();\n });\n\n it('returns the value (as an array) if set', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n slot.setTargeting('kv1', 'value');\n expect(slot.getTargeting('kv1')).to.be.an('array');\n expect(slot.getTargeting('kv1')).to.eql(['value']);\n });\n });\n\n /** @test {Slot#getTargetingKeys} */\n describe('#getTargetingKeys', () => {\n it('returns empty array if no keys', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n expect(slot.getTargetingKeys()).to.be.an('array');\n expect(slot.getTargetingKeys()).to.be.empty();\n });\n\n it('returns array of keys', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n slot.setTargeting('kv1', 'value1');\n slot.setTargeting('kv2', 'value2');\n expect(slot.getTargetingKeys()).to.be.an('array');\n expect(slot.getTargetingKeys()).to.eql(['kv1', 'kv2']);\n });\n });\n\n /** @test {Slot#getTargetingMap} */\n describe('getTargetingMap', () => {\n it('returns the targeting map', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n slot.setTargeting('kv1', 'value1');\n slot.setTargeting('kv2', 'value2');\n expect(slot.getTargetingMap()).to.be.an('object');\n expect(slot.getTargetingMap()).to.eql({\n kv1: ['value1'],\n kv2: ['value2']\n });\n });\n });\n\n /** @test {Slot#setTargeting} */\n describe('#setTargeting', () => {\n it('returns the slot', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n expect(slot.setTargeting('kv1', 'value1')).to.be(slot);\n });\n\n it('saves the value', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n slot.setTargeting('kv1', 'value');\n expect(slot.getTargeting('kv1')).to.be.an('array');\n expect(slot.getTargeting('kv1')).to.eql(['value']);\n });\n\n it('saves the array value', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n slot.setTargeting('kv1', ['value']);\n expect(slot.getTargeting('kv1')).to.be.an('array');\n expect(slot.getTargeting('kv1')).to.eql(['value']);\n });\n\n it('overwrites the previous value', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n slot.setTargeting('kv1', 'value1');\n expect(slot.getTargeting('kv1')).to.be.an('array');\n expect(slot.getTargeting('kv1')).to.eql(['value1']);\n slot.setTargeting('kv1', 'value2');\n expect(slot.getTargeting('kv1')).to.be.an('array');\n expect(slot.getTargeting('kv1')).to.eql(['value2']);\n });\n });\n\n /** @test {Slot#updateTargetingFromMap} */\n describe('#updateTargetingFromMap', () => {\n it('returns the slot', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n expect(slot.updateTargetingFromMap({})).to.be(slot);\n });\n\n it('copies the map values', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n slot.updateTargetingFromMap({\n kv1: 'value1',\n kv2: 'value2'\n });\n expect(slot.getTargeting('kv1')).to.be.an('array');\n expect(slot.getTargeting('kv1')).to.eql(['value1']);\n expect(slot.getTargeting('kv2')).to.be.an('array');\n expect(slot.getTargeting('kv2')).to.eql(['value2']);\n });\n\n it('overwrites existing the values', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n slot.setTargeting('kv1', 'value3');\n slot.updateTargetingFromMap({\n kv1: 'value1',\n kv2: 'value2'\n });\n expect(slot.getTargeting('kv1')).to.be.an('array');\n expect(slot.getTargeting('kv1')).to.eql(['value1']);\n expect(slot.getTargeting('kv2')).to.be.an('array');\n expect(slot.getTargeting('kv2')).to.eql(['value2']);\n });\n });\n\n /** @test {Slot#clearTargeting} */\n describe('#clearTargeting', () => {\n it('returns the slot', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n expect(slot.clearTargeting()).to.be(slot);\n });\n\n it('clears all targeting', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n slot.setTargeting('kv1', 'value1');\n expect(slot.getTargeting('kv1')).to.be.an('array');\n expect(slot.getTargeting('kv1')).to.eql(['value1']);\n slot.clearTargeting();\n expect(slot.getTargeting('kv1')).to.be.an('array');\n expect(slot.getTargeting('kv1')).to.empty();\n });\n });\n\n /** @test {Slot#addService} */\n describe('#addService', () => {\n it('returns the slot', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n const service = new Service(gt, 'test');\n expect(slot.addService(service)).to.be(slot);\n });\n\n it('adds service to list of services for the slot', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n const service = new Service(gt, 'test');\n slot.addService(service);\n expect(slot._services).to.be.an('array');\n expect(slot._services).to.have.length(1);\n expect(slot._services[0]).to.be(service);\n });\n\n it('adds the slot to the service', sinon.test(function() {\n const service = new Service(gt, 'test');\n const slot = new Slot(adUnitPath, size, optDiv);\n const mock = this.mock(service);\n mock.expects('_addSlot').once().withArgs(slot);\n slot.addService(service);\n }));\n });\n\n /** @test {Slot#getCategoryExclusions} */\n describe('#getCategoryExclusions', () => {\n it('returns empty array if no exclusions', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n expect(slot.getCategoryExclusions()).to.be.an('array');\n expect(slot.getCategoryExclusions()).to.be.empty();\n });\n\n it('returns array of exclusions if set', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n slot.setCategoryExclusion('e1');\n slot.setCategoryExclusion('e2');\n expect(slot.getCategoryExclusions()).to.be.an('array');\n expect(slot.getCategoryExclusions()).to.eql(['e1', 'e2']);\n });\n });\n\n /** @test {Slot#setCategoryExclusion} */\n describe('#setCategoryExclusion', () => {\n it('returns the slot', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n expect(slot.setCategoryExclusion('e1')).to.be(slot);\n });\n\n it('appends to the exclusions', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n expect(slot.getCategoryExclusions()).to.be.an('array');\n expect(slot.getCategoryExclusions()).to.be.empty();\n slot.setCategoryExclusion('e1');\n expect(slot.getCategoryExclusions()).to.eql(['e1']);\n slot.setCategoryExclusion('e2');\n expect(slot.getCategoryExclusions()).to.eql(['e1', 'e2']);\n });\n });\n\n /** @test {Slot#clearCategoryExclusions} */\n describe('#clearCategoryExclusions', () => {\n it('returns the slot', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n expect(slot.clearCategoryExclusions()).to.be(slot);\n });\n\n it('clears the exclusions', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n expect(slot.getCategoryExclusions()).to.be.an('array');\n expect(slot.getCategoryExclusions()).to.be.empty();\n slot.setCategoryExclusion('e1');\n expect(slot.getCategoryExclusions()).to.eql(['e1']);\n slot.clearCategoryExclusions();\n expect(slot.getCategoryExclusions()).to.be.empty();\n });\n });\n\n /** @test {Slot#defineSizeMapping} */\n describe('#defineSizeMapping', () => {\n it('returns the slot', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n expect(slot.defineSizeMapping([])).to.be(slot);\n });\n\n it('overwrites the previous size mapping', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n expect(slot._sizeMapping).to.be(null);\n slot.defineSizeMapping([]);\n expect(slot._sizeMapping).to.eql([]);\n });\n\n it('throws an error on invalid size mapping', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n expect(slot._sizeMapping).to.be(null);\n expect(() => slot.defineSizeMapping('bob')).to.throwError();\n expect(slot._sizeMapping).to.be(null);\n });\n });\n\n /** @test {Slot#setClickUrl} */\n describe('#setClickUrl', () => {\n it('returns the slot', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n expect(slot.setClickUrl(clickUrl)).to.be(slot);\n });\n\n it('saves the click URL', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n slot.setClickUrl(clickUrl);\n expect(slot._clickUrl).to.be(clickUrl);\n });\n });\n\n /** @test {Slot#getClickUrl} */\n describe('#getClickUrl', () => {\n it('returns null if no click URL', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n expect(slot.getClickUrl()).to.be(null);\n });\n\n it('returns the previously set click URL', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n slot.setClickUrl(clickUrl);\n expect(slot.getClickUrl()).to.be(clickUrl);\n });\n });\n\n /** @test {Slot#getResponseInformation} */\n describe('#getResponseInformation', () => {\n it('returns null if no response information', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n expect(slot.getResponseInformation()).to.be(null);\n });\n\n it('returns previous response information if set', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n slot._responseInformation = info;\n expect(slot.getResponseInformation()).to.be(info);\n });\n });\n\n /** @test {Slot#setCollapseEmptyDiv} */\n describe('#setCollapseEmptyDiv', () => {\n it('returns the slot', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n expect(slot._options.collapseEmptyDiv).to.be(false);\n expect(slot._options.collapseBeforeAdFetch).to.be(false);\n expect(slot.setCollapseEmptyDiv(true)).to.be(slot);\n });\n\n it('saves the collapseEmptyDiv option', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n slot.setCollapseEmptyDiv(true);\n expect(slot._options.collapseEmptyDiv).to.be(true);\n });\n\n it('saves the collapseBeforeAdFetch option', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n slot.setCollapseEmptyDiv(true, true);\n expect(slot._options.collapseEmptyDiv).to.be(true);\n expect(slot._options.collapseBeforeAdFetch).to.be(true);\n });\n });\n\n /** @test {Slot#getCollapseEmptyDiv} */\n describe('#getCollapseEmptyDiv', () => {\n it('returns the collapseEmptyDiv options', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n expect(slot.getCollapseEmptyDiv()).to.be(false);\n slot.setCollapseEmptyDiv(true);\n expect(slot.getCollapseEmptyDiv()).to.be(true);\n });\n });\n\n /** @test {Slot#setForceSafeFrame} */\n describe('#setForceSafeFrame', () => {\n it('returns the slot', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n expect(slot.setForceSafeFrame(true)).to.be(slot);\n });\n\n it('saves the value', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n slot.setForceSafeFrame(true);\n expect(slot._options.forceSafeFrame).to.be(true);\n });\n });\n\n /** @test {Slot#setSafeFrameConfig} */\n describe('#setSafeFrameConfig', () => {\n it('returns the slot', () => {\n const allowOverlayExpansion = true;\n const allowPushExpansion = true;\n const sandbox = true;\n const config = new SafeFrameConfig(allowOverlayExpansion, allowPushExpansion, sandbox);\n const slot = new Slot(adUnitPath, size, optDiv);\n expect(slot.setSafeFrameConfig(config)).to.be(slot);\n });\n\n it('saves the config', () => {\n const allowOverlayExpansion = true;\n const allowPushExpansion = true;\n const sandbox = true;\n const config = new SafeFrameConfig(allowOverlayExpansion, allowPushExpansion, sandbox);\n const slot = new Slot(adUnitPath, size, optDiv);\n slot.setSafeFrameConfig(config);\n expect(slot._options.safeFrameConfig).to.eql(config);\n });\n });\n\n /** @test {Slot#fetchStarted} */\n describe('#fetchStarted', () => {\n it('clears the fetched option', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n slot._options.fetched = true;\n slot.fetchStarted();\n expect(slot._options.fetched).to.be(false);\n });\n });\n\n /** @test {Slot#fetchEnded} */\n describe('#fetchEnded', () => {\n it('sets the fetched option', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n expect(slot._options.fetched).to.be(false);\n slot.fetchStarted();\n slot.fetchEnded();\n expect(slot._options.fetched).to.be(true);\n });\n });\n\n /** @test {Slot#loaded} */\n describe('#loaded', () => {\n it('broadcasts the event', () => {\n const service = new Service(gt, 'test');\n const slot = new Slot(adUnitPath, size, optDiv).addService(service);\n const spy = sinon.spy();\n service.addEventListener('googletag.events.SlotOnloadEvent', spy);\n slot.loaded();\n expect(spy.called).to.be(true);\n expect(spy.calledWith(new SlotOnloadEvent(service.getName(), slot))).to.be(true);\n });\n });\n\n /** @test {Slot#renderStarted} */\n describe('#renderStarted', () => {\n it('clears the displayed option', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n slot._options.displayed = true;\n slot.renderStarted();\n expect(slot._options.displayed).to.be(false);\n });\n });\n\n /** @test {Slot#renderEnded} */\n describe('#renderEnded', () => {\n it('sets the displayed option', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n slot.renderStarted();\n slot.renderEnded();\n expect(slot._options.displayed).to.be(true);\n });\n\n it('sets the response information', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n slot.renderStarted();\n slot.renderEnded(info);\n expect(slot._responseInformation).to.be(info);\n });\n\n it('broadcasts an empty event if null', () => {\n const service = new Service(gt, 'test');\n const slot = new Slot(adUnitPath, size, optDiv).addService(service);\n const spy = sinon.spy();\n service.addEventListener('googletag.events.SlotRenderEndedEvent', spy);\n slot.renderStarted();\n slot.renderEnded(null);\n expect(spy.called).to.be(true);\n expect(spy.calledWith(new SlotRenderEndedEvent(service.getName(), slot,\n null, null, true, slot.getSizes()[0]))).to.be(true);\n });\n\n it('broadcasts a non-empty event if info provided', () => {\n const service = new Service(gt, 'test');\n const slot = new Slot(adUnitPath, size, optDiv).addService(service);\n const spy = sinon.spy();\n service.addEventListener('googletag.events.SlotRenderEndedEvent', spy);\n slot.renderStarted();\n slot.renderEnded(info);\n expect(spy.called).to.be(true);\n expect(spy.calledWith(new SlotRenderEndedEvent(service.getName(), slot,\n info.creativeId, info.lineItemId, false, slot.getSizes()[0]))).to.be(true);\n });\n });\n\n /** @test {Slot#impressionViewable} */\n describe('#impressionViewable', () => {\n it('broadcasts the event', () => {\n const service = new Service(gt, 'test');\n const slot = new Slot(adUnitPath, size, optDiv).addService(service);\n const spy = sinon.spy();\n service.addEventListener('googletag.events.ImpressionViewableEvent', spy);\n slot.impressionViewable();\n expect(spy.called).to.be(true);\n expect(spy.calledWith(new ImpressionViewableEvent(service.getName(), slot))).to.be(true);\n });\n });\n\n /** @test {Slot#visibilityChanged} */\n describe('#visibilityChanged', () => {\n it('saves the in-view percentage and broadcasts event', () => {\n const inViewPercentage = 23;\n const service = new Service(gt, 'test');\n const slot = new Slot(adUnitPath, size, optDiv).addService(service);\n const spy = sinon.spy();\n service.addEventListener('googletag.events.SlotVisibilityChangedEvent', spy);\n slot.visibilityChanged(inViewPercentage);\n expect(slot._options.inViewPercentage).to.be(inViewPercentage);\n expect(spy.called).to.be(true);\n expect(spy.calledWith(new SlotVisibilityChangedEvent(service.getName(), slot, inViewPercentage))).to.be(true);\n });\n\n it('does not re-broadcast event if no change', () => {\n const inViewPercentage = 23;\n const service = new Service(gt, 'test');\n const slot = new Slot(adUnitPath, size, optDiv).addService(service);\n const spy = sinon.spy();\n slot.visibilityChanged(inViewPercentage);\n service.addEventListener('googletag.events.SlotVisibilityChangedEvent', spy);\n expect(slot._options.inViewPercentage).to.be(inViewPercentage);\n slot.impressionViewable(inViewPercentage);\n expect(slot._options.inViewPercentage).to.be(inViewPercentage);\n expect(spy.called).to.be(false);\n });\n });\n\n /** @test {Slot#_refresh} */\n describe('#_refresh', () => {\n it('fetches the slot', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n expect(slot._options.fetched).to.be(false);\n slot._refresh();\n expect(slot._options.fetched).to.be(true);\n });\n\n it('increments a refresh counter', () => {\n const slot = new Slot(adUnitPath, size, optDiv);\n expect(slot._options.refreshed).to.be(0);\n slot._refresh();\n expect(slot._options.refreshed).to.be(1);\n });\n });\n\n /** @test {Slot#_clear} */\n describe('#_clear', () => {\n it('clears the content', () => {\n const content = 'CONTENT';\n const slot = new Slot(adUnitPath, size, optDiv);\n slot._setContent(content);\n slot._clear();\n expect(slot._options.content).to.be(null);\n });\n\n it('marks the slot as not fetched', () => {\n const content = 'CONTENT';\n const slot = new Slot(adUnitPath, size, optDiv);\n slot._setContent(content);\n slot._clear();\n expect(slot._options.fetched).to.be(false);\n });\n });\n\n /** @test {Slot#_setContent} */\n describe('#_setContent', () => {\n it('saves the content', () => {\n const content = 'CONTENT';\n const slot = new Slot(adUnitPath, size, optDiv);\n slot._setContent(content);\n expect(slot._options.content).to.be(content);\n });\n });\n\n /** @test {Slot#_getContent} */\n describe('#_getContent', () => {\n it('returns the content', () => {\n const content = 'CONTENT';\n const slot = new Slot(adUnitPath, size, optDiv);\n slot._setContent(content);\n expect(slot._getContent()).to.be(content);\n });\n });\n\n /** @test {Slot#_removeServices} */\n describe('#_removeServices', () => {\n it('removes all the services', () => {\n const service = new Service(gt, 'test');\n const slot = new Slot(adUnitPath, size, optDiv).addService(service);\n expect(slot.getServices()).to.be.an('array');\n expect(slot.getServices()).to.be.eql([service]);\n slot._removeServices();\n expect(slot.getServices()).to.be.an('array');\n expect(slot.getServices()).to.be.empty();\n });\n });\n\n});\n" }, { - "__docId__": 714, + "__docId__": 724, "kind": "testDescribe", "static": true, "variation": null, @@ -14143,7 +14400,7 @@ ] }, { - "__docId__": 715, + "__docId__": 725, "kind": "testDescribe", "static": true, "variation": null, @@ -14166,7 +14423,7 @@ ] }, { - "__docId__": 716, + "__docId__": 726, "kind": "testIt", "static": true, "variation": null, @@ -14180,7 +14437,7 @@ "lineNumber": 29 }, { - "__docId__": 717, + "__docId__": 727, "kind": "testDescribe", "static": true, "variation": null, @@ -14203,7 +14460,7 @@ ] }, { - "__docId__": 718, + "__docId__": 728, "kind": "testIt", "static": true, "variation": null, @@ -14217,7 +14474,7 @@ "lineNumber": 37 }, { - "__docId__": 719, + "__docId__": 729, "kind": "testDescribe", "static": true, "variation": null, @@ -14240,7 +14497,7 @@ ] }, { - "__docId__": 720, + "__docId__": 730, "kind": "testIt", "static": true, "variation": null, @@ -14254,7 +14511,7 @@ "lineNumber": 45 }, { - "__docId__": 721, + "__docId__": 731, "kind": "testDescribe", "static": true, "variation": null, @@ -14277,7 +14534,7 @@ ] }, { - "__docId__": 722, + "__docId__": 732, "kind": "testIt", "static": true, "variation": null, @@ -14291,7 +14548,7 @@ "lineNumber": 53 }, { - "__docId__": 723, + "__docId__": 733, "kind": "testDescribe", "static": true, "variation": null, @@ -14314,7 +14571,7 @@ ] }, { - "__docId__": 724, + "__docId__": 734, "kind": "testIt", "static": true, "variation": null, @@ -14328,7 +14585,7 @@ "lineNumber": 61 }, { - "__docId__": 725, + "__docId__": 735, "kind": "testIt", "static": true, "variation": null, @@ -14342,7 +14599,7 @@ "lineNumber": 66 }, { - "__docId__": 726, + "__docId__": 736, "kind": "testDescribe", "static": true, "variation": null, @@ -14365,7 +14622,7 @@ ] }, { - "__docId__": 727, + "__docId__": 737, "kind": "testIt", "static": true, "variation": null, @@ -14379,7 +14636,7 @@ "lineNumber": 74 }, { - "__docId__": 728, + "__docId__": 738, "kind": "testDescribe", "static": true, "variation": null, @@ -14402,7 +14659,7 @@ ] }, { - "__docId__": 729, + "__docId__": 739, "kind": "testIt", "static": true, "variation": null, @@ -14416,7 +14673,7 @@ "lineNumber": 84 }, { - "__docId__": 730, + "__docId__": 740, "kind": "testDescribe", "static": true, "variation": null, @@ -14439,7 +14696,7 @@ ] }, { - "__docId__": 731, + "__docId__": 741, "kind": "testIt", "static": true, "variation": null, @@ -14453,7 +14710,7 @@ "lineNumber": 97 }, { - "__docId__": 732, + "__docId__": 742, "kind": "testDescribe", "static": true, "variation": null, @@ -14476,7 +14733,7 @@ ] }, { - "__docId__": 733, + "__docId__": 743, "kind": "testIt", "static": true, "variation": null, @@ -14490,7 +14747,7 @@ "lineNumber": 108 }, { - "__docId__": 734, + "__docId__": 744, "kind": "testIt", "static": true, "variation": null, @@ -14504,7 +14761,7 @@ "lineNumber": 113 }, { - "__docId__": 735, + "__docId__": 745, "kind": "testIt", "static": true, "variation": null, @@ -14518,7 +14775,7 @@ "lineNumber": 119 }, { - "__docId__": 736, + "__docId__": 746, "kind": "testDescribe", "static": true, "variation": null, @@ -14541,7 +14798,7 @@ ] }, { - "__docId__": 737, + "__docId__": 747, "kind": "testIt", "static": true, "variation": null, @@ -14555,7 +14812,7 @@ "lineNumber": 147 }, { - "__docId__": 738, + "__docId__": 748, "kind": "testDescribe", "static": true, "variation": null, @@ -14578,7 +14835,7 @@ ] }, { - "__docId__": 739, + "__docId__": 749, "kind": "testIt", "static": true, "variation": null, @@ -14592,7 +14849,7 @@ "lineNumber": 159 }, { - "__docId__": 740, + "__docId__": 750, "kind": "testDescribe", "static": true, "variation": null, @@ -14615,7 +14872,7 @@ ] }, { - "__docId__": 741, + "__docId__": 751, "kind": "testIt", "static": true, "variation": null, @@ -14629,7 +14886,7 @@ "lineNumber": 170 }, { - "__docId__": 742, + "__docId__": 752, "kind": "testIt", "static": true, "variation": null, @@ -14643,7 +14900,7 @@ "lineNumber": 175 }, { - "__docId__": 743, + "__docId__": 753, "kind": "testDescribe", "static": true, "variation": null, @@ -14666,7 +14923,7 @@ ] }, { - "__docId__": 744, + "__docId__": 754, "kind": "testIt", "static": true, "variation": null, @@ -14680,7 +14937,7 @@ "lineNumber": 184 }, { - "__docId__": 745, + "__docId__": 755, "kind": "testIt", "static": true, "variation": null, @@ -14694,7 +14951,7 @@ "lineNumber": 189 }, { - "__docId__": 746, + "__docId__": 756, "kind": "testDescribe", "static": true, "variation": null, @@ -14717,7 +14974,7 @@ ] }, { - "__docId__": 747, + "__docId__": 757, "kind": "testIt", "static": true, "variation": null, @@ -14731,7 +14988,7 @@ "lineNumber": 198 }, { - "__docId__": 748, + "__docId__": 758, "kind": "testIt", "static": true, "variation": null, @@ -14745,7 +15002,7 @@ "lineNumber": 204 }, { - "__docId__": 749, + "__docId__": 759, "kind": "testDescribe", "static": true, "variation": null, @@ -14768,7 +15025,7 @@ ] }, { - "__docId__": 750, + "__docId__": 760, "kind": "testIt", "static": true, "variation": null, @@ -14782,7 +15039,7 @@ "lineNumber": 214 }, { - "__docId__": 751, + "__docId__": 761, "kind": "testIt", "static": true, "variation": null, @@ -14796,7 +15053,7 @@ "lineNumber": 220 }, { - "__docId__": 752, + "__docId__": 762, "kind": "testDescribe", "static": true, "variation": null, @@ -14819,7 +15076,7 @@ ] }, { - "__docId__": 753, + "__docId__": 763, "kind": "testIt", "static": true, "variation": null, @@ -14833,7 +15090,7 @@ "lineNumber": 231 }, { - "__docId__": 754, + "__docId__": 764, "kind": "testDescribe", "static": true, "variation": null, @@ -14856,7 +15113,7 @@ ] }, { - "__docId__": 755, + "__docId__": 765, "kind": "testIt", "static": true, "variation": null, @@ -14870,7 +15127,7 @@ "lineNumber": 245 }, { - "__docId__": 756, + "__docId__": 766, "kind": "testIt", "static": true, "variation": null, @@ -14884,7 +15141,7 @@ "lineNumber": 250 }, { - "__docId__": 757, + "__docId__": 767, "kind": "testIt", "static": true, "variation": null, @@ -14898,7 +15155,7 @@ "lineNumber": 257 }, { - "__docId__": 758, + "__docId__": 768, "kind": "testIt", "static": true, "variation": null, @@ -14912,7 +15169,7 @@ "lineNumber": 264 }, { - "__docId__": 759, + "__docId__": 769, "kind": "testDescribe", "static": true, "variation": null, @@ -14935,7 +15192,7 @@ ] }, { - "__docId__": 760, + "__docId__": 770, "kind": "testIt", "static": true, "variation": null, @@ -14949,7 +15206,7 @@ "lineNumber": 277 }, { - "__docId__": 761, + "__docId__": 771, "kind": "testIt", "static": true, "variation": null, @@ -14963,7 +15220,7 @@ "lineNumber": 282 }, { - "__docId__": 762, + "__docId__": 772, "kind": "testIt", "static": true, "variation": null, @@ -14977,7 +15234,7 @@ "lineNumber": 294 }, { - "__docId__": 763, + "__docId__": 773, "kind": "testDescribe", "static": true, "variation": null, @@ -15000,7 +15257,7 @@ ] }, { - "__docId__": 764, + "__docId__": 774, "kind": "testIt", "static": true, "variation": null, @@ -15014,7 +15271,7 @@ "lineNumber": 310 }, { - "__docId__": 765, + "__docId__": 775, "kind": "testIt", "static": true, "variation": null, @@ -15028,7 +15285,7 @@ "lineNumber": 315 }, { - "__docId__": 766, + "__docId__": 776, "kind": "testDescribe", "static": true, "variation": null, @@ -15051,7 +15308,7 @@ ] }, { - "__docId__": 767, + "__docId__": 777, "kind": "testIt", "static": true, "variation": null, @@ -15065,7 +15322,7 @@ "lineNumber": 328 }, { - "__docId__": 768, + "__docId__": 778, "kind": "testIt", "static": true, "variation": null, @@ -15079,7 +15336,7 @@ "lineNumber": 334 }, { - "__docId__": 769, + "__docId__": 779, "kind": "testIt", "static": true, "variation": null, @@ -15093,7 +15350,7 @@ "lineNumber": 343 }, { - "__docId__": 770, + "__docId__": 780, "kind": "testDescribe", "static": true, "variation": null, @@ -15116,7 +15373,7 @@ ] }, { - "__docId__": 771, + "__docId__": 781, "kind": "testIt", "static": true, "variation": null, @@ -15130,7 +15387,7 @@ "lineNumber": 354 }, { - "__docId__": 772, + "__docId__": 782, "kind": "testIt", "static": true, "variation": null, @@ -15144,7 +15401,7 @@ "lineNumber": 360 }, { - "__docId__": 773, + "__docId__": 783, "kind": "testDescribe", "static": true, "variation": null, @@ -15167,7 +15424,7 @@ ] }, { - "__docId__": 774, + "__docId__": 784, "kind": "testIt", "static": true, "variation": null, @@ -15181,7 +15438,7 @@ "lineNumber": 371 }, { - "__docId__": 775, + "__docId__": 785, "kind": "testIt", "static": true, "variation": null, @@ -15195,7 +15452,7 @@ "lineNumber": 376 }, { - "__docId__": 776, + "__docId__": 786, "kind": "testDescribe", "static": true, "variation": null, @@ -15218,7 +15475,7 @@ ] }, { - "__docId__": 777, + "__docId__": 787, "kind": "testIt", "static": true, "variation": null, @@ -15232,7 +15489,7 @@ "lineNumber": 389 }, { - "__docId__": 778, + "__docId__": 788, "kind": "testIt", "static": true, "variation": null, @@ -15246,7 +15503,7 @@ "lineNumber": 394 }, { - "__docId__": 779, + "__docId__": 789, "kind": "testDescribe", "static": true, "variation": null, @@ -15269,7 +15526,7 @@ ] }, { - "__docId__": 780, + "__docId__": 790, "kind": "testIt", "static": true, "variation": null, @@ -15283,7 +15540,7 @@ "lineNumber": 407 }, { - "__docId__": 781, + "__docId__": 791, "kind": "testIt", "static": true, "variation": null, @@ -15297,7 +15554,7 @@ "lineNumber": 412 }, { - "__docId__": 782, + "__docId__": 792, "kind": "testIt", "static": true, "variation": null, @@ -15311,7 +15568,7 @@ "lineNumber": 419 }, { - "__docId__": 783, + "__docId__": 793, "kind": "testDescribe", "static": true, "variation": null, @@ -15334,7 +15591,7 @@ ] }, { - "__docId__": 784, + "__docId__": 794, "kind": "testIt", "static": true, "variation": null, @@ -15348,7 +15605,7 @@ "lineNumber": 429 }, { - "__docId__": 785, + "__docId__": 795, "kind": "testIt", "static": true, "variation": null, @@ -15362,7 +15619,7 @@ "lineNumber": 434 }, { - "__docId__": 786, + "__docId__": 796, "kind": "testDescribe", "static": true, "variation": null, @@ -15385,7 +15642,7 @@ ] }, { - "__docId__": 787, + "__docId__": 797, "kind": "testIt", "static": true, "variation": null, @@ -15399,7 +15656,7 @@ "lineNumber": 443 }, { - "__docId__": 788, + "__docId__": 798, "kind": "testIt", "static": true, "variation": null, @@ -15413,7 +15670,7 @@ "lineNumber": 448 }, { - "__docId__": 789, + "__docId__": 799, "kind": "testDescribe", "static": true, "variation": null, @@ -15436,7 +15693,7 @@ ] }, { - "__docId__": 790, + "__docId__": 800, "kind": "testIt", "static": true, "variation": null, @@ -15450,7 +15707,7 @@ "lineNumber": 457 }, { - "__docId__": 791, + "__docId__": 801, "kind": "testIt", "static": true, "variation": null, @@ -15464,7 +15721,7 @@ "lineNumber": 462 }, { - "__docId__": 792, + "__docId__": 802, "kind": "testDescribe", "static": true, "variation": null, @@ -15487,7 +15744,7 @@ ] }, { - "__docId__": 793, + "__docId__": 803, "kind": "testIt", "static": true, "variation": null, @@ -15501,7 +15758,7 @@ "lineNumber": 471 }, { - "__docId__": 794, + "__docId__": 804, "kind": "testIt", "static": true, "variation": null, @@ -15515,7 +15772,7 @@ "lineNumber": 478 }, { - "__docId__": 795, + "__docId__": 805, "kind": "testIt", "static": true, "variation": null, @@ -15529,7 +15786,7 @@ "lineNumber": 484 }, { - "__docId__": 796, + "__docId__": 806, "kind": "testDescribe", "static": true, "variation": null, @@ -15552,7 +15809,7 @@ ] }, { - "__docId__": 797, + "__docId__": 807, "kind": "testIt", "static": true, "variation": null, @@ -15566,7 +15823,7 @@ "lineNumber": 494 }, { - "__docId__": 798, + "__docId__": 808, "kind": "testDescribe", "static": true, "variation": null, @@ -15589,7 +15846,7 @@ ] }, { - "__docId__": 799, + "__docId__": 809, "kind": "testIt", "static": true, "variation": null, @@ -15603,7 +15860,7 @@ "lineNumber": 504 }, { - "__docId__": 800, + "__docId__": 810, "kind": "testIt", "static": true, "variation": null, @@ -15617,7 +15874,7 @@ "lineNumber": 509 }, { - "__docId__": 801, + "__docId__": 811, "kind": "testDescribe", "static": true, "variation": null, @@ -15640,7 +15897,7 @@ ] }, { - "__docId__": 802, + "__docId__": 812, "kind": "testIt", "static": true, "variation": null, @@ -15654,7 +15911,7 @@ "lineNumber": 518 }, { - "__docId__": 803, + "__docId__": 813, "kind": "testIt", "static": true, "variation": null, @@ -15668,7 +15925,7 @@ "lineNumber": 527 }, { - "__docId__": 804, + "__docId__": 814, "kind": "testDescribe", "static": true, "variation": null, @@ -15691,7 +15948,7 @@ ] }, { - "__docId__": 805, + "__docId__": 815, "kind": "testIt", "static": true, "variation": null, @@ -15705,7 +15962,7 @@ "lineNumber": 540 }, { - "__docId__": 806, + "__docId__": 816, "kind": "testDescribe", "static": true, "variation": null, @@ -15728,7 +15985,7 @@ ] }, { - "__docId__": 807, + "__docId__": 817, "kind": "testIt", "static": true, "variation": null, @@ -15742,7 +15999,7 @@ "lineNumber": 550 }, { - "__docId__": 808, + "__docId__": 818, "kind": "testDescribe", "static": true, "variation": null, @@ -15765,7 +16022,7 @@ ] }, { - "__docId__": 809, + "__docId__": 819, "kind": "testIt", "static": true, "variation": null, @@ -15779,7 +16036,7 @@ "lineNumber": 561 }, { - "__docId__": 810, + "__docId__": 820, "kind": "testDescribe", "static": true, "variation": null, @@ -15802,7 +16059,7 @@ ] }, { - "__docId__": 811, + "__docId__": 821, "kind": "testIt", "static": true, "variation": null, @@ -15816,7 +16073,7 @@ "lineNumber": 574 }, { - "__docId__": 812, + "__docId__": 822, "kind": "testDescribe", "static": true, "variation": null, @@ -15839,7 +16096,7 @@ ] }, { - "__docId__": 813, + "__docId__": 823, "kind": "testIt", "static": true, "variation": null, @@ -15853,7 +16110,7 @@ "lineNumber": 584 }, { - "__docId__": 814, + "__docId__": 824, "kind": "testIt", "static": true, "variation": null, @@ -15867,7 +16124,7 @@ "lineNumber": 591 }, { - "__docId__": 815, + "__docId__": 825, "kind": "testIt", "static": true, "variation": null, @@ -15881,7 +16138,7 @@ "lineNumber": 598 }, { - "__docId__": 816, + "__docId__": 826, "kind": "testIt", "static": true, "variation": null, @@ -15895,7 +16152,7 @@ "lineNumber": 610 }, { - "__docId__": 817, + "__docId__": 827, "kind": "testDescribe", "static": true, "variation": null, @@ -15918,7 +16175,7 @@ ] }, { - "__docId__": 818, + "__docId__": 828, "kind": "testIt", "static": true, "variation": null, @@ -15932,7 +16189,7 @@ "lineNumber": 625 }, { - "__docId__": 819, + "__docId__": 829, "kind": "testDescribe", "static": true, "variation": null, @@ -15955,7 +16212,7 @@ ] }, { - "__docId__": 820, + "__docId__": 830, "kind": "testIt", "static": true, "variation": null, @@ -15969,7 +16226,7 @@ "lineNumber": 638 }, { - "__docId__": 821, + "__docId__": 831, "kind": "testIt", "static": true, "variation": null, @@ -15983,7 +16240,7 @@ "lineNumber": 650 }, { - "__docId__": 822, + "__docId__": 832, "kind": "testDescribe", "static": true, "variation": null, @@ -16006,7 +16263,7 @@ ] }, { - "__docId__": 823, + "__docId__": 833, "kind": "testIt", "static": true, "variation": null, @@ -16020,7 +16277,7 @@ "lineNumber": 666 }, { - "__docId__": 824, + "__docId__": 834, "kind": "testIt", "static": true, "variation": null, @@ -16034,7 +16291,7 @@ "lineNumber": 673 }, { - "__docId__": 825, + "__docId__": 835, "kind": "testDescribe", "static": true, "variation": null, @@ -16057,7 +16314,7 @@ ] }, { - "__docId__": 826, + "__docId__": 836, "kind": "testIt", "static": true, "variation": null, @@ -16071,7 +16328,7 @@ "lineNumber": 683 }, { - "__docId__": 827, + "__docId__": 837, "kind": "testIt", "static": true, "variation": null, @@ -16085,7 +16342,7 @@ "lineNumber": 691 }, { - "__docId__": 828, + "__docId__": 838, "kind": "testDescribe", "static": true, "variation": null, @@ -16108,7 +16365,7 @@ ] }, { - "__docId__": 829, + "__docId__": 839, "kind": "testIt", "static": true, "variation": null, @@ -16122,7 +16379,7 @@ "lineNumber": 702 }, { - "__docId__": 830, + "__docId__": 840, "kind": "testDescribe", "static": true, "variation": null, @@ -16145,7 +16402,7 @@ ] }, { - "__docId__": 831, + "__docId__": 841, "kind": "testIt", "static": true, "variation": null, @@ -16159,7 +16416,7 @@ "lineNumber": 712 }, { - "__docId__": 832, + "__docId__": 842, "kind": "testDescribe", "static": true, "variation": null, @@ -16182,7 +16439,7 @@ ] }, { - "__docId__": 833, + "__docId__": 843, "kind": "testIt", "static": true, "variation": null, @@ -16196,7 +16453,7 @@ "lineNumber": 722 }, { - "__docId__": 834, + "__docId__": 844, "kind": "testFile", "static": true, "variation": null, @@ -16209,7 +16466,7 @@ "content": "import SlotId from '../../src/SlotId';\n\n/** @test {SlotId} */\ndescribe('SlotId', () => {\n const adUnitPath = '/Test/12345';\n const instance = 123;\n const optDomId = 'gpt-div-123';\n\n /** @test {SlotId#constructor} */\n describe('#constructor', () => {\n it('constructs', () => {\n const slotId = new SlotId(adUnitPath, instance, optDomId);\n expect(slotId).to.be.ok();\n expect(slotId).to.have.property('_adUnitPath', adUnitPath);\n expect(slotId).to.have.property('_instance', instance);\n expect(slotId).to.have.property('_domId', optDomId);\n });\n\n it('generates a dom ID if required', () => {\n const slotId = new SlotId(adUnitPath, instance);\n expect(slotId).to.be.ok();\n expect(slotId).to.have.property('_adUnitPath', adUnitPath);\n expect(slotId).to.have.property('_instance', instance);\n expect(slotId).to.have.property('_domId', 'gpt_unit_/Test/12345_123');\n });\n });\n\n /** @test {SlotId#getId} */\n describe('#getId', () => {\n it('returns the identifier', () => {\n const slotId = new SlotId(adUnitPath, instance, optDomId);\n expect(slotId.getId()).to.be(`${adUnitPath}_${instance}`);\n });\n });\n\n /** @test {SlotId#getInstance} */\n describe('#getInstance', () => {\n it('returns the instance', () => {\n const slotId = new SlotId(adUnitPath, instance, optDomId);\n expect(slotId.getInstance()).to.be(instance);\n });\n });\n\n /** @test {SlotId#getName} */\n describe('#getName', () => {\n it('returns the AdUnitPath', () => {\n const slotId = new SlotId(adUnitPath, instance, optDomId);\n expect(slotId.getName()).to.be(adUnitPath);\n });\n });\n\n /** @test {SlotId#getAdUnitPath} */\n describe('#getAdUnitPath', () => {\n it('returns the AdUnitPath', () => {\n const slotId = new SlotId(adUnitPath, instance, optDomId);\n expect(slotId.getAdUnitPath()).to.be(adUnitPath);\n });\n });\n\n /** @test {SlotId#getDomId} */\n describe('#getDomId', () => {\n it('returns the DOM ID passed in', () => {\n const slotId = new SlotId(adUnitPath, instance, optDomId);\n expect(slotId.getDomId()).to.be(optDomId);\n });\n\n it('returns the generated DOM ID', () => {\n const slotId = new SlotId(adUnitPath, instance);\n expect(slotId.getDomId()).to.be('gpt_unit_/Test/12345_123');\n });\n });\n\n /** @test {SlotId#toString} */\n describe('#toString', () => {\n it('returns the identifier', () => {\n const slotId = new SlotId(adUnitPath, instance, optDomId);\n expect(slotId.toString()).to.be(`${adUnitPath}_${instance}`);\n });\n });\n});\n" }, { - "__docId__": 835, + "__docId__": 845, "kind": "testDescribe", "static": true, "variation": null, @@ -16232,7 +16489,7 @@ ] }, { - "__docId__": 836, + "__docId__": 846, "kind": "testDescribe", "static": true, "variation": null, @@ -16255,7 +16512,7 @@ ] }, { - "__docId__": 837, + "__docId__": 847, "kind": "testIt", "static": true, "variation": null, @@ -16269,7 +16526,7 @@ "lineNumber": 11 }, { - "__docId__": 838, + "__docId__": 848, "kind": "testIt", "static": true, "variation": null, @@ -16283,7 +16540,7 @@ "lineNumber": 19 }, { - "__docId__": 839, + "__docId__": 849, "kind": "testDescribe", "static": true, "variation": null, @@ -16306,7 +16563,7 @@ ] }, { - "__docId__": 840, + "__docId__": 850, "kind": "testIt", "static": true, "variation": null, @@ -16320,7 +16577,7 @@ "lineNumber": 30 }, { - "__docId__": 841, + "__docId__": 851, "kind": "testDescribe", "static": true, "variation": null, @@ -16343,7 +16600,7 @@ ] }, { - "__docId__": 842, + "__docId__": 852, "kind": "testIt", "static": true, "variation": null, @@ -16357,7 +16614,7 @@ "lineNumber": 38 }, { - "__docId__": 843, + "__docId__": 853, "kind": "testDescribe", "static": true, "variation": null, @@ -16380,7 +16637,7 @@ ] }, { - "__docId__": 844, + "__docId__": 854, "kind": "testIt", "static": true, "variation": null, @@ -16394,7 +16651,7 @@ "lineNumber": 46 }, { - "__docId__": 845, + "__docId__": 855, "kind": "testDescribe", "static": true, "variation": null, @@ -16417,7 +16674,7 @@ ] }, { - "__docId__": 846, + "__docId__": 856, "kind": "testIt", "static": true, "variation": null, @@ -16431,95 +16688,386 @@ "lineNumber": 54 }, { - "__docId__": 847, + "__docId__": 857, + "kind": "testDescribe", + "static": true, + "variation": null, + "name": "describe461", + "testId": 461, + "memberof": "unit/SlotId.spec.js~describe449", + "testDepth": 1, + "longname": "unit/SlotId.spec.js~describe449.describe461", + "access": null, + "description": "#getDomId", + "lineNumber": 61, + "unknown": [ + { + "tagName": "@test", + "tagValue": "{SlotId#getDomId}" + } + ], + "testTargets": [ + "SlotId#getDomId" + ] + }, + { + "__docId__": 858, + "kind": "testIt", + "static": true, + "variation": null, + "name": "it462", + "testId": 462, + "memberof": "unit/SlotId.spec.js~describe449.describe461", + "testDepth": 2, + "longname": "unit/SlotId.spec.js~describe449.describe461.it462", + "access": null, + "description": "returns the DOM ID passed in", + "lineNumber": 62 + }, + { + "__docId__": 859, + "kind": "testIt", + "static": true, + "variation": null, + "name": "it463", + "testId": 463, + "memberof": "unit/SlotId.spec.js~describe449.describe461", + "testDepth": 2, + "longname": "unit/SlotId.spec.js~describe449.describe461.it463", + "access": null, + "description": "returns the generated DOM ID", + "lineNumber": 67 + }, + { + "__docId__": 860, + "kind": "testDescribe", + "static": true, + "variation": null, + "name": "describe464", + "testId": 464, + "memberof": "unit/SlotId.spec.js~describe449", + "testDepth": 1, + "longname": "unit/SlotId.spec.js~describe449.describe464", + "access": null, + "description": "#toString", + "lineNumber": 74, + "unknown": [ + { + "tagName": "@test", + "tagValue": "{SlotId#toString}" + } + ], + "testTargets": [ + "SlotId#toString" + ] + }, + { + "__docId__": 861, + "kind": "testIt", + "static": true, + "variation": null, + "name": "it465", + "testId": 465, + "memberof": "unit/SlotId.spec.js~describe449.describe464", + "testDepth": 2, + "longname": "unit/SlotId.spec.js~describe449.describe464.it465", + "access": null, + "description": "returns the identifier", + "lineNumber": 75 + }, + { + "__docId__": 862, + "kind": "testFile", + "static": true, + "variation": null, + "name": "unit/TargetingMap.spec.js", + "memberof": null, + "longname": "unit/TargetingMap.spec.js", + "access": null, + "description": null, + "lineNumber": 1, + "content": "import TargetingMap from '../../src/TargetingMap';\n\n/** @test {TargetingMap} */\ndescribe('TargetingMap', () => {\n /** @test {TargetingMap#get} */\n describe('#get', () => {\n it('returns empty array if not set', () => {\n const map = new TargetingMap();\n expect(map.get('kv1')).to.be.an('array');\n expect(map.get('kv1')).to.be.empty();\n });\n\n it('returns the value (as an array) if set', () => {\n const map = new TargetingMap();\n map.set('kv1', 'value');\n expect(map.get('kv1')).to.be.an('array');\n expect(map.get('kv1')).to.eql(['value']);\n });\n });\n\n /** @test {TargetingMap#keys} */\n describe('#keys', () => {\n it('returns empty array if no keys', () => {\n const map = new TargetingMap();\n expect(map.keys()).to.be.an('array');\n expect(map.keys()).to.be.empty();\n });\n\n it('returns array of keys', () => {\n const map = new TargetingMap();\n map.set('kv1', 'value1');\n map.set('kv2', 'value2');\n expect(map.keys()).to.be.an('array');\n expect(map.keys()).to.eql(['kv1', 'kv2']);\n });\n });\n\n /** @test {TargetingMap#all} */\n describe('all', () => {\n it('returns the targeting map', () => {\n const map = new TargetingMap();\n map.set('kv1', 'value1');\n map.set('kv2', 'value2');\n expect(map.all()).to.be.an('object');\n expect(map.all()).to.eql({\n kv1: ['value1'],\n kv2: ['value2']\n });\n });\n });\n\n /** @test {TargetingMap#set} */\n describe('#set', () => {\n it('saves the value', () => {\n const map = new TargetingMap();\n map.set('kv1', 'value');\n expect(map.get('kv1')).to.be.an('array');\n expect(map.get('kv1')).to.eql(['value']);\n });\n\n it('saves the array value', () => {\n const map = new TargetingMap();\n map.set('kv1', ['value']);\n expect(map.get('kv1')).to.be.an('array');\n expect(map.get('kv1')).to.eql(['value']);\n });\n\n it('overwrites the previous value', () => {\n const map = new TargetingMap();\n map.set('kv1', 'value1');\n expect(map.get('kv1')).to.be.an('array');\n expect(map.get('kv1')).to.eql(['value1']);\n map.set('kv1', 'value2');\n expect(map.get('kv1')).to.be.an('array');\n expect(map.get('kv1')).to.eql(['value2']);\n });\n });\n\n /** @test {TargetingMap#clear} */\n describe('#clear', () => {\n it('clears all targeting', () => {\n const map = new TargetingMap();\n map.set('kv1', 'value1');\n map.set('kv2', 'value2');\n expect(map.get('kv1')).to.be.an('array');\n expect(map.get('kv1')).to.eql(['value1']);\n expect(map.get('kv2')).to.be.an('array');\n expect(map.get('kv2')).to.eql(['value2']);\n map.clear();\n expect(map.get('kv1')).to.be.an('array');\n expect(map.get('kv1')).to.empty();\n expect(map.get('kv2')).to.be.an('array');\n expect(map.get('kv2')).to.empty();\n });\n\n it('clears specific targeting', () => {\n const map = new TargetingMap();\n map.set('kv1', 'value1');\n map.set('kv2', 'value2');\n expect(map.get('kv1')).to.be.an('array');\n expect(map.get('kv1')).to.eql(['value1']);\n expect(map.get('kv2')).to.be.an('array');\n expect(map.get('kv2')).to.eql(['value2']);\n map.clear('kv2');\n expect(map.get('kv1')).to.be.an('array');\n expect(map.get('kv1')).to.eql(['value1']);\n expect(map.get('kv2')).to.be.an('array');\n expect(map.get('kv2')).to.empty();\n });\n });\n});\n" + }, + { + "__docId__": 863, + "kind": "testDescribe", + "static": true, + "variation": null, + "name": "describe466", + "testId": 466, + "memberof": "unit/TargetingMap.spec.js", + "testDepth": 0, + "longname": "unit/TargetingMap.spec.js~describe466", + "access": null, + "description": "TargetingMap", + "lineNumber": 4, + "unknown": [ + { + "tagName": "@test", + "tagValue": "{TargetingMap}" + } + ], + "testTargets": [ + "TargetingMap" + ] + }, + { + "__docId__": 864, + "kind": "testDescribe", + "static": true, + "variation": null, + "name": "describe467", + "testId": 467, + "memberof": "unit/TargetingMap.spec.js~describe466", + "testDepth": 1, + "longname": "unit/TargetingMap.spec.js~describe466.describe467", + "access": null, + "description": "#get", + "lineNumber": 6, + "unknown": [ + { + "tagName": "@test", + "tagValue": "{TargetingMap#get}" + } + ], + "testTargets": [ + "TargetingMap#get" + ] + }, + { + "__docId__": 865, + "kind": "testIt", + "static": true, + "variation": null, + "name": "it468", + "testId": 468, + "memberof": "unit/TargetingMap.spec.js~describe466.describe467", + "testDepth": 2, + "longname": "unit/TargetingMap.spec.js~describe466.describe467.it468", + "access": null, + "description": "returns empty array if not set", + "lineNumber": 7 + }, + { + "__docId__": 866, + "kind": "testIt", + "static": true, + "variation": null, + "name": "it469", + "testId": 469, + "memberof": "unit/TargetingMap.spec.js~describe466.describe467", + "testDepth": 2, + "longname": "unit/TargetingMap.spec.js~describe466.describe467.it469", + "access": null, + "description": "returns the value (as an array) if set", + "lineNumber": 13 + }, + { + "__docId__": 867, + "kind": "testDescribe", + "static": true, + "variation": null, + "name": "describe470", + "testId": 470, + "memberof": "unit/TargetingMap.spec.js~describe466", + "testDepth": 1, + "longname": "unit/TargetingMap.spec.js~describe466.describe470", + "access": null, + "description": "#keys", + "lineNumber": 22, + "unknown": [ + { + "tagName": "@test", + "tagValue": "{TargetingMap#keys}" + } + ], + "testTargets": [ + "TargetingMap#keys" + ] + }, + { + "__docId__": 868, + "kind": "testIt", + "static": true, + "variation": null, + "name": "it471", + "testId": 471, + "memberof": "unit/TargetingMap.spec.js~describe466.describe470", + "testDepth": 2, + "longname": "unit/TargetingMap.spec.js~describe466.describe470.it471", + "access": null, + "description": "returns empty array if no keys", + "lineNumber": 23 + }, + { + "__docId__": 869, + "kind": "testIt", + "static": true, + "variation": null, + "name": "it472", + "testId": 472, + "memberof": "unit/TargetingMap.spec.js~describe466.describe470", + "testDepth": 2, + "longname": "unit/TargetingMap.spec.js~describe466.describe470.it472", + "access": null, + "description": "returns array of keys", + "lineNumber": 29 + }, + { + "__docId__": 870, + "kind": "testDescribe", + "static": true, + "variation": null, + "name": "describe473", + "testId": 473, + "memberof": "unit/TargetingMap.spec.js~describe466", + "testDepth": 1, + "longname": "unit/TargetingMap.spec.js~describe466.describe473", + "access": null, + "description": "all", + "lineNumber": 39, + "unknown": [ + { + "tagName": "@test", + "tagValue": "{TargetingMap#all}" + } + ], + "testTargets": [ + "TargetingMap#all" + ] + }, + { + "__docId__": 871, + "kind": "testIt", + "static": true, + "variation": null, + "name": "it474", + "testId": 474, + "memberof": "unit/TargetingMap.spec.js~describe466.describe473", + "testDepth": 2, + "longname": "unit/TargetingMap.spec.js~describe466.describe473.it474", + "access": null, + "description": "returns the targeting map", + "lineNumber": 40 + }, + { + "__docId__": 872, "kind": "testDescribe", "static": true, "variation": null, - "name": "describe461", - "testId": 461, - "memberof": "unit/SlotId.spec.js~describe449", + "name": "describe475", + "testId": 475, + "memberof": "unit/TargetingMap.spec.js~describe466", "testDepth": 1, - "longname": "unit/SlotId.spec.js~describe449.describe461", + "longname": "unit/TargetingMap.spec.js~describe466.describe475", "access": null, - "description": "#getDomId", - "lineNumber": 61, + "description": "#set", + "lineNumber": 53, "unknown": [ { "tagName": "@test", - "tagValue": "{SlotId#getDomId}" + "tagValue": "{TargetingMap#set}" } ], "testTargets": [ - "SlotId#getDomId" + "TargetingMap#set" ] }, { - "__docId__": 848, + "__docId__": 873, "kind": "testIt", "static": true, "variation": null, - "name": "it462", - "testId": 462, - "memberof": "unit/SlotId.spec.js~describe449.describe461", + "name": "it476", + "testId": 476, + "memberof": "unit/TargetingMap.spec.js~describe466.describe475", "testDepth": 2, - "longname": "unit/SlotId.spec.js~describe449.describe461.it462", + "longname": "unit/TargetingMap.spec.js~describe466.describe475.it476", "access": null, - "description": "returns the DOM ID passed in", - "lineNumber": 62 + "description": "saves the value", + "lineNumber": 54 }, { - "__docId__": 849, + "__docId__": 874, "kind": "testIt", "static": true, "variation": null, - "name": "it463", - "testId": 463, - "memberof": "unit/SlotId.spec.js~describe449.describe461", + "name": "it477", + "testId": 477, + "memberof": "unit/TargetingMap.spec.js~describe466.describe475", "testDepth": 2, - "longname": "unit/SlotId.spec.js~describe449.describe461.it463", + "longname": "unit/TargetingMap.spec.js~describe466.describe475.it477", "access": null, - "description": "returns the generated DOM ID", - "lineNumber": 67 + "description": "saves the array value", + "lineNumber": 61 }, { - "__docId__": 850, + "__docId__": 875, + "kind": "testIt", + "static": true, + "variation": null, + "name": "it478", + "testId": 478, + "memberof": "unit/TargetingMap.spec.js~describe466.describe475", + "testDepth": 2, + "longname": "unit/TargetingMap.spec.js~describe466.describe475.it478", + "access": null, + "description": "overwrites the previous value", + "lineNumber": 68 + }, + { + "__docId__": 876, "kind": "testDescribe", "static": true, "variation": null, - "name": "describe464", - "testId": 464, - "memberof": "unit/SlotId.spec.js~describe449", + "name": "describe479", + "testId": 479, + "memberof": "unit/TargetingMap.spec.js~describe466", "testDepth": 1, - "longname": "unit/SlotId.spec.js~describe449.describe464", + "longname": "unit/TargetingMap.spec.js~describe466.describe479", "access": null, - "description": "#toString", - "lineNumber": 74, + "description": "#clear", + "lineNumber": 80, "unknown": [ { "tagName": "@test", - "tagValue": "{SlotId#toString}" + "tagValue": "{TargetingMap#clear}" } ], "testTargets": [ - "SlotId#toString" + "TargetingMap#clear" ] }, { - "__docId__": 851, + "__docId__": 877, "kind": "testIt", "static": true, "variation": null, - "name": "it465", - "testId": 465, - "memberof": "unit/SlotId.spec.js~describe449.describe464", + "name": "it480", + "testId": 480, + "memberof": "unit/TargetingMap.spec.js~describe466.describe479", "testDepth": 2, - "longname": "unit/SlotId.spec.js~describe449.describe464.it465", + "longname": "unit/TargetingMap.spec.js~describe466.describe479.it480", "access": null, - "description": "returns the identifier", - "lineNumber": 75 + "description": "clears all targeting", + "lineNumber": 81 }, { - "__docId__": 852, + "__docId__": 878, + "kind": "testIt", + "static": true, + "variation": null, + "name": "it481", + "testId": 481, + "memberof": "unit/TargetingMap.spec.js~describe466.describe479", + "testDepth": 2, + "longname": "unit/TargetingMap.spec.js~describe466.describe479.it481", + "access": null, + "description": "clears specific targeting", + "lineNumber": 96 + }, + { + "__docId__": 879, "kind": "testFile", "static": true, "variation": null, @@ -16532,15 +17080,15 @@ "content": "import ImpressionViewableEvent from '../../../src/events/ImpressionViewableEvent';\n\n/** @test {ImpressionViewableEvent} */\ndescribe('ImpressionViewableEvent', () => {\n const serviceName = 'testService';\n const slot = 'slot1';\n\n /** @test {ImpressionViewableEvent#constructor} */\n describe('#constructor', () => {\n it('constructs', () => {\n const event = new ImpressionViewableEvent(serviceName, slot);\n expect(event).to.be.ok();\n });\n });\n\n /** @test {ImpressionViewableEvent#_name} */\n describe('#_name', () => {\n it('returns name', () => {\n const event = new ImpressionViewableEvent(serviceName, slot);\n expect(event._name).to.be('googletag.events.ImpressionViewableEvent');\n });\n });\n\n /** @test {ImpressionViewableEvent#serviceName} */\n describe('#serviceName', () => {\n it('returns serviceName', () => {\n const event = new ImpressionViewableEvent(serviceName, slot);\n expect(event.serviceName).to.be(serviceName);\n });\n });\n\n /** @test {ImpressionViewableEvent#slot} */\n describe('#slot', () => {\n it('returns slot', () => {\n const event = new ImpressionViewableEvent(serviceName, slot);\n expect(event.slot).to.be(slot);\n });\n });\n});\n" }, { - "__docId__": 853, + "__docId__": 880, "kind": "testDescribe", "static": true, "variation": null, - "name": "describe466", - "testId": 466, + "name": "describe482", + "testId": 482, "memberof": "unit/events/ImpressionViewableEvent.spec.js", "testDepth": 0, - "longname": "unit/events/ImpressionViewableEvent.spec.js~describe466", + "longname": "unit/events/ImpressionViewableEvent.spec.js~describe482", "access": null, "description": "ImpressionViewableEvent", "lineNumber": 4, @@ -16555,15 +17103,15 @@ ] }, { - "__docId__": 854, + "__docId__": 881, "kind": "testDescribe", "static": true, "variation": null, - "name": "describe467", - "testId": 467, - "memberof": "unit/events/ImpressionViewableEvent.spec.js~describe466", + "name": "describe483", + "testId": 483, + "memberof": "unit/events/ImpressionViewableEvent.spec.js~describe482", "testDepth": 1, - "longname": "unit/events/ImpressionViewableEvent.spec.js~describe466.describe467", + "longname": "unit/events/ImpressionViewableEvent.spec.js~describe482.describe483", "access": null, "description": "#constructor", "lineNumber": 9, @@ -16578,29 +17126,29 @@ ] }, { - "__docId__": 855, + "__docId__": 882, "kind": "testIt", "static": true, "variation": null, - "name": "it468", - "testId": 468, - "memberof": "unit/events/ImpressionViewableEvent.spec.js~describe466.describe467", + "name": "it484", + "testId": 484, + "memberof": "unit/events/ImpressionViewableEvent.spec.js~describe482.describe483", "testDepth": 2, - "longname": "unit/events/ImpressionViewableEvent.spec.js~describe466.describe467.it468", + "longname": "unit/events/ImpressionViewableEvent.spec.js~describe482.describe483.it484", "access": null, "description": "constructs", "lineNumber": 10 }, { - "__docId__": 856, + "__docId__": 883, "kind": "testDescribe", "static": true, "variation": null, - "name": "describe469", - "testId": 469, - "memberof": "unit/events/ImpressionViewableEvent.spec.js~describe466", + "name": "describe485", + "testId": 485, + "memberof": "unit/events/ImpressionViewableEvent.spec.js~describe482", "testDepth": 1, - "longname": "unit/events/ImpressionViewableEvent.spec.js~describe466.describe469", + "longname": "unit/events/ImpressionViewableEvent.spec.js~describe482.describe485", "access": null, "description": "#_name", "lineNumber": 17, @@ -16615,29 +17163,29 @@ ] }, { - "__docId__": 857, + "__docId__": 884, "kind": "testIt", "static": true, "variation": null, - "name": "it470", - "testId": 470, - "memberof": "unit/events/ImpressionViewableEvent.spec.js~describe466.describe469", + "name": "it486", + "testId": 486, + "memberof": "unit/events/ImpressionViewableEvent.spec.js~describe482.describe485", "testDepth": 2, - "longname": "unit/events/ImpressionViewableEvent.spec.js~describe466.describe469.it470", + "longname": "unit/events/ImpressionViewableEvent.spec.js~describe482.describe485.it486", "access": null, "description": "returns name", "lineNumber": 18 }, { - "__docId__": 858, + "__docId__": 885, "kind": "testDescribe", "static": true, "variation": null, - "name": "describe471", - "testId": 471, - "memberof": "unit/events/ImpressionViewableEvent.spec.js~describe466", + "name": "describe487", + "testId": 487, + "memberof": "unit/events/ImpressionViewableEvent.spec.js~describe482", "testDepth": 1, - "longname": "unit/events/ImpressionViewableEvent.spec.js~describe466.describe471", + "longname": "unit/events/ImpressionViewableEvent.spec.js~describe482.describe487", "access": null, "description": "#serviceName", "lineNumber": 25, @@ -16652,29 +17200,29 @@ ] }, { - "__docId__": 859, + "__docId__": 886, "kind": "testIt", "static": true, "variation": null, - "name": "it472", - "testId": 472, - "memberof": "unit/events/ImpressionViewableEvent.spec.js~describe466.describe471", + "name": "it488", + "testId": 488, + "memberof": "unit/events/ImpressionViewableEvent.spec.js~describe482.describe487", "testDepth": 2, - "longname": "unit/events/ImpressionViewableEvent.spec.js~describe466.describe471.it472", + "longname": "unit/events/ImpressionViewableEvent.spec.js~describe482.describe487.it488", "access": null, "description": "returns serviceName", "lineNumber": 26 }, { - "__docId__": 860, + "__docId__": 887, "kind": "testDescribe", "static": true, "variation": null, - "name": "describe473", - "testId": 473, - "memberof": "unit/events/ImpressionViewableEvent.spec.js~describe466", + "name": "describe489", + "testId": 489, + "memberof": "unit/events/ImpressionViewableEvent.spec.js~describe482", "testDepth": 1, - "longname": "unit/events/ImpressionViewableEvent.spec.js~describe466.describe473", + "longname": "unit/events/ImpressionViewableEvent.spec.js~describe482.describe489", "access": null, "description": "#slot", "lineNumber": 33, @@ -16689,21 +17237,21 @@ ] }, { - "__docId__": 861, + "__docId__": 888, "kind": "testIt", "static": true, "variation": null, - "name": "it474", - "testId": 474, - "memberof": "unit/events/ImpressionViewableEvent.spec.js~describe466.describe473", + "name": "it490", + "testId": 490, + "memberof": "unit/events/ImpressionViewableEvent.spec.js~describe482.describe489", "testDepth": 2, - "longname": "unit/events/ImpressionViewableEvent.spec.js~describe466.describe473.it474", + "longname": "unit/events/ImpressionViewableEvent.spec.js~describe482.describe489.it490", "access": null, "description": "returns slot", "lineNumber": 34 }, { - "__docId__": 862, + "__docId__": 889, "kind": "testFile", "static": true, "variation": null, @@ -16716,15 +17264,15 @@ "content": "import SlotOnloadEvent from '../../../src/events/SlotOnloadEvent';\n\n/** @test {SlotOnloadEvent} */\ndescribe('SlotOnloadEvent', () => {\n const serviceName = 'testService';\n const slot = 'slot1';\n\n /** @test {SlotOnloadEvent#constructor} */\n describe('#constructor', () => {\n it('constructs', () => {\n const event = new SlotOnloadEvent(serviceName, slot);\n expect(event).to.be.ok();\n });\n });\n\n /** @test {SlotOnloadEvent#_name} */\n describe('#_name', () => {\n it('returns _name', () => {\n const event = new SlotOnloadEvent(serviceName, slot);\n expect(event._name).to.be('googletag.events.SlotOnloadEvent');\n });\n });\n\n /** @test {SlotOnloadEvent#serviceName} */\n describe('#serviceName', () => {\n it('returns serviceName', () => {\n const event = new SlotOnloadEvent(serviceName, slot);\n expect(event.serviceName).to.be(serviceName);\n });\n });\n\n /** @test {SlotOnloadEvent#slot} */\n describe('#slot', () => {\n it('returns slot', () => {\n const event = new SlotOnloadEvent(serviceName, slot);\n expect(event.slot).to.be(slot);\n });\n });\n});\n" }, { - "__docId__": 863, + "__docId__": 890, "kind": "testDescribe", "static": true, "variation": null, - "name": "describe475", - "testId": 475, + "name": "describe491", + "testId": 491, "memberof": "unit/events/SlotOnloadEvent.spec.js", "testDepth": 0, - "longname": "unit/events/SlotOnloadEvent.spec.js~describe475", + "longname": "unit/events/SlotOnloadEvent.spec.js~describe491", "access": null, "description": "SlotOnloadEvent", "lineNumber": 4, @@ -16739,15 +17287,15 @@ ] }, { - "__docId__": 864, + "__docId__": 891, "kind": "testDescribe", "static": true, "variation": null, - "name": "describe476", - "testId": 476, - "memberof": "unit/events/SlotOnloadEvent.spec.js~describe475", + "name": "describe492", + "testId": 492, + "memberof": "unit/events/SlotOnloadEvent.spec.js~describe491", "testDepth": 1, - "longname": "unit/events/SlotOnloadEvent.spec.js~describe475.describe476", + "longname": "unit/events/SlotOnloadEvent.spec.js~describe491.describe492", "access": null, "description": "#constructor", "lineNumber": 9, @@ -16762,29 +17310,29 @@ ] }, { - "__docId__": 865, + "__docId__": 892, "kind": "testIt", "static": true, "variation": null, - "name": "it477", - "testId": 477, - "memberof": "unit/events/SlotOnloadEvent.spec.js~describe475.describe476", + "name": "it493", + "testId": 493, + "memberof": "unit/events/SlotOnloadEvent.spec.js~describe491.describe492", "testDepth": 2, - "longname": "unit/events/SlotOnloadEvent.spec.js~describe475.describe476.it477", + "longname": "unit/events/SlotOnloadEvent.spec.js~describe491.describe492.it493", "access": null, "description": "constructs", "lineNumber": 10 }, { - "__docId__": 866, + "__docId__": 893, "kind": "testDescribe", "static": true, "variation": null, - "name": "describe478", - "testId": 478, - "memberof": "unit/events/SlotOnloadEvent.spec.js~describe475", + "name": "describe494", + "testId": 494, + "memberof": "unit/events/SlotOnloadEvent.spec.js~describe491", "testDepth": 1, - "longname": "unit/events/SlotOnloadEvent.spec.js~describe475.describe478", + "longname": "unit/events/SlotOnloadEvent.spec.js~describe491.describe494", "access": null, "description": "#_name", "lineNumber": 17, @@ -16799,29 +17347,29 @@ ] }, { - "__docId__": 867, + "__docId__": 894, "kind": "testIt", "static": true, "variation": null, - "name": "it479", - "testId": 479, - "memberof": "unit/events/SlotOnloadEvent.spec.js~describe475.describe478", + "name": "it495", + "testId": 495, + "memberof": "unit/events/SlotOnloadEvent.spec.js~describe491.describe494", "testDepth": 2, - "longname": "unit/events/SlotOnloadEvent.spec.js~describe475.describe478.it479", + "longname": "unit/events/SlotOnloadEvent.spec.js~describe491.describe494.it495", "access": null, "description": "returns _name", "lineNumber": 18 }, { - "__docId__": 868, + "__docId__": 895, "kind": "testDescribe", "static": true, "variation": null, - "name": "describe480", - "testId": 480, - "memberof": "unit/events/SlotOnloadEvent.spec.js~describe475", + "name": "describe496", + "testId": 496, + "memberof": "unit/events/SlotOnloadEvent.spec.js~describe491", "testDepth": 1, - "longname": "unit/events/SlotOnloadEvent.spec.js~describe475.describe480", + "longname": "unit/events/SlotOnloadEvent.spec.js~describe491.describe496", "access": null, "description": "#serviceName", "lineNumber": 25, @@ -16836,29 +17384,29 @@ ] }, { - "__docId__": 869, + "__docId__": 896, "kind": "testIt", "static": true, "variation": null, - "name": "it481", - "testId": 481, - "memberof": "unit/events/SlotOnloadEvent.spec.js~describe475.describe480", + "name": "it497", + "testId": 497, + "memberof": "unit/events/SlotOnloadEvent.spec.js~describe491.describe496", "testDepth": 2, - "longname": "unit/events/SlotOnloadEvent.spec.js~describe475.describe480.it481", + "longname": "unit/events/SlotOnloadEvent.spec.js~describe491.describe496.it497", "access": null, "description": "returns serviceName", "lineNumber": 26 }, { - "__docId__": 870, + "__docId__": 897, "kind": "testDescribe", "static": true, "variation": null, - "name": "describe482", - "testId": 482, - "memberof": "unit/events/SlotOnloadEvent.spec.js~describe475", + "name": "describe498", + "testId": 498, + "memberof": "unit/events/SlotOnloadEvent.spec.js~describe491", "testDepth": 1, - "longname": "unit/events/SlotOnloadEvent.spec.js~describe475.describe482", + "longname": "unit/events/SlotOnloadEvent.spec.js~describe491.describe498", "access": null, "description": "#slot", "lineNumber": 33, @@ -16873,21 +17421,21 @@ ] }, { - "__docId__": 871, + "__docId__": 898, "kind": "testIt", "static": true, "variation": null, - "name": "it483", - "testId": 483, - "memberof": "unit/events/SlotOnloadEvent.spec.js~describe475.describe482", + "name": "it499", + "testId": 499, + "memberof": "unit/events/SlotOnloadEvent.spec.js~describe491.describe498", "testDepth": 2, - "longname": "unit/events/SlotOnloadEvent.spec.js~describe475.describe482.it483", + "longname": "unit/events/SlotOnloadEvent.spec.js~describe491.describe498.it499", "access": null, "description": "returns slot", "lineNumber": 34 }, { - "__docId__": 872, + "__docId__": 899, "kind": "testFile", "static": true, "variation": null, @@ -16900,15 +17448,15 @@ "content": "import SlotRenderEndedEvent from '../../../src/events/SlotRenderEndedEvent';\n\n/** @test {SlotRenderEndedEvent} */\ndescribe('SlotRenderEndedEvent', () => {\n const serviceName = 'testService';\n const slot = 'slot1';\n const creativeId = 12345;\n const lineItemId = 45673;\n const isEmpty = false;\n const size = [728, 90];\n\n function givenAnEvent() {\n return new SlotRenderEndedEvent(serviceName, slot, creativeId, lineItemId, isEmpty, size);\n }\n\n /** @test {SlotRenderEndedEvent#constructor} */\n describe('#constructor', () => {\n it('constructs', () => {\n const event = givenAnEvent();\n expect(event).to.be.ok();\n });\n });\n\n /** @test {SlotRenderEndedEvent#_name} */\n describe('#_name', () => {\n it('returns _name', () => {\n const event = givenAnEvent();\n expect(event._name).to.be('googletag.events.SlotRenderEndedEvent');\n });\n });\n\n /** @test {SlotRenderEndedEvent#serviceName} */\n describe('#serviceName', () => {\n it('returns serviceName', () => {\n const event = givenAnEvent();\n expect(event.serviceName).to.be(serviceName);\n });\n });\n\n /** @test {SlotRenderEndedEvent#slot} */\n describe('#slot', () => {\n it('returns slot', () => {\n const event = givenAnEvent();\n expect(event.slot).to.be(slot);\n });\n });\n\n /** @test {SlotRenderEndedEvent#creativeId} */\n describe('#creativeId', () => {\n it('returns creativeId', () => {\n const event = givenAnEvent();\n expect(event.creativeId).to.be(creativeId);\n });\n });\n\n /** @test {SlotRenderEndedEvent#isEmpty} */\n describe('#isEmpty', () => {\n it('returns isEmpty', () => {\n const event = givenAnEvent();\n expect(event.isEmpty).to.be(isEmpty);\n });\n });\n\n /** @test {SlotRenderEndedEvent#lineItemId} */\n describe('#lineItemId', () => {\n it('returns lineItemId', () => {\n const event = givenAnEvent();\n expect(event.lineItemId).to.be(lineItemId);\n });\n });\n\n /** @test {SlotRenderEndedEvent#size} */\n describe('#size', () => {\n it('returns size', () => {\n const event = givenAnEvent();\n expect(event.size).to.be(size);\n });\n });\n});\n" }, { - "__docId__": 873, + "__docId__": 900, "kind": "testDescribe", "static": true, "variation": null, - "name": "describe484", - "testId": 484, + "name": "describe500", + "testId": 500, "memberof": "unit/events/SlotRenderEndedEvent.spec.js", "testDepth": 0, - "longname": "unit/events/SlotRenderEndedEvent.spec.js~describe484", + "longname": "unit/events/SlotRenderEndedEvent.spec.js~describe500", "access": null, "description": "SlotRenderEndedEvent", "lineNumber": 4, @@ -16923,15 +17471,15 @@ ] }, { - "__docId__": 874, + "__docId__": 901, "kind": "testDescribe", "static": true, "variation": null, - "name": "describe485", - "testId": 485, - "memberof": "unit/events/SlotRenderEndedEvent.spec.js~describe484", + "name": "describe501", + "testId": 501, + "memberof": "unit/events/SlotRenderEndedEvent.spec.js~describe500", "testDepth": 1, - "longname": "unit/events/SlotRenderEndedEvent.spec.js~describe484.describe485", + "longname": "unit/events/SlotRenderEndedEvent.spec.js~describe500.describe501", "access": null, "description": "#constructor", "lineNumber": 17, @@ -16946,29 +17494,29 @@ ] }, { - "__docId__": 875, + "__docId__": 902, "kind": "testIt", "static": true, "variation": null, - "name": "it486", - "testId": 486, - "memberof": "unit/events/SlotRenderEndedEvent.spec.js~describe484.describe485", + "name": "it502", + "testId": 502, + "memberof": "unit/events/SlotRenderEndedEvent.spec.js~describe500.describe501", "testDepth": 2, - "longname": "unit/events/SlotRenderEndedEvent.spec.js~describe484.describe485.it486", + "longname": "unit/events/SlotRenderEndedEvent.spec.js~describe500.describe501.it502", "access": null, "description": "constructs", "lineNumber": 18 }, { - "__docId__": 876, + "__docId__": 903, "kind": "testDescribe", "static": true, "variation": null, - "name": "describe487", - "testId": 487, - "memberof": "unit/events/SlotRenderEndedEvent.spec.js~describe484", + "name": "describe503", + "testId": 503, + "memberof": "unit/events/SlotRenderEndedEvent.spec.js~describe500", "testDepth": 1, - "longname": "unit/events/SlotRenderEndedEvent.spec.js~describe484.describe487", + "longname": "unit/events/SlotRenderEndedEvent.spec.js~describe500.describe503", "access": null, "description": "#_name", "lineNumber": 25, @@ -16983,29 +17531,29 @@ ] }, { - "__docId__": 877, + "__docId__": 904, "kind": "testIt", "static": true, "variation": null, - "name": "it488", - "testId": 488, - "memberof": "unit/events/SlotRenderEndedEvent.spec.js~describe484.describe487", + "name": "it504", + "testId": 504, + "memberof": "unit/events/SlotRenderEndedEvent.spec.js~describe500.describe503", "testDepth": 2, - "longname": "unit/events/SlotRenderEndedEvent.spec.js~describe484.describe487.it488", + "longname": "unit/events/SlotRenderEndedEvent.spec.js~describe500.describe503.it504", "access": null, "description": "returns _name", "lineNumber": 26 }, { - "__docId__": 878, + "__docId__": 905, "kind": "testDescribe", "static": true, "variation": null, - "name": "describe489", - "testId": 489, - "memberof": "unit/events/SlotRenderEndedEvent.spec.js~describe484", + "name": "describe505", + "testId": 505, + "memberof": "unit/events/SlotRenderEndedEvent.spec.js~describe500", "testDepth": 1, - "longname": "unit/events/SlotRenderEndedEvent.spec.js~describe484.describe489", + "longname": "unit/events/SlotRenderEndedEvent.spec.js~describe500.describe505", "access": null, "description": "#serviceName", "lineNumber": 33, @@ -17020,29 +17568,29 @@ ] }, { - "__docId__": 879, + "__docId__": 906, "kind": "testIt", "static": true, "variation": null, - "name": "it490", - "testId": 490, - "memberof": "unit/events/SlotRenderEndedEvent.spec.js~describe484.describe489", + "name": "it506", + "testId": 506, + "memberof": "unit/events/SlotRenderEndedEvent.spec.js~describe500.describe505", "testDepth": 2, - "longname": "unit/events/SlotRenderEndedEvent.spec.js~describe484.describe489.it490", + "longname": "unit/events/SlotRenderEndedEvent.spec.js~describe500.describe505.it506", "access": null, "description": "returns serviceName", "lineNumber": 34 }, { - "__docId__": 880, + "__docId__": 907, "kind": "testDescribe", "static": true, "variation": null, - "name": "describe491", - "testId": 491, - "memberof": "unit/events/SlotRenderEndedEvent.spec.js~describe484", + "name": "describe507", + "testId": 507, + "memberof": "unit/events/SlotRenderEndedEvent.spec.js~describe500", "testDepth": 1, - "longname": "unit/events/SlotRenderEndedEvent.spec.js~describe484.describe491", + "longname": "unit/events/SlotRenderEndedEvent.spec.js~describe500.describe507", "access": null, "description": "#slot", "lineNumber": 41, @@ -17057,29 +17605,29 @@ ] }, { - "__docId__": 881, + "__docId__": 908, "kind": "testIt", "static": true, "variation": null, - "name": "it492", - "testId": 492, - "memberof": "unit/events/SlotRenderEndedEvent.spec.js~describe484.describe491", + "name": "it508", + "testId": 508, + "memberof": "unit/events/SlotRenderEndedEvent.spec.js~describe500.describe507", "testDepth": 2, - "longname": "unit/events/SlotRenderEndedEvent.spec.js~describe484.describe491.it492", + "longname": "unit/events/SlotRenderEndedEvent.spec.js~describe500.describe507.it508", "access": null, "description": "returns slot", "lineNumber": 42 }, { - "__docId__": 882, + "__docId__": 909, "kind": "testDescribe", "static": true, "variation": null, - "name": "describe493", - "testId": 493, - "memberof": "unit/events/SlotRenderEndedEvent.spec.js~describe484", + "name": "describe509", + "testId": 509, + "memberof": "unit/events/SlotRenderEndedEvent.spec.js~describe500", "testDepth": 1, - "longname": "unit/events/SlotRenderEndedEvent.spec.js~describe484.describe493", + "longname": "unit/events/SlotRenderEndedEvent.spec.js~describe500.describe509", "access": null, "description": "#creativeId", "lineNumber": 49, @@ -17094,29 +17642,29 @@ ] }, { - "__docId__": 883, + "__docId__": 910, "kind": "testIt", "static": true, "variation": null, - "name": "it494", - "testId": 494, - "memberof": "unit/events/SlotRenderEndedEvent.spec.js~describe484.describe493", + "name": "it510", + "testId": 510, + "memberof": "unit/events/SlotRenderEndedEvent.spec.js~describe500.describe509", "testDepth": 2, - "longname": "unit/events/SlotRenderEndedEvent.spec.js~describe484.describe493.it494", + "longname": "unit/events/SlotRenderEndedEvent.spec.js~describe500.describe509.it510", "access": null, "description": "returns creativeId", "lineNumber": 50 }, { - "__docId__": 884, + "__docId__": 911, "kind": "testDescribe", "static": true, "variation": null, - "name": "describe495", - "testId": 495, - "memberof": "unit/events/SlotRenderEndedEvent.spec.js~describe484", + "name": "describe511", + "testId": 511, + "memberof": "unit/events/SlotRenderEndedEvent.spec.js~describe500", "testDepth": 1, - "longname": "unit/events/SlotRenderEndedEvent.spec.js~describe484.describe495", + "longname": "unit/events/SlotRenderEndedEvent.spec.js~describe500.describe511", "access": null, "description": "#isEmpty", "lineNumber": 57, @@ -17131,29 +17679,29 @@ ] }, { - "__docId__": 885, + "__docId__": 912, "kind": "testIt", "static": true, "variation": null, - "name": "it496", - "testId": 496, - "memberof": "unit/events/SlotRenderEndedEvent.spec.js~describe484.describe495", + "name": "it512", + "testId": 512, + "memberof": "unit/events/SlotRenderEndedEvent.spec.js~describe500.describe511", "testDepth": 2, - "longname": "unit/events/SlotRenderEndedEvent.spec.js~describe484.describe495.it496", + "longname": "unit/events/SlotRenderEndedEvent.spec.js~describe500.describe511.it512", "access": null, "description": "returns isEmpty", "lineNumber": 58 }, { - "__docId__": 886, + "__docId__": 913, "kind": "testDescribe", "static": true, "variation": null, - "name": "describe497", - "testId": 497, - "memberof": "unit/events/SlotRenderEndedEvent.spec.js~describe484", + "name": "describe513", + "testId": 513, + "memberof": "unit/events/SlotRenderEndedEvent.spec.js~describe500", "testDepth": 1, - "longname": "unit/events/SlotRenderEndedEvent.spec.js~describe484.describe497", + "longname": "unit/events/SlotRenderEndedEvent.spec.js~describe500.describe513", "access": null, "description": "#lineItemId", "lineNumber": 65, @@ -17168,29 +17716,29 @@ ] }, { - "__docId__": 887, + "__docId__": 914, "kind": "testIt", "static": true, "variation": null, - "name": "it498", - "testId": 498, - "memberof": "unit/events/SlotRenderEndedEvent.spec.js~describe484.describe497", + "name": "it514", + "testId": 514, + "memberof": "unit/events/SlotRenderEndedEvent.spec.js~describe500.describe513", "testDepth": 2, - "longname": "unit/events/SlotRenderEndedEvent.spec.js~describe484.describe497.it498", + "longname": "unit/events/SlotRenderEndedEvent.spec.js~describe500.describe513.it514", "access": null, "description": "returns lineItemId", "lineNumber": 66 }, { - "__docId__": 888, + "__docId__": 915, "kind": "testDescribe", "static": true, "variation": null, - "name": "describe499", - "testId": 499, - "memberof": "unit/events/SlotRenderEndedEvent.spec.js~describe484", + "name": "describe515", + "testId": 515, + "memberof": "unit/events/SlotRenderEndedEvent.spec.js~describe500", "testDepth": 1, - "longname": "unit/events/SlotRenderEndedEvent.spec.js~describe484.describe499", + "longname": "unit/events/SlotRenderEndedEvent.spec.js~describe500.describe515", "access": null, "description": "#size", "lineNumber": 73, @@ -17205,21 +17753,21 @@ ] }, { - "__docId__": 889, + "__docId__": 916, "kind": "testIt", "static": true, "variation": null, - "name": "it500", - "testId": 500, - "memberof": "unit/events/SlotRenderEndedEvent.spec.js~describe484.describe499", + "name": "it516", + "testId": 516, + "memberof": "unit/events/SlotRenderEndedEvent.spec.js~describe500.describe515", "testDepth": 2, - "longname": "unit/events/SlotRenderEndedEvent.spec.js~describe484.describe499.it500", + "longname": "unit/events/SlotRenderEndedEvent.spec.js~describe500.describe515.it516", "access": null, "description": "returns size", "lineNumber": 74 }, { - "__docId__": 890, + "__docId__": 917, "kind": "testFile", "static": true, "variation": null, @@ -17232,15 +17780,15 @@ "content": "import SlotVisibilityChangedEvent from '../../../src/events/SlotVisibilityChangedEvent';\n\n/** @test {SlotVisibilityChangedEvent} */\ndescribe('SlotVisibilityChangedEvent', () => {\n const serviceName = 'testService';\n const slot = 'slot1';\n const inViewPercentage = 85;\n\n /** @test {SlotVisibilityChangedEvent#constructor} */\n describe('#constructor', () => {\n it('constructs', () => {\n const event = new SlotVisibilityChangedEvent(serviceName, slot, inViewPercentage);\n expect(event).to.be.ok();\n });\n });\n\n /** @test {SlotVisibilityChangedEvent#_name} */\n describe('#_name', () => {\n it('returns _name', () => {\n const event = new SlotVisibilityChangedEvent(serviceName, slot, inViewPercentage);\n expect(event._name).to.be('googletag.events.SlotVisibilityChangedEvent');\n });\n });\n\n /** @test {SlotVisibilityChangedEvent#serviceName} */\n describe('#serviceName', () => {\n it('returns serviceName', () => {\n const event = new SlotVisibilityChangedEvent(serviceName, slot, inViewPercentage);\n expect(event.serviceName).to.be(serviceName);\n });\n });\n\n /** @test {SlotVisibilityChangedEvent#slot} */\n describe('#slot', () => {\n it('returns slot', () => {\n const event = new SlotVisibilityChangedEvent(serviceName, slot, inViewPercentage);\n expect(event.slot).to.be(slot);\n });\n });\n\n /** @test {SlotVisibilityChangedEvent#inViewPercentage} */\n describe('#inViewPercentage', () => {\n it('returns inViewPercentage', () => {\n const event = new SlotVisibilityChangedEvent(serviceName, slot, inViewPercentage);\n expect(event.inViewPercentage).to.be(inViewPercentage);\n });\n });\n});\n" }, { - "__docId__": 891, + "__docId__": 918, "kind": "testDescribe", "static": true, "variation": null, - "name": "describe501", - "testId": 501, + "name": "describe517", + "testId": 517, "memberof": "unit/events/SlotVisibilityChangedEvent.spec.js", "testDepth": 0, - "longname": "unit/events/SlotVisibilityChangedEvent.spec.js~describe501", + "longname": "unit/events/SlotVisibilityChangedEvent.spec.js~describe517", "access": null, "description": "SlotVisibilityChangedEvent", "lineNumber": 4, @@ -17255,15 +17803,15 @@ ] }, { - "__docId__": 892, + "__docId__": 919, "kind": "testDescribe", "static": true, "variation": null, - "name": "describe502", - "testId": 502, - "memberof": "unit/events/SlotVisibilityChangedEvent.spec.js~describe501", + "name": "describe518", + "testId": 518, + "memberof": "unit/events/SlotVisibilityChangedEvent.spec.js~describe517", "testDepth": 1, - "longname": "unit/events/SlotVisibilityChangedEvent.spec.js~describe501.describe502", + "longname": "unit/events/SlotVisibilityChangedEvent.spec.js~describe517.describe518", "access": null, "description": "#constructor", "lineNumber": 10, @@ -17278,29 +17826,29 @@ ] }, { - "__docId__": 893, + "__docId__": 920, "kind": "testIt", "static": true, "variation": null, - "name": "it503", - "testId": 503, - "memberof": "unit/events/SlotVisibilityChangedEvent.spec.js~describe501.describe502", + "name": "it519", + "testId": 519, + "memberof": "unit/events/SlotVisibilityChangedEvent.spec.js~describe517.describe518", "testDepth": 2, - "longname": "unit/events/SlotVisibilityChangedEvent.spec.js~describe501.describe502.it503", + "longname": "unit/events/SlotVisibilityChangedEvent.spec.js~describe517.describe518.it519", "access": null, "description": "constructs", "lineNumber": 11 }, { - "__docId__": 894, + "__docId__": 921, "kind": "testDescribe", "static": true, "variation": null, - "name": "describe504", - "testId": 504, - "memberof": "unit/events/SlotVisibilityChangedEvent.spec.js~describe501", + "name": "describe520", + "testId": 520, + "memberof": "unit/events/SlotVisibilityChangedEvent.spec.js~describe517", "testDepth": 1, - "longname": "unit/events/SlotVisibilityChangedEvent.spec.js~describe501.describe504", + "longname": "unit/events/SlotVisibilityChangedEvent.spec.js~describe517.describe520", "access": null, "description": "#_name", "lineNumber": 18, @@ -17315,29 +17863,29 @@ ] }, { - "__docId__": 895, + "__docId__": 922, "kind": "testIt", "static": true, "variation": null, - "name": "it505", - "testId": 505, - "memberof": "unit/events/SlotVisibilityChangedEvent.spec.js~describe501.describe504", + "name": "it521", + "testId": 521, + "memberof": "unit/events/SlotVisibilityChangedEvent.spec.js~describe517.describe520", "testDepth": 2, - "longname": "unit/events/SlotVisibilityChangedEvent.spec.js~describe501.describe504.it505", + "longname": "unit/events/SlotVisibilityChangedEvent.spec.js~describe517.describe520.it521", "access": null, "description": "returns _name", "lineNumber": 19 }, { - "__docId__": 896, + "__docId__": 923, "kind": "testDescribe", "static": true, "variation": null, - "name": "describe506", - "testId": 506, - "memberof": "unit/events/SlotVisibilityChangedEvent.spec.js~describe501", + "name": "describe522", + "testId": 522, + "memberof": "unit/events/SlotVisibilityChangedEvent.spec.js~describe517", "testDepth": 1, - "longname": "unit/events/SlotVisibilityChangedEvent.spec.js~describe501.describe506", + "longname": "unit/events/SlotVisibilityChangedEvent.spec.js~describe517.describe522", "access": null, "description": "#serviceName", "lineNumber": 26, @@ -17352,29 +17900,29 @@ ] }, { - "__docId__": 897, + "__docId__": 924, "kind": "testIt", "static": true, "variation": null, - "name": "it507", - "testId": 507, - "memberof": "unit/events/SlotVisibilityChangedEvent.spec.js~describe501.describe506", + "name": "it523", + "testId": 523, + "memberof": "unit/events/SlotVisibilityChangedEvent.spec.js~describe517.describe522", "testDepth": 2, - "longname": "unit/events/SlotVisibilityChangedEvent.spec.js~describe501.describe506.it507", + "longname": "unit/events/SlotVisibilityChangedEvent.spec.js~describe517.describe522.it523", "access": null, "description": "returns serviceName", "lineNumber": 27 }, { - "__docId__": 898, + "__docId__": 925, "kind": "testDescribe", "static": true, "variation": null, - "name": "describe508", - "testId": 508, - "memberof": "unit/events/SlotVisibilityChangedEvent.spec.js~describe501", + "name": "describe524", + "testId": 524, + "memberof": "unit/events/SlotVisibilityChangedEvent.spec.js~describe517", "testDepth": 1, - "longname": "unit/events/SlotVisibilityChangedEvent.spec.js~describe501.describe508", + "longname": "unit/events/SlotVisibilityChangedEvent.spec.js~describe517.describe524", "access": null, "description": "#slot", "lineNumber": 34, @@ -17389,29 +17937,29 @@ ] }, { - "__docId__": 899, + "__docId__": 926, "kind": "testIt", "static": true, "variation": null, - "name": "it509", - "testId": 509, - "memberof": "unit/events/SlotVisibilityChangedEvent.spec.js~describe501.describe508", + "name": "it525", + "testId": 525, + "memberof": "unit/events/SlotVisibilityChangedEvent.spec.js~describe517.describe524", "testDepth": 2, - "longname": "unit/events/SlotVisibilityChangedEvent.spec.js~describe501.describe508.it509", + "longname": "unit/events/SlotVisibilityChangedEvent.spec.js~describe517.describe524.it525", "access": null, "description": "returns slot", "lineNumber": 35 }, { - "__docId__": 900, + "__docId__": 927, "kind": "testDescribe", "static": true, "variation": null, - "name": "describe510", - "testId": 510, - "memberof": "unit/events/SlotVisibilityChangedEvent.spec.js~describe501", + "name": "describe526", + "testId": 526, + "memberof": "unit/events/SlotVisibilityChangedEvent.spec.js~describe517", "testDepth": 1, - "longname": "unit/events/SlotVisibilityChangedEvent.spec.js~describe501.describe510", + "longname": "unit/events/SlotVisibilityChangedEvent.spec.js~describe517.describe526", "access": null, "description": "#inViewPercentage", "lineNumber": 42, @@ -17426,15 +17974,15 @@ ] }, { - "__docId__": 901, + "__docId__": 928, "kind": "testIt", "static": true, "variation": null, - "name": "it511", - "testId": 511, - "memberof": "unit/events/SlotVisibilityChangedEvent.spec.js~describe501.describe510", + "name": "it527", + "testId": 527, + "memberof": "unit/events/SlotVisibilityChangedEvent.spec.js~describe517.describe526", "testDepth": 2, - "longname": "unit/events/SlotVisibilityChangedEvent.spec.js~describe501.describe510.it511", + "longname": "unit/events/SlotVisibilityChangedEvent.spec.js~describe517.describe526.it527", "access": null, "description": "returns inViewPercentage", "lineNumber": 43 diff --git a/docs/file/src/CommandArray.js.html b/docs/file/src/CommandArray.js.html index f509f61..19a5b08 100644 --- a/docs/file/src/CommandArray.js.html +++ b/docs/file/src/CommandArray.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/file/src/CompanionAdsService.js.html b/docs/file/src/CompanionAdsService.js.html index c3e14dc..deb1fcb 100644 --- a/docs/file/src/CompanionAdsService.js.html +++ b/docs/file/src/CompanionAdsService.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/file/src/ContentService.js.html b/docs/file/src/ContentService.js.html index b8b3b9d..b8191bb 100644 --- a/docs/file/src/ContentService.js.html +++ b/docs/file/src/ContentService.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/file/src/GPT.js.html b/docs/file/src/GPT.js.html index 114865a..983b4ce 100644 --- a/docs/file/src/GPT.js.html +++ b/docs/file/src/GPT.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/file/src/GeneralSize.js.html b/docs/file/src/GeneralSize.js.html index 85b9ad3..762d514 100644 --- a/docs/file/src/GeneralSize.js.html +++ b/docs/file/src/GeneralSize.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/file/src/MultiSize.js.html b/docs/file/src/MultiSize.js.html index 64a2dec..3680a1e 100644 --- a/docs/file/src/MultiSize.js.html +++ b/docs/file/src/MultiSize.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/file/src/NamedSize.js.html b/docs/file/src/NamedSize.js.html index 3082f02..dfc4bd0 100644 --- a/docs/file/src/NamedSize.js.html +++ b/docs/file/src/NamedSize.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/file/src/PubAdsService.js.html b/docs/file/src/PubAdsService.js.html index b1d33b7..9d6df90 100644 --- a/docs/file/src/PubAdsService.js.html +++ b/docs/file/src/PubAdsService.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • @@ -57,6 +58,7 @@

    src/PubAdsService.js

    import Service from './Service';
     import Slot from './Slot';
    +import TargetingMap from './TargetingMap';
     
     /**
      * Publisher Ads service. This service is used to fetch and show ads from your
    @@ -71,7 +73,7 @@
       constructor(gt) {
         super(gt, PubAdsService._name);
         this._categoryExclusions = [];
    -    this._targeting = {};
    +    this._targeting = new TargetingMap();
         this._options = {
           collapseEmptyDivs: false,
           collapseBeforeAdFetch: false,
    @@ -218,7 +220,9 @@
        * request ads using {@link PubAdsService#refresh}.
        */
       disableInitialLoad() {
    -    this._options.initialLoad = false;
    +    this._unlessEnabled(() => {
    +      this._options.initialLoad = false;
    +    });
       }
     
       /**
    @@ -232,12 +236,9 @@
        * was called after the service was enabled.
        */
       enableAsyncRendering() {
    -    if (this._enabled) {
    -      return false;
    -    } else {
    +    return this._unlessEnabled(() => {
           this._options.asyncRendering = true;
    -      return true;
    -    }
    +    });
       }
     
       /**
    @@ -251,12 +252,9 @@
        * called after the service was enabled.
        */
       enableSingleRequest() {
    -    if (this._enabled) {
    -      return false;
    -    } else {
    +    return this._unlessEnabled(() => {
           this._options.singleRequest = true;
    -      return true;
    -    }
    +    });
       }
     
       /**
    @@ -269,12 +267,9 @@
        * called after the service was enabled.
        */
       enableSyncRendering() {
    -    if (this._enabled) {
    -      return false;
    -    } else {
    +    return this._unlessEnabled(() => {
           this._options.syncRendering = true;
    -      return true;
    -    }
    +    });
       }
     
       /**
    @@ -297,11 +292,7 @@
        * @returns {PubAdsService} The service object on which the method was called.
        */
       setTargeting(key, value) {
    -    if (Array.isArray(value)) {
    -      this._targeting[key] = value;
    -    } else {
    -      this._targeting[key] = [value];
    -    }
    +    this._targeting.set(key, value);
         return this;
       }
     
    @@ -313,7 +304,7 @@
        * array if there is no such key.
        */
       getTargeting(key) {
    -    return this._targeting[key] || [];
    +    return this._targeting.get(key);
       }
     
       /**
    @@ -322,7 +313,7 @@
        * @returns {!Array<string>} Array of targeting keys. Ordering is undefined.
        */
       getTargetingKeys() {
    -    return Object.keys(this._targeting);
    +    return this._targeting.keys();
       }
     
       /**
    @@ -332,7 +323,7 @@
        * @returns {PubAdsService} The service object on which the method was called.
        */
       clearTargeting(key) {
    -    delete this._targeting[key];
    +    this._targeting.clear(key);
         return this;
       }
     
    @@ -349,13 +340,10 @@
        * after the service was enabled.
        */
       collapseEmptyDivs(optCollapseBeforeAdFetch = false) {
    -    if (this._enabled) {
    -      return false;
    -    } else {
    +    return this._unlessEnabled(() => {
           this._options.collapseEmptyDivs = true;
           this._options.collapseBeforeAdFetch = optCollapseBeforeAdFetch;
    -      return true;
    -    }
    +    });
       }
     
       /**
    @@ -387,9 +375,9 @@
        * @param {boolean} centerAds true to center ads, false to left-align them.
        */
       setCentering(centerAds) {
    -    if (!this._enabled) {
    +    this._unlessEnabled(() => {
           this._options.centerAds = centerAds;
    -    }
    +    });
       }
     
       /**
    @@ -519,6 +507,22 @@
         return this;
       }
     
    +  /**
    +   * Conditionally execute a function unless the service has already been
    +   * enabled.
    +   *
    +   * @param {function} fn The function to call if the service is not enabled
    +   * @returns {boolean} true if the function was called; false if the service has
    +   * already been enabled.
    +   */
    +  _unlessEnabled(fn) {
    +    if (this._enabled) {
    +      return false;
    +    } else {
    +      fn();
    +      return true;
    +    }
    +  }
     }
     
    diff --git a/docs/file/src/ResponseInformation.js.html b/docs/file/src/ResponseInformation.js.html index 2e90653..a8d7c6f 100644 --- a/docs/file/src/ResponseInformation.js.html +++ b/docs/file/src/ResponseInformation.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/file/src/SafeFrameConfig.js.html b/docs/file/src/SafeFrameConfig.js.html index ecf66d2..06a7a0b 100644 --- a/docs/file/src/SafeFrameConfig.js.html +++ b/docs/file/src/SafeFrameConfig.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/file/src/Service.js.html b/docs/file/src/Service.js.html index 6e5023b..c870b70 100644 --- a/docs/file/src/Service.js.html +++ b/docs/file/src/Service.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • @@ -146,10 +147,10 @@ } /** - * Returns a map of ID's to slots. + * Returns a map of IDs to slots. * * @experimental - * @returns {object} The map of ID's to slots. + * @returns {Object} The map of IDs to slots. */ getSlotIdMap() { return Object.assign({}, this._slotIdMap); @@ -168,7 +169,7 @@ * * @param {string} eventType A string representing the type of event generated * by GPT. Event types are case sensitive. - * @param {function(event: object)} listener Function that takes a single event object argument. + * @param {function(event: Object)} listener Function that takes a single event object argument. * @returns {Service} The service object on which the method was called. */ addEventListener(eventType, listener) { @@ -182,7 +183,7 @@ * specified event object. * * @param {string} eventType The event type to fire. - * @param {object} event The event object to pass to listeners. + * @param {Object} event The event object to pass to listeners. * @private */ _fireEvent(eventType, event) { diff --git a/docs/file/src/SingleSize.js.html b/docs/file/src/SingleSize.js.html index adad0f8..6189d7e 100644 --- a/docs/file/src/SingleSize.js.html +++ b/docs/file/src/SingleSize.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/file/src/SingleSizeArray.js.html b/docs/file/src/SingleSizeArray.js.html index 10ca9f5..dd8f327 100644 --- a/docs/file/src/SingleSizeArray.js.html +++ b/docs/file/src/SingleSizeArray.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/file/src/Size.js.html b/docs/file/src/Size.js.html index f4204bb..a5cc944 100644 --- a/docs/file/src/Size.js.html +++ b/docs/file/src/Size.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • @@ -103,7 +104,7 @@ * Returns whether the {@link Size} is empty. * * @experimental - * @type {boolean} True if the size is empty. + * @type {boolean} true if the size is empty. */ isEmpty() { return !(this.width * this.height); diff --git a/docs/file/src/SizeMapping.js.html b/docs/file/src/SizeMapping.js.html index c90af8d..42abc6d 100644 --- a/docs/file/src/SizeMapping.js.html +++ b/docs/file/src/SizeMapping.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/file/src/SizeMappingArray.js.html b/docs/file/src/SizeMappingArray.js.html index 42ffd0d..ba2c593 100644 --- a/docs/file/src/SizeMappingArray.js.html +++ b/docs/file/src/SizeMappingArray.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/file/src/SizeMappingBuilder.js.html b/docs/file/src/SizeMappingBuilder.js.html index c59ab8e..b70bb26 100644 --- a/docs/file/src/SizeMappingBuilder.js.html +++ b/docs/file/src/SizeMappingBuilder.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/file/src/Slot.js.html b/docs/file/src/Slot.js.html index a5df7b2..b92b4f4 100644 --- a/docs/file/src/Slot.js.html +++ b/docs/file/src/Slot.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • @@ -62,6 +63,7 @@ import SlotRenderEndedEvent from './events/SlotRenderEndedEvent'; import SlotVisibilityChangedEvent from './events/SlotVisibilityChangedEvent'; import SlotId from './SlotId'; +import TargetingMap from './TargetingMap'; /** * Slot is an object representing single ad slot on a page. @@ -82,7 +84,7 @@ this._sizes = GeneralSize.toSizes(size); this._services = []; this._categoryExclusions = []; - this._targeting = {}; + this._targeting = new TargetingMap(); this._attributes = {}; this._clickUrl = null; this._responseInformation = null; @@ -244,7 +246,22 @@ * array if there is no such key. */ getTargeting(key) { - return this._targeting[key] || []; + return this._targeting.get(key); + } + + /** + * Sets a custom targeting parameter for this slot. Calling this method + * multiple times for the same key will overwrite old values. Values set here + * will overwrite targeting parameters set on service level. These keys are + * defined in your {@link DFP} account. + * + * @param {string} key Targeting parameter key. + * @param {string|!Array<string>} value Targeting parameter value or array of values. + * @returns {Slot} The {@link Slot} object on which the method was called. + */ + setTargeting(key, value) { + this._targeting.set(key, value); + return this; } /** @@ -254,25 +271,26 @@ * @returns {!Array<string>} Array of targeting keys. Ordering is undefined. */ getTargetingKeys() { - return Object.keys(this._targeting); + return this._targeting.keys(); } /** - * Sets a custom targeting parameter for this slot. Calling this method - * multiple times for the same key will overwrite old values. Values set here - * will overwrite targeting parameters set on service level. These keys are - * defined in your {@link DFP} account. + * Returns the current targeting key-value dictionary. + * + * @experimental + * @returns {Object<string, Array<string>>} the targeting map. + */ + getTargetingMap() { + return this._targeting.all(); + } + + /** + * Clears all custom slot-level targeting parameters for this slot. * - * @param {string} key Targeting parameter key. - * @param {string|!Array<string>} value Targeting parameter value or array of values. * @returns {Slot} The {@link Slot} object on which the method was called. */ - setTargeting(key, value) { - if (Array.isArray(value)) { - this._targeting[key] = value; - } else { - this._targeting[key] = [value]; - } + clearTargeting() { + this._targeting.clear(); return this; } @@ -296,26 +314,6 @@ return this; } - /** - * Clears all custom slot-level targeting parameters for this slot. - * - * @returns {Slot} The {@link Slot} object on which the method was called. - */ - clearTargeting() { - this._targeting = {}; - return this; - } - - /** - * Returns the current targeting key-value dictionary. - * - * @experimental - * @returns {Object<string, Array<string>>} the targeting map. - */ - getTargetingMap() { - return Object.assign({}, this._targeting); - } - /** * Adds a service to this slot. * diff --git a/docs/file/src/SlotId.js.html b/docs/file/src/SlotId.js.html index a359ab5..a3227af 100644 --- a/docs/file/src/SlotId.js.html +++ b/docs/file/src/SlotId.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/file/src/TargetingMap.js.html b/docs/file/src/TargetingMap.js.html new file mode 100644 index 0000000..7cc3c61 --- /dev/null +++ b/docs/file/src/TargetingMap.js.html @@ -0,0 +1,144 @@ + + + + + + src/TargetingMap.js | gpt-mock API Document + + + + + + + + + +
    + Home + Manual + Reference + Source + Test + + +
    + + + +

    src/TargetingMap.js

    +
    /**
    + * Manages setting and retrieving targeting.
    + *
    + * @experimental
    + */
    +export default class TargetingMap {
    +  /**
    +   * Creates a new {@link TargetingMap} instance.
    +   */
    +  constructor() {
    +    this._targeting = {};
    +  }
    +
    +  /**
    +   * Sets custom targeting parameters for a given key.
    +   *
    +   * @param {string} key Targeting parameter key.
    +   * @param {string|!Array<string>} value Targeting parameter value or array of values.
    +   */
    +  set(key, value) {
    +    if (Array.isArray(value)) {
    +      this._targeting[key] = value;
    +    } else {
    +      this._targeting[key] = [value];
    +    }
    +  }
    +
    +  /**
    +   * Returns a specific targeting parameter that has been set.
    +   *
    +   * @param {string} key The targeting key to look for.
    +   * @returns {!Array<string>} The values associated with this key, or an empty
    +   * array if there is no such key.
    +   */
    +  get(key) {
    +    return this._targeting[key] || [];
    +  }
    +
    +  /**
    +   * Returns the list of all targeting keys that have been set.
    +   *
    +   * @returns {!Array<string>} Array of targeting keys. Ordering is undefined.
    +   */
    +  keys() {
    +    return Object.keys(this._targeting);
    +  }
    +
    +  /**
    +   * Clears custom targeting parameters for a given key.
    +   *
    +   * @param {string} [key] Targeting parameter key.
    +   */
    +  clear(key) {
    +    if (key == null) {
    +      this._targeting = {};
    +    } else {
    +      delete this._targeting[key];
    +    }
    +  }
    +
    +  /**
    +   * Returns the current targeting key-value dictionary.
    +   *
    +   * @returns {Object<string, Array<string>>} the targeting map.
    +   */
    +  all() {
    +    return Object.assign({}, this._targeting);
    +  }
    +}
    +
    + +
    + + + + + + + + + + + + diff --git a/docs/file/src/events/ImpressionViewableEvent.js.html b/docs/file/src/events/ImpressionViewableEvent.js.html index 0075569..1b7e814 100644 --- a/docs/file/src/events/ImpressionViewableEvent.js.html +++ b/docs/file/src/events/ImpressionViewableEvent.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/file/src/events/SlotOnloadEvent.js.html b/docs/file/src/events/SlotOnloadEvent.js.html index f2c7f5f..7263874 100644 --- a/docs/file/src/events/SlotOnloadEvent.js.html +++ b/docs/file/src/events/SlotOnloadEvent.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/file/src/events/SlotRenderEndedEvent.js.html b/docs/file/src/events/SlotRenderEndedEvent.js.html index f3cbbdf..ae47e8c 100644 --- a/docs/file/src/events/SlotRenderEndedEvent.js.html +++ b/docs/file/src/events/SlotRenderEndedEvent.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/file/src/events/SlotVisibilityChangedEvent.js.html b/docs/file/src/events/SlotVisibilityChangedEvent.js.html index 9679e89..3dbca4c 100644 --- a/docs/file/src/events/SlotVisibilityChangedEvent.js.html +++ b/docs/file/src/events/SlotVisibilityChangedEvent.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/file/src/main.js.html b/docs/file/src/main.js.html index 9367c71..55507aa 100644 --- a/docs/file/src/main.js.html +++ b/docs/file/src/main.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/identifiers.html b/docs/identifiers.html index 1aebfb8..95f9510 100644 --- a/docs/identifiers.html +++ b/docs/identifiers.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • @@ -478,6 +479,32 @@ + + + + + public + + + + + + +
    +

    + TargetingMap +

    +
    +
    + +
    this class is experimental.
    +

    Manages setting and retrieving targeting.

    +
    +
    + + + + diff --git a/docs/index.html b/docs/index.html index a20c9db..3799ab8 100644 --- a/docs/index.html +++ b/docs/index.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • @@ -98,7 +99,7 @@

    Help/Bugs/Requests

    worked on, please file a new issue. The more information the better to describe your problem.

    Contributing

    We ♥ forks and pull requests.

    -

    Please see CONTRIBUTING.md for full details.

    +

    Please see CONTRIBUTING.md for full details.

    Environment

    The project requires nodejs (>=5.6) and npm (>=3.6.0) for development. It has no runtime dependencies.

    Developing

    @@ -123,7 +124,7 @@

    Testing

    npm run tdd
     

    Issue Guidelines

    -

    Please either add a failing unit test or include a jsfiddle that distills and reproduces the issue.

    +

    Please add a failing bug test and create a Pull Request.

    License

    See LICENSE.

    Some of the documentation incorporated into this source code is based on the Google documentation which is licensed under the Creative Commons Attribution 3.0 License. Some of the material may have been modified for use in this library. Copyright of the incorporated documentation remains Google, Inc. Google is a registered trademark of Google and/or its affiliates and this project is not intended to represent that Google endorses this library.

    diff --git a/docs/script/search_index.js b/docs/script/search_index.js index 0d09924..b75bacc 100644 --- a/docs/script/search_index.js +++ b/docs/script/search_index.js @@ -95,6 +95,12 @@ window.esdocSearchIndex = [ "SlotVisibilityChangedEvent gpt-mock/dist/events/SlotVisibilityChangedEvent.js", "class" ], + [ + "gpt-mock/dist/targetingmap.js~targetingmap", + "class/src/TargetingMap.js~TargetingMap.html", + "TargetingMap gpt-mock/dist/TargetingMap.js", + "class" + ], [ "builtinexternal/ecmascriptexternal.js~array", "external/index.html", @@ -3497,6 +3503,102 @@ window.esdocSearchIndex = [ "SlotVisibilityChangedEvent #slot returns slot", "test" ], + [ + "targetingmap src/targetingmap.js~targetingmap,targetingmap", + "test-file/unit/TargetingMap.spec.js.html#lineNumber4", + "TargetingMap", + "test" + ], + [ + "targetingmap#clear src/targetingmap.js~targetingmap#clear,targetingmap#clear", + "test-file/unit/TargetingMap.spec.js.html#lineNumber80", + "TargetingMap #clear", + "test" + ], + [ + "", + "test-file/unit/TargetingMap.spec.js.html#lineNumber81", + "TargetingMap #clear clears all targeting", + "test" + ], + [ + "", + "test-file/unit/TargetingMap.spec.js.html#lineNumber96", + "TargetingMap #clear clears specific targeting", + "test" + ], + [ + "targetingmap#get src/targetingmap.js~targetingmap#get,targetingmap#get", + "test-file/unit/TargetingMap.spec.js.html#lineNumber6", + "TargetingMap #get", + "test" + ], + [ + "", + "test-file/unit/TargetingMap.spec.js.html#lineNumber7", + "TargetingMap #get returns empty array if not set", + "test" + ], + [ + "", + "test-file/unit/TargetingMap.spec.js.html#lineNumber13", + "TargetingMap #get returns the value (as an array) if set", + "test" + ], + [ + "targetingmap#keys src/targetingmap.js~targetingmap#keys,targetingmap#keys", + "test-file/unit/TargetingMap.spec.js.html#lineNumber22", + "TargetingMap #keys", + "test" + ], + [ + "", + "test-file/unit/TargetingMap.spec.js.html#lineNumber29", + "TargetingMap #keys returns array of keys", + "test" + ], + [ + "", + "test-file/unit/TargetingMap.spec.js.html#lineNumber23", + "TargetingMap #keys returns empty array if no keys", + "test" + ], + [ + "targetingmap#set src/targetingmap.js~targetingmap#set,targetingmap#set", + "test-file/unit/TargetingMap.spec.js.html#lineNumber53", + "TargetingMap #set", + "test" + ], + [ + "", + "test-file/unit/TargetingMap.spec.js.html#lineNumber68", + "TargetingMap #set overwrites the previous value", + "test" + ], + [ + "", + "test-file/unit/TargetingMap.spec.js.html#lineNumber61", + "TargetingMap #set saves the array value", + "test" + ], + [ + "", + "test-file/unit/TargetingMap.spec.js.html#lineNumber54", + "TargetingMap #set saves the value", + "test" + ], + [ + "targetingmap#all src/targetingmap.js~targetingmap#all,targetingmap#all", + "test-file/unit/TargetingMap.spec.js.html#lineNumber39", + "TargetingMap all", + "test" + ], + [ + "", + "test-file/unit/TargetingMap.spec.js.html#lineNumber40", + "TargetingMap all returns the targeting map", + "test" + ], [ "src/commandarray.js", "file/src/CommandArray.js.html", @@ -4397,6 +4499,48 @@ window.esdocSearchIndex = [ "src/SlotId.js~SlotId#toString", "method" ], + [ + "src/targetingmap.js", + "file/src/TargetingMap.js.html", + "src/TargetingMap.js", + "file" + ], + [ + "src/targetingmap.js~targetingmap#all", + "class/src/TargetingMap.js~TargetingMap.html#instance-method-all", + "src/TargetingMap.js~TargetingMap#all", + "method" + ], + [ + "src/targetingmap.js~targetingmap#clear", + "class/src/TargetingMap.js~TargetingMap.html#instance-method-clear", + "src/TargetingMap.js~TargetingMap#clear", + "method" + ], + [ + "src/targetingmap.js~targetingmap#constructor", + "class/src/TargetingMap.js~TargetingMap.html#instance-constructor-constructor", + "src/TargetingMap.js~TargetingMap#constructor", + "method" + ], + [ + "src/targetingmap.js~targetingmap#get", + "class/src/TargetingMap.js~TargetingMap.html#instance-method-get", + "src/TargetingMap.js~TargetingMap#get", + "method" + ], + [ + "src/targetingmap.js~targetingmap#keys", + "class/src/TargetingMap.js~TargetingMap.html#instance-method-keys", + "src/TargetingMap.js~TargetingMap#keys", + "method" + ], + [ + "src/targetingmap.js~targetingmap#set", + "class/src/TargetingMap.js~TargetingMap.html#instance-method-set", + "src/TargetingMap.js~TargetingMap#set", + "method" + ], [ "src/events/impressionviewableevent.js", "file/src/events/ImpressionViewableEvent.js.html", @@ -4655,6 +4799,12 @@ window.esdocSearchIndex = [ "unit/SlotId.spec.js", "testFile" ], + [ + "unit/targetingmap.spec.js", + "test-file/unit/TargetingMap.spec.js.html", + "unit/TargetingMap.spec.js", + "testFile" + ], [ "unit/events/impressionviewableevent.spec.js", "test-file/unit/events/ImpressionViewableEvent.spec.js.html", diff --git a/docs/source.html b/docs/source.html index 7a95711..ed27054 100644 --- a/docs/source.html +++ b/docs/source.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • @@ -54,7 +55,7 @@
    -

    Source 164/164

    +

    Source 171/171

    @@ -75,7 +76,7 @@ - + @@ -83,7 +84,7 @@ - + @@ -91,7 +92,7 @@ - + @@ -99,7 +100,7 @@ - + @@ -107,7 +108,7 @@ - + @@ -115,7 +116,7 @@ - + @@ -123,15 +124,15 @@ - + - - - + + + @@ -139,7 +140,7 @@ - + @@ -147,15 +148,15 @@ - + - + - + @@ -163,7 +164,7 @@ - + @@ -171,7 +172,7 @@ - + @@ -179,7 +180,7 @@ - + @@ -187,7 +188,7 @@ - + @@ -195,7 +196,7 @@ - + @@ -203,15 +204,15 @@ - + - - - + + + @@ -219,7 +220,15 @@ - + + + + + + + + + @@ -227,7 +236,7 @@ - + @@ -235,7 +244,7 @@ - + @@ -243,7 +252,7 @@ - + @@ -251,7 +260,7 @@ - + @@ -259,7 +268,7 @@ - +
    100 %3/3 924 byte 332016-09-07 12:04:39 (UTC)2016-09-07 22:32:48 (UTC)
    src/CompanionAdsService.js100 %4/4 1793 byte 652016-09-07 11:19:26 (UTC)2016-09-07 22:32:48 (UTC)
    src/ContentService.js100 %4/4 1174 byte 542016-09-07 11:35:34 (UTC)2016-09-07 22:32:48 (UTC)
    src/GPT.js100 %19/19 9173 byte 2992016-09-07 12:27:22 (UTC)2016-09-07 22:32:48 (UTC)
    src/GeneralSize.js- 1085 byte 412016-09-07 11:35:34 (UTC)2016-09-07 22:32:48 (UTC)
    src/MultiSize.js- 970 byte 522016-09-07 12:05:32 (UTC)2016-09-07 22:32:48 (UTC)
    src/NamedSize.js- 738 byte 232016-09-07 12:04:38 (UTC)2016-09-07 22:32:48 (UTC)
    src/PubAdsService.js PubAdsService 100 %29/2915624 byte4652016-09-07 12:05:28 (UTC)15905 byte4682016-09-07 22:32:48 (UTC)
    src/ResponseInformation.js100 %7/7 1345 byte 662016-09-07 11:31:46 (UTC)2016-09-07 22:32:48 (UTC)
    src/SafeFrameConfig.js100 %5/5 1454 byte 492016-09-07 11:31:46 (UTC)2016-09-07 22:32:48 (UTC)
    src/Service.js Service 100 %12/125298 byte5296 byte 1972016-09-07 12:04:39 (UTC)2016-09-07 22:32:48 (UTC)
    src/SingleSize.js- 828 byte 312016-09-07 12:05:32 (UTC)2016-09-07 22:32:48 (UTC)
    src/SingleSizeArray.js- 1130 byte 492016-09-07 12:05:28 (UTC)2016-09-07 22:32:48 (UTC)
    src/Size.js100 %10/10 1584 byte 902016-09-07 12:06:08 (UTC)2016-09-07 22:32:48 (UTC)
    src/SizeMapping.js- 660 byte 262016-09-07 12:04:38 (UTC)2016-09-07 22:32:48 (UTC)
    src/SizeMappingArray.js- 466 byte 252016-09-07 12:04:38 (UTC)2016-09-07 22:32:48 (UTC)
    src/SizeMappingBuilder.js100 %4/4 1580 byte 482016-09-07 11:47:34 (UTC)2016-09-07 22:32:48 (UTC)
    src/Slot.js Slot 100 %38/3816121 byte5732016-09-07 11:58:25 (UTC)16074 byte5702016-09-07 22:32:48 (UTC)
    src/SlotId.js100 %8/8 1539 byte 742016-09-07 11:51:27 (UTC)2016-09-07 22:32:48 (UTC)
    src/TargetingMap.jsTargetingMap100 %7/71559 byte692016-09-07 22:32:48 (UTC)
    src/events/ImpressionViewableEvent.js100 %4/4 933 byte 442016-09-07 12:05:32 (UTC)2016-09-07 22:32:48 (UTC)
    src/events/SlotOnloadEvent.js100 %4/4 955 byte 452016-09-07 12:04:38 (UTC)2016-09-07 22:32:48 (UTC)
    src/events/SlotRenderEndedEvent.js100 %8/8 2600 byte 962016-09-07 12:04:38 (UTC)2016-09-07 22:32:48 (UTC)
    src/events/SlotVisibilityChangedEvent.js100 %5/5 1288 byte 562016-09-07 12:04:38 (UTC)2016-09-07 22:32:48 (UTC)
    src/main.js- 229 byte 92016-09-07 12:08:02 (UTC)2016-09-07 22:32:48 (UTC)
    diff --git a/docs/test-file/unit/CommandArray.spec.js.html b/docs/test-file/unit/CommandArray.spec.js.html index 02200d5..343b9b9 100644 --- a/docs/test-file/unit/CommandArray.spec.js.html +++ b/docs/test-file/unit/CommandArray.spec.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/test-file/unit/CompanionAdsService.spec.js.html b/docs/test-file/unit/CompanionAdsService.spec.js.html index c0bfd8a..67c0dbe 100644 --- a/docs/test-file/unit/CompanionAdsService.spec.js.html +++ b/docs/test-file/unit/CompanionAdsService.spec.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/test-file/unit/ContentService.spec.js.html b/docs/test-file/unit/ContentService.spec.js.html index 5b331c9..23b6f43 100644 --- a/docs/test-file/unit/ContentService.spec.js.html +++ b/docs/test-file/unit/ContentService.spec.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/test-file/unit/GPT.spec.js.html b/docs/test-file/unit/GPT.spec.js.html index 5b211a5..d52e15e 100644 --- a/docs/test-file/unit/GPT.spec.js.html +++ b/docs/test-file/unit/GPT.spec.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/test-file/unit/GeneralSize.spec.js.html b/docs/test-file/unit/GeneralSize.spec.js.html index b49e22d..9d667e9 100644 --- a/docs/test-file/unit/GeneralSize.spec.js.html +++ b/docs/test-file/unit/GeneralSize.spec.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/test-file/unit/MultiSize.spec.js.html b/docs/test-file/unit/MultiSize.spec.js.html index f9c8541..3300fc6 100644 --- a/docs/test-file/unit/MultiSize.spec.js.html +++ b/docs/test-file/unit/MultiSize.spec.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/test-file/unit/NamedSize.spec.js.html b/docs/test-file/unit/NamedSize.spec.js.html index 3cbfa56..6f1eedb 100644 --- a/docs/test-file/unit/NamedSize.spec.js.html +++ b/docs/test-file/unit/NamedSize.spec.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/test-file/unit/PubAdsService.spec.js.html b/docs/test-file/unit/PubAdsService.spec.js.html index 9532837..24761c7 100644 --- a/docs/test-file/unit/PubAdsService.spec.js.html +++ b/docs/test-file/unit/PubAdsService.spec.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/test-file/unit/ResponseInformation.spec.js.html b/docs/test-file/unit/ResponseInformation.spec.js.html index 0843118..98cdc9f 100644 --- a/docs/test-file/unit/ResponseInformation.spec.js.html +++ b/docs/test-file/unit/ResponseInformation.spec.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/test-file/unit/SafeFrameConfig.spec.js.html b/docs/test-file/unit/SafeFrameConfig.spec.js.html index 7e83543..a765287 100644 --- a/docs/test-file/unit/SafeFrameConfig.spec.js.html +++ b/docs/test-file/unit/SafeFrameConfig.spec.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/test-file/unit/Service.spec.js.html b/docs/test-file/unit/Service.spec.js.html index 3cd5421..c9ff80c 100644 --- a/docs/test-file/unit/Service.spec.js.html +++ b/docs/test-file/unit/Service.spec.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/test-file/unit/SingleSize.spec.js.html b/docs/test-file/unit/SingleSize.spec.js.html index d23ad4d..b0b3b4f 100644 --- a/docs/test-file/unit/SingleSize.spec.js.html +++ b/docs/test-file/unit/SingleSize.spec.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/test-file/unit/SingleSizeArray.spec.js.html b/docs/test-file/unit/SingleSizeArray.spec.js.html index 9e2a748..991daca 100644 --- a/docs/test-file/unit/SingleSizeArray.spec.js.html +++ b/docs/test-file/unit/SingleSizeArray.spec.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/test-file/unit/Size.spec.js.html b/docs/test-file/unit/Size.spec.js.html index 9cb69fe..1ca7a06 100644 --- a/docs/test-file/unit/Size.spec.js.html +++ b/docs/test-file/unit/Size.spec.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/test-file/unit/SizeMapping.spec.js.html b/docs/test-file/unit/SizeMapping.spec.js.html index 03e0c86..15d0616 100644 --- a/docs/test-file/unit/SizeMapping.spec.js.html +++ b/docs/test-file/unit/SizeMapping.spec.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/test-file/unit/SizeMappingArray.spec.js.html b/docs/test-file/unit/SizeMappingArray.spec.js.html index 75dd944..dd5536a 100644 --- a/docs/test-file/unit/SizeMappingArray.spec.js.html +++ b/docs/test-file/unit/SizeMappingArray.spec.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/test-file/unit/SizeMappingBuilder.spec.js.html b/docs/test-file/unit/SizeMappingBuilder.spec.js.html index 1a2e01f..ea503fe 100644 --- a/docs/test-file/unit/SizeMappingBuilder.spec.js.html +++ b/docs/test-file/unit/SizeMappingBuilder.spec.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/test-file/unit/Slot.spec.js.html b/docs/test-file/unit/Slot.spec.js.html index eaf3d68..cd55457 100644 --- a/docs/test-file/unit/Slot.spec.js.html +++ b/docs/test-file/unit/Slot.spec.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/test-file/unit/SlotId.spec.js.html b/docs/test-file/unit/SlotId.spec.js.html index 0f773a7..5727637 100644 --- a/docs/test-file/unit/SlotId.spec.js.html +++ b/docs/test-file/unit/SlotId.spec.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/test-file/unit/TargetingMap.spec.js.html b/docs/test-file/unit/TargetingMap.spec.js.html new file mode 100644 index 0000000..dd552a7 --- /dev/null +++ b/docs/test-file/unit/TargetingMap.spec.js.html @@ -0,0 +1,186 @@ + + + + + + unit/TargetingMap.spec.js | gpt-mock API Document + + + + + + + + + +
    + Home + Manual + Reference + Source + Test + + +
    + + + +

    unit/TargetingMap.spec.js

    +
    import TargetingMap from '../../src/TargetingMap';
    +
    +/** @test {TargetingMap} */
    +describe('TargetingMap', () => {
    +  /** @test {TargetingMap#get} */
    +  describe('#get', () => {
    +    it('returns empty array if not set', () => {
    +      const map = new TargetingMap();
    +      expect(map.get('kv1')).to.be.an('array');
    +      expect(map.get('kv1')).to.be.empty();
    +    });
    +
    +    it('returns the value (as an array) if set', () => {
    +      const map = new TargetingMap();
    +      map.set('kv1', 'value');
    +      expect(map.get('kv1')).to.be.an('array');
    +      expect(map.get('kv1')).to.eql(['value']);
    +    });
    +  });
    +
    +  /** @test {TargetingMap#keys} */
    +  describe('#keys', () => {
    +    it('returns empty array if no keys', () => {
    +      const map = new TargetingMap();
    +      expect(map.keys()).to.be.an('array');
    +      expect(map.keys()).to.be.empty();
    +    });
    +
    +    it('returns array of keys', () => {
    +      const map = new TargetingMap();
    +      map.set('kv1', 'value1');
    +      map.set('kv2', 'value2');
    +      expect(map.keys()).to.be.an('array');
    +      expect(map.keys()).to.eql(['kv1', 'kv2']);
    +    });
    +  });
    +
    +  /** @test {TargetingMap#all} */
    +  describe('all', () => {
    +    it('returns the targeting map', () => {
    +      const map = new TargetingMap();
    +      map.set('kv1', 'value1');
    +      map.set('kv2', 'value2');
    +      expect(map.all()).to.be.an('object');
    +      expect(map.all()).to.eql({
    +        kv1: ['value1'],
    +        kv2: ['value2']
    +      });
    +    });
    +  });
    +
    +  /** @test {TargetingMap#set} */
    +  describe('#set', () => {
    +    it('saves the value', () => {
    +      const map = new TargetingMap();
    +      map.set('kv1', 'value');
    +      expect(map.get('kv1')).to.be.an('array');
    +      expect(map.get('kv1')).to.eql(['value']);
    +    });
    +
    +    it('saves the array value', () => {
    +      const map = new TargetingMap();
    +      map.set('kv1', ['value']);
    +      expect(map.get('kv1')).to.be.an('array');
    +      expect(map.get('kv1')).to.eql(['value']);
    +    });
    +
    +    it('overwrites the previous value', () => {
    +      const map = new TargetingMap();
    +      map.set('kv1', 'value1');
    +      expect(map.get('kv1')).to.be.an('array');
    +      expect(map.get('kv1')).to.eql(['value1']);
    +      map.set('kv1', 'value2');
    +      expect(map.get('kv1')).to.be.an('array');
    +      expect(map.get('kv1')).to.eql(['value2']);
    +    });
    +  });
    +
    +  /** @test {TargetingMap#clear} */
    +  describe('#clear', () => {
    +    it('clears all targeting', () => {
    +      const map = new TargetingMap();
    +      map.set('kv1', 'value1');
    +      map.set('kv2', 'value2');
    +      expect(map.get('kv1')).to.be.an('array');
    +      expect(map.get('kv1')).to.eql(['value1']);
    +      expect(map.get('kv2')).to.be.an('array');
    +      expect(map.get('kv2')).to.eql(['value2']);
    +      map.clear();
    +      expect(map.get('kv1')).to.be.an('array');
    +      expect(map.get('kv1')).to.empty();
    +      expect(map.get('kv2')).to.be.an('array');
    +      expect(map.get('kv2')).to.empty();
    +    });
    +
    +    it('clears specific targeting', () => {
    +      const map = new TargetingMap();
    +      map.set('kv1', 'value1');
    +      map.set('kv2', 'value2');
    +      expect(map.get('kv1')).to.be.an('array');
    +      expect(map.get('kv1')).to.eql(['value1']);
    +      expect(map.get('kv2')).to.be.an('array');
    +      expect(map.get('kv2')).to.eql(['value2']);
    +      map.clear('kv2');
    +      expect(map.get('kv1')).to.be.an('array');
    +      expect(map.get('kv1')).to.eql(['value1']);
    +      expect(map.get('kv2')).to.be.an('array');
    +      expect(map.get('kv2')).to.empty();
    +    });
    +  });
    +});
    +
    + +
    + + + + + + + + + + + + diff --git a/docs/test-file/unit/events/ImpressionViewableEvent.spec.js.html b/docs/test-file/unit/events/ImpressionViewableEvent.spec.js.html index 6bdb808..3c4c016 100644 --- a/docs/test-file/unit/events/ImpressionViewableEvent.spec.js.html +++ b/docs/test-file/unit/events/ImpressionViewableEvent.spec.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/test-file/unit/events/SlotOnloadEvent.spec.js.html b/docs/test-file/unit/events/SlotOnloadEvent.spec.js.html index 93e3bc9..c373bab 100644 --- a/docs/test-file/unit/events/SlotOnloadEvent.spec.js.html +++ b/docs/test-file/unit/events/SlotOnloadEvent.spec.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/test-file/unit/events/SlotRenderEndedEvent.spec.js.html b/docs/test-file/unit/events/SlotRenderEndedEvent.spec.js.html index bdad41d..55505dc 100644 --- a/docs/test-file/unit/events/SlotRenderEndedEvent.spec.js.html +++ b/docs/test-file/unit/events/SlotRenderEndedEvent.spec.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/test-file/unit/events/SlotVisibilityChangedEvent.spec.js.html b/docs/test-file/unit/events/SlotVisibilityChangedEvent.spec.js.html index a33cd63..089dca1 100644 --- a/docs/test-file/unit/events/SlotVisibilityChangedEvent.spec.js.html +++ b/docs/test-file/unit/events/SlotVisibilityChangedEvent.spec.js.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • diff --git a/docs/test.html b/docs/test.html index 2f58ef9..1f074e8 100644 --- a/docs/test.html +++ b/docs/test.html @@ -44,6 +44,7 @@
  • CSizeMappingBuilder
  • CSlot
  • CSlotId
  • +
  • CTargetingMap
  • EArray#push
  • EDFP
  • CImpressionViewableEvent
  • @@ -3326,6 +3327,120 @@ + +

    TargetingMap

    +
    + TargetingMap + 10 + + + + + +

    #get

    +
    + TargetingMap#get + 2 + + + +

    returns empty array if not set

    +
    + - + + + +

    returns the value (as an array) if set

    +
    + - + + + + + +

    #keys

    +
    + TargetingMap#keys + 2 + + + +

    returns empty array if no keys

    +
    + - + + + +

    returns array of keys

    +
    + - + + + + + +

    all

    +
    + TargetingMap#all + 1 + + + +

    returns the targeting map

    +
    + - + + + + + +

    #set

    +
    + TargetingMap#set + 3 + + + +

    saves the value

    +
    + - + + + +

    saves the array value

    +
    + - + + + +

    overwrites the previous value

    +
    + - + + + + + +

    #clear

    +
    + TargetingMap#clear + 2 + + + +

    clears all targeting

    +
    + - + + + +

    clears specific targeting

    +
    + - + + + +

    ImpressionViewableEvent