/*! * 1DS JS SDK POST plugin, 3.2.13 * Copyright (c) Microsoft and contributors. All rights reserved. * (Microsoft Internal Only) */ var e=this,n=function(e,n,t,ee){"use strict";function y(e){return e&&"object"==typeof e&&"default"in e?e["default"]:e}var o=y(t),ne="REAL_TIME",G="",Y="POST",Z="drop",t="requeue",$="application/x-json-stream",ye="cache-control",me="content-type",ge="kill-duration",be="time-delta-millis",te="client-version",Te="client-id",ie="time-delta-to-apply-millis",re="upload-time",ae="apikey",oe="AuthMsaDeviceTicket",i="AuthXToken",se="msfpc",Ee="trace",ue="user";function m(e){e=(e.ext||{}).intweb;return e&&ee.isValueAssigned(e[se])?e[se]:null}function g(e){for(var n=null,t=0;null===n&&tee.dateNow()||(delete n[e],!1)}})}var E=.8,S=1.2,_=3e3,w=6e5;function Se(e){var n=_*E;return Math.min(Math.pow(2,e)*(Math.floor(Math.random()*(_*S-n))+n),w)}var R="metadata",c="f",P=/\./,_e=(l.__ieDyn=1,l);function l(n,e,b,t){var a="baseData",T=!!t,E=e,S={};o(l,this,function(m){function g(e,d,f,h,p,v,y){ee.objForEachKey(e,function(e,n){if(n||ee.isValueAssigned(n)){var t,i=f,r=e,a=p,o=d;if(T&&!h&&P.test(e)){var s=e.split("."),u=s.length;if(1=O)):N++,1))):a)&&g(pe,[e],ee.EventsDiscardedReason.QueueFull)}function a(e,n,t){y(e,n,t),K.sendQueuedRequests(n,t)}function o(){0<=J&&y(J,0,F)&&K.sendQueuedRequests(0,F),0=O&&(t=!0)})}p(!0,t)},c.pause=function(){i(),L=!0,K.pause()},c.resume=function(){L=!1,K.resume(),o()},c.addResponseHandler=function(e){K._responseHandlers.push(e)},c._loadTransmitProfiles=function(e){i(),n(),U=ne,o(),ee.objForEachKey(e,function(e,n){var t,i=n.length;2<=i&&(t=2n[1]&&(t=n[1]),n.push(t),I[e]=n)})},c.flush=function(e,n,t){void 0===e&&(e=!0),L||(t=t||1,e?null==H?(i(),y(1,0,t),H=s(function(){H=null,function i(e,n){a(1,0,n),v(),function t(e){K.isCompletelyIdle()?e():H=s(function(){H=null,t(e)},.25)}(function(){e&&e(),0