(()=>{"use strict";var e={117:(e,n)=>{Object.defineProperty(n,"t",{value:!0}),n.FEATURE_TOGGLE_LIST=void 0;n.FEATURE_TOGGLE_LIST={DERIVED_EPIK:{chance:100,uri:"pin-derived-epik"},SCRAPE_LISTENERS:{chance:100,uri:"pin-scrape-listeners"},SEND_LOGS:{chance:100,uri:"pin-log-errors"},CHECK_CSP:{chance:5,uri:"pin-check-csp"},DEDUPE_AEM_ELIGIBLE_ARRAY:{chance:100,uri:"pin-dedupe-aem-eligible-array"},CHECK_AUTO_UPGRADED:{chance:100,uri:"pin-check-auto-upgraded"},CHECK_DOCUMENT_COOKIE:{chance:0,uri:"pin-check-document-cookie"},SEND_TO_STAGING:{chance:0,uri:"pin-send-to-staging"},CHROME_TRIAL_EPIK_LOCALSTORAGE:{chance:100,uri:"pin-trial-epik-localstorage"},NO_CODE_CAPI_ENABLED:{chance:100,uri:"nocodecapi-enabled"},IAB_IOS_REFERRER_ENABLED:{chance:100,uri:"iab-ios-referrer-enabled"},AEM_STORAGE:{chance:10,uri:"pin-aem-storage"},AEM_DOCUMENT_LISTENER:{chance:100,uri:"pin-aem-document-listener"}}},645:(e,n,r)=>{Object.defineProperty(n,"t",{value:!0}),n.default=void 0;var t,i=(t=r(843))&&t.t?t:{default:t};var a={},c="unknown";function o(e){e.version=c,100*Math.random()<(i.default.LIST.SEND_LOGS.chance||0)&&a.i(e)}a.setVersion=function(e){c=e},a.i=function(e){var n=new window.XMLHttpRequest;n.withCredentials=!1,n.onerror=function(){console.info("Error message failed to send")},n.open("POST","https://ct.pinterest.com/stats/",!1),n.setRequestHeader("Content-Type","application/json"),n.send(JSON.stringify(e))},a.error=function(e,n){var r={messageType:"ERROR",message:e,log:"[".concat(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Empty","]")};n.hasOwnProperty("stack")?r.log+="[".concat(n.stack,"]"):r.log+="[".concat(n.message,"]"),o(r)},a.info=function(e,n){o({messageType:"INFO",message:e,log:"[".concat(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Empty","][").concat(n,"]")})};n.default=a},843:(e,n,r)=>{Object.defineProperty(n,"t",{value:!0}),n.default=void 0;var t=r(117);function i(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var t,i,a,c,o=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;u=!1}else for(;!(u=(t=a.call(r)).done)&&(o.push(t.value),o.length!==n);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=r.return&&(c=r.return(),Object(c)!==c))return}finally{if(l)throw i}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return a(e,n);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=Array(n);r<n;r++)t[r]=e[r];return t}var c={};c.LIST=t.FEATURE_TOGGLE_LIST,function(){if("undefined"!=typeof window&&window.location){var e=window.location.search;if(e)for(var n=0,r=Object.entries(c.LIST);n<r.length;n++){var t=i(r[n],2),a=t[0],o=t[1];try{"true"===new URLSearchParams(e).get(o.uri)&&(c.LIST[a].chance=100)}catch(e){}}}}(),c.isInRampPercentage=function(e){return 100*Math.random()<(e||0)};n.default=c}},n={};var r=function r(t){var i=n[t];if(void 0!==i)return i.exports;var a=n[t]={exports:{}};return e[t](a,a.exports,r),a.exports}(645);try{!function(e){var n=document.createElement("meta");n.httpEquiv="origin-trial",n.content=e,document.head.append(n)}("A7JYkbIvWKmS8mWYjXO12SIIsfPdI7twY91Y3LWOV/YbZmN1ZhYv8O+Zs6/IPCfBE99aV9tIC8sWZSCN09vf7gkAAACWeyJvcmlnaW4iOiJodHRwczovL2N0LnBpbnRlcmVzdC5jb206NDQzIiwiZmVhdHVyZSI6IkRpc2FibGVUaGlyZFBhcnR5U3RvcmFnZVBhcnRpdGlvbmluZzIiLCJleHBpcnkiOjE3NDIzNDIzOTksImlzU3ViZG9tYWluIjp0cnVlLCJpc1RoaXJkUGFydHkiOnRydWV9")}catch(e){r.error("Error attempting to add trial token:",e)}})();
//# sourceMappingURL=token_create.js.map