PageSourceSearch

https://pepperstone.com/pepperstone-assets/_next/static/chunks/ajs-destination.608416268e00fc67.js

js pepperstone.com collected 2026-09-24 09:27:44 UTC 8,952 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5050],{10808:(t,n,i)=>{i.d(n,{j:()=>e});function e(t,n){var i,e;return"boolean"==typeof(null==n?void 0:n.enabled)?n.enabled:null==(e=null==(i=null==t?void 0:t.__default)?void 0:i.enabled)||e}},61990:(t,n,i)=>{i.r(n),i.d(n,{LegacyDestination:()=>C,ajsDestinations:()=>S});var e=i(72660),r=i(33620),o=i(52182),s=i(28095),a=i(99485),u=i(6373),l=i(334),c=i(10808),d=i(46584),h=i(82781),f=i(43880),v=i(41747),p=i(95085),g=i(53772),y=i(83385);function m(t){return t.toLowerCase().replace(".","").replace(/\s+/g,"-")}function w(t,n){return void 0===n&&(n=!1),n?btoa(t).replace(/=/g,""):void 0}var b=i(83943),H=function(t,n){var i,e=n.type,r=n.bundlingStatus,o=n.versionSettings,s="unbundled"!==r&&("browser"===e||(null==(i=null==o?void 0:o.componentTypes)?void 0:i.includes("browser")));return!t.startsWith("Segment")&&"Iterable"!==t&&s},_=function(t,n){var i=!1===n.All&&void 0===n[t];return!1===n[t]||i},z=i(97233),k=i(66421),C=function(){function t(t,n,i,r,o,s){void 0===r&&(r={});var a=this;this.options={},this.type="destination",this.middleware=[],this.initializePromise=(0,k.u)(),this.flushing=!1,this.name=t,this.version=n,this.settings=(0,e.Cl)({},r),this.disableAutoISOConversion=o.disableAutoISOConversion||!1,this.integrationSource=s,this.settings.type&&"browser"===this.settings.type&&delete this.settings.type,this.initializePromise.promise.then(function(t){return a._initialized=t},function(){}),this.options=o,this.buffer=o.disableClientPersistence?new f.M(4,[]):new v.x(4,"".concat(i,":dest-").concat(t)),this.scheduleFlush()}return t.prototype.isLoaded=function(){return!!this._ready},t.prototype.ready=function(){var t=this;return this.initializePromise.promise.then(function(){var n;return null!=(n=t.onReady)?n:Promise.resolve()})},t.prototype.load=function(t,n){var i;return(0,e.sH)(this,void 0,void 0,function(){var r,o,s,a=this;return(0,e.YH)(this,function(u){switch(u.label){case 0:if(this._ready||void 0!==this.onReady)return[2];u.label=1;case 1:if(u.trys.push([1,5,,6]),null==(i=this.integrationSource))return[3,2];return o=i,[3,4];case 2:return[4,function(t,n,i,r){return(0,e.sH)(this,void 0,void 0,function(){var o,s,a,u,l;return(0,e.YH)(this,function(c){switch(c.label){case 0:s=w(o=m(n),r),a=(0,g.YM)(),u="".concat(a,"/integrations/").concat(null!=s?s:o,"/").concat(i,"/").concat(null!=s?s:o,".dynamic.js.gz"),c.label=1;case 1:return c.trys.push([1,3,,4]),[4,(0,y.k)(u)];case 2:c.sent();var d,h,f=u;try{var v=(null!=(h=null==(d=null==window?void 0:window.performance)?void 0:d.getEntriesByName(f,"resource"))?h:[])[0];v&&t.stats.gauge("legacy_destination_time",Math.round(v.duration),(0,e.fX)([n],v.duration<100?["cached"]:[],!0))}catch(t){}return[3,4];case 3:throw l=c.sent(),t.stats.gauge("legacy_destination_time",-1,["plugin:".concat(n),"failed"]),l;case 4:return[4,Promise.all(window["".concat(o,"Deps")].map(function(t){return(0,y.k)(a+t+".gz")}))];case 5:return c.sent(),window["".concat(o,"Loader")](),[2,window["".concat(o,"Integration")]]}})})}(t,this.name,this.version,this.options.obfuscate)];case 3:o=u.sent(),u.label=4;case 4:return r=o,this.integration=function(t,n,i){if("Integration"in t){var e;t({user:function(){return i.user()},addIntegration:function(){}}),e=t.Integration}else e=t;var r=new e(n);return r.analytics=i,r}(r,this.settings,n),[3,6];case 5:throw s=u.sent(),(0,z.y)(t,{integrationName:this.name,methodName:"load",type:"classic",didError:!0}),s;case 6:this.onReady=new Promise(function(t){a.integration.once("ready",function(){a._ready=!0,t(!0)})}),this.integration.on("initialize",function(){a.initializePromise.resolve(!0)});try{(0,z.y)(t,{integrationName:this.name,methodName:"initialize",type:"classic"}),this.integration.initialize()}catch(n){throw(0,z.y)(t,{integrationName:this.name,methodName:"initialize",type:"classic",didError:!0}),this.initializePromise.resolve(!1),n}return[2]}})})},t.prototype.unload=function(t,n){return function(t,n,i){return(0,e.sH)(this,void 0,void 0,function(){var r,o,s,a;return(0,e.YH)(this,function(e){return r=(0,g.YM)(),o=m(t),s=w(t,i),a="".concat(r,"/integrations/").concat(null!=s?s:o,"/").concat(n,"/").concat(null!=s?s:o,".dynamic.js.gz"),[2,(0,y.d)(a)]})})}(this.name,this.version,this.options.obfuscate)},t.prototype.addMiddleware=function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];this.middleware=(t=this.middleware).concat.apply(t,n)},t.prototype.shouldBuffer=function(t){return"page"!==t.event.type&&((0,o.a)()||!0!==this._ready||!0!==this._initialized)},t.prototype.send=function(t,n,i){var r,o;return(0,e.sH)(this,void 0,void 0,function(){var s,u,l,d,h,f;return(0,e.YH)(this,function(v){switch(v.label){case 0:if(this.shouldBuffer(t))return this.buffer.push(t),this.scheduleFlush(),[2,t];return s=null==(o=null==(r=this.options)?void 0:r.plan)?void 0:o.track,u=t.event.event,s&&u&&"Segment.io"!==this.name&&(l=s[u],(0,c.j)(s,l)?t.updateEvent("integrations",(0,e.Cl)((0,e.Cl)({},t.event.integrations),null==l?void 0:l.integrations)):(t.updateEvent("integrations",(0,e.Cl)((0,e.Cl)({},t.event.integrations),{All:!1,"Segment.io":!0})),t.cancel(new a.d({retry:!1,reason:"Event ".concat(u," disabled for integration ").concat(this.name," in tracking plan"),type:"Dropped by plan"}))),(null==l?void 0:l.enabled)&&(null==l?void 0:l.integrations[this.name])===!1&&t.cancel(new a.d({retry:!1,reason:"Event ".concat(u," disabled for integration ").concat(this.name," in tracking plan"),type:"Dropped by plan"}))),[4,(0,p.applyDestinationMiddleware)(this.name,t.event,this.middleware)];case 1:if(null===(d=v.sent()))return[2,t];h=new n(d,{traverse:!this.disableAutoISOConversion}),(0,z.y)(t,{integrationName:this.name,methodName:i,type:"classic"}),v.label=2;case 2:if(v.trys.push([2,5,,6]),!this.integration)return[3,4];return[4,this.integration.invoke.call(this.integration,i,h)];case 3:v.sent(),v.label=4;case 4:return[3,6];case 5:throw f=v.sent(),(0,z.y)(t,{integrationName:this.name,methodName:i,type:"classic",didError:!0}),f;case 6:return[2,t]}})})},t.prototype.track=function(t){return(0,e.sH)(this,void 0,void 0,function(){return(0,e.YH)(this,function(n){return[2,this.send(t,r.Track,"track")]})})},t.prototype.page=function(t){var n;return(0,e.sH)(this,void 0,void 0,function(){return(0,e.YH)(this,function(i){switch(i.label){case 0:return(null==(n=this.integration)?void 0:n._assumesPageview)&&!this._initialized&&this.integration.initialize(),[4,this.initializePromise.promise];case 1:return i.sent(),[2,this.send(t,r.Page,"page")]}})})},t.prototype.identify=function(t){return(0,e.sH)(this,void 0,void 0,function(){return(0,e.YH)(this,function(n){return[2,this.send(t,r.Identify,"identify")]})})},t.prototype.alias=function(t){return(0,e.sH)(this,void 0,void 0,function(){return(0,e.YH)(this,function(n){return[2,this.send(t,r.Alias,"alias")]})})},t.prototype.group=function(t){return(0,e.sH)(this,void 0,void 0,function(){return(0,e.YH)(this,function(n){return[2,this.send(t,r.Group,"group")]})})},t.prototype.scheduleFlush=function(){var t=this;this.flushing||setTimeout(function(){return(0,e.sH)(t,void 0,void 0,function(){var t;return(0,e.YH)(this,function(n){switch(n.label){case 0:if((0,o.a)()||!0!==this._ready||!0!==this._initialized)return this.scheduleFlush(),[2];return this.flushing=!0,t=this,[4,function(t,n){return(0,e.sH)(this,void 0,void 0,function(){var i,r=this;return(0,e.YH)(this,function(a){switch(a.label){case 0:if(i=[],(0,o.a)())return[2,n];return[4,(0,h._)(function(){return n.length>0&&(0,o.s)()},function(){return(0,e.sH)(r,void 0,void 0,function(){var r;return(0,e.YH)(this,function(e){switch(e.label){case 0:if(!(r=n.pop()))return[2];return[4,(0,l.C)(r,t)];case 1:return e.sent()instanceof s.o||i.push(r),[2]}})})})];case 1:return a.sent(),i.map(function(t){return n.pushWithBackoff(t)}),[2,n]}})})}(this,this.buffer)];case 1:return t.buffer=n.sent(),this.flushing=!1,this.buffer.todo>0&&this.scheduleFlush(),[2]}})})},5e3*Math.random())},t}();function S(t,n,i,r,o,s){if(void 0===i&&(i={}),void 0===r&&(r={}),(0,u.S)())return[];n.plan&&((r=null!=r?r:{}).plan=n.plan);var a,l,c=null!=(l=null==(a=n.middlewareSettings)?void 0:a.routingRules)?l:[],h=n.integrations,f=r.integrations,v=(0,d.J)(n,null!=r?r:{}),p=null==s?void 0:s.reduce(function(t,n){var i;return(0,e.Cl)((0,e.Cl)({},t),((i={})[("Integration"in n?n.Integration:n).prototype.name]=n,i))},{});return Array.from(new Set((0,e.fX)((0,e.fX)([],Object.keys(h).filter(function(t){return H(t,h[t])}
1),!0),Object.keys(p||{}).filter(function(t){return(0,b.Qd)(h[t])||(0,b.Qd)(null==f?void 0:f[t])}),!0))).filter(function(t){return!_(t,i)}).map(function(n){var i,e,s,a,u,l=null!=(u=null!=(s=null==(e=null==(i=h[n])?void 0:i.versionSettings)?void 0:e.override)?s:null==(a=null==i?void 0:i.versionSettings)?void 0:a.version)?u:"latest",d=new C(n,l,t,v[n],r,null==p?void 0:p[n]);return c.filter(function(t){return t.destinationName===n}).length>0&&o&&d.addMiddleware(o),d})}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.