Amid crippling sanctions, Iran traders seek lifeline in Iraq


Amid crippling sanctions, Iran traders seek lifeline in Iraq | News 4 Buffalo 2&&void 0!==arguments[2]&&arguments[2];i(this,e),this.apstagSlots=[],this.prebidSlots=[],this.prebidData={analytics:[],priceGranularity:{},sizeConfig:[],slotMap:{},userSync:{}},this.googletag=t,this.isApsEnabled=o,this.isPrebidJSEnabled=a,this.setUpSlot=this.setUpSlot.bind(this),this.refreshSlots=this.refreshSlots.bind(this),this.isPrebidJSEnabled&&(window.pbjs=window.pbjs||{},window.pbjs.que=pbjs.que||[],window.prebidData&&(this.prebidData=window.prebidData,window.NXSTdata&&window.NXSTdata.content&&window.NXSTdata.content.pageDcode&&this.prebidData.slotMap&&Object.keys(this.prebidData.slotMap).forEach((function(e){n.prebidData.slotMap[e].filter((function(e){return”rubicon”===e.bidder})).forEach((function(e){e.params.inventory={d_code:window.NXSTdata.content.pageDcode}}))}))),window.pbjs.que.push((function(){window.pbjs.setConfig({sizeConfig:n.prebidData.sizeConfig,priceGranularity:n.prebidData.priceGranularity,userSync:n.prebidData.userSync}),n.prebidData.analytics.length&&window.pbjs.enableAnalytics(n.prebidData.analytics)})))}var t,n,a;return t=e,a=[{key:”apstag”,value:function(){return window.apstag||null}}],(n=[{key:”setUpSlot”,value:function(e,t,n,i,o){var a=this;this.pushCmd((function(){var n=null;if((n=t.is_oop?a.googletag.defineOutOfPageSlot(i,e):a.googletag.defineSlot(i,t.size,e))&&(o&&Object.keys(o).forEach((function(e){n.setTargeting(e,o[e])})),t.sizes.length&&n.defineSizeMapping(t.sizes),t.is_companion&&n.addService(a.googletag.companionAds()),n.addService(a.googletag.pubads())),n){var r=[];if(n.getSizes?r=n.getSizes(window.innerWidth,window.innerHeight).map((function(e){return[e.getWidth(),e.getHeight()]})):t.sizes.length&&(r=Object.values(t.sizes.reduce((function(e,t){var n=e;return t[1].forEach((function(e){n[e.join(“,”)]=e})),n}),{}))),r.length&&(r=r.filter((function(e){return!(88===e[0]&&31===e[1])}))),r.length){var s=o&&o.pos,d=[n.getAdUnitPath().split(“/”).slice(0,3).join(“/”),s].join(“/”);if(a.apstagSlots.push({sizes:r,slotID:n.getSlotElementId(),slotName:d}),a.isPrebidJSEnabled){var c=a.getPrebidBidsForSlot(s);s&&c.length&&a.prebidSlots.push({code:n.getSlotElementId(),mediaTypes:{banner:{sizes:r}},bids:c})}}}}))}},{key:”getPrebidBidsForSlot”,value:function(e){return e&&this.prebidData.slotMap&&this.prebidData.slotMap[e]?this.prebidData.slotMap[e]:[]}},{key:”initVisibleSlots”,value:function(){var e=this;this.pushCmd((function(){e.googletag.pubads().getSlots().forEach((function(t){e.pushCmd((function(){e.googletag.display(t.getSlotElementId())}))}))})),this.refreshSlots()}},{key:”refreshSlots”,value:function(){var e=this;this.pushCmd((function(){e.initPrebidRequest((function(){e.googletag.pubads().refresh()}))}))}},{key:”initPrebidRequest”,value:function(e){this.isPrebidJSEnabled?this.isApsEnabled?this.fetchHeaderBids(this.apstagSlots,this.prebidSlots,2e3,e):this.fetchHeaderBids([],this.prebidSlots,2e3,e):this.isApsEnabled?this.fetchHeaderBids(this.apstagSlots,[],2e3,e):this.pushCmd(e)}},{key:”fetchHeaderBids”,value:function(e,t,n,i){var o=this,a=this.constructor.apstag(),r=[],s=this.isApsEnabled&&e.length;s&&r.push(“a9”),t.length&&r.push(“prebid”);var d={adserverRequestSent:!1};r.forEach((function(e){d[e]=!1}));var c=function(){!0!==d.adserverRequestSent&&(d.adserverRequestSent=!0,d.sendAdserverRequest=!0,o.googletag.cmd.push((function(){s&&a.setDisplayBids(),o.isPrebidJSEnabled&&”function”==typeof window.pbjs.setTargetingForGPTAsync&&window.pbjs.setTargetingForGPTAsync(),i()})))},l=function(e){!0!==d.adserverRequestSent&&(“a9″===e?d.a9=!0:”prebid”===e&&(d.prebid=!0),r.map((function(e){return d[e]})).filter(Boolean).length===r.length&&c())};s&&a.fetchBids({slots:e,timeout:n},(function(){l(“a9”)})),o.isPrebidJSEnabled&&window.pbjs.que.push((function(){window.pbjs.addAdUnits(t),window.pbjs.requestBids({bidsBackHandler:function(){l(“prebid”)}})})),window.setTimeout((function(){c()}),n)}},{key:”pushCmd”,value:function(e){this.googletag.cmd.push(e)}}])&&o(t.prototype,n),a&&o(t,a),e}(),r=n(23);function s(e){if(window&&window.sessionStorage)return window.sessionStorage.getItem(e)}function d(e,t){if(window&&window.sessionStorage)try{window.sessionStorage.setItem(e,t)}catch(e){}}function c(e){return(c=”function”==typeof Symbol&&”symbol”==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&”function”==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?”symbol”:typeof e})(e)}var l=function(){return”object”===(“undefined”==typeof apstag?”undefined”:c(apstag))?window.apstag:{}};function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=window.amScripts,f=g.page_attributes,b=g.gpt;Object(r.a)(),googletag.cmd.push((function(){googletag.pubads().enableSingleRequest(),googletag.pubads().enableAsyncRendering(),googletag.pubads().collapseEmptyDivs(),googletag.companionAds().setRefreshUnfilledSlots(!0),googletag.pubads().disableInitialLoad(),googletag.pubads().enableVideoAds(),googletag.enableServices()})),googletag.cmd.push((function(){var e=googletag.pubads(),t=b.ab_test;f.article_id&&e.setTargeting(“pid”,String(f.article_id)),f.page_type&&e.setTargeting(“pagetype”,f.page_type);var n,i,o,a=(n=t.min,i=t.max,o=Math.ceil(n),Math.floor(Math.random()*(Math.floor(i)-o))+o);e.setTargeting(“pagetest”,String(a));var r=encodeURIComponent(window.location.search).substring(3).replace(“%26″,”&”).replace(“%3D”,”=”),c=new URLSearchParams(r);c.has(“page_key”)&&e.setTargeting(“page_key”,c.get(“page_key”));var l=s(t.storage_key);if(l||(l=a,d(t.storage_key,l)),e.setTargeting(“sessiontest”,String(l)),window&&window.NXSTdata.content.pageDcode&&e.setTargeting(“d_code”,window.NXSTdata.content.pageDcode),window&&window.NXSTdata.content.nlpCategories){var u=Object.entries(window.NXSTdata.content.nlpCategories).sort((function(e,t){return e[1]!==t[1]?t[1]-e[1]:e[0].length!==t[0].length?t[0].length-e[0].length:e[0].localeCompare(t[0])})),p=[];u.forEach((function(e){e[0].split(“/”).forEach((function(e,t){if(e){var n=e.replace(/[^A-Z0-9]+/gi,”_”);n=0===n.indexOf(“_”)?n.substring(1):n,p[t]=p[t]||[],p[t].push(n.slice(0,24).toLowerCase())}}))})),p.forEach((function(t,n){0n&&e.setTargeting(“nlpcat”.concat(n),t)}))}if(window&&window.NXSTdata.content.nlpSentiment){var g=window.NXSTdata.content.nlpSentiment.score,w=”0″;0!==g&&(w=0 Skip to content div[id^=acm]”);if(u){var l=r[0],s=void 0===l?null:l,f=r[1],g=void 0===f?null:f;s&&g&&(u.setAttribute(“width”,s),u.setAttribute(“height”,g))}d.classList.add(“ad-unit–is-rendered”)}}}}))}))}}); //# sourceMappingURL=ad-handler.bundle.min.js.map]]>

Source