!function(){"use strict";function e(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{s(i.next(e))}catch(e){o(e)}}function c(e){try{s(i.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}s((i=i.apply(e,t||[])).next())}))}let t;const n=n=>e(void 0,void 0,void 0,(function*(){if(t)return Promise.resolve(t);const e=yield(e=>(e=>e.top!==e.self)(e)?Promise.resolve(e):new Promise((t=>{try{const n=e.document.createElement("iframe");n.src="about:blank",n.style.display="none";const i=()=>{e.document.body.appendChild(n),t(n.contentWindow)};"interactive"===document.readyState||"complete"===document.readyState?i():document.addEventListener("DOMContentLoaded",(()=>{i()}))}catch(e){t(null)}})))(n);if(!e)return Promise.reject("iframe window for datadog is null");return new Promise(((n,i)=>{const r=window.frameElement&&window.top?window.top.document:document,o=e.document.createElement("script");o.async=!0,o.src="https://www.datadoghq-browser-agent.com/datadog-logs-v4.js",o.onload=()=>{(e=>"DD_LOGS"in e)(e)?e.DD_LOGS.onReady((()=>{e.DD_LOGS.init({clientToken:"pubf9159ed47a5e0d4d8ca1f19377f88a35",site:"datadoghq.com",service:"fluct-one",forwardErrorsToLogs:!1,version:"0239f02",env:"prod",beforeSend:e=>(e.view.url=r.location.href,e.view.referrer=r.referrer,!0)}),t=e.DD_LOGS,n(t)})):i("DD_LOGS is not found in iframe window")},o.onerror=()=>{i("error occurred while loading datadog script")},e.document.head.appendChild(o)}))}));function i(e){return{message:e.message,name:e.name,description:e.description,number:e.number,fileName:e.fileName||e.sourceURL,lineNumber:e.lineNumber||e.line,columnNumber:e.columnNumber,stack:e.stack}}const r=new class{constructor(){this.isDebugMode=!1}setDebugMode(e){this.isDebugMode=e}error(e,t,n=100){this.log("error",e,t,n)}warn(e,t,n=100){this.log("warn",e,t,n)}info(e,t,n=100){this.log("info",e,t,n)}debug(e,t,n=100){this.log("debug",e,t,n)}log(e,t,n,r){const o=n instanceof Error?i(n):n,a=r;this.sendToConsole(e,t,o),100*Math.random(){n.logger.log(t,i,e)})).catch((e=>{console.error("Failed to send logs to Datadog:",e)}))}sendToConsole(e,t,n){("error"===e||this.isDebugMode)&&console[e]("%c [fluct-one]:","background-color: lightblue; color: black;",t,n)}},o=function(e,t){if("regexp"===e.type)try{const n=new RegExp(e.value);return null!==t.match(n)}catch(t){return r.logWithError(t,"error",`Invalid regexp pattern: ${e.value}.`,{pattern:e}),!1}return t.includes(e.value)};class a{constructor(e,t){this.params=e,this.url=t}check(){if(0===this.params.patterns.length)return!0;return!!this.params.patterns.find((e=>o(e,this.url)))}}class c{constructor(e,t){this.params=e,this.url=t}check(){if(0===this.params.patterns.length)return!0;return!this.params.patterns.find((e=>o(e,this.url)))}}class s{constructor(e,t){this.params=e,this.referrer=t}check(){if(0===this.params.patterns.length)return!0;return!!this.params.patterns.find((e=>o(e,this.referrer)))}}class d{constructor(e,t){this.params=e,this.referrer=t}check(){if(0===this.params.patterns.length)return!0;return!this.params.patterns.find((e=>o(e,this.referrer)))}}const l="android",p="ios";class u{constructor(e,t){this.params=e,this.ua=t}check(){let e="unknown";return/android/i.test(this.ua)&&(e=l),/iP(hone|(o|a)d)/.test(this.ua)&&(e=p),"unknown"!==e&&((e!==l||this.params.kind===l)&&(e!==p||this.params.kind===p))}}class f{constructor(e,t){this.params=e,this.ua=t}check(){const e=!!this.ua.match(/iPhone|Android.+Mobile/);return(!e||"pc"!==this.params.kind)&&!(!e&&"sp"===this.params.kind)}}class g{constructor(e,t,n,i){this.params=e,this.referrer=t,this.url=n,this.host=i}check(){var e;return this.params.displayable===function(e,t,n,i){if(!t.match(i))return!1;if(e.find((e=>o(e,n))))return!1;return!0}(null!==(e=this.params.excludePatterns)&&void 0!==e?e:[],this.referrer,this.url,this.host)}}class m{constructor(e){this.params=e}check(){const e=this.params.funcitonText,t=this.stringToFunction(e);if(!t)return!1;try{const n=t();return"boolean"!=typeof n?(r.error("customFunction: Function must return boolean",{functionText:e}),!1):n}catch(t){return r.logWithError(t,"error","customFunction: Failed to execute function",{functionText:e}),!1}}stringToFunction(e){try{const t=Function("return ("+e+")")();return"function"!=typeof t?(r.error("customFunction: Failed to convert string to function. not",{functionString:e}),null):t}catch(t){return r.logWithError(t,"error","customFunction: Failed to convert string to function. Error occured.",{functionString:e}),null}}}function v(e,t={referrer:document.referrer,url:location.href,host:location.host,ua:navigator.userAgent}){const n=function(e,t){const n=[];return e.url&&n.push(new a(e.url,t.url)),e.excludeUrl&&n.push(new c(e.excludeUrl,t.url)),e.referrer&&n.push(new s(e.referrer,t.referrer)),e.excludeReferrer&&n.push(new d(e.excludeReferrer,t.referrer)),e.os&&n.push(new u(e.os,t.ua)),e.device&&n.push(new f(e.device,t.ua)),e.yda&&n.push(new g(e.yda,t.referrer,t.url,t.host)),e.customFunction&&n.push(new m(e.customFunction)),n}(e,t);for(const e of n)if(!e.check())return!1;return!0}function _(e){const t=e.components,n=function(e){const t=e.reduce(((e,t)=>e+t),0);let n=Math.random()*t;for(let t=0;te.weight)));return null!==n?t[n]:null}function h(e,t=document){b(t)?document.write(e):function(e,t){var n,i,r;void 0===t&&(t=null!==(n=document.body)&&void 0!==n?n:document.head);const o=(new DOMParser).parseFromString(e,"text/html"),a=null===(i=o.head)||void 0===i?void 0:i.children,c=null===(r=o.body)||void 0===r?void 0:r.children,s=new Uint32Array(1),d="boot-target-script-"+window.crypto.getRandomValues(s)[0];Array.prototype.forEach.call(o.getElementsByTagName("script"),(e=>{e.className=d})),Array.prototype.forEach.call(a,(e=>t.appendChild(e.cloneNode(!0)))),Array.prototype.forEach.call(c,(e=>t.appendChild(e.cloneNode(!0))));const l=Array.prototype.slice.call(t.getElementsByClassName(d)),p=[];l.forEach((e=>{const t=self.document.createElement("script");for(let n=0;n{var t;const n=e.s,i=e.original;null===(t=i.parentNode)||void 0===t||t.replaceChild(n,i)}))}(e,t.currentScript)}function b(e){const t=!e.currentScript.async,n=!!e.write.prototype;return t||n}function y(e){const t=new URL(document.location.href);return t.searchParams?t.searchParams.get(e):null}const w={site:{id:"bab11486-68a5-4260-9c36-f4e831c10294",name:"dely|trill(bodyタグ内に設置する)",siteCode:"trilltrill",triggers:[{id:"cc789d83-6701-4ce0-8b61-21ed57d9ecf0",title:"SP_Android_interstitial",condition:{excludeUrl:{patterns:[{value:"/terms",type:"regexp"},{value:"/sitemap",type:"regexp"},{type:"regexp",value:"/search"},{type:"string",value:"/games/"}]},referrer:{patterns:[{value:"https://trilltrill-dev.jp",type:"string"},{value:"https://trilltrill-stg.jp",type:"string"},{value:"https://trilltrill.jp",type:"string"}]},device:{kind:"sp"},os:{kind:"android"},customFunction:{funcitonText:'function () {\n function frequency() {\n var freq_cookie_name = "adingo_fluct_frequency";\n\n var cookie_pos = document.cookie.indexOf(freq_cookie_name + "=");\n if (cookie_pos !== -1) {\n var cookie_value_start_pos = cookie_pos + freq_cookie_name.length + 1;\n var cookie_value_end_pos = document.cookie.indexOf(";", cookie_value_start_pos);\n if (cookie_value_end_pos === -1) {\n cookie_value_end_pos = document.cookie.length;\n }\n var cookie_value = decodeURIComponent(document.cookie.substring(cookie_value_start_pos, cookie_value_end_pos));\n if (cookie_value === "true") { // "true"以外の値は想定されていない。その場合はcookieが存在しないのと同じ処理をする\n return false;\n }\n }\n return true;\n }\n\n function isNotSponsoredContent() {\n const element = document.querySelectorAll("meta[property=\'article:tag\']").item(0);\n return !(element && element.content === "スポンサード・コンテンツ");\n }\n\n function isAdxInstNotDisplayed() {\n var ADX_INST_DISPLAYED_KEY = "isAdxInstDisplayed";\n try {\n var isAdxInstDisplayed = sessionStorage.getItem(ADX_INST_DISPLAYED_KEY) === "true";\n return !isAdxInstDisplayed;\n } catch (e) {\n if (e.name !== "SecurityError") throw e;\n return false;\n }\n }\n return frequency() && isNotSponsoredContent() && isAdxInstNotDisplayed()\n}'}},weightedParents:[{id:"4404edb2-04e1-4b72-9b59-2b526988fe2b",title:"未設定",components:[{id:"2f6aeaa7-9eed-411d-9b9d-db1d3bbe7090",title:"GMO_INST",tagText:'