!function(e,t,r){"use strict";e(r).ready(function(n){if(!t.VISION||!t.VISION.WordPressLoaderInit){t.VISION?t.VISION.WordPressLoaderInit=!0:t.VISION={WordPressLoaderInit:!0};const o=r.getElementsByTagName("head").item(0),l="vision-effects-css",e=n("<link>"),s=n("<script>");e.attr({rel:"stylesheet",type:"text/css",href:vision_globals.plugin_base_url+"vision.css?ver="+vision_globals.plugin_version}).appendTo(o),s.appendTo(o),s.attr({type:"text/javascript",src:vision_globals.plugin_base_url+"jquery.vision.js?ver="+vision_globals.plugin_version}),n(".vision-map").each(function(e,s){const t=n(s).data("json-src");s=t&&-1!==t.indexOf("/preview/");const i={url:t,type:"GET",dataType:"json"};s&&(i.headers={"X-WP-Nonce":vision_globals.api.nonce}),n.ajax(i).done(function(e){if(e.flags.effects&&null==r.getElementById(l)){const s=n("<link>");s.attr({id:l,rel:"stylesheet",type:"text/css",href:vision_globals.effects_url+"?ver="+vision_globals.plugin_version}).appendTo(o)}if(e.theme&&null==r.getElementById("vision-theme-"+e.theme+"-css")){const t=n("<link>"),i=vision_globals.theme_base_url+e.theme+".css?ver="+vision_globals.version;t.attr({id:"vision-theme-"+e.theme+"-css",rel:"stylesheet",type:"text/css",href:i}).appendTo(o)}})})}})}(jQuery,window,document);