
/*! This file is auto-generated */
(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{actions:()=>S,addAction:()=>m,addFilter:()=>p,applyFilters:()=>k,createHooks:()=>h,currentAction:()=>w,currentFilter:()=>I,defaultHooks:()=>f,didAction:()=>O,didFilter:()=>j,doAction:()=>b,doingAction:()=>x,doingFilter:()=>T,filters:()=>z,hasAction:()=>v,hasFilter:()=>y,removeAction:()=>A,removeAllActions:()=>F,removeAllFilters:()=>g,removeFilter:()=>_});const n=function(t){return"string"!=typeof t||""===t?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(t)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};const r=function(t){return"string"!=typeof t||""===t?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(t)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(t)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};const o=function(t,e){return function(o,i,s,c=10){const l=t[e];if(!r(o))return;if(!n(i))return;if("function"!=typeof s)return void console.error("The hook callback must be a function.");if("number"!=typeof c)return void console.error("If specified, the hook priority must be a number.");const u={callback:s,priority:c,namespace:i};if(l[o]){const t=l[o].handlers;let e;for(e=t.length;e>0&&!(c>=t[e-1].priority);e--);e===t.length?t[e]=u:t.splice(e,0,u),l.__current.forEach((t=>{t.name===o&&t.currentIndex>=e&&t.currentIndex++}))}else l[o]={handlers:[u],runs:0};"hookAdded"!==o&&t.doAction("hookAdded",o,i,s,c)}};const i=function(t,e,o=!1){return function(i,s){const c=t[e];if(!r(i))return;if(!o&&!n(s))return;if(!c[i])return 0;let l=0;if(o)l=c[i].handlers.length,c[i]={runs:c[i].runs,handlers:[]};else{const t=c[i].handlers;for(let e=t.length-1;e>=0;e--)t[e].namespace===s&&(t.splice(e,1),l++,c.__current.forEach((t=>{t.name===i&&t.currentIndex>=e&&t.currentIndex--})))}return"hookRemoved"!==i&&t.doAction("hookRemoved",i,s),l}};const s=function(t,e){return function(n,r){const o=t[e];return void 0!==r?n in o&&o[n].handlers.some((t=>t.namespace===r)):n in o}};const c=function(t,e,n=!1){return function(r,...o){const i=t[e];i[r]||(i[r]={handlers:[],runs:0}),i[r].runs++;const s=i[r].handlers;if(!s||!s.length)return n?o[0]:void 0;const c={name:r,currentIndex:0};for(i.__current.push(c);c.currentIndex<s.length;){const t=s[c.currentIndex].callback.apply(null,o);n&&(o[0]=t),c.currentIndex++}return i.__current.pop(),n?o[0]:void 0}};const l=function(t,e){return function(){var n;const r=t[e];return null!==(n=r.__current[r.__current.length-1]?.name)&&void 0!==n?n:null}};const u=function(t,e){return function(n){const r=t[e];return void 0===n?void 0!==r.__current[0]:!!r.__current[0]&&n===r.__current[0].name}};const a=function(t,e){return function(n){const o=t[e];if(r(n))return o[n]&&o[n].runs?o[n].runs:0}};class d{constructor(){this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=o(this,"actions"),this.addFilter=o(this,"filters"),this.removeAction=i(this,"actions"),this.removeFilter=i(this,"filters"),this.hasAction=s(this,"actions"),this.hasFilter=s(this,"filters"),this.removeAllActions=i(this,"actions",!0),this.removeAllFilters=i(this,"filters",!0),this.doAction=c(this,"actions"),this.applyFilters=c(this,"filters",!0),this.currentAction=l(this,"actions"),this.currentFilter=l(this,"filters"),this.doingAction=u(this,"actions"),this.doingFilter=u(this,"filters"),this.didAction=a(this,"actions"),this.didFilter=a(this,"filters")}}const h=function(){return new d},f=h(),{addAction:m,addFilter:p,removeAction:A,removeFilter:_,hasAction:v,hasFilter:y,removeAllActions:F,removeAllFilters:g,doAction:b,applyFilters:k,currentAction:w,currentFilter:I,doingAction:x,doingFilter:T,didAction:O,didFilter:j,actions:S,filters:z}=f;(window.wp=window.wp||{}).hooks=e})();



/*! This file is auto-generated */
(()=>{var t={2058:(t,e,r)=>{var n;!function(){"use strict";var i={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function a(t){return function(t,e){var r,n,o,s,l,u,p,c,f,d=1,h=t.length,g="";for(n=0;n<h;n++)if("string"==typeof t[n])g+=t[n];else if("object"==typeof t[n]){if((s=t[n]).keys)for(r=e[d],o=0;o<s.keys.length;o++){if(null==r)throw new Error(a('[sprintf] Cannot access property "%s" of undefined value "%s"',s.keys[o],s.keys[o-1]));r=r[s.keys[o]]}else r=s.param_no?e[s.param_no]:e[d++];if(i.not_type.test(s.type)&&i.not_primitive.test(s.type)&&r instanceof Function&&(r=r()),i.numeric_arg.test(s.type)&&"number"!=typeof r&&isNaN(r))throw new TypeError(a("[sprintf] expecting number but found %T",r));switch(i.number.test(s.type)&&(c=r>=0),s.type){case"b":r=parseInt(r,10).toString(2);break;case"c":r=String.fromCharCode(parseInt(r,10));break;case"d":case"i":r=parseInt(r,10);break;case"j":r=JSON.stringify(r,null,s.width?parseInt(s.width):0);break;case"e":r=s.precision?parseFloat(r).toExponential(s.precision):parseFloat(r).toExponential();break;case"f":r=s.precision?parseFloat(r).toFixed(s.precision):parseFloat(r);break;case"g":r=s.precision?String(Number(r.toPrecision(s.precision))):parseFloat(r);break;case"o":r=(parseInt(r,10)>>>0).toString(8);break;case"s":r=String(r),r=s.precision?r.substring(0,s.precision):r;break;case"t":r=String(!!r),r=s.precision?r.substring(0,s.precision):r;break;case"T":r=Object.prototype.toString.call(r).slice(8,-1).toLowerCase(),r=s.precision?r.substring(0,s.precision):r;break;case"u":r=parseInt(r,10)>>>0;break;case"v":r=r.valueOf(),r=s.precision?r.substring(0,s.precision):r;break;case"x":r=(parseInt(r,10)>>>0).toString(16);break;case"X":r=(parseInt(r,10)>>>0).toString(16).toUpperCase()}i.json.test(s.type)?g+=r:(!i.number.test(s.type)||c&&!s.sign?f="":(f=c?"+":"-",r=r.toString().replace(i.sign,"")),u=s.pad_char?"0"===s.pad_char?"0":s.pad_char.charAt(1):" ",p=s.width-(f+r).length,l=s.width&&p>0?u.repeat(p):"",g+=s.align?f+r+l:"0"===u?f+l+r:l+f+r)}return g}(function(t){if(s[t])return s[t];var e,r=t,n=[],a=0;for(;r;){if(null!==(e=i.text.exec(r)))n.push(e[0]);else if(null!==(e=i.modulo.exec(r)))n.push("%");else{if(null===(e=i.placeholder.exec(r)))throw new SyntaxError("[sprintf] unexpected placeholder");if(e[2]){a|=1;var o=[],l=e[2],u=[];if(null===(u=i.key.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(o.push(u[1]);""!==(l=l.substring(u[0].length));)if(null!==(u=i.key_access.exec(l)))o.push(u[1]);else{if(null===(u=i.index_access.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");o.push(u[1])}e[2]=o}else a|=2;if(3===a)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");n.push({placeholder:e[0],param_no:e[1],keys:e[2],sign:e[3],pad_char:e[4],align:e[5],width:e[6],precision:e[7],type:e[8]})}r=r.substring(e[0].length)}return s[t]=n}(t),arguments)}function o(t,e){return a.apply(null,[t].concat(e||[]))}var s=Object.create(null);e.sprintf=a,e.vsprintf=o,"undefined"!=typeof window&&(window.sprintf=a,window.vsprintf=o,void 0===(n=function(){return{sprintf:a,vsprintf:o}}.call(e,r,e,t))||(t.exports=n))}()}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var a=e[n]={exports:{}};return t[n](a,a.exports,r),a.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{__:()=>F,_n:()=>j,_nx:()=>L,_x:()=>S,createI18n:()=>x,defaultI18n:()=>_,getLocaleData:()=>v,hasTranslation:()=>D,isRTL:()=>T,resetLocaleData:()=>w,setLocaleData:()=>m,sprintf:()=>a,subscribe:()=>k});var t=r(2058),e=r.n(t);const i=function(t,e){var r,n,i=0;function a(){var a,o,s=r,l=arguments.length;t:for(;s;){if(s.args.length===arguments.length){for(o=0;o<l;o++)if(s.args[o]!==arguments[o]){s=s.next;continue t}return s!==r&&(s===n&&(n=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=r,s.prev=null,r.prev=s,r=s),s.val}s=s.next}for(a=new Array(l),o=0;o<l;o++)a[o]=arguments[o];return s={args:a,val:t.apply(null,a)},r?(r.prev=s,s.next=r):n=s,i===e.maxSize?(n=n.prev).next=null:i++,r=s,s.val}return e=e||{},a.clear=function(){r=null,n=null,i=0},a}(console.error);function a(t,...r){try{return e().sprintf(t,...r)}catch(e){return e instanceof Error&&i("sprintf error: \n\n"+e.toString()),t}}var o,s,l,u;o={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},s=["(","?"],l={")":["("],":":["?","?:"]},u=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var p={"!":function(t){return!t},"*":function(t,e){return t*e},"/":function(t,e){return t/e},"%":function(t,e){return t%e},"+":function(t,e){return t+e},"-":function(t,e){return t-e},"<":function(t,e){return t<e},"<=":function(t,e){return t<=e},">":function(t,e){return t>e},">=":function(t,e){return t>=e},"==":function(t,e){return t===e},"!=":function(t,e){return t!==e},"&&":function(t,e){return t&&e},"||":function(t,e){return t||e},"?:":function(t,e,r){if(t)throw e;return r}};function c(t){var e=function(t){for(var e,r,n,i,a=[],p=[];e=t.match(u);){for(r=e[0],(n=t.substr(0,e.index).trim())&&a.push(n);i=p.pop();){if(l[r]){if(l[r][0]===i){r=l[r][1]||r;break}}else if(s.indexOf(i)>=0||o[i]<o[r]){p.push(i);break}a.push(i)}l[r]||p.push(r),t=t.substr(e.index+r.length)}return(t=t.trim())&&a.push(t),a.concat(p.reverse())}(t);return function(t){return function(t,e){var r,n,i,a,o,s,l=[];for(r=0;r<t.length;r++){if(o=t[r],a=p[o]){for(n=a.length,i=Array(n);n--;)i[n]=l.pop();try{s=a.apply(null,i)}catch(t){return t}}else s=e.hasOwnProperty(o)?e[o]:+o;l.push(s)}return l[0]}(e,t)}}var f={contextDelimiter:"",onMissingKey:null};function d(t,e){var r;for(r in this.data=t,this.pluralForms={},this.options={},f)this.options[r]=void 0!==e&&r in e?e[r]:f[r]}d.prototype.getPluralForm=function(t,e){var r,n,i,a=this.pluralForms[t];return a||("function"!=typeof(i=(r=this.data[t][""])["Plural-Forms"]||r["plural-forms"]||r.plural_forms)&&(n=function(t){var e,r,n;for(e=t.split(";"),r=0;r<e.length;r++)if(0===(n=e[r].trim()).indexOf("plural="))return n.substr(7)}(r["Plural-Forms"]||r["plural-forms"]||r.plural_forms),i=function(t){var e=c(t);return function(t){return+e({n:t})}}(n)),a=this.pluralForms[t]=i),a(e)},d.prototype.dcnpgettext=function(t,e,r,n,i){var a,o,s;return a=void 0===i?0:this.getPluralForm(t,i),o=r,e&&(o=e+this.options.contextDelimiter+r),(s=this.data[t][o])&&s[a]?s[a]:(this.options.onMissingKey&&this.options.onMissingKey(r,t),0===a?r:n)};const h={plural_forms:t=>1===t?0:1},g=/^i18n\.(n?gettext|has_translation)(_|$)/,x=(t,e,r)=>{const n=new d({}),i=new Set,a=()=>{i.forEach((t=>t()))},o=(t,e="default")=>{n.data[e]={...n.data[e],...t},n.data[e][""]={...h,...n.data[e]?.[""]},delete n.pluralForms[e]},s=(t,e)=>{o(t,e),a()},l=(t="default",e,r,i,a)=>(n.data[t]||o(void 0,t),n.dcnpgettext(t,e,r,i,a)),u=(t="default")=>t,p=(t,e,n)=>{let i=l(n,e,t);return r?(i=r.applyFilters("i18n.gettext_with_context",i,t,e,n),r.applyFilters("i18n.gettext_with_context_"+u(n),i,t,e,n)):i};if(t&&s(t,e),r){const t=t=>{g.test(t)&&a()};r.addAction("hookAdded","core/i18n",t),r.addAction("hookRemoved","core/i18n",t)}return{getLocaleData:(t="default")=>n.data[t],setLocaleData:s,addLocaleData:(t,e="default")=>{n.data[e]={...n.data[e],...t,"":{...h,...n.data[e]?.[""],...t?.[""]}},delete n.pluralForms[e],a()},resetLocaleData:(t,e)=>{n.data={},n.pluralForms={},s(t,e)},subscribe:t=>(i.add(t),()=>i.delete(t)),__:(t,e)=>{let n=l(e,void 0,t);return r?(n=r.applyFilters("i18n.gettext",n,t,e),r.applyFilters("i18n.gettext_"+u(e),n,t,e)):n},_x:p,_n:(t,e,n,i)=>{let a=l(i,void 0,t,e,n);return r?(a=r.applyFilters("i18n.ngettext",a,t,e,n,i),r.applyFilters("i18n.ngettext_"+u(i),a,t,e,n,i)):a},_nx:(t,e,n,i,a)=>{let o=l(a,i,t,e,n);return r?(o=r.applyFilters("i18n.ngettext_with_context",o,t,e,n,i,a),r.applyFilters("i18n.ngettext_with_context_"+u(a),o,t,e,n,i,a)):o},isRTL:()=>"rtl"===p("ltr","text direction"),hasTranslation:(t,e,i)=>{const a=e?e+""+t:t;let o=!!n.data?.[null!=i?i:"default"]?.[a];return r&&(o=r.applyFilters("i18n.has_translation",o,t,e,i),o=r.applyFilters("i18n.has_translation_"+u(i),o,t,e,i)),o}}},y=window.wp.hooks,b=x(void 0,void 0,y.defaultHooks),_=b,v=b.getLocaleData.bind(b),m=b.setLocaleData.bind(b),w=b.resetLocaleData.bind(b),k=b.subscribe.bind(b),F=b.__.bind(b),S=b._x.bind(b),j=b._n.bind(b),L=b._nx.bind(b),T=b.isRTL.bind(b),D=b.hasTranslation.bind(b)})(),(window.wp=window.wp||{}).i18n=n})();


wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'ltr' ] } );

(()=>{"use strict";var t={d:(e,i)=>{for(var s in i)t.o(i,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:i[s]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function i(t){if(this.formData={},this.tree={},!(t instanceof FormData))return this;this.formData=t;const e=()=>{const t=new Map;return t.largestIndex=0,t.set=function(e,i){""===e?e=t.largestIndex++:/^[0-9]+$/.test(e)&&(e=parseInt(e),t.largestIndex<=e&&(t.largestIndex=e+1)),Map.prototype.set.call(t,e,i)},t};this.tree=e();const i=/^(?<name>[a-z][-a-z0-9_:]*)(?<array>(?:\[(?:[a-z][-a-z0-9_:]*|[0-9]*)\])*)/i;for(const[t,s]of this.formData){const o=t.match(i);if(o)if(""===o.groups.array)this.tree.set(o.groups.name,s);else{const t=[...o.groups.array.matchAll(/\[([a-z][-a-z0-9_:]*|[0-9]*)\]/gi)].map((([t,e])=>e));t.unshift(o.groups.name);const i=t.pop();t.reduce(((t,i)=>{if(/^[0-9]+$/.test(i)&&(i=parseInt(i)),t.get(i)instanceof Map)return t.get(i);const s=e();return t.set(i,s),s}),this.tree).set(i,s)}}}t.r(e),t.d(e,{all:()=>D,any:()=>M,date:()=>f,dayofweek:()=>u,email:()=>r,enum:()=>h,file:()=>m,maxdate:()=>z,maxfilesize:()=>$,maxitems:()=>v,maxlength:()=>x,maxnumber:()=>b,mindate:()=>A,minfilesize:()=>j,minitems:()=>w,minlength:()=>g,minnumber:()=>y,number:()=>c,required:()=>n,requiredfile:()=>a,tel:()=>l,time:()=>d,url:()=>p}),i.prototype.entries=function(){return this.tree.entries()},i.prototype.get=function(t){return this.tree.get(t)},i.prototype.getAll=function(t){if(!this.has(t))return[];const e=t=>{const i=[];if(t instanceof Map)for(const[s,o]of t)i.push(...e(o));else""!==t&&i.push(t);return i};return e(this.get(t))},i.prototype.has=function(t){return this.tree.has(t)},i.prototype.keys=function(){return this.tree.keys()},i.prototype.values=function(){return this.tree.values()};const s=i;function o({rule:t,field:e,error:i,...s}){this.rule=t,this.field=e,this.error=i,this.properties=s}const n=function(t){if(0===t.getAll(this.field).length)throw new o(this)},a=function(t){if(0===t.getAll(this.field).length)throw new o(this)},r=function(t){if(!t.getAll(this.field).every((t=>{if((t=t.trim()).length<6)return!1;if(-1===t.indexOf("@",1))return!1;if(t.indexOf("@")!==t.lastIndexOf("@"))return!1;const[e,i]=t.split("@",2);if(!/^[a-zA-Z0-9!#$%&\'*+\/=?^_`{|}~\.-]+$/.test(e))return!1;if(/\.{2,}/.test(i))return!1;if(/(?:^[ \t\n\r\0\x0B.]|[ \t\n\r\0\x0B.]$)/.test(i))return!1;const s=i.split(".");if(s.length<2)return!1;for(const t of s){if(/(?:^[ \t\n\r\0\x0B-]|[ \t\n\r\0\x0B-]$)/.test(t))return!1;if(!/^[a-z0-9-]+$/i.test(t))return!1}return!0})))throw new o(this)},p=function(t){const e=t.getAll(this.field);if(!e.every((t=>{if(""===(t=t.trim()))return!1;try{return(t=>-1!==["http","https","ftp","ftps","mailto","news","irc","irc6","ircs","gopher","nntp","feed","telnet","mms","rtsp","sms","svn","tel","fax","xmpp","webcal","urn"].indexOf(t))(new URL(t).protocol.replace(/:$/,""))}catch{return!1}})))throw new o(this)},l=function(t){if(!t.getAll(this.field).every((t=>(t=(t=t.trim()).replaceAll(/[()/.*#\s-]+/g,""),/^[+]?[0-9]+$/.test(t)))))throw new o(this)},c=function(t){if(!t.getAll(this.field).every((t=>(t=t.trim(),!!/^[-]?[0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t)||!!/^[-]?(?:[0-9]+)?[.][0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t)))))throw new o(this)},f=function(t){if(!t.getAll(this.field).every((t=>{if(t=t.trim(),!/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t))return!1;const e=new Date(t);return!Number.isNaN(e.valueOf())})))throw new o(this)},d=function(t){if(!t.getAll(this.field).every((t=>{const e=t.trim().match(/^([0-9]{2})\:([0-9]{2})(?:\:([0-9]{2}))?$/);if(!e)return!1;const i=parseInt(e[1]),s=parseInt(e[2]),o=e[3]?parseInt(e[3]):0;return 0<=i&&i<=23&&0<=s&&s<=59&&0<=o&&o<=59})))throw new o(this)},m=function(t){if(!t.getAll(this.field).every((t=>t instanceof File&&this.accept?.some((e=>/^\.[a-z0-9]+$/i.test(e)?t.name.toLowerCase().endsWith(e.toLowerCase()):(t=>{const e=[],i=t.match(/^(?<toplevel>[a-z]+)\/(?<sub>[*]|[a-z0-9.+-]+)$/i);if(i){const t=i.groups.toplevel.toLowerCase(),s=i.groups.sub.toLowerCase();for(const[o,n]of(()=>{const t=new Map;return t.set("jpg|jpeg|jpe","image/jpeg"),t.set("gif","image/gif"),t.set("png","image/png"),t.set("bmp","image/bmp"),t.set("tiff|tif","image/tiff"),t.set("webp","image/webp"),t.set("ico","image/x-icon"),t.set("heic","image/heic"),t.set("asf|asx","video/x-ms-asf"),t.set("wmv","video/x-ms-wmv"),t.set("wmx","video/x-ms-wmx"),t.set("wm","video/x-ms-wm"),t.set("avi","video/avi"),t.set("divx","video/divx"),t.set("flv","video/x-flv"),t.set("mov|qt","video/quicktime"),t.set("mpeg|mpg|mpe","video/mpeg"),t.set("mp4|m4v","video/mp4"),t.set("ogv","video/ogg"),t.set("webm","video/webm"),t.set("mkv","video/x-matroska"),t.set("3gp|3gpp","video/3gpp"),t.set("3g2|3gp2","video/3gpp2"),t.set("txt|asc|c|cc|h|srt","text/plain"),t.set("csv","text/csv"),t.set("tsv","text/tab-separated-values"),t.set("ics","text/calendar"),t.set("rtx","text/richtext"),t.set("css","text/css"),t.set("htm|html","text/html"),t.set("vtt","text/vtt"),t.set("dfxp","application/ttaf+xml"),t.set("mp3|m4a|m4b","audio/mpeg"),t.set("aac","audio/aac"),t.set("ra|ram","audio/x-realaudio"),t.set("wav","audio/wav"),t.set("ogg|oga","audio/ogg"),t.set("flac","audio/flac"),t.set("mid|midi","audio/midi"),t.set("wma","audio/x-ms-wma"),t.set("wax","audio/x-ms-wax"),t.set("mka","audio/x-matroska"),t.set("rtf","application/rtf"),t.set("js","application/javascript"),t.set("pdf","application/pdf"),t.set("swf","application/x-shockwave-flash"),t.set("class","application/java"),t.set("tar","application/x-tar"),t.set("zip","application/zip"),t.set("gz|gzip","application/x-gzip"),t.set("rar","application/rar"),t.set("7z","application/x-7z-compressed"),t.set("exe","application/x-msdownload"),t.set("psd","application/octet-stream"),t.set("xcf","application/octet-stream"),t.set("doc","application/msword"),t.set("pot|pps|ppt","application/vnd.ms-powerpoint"),t.set("wri","application/vnd.ms-write"),t.set("xla|xls|xlt|xlw","application/vnd.ms-excel"),t.set("mdb","application/vnd.ms-access"),t.set("mpp","application/vnd.ms-project"),t.set("docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"),t.set("docm","application/vnd.ms-word.document.macroEnabled.12"),t.set("dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"),t.set("dotm","application/vnd.ms-word.template.macroEnabled.12"),t.set("xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"),t.set("xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"),t.set("xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"),t.set("xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"),t.set("xltm","application/vnd.ms-excel.template.macroEnabled.12"),t.set("xlam","application/vnd.ms-excel.addin.macroEnabled.12"),t.set("pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"),t.set("pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"),t.set("ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"),t.set("ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"),t.set("potx","application/vnd.openxmlformats-officedocument.presentationml.template"),t.set("potm","application/vnd.ms-powerpoint.template.macroEnabled.12"),t.set("ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"),t.set("sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"),t.set("sldm","application/vnd.ms-powerpoint.slide.macroEnabled.12"),t.set("onetoc|onetoc2|onetmp|onepkg","application/onenote"),t.set("oxps","application/oxps"),t.set("xps","application/vnd.ms-xpsdocument"),t.set("odt","application/vnd.oasis.opendocument.text"),t.set("odp","application/vnd.oasis.opendocument.presentation"),t.set("ods","application/vnd.oasis.opendocument.spreadsheet"),t.set("odg","application/vnd.oasis.opendocument.graphics"),t.set("odc","application/vnd.oasis.opendocument.chart"),t.set("odb","application/vnd.oasis.opendocument.database"),t.set("odf","application/vnd.oasis.opendocument.formula"),t.set("wp|wpd","application/wordperfect"),t.set("key","application/vnd.apple.keynote"),t.set("numbers","application/vnd.apple.numbers"),t.set("pages","application/vnd.apple.pages"),t})())("*"===s&&n.startsWith(t+"/")||n===i[0])&&e.push(...o.split("|"))}return e})(e).some((e=>(e="."+e.trim(),t.name.toLowerCase().endsWith(e.toLowerCase())))))))))throw new o(this)},h=function(t){if(!t.getAll(this.field).every((t=>this.accept?.some((e=>t===String(e))))))throw new o(this)},u=function(t){if(!t.getAll(this.field).every((t=>{const e=0===(i=new Date(t).getDay())?7:i;var i;return this.accept?.some((t=>e===parseInt(t)))})))throw new o(this)},w=function(t){if(t.getAll(this.field).length<parseInt(this.threshold))throw new o(this)},v=function(t){const e=t.getAll(this.field);if(parseInt(this.threshold)<e.length)throw new o(this)},g=function(t){const e=t.getAll(this.field);let i=0;if(e.forEach((t=>{"string"==typeof t&&(i+=t.length)})),0!==i&&i<parseInt(this.threshold))throw new o(this)},x=function(t){const e=t.getAll(this.field);let i=0;if(e.forEach((t=>{"string"==typeof t&&(i+=t.length)})),parseInt(this.threshold)<i)throw new o(this)},y=function(t){if(!t.getAll(this.field).every((t=>!(parseFloat(t)<parseFloat(this.threshold)))))throw new o(this)},b=function(t){if(!t.getAll(this.field).every((t=>!(parseFloat(this.threshold)<parseFloat(t)))))throw new o(this)},A=function(t){if(!t.getAll(this.field).every((t=>(t=t.trim(),!(/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)&&/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(this.threshold)&&t<this.threshold)))))throw new o(this)},z=function(t){if(!t.getAll(this.field).every((t=>(t=t.trim(),!(/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)&&/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(this.threshold)&&this.threshold<t)))))throw new o(this)},j=function(t){const e=t.getAll(this.field);let i=0;if(e.forEach((t=>{t instanceof File&&(i+=t.size)})),i<parseInt(this.threshold))throw new o(this)},$=function(t){const e=t.getAll(this.field);let i=0;if(e.forEach((t=>{t instanceof File&&(i+=t.size)})),parseInt(this.threshold)<i)throw new o(this)},I=({ruleObj:t,options:i})=>{const{rule:s,...o}=t;return"function"==typeof e[s]&&("function"!=typeof e[s].matches||e[s].matches(o,i))},O=({ruleObj:t,formDataTree:i,options:s})=>{const{rule:o}=t;e[o].call(t,i,s)},E=[],k=t=>[...E].reduce(((t,e)=>i=>e(i,t)),t),D=function(t,e={}){const i=(this.rules??[]).filter((t=>I({ruleObj:t,options:e}))),s=k(O);if(!i.every((i=>{try{s({ruleObj:i,formDataTree:t,options:e})}catch(t){if(!(t instanceof o))throw t;if(void 0!==t.error)throw t;return!1}return!0})))throw new o(this)},M=function(t,e={}){const i=(this.rules??[]).filter((t=>I({ruleObj:t,options:e}))),s=k(O);if(!i.some((i=>{try{s({ruleObj:i,formDataTree:t,options:e})}catch(t){if(!(t instanceof o))throw t;return!1}return!0})))throw new o(this)};var F;window.swv={validators:e,validate:(t,e,i={})=>{const n=(t.rules??[]).filter((t=>I({ruleObj:t,options:i})));if(!n.length)return new Map;const a=k(O),r=new s(e),p=n.reduce(((t,e)=>{try{a({ruleObj:e,formDataTree:r,options:i})}catch(e){if(!(e instanceof o))throw e;if(void 0!==e.field&&!t.has(e.field)&&void 0!==e.error)return t.set(e.field,e)}return t}),new Map);for(const t of r.keys())p.has(t)||p.set(t,{validInputs:r.getAll(t)});return p},use:t=>{E.push(t)},...null!==(F=window.swv)&&void 0!==F?F:{}}})();


wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'ltr' ] } );

( function( domain, translations ) {
	var localeData = translations.locale_data[ domain ] || translations.locale_data.messages;
	localeData[""].domain = domain;
	wp.i18n.setLocaleData( localeData, domain );
} )( "contact-form-7", {"translation-revision-date":"2024-10-17 17:27:10+0000","generator":"GlotPress\/4.0.1","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","plural-forms":"nplurals=2; plural=n > 1;","lang":"fr"},"This contact form is placed in the wrong place.":["Ce formulaire de contact est plac\u00e9 dans un mauvais endroit."],"Error:":["Erreur\u00a0:"]}},"comment":{"reference":"includes\/js\/index.js"}} );
(()=>{"use strict";const e=window.wp.i18n,t=e=>Math.abs(parseInt(e,10)),a=(e,t,a)=>{const n=new CustomEvent(`wpcf7${t}`,{bubbles:!0,detail:a});"string"==typeof e&&(e=document.querySelector(e)),e.dispatchEvent(n)},n=(e,t)=>{const n=new Map([["init","init"],["validation_failed","invalid"],["acceptance_missing","unaccepted"],["spam","spam"],["aborted","aborted"],["mail_sent","sent"],["mail_failed","failed"],["submitting","submitting"],["resetting","resetting"],["validating","validating"],["payment_required","payment-required"]]);n.has(t)&&(t=n.get(t)),Array.from(n.values()).includes(t)||(t=`custom-${t=(t=t.replace(/[^0-9a-z]+/i," ").trim()).replace(/\s+/,"-")}`);const r=e.getAttribute("data-status");if(e.wpcf7.status=t,e.setAttribute("data-status",t),e.classList.add(t),r&&r!==t){e.classList.remove(r);const t={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,prevStatus:r};a(e,"statuschanged",t)}return t},r=e=>{const{root:t,namespace:a="contact-form-7/v1"}=wpcf7.api;return o.reduceRight(((e,t)=>a=>t(a,e)),(e=>{let n,r,{url:o,path:c,endpoint:s,headers:i,body:l,data:p,...d}=e;"string"==typeof s&&(n=a.replace(/^\/|\/$/g,""),r=s.replace(/^\//,""),c=r?n+"/"+r:n),"string"==typeof c&&(-1!==t.indexOf("?")&&(c=c.replace("?","&")),c=c.replace(/^\//,""),o=t+c),i={Accept:"application/json, */*;q=0.1",...i},delete i["X-WP-Nonce"],p&&(l=JSON.stringify(p),i["Content-Type"]="application/json");const f={code:"fetch_error",message:"You are probably offline."},u={code:"invalid_json",message:"The response is not a valid JSON response."};return window.fetch(o||c||window.location.href,{...d,headers:i,body:l}).then((e=>Promise.resolve(e).then((e=>{if(e.status>=200&&e.status<300)return e;throw e})).then((e=>{if(204===e.status)return null;if(e&&e.json)return e.json().catch((()=>{throw u}));throw u}))),(()=>{throw f}))}))(e)},o=[];function c(e,t={}){const{target:a,scope:r=e,...o}=t;if(void 0===e.wpcf7?.schema)return;const c={...e.wpcf7.schema};if(void 0!==a){if(!e.contains(a))return;if(!a.closest(".wpcf7-form-control-wrap[data-name]"))return;if(a.closest(".novalidate"))return}const p=r.querySelectorAll(".wpcf7-form-control-wrap"),d=Array.from(p).reduce(((e,t)=>(t.closest(".novalidate")||t.querySelectorAll(":where( input, textarea, select ):enabled").forEach((t=>{if(t.name)switch(t.type){case"button":case"image":case"reset":case"submit":break;case"checkbox":case"radio":t.checked&&e.append(t.name,t.value);break;case"select-multiple":for(const a of t.selectedOptions)e.append(t.name,a.value);break;case"file":for(const a of t.files)e.append(t.name,a);break;default:e.append(t.name,t.value)}})),e)),new FormData),f=e.getAttribute("data-status");Promise.resolve(n(e,"validating")).then((n=>{if(void 0!==swv){const n=swv.validate(c,d,t);for(const t of p){if(void 0===t.dataset.name)continue;const o=t.dataset.name;if(n.has(o)){const{error:t,validInputs:a}=n.get(o);i(e,o),void 0!==t&&s(e,o,t,{scope:r}),l(e,o,null!=a?a:[])}if(t.contains(a))break}}})).finally((()=>{n(e,f)}))}r.use=e=>{o.unshift(e)};const s=(e,t,a,n)=>{const{scope:r=e,...o}=null!=n?n:{},c=`${e.wpcf7?.unitTag}-ve-${t}`.replaceAll(/[^0-9a-z_-]+/gi,""),s=e.querySelector(`.wpcf7-form-control-wrap[data-name="${t}"] .wpcf7-form-control`);(()=>{const t=document.createElement("li");t.setAttribute("id",c),s&&s.id?t.insertAdjacentHTML("beforeend",`<a href="#${s.id}">${a}</a>`):t.insertAdjacentText("beforeend",a),e.wpcf7.parent.querySelector(".screen-reader-response ul").appendChild(t)})(),r.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach((e=>{const t=document.createElement("span");t.classList.add("wpcf7-not-valid-tip"),t.setAttribute("aria-hidden","true"),t.insertAdjacentText("beforeend",a),e.appendChild(t),e.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","true")})),e.querySelectorAll(".wpcf7-form-control").forEach((e=>{e.classList.add("wpcf7-not-valid"),e.setAttribute("aria-describedby",c),"function"==typeof e.setCustomValidity&&e.setCustomValidity(a),e.closest(".use-floating-validation-tip")&&(e.addEventListener("focus",(e=>{t.setAttribute("style","display: none")})),t.addEventListener("click",(e=>{t.setAttribute("style","display: none")})))}))}))},i=(e,t)=>{const a=`${e.wpcf7?.unitTag}-ve-${t}`.replaceAll(/[^0-9a-z_-]+/gi,"");e.wpcf7.parent.querySelector(`.screen-reader-response ul li#${a}`)?.remove(),e.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach((e=>{e.querySelector(".wpcf7-not-valid-tip")?.remove(),e.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","false")})),e.querySelectorAll(".wpcf7-form-control").forEach((e=>{e.removeAttribute("aria-describedby"),e.classList.remove("wpcf7-not-valid"),"function"==typeof e.setCustomValidity&&e.setCustomValidity("")}))}))},l=(e,t,a)=>{e.querySelectorAll(`[data-reflection-of="${t}"]`).forEach((e=>{if("output"===e.tagName.toLowerCase()){const t=e;0===a.length&&a.push(t.dataset.default),a.slice(0,1).forEach((e=>{e instanceof File&&(e=e.name),t.textContent=e}))}else e.querySelectorAll("output").forEach((e=>{e.hasAttribute("data-default")?0===a.length?e.removeAttribute("hidden"):e.setAttribute("hidden","hidden"):e.remove()})),a.forEach((a=>{a instanceof File&&(a=a.name);const n=document.createElement("output");n.setAttribute("name",t),n.textContent=a,e.appendChild(n)}))}))};function p(e,t={}){if(wpcf7.blocked)return d(e),void n(e,"submitting");const o=new FormData(e);t.submitter&&t.submitter.name&&o.append(t.submitter.name,t.submitter.value);const c={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(o,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:o};r({endpoint:`contact-forms/${e.wpcf7.id}/feedback`,method:"POST",body:o,wpcf7:{endpoint:"feedback",form:e,detail:c}}).then((t=>{const r=n(e,t.status);return c.status=t.status,c.apiResponse=t,["invalid","unaccepted","spam","aborted"].includes(r)?a(e,r,c):["sent","failed"].includes(r)&&a(e,`mail${r}`,c),a(e,"submit",c),t})).then((t=>{t.posted_data_hash&&(e.querySelector('input[name="_wpcf7_posted_data_hash"]').value=t.posted_data_hash),"mail_sent"===t.status&&(e.reset(),e.wpcf7.resetOnMailSent=!0),t.invalid_fields&&t.invalid_fields.forEach((t=>{s(e,t.field,t.message)})),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').insertAdjacentText("beforeend",t.message),e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=t.message}))})).catch((e=>console.error(e)))}r.use(((e,t)=>{if(e.wpcf7&&"feedback"===e.wpcf7.endpoint){const{form:t,detail:r}=e.wpcf7;d(t),a(t,"beforesubmit",r),n(t,"submitting")}return t(e)}));const d=e=>{e.querySelectorAll(".wpcf7-form-control-wrap").forEach((t=>{t.dataset.name&&i(e,t.dataset.name)})),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').innerText="",e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=""}))};function f(e){const t=new FormData(e),o={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(t,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:t};r({endpoint:`contact-forms/${e.wpcf7.id}/refill`,method:"GET",wpcf7:{endpoint:"refill",form:e,detail:o}}).then((t=>{e.wpcf7.resetOnMailSent?(delete e.wpcf7.resetOnMailSent,n(e,"mail_sent")):n(e,"init"),o.apiResponse=t,a(e,"reset",o)})).catch((e=>console.error(e)))}r.use(((e,t)=>{if(e.wpcf7&&"refill"===e.wpcf7.endpoint){const{form:t,detail:a}=e.wpcf7;d(t),n(t,"resetting")}return t(e)}));const u=(e,t)=>{for(const a in t){const n=t[a];e.querySelectorAll(`input[name="${a}"]`).forEach((e=>{e.value=""})),e.querySelectorAll(`img.wpcf7-captcha-${a.replaceAll(":","")}`).forEach((e=>{e.setAttribute("src",n)}));const r=/([0-9]+)\.(png|gif|jpeg)$/.exec(n);r&&e.querySelectorAll(`input[name="_wpcf7_captcha_challenge_${a}"]`).forEach((e=>{e.value=r[1]}))}},m=(e,t)=>{for(const a in t){const n=t[a][0],r=t[a][1];e.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${a}"]`).forEach((e=>{e.querySelector(`input[name="${a}"]`).value="",e.querySelector(".wpcf7-quiz-label").textContent=n,e.querySelector(`input[name="_wpcf7_quiz_answer_${a}"]`).value=r}))}};function w(e){const a=new FormData(e);e.wpcf7={id:t(a.get("_wpcf7")),status:e.getAttribute("data-status"),pluginVersion:a.get("_wpcf7_version"),locale:a.get("_wpcf7_locale"),unitTag:a.get("_wpcf7_unit_tag"),containerPost:t(a.get("_wpcf7_container_post")),parent:e.closest(".wpcf7"),get schema(){return wpcf7.schemas.get(this.id)}},wpcf7.schemas.set(e.wpcf7.id,void 0),e.querySelectorAll(".has-spinner").forEach((e=>{e.insertAdjacentHTML("afterend",'<span class="wpcf7-spinner"></span>')})),(e=>{e.querySelectorAll(".wpcf7-exclusive-checkbox").forEach((t=>{t.addEventListener("change",(t=>{const a=t.target.getAttribute("name");e.querySelectorAll(`input[type="checkbox"][name="${a}"]`).forEach((e=>{e!==t.target&&(e.checked=!1)}))}))}))})(e),(e=>{e.querySelectorAll(".has-free-text").forEach((t=>{const a=t.querySelector("input.wpcf7-free-text"),n=t.querySelector('input[type="checkbox"], input[type="radio"]');a.disabled=!n.checked,e.addEventListener("change",(e=>{a.disabled=!n.checked,e.target===n&&n.checked&&a.focus()}))}))})(e),(e=>{e.querySelectorAll(".wpcf7-validates-as-url").forEach((e=>{e.addEventListener("change",(t=>{let a=e.value.trim();a&&!a.match(/^[a-z][a-z0-9.+-]*:/i)&&-1!==a.indexOf(".")&&(a=a.replace(/^\/+/,""),a="http://"+a),e.value=a}))}))})(e),(e=>{if(!e.querySelector(".wpcf7-acceptance")||e.classList.contains("wpcf7-acceptance-as-validation"))return;const t=()=>{let t=!0;e.querySelectorAll(".wpcf7-acceptance").forEach((e=>{if(!t||e.classList.contains("optional"))return;const a=e.querySelector('input[type="checkbox"]');(e.classList.contains("invert")&&a.checked||!e.classList.contains("invert")&&!a.checked)&&(t=!1)})),e.querySelectorAll(".wpcf7-submit").forEach((e=>{e.disabled=!t}))};t(),e.addEventListener("change",(e=>{t()})),e.addEventListener("wpcf7reset",(e=>{t()}))})(e),(e=>{const a=(e,a)=>{const n=t(e.getAttribute("data-starting-value")),r=t(e.getAttribute("data-maximum-value")),o=t(e.getAttribute("data-minimum-value")),c=e.classList.contains("down")?n-a.value.length:a.value.length;e.setAttribute("data-current-value",c),e.innerText=c,r&&r<a.value.length?e.classList.add("too-long"):e.classList.remove("too-long"),o&&a.value.length<o?e.classList.add("too-short"):e.classList.remove("too-short")},n=t=>{t={init:!1,...t},e.querySelectorAll(".wpcf7-character-count").forEach((n=>{const r=n.getAttribute("data-target-name"),o=e.querySelector(`[name="${r}"]`);o&&(o.value=o.defaultValue,a(n,o),t.init&&o.addEventListener("keyup",(e=>{a(n,o)})))}))};n({init:!0}),e.addEventListener("wpcf7reset",(e=>{n()}))})(e),window.addEventListener("load",(t=>{wpcf7.cached&&e.reset()})),e.addEventListener("reset",(t=>{wpcf7.reset(e)})),e.addEventListener("submit",(t=>{wpcf7.submit(e,{submitter:t.submitter}),t.preventDefault()})),e.addEventListener("wpcf7submit",(t=>{t.detail.apiResponse.captcha&&u(e,t.detail.apiResponse.captcha),t.detail.apiResponse.quiz&&m(e,t.detail.apiResponse.quiz)})),e.addEventListener("wpcf7reset",(t=>{t.detail.apiResponse.captcha&&u(e,t.detail.apiResponse.captcha),t.detail.apiResponse.quiz&&m(e,t.detail.apiResponse.quiz)})),e.addEventListener("change",(t=>{t.target.closest(".wpcf7-form-control")&&wpcf7.validate(e,{target:t.target})})),e.addEventListener("wpcf7statuschanged",(t=>{const a=t.detail.status;e.querySelectorAll(".active-on-any").forEach((e=>{e.removeAttribute("inert"),e.classList.remove("active-on-any")})),e.querySelectorAll(`.inert-on-${a}`).forEach((e=>{e.setAttribute("inert","inert"),e.classList.add("active-on-any")}))}))}document.addEventListener("DOMContentLoaded",(t=>{var a;if("undefined"!=typeof wpcf7)if(void 0!==wpcf7.api)if("function"==typeof window.fetch)if("function"==typeof window.FormData)if("function"==typeof NodeList.prototype.forEach)if("function"==typeof String.prototype.replaceAll){wpcf7={init:w,submit:p,reset:f,validate:c,schemas:new Map,...null!==(a=wpcf7)&&void 0!==a?a:{}},document.querySelectorAll("form .wpcf7").forEach((t=>{const a=document.createElement("p");a.setAttribute("class","wpcf7-form-in-wrong-place");const n=document.createElement("strong");n.append((0,e.__)("Error:","contact-form-7"));const r=(0,e.__)("This contact form is placed in the wrong place.","contact-form-7");a.append(n," ",r),t.replaceWith(a)})),document.querySelectorAll(".wpcf7 > form").forEach((e=>{wpcf7.init(e),e.closest(".wpcf7").classList.replace("no-js","js")}));for(const e of wpcf7.schemas.keys())r({endpoint:`contact-forms/${e}/feedback/schema`,method:"GET"}).then((t=>{wpcf7.schemas.set(e,t)}))}else console.error("Your browser does not support String.replaceAll().");else console.error("Your browser does not support NodeList.forEach().");else console.error("Your browser does not support window.FormData().");else console.error("Your browser does not support window.fetch().");else console.error("wpcf7.api is not defined.");else console.error("wpcf7 is not defined.")}))})();


wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'ltr' ] } );

var win=null;function zlrPrint(d,c){var a=document.getElementById(d).innerHTML;if(document.getElementsByClassName("zrdn-block-wrap zrdn-recipe_title").length>0){var b=document.getElementsByClassName("zrdn-element_recipe_title")[0].innerHTML}else{var b=""}win=window.open();self.focus();win.document.open();win.document.write("<html><title>");win.document.write(b);win.document.write("</title>");win.document.write("<head>");win.document.write('<link charset="utf-8" href="'+zrdn_print_styles.grid_style+'" rel="stylesheet" type="text/css" />');win.document.write('<link charset="utf-8" href="'+zrdn_print_styles.stylesheet_url+'" rel="stylesheet" type="text/css" />');win.document.write('<link charset="utf-8" href="'+zrdn_print_styles.print_css+'" rel="stylesheet" type="text/css" />');win.document.write('</head><body onload="print();">');win.document.write("<div id='zrdn-recipe-container' >");win.document.write(a);win.document.write("</div>");win.document.write("</body></html>");win.document.close()};


wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'ltr' ] } );

/*! For license information please see scripts.min.js.LICENSE.txt */
!function(t){var e={};function n(i){if(e[i])return e[i].exports;var a=e[i]={i:i,l:!1,exports:{}};return t[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(i,a,function(e){return t[e]}.bind(null,a));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=95)}([function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i,a=window;try{i=!!window.top.document&&window.top}catch(t){i=!1}i&&i.__Cypress__?window.parent===i?a=window:a=window.parent:i&&(a=i,window.self)},function(t,e,n){var i=n(10),a=n(29),o=n(30),r=i?i.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":r&&r in Object(t)?a(t):o(t)}},function(t,e){var n=Array.isArray;t.exports=n},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,n){var i=n(14),a="object"==typeof self&&self&&self.Object===Object&&self,o=i||a||Function("return this")();t.exports=o},function(t,e,n){var i=n(1),a=n(3);t.exports=function(t){return"symbol"==typeof t||a(t)&&"[object Symbol]"==i(t)}},function(t,e,n){var i=n(18)(Object,"create");t.exports=i},function(t,e,n){var i=n(77);t.exports=function(t,e){for(var n=t.length;n--;)if(i(t[n][0],e))return n;return-1}},function(t,e,n){var i=n(83);t.exports=function(t,e){var n=t.__data__;return i(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e,n){var i=n(55);t.exports=function(t,e,n){var a=null==t?void 0:i(t,e);return void 0===a?n:a}},function(t,e,n){var i=n(4).Symbol;t.exports=i},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var i=n(13),a=n(15);t.exports=function(t){return null!=t&&a(t.length)&&!i(t)}},function(t,e,n){var i=n(1),a=n(11);t.exports=function(t){if(!a(t))return!1;var e=i(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(28))},function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length,a=Array(i);++n<i;)a[n]=e(t[n],n,t);return a}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){var i=n(65),a=n(69);t.exports=function(t,e){var n=a(t,e);return i(n)?n:void 0}},function(t,e,n){var i=n(24),a=n(12),o=n(31),r=n(32),s=n(37),c=Math.max;t.exports=function(t,e,n,l){t=a(t)?t:s(t),n=n&&!l?r(n):0;var _=t.length;return n<0&&(n=c(_+n,0)),o(t)?n<=_&&t.indexOf(e,n)>-1:!!_&&i(t,e,n)>-1}},function(t,e){t.exports=jQuery},function(t,e){!function(){"use strict";function t(i){if(!i)throw new Error("No options passed to Waypoint constructor");if(!i.element)throw new Error("No element option passed to Waypoint constructor");if(!i.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=t.Adapter.extend({},t.defaults,i),this.element=this.options.element,this.adapter=new t.Adapter(this.element),this.callback=i.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=t.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=t.Context.findOrCreateByElement(this.options.context),t.offsetAliases[this.options.offset]&&(this.options.offset=t.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),n[this.key]=this,e+=1}var e=0,n={};t.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},t.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},t.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete n[this.key]},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},t.prototype.next=function(){return this.group.next(this)},t.prototype.previous=function(){return this.group.previous(this)},t.invokeAll=function(t){var e=[];for(var i in n)e.push(n[i]);for(var a=0,o=e.length;o>a;a++)e[a][t]()},t.destroyAll=function(){t.invokeAll("destroy")},t.disableAll=function(){t.invokeAll("disable")},t.enableAll=function(){t.invokeAll("enable")},t.refreshAll=function(){t.Context.refreshAll()},t.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},t.viewportWidth=function(){return document.documentElement.clientWidth},t.adapters=[],t.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},t.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=t}(),function(){"use strict";function t(t){window.setTimeout(t,1e3/60)}function e(t){this.element=t,this.Adapter=a.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+n,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,i[t.waypointContextKey]=this,n+=1,this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var n=0,i={},a=window.Waypoint,o=window.onload;e.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},e.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical);t&&e&&(this.adapter.off(".waypoints"),delete i[this.key])},e.prototype.createThrottledResizeHandler=function(){function t(){e.handleResize(),e.didResize=!1}var e=this;this.adapter.on("resize.waypoints",(function(){e.didResize||(e.didResize=!0,a.requestAnimationFrame(t))}))},e.prototype.createThrottledScrollHandler=function(){function t(){e.handleScroll(),e.didScroll=!1}var e=this;this.adapter.on("scroll.waypoints",(function(){(!e.didScroll||a.isTouch)&&(e.didScroll=!0,a.requestAnimationFrame(t))}))},e.prototype.handleResize=function(){a.Context.refreshAll()},e.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var n in e){var i=e[n],a=i.newScroll>i.oldScroll?i.forward:i.backward;for(var o in this.waypoints[n]){var r=this.waypoints[n][o],s=i.oldScroll<r.triggerPoint,c=i.newScroll>=r.triggerPoint;(s&&c||!s&&!c)&&(r.queueTrigger(a),t[r.group.id]=r.group)}}for(var l in t)t[l].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.innerHeight=function(){return this.element==this.element.window?a.viewportHeight():this.adapter.innerHeight()},e.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},e.prototype.innerWidth=function(){return this.element==this.element.window?a.viewportWidth():this.adapter.innerWidth()},e.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var n in this.waypoints[e])t.push(this.waypoints[e][n]);for(var i=0,a=t.length;a>i;i++)t[i].destroy()},e.prototype.refresh=function(){var t,e=this.element==this.element.window,n=e?void 0:this.adapter.offset(),i={};for(var o in this.handleScroll(),t={horizontal:{contextOffset:e?0:n.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:n.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}}){var r=t[o];for(var s in this.waypoints[o]){var c,l,_,d,p=this.waypoints[o][s],u=p.options.offset,f=p.triggerPoint,h=0,b=null==f;p.element!==p.element.window&&(h=p.adapter.offset()[r.offsetProp]),"function"==typeof u?u=u.apply(p):"string"==typeof u&&(u=parseFloat(u),p.options.offset.indexOf("%")>-1&&(u=Math.ceil(r.contextDimension*u/100))),c=r.contextScroll-r.contextOffset,p.triggerPoint=h+c-u,l=f<r.oldScroll,_=p.triggerPoint>=r.oldScroll,d=!l&&!_,!b&&(l&&_)?(p.queueTrigger(r.backward),i[p.group.id]=p.group):(!b&&d||b&&r.oldScroll>=p.triggerPoint)&&(p.queueTrigger(r.forward),i[p.group.id]=p.group)}}return a.requestAnimationFrame((function(){for(var t in i)i[t].flushTriggers()})),this},e.findOrCreateByElement=function(t){return e.findByElement(t)||new e(t)},e.refreshAll=function(){for(var t in i)i[t].refresh()},e.findByElement=function(t){return i[t.waypointContextKey]},window.onload=function(){o&&o(),e.refreshAll()},a.requestAnimationFrame=function(e){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t).call(window,e)},a.Context=e}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}function n(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),i[this.axis][this.name]=this}var i={vertical:{},horizontal:{}},a=window.Waypoint;n.prototype.add=function(t){this.waypoints.push(t)},n.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},n.prototype.flushTriggers=function(){for(var n in this.triggerQueues){var i=this.triggerQueues[n],a="up"===n||"left"===n;i.sort(a?e:t);for(var o=0,r=i.length;r>o;o+=1){var s=i[o];(s.options.continuous||o===i.length-1)&&s.trigger([n])}}this.clearTriggerQueues()},n.prototype.next=function(e){this.waypoints.sort(t);var n=a.Adapter.inArray(e,this.waypoints);return n===this.waypoints.length-1?null:this.waypoints[n+1]},n.prototype.previous=function(e){this.waypoints.sort(t);var n=a.Adapter.inArray(e,this.waypoints);return n?this.waypoints[n-1]:null},n.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},n.prototype.remove=function(t){var e=a.Adapter.inArray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},n.prototype.first=function(){return this.waypoints[0]},n.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},n.findOrCreate=function(t){return i[t.axis][t.name]||new n(t)},a.Group=n}(),function(){"use strict";function t(t){this.$element=e(t)}var e=window.jQuery,n=window.Waypoint;e.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],(function(e,n){t.prototype[n]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[n].apply(this.$element,t)}})),e.each(["extend","inArray","isEmptyObject"],(function(n,i){t[i]=e[i]})),n.adapters.push({name:"jquery",Adapter:t}),n.Adapter=t}(),function(){"use strict";function t(t){return function(){var n=[],i=arguments[0];return"function"==typeof arguments[0]&&((i=t.extend({},arguments[1])).handler=arguments[0]),this.each((function(){var a=t.extend({},i,{element:this});"string"==typeof a.context&&(a.context=t(this).closest(a.context)[0]),n.push(new e(a))})),n}}var e=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=t(window.Zepto))}()},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t,e){for(var n in e)t[n]=e[n]}(window,function(t){var e={};function i(n){if(e[n])return e[n].exports;var a=e[n]={i:n,l:!1,exports:{}};return t[n].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==n(t)&&t&&t.__esModule)return t;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(a,o,function(e){return t[e]}.bind(null,o));return a},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/",i(i.s=1464)}({1:function(t,e,n){var i=n(92);t.exports=function(t,e,n){var a=null==t?void 0:i(t,e);return void 0===a?n:a}},100:function(t,e,n){var i=n(227),a=n(239),o=n(241),r=n(242),s=n(243);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}c.prototype.clear=i,c.prototype.delete=a,c.prototype.get=o,c.prototype.has=r,c.prototype.set=s,t.exports=c},101:function(t,e,n){var i=n(149),a=n(207),o=n(257);t.exports=function(t,e,n){return e==e?o(t,e,n):i(t,a,n)}},106:function(t,e,i){(function(t){var a=i(138),o=e&&!e.nodeType&&e,r=o&&"object"==n(t)&&t&&!t.nodeType&&t,s=r&&r.exports===o&&a.process,c=function(){try{return r&&r.require&&r.require("util").types||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=c}).call(this,i(95)(t))},107:function(t,e,n){var i=n(76),a=n(245),o=n(246),r=n(247),s=n(248),c=n(249);function l(t){var e=this.__data__=new i(t);this.size=e.size}l.prototype.clear=a,l.prototype.delete=o,l.prototype.get=r,l.prototype.has=s,l.prototype.set=c,t.exports=l},110:function(t,e,n){var i=n(51);t.exports=function(t){return"function"==typeof t?t:i}},111:function(t,e,i){var a=i(4),o=i(53),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(t,e){if(a(t))return!1;var i=n(t);return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=t&&!o(t))||s.test(t)||!r.test(t)||null!=e&&t in Object(e)}},116:function(t,e,n){var i=n(188),a=n(12),o=n(53),r=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(a(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=a(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=i(t);var n=s.test(t);return n||c.test(t)?l(t.slice(2),n?2:8):r.test(t)?NaN:+t}},117:function(t,e,n){var i=n(89),a=n(217),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!i(t))return a(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},118:function(t,e,n){var i=n(250),a=n(30);t.exports=function t(e,n,o,r,s){return e===n||(null==e||null==n||!a(e)&&!a(n)?e!=e&&n!=n:i(e,n,o,r,t,s))}},119:function(t,e){t.exports=function(t,e){for(var n=-1,i=e.length,a=t.length;++n<i;)t[a+n]=e[n];return t}},12:function(t,e){t.exports=function(t){var e=n(t);return null!=t&&("object"==e||"function"==e)}},120:function(t,e){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length,a=0,o=[];++n<i;){var r=t[n];e(r,n,t)&&(o[a++]=r)}return o}},126:function(t,e,n){var i=n(162),a=n(17);t.exports=function(t,e){return t&&i(t,e,a)}},129:function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},138:function(t,e,i){(function(e){var i="object"==n(e)&&e&&e.Object===Object&&e;t.exports=i}).call(this,i(88))},139:function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},140:function(t,e,n){var i=n(147),a=n(173),o=n(148);t.exports=function(t,e,n,r,s,c){var l=1&n,_=t.length,d=e.length;if(_!=d&&!(l&&d>_))return!1;var p=c.get(t),u=c.get(e);if(p&&u)return p==e&&u==t;var f=-1,h=!0,b=2&n?new i:void 0;for(c.set(t,e),c.set(e,t);++f<_;){var v=t[f],m=e[f];if(r)var g=l?r(m,v,f,e,t,c):r(v,m,f,t,e,c);if(void 0!==g){if(g)continue;h=!1;break}if(b){if(!a(e,(function(t,e){if(!o(b,e)&&(v===t||s(v,t,n,r,c)))return b.push(e)}))){h=!1;break}}else if(v!==m&&!s(v,m,n,r,c)){h=!1;break}}return c.delete(t),c.delete(e),h}},141:function(t,e,n){var i=n(120),a=n(164),o=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols,s=r?function(t){return null==t?[]:(t=Object(t),i(r(t),(function(e){return o.call(t,e)})))}:a;t.exports=s},146:function(t,e,n){var i=n(100);function a(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function n(){var i=arguments,a=e?e.apply(this,i):i[0],o=n.cache;if(o.has(a))return o.get(a);var r=t.apply(this,i);return n.cache=o.set(a,r)||o,r};return n.cache=new(a.Cache||i),n}a.Cache=i,t.exports=a},1464:function(t,e,n){"use strict";(function(t){var e=n(354),i=n(353),a=n(1465);!function(n){var o=n("body").hasClass("et-block-layout-preview"),r=n(".et-l--header").first(),s=0;if(window.et_pb_debounce=function(t,e,n){var i,a,o,r,s,c=Date.now||(new Date).getTime(),l=function l(){var _=c-r;_<e&&_>=0?i=setTimeout(l,e-_):(i=null,n||(s=t.apply(o,a),i||(o=a=null)))};return function(){o=this,a=arguments,r=c;var _=n&&!i;return i||(i=setTimeout(l,e)),_&&(s=t.apply(o,a),o=a=null),s}},r.length){var c=r.find(".et_builder_inner_content").children(".et_pb_section--fixed"),l=et_pb_debounce((function(t){s=0,n.each(c,(function(t,e){var i=n(e).outerHeight(!0);s+=i;var a=n(e).offset().top;a<0&&Math.abs(a)>s?s=0:a<0&&(s+=a)}))}),300);n(window).on("resize",l)}window.et_pb_smooth_scroll=function(t,e,i,o){var c=t.offset().top,l=n(window).width(),_=0,d=0,p="",u="",f=r.find(".et_pb_section");if(!(0,a.isTargetStickyState)(t)){_=n("body").hasClass("et_fixed_nav")&&l>980?(n("#top-header").outerHeight()||0)+(n("#main-header").outerHeight()||0)-1:0,n("#wpadminbar").length&&l>600&&(_+=n("#wpadminbar").outerHeight()||0),r.length&&(f.hasClass("et_pb_section--fixed")&&(p=Math.ceil(parseFloat(f.css("left"))),u=Math.ceil(parseFloat(f.css("right"))),l<980&&(_+=90)),0===p+u&&(_+=s));var h=(0,a.getClosestStickyModuleOffsetTop)(t);h&&(_+=h),d=e?0:Math.round(c)-_,void 0===o&&(o="swing"),n("html, body").animate({scrollTop:d},i,o)}},window.et_pb_form_placeholders_init=function(e){e.find('input:text, input[type="email"], input[type="url"], textarea').each((function(e,n){var i=t(n),a=i.siblings("label"),o=i.siblings("label").text();a.length&&(a.hide(),i.siblings("span.required")&&(o+=i.siblings("span.required").text(),i.siblings("span.required").hide()),i.val(o))})).on("focus",(function(){var e=t(this).siblings("label").text();t(this).siblings("span.required").length&&(e+=t(this).siblings("span.required").text()),t(this).val()===e&&t(this).val("")})).on("blur",(function(){var e=t(this).siblings("label").text();t(this).siblings("span.required").length&&(e+=t(this).siblings("span.required").text()),""===t(this).val()&&t(this).val(e)}))},window.et_duplicate_menu=function(t,e,a,o,r){e.each((function(){var e,s=n(this);if(!s.find("#".concat(a)).length&&(""!==t&&t.clone().attr("id",a).removeClass().attr("class",o).appendTo(s),(e=s.find("> ul")).find(".menu_slide").remove(),e.find(".et_pb_menu__logo-slot").remove(),e.find("li").first().addClass("et_first_mobile_item"),e.find("a").on("click",(function(){n(this).parents(".et_mobile_menu").siblings(".mobile_menu_bar").trigger("click")})),"no_click_event"!==r)){i.isBuilder&&s.off("click");var c=s.closest(".et_pb_section"),l=s.closest(".et_pb_row"),_="0px"!==c.css("border-radius"),d="0px"!==l.css("border-radius");s.on("click",".mobile_menu_bar",(function(){return n(".mobile_nav.opened .mobile_menu_bar").not(n(this)).trigger("click"),s.hasClass("closed")?(s.removeClass("closed").addClass("opened"),(_||d)&&(c.css("overflow","visible"),l.css("overflow","visible")),e.stop().slideDown(500)):(s.removeClass("opened").addClass("closed"),e.stop().slideUp(500),(_||d)&&setTimeout((function(){c.css("overflow","hidden"),l.css("overflow","hidden")}),500)),!1}))}})),n("#mobile_menu .centered-inline-logo-wrap").remove()},window.et_pb_remove_placeholder_text=function(e){e.find("input:text, textarea").each((function(e,n){var i=t(n),a=i.siblings("label");i.siblings("label").text(),a.length&&a.is(":hidden")&&a.text()==i.val()&&i.val("")}))},window.et_fix_fullscreen_section=function(){var t=n(o?e.top_window:window);n("section.et_pb_fullscreen").each((function(){var e=n(this);et_calc_fullscreen_section.bind(e),t.on("resize",et_calc_fullscreen_section.bind(e))}))},window.et_bar_counters_init=function(t){t.length&&t.css({width:"".concat(parseFloat(t.attr("data-width")),"%")})},window.et_fix_pricing_currency_position=function(t){setTimeout((function(){var e=void 0!==t?t:n(".et_pb_pricing_table");e.length&&e.each((function(){var t=n(this).find(".et_pb_et_price"),e=!!t.length&&t.find(".et_pb_dollar_sign"),i=!!t.length&&t.find(".et_pb_sum");e&&i&&e.css({marginLeft:"".concat(-e.width(),"px")})}))}),1)},window.et_pb_set_responsive_grid=function(t,e){setTimeout((function(){var i=t.innerWidth(),a=t.find(e),o=a.outerWidth(!0),r=o-a.outerWidth(),s=Math.round((i+r)/o),c=1,l=1,_=n();if(a.removeClass("last_in_row first_in_row on_last_row"),a.filter(":visible").each((function(){var t=n(this);t.hasClass("inactive")||(l===c?(t.addClass("first_in_row"),_=t):0==c%s&&(t.addClass("last_in_row"),l=c+1),c++)})),_.length){var d=_.parents(".et_pb_module");if(d.is(":last-child")){var p=_.parents(".et_pb_column")[0];n(p).find(".et_pb_grid_item").removeClass("on_last_row");var u=d.find(".et_pb_gallery_pagination");0===u.length&&(u=d.find(".et_pb_portofolio_pagination")),(0===u.length||u.length>0&&!u.is(":visible"))&&(s>1&&_.addClass("on_last_row"),_.nextAll().addClass("on_last_row"))}}}),1)},window.et_pb_set_tabs_height=function(t){void 0===t&&(t=n(".et_pb_tabs")),t.length&&t.each((function(){var t=n(this).find(".et_pb_tabs_controls"),e=t.find("li"),i=0,a=n(this).parents(".et_pb_column_1_3, .et_pb_column_1_4, .et_pb_column_3_8").length>0,o=parseFloat(n(window).width())<768,r=a||o;r&&n(this).addClass("et_pb_tabs_vertically_stacked"),e.length&&(t.children("li").removeAttr("style"),e.each((function(){var t=n(this).outerHeight();r||t>i&&(i=t)}))),0!==i&&t.children("li").css("height","".concat(i,"px"))}))},window.et_pb_box_shadow_apply_overlay=function(t){void 0!==document.body.style.pointerEvents&&(void 0===document.documentMode||document.documentMode>=11)?n(t).each((function(){n(this).children(".box-shadow-overlay").length||n(this).addClass("has-box-shadow-overlay").prepend('<div class="box-shadow-overlay"></div>')})):n(t).addClass(".et-box-shadow-no-overlay")},window.et_pb_init_nav_menu=function(t){t.each((function(){var t=n(this);t.data("et-is-menu-ready")||(t.find("li").on("mouseenter",(function(){window.et_pb_toggle_nav_menu(n(this),"open")})).on("mouseleave",(function(){window.et_pb_toggle_nav_menu(n(this),"close",0)})),n("body").on("touchend",(function(t){n(t.target).closest("ul.nav, ul.menu").length<1&&n(".et-hover").length>0&&window.et_pb_toggle_nav_menu(n(".et-hover"),"close")})),t.find("li.menu-item-has-children").on("touchend",(function(t){var e=n(t.target).closest(".menu-item");if(e.hasClass("menu-item-has-children")){var i=n(this),a=e.closest(".mega-menu-parent.et-touch-hover").length>0;if(i.hasClass("et-touch-hover")||a)void 0!==i.find(">a").attr("href")&&(window.location=i.find(">a").attr("href"));else{var o=n(t.target),r=o.closest(".menu-item").siblings(".et-touch-hover");if(o.closest(".et-touch-hover").length<1&&window.et_pb_toggle_nav_menu(n(".et-hover"),"close",0),i.addClass("et-touch-hover"),r.length>0){var s=r.find(".et-touch-hover");window.et_pb_toggle_nav_menu(r,"close"),window.et_pb_toggle_nav_menu(s,"close")}window.et_pb_toggle_nav_menu(i,"open")}t.preventDefault(),t.stopPropagation()}})),t.find("li.mega-menu").each((function(){var t=n(this),e=t.children("ul").children("li").length;e<4&&t.addClass("mega-menu-parent mega-menu-parent-".concat(e))})),t.data("et-is-menu-ready","ready"))}))},window.et_pb_toggle_nav_menu=function(t,e,n){if("open"===e)t.closest("li.mega-menu").length&&!t.hasClass("mega-menu")||(t.addClass("et-show-dropdown"),t.removeClass("et-hover").addClass("et-hover"));else{var i=void 0!==n?n:200;t.removeClass("et-show-dropdown"),t.removeClass("et-touch-hover"),setTimeout((function(){t.hasClass("et-show-dropdown")||t.removeClass("et-hover")}),i)}},window.et_pb_apply_sticky_image_effect=function(t){var e=t.closest(".et_pb_row"),n=e.closest(".et_pb_section"),i=t.closest(".et_pb_column"),a="et_pb_section_sticky",o="et_pb_section_sticky_mobile",r=n.children(".et_pb_row").last(),s=e.children(".et_pb_column").last(),c=i.children(".et_pb_module").last();return!e.is(r)||(r.addClass("et-last-child"),!t.is(c)||(n.hasClass(a)||n.addClass(a),i.addClass("et_pb_row_sticky"),void(!n.hasClass(o)&&i.is(s)&&n.addClass(o))))},window.et_pb_menu_inject_inline_centered_logo=function(t){var e=n(t).find("nav > ul > li"),i=Math.round(e.length/2),a=window.et_pb_menu_inject_item(t,i,!0);return a&&n(a).addClass("et_pb_menu__logo-slot"),a},window.et_pb_menu_inject_item=function(t,e,i){i=void 0===i||i,e=Math.max(e,0);var a=n(t).find("nav > ul").first();if(0===a.length)return null;var o=a.find("> li"),r=n("<li></li>");if(0===o.length)a.append(r);else{var s=i?"before":"after",c=i?o.eq(e):o.eq(o.length-1-e);0===c.length&&(s=i?"after":"before",c=i?o.last():o.first()),c[s](r)}return r.get(0)},window.et_pb_reposition_menu_module_dropdowns=et_pb_debounce((function(t){n(t||".et_pb_menu, .et_pb_fullwidth_menu").each((function(){var t=n(this).find(".et_pb_row").first();if(0===t.length)return!0;var e=t.offset().top,i=n(this).attr("class").replace(/^.*?(et_pb(?:_fullwidth)?_menu_\d+[^\s]*).*$/i,"$1"),a=n(this).find(".et_pb_menu__menu ul").first().hasClass("upwards"),o="";n(this).find(".et_pb_menu__menu > nav > ul > li.mega-menu.menu-item-has-children").each((function(){var r=n(this),s=r.attr("class").replace(/^.*?(menu-item-\d+).*$/i,"$1"),c=".".concat(i," li.").concat(s," > .sub-menu");if(a){var l=Math.floor(e+t.outerHeight()-r.offset().top)-1;o+="".concat(c,"{ bottom: ").concat(l.toString(),"px !important; }")}else l=Math.floor(r.offset().top+r.outerHeight()-e)-1,o+="".concat(c,"{ top: ").concat(l.toString(),"px !important; }")}));var r=n("style.et-menu-style-".concat(i)).first();0===r.length&&((r=n("<style></style>")).addClass("et-menu-style"),r.addClass("et-menu-style-".concat(i)),r.appendTo(n("head")));var s=r.html();o!==s&&r.html(o)}))}),200)}(t)}).call(this,n(8))},1465:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.trimTransitionValue=e.isTargetStickyState=e.getStickyStyles=e.getLimitSelector=e.getLimit=e.getClosestStickyModuleOffsetTop=e.filterInvalidModules=void 0;var i=p(n(64)),a=p(n(9)),o=p(n(1)),r=p(n(159)),s=p(n(7)),c=p(n(5)),l=p(n(36)),_=p(n(8)),d=n(353);function p(t){return t&&t.__esModule?t:{default:t}}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}e.getLimit=function(t,e){if(!(0,s.default)(["body","section","row","column"],e))return!1;var n=b(t,e);if(!n)return!1;var i=n.outerHeight(),a=n.outerWidth();return{limit:e,height:i,width:a,offsets:(0,d.getOffsets)(n,a,i)}};var b=function(t,e){var n=!1;switch(e){case"body":n=".et_builder_inner_content";break;case"section":n=".et_pb_section";break;case"row":n=".et_pb_row";break;case"column":n=".et_pb_column"}return!!n&&t.closest(n)};e.getLimitSelector=b,e.filterInvalidModules=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};return(0,a.default)(t,(function(t,i){(0,_.default)(t.selector).parents(".et_pb_sticky_module").length>0||(!(0,c.default)(e)&&e[i]?n[i]=f(f({},e[i]),t):n[i]=t)})),n},e.getStickyStyles=function(t,e,n){var i=e.clone().addClass("et_pb_sticky et_pb_sticky_style_dom").attr({"data-sticky-style-dom-id":t,style:""}).css({opacity:0,transition:"none",animation:"none"});i.find("img").each((function(t){var n=(0,_.default)(this),i=e.find("img").eq(t),a=(0,o.default)(i,[0,"naturalWidth"],e.find("img").eq(t).outerWidth()),r=(0,o.default)(i,[0,"naturalHeight"],e.find("img").eq(t).outerHeight());n.attr({scrset:"",src:'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="'.concat(a,'" height="').concat(r,'"><rect width="').concat(a,'" height="').concat(r,'" /></svg>')})})),e.after(i);var a=function(t){var a="margin".concat(t),o=e.hasClass("et_pb_sticky")?n:e;return parseFloat(i.css(a))-parseFloat(o.css(a))},r=e.parent().hasClass("et_pb_equal_columns");r&&(e.hide(),n.hide());var s={height:i.outerHeight(),width:i.outerWidth(),marginRight:a("Right"),marginLeft:a("Left"),padding:i.css("padding")};return r&&(e.show(),n.show()),(0,_.default)('.et_pb_sticky_style_dom[data-sticky-style-dom-id="'.concat(t,'"]')).remove(),s},e.trimTransitionValue=function(t,e){(0,l.default)(t)||(t="");var n=t.split(", "),a=(0,i.default)(n,(function(t){return!(0,s.default)(e,(0,r.default)(t.split(" ")))}));return(0,c.default)(a)?"none":a.join(", ")},e.getClosestStickyModuleOffsetTop=function(t){var e=t.offset();e.right=e.left+t.outerWidth();var n=null,i=0,r=(0,o.default)(window.ET_FE,"stores.sticky.modules",{});if((0,a.default)(r,(function(i){if((0,s.default)(["top_bottom","top"],i.position)&&!t.is((0,o.default)(i,"selector"))&&!((0,o.default)(i,"offsets.right",0)<e.left||(0,o.default)(i,"offsets.left",0)>e.right||(0,o.default)(i,"offsets.top",0)>e.top)){var a=(0,o.default)(i,"bottomLimitSettings.offsets.bottom");a&&a<e.top||(n=i)}})),(0,o.default)(n,"topOffsetModules",!1)){(0,a.default)((0,o.default)(n,"topOffsetModules",[]),(function(t){var e=(0,o.default)(r,[t,"heightSticky"],(0,o.default)(r,[t,"height"],0));i+=e}));var c=(0,o.default)(r,[n.id,"heightSticky"],(0,o.default)(r,[n.id,"height"],0));i+=c}return i},e.isTargetStickyState=function(t){var e=(0,o.default)(window.ET_FE,"stores.sticky.modules",{}),n=!1;return(0,a.default)(e,(function(e){var i=t.is((0,o.default)(e,"selector")),a=e.isSticky,r=e.isPaused;if(i&&a&&!r)return n=!0,!1})),n}},147:function(t,e,n){var i=n(100),a=n(251),o=n(252);function r(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new i;++e<n;)this.add(t[e])}r.prototype.add=r.prototype.push=a,r.prototype.has=o,t.exports=r},148:function(t,e){t.exports=function(t,e){return t.has(e)}},149:function(t,e){t.exports=function(t,e,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o<a;)if(e(t[o],o,t))return o;return-1}},150:function(t,e,n){var i=n(116);t.exports=function(t){return t?(t=i(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},159:function(t,e){t.exports=function(t){return t&&t.length?t[0]:void 0}},162:function(t,e,n){var i=n(203)();t.exports=i},163:function(t,e,n){var i=n(187),a=n(80),o=n(4),r=n(73),s=n(71),c=n(82),l=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),_=!n&&a(t),d=!n&&!_&&r(t),p=!n&&!_&&!d&&c(t),u=n||_||d||p,f=u?i(t.length,String):[],h=f.length;for(var b in t)!e&&!l.call(t,b)||u&&("length"==b||d&&("offset"==b||"parent"==b)||p&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||s(b,h))||f.push(b);return f}},164:function(t,e){t.exports=function(){return[]}},169:function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},17:function(t,e,n){var i=n(163),a=n(117),o=n(38);t.exports=function(t){return o(t)?i(t):a(t)}},170:function(t,e,n){var i=n(44)(n(23),"Set");t.exports=i},171:function(t,e,n){var i=n(44)(n(23),"WeakMap");t.exports=i},172:function(t,e,n){var i=n(226),a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,r=i((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(a,(function(t,n,i,a){e.push(i?a.replace(o,"$1"):n||t)})),e}));t.exports=r},173:function(t,e){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1}},174:function(t,e,n){var i=n(23).Uint8Array;t.exports=i},175:function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,i){n[++e]=[i,t]})),n}},176:function(t,e,n){var i=n(177),a=n(141),o=n(17);t.exports=function(t){return i(t,o,a)}},177:function(t,e,n){var i=n(119),a=n(4);t.exports=function(t,e,n){var o=e(t);return a(t)?o:i(o,n(t))}},178:function(t,e,n){var i=n(12);t.exports=function(t){return t==t&&!i(t)}},179:function(t,e){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},186:function(t,e){t.exports=function(){return!1}},187:function(t,e){t.exports=function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}},188:function(t,e,n){var i=n(189),a=/^\s+/;t.exports=function(t){return t?t.slice(0,i(t)+1).replace(a,""):t}},189:function(t,e){var n=/\s/;t.exports=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e}},190:function(t,e,n){var i=n(45);t.exports=function(t,e){return i(e,(function(e){return t[e]}))}},201:function(t,e,n){var i=n(35),a=n(221),o=n(12),r=n(139),s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,_=c.toString,d=l.hasOwnProperty,p=RegExp("^"+_.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||a(t))&&(i(t)?p:s).test(r(t))}},202:function(t,e,n){var i=n(23)["__core-js_shared__"];t.exports=i},203:function(t,e){t.exports=function(t){return function(e,n,i){for(var a=-1,o=Object(e),r=i(e),s=r.length;s--;){var c=r[t?s:++a];if(!1===n(o[c],c,o))break}return e}}},204:function(t,e,n){var i=n(38);t.exports=function(t,e){return function(n,a){if(null==n)return n;if(!i(n))return t(n,a);for(var o=n.length,r=e?o:-1,s=Object(n);(e?r--:++r<o)&&!1!==a(s[r],r,s););return n}}},205:function(t,e,n){var i=n(74),a=n(80),o=n(4),r=n(71),s=n(98),c=n(52);t.exports=function(t,e,n){for(var l=-1,_=(e=i(e,t)).length,d=!1;++l<_;){var p=c(e[l]);if(!(d=null!=t&&n(t,p)))break;t=t[p]}return d||++l!=_?d:!!(_=null==t?0:t.length)&&s(_)&&r(p,_)&&(o(t)||a(t))}},206:function(t,e,n){var i=n(287),a=n(205);t.exports=function(t,e){return null!=t&&a(t,e,i)}},207:function(t,e){t.exports=function(t){return t!=t}},217:function(t,e,n){var i=n(169)(Object.keys,Object);t.exports=i},218:function(t,e,n){var i=n(44)(n(23),"DataView");t.exports=i},219:function(t,e,n){var i=n(59),a=Object.prototype,o=a.hasOwnProperty,r=a.toString,s=i?i.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var i=!0}catch(t){}var a=r.call(t);return i&&(e?t[s]=n:delete t[s]),a}},220:function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},221:function(t,e,n){var i,a=n(202),o=(i=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";t.exports=function(t){return!!o&&o in t}},222:function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},223:function(t,e,n){var i=n(44)(n(23),"Promise");t.exports=i},224:function(t,e,n){var i=n(37),a=n(30);t.exports=function(t){return a(t)&&"[object Arguments]"==i(t)}},225:function(t,e,n){var i=n(37),a=n(98),o=n(30),r={};r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&a(t.length)&&!!r[i(t)]}},226:function(t,e,n){var i=n(146);t.exports=function(t){var e=i(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},227:function(t,e,n){var i=n(228),a=n(76),o=n(97);t.exports=function(){this.size=0,this.__data__={hash:new i,map:new(o||a),string:new i}}},228:function(t,e,n){var i=n(229),a=n(230),o=n(231),r=n(232),s=n(233);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}c.prototype.clear=i,c.prototype.delete=a,c.prototype.get=o,c.prototype.has=r,c.prototype.set=s,t.exports=c},229:function(t,e,n){var i=n(75);t.exports=function(){this.__data__=i?i(null):{},this.size=0}},23:function(t,e,i){var a=i(138),o="object"==("undefined"==typeof self?"undefined":n(self))&&self&&self.Object===Object&&self,r=a||o||Function("return this")();t.exports=r},230:function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},231:function(t,e,n){var i=n(75),a=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(i){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return a.call(e,t)?e[t]:void 0}},232:function(t,e,n){var i=n(75),a=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return i?void 0!==e[t]:a.call(e,t)}},233:function(t,e,n){var i=n(75);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=i&&void 0===e?"__lodash_hash_undefined__":e,this}},234:function(t,e){t.exports=function(){this.__data__=[],this.size=0}},235:function(t,e,n){var i=n(77),a=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=i(e,t);return!(n<0||(n==e.length-1?e.pop():a.call(e,n,1),--this.size,0))}},236:function(t,e,n){var i=n(77);t.exports=function(t){var e=this.__data__,n=i(e,t);return n<0?void 0:e[n][1]}},237:function(t,e,n){var i=n(77);t.exports=function(t){return i(this.__data__,t)>-1}},238:function(t,e,n){var i=n(77);t.exports=function(t,e){var n=this.__data__,a=i(n,t);return a<0?(++this.size,n.push([t,e])):n[a][1]=e,this}},239:function(t,e,n){var i=n(78);t.exports=function(t){var e=i(this,t).delete(t);return this.size-=e?1:0,e}},240:function(t,e){t.exports=function(t){var e=n(t);return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},241:function(t,e,n){var i=n(78);t.exports=function(t){return i(this,t).get(t)}},242:function(t,e,n){var i=n(78);t.exports=function(t){return i(this,t).has(t)}},243:function(t,e,n){var i=n(78);t.exports=function(t,e){var n=i(this,t),a=n.size;return n.set(t,e),this.size+=n.size==a?0:1,this}},244:function(t,e,n){var i=n(107),a=n(118);t.exports=function(t,e,n,o){var r=n.length,s=r,c=!o;if(null==t)return!s;for(t=Object(t);r--;){var l=n[r];if(c&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++r<s;){var _=(l=n[r])[0],d=t[_],p=l[1];if(c&&l[2]){if(void 0===d&&!(_ in t))return!1}else{var u=new i;if(o)var f=o(d,p,_,t,e,u);if(!(void 0===f?a(p,d,3,o,u):f))return!1}}return!0}},245:function(t,e,n){var i=n(76);t.exports=function(){this.__data__=new i,this.size=0}},246:function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},247:function(t,e){t.exports=function(t){return this.__data__.get(t)}},248:function(t,e){t.exports=function(t){return this.__data__.has(t)}},249:function(t,e,n){var i=n(76),a=n(97),o=n(100);t.exports=function(t,e){var n=this.__data__;if(n instanceof i){var r=n.__data__;if(!a||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(r)}return n.set(t,e),this.size=n.size,this}},250:function(t,e,n){var i=n(107),a=n(140),o=n(253),r=n(254),s=n(70),c=n(4),l=n(73),_=n(82),d="[object Arguments]",p="[object Array]",u="[object Object]",f=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,h,b,v){var m=c(t),g=c(e),w=m?p:s(t),y=g?p:s(e),x=(w=w==d?u:w)==u,C=(y=y==d?u:y)==u,k=w==y;if(k&&l(t)){if(!l(e))return!1;m=!0,x=!1}if(k&&!x)return v||(v=new i),m||_(t)?a(t,e,n,h,b,v):o(t,e,w,n,h,b,v);if(!(1&n)){var j=x&&f.call(t,"__wrapped__"),T=C&&f.call(e,"__wrapped__");if(j||T){var O=j?t.value():t,S=T?e.value():e;return v||(v=new i),b(O,S,n,h,v)}}return!!k&&(v||(v=new i),r(t,e,n,h,b,v))}},251:function(t,e){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},252:function(t,e){t.exports=function(t){return this.__data__.has(t)}},253:function(t,e,n){var i=n(59),a=n(174),o=n(60),r=n(140),s=n(175),c=n(129),l=i?i.prototype:void 0,_=l?l.valueOf:void 0;t.exports=function(t,e,n,i,l,d,p){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!d(new a(t),new a(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var u=s;case"[object Set]":var f=1&i;if(u||(u=c),t.size!=e.size&&!f)return!1;var h=p.get(t);if(h)return h==e;i|=2,p.set(t,e);var b=r(u(t),u(e),i,l,d,p);return p.delete(t),b;case"[object Symbol]":if(_)return _.call(t)==_.call(e)}return!1}},254:function(t,e,n){var i=n(176),a=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,r,s){var c=1&n,l=i(t),_=l.length;if(_!=i(e).length&&!c)return!1;for(var d=_;d--;){var p=l[d];if(!(c?p in e:a.call(e,p)))return!1}var u=s.get(t),f=s.get(e);if(u&&f)return u==e&&f==t;var h=!0;s.set(t,e),s.set(e,t);for(var b=c;++d<_;){var v=t[p=l[d]],m=e[p];if(o)var g=c?o(m,v,p,e,t,s):o(v,m,p,t,e,s);if(!(void 0===g?v===m||r(v,m,n,o,s):g)){h=!1;break}b||(b="constructor"==p)}if(h&&!b){var w=t.constructor,y=e.constructor;w==y||!("constructor"in t)||!("constructor"in e)||"function"==typeof w&&w instanceof w&&"function"==typeof y&&y instanceof y||(h=!1)}return s.delete(t),s.delete(e),h}},255:function(t,e,n){var i=n(178),a=n(17);t.exports=function(t){for(var e=a(t),n=e.length;n--;){var o=e[n],r=t[o];e[n]=[o,r,i(r)]}return e}},256:function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},257:function(t,e){t.exports=function(t,e,n){for(var i=n-1,a=t.length;++i<a;)if(t[i]===e)return i;return-1}},272:function(t,e,n){var i=n(244),a=n(255),o=n(179);t.exports=function(t){var e=a(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||i(n,t,e)}}},273:function(t,e,n){var i=n(118),a=n(1),o=n(206),r=n(111),s=n(178),c=n(179),l=n(52);t.exports=function(t,e){return r(t)&&s(e)?c(l(t),e):function(n){var r=a(n,t);return void 0===r&&r===e?o(n,t):i(e,r,3)}}},274:function(t,e,n){var i=n(256),a=n(288),o=n(111),r=n(52);t.exports=function(t){return o(t)?i(r(t)):a(t)}},287:function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},288:function(t,e,n){var i=n(92);t.exports=function(t){return function(e){return i(e,t)}}},29:function(t,e,n){var i=n(83);t.exports=function(t){return null==t?"":i(t)}},30:function(t,e){t.exports=function(t){return null!=t&&"object"==n(t)}},32:function(t,e,i){var a=i(272),o=i(273),r=i(51),s=i(4),c=i(274);t.exports=function(t){return"function"==typeof t?t:null==t?r:"object"==n(t)?s(t)?o(t[0],t[1]):a(t):c(t)}},327:function(t,e,n){var i=n(86);t.exports=function(t,e){var n=[];return i(t,(function(t,i,a){e(t,i,a)&&n.push(t)})),n}},33:function(t,e,n){var i=n(150);t.exports=function(t){var e=i(t),n=e%1;return e==e?n?e-n:e:0}},35:function(t,e,n){var i=n(37),a=n(12);t.exports=function(t){if(!a(t))return!1;var e=i(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},353:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setImportantInlineValue=e.registerFrontendComponent=e.maybeIncreaseEmitterMaxListeners=e.maybeDecreaseEmitterMaxListeners=e.isVB=e.isTB=e.isLBP=e.isLBB=e.isFE=e.isExtraTheme=e.isDiviTheme=e.isBuilderType=e.isBuilder=e.isBlockEditor=e.isBFB=e.is=e.getOffsets=e.getBuilderUtilsParams=e.getBuilderType=void 0;var a=c(i(7)),o=c(i(1)),r=c(i(8)),s=i(354);function c(t){return t&&t.__esModule?t:{default:t}}function l(t){return(l="function"==typeof Symbol&&"symbol"==n(Symbol.iterator)?function(t){return n(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":n(t)})(t)}var _=function(){return window.et_builder_utils_params?window.et_builder_utils_params:s.top_window.et_builder_utils_params?s.top_window.et_builder_utils_params:{}};e.getBuilderUtilsParams=_;var d=function(){return(0,o.default)(_(),"builderType","")};e.getBuilderType=d;var p=function(t){return t===d()};e.isBuilderType=p;var u=function(t){return(0,o.default)(_(),"condition.".concat(t))};e.is=u;var f=p("fe");e.isFE=f;var h=p("vb");e.isVB=h;var b=p("bfb");e.isBFB=b;var v=p("tb");e.isTB=v;var m=p("lbb");e.isLBB=m;var g=u("diviTheme");e.isDiviTheme=g;var w=u("extraTheme");e.isExtraTheme=w;var y=p("lbp");e.isLBP=y;var x=0<(0,r.default)(s.top_window.document).find(".edit-post-layout__content").length;e.isBlockEditor=x;var C=(0,a.default)(["vb","bfb","tb","lbb"],d());e.isBuilder=C,e.getOffsets=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=C&&t.hasClass("et_pb_sticky")&&"fixed"!==t.css("position"),a=t.data("et-offsets"),r=t.data("et-offsets-device"),s=(0,o.default)(window.ET_FE,"stores.window.breakpoint","");if(i&&void 0!==a&&r===s)return a;var c=t.offset();if(void 0===c)return{};var l=C?t.children('.et-fb-custom-css-output[data-sticky-has-transform="on"]').length>0:t.hasClass("et_pb_sticky--has-transform"),_=void 0===c.top?0:c.top,d=void 0===c.left?0:c.left;if(l){var p=t.parent().offset(),u={top:c.top-p.top,left:c.left-p.left},f={top:t[0].offsetTop,left:t[0].offsetLeft};_+=f.top-u.top,c.top=_,d+=f.left-u.left,c.left=d}return c.right=d+e,c.bottom=_+n,t.data("et-offsets",c),""!==s&&t.data("et-offsets-device",c),c},e.maybeIncreaseEmitterMaxListeners=function(t,e){var n=t.listenerCount(e),i=t.getMaxListeners();n===i&&t.setMaxListeners(i+1)},e.maybeDecreaseEmitterMaxListeners=function(t,e){var n=t.listenerCount(e);t.getMaxListeners()>10&&t.setMaxListeners(n)},e.registerFrontendComponent=function(t,e,n){void 0===window.ET_FE&&(window.ET_FE={}),"object"!==l(window.ET_FE[t])&&(window.ET_FE[t]={}),window.ET_FE[t][e]=n},e.setImportantInlineValue=function(t,e,n){t.css(e,"");var i=t.attr("style");t.attr("style","".concat(i," ").concat(e,": ").concat(n," !important;"))}},354:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.top_window=e.is_iframe=void 0;var i=window;e.top_window=i;var a,o=!1;e.is_iframe=o;try{a=!!window.top.document&&window.top}catch(t){a=!1}a&&a.__Cypress__?window.parent===a?(e.top_window=i=window,e.is_iframe=o=!1):(e.top_window=i=window.parent,e.is_iframe=o=!0):a&&(e.top_window=i=a,e.is_iframe=o=a!==window.self)},36:function(t,e,n){var i=n(37),a=n(4),o=n(30);t.exports=function(t){return"string"==typeof t||!a(t)&&o(t)&&"[object String]"==i(t)}},37:function(t,e,n){var i=n(59),a=n(219),o=n(220),r=i?i.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":r&&r in Object(t)?a(t):o(t)}},38:function(t,e,n){var i=n(35),a=n(98);t.exports=function(t){return null!=t&&a(t.length)&&!i(t)}},4:function(t,e){var n=Array.isArray;t.exports=n},44:function(t,e,n){var i=n(201),a=n(222);t.exports=function(t,e){var n=a(t,e);return i(n)?n:void 0}},45:function(t,e){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length,a=Array(i);++n<i;)a[n]=e(t[n],n,t);return a}},5:function(t,e,n){var i=n(117),a=n(70),o=n(80),r=n(4),s=n(38),c=n(73),l=n(89),_=n(82),d=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(s(t)&&(r(t)||"string"==typeof t||"function"==typeof t.splice||c(t)||_(t)||o(t)))return!t.length;var e=a(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(l(t))return!i(t).length;for(var n in t)if(d.call(t,n))return!1;return!0}},51:function(t,e){t.exports=function(t){return t}},52:function(t,e,n){var i=n(53);t.exports=function(t){if("string"==typeof t||i(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},53:function(t,e,i){var a=i(37),o=i(30);t.exports=function(t){return"symbol"==n(t)||o(t)&&"[object Symbol]"==a(t)}},59:function(t,e,n){var i=n(23).Symbol;t.exports=i},60:function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},64:function(t,e,n){var i=n(120),a=n(327),o=n(32),r=n(4);t.exports=function(t,e){return(r(t)?i:a)(t,o(e,3))}},7:function(t,e,n){var i=n(101),a=n(38),o=n(36),r=n(33),s=n(85),c=Math.max;t.exports=function(t,e,n,l){t=a(t)?t:s(t),n=n&&!l?r(n):0;var _=t.length;return n<0&&(n=c(_+n,0)),o(t)?n<=_&&t.indexOf(e,n)>-1:!!_&&i(t,e,n)>-1}},70:function(t,e,n){var i=n(218),a=n(97),o=n(223),r=n(170),s=n(171),c=n(37),l=n(139),_="[object Map]",d="[object Promise]",p="[object Set]",u="[object WeakMap]",f="[object DataView]",h=l(i),b=l(a),v=l(o),m=l(r),g=l(s),w=c;(i&&w(new i(new ArrayBuffer(1)))!=f||a&&w(new a)!=_||o&&w(o.resolve())!=d||r&&w(new r)!=p||s&&w(new s)!=u)&&(w=function(t){var e=c(t),n="[object Object]"==e?t.constructor:void 0,i=n?l(n):"";if(i)switch(i){case h:return f;case b:return _;case v:return d;case m:return p;case g:return u}return e}),t.exports=w},71:function(t,e){var i=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var a=n(t);return!!(e=null==e?9007199254740991:e)&&("number"==a||"symbol"!=a&&i.test(t))&&t>-1&&t%1==0&&t<e}},73:function(t,e,i){(function(t){var a=i(23),o=i(186),r=e&&!e.nodeType&&e,s=r&&"object"==n(t)&&t&&!t.nodeType&&t,c=s&&s.exports===r?a.Buffer:void 0,l=(c?c.isBuffer:void 0)||o;t.exports=l}).call(this,i(95)(t))},74:function(t,e,n){var i=n(4),a=n(111),o=n(172),r=n(29);t.exports=function(t,e){return i(t)?t:a(t,e)?[t]:o(r(t))}},75:function(t,e,n){var i=n(44)(Object,"create");t.exports=i},76:function(t,e,n){var i=n(234),a=n(235),o=n(236),r=n(237),s=n(238);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}c.prototype.clear=i,c.prototype.delete=a,c.prototype.get=o,c.prototype.has=r,c.prototype.set=s,t.exports=c},77:function(t,e,n){var i=n(60);t.exports=function(t,e){for(var n=t.length;n--;)if(i(t[n][0],e))return n;return-1}},78:function(t,e,n){var i=n(240);t.exports=function(t,e){var n=t.__data__;return i(e)?n["string"==typeof e?"string":"hash"]:n.map}},8:function(t,e){t.exports=window.jQuery},80:function(t,e,n){var i=n(224),a=n(30),o=Object.prototype,r=o.hasOwnProperty,s=o.propertyIsEnumerable,c=i(function(){return arguments}())?i:function(t){return a(t)&&r.call(t,"callee")&&!s.call(t,"callee")};t.exports=c},81:function(t,e){t.exports=function(t){return function(e){return t(e)}}},82:function(t,e,n){var i=n(225),a=n(81),o=n(106),r=o&&o.isTypedArray,s=r?a(r):i;t.exports=s},83:function(t,e,n){var i=n(59),a=n(45),o=n(4),r=n(53),s=i?i.prototype:void 0,c=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return a(e,t)+"";if(r(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},85:function(t,e,n){var i=n(190),a=n(17);t.exports=function(t){return null==t?[]:i(t,a(t))}},86:function(t,e,n){var i=n(126),a=n(204)(i);t.exports=a},88:function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==("undefined"==typeof window?"undefined":n(window))&&(i=window)}t.exports=i},89:function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},9:function(t,e,n){var i=n(99),a=n(86),o=n(110),r=n(4);t.exports=function(t,e){return(r(t)?i:a)(t,o(e))}},92:function(t,e,n){var i=n(74),a=n(52);t.exports=function(t,e){for(var n=0,o=(e=i(e,t)).length;null!=t&&n<o;)t=t[a(e[n++])];return n&&n==o?t:void 0}},95:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},97:function(t,e,n){var i=n(44)(n(23),"Map");t.exports=i},98:function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},99:function(t,e){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t}}}))},function(t,e,n){function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t,e){for(var n in e)t[n]=e[n]}(window,function(t){var e={};function n(i){if(e[i])return e[i].exports;var a=e[i]={i:i,l:!1,exports:{}};return t[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==i(t)&&t&&t.__esModule)return t;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(a,o,function(e){return t[e]}.bind(null,o));return a},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=1466)}({1:function(t,e,n){var i=n(92);t.exports=function(t,e,n){var a=null==t?void 0:i(t,e);return void 0===a?n:a}},100:function(t,e,n){var i=n(227),a=n(239),o=n(241),r=n(242),s=n(243);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}c.prototype.clear=i,c.prototype.delete=a,c.prototype.get=o,c.prototype.has=r,c.prototype.set=s,t.exports=c},101:function(t,e,n){var i=n(149),a=n(207),o=n(257);t.exports=function(t,e,n){return e==e?o(t,e,n):i(t,a,n)}},106:function(t,e,n){(function(t){var a=n(138),o=e&&!e.nodeType&&e,r=o&&"object"==i(t)&&t&&!t.nodeType&&t,s=r&&r.exports===o&&a.process,c=function(){try{return r&&r.require&&r.require("util").types||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=c}).call(this,n(95)(t))},107:function(t,e,n){var i=n(76),a=n(245),o=n(246),r=n(247),s=n(248),c=n(249);function l(t){var e=this.__data__=new i(t);this.size=e.size}l.prototype.clear=a,l.prototype.delete=o,l.prototype.get=r,l.prototype.has=s,l.prototype.set=c,t.exports=l},11:function(t,e){t.exports=function(t){return void 0===t}},110:function(t,e,n){var i=n(51);t.exports=function(t){return"function"==typeof t?t:i}},111:function(t,e,n){var a=n(4),o=n(53),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(t,e){if(a(t))return!1;var n=i(t);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!o(t))||s.test(t)||!r.test(t)||null!=e&&t in Object(e)}},112:function(t,e){t.exports=function(t,e,n){var i=-1,a=t.length;e<0&&(e=-e>a?0:a+e),(n=n>a?a:n)<0&&(n+=a),a=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+e];return o}},116:function(t,e,n){var i=n(188),a=n(12),o=n(53),r=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(a(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=a(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=i(t);var n=s.test(t);return n||c.test(t)?l(t.slice(2),n?2:8):r.test(t)?NaN:+t}},117:function(t,e,n){var i=n(89),a=n(217),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!i(t))return a(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},118:function(t,e,n){var i=n(250),a=n(30);t.exports=function t(e,n,o,r,s){return e===n||(null==e||null==n||!a(e)&&!a(n)?e!=e&&n!=n:i(e,n,o,r,t,s))}},119:function(t,e){t.exports=function(t,e){for(var n=-1,i=e.length,a=t.length;++n<i;)t[a+n]=e[n];return t}},12:function(t,e){t.exports=function(t){var e=i(t);return null!=t&&("object"==e||"function"==e)}},120:function(t,e){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length,a=0,o=[];++n<i;){var r=t[n];e(r,n,t)&&(o[a++]=r)}return o}},121:function(t,e,n){var i=n(209);t.exports=function(t,e,n){"__proto__"==e&&i?i(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},126:function(t,e,n){var i=n(162),a=n(17);t.exports=function(t,e){return t&&i(t,e,a)}},129:function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},138:function(t,e,n){(function(e){var n="object"==i(e)&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(88))},139:function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},140:function(t,e,n){var i=n(147),a=n(173),o=n(148);t.exports=function(t,e,n,r,s,c){var l=1&n,_=t.length,d=e.length;if(_!=d&&!(l&&d>_))return!1;var p=c.get(t),u=c.get(e);if(p&&u)return p==e&&u==t;var f=-1,h=!0,b=2&n?new i:void 0;for(c.set(t,e),c.set(e,t);++f<_;){var v=t[f],m=e[f];if(r)var g=l?r(m,v,f,e,t,c):r(v,m,f,t,e,c);if(void 0!==g){if(g)continue;h=!1;break}if(b){if(!a(e,(function(t,e){if(!o(b,e)&&(v===t||s(v,t,n,r,c)))return b.push(e)}))){h=!1;break}}else if(v!==m&&!s(v,m,n,r,c)){h=!1;break}}return c.delete(t),c.delete(e),h}},141:function(t,e,n){var i=n(120),a=n(164),o=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols,s=r?function(t){return null==t?[]:(t=Object(t),i(r(t),(function(e){return o.call(t,e)})))}:a;t.exports=s},146:function(t,e,n){var i=n(100);function a(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function n(){var i=arguments,a=e?e.apply(this,i):i[0],o=n.cache;if(o.has(a))return o.get(a);var r=t.apply(this,i);return n.cache=o.set(a,r)||o,r};return n.cache=new(a.Cache||i),n}a.Cache=i,t.exports=a},1466:function(t,e,n){"use strict";(function(t){var e=p(n(7)),a=p(n(11)),o=p(n(4)),r=p(n(1)),s=p(n(54)),c=p(n(9)),l=p(n(334)),_=n(328),d=n(353);function p(t){return t&&t.__esModule?t:{default:t}}function u(t){return(u="function"==typeof Symbol&&"symbol"==i(Symbol.iterator)?function(t){return i(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":i(t)})(t)}n(1467),et_pb_custom.page_id,function(n){var i=void 0!==window.ETBlockLayoutModulesScript&&n("body").hasClass("et-block-layout-preview"),p=d.isBuilder||i?ET_Builder.Frames.top:window,f=n(window),h=n(i?p:window),b=d.isBuilder?p.jQuery(p):n(window),v=n("body").hasClass("et-tb"),m=n("body").hasClass("et-bfb"),g=d.isBuilder&&!m,w=function(){return!i&&g&&(n("html").is(".et-fb-preview--wireframe")||n("html").is(".et-fb-preview--desktop"))},y=function(){return d.isBuilder&&n("html").is(".et-fb-preview--zoom")},x=function(t){return t.closest("#et-fb-app").length>0};window.et_load_event_fired=!1,window.et_is_transparent_nav=n("body").hasClass("et_transparent_nav"),window.et_is_vertical_nav=n("body").hasClass("et_vertical_nav"),window.et_is_fixed_nav=n("body").hasClass("et_fixed_nav"),window.et_is_minified_js=n("body").hasClass("et_minified_js"),window.et_is_minified_css=n("body").hasClass("et_minified_css"),window.et_force_width_container_change=!1,t.fn.reverse=[].reverse,t.fn.closest_descendent=function(t){for(var e,n=this.children();n.length&&!(e=n.filter(t)).length;)n=n.children();return e},window.et_pb_init_woo_star_rating=function(t){var e=t.closest("div").find("p.stars");e.length>0&&e.remove(),t.hide().before('<p class="stars">\t\t\t\t<span>\t\t\t\t\t<a class="star-1" href="#">1</a>\t\t\t\t\t<a class="star-2" href="#">2</a>\t\t\t\t\t<a class="star-3" href="#">3</a>\t\t\t\t\t<a class="star-4" href="#">4</a>\t\t\t\t\t<a class="star-5" href="#">5</a>\t\t\t\t</span>\t\t\t</p>')},window.et_pb_wrap_woo_attribute_fields_in_span=function(){var t=n("form.variations_form");n.each(t,(function(t,e){var i=n(e),a=i.find(".variations select"),o=i.find(".variations select").parent("td.value"),r=i.find(".reset_variations");0===o.length||o.attr("data-is-span-added")||(o.attr("data-is-span-added","1"),n(a).wrap("<span></span>"),g&&r.length>0&&n(r).remove())}))};var C=!1;function k(){return n(".et-l:not(.et-l--footer) .et_pb_section:visible").first()}function j(){var t=n(".et_pb_blog_grid");if(0!==t.length)var e=t.find(".et_pb_salvattore_content"),i=setInterval((function(){e.each((function(){var t=n(this),e=t[0],a=getComputedStyle(e,":before").content;"none"!==a&&clearInterval(i),t.children(".column").length||"none"!==a&&(t.children("div").length&&!t.children("div")[0].classList.length?salvattore.recreateColumns(e):salvattore.registerGrid(e))}))}),100)}if(window.et_calculate_fullscreen_section_size=function(){n("section.et_pb_fullscreen").each((function(){et_calc_fullscreen_section.bind(n(this))()})),d.isBuilder||(clearTimeout(C),C=setTimeout((function(){h.off("resize",et_calculate_fullscreen_section_size),h.off("et-pb-header-height-calculated",et_calculate_fullscreen_section_size),h.trigger("resize"),h.on("resize",et_calculate_fullscreen_section_size),h.on("et-pb-header-height-calculated",et_calculate_fullscreen_section_size)})))},window.et_pb_init_modules=function(){n.et_pb_simple_slider=function(t,e){var i,a,o,r=n.extend({slide:".et-slide",arrows:".et-pb-slider-arrows",prev_arrow:".et-pb-arrow-prev",next_arrow:".et-pb-arrow-next",controls:".et-pb-controllers a",carousel_controls:".et_pb_carousel_item",control_active_class:"et-pb-active-control",previous_text:et_pb_custom.previous,next_text:et_pb_custom.next,fade_speed:500,use_arrows:!0,use_controls:!0,manual_arrows:"",append_controls_to:"",controls_below:!1,controls_class:"et-pb-controllers",slideshow:!1,slideshow_speed:7e3,show_progress_bar:!1,tabs_animation:!1,use_carousel:!1,active_slide:0},e),s=n(t),c=s.closest_descendent(r.slide),l=c.length,_=r.fade_speed,p=r.active_slide,u="",h="",b=(s.find(".et_pb_container").width(),s.hasClass("et_pb_post_slider")),v=!1;if(s.et_animation_running=!1,n.data(t,"et_pb_simple_slider",s),c.eq(0).addClass("et-pb-active-slide"),s.attr("data-active-slide",c.data("slide-id")),r.tabs_animation||s.hasClass("et_pb_bg_layout_dark")||s.hasClass("et_pb_bg_layout_light")||s.addClass(C(c.eq(0))),r.use_arrows&&l>1&&(""==r.manual_arrows?r.hasOwnProperty("slide")&&".et_pb_gallery_item"===r.slide?s.append("".concat('<div class="et-pb-slider-arrows"><a class="et-pb-arrow-prev" href="#" style="color:inherit"><span>').concat(r.previous_text,"</span>")+'</a><a class="et-pb-arrow-next" href="#" style="color:inherit">'+"<span>".concat(r.next_text,"</span>")+"</a></div>"):s.append("".concat('<div class="et-pb-slider-arrows"><a class="et-pb-arrow-prev" href="#" ><span>').concat(r.previous_text,"</span>")+'</a><a class="et-pb-arrow-next" href="#">'+"<span>".concat(r.next_text,"</span>")+"</a></div>"):s.append(r.manual_arrows),s.find(r.arrows),s.find(r.prev_arrow),s.find(r.next_arrow),s.on("click.et_pb_simple_slider",r.next_arrow,(function(){return s.et_animation_running||s.et_slider_move_to("next"),!1})),s.on("click.et_pb_simple_slider",r.prev_arrow,(function(){return s.et_animation_running||s.et_slider_move_to("previous"),!1})),s.on("swipeleft.et_pb_simple_slider",r.slide,(function(t){n(t.target).closest(".et-fb-popover-tinymce").length||n(t.target).closest(".et-fb-editable-element").length||s.et_slider_move_to("next")})),s.on("swiperight.et_pb_simple_slider",r.slide,(function(t){n(t.target).closest(".et-fb-popover-tinymce").length||n(t.target).closest(".et-fb-editable-element").length||s.et_slider_move_to("previous")}))),r.use_controls&&l>1){for(var m=1;m<=l;m++)u+='<a href="#"'.concat(1==m?' class="'.concat(r.control_active_class,'"'):"",">").concat(m,"</a>");s.find("video").length>0&&(r.controls_class+=" et-pb-controllers-has-video-tag"),u='<div class="'.concat(r.controls_class,'">').concat(u,"</div>"),""==r.append_controls_to?s.append(u):n(r.append_controls_to).append(u),(i=r.controls_below?s.parent().find(r.controls):s.find(r.controls)).on("click.et_pb_simple_slider",(function(){return s.et_animation_running||s.et_slider_move_to(n(this).index()),!1}))}if(r.use_carousel&&l>1){for(m=1;m<=l;m++){var g=m-1,w=void 0!==c.eq(g).data("image")?"url(".concat(c.eq(g).data("image"),")"):"none";h+='<div class="et_pb_carousel_item '.concat(1===m?r.control_active_class:"",'" data-slide-id="').concat(g,'">')+'<div class="et_pb_video_overlay" href="#" style="background-image: '.concat(w,';">')+'<div class="et_pb_video_overlay_hover"><a href="#" class="et_pb_video_play"></a></div></div></div>'}h="".concat('<div class="et_pb_carousel"><div class="et_pb_carousel_items">').concat(h,"</div>")+"</div>",s.after(h),(a=s.siblings(".et_pb_carousel").find(r.carousel_controls)).on("click.et_pb_simple_slider",(function(){if(s.et_animation_running)return!1;var t=n(this);return s.et_slider_move_to(t.data("slide-id")),!1}))}function y(){v||(s.hasClass("et_pb_pause_slider")?setTimeout((function(){y()}),2e3):r.slideshow&&l>1&&!s.hasClass("et_slider_hovered")&&(o=setTimeout((function(){s.et_slider_move_to("next")}),r.slideshow_speed)))}function x(){var t=s,e=t.find(".et-pb-active-slide .et_pb_slide_image"),n=e.find("img"),i=t.find(".et-pb-active-slide .et_pb_slide_video"),a=e.closest(".et_pb_slide"),o=a.closest(".et_pb_slider"),r=parseFloat(o.innerHeight()),c=parseFloat(.8*r),l=parseFloat(e.height()),_=parseFloat(i.height()),d=k().children(".et_pb_module:visible").first(),p=d.find(".et_pb_slide .et_pb_container"),u=k().is(".et_pb_fullwidth_section"),f=parseFloat(p.height()),h=parseFloat(.8*f);isNaN(c)||(e.find("img").css("maxHeight","".concat(c,"px")),l=parseInt(e.height()),window.et_is_transparent_nav&&d.is(".et_pb_slider")&&u&&(e.find("img").css("maxHeight","".concat(h,"px")),l=parseInt(e.height()))),!isNaN(l)&&a.hasClass("et_pb_media_alignment_center")&&(e.css("marginTop","-".concat(l/2,"px")),n.data("hasLoadEvent")||(n.data("hasLoadEvent",!0),n.on("load",(function(){l=parseFloat(e.height()),e.css("marginTop","-".concat(l/2,"px"))})))),isNaN(_)||i.css("marginTop","-".concat(_/2,"px"))}function C(t){return t.hasClass("et_pb_bg_layout_light")?"et_pb_bg_layout_light":"et_pb_bg_layout_dark"}r.slideshow&&l>1&&s.on("mouseenter.et_pb_simple_slider",(function(){s.hasClass("et_slider_auto_ignore_hover")||(s.addClass("et_slider_hovered"),void 0!==o&&clearTimeout(o))})).on("mouseleave.et_pb_simple_slider",(function(){s.hasClass("et_slider_auto_ignore_hover")||(s.removeClass("et_slider_hovered"),y())})),y(),s.et_slider_destroy=function(){void 0!==o&&clearTimeout(o),v=!0,s.off(".et_pb_simple_slider"),s.find(".et_pb_slide").css({"z-index":"",display:"",opacity:""}),s.find(".et-pb-active-slide").removeClass("et-pb-active-slide"),s.find(".et-pb-moved-slide").removeClass("et-pb-moved-slide"),s.find(".et-pb-slider-arrows, .et-pb-controllers").remove(),s.siblings(".et_pb_carousel, .et-pb-controllers").remove(),s.removeData("et_pb_simple_slider")},s.et_fix_slider_content_images=x,window.et_load_event_fired?"function"==typeof et_fix_slider_height&&et_fix_slider_height(s):f.on("load",(function(){"function"==typeof et_fix_slider_height&&et_fix_slider_height(s)})),f.on("resize.et_simple_slider",(function(){et_fix_slider_height(s)})),s.et_slider_move_to=function(t){var e=(c=s.closest_descendent(r.slide)).eq(p);if(s.et_animation_running=!0,s.removeClass("et_slide_transition_to_next et_slide_transition_to_previous").addClass("et_slide_transition_to_".concat(t)),s.find(".et-pb-moved-slide").removeClass("et-pb-moved-slide"),"next"===t||"previous"===t)p="next"===t?p+1<l?p+1:0:p-1>=0?p-1:l-1;else{if(p===t)return s.find(".et-pb-inactive-slide").css({"z-index":"",display:"",opacity:0}),e.css({display:"block",opacity:1}).data("slide-status","active"),void(s.et_animation_running=!1);p=t}s.attr("data-active-slide",c.eq(p).data("slide-id")),void 0!==o&&clearTimeout(o);var u=c.eq(p);s.trigger("slide",{current:e,next:u}),void 0!==e.find("video")[0]&&void 0!==e.find("video")[0].player&&e.find("video")[0].player.pause(),void 0!==u.find("video")[0]&&void 0!==u.find("video")[0].player&&u.find("video")[0].player.play();var f,h,v,m=e.find(".et_pb_video_box iframe");if(m.length){var g=m.attr("src");g=(g=(g=g.replace(/\?autoplay=1$/,"")).replace(/\?autoplay=1&(amp;)?/,"?")).replace(/&(amp;)?autoplay=1/,""),setTimeout((function(){m.attr({src:g})}),r.fade_speed),m.parents(".et_pb_video_box").next(".et_pb_video_overlay").css({display:"block",opacity:1})}s.trigger("simple_slider_before_move_to",{direction:t,next_slide:u}),c.each((function(){n(this).css("zIndex",1)})),e.css("zIndex",2).removeClass("et-pb-active-slide").addClass("et-pb-moved-slide").data("slide-status","inactive"),u.css({display:"block",opacity:0}).addClass("et-pb-active-slide").data("slide-status","active"),h=(f=s).find(".et-pb-active-slide .et_pb_slide_video"),v=parseFloat(h.height()),f.find(".et_pb_slide_video .wp-video-shortcode").css({width:"",height:""}),isNaN(v)||h.css("marginTop","-".concat(v/2,"px")),x(),b&&setTimeout((function(){var t=n(".et_pb_circle_counter"),e=n(".et_pb_number_counter");window.et_fix_testimonial_inner_width(),t.length&&window.et_pb_reinit_circle_counters(t),e.length&&window.et_pb_reinit_number_counters(e),window.et_reinit_waypoint_modules()}),1e3),r.use_controls&&i.removeClass(r.control_active_class).eq(p).addClass(r.control_active_class),r.use_carousel&&a&&a.removeClass(r.control_active_class).eq(p).addClass(r.control_active_class),r.tabs_animation?(u.css({display:"none",opacity:0}),e.addClass("et_slide_transition").css({display:"block",opacity:1}).animate({opacity:0},_,(function(){n(this).css("display","none").removeClass("et_slide_transition"),u.css({display:"block",opacity:0}).animate({opacity:1},_,(function(){s.et_animation_running=!1,s.trigger("simple_slider_after_move_to",{next_slide:u}),n(window).trigger("resize")}))}))):(u.stop(!0,!0).animate({opacity:1},_),e.stop(!0,!0).addClass("et_slide_transition").css({display:"list-item",opacity:1}).animate({opacity:0},_,(function(){var t,i,a,o=C(e),r=C(u);d.isBuilder?n(this).removeClass("et_slide_transition"):n(this).css("display","none").removeClass("et_slide_transition"),(t=e).has("iframe").length?(a=(i=t.find("iframe")).attr("src"),i.attr("src",""),i.attr("src",a)):t.has("video").length&&(t.find(".et_pb_section_video_bg").length||(i=t.find("video"))[0].pause()),s.removeClass(o).addClass(r),s.et_animation_running=!1,s.hasClass("et_pb_gallery")&&"none"===u.css("maxHeight")&&u.css("maxHeight",u.outerHeight()),s.trigger("simple_slider_after_move_to",{next_slide:u})}))),u.find(".et_parallax_bg").length&&window.et_pb_parallax_init(u.find(".et_parallax_bg")),y()}},n.fn.et_pb_simple_slider=function(t){return this.each((function(){return n.data(this,"et_pb_simple_slider")||new n.et_pb_simple_slider(this,t)}))};var e="||",l="|";function C(t){var i=t.split(l)[0];if(n("#".concat(i)).length){if(window.location.hash){var a=window.location.hash.substring(1),o=[];if(-1!==a.indexOf(e,0)){for(var r=a.split(e),s=!1,c=0;c<r.length;c++)r[c].split(l)[0]===i?(o.push(t),s=!0):o.push(r[c]);s||o.push(t)}else a.split(l)[0]!==i&&o.push(a),o.push(t);a=o.join(e)}else a=t;var _=document.body.scrollTop;window.location.hash=a,document.body.scrollTop=_}}function T(){var e;void 0!==t.fn.mediaelementplayer&&(e=".et_audio_container","string"==typeof e&&(e=n(e)),e.not("#et-fb-app *")).each((function(){var e=t(this);e.find(".mejs-container").first().length>0||e.find("audio").mediaelementplayer(window._wpmejsSettings)}))}n.et_pb_simple_carousel=function(t,e){var i=n.extend({slide_duration:500},e),a=n(t),o=a.find(".et_pb_carousel_items"),r=o.find(".et_pb_carousel_item");function s(t){r.width();var e=r.height();t.parent().hasClass("et_pb_with_border")&&(e=r.outerHeight()),o.css("height","".concat(e,"px"))}function c(t){var e=3,i=t.parents('.et_pb_column:not(".et_pb_specialty_column")');if(i.hasClass("et_pb_column_4_4")||i.hasClass("et_pb_column_3_4")||i.hasClass("et_pb_column_2_3")?f.width()>=768&&(e=4):i.hasClass("et_pb_column_1_4")?f.width()<=480&&f.width()>=980&&(e=2):i.hasClass("et_pb_column_3_5")?e=4:(i.hasClass("et_pb_column_1_5")||i.hasClass("et_pb_column_1_6"))&&(e=2),e!==o.data("portfolio-columns")&&!t.data("columns_setting_up")){t.data("columns_setting_up",!0),o.removeClass("columns-".concat(o.data("portfolio-columns"))),o.addClass("columns-".concat(e)),o.data("portfolio-columns",e),o.find(".et-carousel-group").length&&(r.appendTo(o),o.find(".et-carousel-group").remove());var a=o.data("items"),s=n('<div class="et-carousel-group active">').appendTo(o);r.data("position",""),a.length<=e?o.find(".et-pb-slider-arrows").hide():o.find(".et-pb-slider-arrows").show();for(var c=1,l=0;l<a.length;l++,c++)l<e?(n(a[l]).show(),n(a[l]).appendTo(s),n(a[l]).data("position",c),n(a[l]).addClass("position_".concat(c))):(c=n(a[l]).data("position"),n(a[l]).removeClass("position_".concat(c)),n(a[l]).data("position",""),n(a[l]).hide());t.data("columns_setting_up",!1)}}a.et_animation_running=!1,a.addClass("container-width-change-notify").on("containerWidthChanged",(function(t){c(a),s(a)})),o.data("items",r.toArray()),a.data("columns_setting_up",!1),o.prepend("".concat('<div class="et-pb-slider-arrows"><a class="et-pb-slider-arrow et-pb-arrow-prev" href="#"><span>').concat(et_pb_custom.previous,"</span>")+'</a><a class="et-pb-slider-arrow et-pb-arrow-next" href="#">'+"<span>".concat(et_pb_custom.next,"</span>")+"</a></div>"),c(a),s(a),a.find(".et-pb-arrow-next"),a.find(".et-pb-arrow-prev"),a.on("click",".et-pb-arrow-next",(function(){return a.et_animation_running||a.et_carousel_move_to("next"),!1})),a.on("click",".et-pb-arrow-prev",(function(){return a.et_animation_running||a.et_carousel_move_to("previous"),!1})),a.on("swipeleft",(function(){a.et_carousel_move_to("next")})),a.on("swiperight",(function(){a.et_carousel_move_to("previous")})),a.et_carousel_move_to=function(t){var e=o.find(".et-carousel-group.active"),s=o.data("items"),c=o.data("portfolio-columns");a.et_animation_running=!0;var l=0;e.children().each((function(){n(this).css({position:"absolute",left:"".concat(l,"px")}),l+=n(this).outerWidth(!0)})),n("body").addClass("et-pb-is-sliding-carousel");var _=e.find(".et_pb_carousel_item").length,d=0;if("next"==t){var p,u=1,f=1,h=C=(x=s.indexOf(e.children().first()[0]))+c,b=h+c;(p=n('<div class="et-carousel-group next" style="display: none;left: 100%;position: absolute;top: 0;">').insertAfter(e)).css({width:"".concat(e.innerWidth(),"px")}).show();for(var v=0,m=0;m>=x&&m<C&&(n(s[v]).addClass("changing_position current_position current_position_".concat(u)),n(s[v]).data("current_position",u),u++),m>=h&&m<b&&(n(s[v]).data("next_position",f),n(s[v]).addClass("changing_position next_position next_position_".concat(f)),n(s[v]).hasClass("current_position")?(n(s[v]).clone(!0).appendTo(e).hide().addClass("delayed_container_append_dup").attr("id","".concat(n(s[v]).attr("id"),"-dup")),n(s[v]).addClass("delayed_container_append")):n(s[v]).addClass("container_append"),f++),!(f>c);v++,m++)v>=s.length-1&&(v=-1);var g=o.find(".container_append, .delayed_container_append_dup").sort((function(t,e){var i=parseInt(n(t).data("next_position")),a=parseInt(n(e).data("next_position"));return i<a?-1:i>a?1:0}));n(g).show().appendTo(p),l=0,p.children().each((function(){n(this).css({position:"absolute",left:"".concat(l,"px")}),l+=n(this).outerWidth(!0)})),e.animate({left:"-100%"},{duration:i.slide_duration,progress:function(t,n){n>d/_&&(d++,e.find(".et_pb_carousel_item:nth-child(".concat(d,")")).addClass("item-fade-out"),p.find(".et_pb_carousel_item:nth-child(".concat(d,")")).addClass("item-fade-in"))},complete:function(){o.find(".delayed_container_append").each((function(){l=n("#".concat(n(this).attr("id"),"-dup")).css("left"),n(this).css({position:"absolute",left:l}),n(this).appendTo(p)})),e.removeClass("active"),e.children().each((function(){var t=n(this).data("position");u=n(this).data("current_position"),n(this).removeClass("position_".concat(t," ")+"changing_position current_position current_position_".concat(u)),n(this).data("position",""),n(this).data("current_position",""),n(this).hide(),n(this).css({position:"",left:""}),n(this).appendTo(o)})),o.find(".item-fade-out").removeClass("item-fade-out"),p.find(".item-fade-in").removeClass("item-fade-in"),n("body").removeClass("et-pb-is-sliding-carousel"),e.remove()}});var w=e.width()+parseInt(r.first().css("marginRight").slice(0,-2));p.addClass("active").css({position:"absolute",top:"0px",left:"".concat(w,"px")}),p.animate({left:"0%"},{duration:i.slide_duration,complete:function(){p.removeClass("next").addClass("active").css({position:"",width:"",top:"",left:""}),p.find(".changing_position").each((function(t){var e=n(this).data("position");u=n(this).data("current_position"),f=n(this).data("next_position"),n(this).removeClass("container_append delayed_container_append position_".concat(e," ")+"changing_position current_position current_position_".concat(u," next_position next_position_").concat(f)),n(this).data("current_position",""),n(this).data("next_position",""),n(this).data("position",t+1)})),p.children().css({position:"",left:""}),p.find(".delayed_container_append_dup").remove(),a.et_animation_running=!1}})}else if("previous"==t){u=c;var y,x,C,k=c,j=c-1,T=(C=(x=s.indexOf(e.children().last()[0]))-j)-1,O=T-j;(y=n('<div class="et-carousel-group prev" style="display: none;left: 100%;position: absolute;top: 0;">').insertBefore(e)).css({left:"-".concat(e.innerWidth(),"px"),width:"".concat(e.innerWidth(),"px")}).show();for(var S=s.length-1,P=s.length-1;P<=x&&P>=C&&(n(s[S]).addClass("changing_position current_position current_position_".concat(u)),n(s[S]).data("current_position",u),u--),P<=T&&P>=O&&(n(s[S]).data("prev_position",k),n(s[S]).addClass("changing_position prev_position prev_position_".concat(k)),n(s[S]).hasClass("current_position")?(n(s[S]).clone(!0).appendTo(e).addClass("delayed_container_append_dup").attr("id","".concat(n(s[S]).attr("id"),"-dup")),n(s[S]).addClass("delayed_container_append")):n(s[S]).addClass("container_append"),k--),!(k<=0);S--,P--)0==S&&(S=s.length);g=o.find(".container_append, .delayed_container_append_dup").sort((function(t,e){var i=parseInt(n(t).data("prev_position")),a=parseInt(n(e).data("prev_position"));return i<a?-1:i>a?1:0})),n(g).show().appendTo(y),l=0,y.children().each((function(){n(this).css({position:"absolute",left:"".concat(l,"px")}),l+=n(this).outerWidth(!0)})),e.animate({left:"100%"},{duration:i.slide_duration,progress:function(t,n){if(n>d/_){var i=_-d;e.find(".et_pb_carousel_item:nth-child(".concat(i,")")).addClass("item-fade-out"),y.find(".et_pb_carousel_item:nth-child(".concat(i,")")).addClass("item-fade-in"),d++}},complete:function(){o.find(".delayed_container_append").reverse().each((function(){l=n("#".concat(n(this).attr("id"),"-dup")).css("left"),n(this).css({position:"absolute",left:l}),n(this).prependTo(y)})),e.removeClass("active"),e.children().each((function(){var t=n(this).data("position");u=n(this).data("current_position"),n(this).removeClass("position_".concat(t," ")+"changing_position current_position current_position_".concat(u)),n(this).data("position",""),n(this).data("current_position",""),n(this).hide(),n(this).css({position:"",left:""}),n(this).appendTo(o)})),o.find(".item-fade-out").removeClass("item-fade-out"),y.find(".item-fade-in").removeClass("item-fade-in"),n("body").removeClass("et-pb-is-sliding-carousel"),e.remove()}});var z=-1*e.width()-parseInt(r.first().css("marginRight").slice(0,-2));y.addClass("active").css({position:"absolute",top:"0px",left:"".concat(z,"px")}),y.animate({left:"0%"},{duration:i.slide_duration,complete:function(){y.removeClass("prev").addClass("active").css({position:"",width:"",top:"",left:""}),y.find(".delayed_container_append_dup").remove(),y.find(".changing_position").each((function(t){var e=n(this).data("position");u=n(this).data("current_position"),k=n(this).data("prev_position"),n(this).removeClass("container_append delayed_container_append position_".concat(e," ")+"changing_position current_position current_position_".concat(u," prev_position prev_position_").concat(k)),n(this).data("current_position",""),n(this).data("prev_position",""),e=t+1,n(this).data("position",e),n(this).addClass("position_".concat(e))})),y.children().css({position:"",left:""}),a.et_animation_running=!1}})}}},n.fn.et_pb_simple_carousel=function(t){return this.each((function(){return n.data(this,"et_pb_simple_carousel")||new n.et_pb_simple_carousel(this,t)}))},n((function(){n(window).trigger("et_pb_before_init_modules");var k=n(".et_pb_slider"),j=n(".et_pb_tabs"),S=n(".et_pb_section_video_bg"),P=n(".et_pb_newsletter_button"),z=n(".et_pb_newsletter_field .input"),I=n(".et_pb_filterable_portfolio"),A=n(".et_pb_fullwidth_portfolio"),E=n(".et_pb_gallery"),B=n(".et_pb_countdown_timer"),M=n(".et_post_gallery"),H=n(".et_pb_lightbox_image"),F=n(".et_pb_map_container"),L=n(".et_pb_circle_counter"),D=n(".et_pb_number_counter"),W=n(".et_parallax_bg"),q=(n(".et_pb_shop"),n(".single.et_pb_pagebuilder_layout.et_full_width_page"),n("[data-background-layout][data-background-layout-hover]")),N=null!==navigator.userAgent.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/)||"standalone"in window.navigator&&!window.navigator.standalone,$=navigator.userAgent.match(/iPad/),V=null!==navigator.userAgent.match(/MSIE 9.0/),R=n(".et_pb_row"),Q=window.et_pb_custom&&!window.et_pb_custom.is_builder_plugin_used?n("body"):R,U=Q.width(),Z=(n("body").hasClass("et_vertical_fixed"),n("body").hasClass("rtl"),n("body").hasClass("et_hide_nav")),Y=(n("body").hasClass("et_header_style_left"),n("#top-header")),G=(n("#main-header"),n("#page-container"),n(".et_transparent_nav"),n("body.et_pb_pagebuilder_layout .et_pb_section:first-child"),n("#main-content .container:first-child")),X=(G.find(".et_post_meta_wrapper").first().find("h1"),G.find(".entry-content").first(),n("body.single-post"),n(".et_header_style_split"),n("#et-top-navigation"),n("#logo"),n(".et_pb_image_sticky")),J=n(".et_pb_counter_amount"),K=n(".et_pb_carousel"),tt=window.et_pb_custom&&window.et_pb_custom.is_divi_theme_used?n("ul.nav"):n(".et_pb_fullwidth_menu ul.nav"),et=window.et_pb_custom&&1e3*window.et_pb_custom.ab_bounce_rate,nt={},it="",at=(0,r.default)(window,"etCore.api.spam.recaptcha");n.each(et_pb_custom.ab_tests,(function(t,e){nt[e.post_id]={read_page:!1,read_goal:!1,view_goal:!1,click_goal:!1,con_goal:!1,con_short:!1}}));var ot=n(".et_pb_grid_item").parent().get(),rt=n(".et_pb_gutter_hover");window.et_pb_slider_init=function(t){var e={fade_speed:700,slide:t.hasClass("et_pb_gallery")?".et_pb_gallery_item":".et_pb_slide"};if(t.hasClass("et_pb_slider_no_arrows")&&(e.use_arrows=!1),t.hasClass("et_pb_slider_no_pagination")&&(e.use_controls=!1),t.hasClass("et_slider_auto")){e.slideshow=!0;var i=/et_slider_speed_(\d+)/g.exec(t.attr("class"));e.slideshow_speed=null===i?10:i[1]}t.parent().hasClass("et_pb_video_slider")&&(e.controls_below=!0,e.append_controls_to=t.parent(),setTimeout((function(){n(".et_pb_preload").removeClass("et_pb_preload")}),500)),t.hasClass("et_pb_slider_carousel")&&(e.use_carousel=!0),t.et_pb_simple_slider(e)};var st=tt;if(n(".et_pb_ab_shop_conversion").length&&void 0!==Bt("et_pb_ab_shop_log")&&""!==Bt("et_pb_ab_shop_log")){var ct=Bt("et_pb_ab_shop_log").split("_");Pt("con_goal",ct[0],ct[1],ct[2]),Mt(0,"et_pb_ab_shop_log=true")}function lt(t){var e="";if(t.length)if(t.each((function(){var t=n(this).attr("class").split("et_pb_column_")[1],i=(void 0!==t?t.split(" ",1)[0]:"4_4").replace("_","-").trim();e+="_".concat(i)})),-1!==e.indexOf("1-4")||-1!==e.indexOf("1-5_1-5")||-1!==e.indexOf("1-6_1-6"))switch(e){case"_1-4_1-4_1-4_1-4":e="et_pb_row_4col";break;case"_1-5_1-5_1-5_1-5_1-5":e="et_pb_row_5col";break;case"_1-6_1-6_1-6_1-6_1-6_1-6":e="et_pb_row_6col";break;default:e="et_pb_row".concat(e)}else e="";return e}if(n(".et_pb_ab_split_track").length&&n(".et_pb_ab_split_track").each((function(){var t=n(this).data("test_id"),e="et_pb_ab_shortcode_track_".concat(t);if(void 0!==Bt(e)&&""!==Bt(e)){var i=Bt(e).split("_");Pt("con_short",i[0],i[1],i[2]),Mt(0,"".concat(e,"=true"))}})),rt.length>0&&rt.each((function(){var t=n(this),e=t.data("original_gutter"),i=t.data("hover_gutter");t.on("mouseenter",(function(){t.removeClass("et_pb_gutters".concat(e)),t.addClass("et_pb_gutters".concat(i))})).on("mouseleave",(function(){t.removeClass("et_pb_gutters".concat(i)),t.addClass("et_pb_gutters".concat(e))}))})),window.et_pb_custom&&window.et_pb_custom.is_ab_testing_active&&n.each(et_pb_custom.ab_tests,(function(t,e){!function(t){if(!d.isBuilder){var e=It(t.post_id),i=zt(t.post_id);if(n.each(nt[t.post_id],(function(e){var n="click_goal"===e||"con_short"===e?"":i;nt[t.post_id][e]=Et("et_pb_ab_".concat(e,"_").concat(t.post_id).concat(t.test_id).concat(n),"true")})),nt[t.post_id].read_page||setTimeout((function(){Pt("read_page",t.post_id,void 0,t.test_id)}),et),"on"!==et_pb_custom.is_shortcode_tracking||nt[t.post_id].con_short||Mt(365,"et_pb_ab_shortcode_track_".concat(t.post_id,"=").concat(t.post_id,"_").concat(i,"_").concat(t.test_id)),e.length)if(e.hasClass("et_pb_module")&&(e.hasClass("et_pb_button")||e.find(".et_pb_button").length)){if(!e.hasClass("et_pb_contact_form_container")&&!e.hasClass("et_pb_newsletter")){var a=e.hasClass("et_pb_button")?e:e.find(".et_pb_button");if(e.hasClass("et_pb_comments_module")){var o=-1!==window.location.href.indexOf("#comment-"),r=Et("et_pb_ab_comment_log_".concat(t.post_id).concat(t.test_id),"true");o&&r&&(Pt("con_goal",t.post_id,void 0,t.test_id),Mt(0,"et_pb_ab_comment_log_".concat(t.post_id).concat(t.test_id,"=true")))}a.on("click",(function(){!e.hasClass("et_pb_comments_module")||nt[t.post_id].con_goal?St(e,"click_goal"):Mt(365,"et_pb_ab_comment_log_".concat(t.post_id).concat(t.test_id,"=true"))}))}}else e.on("click",(function(){e.hasClass("et_pb_shop")&&!nt[t.post_id].con_goal&&Mt(365,"et_pb_ab_shop_log=".concat(t.post_id,"_").concat(i,"_").concat(t.test_id)),St(e,"click_goal")}))}}(e)})),R.length&&R.each((function(){var t=n(this),e="";""!==(e=lt(t.find(">.et_pb_column")))&&t.addClass(e),t.find(".et_pb_row_inner").length&&t.find(".et_pb_row_inner").each((function(){var t=n(this);""!==(e=lt(t.find(".et_pb_column")))&&t.addClass(e)}));var i=t.parents(".et_pb_section.section_has_divider").length?6:3,a=isNaN(t.css("z-index"))||t.css("z-index")<i;t.find(".et_pb_module.et_pb_menu").length&&a&&t.css("z-index",i)})),window.et_pb_init_nav_menu(st),X.each((function(){window.et_pb_apply_sticky_image_effect(n(this))})),N&&(n(".et_pb_section_video_bg").each((function(){var t=n(this);t.closest(".et_pb_preload").removeClass("et_pb_preload"),t.hasClass("opened")&&t.remove()})),n("body").addClass("et_mobile_device"),$||n("body").addClass("et_mobile_device_not_ipad")),V&&n("body").addClass("et_ie9"),(S.length||d.isBuilder)&&(window.et_pb_video_section_init=function(t){t.find("video").mediaelementplayer({pauseOtherPlayers:!1,success:function(t,e){t.addEventListener("loadeddata",(function(){et_pb_resize_section_video_bg(n(e)),et_pb_center_video(n(e).closest(".mejs-video"))}),!1),t.addEventListener("canplay",(function(){n(e).closest(".et_pb_preload").removeClass("et_pb_preload")}),!1)}})},S.length>0&&et_pb_video_section_init(S)),T(),!i&&M.length>0){var _t=n.magnificPopup.instance;n("body").on("swiperight",".mfp-container",(function(){_t.prev()})),n("body").on("swipeleft",".mfp-container",(function(){_t.next()})),M.each((function(){n(this).magnificPopup({delegate:".et_pb_gallery_image a",type:"image",removalDelay:500,gallery:{enabled:!0,navigateByImgClick:!0},mainClass:"mfp-fade",zoom:{enabled:window.et_pb_custom&&!window.et_pb_custom.is_builder_plugin_used,duration:500,opener:function(t){return t.find("img")}},autoFocusLast:!1})})),M.find("a").off("click")}function dt(t){var e=t.parents(".et_pb_fullwidth_portfolio"),i=e.find(".et_pb_portfolio_items"),a=(i.find(".et_pb_portfolio_item"),i.find(".et_pb_carousel_group.active")),o=700,r=i.data("items"),s=i.data("portfolio-columns"),c=a.innerWidth()/s,l="".concat(100/s,"%");if(void 0!==r&&!e.data("carouseling"))if(e.data("carouseling",!0),a.children().each((function(){n(this).css({width:"".concat(c+1,"px"),"max-width":"".concat(c,"px"),position:"absolute",left:"".concat(c*(n(this).data("position")-1),"px")})})),t.hasClass("et-pb-arrow-next")){var _,d=1,p=1,u=y=(w=r.indexOf(a.children().first()[0]))+s,f=u+s,h=a.innerWidth();(_=n('<div class="et_pb_carousel_group next" style="display: none;left: 100%;position: absolute;top: 0;">').insertAfter(a)).css({width:"".concat(h,"px"),"max-width":"".concat(h,"px")}).show();for(var b=0,v=0;v>=w&&v<y&&(n(r[b]).addClass("changing_position current_position current_position_".concat(d)),n(r[b]).data("current_position",d),d++),v>=u&&v<f&&(n(r[b]).data("next_position",p),n(r[b]).addClass("changing_position next_position next_position_".concat(p)),n(r[b]).hasClass("current_position")?(n(r[b]).clone(!0).appendTo(a).hide().addClass("delayed_container_append_dup").attr("id","".concat(n(r[b]).attr("id"),"-dup")),n(r[b]).addClass("delayed_container_append")):n(r[b]).addClass("container_append"),p++),!(p>s);b++,v++)b>=r.length-1&&(b=-1);var m=i.find(".container_append, .delayed_container_append_dup").sort((function(t,e){var i=parseInt(n(t).data("next_position")),a=parseInt(n(e).data("next_position"));return i<a?-1:i>a?1:0}));n(m).show().appendTo(_),_.children().each((function(){n(this).css({width:"".concat(c,"px"),"max-width":"".concat(c,"px"),position:"absolute",left:"".concat(c*(n(this).data("next_position")-1),"px")})})),a.animate({left:"-100%"},{duration:o,complete:function(){i.find(".delayed_container_append").each((function(){n(this).css({width:"".concat(c,"px"),"max-width":"".concat(c,"px"),position:"absolute",left:"".concat(c*(n(this).data("next_position")-1),"px")}),n(this).appendTo(_)})),a.removeClass("active"),a.children().each((function(){var t=n(this).data("position");d=n(this).data("current_position"),n(this).removeClass("position_".concat(t," ")+"changing_position current_position current_position_".concat(d)),n(this).data("position",""),n(this).data("current_position",""),n(this).hide(),n(this).css({position:"",width:"","max-width":"",left:""}),n(this).appendTo(i)})),a.remove(),ut(e)}}),_.addClass("active").css({position:"absolute",top:"0px",left:"100%"}),_.animate({left:"0%"},{duration:o,complete:function(){setTimeout((function(){_.removeClass("next").addClass("active").css({position:"",width:"","max-width":"",top:"",left:""}),_.find(".delayed_container_append_dup").remove(),_.find(".changing_position").each((function(t){var e=n(this).data("position");d=n(this).data("current_position"),p=n(this).data("next_position"),n(this).removeClass("container_append delayed_container_append position_".concat(e," ")+"changing_position current_position current_position_".concat(d," next_position next_position_").concat(p)),n(this).data("current_position",""),n(this).data("next_position",""),n(this).data("position",t+1)})),i.find(".et_pb_portfolio_item").removeClass("first_in_row last_in_row"),et_pb_set_responsive_grid(i,".et_pb_portfolio_item:visible"),_.children().css({position:"",width:l,"max-width":l,left:""}),e.data("carouseling",!1)}),100)}})}else{d=s;var g,w,y,x=s,C=s-1,k=(y=(w=r.indexOf(a.children().last()[0]))-C)-1,j=k-C;h=a.innerWidth(),(g=n('<div class="et_pb_carousel_group prev" style="display: none;left: 100%;position: absolute;top: 0;">').insertBefore(a)).css({left:"-".concat(h,"px"),width:"".concat(h,"px"),"max-width":"".concat(h,"px")}).show();for(var T=r.length-1,O=r.length-1;O<=w&&O>=y&&(n(r[T]).addClass("changing_position current_position current_position_".concat(d)),n(r[T]).data("current_position",d),d--),O<=k&&O>=j&&(n(r[T]).data("prev_position",x),n(r[T]).addClass("changing_position prev_position prev_position_".concat(x)),n(r[T]).hasClass("current_position")?(n(r[T]).clone(!0).appendTo(a).addClass("delayed_container_append_dup").attr("id","".concat(n(r[T]).attr("id"),"-dup")),n(r[T]).addClass("delayed_container_append")):n(r[T]).addClass("container_append"),x--),!(x<=0);T--,O--)0==T&&(T=r.length);var S=i.find(".container_append, .delayed_container_append_dup").sort((function(t,e){var i=parseInt(n(t).data("prev_position")),a=parseInt(n(e).data("prev_position"));return i<a?-1:i>a?1:0}));n(S).show().appendTo(g),g.children().each((function(){n(this).css({width:"".concat(c,"px"),"max-width":"".concat(c,"px"),position:"absolute",left:"".concat(c*(n(this).data("prev_position")-1),"px")})})),a.animate({left:"100%"},{duration:o,complete:function(){i.find(".delayed_container_append").reverse().each((function(){n(this).css({width:"".concat(c,"px"),"max-width":"".concat(c,"px"),position:"absolute",left:"".concat(c*(n(this).data("prev_position")-1),"px")}),n(this).prependTo(g)})),a.removeClass("active"),a.children().each((function(){var t=n(this).data("position");d=n(this).data("current_position"),n(this).removeClass("position_".concat(t," ")+"changing_position current_position current_position_".concat(d)),n(this).data("position",""),n(this).data("current_position",""),n(this).hide(),n(this).css({position:"",width:"","max-width":"",left:""}),n(this).appendTo(i)})),a.remove()}}),g.addClass("active").css({position:"absolute",top:"0px",left:"-100%"}),g.animate({left:"0%"},{duration:o,complete:function(){setTimeout((function(){g.removeClass("prev").addClass("active").css({position:"",width:"","max-width":"",top:"",left:""}),g.find(".delayed_container_append_dup").remove(),g.find(".changing_position").each((function(t){var e=n(this).data("position");d=n(this).data("current_position"),x=n(this).data("prev_position"),n(this).removeClass("container_append delayed_container_append position_".concat(e," ")+"changing_position current_position current_position_".concat(d," prev_position prev_position_").concat(x)),n(this).data("current_position",""),n(this).data("prev_position",""),e=t+1,n(this).data("position",e),n(this).addClass("position_".concat(e))})),i.find(".et_pb_portfolio_item").removeClass("first_in_row last_in_row"),et_pb_set_responsive_grid(i,".et_pb_portfolio_item:visible"),g.children().css({position:"",width:l,"max-width":l,left:""}),e.data("carouseling",!1)}),100)}})}}function pt(t,e){var i,a=t.find(".et_pb_portfolio_items"),o=a.width(),r=a.find(".et_pb_portfolio_item");if(r.length,void 0!==r){var s=o/(i=o>=1600?5:o>=1024?4:o>=768?3:o>=480?2:1)*.75;if(e&&a.css({height:"".concat(s,"px")}),r.css({height:"".concat(s,"px")}),i!==a.data("portfolio-columns")&&!t.data("columns_setting_up")){t.data("columns_setting_up",!0);var c="".concat(100/i,"%");if(r.css({width:c,"max-width":c}),a.removeClass("columns-".concat(a.data("portfolio-columns"))),a.addClass("columns-".concat(i)),a.data("portfolio-columns",i),!e)return t.data("columns_setting_up",!1);a.find(".et_pb_carousel_group").length&&(r.appendTo(a),a.find(".et_pb_carousel_group").remove());var l=a.data("items"),_=n('<div class="et_pb_carousel_group active">').appendTo(a);if(void 0!==l){r.data("position",""),l.length<=i?a.find(".et-pb-slider-arrows").hide():a.find(".et-pb-slider-arrows").show();for(var d=1,p=0;p<l.length;p++,d++)p<i?(n(l[p]).show(),n(l[p]).appendTo(_),n(l[p]).data("position",d),n(l[p]).addClass("position_".concat(d))):(d=n(l[p]).data("position"),n(l[p]).removeClass("position_".concat(d)),n(l[p]).data("position",""),n(l[p]).hide());t.data("columns_setting_up",!1)}}}}function ut(t){if("on"===t.data("auto-rotate")&&t.find(".et_pb_portfolio_item").length>t.find(".et_pb_carousel_group .et_pb_portfolio_item").length&&!t.hasClass("et_carousel_hovered")){var e=setTimeout((function(){dt(t.find(".et-pb-arrow-next"))}),t.data("auto-rotate-speed"));t.data("et_carousel_timer",e)}}if(!i&&(H.length>0||d.isBuilder)&&(H.off("click"),H.on("click"),window.et_pb_image_lightbox_init=function(e){if(!e.magnificPopup)return t(window).on("load",(function(){window.et_pb_image_lightbox_init(e)}));e.magnificPopup({type:"image",removalDelay:500,mainClass:"mfp-fade",zoom:{enabled:window.et_pb_custom&&!window.et_pb_custom.is_builder_plugin_used,duration:500,opener:function(t){return t.find("img")}},autoFocusLast:!1})},et_pb_image_lightbox_init(H)),(k.length||d.isBuilder)&&k.each((function(){var t=n(this);et_pb_slider_init(t)})),((K=n(".et_pb_carousel")).length||d.isBuilder)&&K.each((function(){n(this).et_pb_simple_carousel({slide_duration:1e3})})),(ot.length||d.isBuilder)&&n(ot).each((function(){window.et_pb_set_responsive_grid(n(this),".et_pb_grid_item")})),(A.length||d.isBuilder)&&(window.et_fullwidth_portfolio_init=function(t,e){var i=t.find(".et_pb_portfolio_items");i.data("items",i.find(".et_pb_portfolio_item").toArray()),t.data("columns_setting_up",!1),t.hasClass("et_pb_fullwidth_portfolio_carousel")?(i.prepend("".concat('<div class="et-pb-slider-arrows"><a class="et-pb-arrow-prev" href="#"><span>').concat(et_pb_custom.previous,"</span>")+'</a><a class="et-pb-arrow-next" href="#">'+"<span>".concat(et_pb_custom.next,"</span>")+"</a></div>"),pt(t,!0),ut(t),t.on("swiperight",(function(){n(this).find(".et-pb-arrow-prev").trigger("click")})),t.on("swipeleft",(function(){n(this).find(".et-pb-arrow-next").trigger("click")})),t.on("mouseenter",(function(){n(this).addClass("et_carousel_hovered"),void 0!==n(this).data("et_carousel_timer")&&clearInterval(n(this).data("et_carousel_timer"))})).on("mouseleave",(function(){n(this).removeClass("et_carousel_hovered"),ut(n(this))})),t.data("carouseling",!1),t.on("click",".et-pb-slider-arrows a",(function(t){return dt(n(this)),t.preventDefault(),!1}))):pt(t,!1),"function"==typeof e&&e()},A.each((function(){et_fullwidth_portfolio_init(n(this))}))),n(".et_pb_section_video").length&&(window._wpmejsSettings.pauseOtherPlayers=!1),I.length||d.isBuilder){var ft=function(t){if(t.attr("id")){var e=[];e.push(t.attr("id")),e.push(t.find(".et_pb_portfolio_filter > a.active").data("category-slug")),t.find(".et_pb_portofolio_pagination a.active").length?e.push(t.find(".et_pb_portofolio_pagination a.active").data("page")):e.push(1),C(e=e.join(l))}};window.et_pb_filterable_portfolio_init=function(t){void 0!==t?set_filterable_portfolio_init(t):I.each((function(){set_filterable_portfolio_init(n(this))}))},window.set_filterable_portfolio_init=function(t,e){var i=t.find(".et_pb_portfolio_items").clone();t.show(),t.find(".et_pb_portfolio_item").addClass("active"),t.css("display","block"),window.set_filterable_grid_items(t),"function"==typeof e&&e(),t.on("click",".et_pb_portfolio_filter a",(function(t){t.preventDefault();var e=n(this).data("category-slug"),a=n(this).parents(".et_pb_filterable_portfolio"),o=a.find(".et_pb_portfolio_items");"all"==e?(a.find(".et_pb_portfolio_filter a").removeClass("active"),a.find(".et_pb_portfolio_filter_all a").addClass("active"),o.empty(),o.append(i.find(".et_pb_portfolio_item").clone()),a.find(".et_pb_portfolio_item").addClass("active")):(a.find(".et_pb_portfolio_filter_all").removeClass("active"),a.find(".et_pb_portfolio_filter a").removeClass("active"),a.find(".et_pb_portfolio_filter_all a").removeClass("active"),n(this).addClass("active"),o.empty(),o.append(i.find(".et_pb_portfolio_item.project_category_".concat(n(this).data("category-slug"))).clone()),o.find(".et_pb_portfolio_item").removeClass("active"),o.find(".et_pb_portfolio_item.project_category_".concat(n(this).data("category-slug"))).addClass("active").removeClass("inactive")),window.set_filterable_grid_items(a),setTimeout((function(){ft(a)}),500),a.find(".et_pb_portfolio_item").removeClass("first_in_row last_in_row"),et_pb_set_responsive_grid(a,".et_pb_portfolio_item:visible")})),t.on("click",".et_pb_portofolio_pagination a",(function(t){t.preventDefault();var e=n(this).data("page"),i=n(this).parents(".et_pb_filterable_portfolio");i.find(".et_pb_portfolio_items"),et_pb_smooth_scroll(i,!1,800),n(this).hasClass("page-prev")?e=parseInt(n(this).parents("ul").find("a.active").data("page"))-1:n(this).hasClass("page-next")&&(e=parseInt(n(this).parents("ul").find("a.active").data("page"))+1),n(this).parents("ul").find("a").removeClass("active"),n(this).parents("ul").find("a.page-".concat(e)).addClass("active");var a=n(this).parents("ul").find("a.page-".concat(e)).parent().index(),o=n(this).parents("ul").find("li.page").length;n(this).parent().nextUntil(".page-".concat(a+3)).show(),n(this).parent().prevUntil(".page-".concat(a-3)).show(),n(this).parents("ul").find("li.page").each((function(t){n(this).hasClass("prev")||n(this).hasClass("next")||(t<a-3||t>a+1?n(this).hide():n(this).show(),(o-a<=2&&o-t<=5||a<=3&&t<=4)&&n(this).show())})),e>1?n(this).parents("ul").find("li.prev").show():n(this).parents("ul").find("li.prev").hide(),n(this).parents("ul").find("a.active").hasClass("last-page")?n(this).parents("ul").find("li.next").hide():n(this).parents("ul").find("li.next").show(),i.find(".et_pb_portfolio_item").hide(),i.find(".et_pb_portfolio_item").filter((function(t){return n(this).data("page")===e})).show(),window.et_pb_set_responsive_grid(i.find(".et_pb_portfolio_items"),".et_pb_portfolio_item"),setTimeout((function(){ft(i)}),500),i.find(".et_pb_portfolio_item").removeClass("first_in_row last_in_row"),et_pb_set_responsive_grid(i,".et_pb_portfolio_item:visible")})),t.on("et_hashchange",(function(e){var i=e.params;(t=n("#".concat(e.target.id))).find('.et_pb_portfolio_filter a[data-category-slug="'.concat(i[0],'"]')).hasClass("active")||t.find('.et_pb_portfolio_filter a[data-category-slug="'.concat(i[0],'"]')).trigger("click"),i[1]&&setTimeout((function(){t.find(".et_pb_portofolio_pagination a.page-".concat(i[1])).hasClass("active")||t.find(".et_pb_portofolio_pagination a.page-".concat(i[1])).addClass("active").trigger("click")}),300)}))},window.set_filterable_grid_items=function(t){var e,i=t.find(".et_pb_portfolio_filter > a.active").data("category-slug");window.et_pb_set_responsive_grid(t.find(".et_pb_portfolio_items"),".et_pb_portfolio_item");var a=(e="all"===i?t.find(".et_pb_portfolio_item"):t.find(".et_pb_portfolio_item.project_category_".concat(i))).length,o=t.data("posts-number"),r=0===o?1:Math.ceil(a/o);window.set_filterable_grid_pages(t,r),a=0;var s=1;t.find(".et_pb_portfolio_item").data("page",""),e.each((function(t){a++,0===parseInt(a%o)?(n(this).data("page",s),s++):n(this).data("page",s)})),e.filter((function(){return 1==n(this).data("page")})).show(),e.filter((function(){return 1!=n(this).data("page")})).hide()},window.set_filterable_grid_pages=function(t,e){var n=t.find(".et_pb_portofolio_pagination");if(n.length&&(n.html("<ul></ul>"),!(e<=1))){var i=n.children("ul");i.append('<li class="prev" style="display:none;"><a href="#" data-page="prev" class="page-prev">'.concat(et_pb_custom.prev,"</a></li>"));for(var a=1;a<=e;a++){var o=1===a?" active":"",r=a===e?" last-page":"",s=a>=5?' style="display:none;"':"";i.append("<li".concat(s,' class="page page-').concat(a,'"><a href="#" data-page="').concat(a,'" class="page-').concat(a).concat(o).concat(r,'">').concat(a,"</a></li>"))}i.append('<li class="next"><a href="#" data-page="next" class="page-next">'.concat(et_pb_custom.next,"</a></li>"))}},window.et_load_event_fired?et_pb_filterable_portfolio_init():n(window).on("load",(function(){et_pb_filterable_portfolio_init()}))}if((E.length||d.isBuilder)&&(window.set_gallery_grid_items=function(t){var e=t.find(".et_pb_gallery_items"),i=e.find(".et_pb_gallery_item"),a=i.length,o=parseInt(e.attr("data-per_page")),r=isNaN(o)||0===o?4:o,s=Math.ceil(a/r);window.et_pb_set_responsive_grid(e,".et_pb_gallery_item"),set_gallery_grid_pages(t,s),a=0;var c=1;i.data("page",""),i.each((function(t){a++;var e=n(this);0===parseInt(a%r)?(e.data("page",c),c++):e.data("page",c)})),i.filter((function(){return 1==n(this).data("page")})).show(),i.filter((function(){return 1!=n(this).data("page")})).hide()},window.set_gallery_grid_pages=function(t,e){var n=t.find(".et_pb_gallery_pagination");if(n.length)if(n.html("<ul></ul>"),e<=1)n.hide();else{var i=n.children("ul");i.append('<li class="prev" style="display:none;"><a href="#" data-page="prev" class="page-prev">'.concat(et_pb_custom.prev,"</a></li>"));for(var a=1;a<=e;a++){var o=1===a?" active":"",r=a===e?" last-page":"",s=a>=5?' style="display:none;"':"";i.append("<li".concat(s,' class="page page-').concat(a,'"><a href="#" data-page="').concat(a,'" class="page-').concat(a).concat(o).concat(r,'">').concat(a,"</a></li>"))}i.append('<li class="next"><a href="#" data-page="next" class="page-next">'.concat(et_pb_custom.next,"</a></li>"))}},window.set_gallery_hash=function(t){if(t.attr("id")){var e=[];e.push(t.attr("id")),t.find(".et_pb_gallery_pagination a.active").length?e.push(t.find(".et_pb_gallery_pagination a.active").data("page")):e.push(1),C(e=e.join(l))}},window.et_pb_gallery_init=function(t){t.hasClass("et_pb_gallery_grid")&&(t.show(),set_gallery_grid_items(t),t.on("et_hashchange",(function(e){var i=e.params;t=n("#".concat(e.target.id));var a=i[0];a&&(t.find(".et_pb_gallery_pagination a.page-".concat(a)).hasClass("active")||t.find(".et_pb_gallery_pagination a.page-".concat(a)).addClass("active").trigger("click"))})))},E.each((function(){var t=n(this);et_pb_gallery_init(t)})),E.data("paginating",!1),window.et_pb_gallery_pagination_nav=function(t){t.on("click",".et_pb_gallery_pagination a",(function(t){t.preventDefault();var e=n(this).data("page"),i=n(this).parents(".et_pb_gallery"),a=i.find(".et_pb_gallery_items"),o=a.find(".et_pb_gallery_item");if(!i.data("paginating")){i.data("paginating",!0),n(this).hasClass("page-prev")?e=parseInt(n(this).parents("ul").find("a.active").data("page"))-1:n(this).hasClass("page-next")&&(e=parseInt(n(this).parents("ul").find("a.active").data("page"))+1),n(this).parents("ul").find("a").removeClass("active"),n(this).parents("ul").find("a.page-".concat(e)).addClass("active");var r=n(this).parents("ul").find("a.page-".concat(e)).parent().index(),s=n(this).parents("ul").find("li.page").length;n(this).parent().nextUntil(".page-".concat(r+3)).show(),n(this).parent().prevUntil(".page-".concat(r-3)).show(),n(this).parents("ul").find("li.page").each((function(t){n(this).hasClass("prev")||n(this).hasClass("next")||(t<r-3||t>r+1?n(this).hide():n(this).show(),(s-r<=2&&s-t<=5||r<=3&&t<=4)&&n(this).show())})),e>1?n(this).parents("ul").find("li.prev").show():n(this).parents("ul").find("li.prev").hide(),n(this).parents("ul").find("a.active").hasClass("last-page")?n(this).parents("ul").find("li.next").hide():n(this).parents("ul").find("li.next").show(),o.hide(),o.filter((function(t){return n(this).data("page")===e})).show(),i.data("paginating",!1),window.et_pb_set_responsive_grid(a,".et_pb_gallery_item"),setTimeout((function(){set_gallery_hash(i)}),100)}}))},et_pb_gallery_pagination_nav(E),d.isBuilder&&et_pb_gallery_pagination_nav(n("#et-fb-app"))),J.length&&J.each((function(){window.et_bar_counters_init(n(this))})),window.et_countdown_timer=function(t){var e=parseInt(t.attr("data-end-timestamp"))-(new Date).getTime()/1e3,n=parseInt(e/86400);n=n>0?n:0,e%=86400;var i=parseInt(e/3600);i=i>0?i:0,e%=3600;var a=parseInt(e/60);a=a>0?a:0;var o=parseInt(e%60);o=o>0?o:0;var r=t.find(".days > .value").parent(".section"),s=t.find(".hours > .value").parent(".section"),c=t.find(".minutes > .value").parent(".section"),l=t.find(".seconds > .value").parent(".section");if(0==n)r.hasClass("zero")||t.find(".days > .value").html("000").parent(".section").addClass("zero").next().addClass("zero");else{var _=n.toString().length>=3?n.toString().length:3;t.find(".days > .value").html("000".concat(n).slice(-_)),r.hasClass("zero")&&r.removeClass("zero").next().removeClass("zero")}0===n&&0===i?s.hasClass("zero")||t.find(".hours > .value").html("00").parent(".section").addClass("zero").next().addClass("zero"):(t.find(".hours > .value").html("0".concat(i).slice(-2)),s.hasClass("zero")&&s.removeClass("zero").next().removeClass("zero")),0===n&&0===i&&0===a?c.hasClass("zero")||t.find(".minutes > .value").html("00").parent(".section").addClass("zero").next().addClass("zero"):(t.find(".minutes > .value").html("0".concat(a).slice(-2)),c.hasClass("zero")&&c.removeClass("zero").next().removeClass("zero")),0===n&&0===i&&0===a&&0===o?l.hasClass("zero")||t.find(".seconds > .value").html("00").parent(".section").addClass("zero"):(t.find(".seconds > .value").html("0".concat(o).slice(-2)),l.hasClass("zero")&&l.removeClass("zero").next().removeClass("zero"))},window.et_countdown_timer_labels=function(t){t.closest(".et_pb_column_3_8").length||t.closest(".et_pb_column_1_4").length||t.children(".et_pb_countdown_timer_container").width()<=400?(t.find(".days .label").text(t.find(".days").data("short")),t.find(".hours .label").text(t.find(".hours").data("short")),t.find(".minutes .label").text(t.find(".minutes").data("short")),t.find(".seconds .label").text(t.find(".seconds").data("short"))):(t.find(".days .label").text(t.find(".days").data("full")),t.find(".hours .label").text(t.find(".hours").data("full")),t.find(".minutes .label").text(t.find(".minutes").data("full")),t.find(".seconds .label").text(t.find(".seconds").data("full")))},(B.length||d.isBuilder)&&(window.et_pb_countdown_timer_init=function(t){t.each((function(){var t=n(this);et_countdown_timer_labels(t),et_countdown_timer(t),setInterval((function(){et_countdown_timer(t)}),1e3)}))},et_pb_countdown_timer_init(B)),window.et_pb_tabs_init=function(t){t.each((function(){var t=n(this),e=t.find(".et_pb_tabs_controls li"),i=v||m||g?0:t.find(".et_pb_tab_active").index(),a={use_controls:!1,use_arrows:!1,slide:".et_pb_all_tabs > div",tabs_animation:!0};0!==i&&(a.active_slide=i),t.et_pb_simple_slider(a).on("et_hashchange",(function(t){var e=t.params,i=n("#".concat(t.target.id)),a=e[0];i.find(".et_pb_tabs_controls li").eq(a).hasClass("et_pb_tab_active")||i.find(".et_pb_tabs_controls li").eq(a).trigger("click")})),e.on("click",(function(){var t=n(this),e=t.closest(".et_pb_tabs").data("et_pb_simple_slider");if(e.et_animation_running)return!1;if(t.addClass("et_pb_tab_active").siblings().removeClass("et_pb_tab_active"),e.data("et_pb_simple_slider").et_slider_move_to(t.index()),t.closest(".et_pb_tabs").attr("id")){var i=[];i.push(t.closest(".et_pb_tabs").attr("id")),i.push(t.index()),C(i=i.join(l))}return!1})),function(t){var e=window.location.hash;if(""!==e){var n=e.replace("#","");n=/^tab\-/.test(n)?n:"tab-".concat(n);var i=t.find('.et_pb_tabs_controls li a[href="#'.concat(n,'"]'));i.length&&i.parent().trigger("click")}}(t),window.et_pb_set_tabs_height()}))},(j.length||d.isBuilder)&&window.et_pb_tabs_init(j),F.length||d.isBuilder){var ht=function(){F.each((function(){et_pb_map_init(n(this))}))};window.et_pb_map_init=function(t){if("undefined"!=typeof google&&void 0!==google.maps){var e=At();it=e;var i="desktop"!==e?"-".concat(e):"",a="phone"===e?"-tablet":"",o=t.attr("data-grayscale".concat(i))||0;o||(o=t.attr("data-grayscale".concat(a))||t.attr("data-grayscale")||0);var r,s=t.children(".et_pb_map"),c=o,l=N&&"off"!==s.data("mobile-dragging")||!N;0!==c&&(c="-".concat(c.toString()));var _=parseFloat(s.attr("data-center-lat"))||0,d=parseFloat(s.attr("data-center-lng"))||0;t.data("map",new google.maps.Map(s[0],{zoom:parseInt(s.attr("data-zoom")),center:new google.maps.LatLng(_,d),mapTypeId:google.maps.MapTypeId.ROADMAP,scrollwheel:"on"==s.attr("data-mouse-wheel"),draggable:l,panControlOptions:{position:t.is(".et_beneath_transparent_nav")?google.maps.ControlPosition.LEFT_BOTTOM:google.maps.ControlPosition.LEFT_TOP},zoomControlOptions:{position:t.is(".et_beneath_transparent_nav")?google.maps.ControlPosition.LEFT_BOTTOM:google.maps.ControlPosition.LEFT_TOP},styles:[{stylers:[{saturation:parseInt(c)}]}]})),t.find(".et_pb_map_pin").each((function(){var e=n(this),i=new google.maps.Marker({position:new google.maps.LatLng(parseFloat(e.attr("data-lat")),parseFloat(e.attr("data-lng"))),map:t.data("map"),title:e.attr("data-title"),icon:{url:"".concat(et_pb_custom.builder_images_uri,"/marker.png"),size:new google.maps.Size(46,43),anchor:new google.maps.Point(16,43)},shape:{coord:[1,1,46,43],type:"rect"},anchorPoint:new google.maps.Point(0,-45)});if(e.find(".infowindow").length){var a=new google.maps.InfoWindow({content:e.html()});google.maps.event.addListener(t.data("map"),"click",(function(){a.close()})),google.maps.event.addListener(i,"click",(function(){r&&r.close(),r=a,a.open(t.data("map"),i),e.closest(".et_pb_module").trigger("mouseleave"),setTimeout((function(){e.closest(".et_pb_module").trigger("mouseenter")}),1)}))}}))}},window.et_load_event_fired?ht():"undefined"!=typeof google&&void 0!==google.maps&&google.maps.event.addDomListener(window,"load",(function(){ht()}))}n(".et_pb_shop, .et_pb_wc_upsells, .et_pb_wc_related_products").each((function(){var t=n(this),e=(0,a.default)(t.data("icon"))||""===t.data("icon")?"":t.data("icon"),i=(0,a.default)(t.data("icon-tablet"))||""===t.data("icon-tablet")?"":t.data("icon-tablet"),o=(0,a.default)(t.data("icon-phone"))||""===t.data("icon-phone")?"":t.data("icon-phone"),r=(0,a.default)(t.data("icon-sticky"))||""===t.data("icon-sticky")?"":t.data("icon-sticky"),s=t.find(".et_overlay");if(!s.length&&t.hasClass("et_pb_wc_related_products")&&(s=t.find(".et_pb_extra_overlay"),t=s.closest(".et_pb_module_inner").parent(),e=(0,a.default)(t.data("icon"))||""===t.data("icon")?"":t.data("icon"),i=(0,a.default)(t.data("icon-tablet"))||""===t.data("icon-tablet")?"":t.data("icon-tablet"),o=(0,a.default)(t.data("icon-phone"))||""===t.data("icon-phone")?"":t.data("icon-phone"),r=(0,a.default)(t.data("icon-sticky"))||""===t.data("icon-sticky")?"":t.data("icon-sticky")),""!==e&&s.attr("data-icon",e).addClass("et_pb_inline_icon"),""!==i&&s.attr("data-icon-tablet",i).addClass("et_pb_inline_icon_tablet"),""!==o&&s.attr("data-icon-phone",o).addClass("et_pb_inline_icon_phone"),""!==r&&s.attr("data-icon-sticky",r).addClass("et_pb_inline_icon_sticky"),t.hasClass("et_pb_shop")){var c=t.find("li.product"),l=t.attr("data-shortcode_index"),_="et_pb_shop_item_".concat(l);c.length>0&&c.each((function(t,e){n(e).addClass("".concat(_,"_").concat(t))}))}})),n(".et_pb_wc_cart_totals").each((function(){var t=d.isBuilder?n(".et_pb_module_inner",this):n(this),e={};n.each(t.data(),(function(n){if(n.includes("buttonName")){var i=t.data(n),a=t.data("".concat(i,"-icon"))||"",o=t.data("".concat(i,"-icon-tablet"))||"",r=t.data("".concat(i,"-icon-phone"))||"";e[i]={icon:a,"icon-tablet":o,"icon-phone":r,class:t.data("button-class")}}})),n.each(e,(function(e,n){var i=t.find('button[name="'.concat(e,'"]:eq(0)'));0===i.length&&(i=t.find(".".concat(e))),i.addClass(n.class),i.attr("data-icon",n.icon),i.attr("data-icon-tablet",n["icon-tablet"]),i.attr("data-icon-phone",n["icon-phone"])}))})),q.each((function(){var t,e,i=n(this),a=i.data("background-layout"),o=i.data("background-layout-hover"),r=i.data("background-layout-tablet"),s=i.data("background-layout-phone");i.hasClass("et_pb_button_module_wrapper")?i=i.find("> .et_pb_button"):i.hasClass("et_pb_gallery")?(t=i.find(".et_pb_gallery_item"),i=i.add(t)):i.hasClass("et_pb_post_slider")?(t=i.find(".et_pb_slide"),i=i.add(t)):i.hasClass("et_pb_slide")&&(e=i.closest(".et_pb_slider"),i=i.add(e));var c="et_pb_bg_layout_light et_pb_bg_layout_dark et_pb_text_color_dark",l="et_pb_bg_layout_".concat(a),_="et_pb_bg_layout_".concat(o),d="light"===a?"et_pb_text_color_dark":"",p="light"===o?"et_pb_text_color_dark":"";r&&(c+=" et_pb_bg_layout_light_tablet et_pb_bg_layout_dark_tablet et_pb_text_color_dark_tablet",l+=" et_pb_bg_layout_".concat(r,"_tablet"),_+=" et_pb_bg_layout_".concat(o,"_tablet"),d+="light"===r?" et_pb_text_color_dark_tablet":"",p+="light"===o?" et_pb_text_color_dark_tablet":""),s&&(c+=" et_pb_bg_layout_light_phone et_pb_bg_layout_dark_phone et_pb_text_color_dark_phone",l+=" et_pb_bg_layout_".concat(s,"_phone"),_+=" et_pb_bg_layout_".concat(o,"_phone"),d+="light"===s?" et_pb_text_color_dark_phone":"",p+="light"===o?" et_pb_text_color_dark_phone":""),i.on("mouseenter",(function(){i.removeClass(c),i.addClass(_),i.hasClass("et_pb_audio_module")&&""!==p&&i.addClass(p)})),i.on("mouseleave",(function(){i.removeClass(c),i.addClass(l),i.hasClass("et_pb_audio_module")&&""!==d&&i.addClass(d)}))})),(L.length||d.isBuilder||n(".et_pb_ajax_pagination_container").length>0)&&(window.et_pb_circle_counter_init=function(t,e,i){if(!(t.width()<=0)){var a=At();it=a;var o="";void 0!==i&&""!==i?o="-".concat(i):"desktop"!==a&&(o="-".concat(a));var r=t.data("bar-bg-color"),s=t.data("bar-bg-color".concat(o));void 0!==s&&""!==s&&(r=s);var c=t.data("color")||"#000000",l=t.data("color".concat(o));void 0!==l&&""!==l&&(c=l);var _=t.data("alpha")||"0.1",d=t.data("alpha".concat(o));void 0===d||""===d||isNaN(d)||(_=d),t.easyPieChart({animate:{duration:1800,enabled:!0},size:0!==t.width()?t.width():10,barColor:r,trackColor:c,trackAlpha:_,scaleColor:!1,lineWidth:5,onStart:function(){n(this.el).find(".percent p").css({visibility:"visible"})},onStep:function(t,e,i){n(this.el).find(".percent-value").text(Math.round(parseInt(i)))},onStop:function(t,e){n(this.el).find(".percent-value").text(n(this.el).data("number-value"))}})}},window.et_pb_reinit_circle_counters=function(t){t.each((function(){var t=n(this).find(".et_pb_circle_counter_inner");window.et_pb_circle_counter_init(t,!1),t.on("mouseover",(function(e){window.et_pb_circle_counter_update(t,e,"hover")})),t.on("mouseleave",(function(e){window.et_pb_circle_counter_update(t,e)})),t.on("containerWidthChanged",(function(e,i){(t=n(e.target)).find("canvas").remove(),t.removeData("easyPieChart"),window.et_pb_circle_counter_init(t,!0,i)}));var e=t.attr("data-sticky-id");e&&(window.addEventListener("ETBuilderStickyStart",(function(n){e===n.detail.stickyId&&window.et_pb_circle_counter_update(t,event,"sticky")})),window.addEventListener("ETBuilderStickyEnd",(function(n){e===n.detail.stickyId&&window.et_pb_circle_counter_update(t,event)})))}))},window.et_pb_reinit_circle_counters(L)),window.et_pb_circle_counter_update=function(t,e,i){if(t.is(":visible")&&void 0!==t.data("easyPieChart")){if("mouseleave"===e.type&&t.closest(".et_pb_sticky").length>0&&(i="sticky"),n(e.target).length>0&&("mouseover"===e.type||"mouseleave"===e.type)){var a=!1,o=t.data("bar-bg-color-hover"),r=t.data("color-hover"),s=t.data("alpha-hover");if((void 0!==o&&""!==o||void 0!==r&&""!==r||void 0!==s&&""!==s)&&(a=!0),!a)return}var c=[];void 0!==i&&""!==i&&(c=[i]),t.trigger("containerWidthChanged",c),["ETBuilderStickyStart","ETBuilderStickyEnd"].includes(e.type)&&""===t.find(".percent-value").text()||(t.data("easyPieChart").disableAnimation(),t.data("easyPieChart").update(t.data("number-value")))}},(D.length||d.isBuilder||n(".et_pb_ajax_pagination_container").length>0)&&(window.et_pb_reinit_number_counters=function(t){var e=n("body").hasClass("gecko");function i(t,e){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,e)}function a(t){return t.data("number-separator")}n.fn.fitText&&t.find(".percent p").fitText(.3),t.each((function(){var t=n(this);t.easyPieChart({animate:{duration:1800,enabled:!0},size:e?1:0,trackColor:!1,scaleColor:!1,lineWidth:0,onStart:function(e,o){n(this.el).addClass("active"),e===o&&n(this.el).find(".percent-value").text(i(n(this.el).data("number-value"),a(t)))},onStep:function(e,o,r){r!=o&&n(this.el).find(".percent-value").text(i(Math.round(parseInt(r)),a(t)))},onStop:function(e,o){n(this.el).find(".percent-value").text(i(n(this.el).data("number-value"),a(t)))}})}))},window.et_pb_reinit_number_counters(D)),window.et_apply_parallax=function(){if(n(this).length&&void 0!==n(this)&&void 0!==n(this).offset()){var t=b;v?t=p.jQuery("#et-fb-app"):w()&&(t=n(window));var e=n(this),a=e.parent(),o=y()?e.offset().top/2:e.offset().top,r=t.scrollTop();if(!a.hasClass("et_is_animating")){if(i){var s="#divi-layout-iframe-".concat(ETBlockLayoutModulesScript.blockId);o+=p.jQuery(s).offset().top}var c,l=.3*(r+b.height()-o);c="translate(0, ".concat(l,"px)"),(e.children(".et_parallax_bg_wrap").length>0?e.children(".et_parallax_bg_wrap").find(".et_parallax_bg"):e.children(".et_parallax_bg")).css({"-webkit-transform":c,"-moz-transform":c,"-ms-transform":c,transform:c})}}},window.et_parallax_set_height=function(){var t=n(this),e=d.isBuilder&&t.parent(".et_pb_fullscreen").length&&b.height()>t.innerHeight()?b.height():t.innerHeight(),i=.3*b.height()+e;m&&(i+=p.jQuery("#et_pb_layout .inside").offset().top),t.find(".et_parallax_bg").css({height:"".concat(i,"px")})},window.et_apply_builder_css_parallax=function(){if(d.isBuilder||i){var t=n(this),e=t.children(".et_parallax_bg");if(e.css({width:"",height:"",top:"",left:"",backgroundAttachment:""}),!w()||v){var a=v?p.jQuery("#et-fb-app"):b,o=a.scrollTop(),r=m?p.jQuery("#et_pb_layout .inside").offset().top:0,s=y()?2:1,c=t.offset(),l=y()?c.top/2:c.top;i&&(a=p.jQuery((0,_.getContentAreaSelector)(p,!0)),r=p.jQuery("#divi-layout-iframe-".concat(ETBlockLayoutModulesScript.blockId)).offset().top,o=a.offset().top),e.css({width:"".concat(n(window).width(),"px"),height:"".concat(a.innerHeight()*s,"px"),top:"".concat(o-r-l,"px"),left:"".concat(0-c.left,"px"),backgroundAttachment:"scroll"})}}},n(".et_pb_accordion").on("touchstart",(function(t){if("desktop"!==At()){var e=n(t.target);(e.hasClass("et_pb_toggle_title")||e.hasClass("et_fb_toggle_overlay"))&&(t.preventDefault(),e.trigger("click"))}})),n("body").on("click",".et_pb_toggle_title, .et_fb_toggle_overlay",(function(){var t,e,i=n(this).closest(".et_pb_toggle"),a=i.parents(".et_pb_section"),o=i.find(".et_pb_toggle_content"),r=i.closest(".et_pb_accordion"),s=r.length,c=r.hasClass("et_pb_accordion_toggling"),l=n(window).scrollTop(),_=0,d=i.hasClass("et_pb_toggle_close")?"closed":"opened";if(s){if(i.hasClass("et_pb_toggle_open")||c)return!1;r.addClass("et_pb_accordion_toggling"),t=i.siblings(".et_pb_toggle_open")}if(!o.is(":animated")&&(o.slideToggle(700,(function(){!function(t,e,n){"closed"===t?e.removeClass("et_pb_toggle_close").addClass("et_pb_toggle_open"):e.removeClass("et_pb_toggle_open").addClass("et_pb_toggle_close"),n.hasClass("et_pb_section_parallax")&&!n.children().hasClass("et_pb_parallax_css")&&et_parallax_set_height.bind(n)(),window.et_reinit_waypoint_modules()}(d,i,a)})),s)){var p=function(){t.removeClass("et_pb_toggle_open").addClass("et_pb_toggle_close"),r.removeClass("et_pb_accordion_toggling"),e=i.offset(),n("#wpadminbar").length&&(_+=n("#wpadminbar").height()),n("#top-header").length&&(_+=n("#top-header").height()),n("#main-header").length&&!window.et_is_vertical_nav&&(_+=n("#main-header").height()),l+_>e.top&&n("html, body").animate({scrollTop:e.top-_-50})};t.find(".et_pb_toggle_content").is(":visible")?t.find(".et_pb_toggle_content").slideToggle(700,p):(t.find(".et_pb_toggle_content").hide(),p())}}));var bt=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,vt=n(".et_pb_contact_form_container"),mt=!d.isBuilder&&n(".et_pb_module.et_pb_recaptcha_enabled").length>0,gt=document.body.innerHTML.match(/<script [^>]*src="[^"].*google.com\/recaptcha\/api.js\?.*render.*"[^>]*>([\s\S]*?)<\/script>/gim),wt=n("#et-recaptcha-v3-js"),yt=gt&&gt.length>wt.length;function xt(t){var e=t||k;e&&e.length&&e.each((function(){var t=n(this).parent(".et_pb_section"),e=n(this).find(".et_pb_slide"),i=e.find(".et_pb_container"),a=0,o=0,r=n(this).hasClass("et_pb_post_slider_image_top"),s=n(this).hasClass("et_pb_post_slider_image_bottom");if(t.is(".et_pb_section_first"))return!0;i.css("height",""),e.addClass("et_pb_temp_slide"),"object"===u(n(this).data("et_pb_simple_slider"))&&n(this).data("et_pb_simple_slider").et_fix_slider_content_images(),e.each((function(){var t=parseFloat(n(this).innerHeight()),e=n(this).find(".et_pb_slide_image"),i=parseFloat(n(this).data("adjustedHeight")),c=isNaN(i)?0:i;t=c&&c<t?t-c:t,(r||s)&&(e.length?(o=r?parseFloat(e.css("margin-top")):parseFloat(e.css("margin-bottom")),o+=10):n(this).find(".et_pb_container").addClass("et_pb_no_image")),0!==n(this).find(".et_pb_slide_description").length&&0!==n(this).find(".et_pb_slide_description").html().trim().length||n(this).find(".et_pb_container").addClass("et_pb_empty_slide"),a<t&&(a=t)})),a+o<1?i.css("height",""):i.css("height","".concat(a+o,"px")),e.removeClass("et_pb_temp_slide"),e.filter(".et-pb-active-slide").find(".et_pb_slide_image").children("img").addClass("active")}))}!d.isBuilder&&(yt||mt&&at&&at.isEnabled())&&n("body").addClass("et_pb_recaptcha_enabled"),vt.length&&vt.each((function(){var t=n(this),e=t.find("form"),i=void 0!==t.data("redirect_url")?t.data("redirect_url"):"";e.find("input[type=checkbox]").on("change",(function(){var t=n(this),e=t.siblings("input[type=text]").first(),i=t.prop("checked");e.val(i?e.data("checked"):e.data("unchecked"))})),e.on("submit",(function(e){e.preventDefault();var a=n(this);if(!0!==a.data("submitted")){var o=a.find('input[type=text], .et_pb_checkbox_handle, .et_pb_contact_field[data-type="radio"], textarea, select'),r=a.find(".et_pb_contact_captcha"),s=t.find(".et-pb-contact-message"),c=void 0!==t.data("form_unique_num")?t.data("form_unique_num"):0,l=!1,_="",d="",p=[],u=[],h=n.Deferred();at&&t.hasClass("et_pb_recaptcha_enabled")?at.interaction("Divi/Module/ContactForm/".concat(c)).then((function(t){h.resolve(t)})):h.resolve(""),n.when(h).done((function(e){if(_="<ul>",o.removeClass("et_contact_error"),o.each((function(){var t=n(this),e=!1;"checkbox"===t.data("field_type")&&(e=t.parents(".et_pb_contact_field")).removeClass("et_contact_error"),"radio"===t.data("type")&&(e=(t=t.find('input[type="radio"]')).parents(".et_pb_contact_field"));var i,a=t.attr("id"),o=t.val(),r=t.siblings("label").first().text(),s=void 0!==t.data("field_type")?t.data("field_type"):"text",c=void 0!==t.data("required_mark")?t.data("required_mark"):"not_required",f=void 0!==t.data("original_id")?t.data("original_id"):"",h=!1;if("radio"===s){if(0!==e.find('input[type="radio"]').length){s="radio";var b=e.find('input[type="radio"]').first();c=void 0!==b.data("required_mark")?b.data("required_mark"):"not_required",o="",e.find('input[type="radio"]:checked')&&(o=e.find('input[type="radio"]:checked').val())}r=e.find(".et_pb_contact_form_label").text(),a=e.find('input[type="radio"]').first().attr("name"),f=e.attr("data-id"),0===e.find('input[type="radio"]:checked').length&&(h=!0)}if("checkbox"===s){if(o="",0!==e.find('input[type="checkbox"]').length){s="checkbox";var v=e.find(".et_pb_checkbox_handle");c=void 0!==v.data("required_mark")?v.data("required_mark"):"not_required",e.find('input[type="checked"]:checked')&&(o=[],e.find('input[type="checkbox"]:checked').each((function(){o.push(n(this).val())})),o=o.join(", "))}if(e.find(".et_pb_checkbox_handle").val(o),0===(r=e.find(".et_pb_contact_form_label").text()).trim().length){var m=e.find('.et_pb_contact_field_checkbox input[type="checkbox"]');if(m.length>0){var g=[];m.each((function(){g.push(n(this).val())})),0===(r=g.join(", ")).trim().length&&(r=et_pb_custom.wrong_checkbox)}}a=e.find(".et_pb_checkbox_handle").attr("name"),f=e.attr("data-id"),0===e.find('input[type="checkbox"]:checked').length&&(h=!0)}if(r=r.replace(/"/g,"&quot;"),t.is(":visible")||!t.parents("[data-conditional-logic]").length||"hidden"===t.attr("type")||"radio"===t.attr("type"))if("hidden"!==t.attr("type")&&"radio"!==t.attr("type")||t.parents(".et_pb_contact_field").is(":visible")){if(void 0!==a&&p.push({field_id:a,original_id:f,required_mark:c,field_type:s,field_label:r}),"required"!==c||""!==o&&!0!==h||t.is('[id^="et_pb_contact_et_number_"]')||(!1===e?t.addClass("et_contact_error"):e.addClass("et_contact_error"),l=!0,""===(i=r)&&(i=et_pb_custom.captcha),d+="<li>".concat(i,"</li>")),"email"===s){var w=o.trim().toLowerCase(),y=function(t){if(6>t.length)return!1;if(!1===function(t,e,n){var i=(t+"").indexOf("@",1);return-1!==i&&i}(t))return!1;var e=t.split("@",2),n=e[0],i=e[1];if(!/^[a-zA-Z0-9!#$%&\'*+\/=?^_`{|}~\.-]+$/.test(n))return!1;if(/\.{2,}/.test(i))return!1;if(s(i," \t\n\r\0\v.")!==i)return!1;var a=i.split(".");if(2>a.length)return!1;for(var o in a){var r=a[o];if(s(r," \t\n\r\0\v-")!==r)return!1;if(!/^[a-z0-9-]+$/i.test(r))return!1}return!0;function s(t,e){var n=[" ","\n","\r","\t","\f","\v","\xa0","\u2000","\u2001","\u2002","\u2003","\u2004","\u2005","\u2006","\u2007","\u2008","\u2009","\u200a","\u200b","\u2028","\u2029","\u3000"].join(""),i=0,a=0;for(t+="",e&&(n=(e+"").replace(/([[\]().?/*{}+$^:])/g,"$1")),i=t.length,a=0;a<i;a++)if(-1===n.indexOf(t.charAt(a))){t=t.substring(a);break}for(a=(i=t.length)-1;a>=0;a--)if(-1===n.indexOf(t.charAt(a))){t=t.substring(0,a+1);break}return-1===n.indexOf(t.charAt(0))?t:""}}(w);""===w||r===w||y||(t.addClass("et_contact_error"),l=!0,y||(_+="<li>".concat(et_pb_custom.invalid,"</li>")))}}else u.push(f);else u.push(f)})),r.length&&""!==r.val()){var h=parseInt(r.data("first_digit")),b=parseInt(r.data("second_digit"));parseInt(r.val())!==h+b&&(_+="<li>".concat(et_pb_custom.wrong_captcha,"</li>"),l=!0,h=Math.floor(15*Math.random()+1),b=Math.floor(15*Math.random()+1),r.data("first_digit",h),r.data("second_digit",b),r.val(""),a.find(".et_pb_contact_captcha_question").empty().append("".concat(h," + ").concat(b)))}if(!l){a.data("submitted",!0);var v=a.attr("action"),m=a.serializeArray();m.push({name:"et_pb_contact_email_fields_".concat(c),value:JSON.stringify(p)}),m.push({name:"token",value:e}),u.length>0&&m.push({name:"et_pb_contact_email_hidden_fields_".concat(c),value:JSON.stringify(u)}),t.removeClass("et_animated").removeAttr("style").fadeTo("fast",.2,(function(){t.load("".concat(v," #").concat(t.attr("id"),"> *"),m,(function(e,a){if("error"===a){var o=n("#".concat(t.attr("id")),e);o.length>0&&t.html(o)}n(e).find(".et_pb_contact_error_text").length||(St(t,"con_goal"),""!==i&&(window.location.href=i)),t.fadeTo("fast",1)}))}))}_+="</ul>",""!==d&&("<ul></ul>"!==_&&(_='<p class="et_normal_padding">'.concat(et_pb_custom.contact_error_message,"</p>").concat(_)),d="<ul>".concat(d,"</ul>"),d="<p>".concat(et_pb_custom.fill_message,"</p>").concat(d),_=d+_),"<ul></ul>"!==_&&(s.html(_),t.parents(".et_pb_section_parallax").length&&t.parents(".et_pb_section_parallax").each((function(){!n(this).children(".et_parallax_bg").hasClass("et_pb_parallax_css")&&f.trigger("resize")})))}))}}))})),window.et_pb_play_overlayed_video=function(t){var e,i,a,o=t,r=o.closest(".et_pb_video_overlay"),s=o.closest(".et_pb_video, .et_main_video_container, .et_pb_video_wrap"),c=s.find("iframe"),l=c.length>0,_=s.find(".fb-video").length;if(l){if(_&&void 0!==c[2]&&(c=n(c[2])),i=(e=c.attr("src")).split("?"),-1!==e.indexOf("autoplay="))return;a=void 0!==i[1]?"".concat(i[0],"?autoplay=1&amp;").concat(i[1]):"".concat(i[0],"?autoplay=1"),c.attr({src:a})}else s.find("video").get(0).play();r.fadeTo(500,0,(function(){n(this).css("display","none")}))},n("body").on("click",".et_pb_post .et_pb_video_overlay, .et_pb_video .et_pb_video_overlay, .et_pb_video_wrap .et_pb_video_overlay",(function(){var t=n(this);return et_pb_play_overlayed_video(t),!1})),window.et_pb_resize_section_video_bg=function(t){(void 0!==t?t.closest(".et_pb_section_video_bg"):n(".et_pb_section_video_bg")).each((function(){var t=n(this);x(t)&&(t.removeAttr("data-ratio"),t.find("video").removeAttr("style"));var e,i,a=t.find("video"),o=(a.prop("videoWidth")||parseInt(a.width()))/(a.prop("videoHeight")||parseInt(a.height())),r=t.find(".mejs-video, video, object").css("margin","0px"),s=t.closest(".et_pb_section_video").length?t.closest(".et_pb_section_video"):t.closest(".et_pb_slides"),c=s.innerWidth(),l=s.innerHeight();void 0!==t.attr("data-ratio")||isNaN(o)||t.attr("data-ratio",o),c/l<o?(e=l*o,i=l):(e=c,i=c/o),r.width(e).height(i),d.isBuilder&&setTimeout((function(){r.width(e).height(i)}),0)}))},window.et_pb_center_video=function(t){var e=void 0!==t?t:n(".et_pb_section_video_bg .mejs-video");e.length&&e.each((function(){var e=n(this);if(et_pb_adjust_video_margin(e),x(e)&&setTimeout((function(){et_pb_adjust_video_margin(e)}),0),void 0!==t&&t.closest(".et_pb_slider").length&&!t.closest(".et_pb_first_video").length)return!1}))},window.et_pb_adjust_video_margin=function(t){var e=0-t.width()/2;t.css("margin-left","".concat(e,"px"))};var Ct={};function kt(){var t=n(window).width();n(".nav li.et-reverse-direction-nav").removeClass("et-reverse-direction-nav"),n(".nav li li ul").each((function(){var e=n(this),i=e.width(),a=e.offset(),o=e.parents(".nav > li");a.left>t-i&&o.addClass("et-reverse-direction-nav")}))}function jt(t,e,n){n=n||t.data("et_waypoint_max_instances")||1;var i=t.data("et_waypoint")||[],a=(0,r.default)(window,["et_pb_custom","waypoints_options"]);if(a){var s=(0,r.default)(a,"context",[]);s&&(0,o.default)(s)&&(0,c.default)(s,(function(n){var i=t.closest(n);if(i.length>0)return e.context=i,!1}))}if(i.length<n){var l=t.waypoint(e);l&&l.length>0&&(i.push(l[0]),t.data("et_waypoint",i))}else for(var _=0;_<i.length;_++)i[_].context.refresh()}function Tt(t,e){var i=t.parents(".et_pb_section").index(),a=n(".et_pb_section").length-1,o=t.parents(".et_pb_row").index(),r=t.parents(".et_pb_section").children().length-1;return i===a&&o===r?"bottom-in-view":e}function Ot(t){for(var e=!1,n=[".et_pb_toggle_title",".mejs-container *",".et_pb_contact_field input",".et_pb_contact_field textarea",".et_pb_contact_field_checkbox *",".et_pb_contact_field_radio *",".et_pb_contact_captcha",".et_pb_tabs_controls a",".flex-control-nav *",".et_pb_menu__search-button",".et_pb_menu__close-search-button",".et_pb_menu__search-container *",".et_pb_fullwidth_header_scroll *"],i=0;i<n.length;i++)if(t.is(n[i])){e=!0;break}return e}function St(t,e,n){if(!d.isBuilder){var i=function(t){var e=t.attr("class"),n=parseInt(e.replace(/^.*et_pb_ab_goal_id-(\d+).*$/,"$1"));return isNaN(n)?0:n}(t),a=void 0===e?"con_goal":e;t.hasClass("et_pb_ab_goal")&&!nt[i][a]?Pt(a,i):void 0!==n&&n()}}function Pt(t,e,i,a,o){var r=void 0===e?et_pb_custom.page_id:e,c=void 0===i?zt(r):i,l=void 0===a?function(t){for(var e=0;e<et_pb_custom.ab_tests;e++)if(et_pb_custom.ab_tests[e].post_id===t)return et_pb_custom.ab_tests[e].test_id;return et_pb_custom.unique_test_id}(r):a,_=JSON.stringify({test_id:r,subject_id:c,record_type:t}),d="click_goal"===t||"con_short"===t?"":c;Mt(365,"et_pb_ab_".concat(t,"_").concat(r).concat(l).concat(d,"=true")),(0,s.default)(nt,[r,t],!0),n.ajax({type:"POST",url:et_pb_custom.ajaxurl,data:{action:"et_pb_update_stats_table",stats_data_array:_,et_ab_log_nonce:et_pb_custom.et_ab_log_nonce}}).always((function(){void 0!==o&&o()}))}function zt(t){var e=n("*[class*=et_pb_ab_subject_id-".concat(t,"_]"));return!(e.length<=0||n("html").is(".et_fb_preview_active--wireframe_preview"))&&e.attr("class").split("et_pb_ab_subject_id-")[1].split(" ")[0].split("_")[1]}function It(t){return n(".et_pb_ab_goal_id-".concat(t))}function At(){var t=f.width(),e="desktop";return t<=980&&t>767?e="tablet":t<=767&&(e="phone"),e}function Et(t,e){return Bt(t)==e}function Bt(t){return function(){for(var t=document.cookie.split("; "),e={},n=t.length-1;n>=0;n--){var i=t[n].split("=");e[i[0]]=i[1]}return e}()[t]}function Mt(t,e){var n,i,a=(n=24*t*60*60*1e3,(i=new Date).setTime(i.getTime()+n),"; expires=".concat(i.toUTCString()));document.cookie="".concat(e+a,"; path=/")}function Ht(){if(!window.et_is_fixed_nav)return 0;var t=void 0===n("#main-header").attr("data-fixed-height-onload")?0:n("#main-header").attr("data-fixed-height-onload");return window.et_is_fixed_nav?parseFloat(t):0}window.et_fix_slider_height=d.isBuilder?function(t){var e=t||k;if(e&&e.length){var n=e.data("address");Ct[n]||(Ct[n]=window.et_pb_debounce(xt,100)),Ct[n](t)}}:xt,kt(),et_pb_form_placeholders_init(n(".et_pb_comments_module #commentform")),n(".et-menu-nav ul.nav").each((function(t){et_duplicate_menu(n(this),n(this).closest(".et_pb_module").find("div .mobile_nav"),"mobile_menu".concat(t+1),"et_mobile_menu")})),n(".et_pb_menu, .et_pb_fullwidth_menu").each((function(){var t=n(this),e=t.data("bg_color");e&&t.find("ul").css({"background-color":e})})),P.on("click",(function(t){et_pb_submit_newsletter(n(this),t)})),z.on("keypress",(function(t){if(13===(t.which||t.keyCode)){var e=n(this).closest("form").find(".et_pb_newsletter_button");et_pb_submit_newsletter(e,t)}})),P.closest(".et_pb_newsletter").find("input[type=checkbox]").on("change",(function(){var t=n(this),e=t.siblings("input[type=text]").first(),i=t.prop("checked");e.val(i?e.data("checked"):e.data("unchecked"))})),window.et_pb_submit_newsletter=function(t,e){if(t.closest(".et_pb_login_form").length)St(t.closest(".et_pb_newsletter"),"con_goal");else{if(void 0!==e&&e.preventDefault(),n(".et_pb_feedburner_form").length>0){var i=n(".et_pb_feedburner_form input[name=uri]").val();return window.open("https://feedburner.google.com/fb/a/mailverify?uri=".concat(i),"et-feedburner-subscribe","scrollbars=yes,width=550,height=520"),!0}var a=t.closest(".et_pb_newsletter"),o=a.find('input[name="et_pb_signup_firstname"]'),r=a.find('input[name="et_pb_signup_lastname"]'),s=a.find('input[name="et_pb_signup_email"]'),c=a.find('input[name="et_pb_signup_list_id"]').val(),l=a.find(".et_pb_newsletter_error").hide(),_=a.find('input[name="et_pb_signup_provider"]').val(),d=a.find('input[name="et_pb_signup_account_name"]').val(),p=a.find('input[name="et_pb_signup_ip_address"]').val(),u=a.find('input[name="et_pb_signup_checksum"]').val(),h=a.find(".et_pb_newsletter_fields"),b=a.find(".et_pb_newsletter_success"),v=a.data("redirect_url"),m=a.data("redirect_query"),g={},w=[],y="<ul>",x="",C=h.find('input[type=text], .et_pb_checkbox_handle, .et_pb_contact_field[data-type="radio"], textarea, select').filter(".et_pb_signup_custom_field, .et_pb_signup_custom_field *");o.removeClass("et_pb_signup_error"),r.removeClass("et_pb_signup_error"),s.removeClass("et_pb_signup_error"),C.removeClass("et_contact_error"),l.html("");var k=!0,j=t.closest(".et_pb_newsletter_form form");if(j.length>0&&"function"==typeof j[0].reportValidity&&(k=j[0].reportValidity()),o.length>0&&!o.val()&&(o.addClass("et_pb_signup_error"),k=!1),r.length>0&&!r.val()&&(r.addClass("et_pb_signup_error"),k=!1),bt.test(s.val())||(s.addClass("et_pb_signup_error"),k=!1),k){if(C.each((function(){var t=n(this),e=!1;["checkbox","booleancheckbox"].includes(t.data("field_type"))&&(e=t.parents(".et_pb_contact_field")).removeClass("et_contact_error"),"radio"===t.data("type")&&(e=(t=t.find('input[type="radio"]')).parents(".et_pb_contact_field"));var i,a=t.data("id"),o=t.val(),r=t.siblings("label").first().text(),s=void 0!==t.data("field_type")?t.data("field_type"):"text",c=void 0!==t.data("required_mark")?t.data("required_mark"):"not_required",l=void 0!==t.data("original_id")?t.data("original_id"):"",d=!1;if(a||(a=t.data("original_id")),"radio"===s){if(0!==e.find('input[type="radio"]').length){var p=e.find('input[type="radio"]').first();c=void 0!==p.data("required_mark")?p.data("required_mark"):"not_required",o="",e.find('input[type="radio"]:checked')&&(o=e.find('input[type="radio"]:checked').val())}r=e.find(".et_pb_contact_form_label").text(),a=t.data("original_id"),n.isEmptyObject(o)||(g[a]=o),0===e.find('input[type="radio"]:checked').length&&(d=!0),o&&(g[a]=o)}else if(["checkbox","booleancheckbox"].includes(s)){if(o={},0!==e.find('input[type="checkbox"]').length){var u=e.find(".et_pb_checkbox_handle");c=void 0!==u.data("required_mark")?u.data("required_mark"):"not_required",e.find('input[type="checked"]:checked')&&e.find('input[type="checkbox"]:checked').each((function(){if("booleancheckbox"===s)o=n(this).val();else{var t=n(this).data("id");o[t]=n(this).val()}}))}if(0===(r=e.find(".et_pb_contact_form_label").text()).trim().length){var f=e.find('.et_pb_contact_field_checkbox input[type="checkbox"]');if(f.length>0){var h=[];f.each((function(){h.push(n(this).val())})),0===(r=h.join(", ")).trim().length&&(r=et_pb_custom.wrong_checkbox)}}a=e.attr("data-id"),n.isEmptyObject(o)||(g[a]=o),0===e.find('input[type="checkbox"]:checked').length&&(d=!0)}else if("ontraport"===_&&"select"===s){var b=t.find(":selected");g[a]=b.length>0?b.data("id"):o}else g[a]=o;if("mailchimp"===_&&["select","radio"].indexOf(s)>-1){var v=(b="select"===s?t.find(":selected"):e.find('input[type="radio"]:checked')).length>0?b.data("id"):null;null!==v&&(g[a]={},g[a][v]=o)}if(r=r.replace(/"/g,"&quot;"),t.is(":visible")||"hidden"===t.attr("type")||"radio"===t.attr("type"))if("hidden"!==t.attr("type")&&"radio"!==t.attr("type")||t.parents(".et_pb_contact_field").is(":visible")){if("required"!==c||""!==o&&!0!==d||(!1===e?t.addClass("et_contact_error"):e.addClass("et_contact_error"),k=!1,""===(i=r)&&(i=et_pb_custom.captcha),x+="<li>".concat(i,"</li>")),"email"===s){var m=o.trim().toLowerCase(),C=bt.test(m);""===m||r===m||C||(t.addClass("et_contact_error"),k=!1,C||(y+="<li>".concat(et_pb_custom.invalid,"</li>")))}}else w.push(a);else w.push(l)})),y+="</ul>",""!==x&&("<ul></ul>"!==y&&(y='<p class="et_normal_padding">'.concat(et_pb_custom.contact_error_message,"</p>").concat(y)),x="<ul>".concat(x,"</ul>"),x="<p>".concat(et_pb_custom.fill_message,"</p>").concat(x),y=x+y),"<ul></ul>"!==y)return l.html(y).show(),void(a.parents(".et_pb_section_parallax").length&&a.parents(".et_pb_section_parallax").each((function(){!n(this).children(".et_parallax_bg").hasClass("et_pb_parallax_css")&&f.trigger("resize")})));var T=n.Deferred();at&&a.hasClass("et_pb_recaptcha_enabled")?at.interaction("Divi/Module/EmailOptin/List/".concat(c)).then((function(t){T.resolve(t)})):T.resolve(""),n.when(T).done((function(t){n.ajax({type:"POST",url:et_pb_custom.ajaxurl,dataType:"json",data:{action:"et_pb_submit_subscribe_form",et_frontend_nonce:et_pb_custom.et_frontend_nonce,et_list_id:c,et_firstname:o.val(),et_lastname:r.val(),et_email:s.val(),et_provider:_,et_account:d,et_ip_address:p,et_custom_fields:g,et_hidden_fields:w,token:t,et_checksum:u},beforeSend:function(){a.find(".et_pb_newsletter_button").addClass("et_pb_button_text_loading").find(".et_subscribe_loader").show()},complete:function(){a.find(".et_pb_newsletter_button").removeClass("et_pb_button_text_loading").find(".et_subscribe_loader").hide()},success:function(t){t?(t.error&&l.show().append("<h2>").text(t.error),t.success&&(v?St(a,"con_goal",(function(){var t=function(){var t={};return m?(o.length>0&&m.indexOf("name")>-1&&(t.first_name=o.val()),r.length>0&&m.indexOf("last_name")>-1&&(t.last_name=r.val()),m.indexOf("email")>-1&&(t.email=s.val()),m.indexOf("ip_address")>-1&&(t.ip_address=a.data("ip_address")),m.indexOf("css_id")>-1&&(t.form_id=a.attr("id")),decodeURIComponent(n.param(t))):""}();t.length&&(v.indexOf("?")>-1?v+="&":v+="?"),window.location=v+t})):(St(a,"con_goal"),a.find(".et_pb_newsletter_fields").hide(),b.show()))):l.html(et_pb_custom.subscription_failed).show()}})}))}}},window.et_fix_testimonial_inner_width=function(){var t=n(window).width();t>959?n(".et_pb_testimonial").each((function(){if(n(this).is(":visible")){var t=n(this),e=t.find(".et_pb_testimonial_portrait"),i=e.outerWidth(!0)||0,a=t.find(".et_pb_testimonial_description"),o=t.closest(".et_pb_column");i>90&&(e.css("padding-bottom","0px"),e.width("90px"),e.height("90px"));var r=o.hasClass("et_pb_column_1_3")||o.hasClass("et_pb_column_1_4")||o.hasClass("et_pb_column_1_5")||o.hasClass("et_pb_column_1_6")||o.hasClass("et_pb_column_2_5")||o.hasClass("et_pb_column_3_8")?0:i;a.css("margin-left","".concat(r,"px"))}})):t>767?n(".et_pb_testimonial").each((function(){if(n(this).is(":visible")){var t=n(this),e=t.find(".et_pb_testimonial_portrait").outerWidth(!0)||0,i=t.find(".et_pb_testimonial_description"),a=t.closest(".et_pb_column"),o=a.hasClass("et_pb_column_1_4")||a.hasClass("et_pb_column_1_5")||a.hasClass("et_pb_column_1_6")||a.hasClass("et_pb_column_2_5")||a.hasClass("et_pb_column_3_8")?0:e;i.css("margin-left","".concat(o,"px"))}})):n(".et_pb_testimonial_description").removeAttr("style")},window.et_fix_testimonial_inner_width(),window.et_pb_video_background_init=function(t,e){var n=t.closest(".et_pb_section_video_bg"),i=!1,a=!0;e.onplaying=function(){i=!0,a=!1},e.onpause=function(){i=!1,a=!0},jt(n,{offset:"100%",handler:function(o){var r=n.hasClass("et_pb_video_play_outside_viewport");t.is(":visible")&&"down"===o?e.paused&&!i&&e.play():t.is(":visible")&&"up"===o&&(e.paused||a||r||e.pause())}},2),jt(n,{offset:function(){var t=this.element.clientHeight,e=Math.ceil(window.innerHeight/2);return t>e&&(e=t),-1*e},handler:function(o){var r=n.hasClass("et_pb_video_play_outside_viewport");t.is(":visible")&&"up"===o?e.paused&&!i&&e.play():t.is(":visible")&&"down"===o&&(e.paused||a||r||e.pause())}},2)},window.et_animate_element=function(t){var e=t;if(!e.hasClass("et_had_animation")){var i=e.attr("data-animation-style"),a=e.attr("data-animation-repeat"),o=e.attr("data-animation-duration"),r=e.attr("data-animation-delay"),s=e.attr("data-animation-intensity"),c=e.attr("data-animation-starting-opacity"),l=e.attr("data-animation-speed-curve"),_=e.parent(".et_pb_button_module_wrapper"),d=n("body").hasClass("edge");e.is(".et_pb_section")&&"roll"===i&&n("".concat(et_frontend_scripts.builderCssContainerPrefix,", ").concat(et_frontend_scripts.builderCssLayoutPrefix)).css("overflow-x","hidden"),et_remove_animation_data(e);var p=isNaN(parseInt(c))?0:.01*parseInt(c);-1===n.inArray(l,["linear","ease","ease-in","ease-out","ease-in-out"])&&(l="ease-in-out"),_.length>0&&(e.removeClass("et_animated"),(e=_).addClass("et_animated")),e.css({"animation-duration":o,"animation-delay":r,opacity:p,"animation-timing-function":l}),"slideTop"!==i&&"slideBottom"!==i||e.css("left","0px");for(var u={},f=isNaN(parseInt(s))?50:parseInt(s),h=["slide","zoom","flip","fold","roll"],b=!1,v=!1,m=0;m<h.length;m++){var g=h[m];if(i&&i.substr(0,g.length)===g){b=g,""!==(v=i.substr(g.length,i.length))&&(v=v.toLowerCase());break}}if(!1!==b&&!1!==v&&(u=function(t,e,n){var i={};switch(t){case"slide":switch(e){case"top":i={transform:"translate3d(0, ".concat(-2*n,"%, 0)")};break;case"right":i={transform:"translate3d(".concat(2*n,"%, 0, 0)")};break;case"bottom":i={transform:"translate3d(0, ".concat(2*n,"%, 0)")};break;case"left":i={transform:"translate3d(".concat(-2*n,"%, 0, 0)")};break;default:i={transform:"scale3d(".concat(a=.01*(100-n),", ").concat(a,", ").concat(a,")")}}break;case"zoom":var a;i={transform:"scale3d(".concat(a=.01*(100-n),", ").concat(a,", ").concat(a,")")};break;case"flip":switch(e){case"right":var o=Math.ceil(.9*n);i={transform:"perspective(2000px) rotateY(".concat(o,"deg)")};break;case"left":o=-1*Math.ceil(.9*n),i={transform:"perspective(2000px) rotateY(".concat(o,"deg)")};break;case"top":default:o=Math.ceil(.9*n),i={transform:"perspective(2000px) rotateX(".concat(o,"deg)")};break;case"bottom":o=-1*Math.ceil(.9*n),i={transform:"perspective(2000px) rotateX(".concat(o,"deg)")}}break;case"fold":switch(e){case"top":o=-1*Math.ceil(.9*n),i={transform:"perspective(2000px) rotateX(".concat(o,"deg)")};break;case"bottom":o=Math.ceil(.9*n),i={transform:"perspective(2000px) rotateX(".concat(o,"deg)")};break;case"left":o=Math.ceil(.9*n),i={transform:"perspective(2000px) rotateY(".concat(o,"deg)")};break;default:o=-1*Math.ceil(.9*n),i={transform:"perspective(2000px) rotateY(".concat(o,"deg)")}}break;case"roll":switch(e){case"right":case"bottom":o=-1*Math.ceil(3.6*n),i={transform:"rotateZ(".concat(o,"deg)")};break;case"top":case"left":o=Math.ceil(3.6*n),i={transform:"rotateZ(".concat(o,"deg)")};break;default:o=Math.ceil(3.6*n),i={transform:"rotateZ(".concat(o,"deg)")}}}return i}(b,v,f)),n.isEmptyObject(u)||e.css(d?n.extend(u,{transition:"transform 0s ease-in"}):u),e.addClass("et_animated"),e.addClass("et_is_animating"),e.addClass(i),e.addClass(a),!a){var w=parseInt(o),y=parseInt(r);setTimeout((function(){et_remove_animation(e)}),w+y),d&&!n.isEmptyObject(u)&&setTimeout((function(){e.css("transition","")}),w+y+50)}}},window.et_process_animation_data=function(t){if("undefined"!=typeof et_animation_data&&et_animation_data.length>0){n("body").css("overflow-x","hidden"),n("#page-container").css("overflow-y","hidden");for(var e=0;e<et_animation_data.length;e++){var i=et_animation_data[e];if(i.class&&i.style&&i.repeat&&i.duration&&i.delay&&i.intensity&&i.starting_opacity&&i.speed_curve){var a=n(".".concat(i.class)),o=At(),r="desktop"===o;it=o;var s="";r||(s+="_".concat(o));var c=r||void 0===i["style".concat(s)]?i.style:i["style".concat(s)],l=r||void 0===i["repeat".concat(s)]?i.repeat:i["repeat".concat(s)],_=r||void 0===i["duration".concat(s)]?i.duration:i["duration".concat(s)],d=r||void 0===i["delay".concat(s)]?i.delay:i["delay".concat(s)],p=r||void 0===i["intensity".concat(s)]?i.intensity:i["intensity".concat(s)],u=r||void 0===i["starting_opacity".concat(s)]?i.starting_opacity:i["starting_opacity".concat(s)],f=r||void 0===i["speed_curve".concat(s)]?i.speed_curve:i["speed_curve".concat(s)];a.attr({"data-animation-style":c,"data-animation-repeat":"once"===l?"":"infinite","data-animation-duration":_,"data-animation-delay":d,"data-animation-intensity":p,"data-animation-starting-opacity":u,"data-animation-speed-curve":f}),!0===t?a.hasClass("et_pb_circle_counter")?(jt(a,{offset:"100%",handler:function(){var t=n(this.element).find(".et_pb_circle_counter_inner");t.data("PieChartHasLoaded")||void 0===t.data("easyPieChart")||(t.data("easyPieChart").update(t.data("number-value")),t.data("PieChartHasLoaded",!0),et_animate_element(n(this.element)))}}),jt(a,{offset:"bottom-in-view",handler:function(){var t=n(this.element).find(".et_pb_circle_counter_inner");t.data("PieChartHasLoaded")||void 0===t.data("easyPieChart")||(t.data("easyPieChart").update(t.data("number-value")),t.data("PieChartHasLoaded",!0),et_animate_element(n(this.element)))}})):a.hasClass("et_pb_number_counter")?(jt(a,{offset:"100%",handler:function(){n(this.element).data("easyPieChart").update(n(this.element).data("number-value")),et_animate_element(n(this.element))}}),jt(a,{offset:"bottom-in-view",handler:function(){n(this.element).data("easyPieChart").update(n(this.element).data("number-value")),et_animate_element(n(this.element))}})):jt(a,{offset:"100%",handler:function(){et_animate_element(n(this.element))}}):et_animate_element(a)}}}},window.et_has_animation_data=function(t){var e=!1;if("undefined"!=typeof et_animation_data&&et_animation_data.length>0)for(var n=0;n<et_animation_data.length;n++){var i=et_animation_data[n];if(i.class&&t.hasClass(i.class)){e=!0;break}}return e},window.et_get_animation_classes=function(){return["et_animated","et_is_animating","infinite","et-waypoint","fade","fadeTop","fadeRight","fadeBottom","fadeLeft","slide","slideTop","slideRight","slideBottom","slideLeft","bounce","bounceTop","bounceRight","bounceBottom","bounceLeft","zoom","zoomTop","zoomRight","zoomBottom","zoomLeft","flip","flipTop","flipRight","flipBottom","flipLeft","fold","foldTop","foldRight","foldBottom","foldLeft","roll","rollTop","rollRight","rollBottom","rollLeft","transformAnim"]},window.et_remove_animation=function(t){if(!t.hasClass("infinite")){var e=et_get_animation_classes();t.is(".et_pb_section")&&t.is(".roll")&&n("".concat(et_frontend_scripts.builderCssContainerPrefix,", ").concat(et_frontend_scripts.builderCssLayoutPrefix)).css("overflow-x",""),t.removeClass(e.join(" ")),t.css({"animation-delay":"","animation-duration":"","animation-timing-function":"",opacity:"",transform:"",left:""}),t.addClass("et_had_animation")}},window.et_remove_animation_data=function(t){var e=[];if(!(0,a.default)(t.get(0))){for(var i=t.get(0).attributes,o=0;o<i.length;o++)"data-animation-"===i[o].name.substring(0,15)&&e.push(i[o].name);n.each(e,(function(e,n){t.removeAttr(n)}))}},window.et_reinit_waypoint_modules=et_pb_debounce((function(){var t=n(".et_pb_circle_counter"),e=n(".et_pb_number_counter"),a=n(".et_pb_section_video_bg video");if(n.fn.waypoint&&window.et_pb_custom&&"yes"!==window.et_pb_custom.ignore_waypoints&&!d.isBuilder)et_process_animation_data(!0),n(".et-waypoint").each((function(){jt(n(this),{offset:Tt(n(this),"100%"),handler:function(){n(this.element).addClass("et-animated")}},2)})),t.length&&t.each((function(){var t=n(this).find(".et_pb_circle_counter_inner");t.is(":visible")&&!et_has_animation_data(t)&&jt(t,{offset:Tt(n(this),"100%"),handler:function(){t.data("PieChartHasLoaded")||void 0===t.data("easyPieChart")||i||(t.data("easyPieChart").update(t.data("number-value")),t.data("PieChartHasLoaded",!0))}},2)})),e.length&&e.each((function(){var t=n(this);et_has_animation_data(t)||jt(t,{offset:Tt(n(this),"100%"),handler:function(){t.data("easyPieChart").update(t.data("number-value"))}})})),d.isBuilder||n.each(et_pb_custom.ab_tests,(function(t,e){var i=It(e.post_id);if(0===i.length)return!0;jt(i,{offset:Tt(n(this),"80%"),handler:function(){!nt[e.post_id].read_goal&&i.length&&i.visible(!0)&&(setTimeout((function(){i.length&&i.visible(!0)&&!nt[e.post_id].read_goal&&Pt("read_goal",e.post_id,void 0,e.test_id)}),3e3),St(i,"view_goal"))}})}));else{et_process_animation_data(!1);var o=d.isBuilder?"et-animated--vb":"et-animated";n(".et-waypoint").addClass(o),n(".et-waypoint").each((function(){et_animate_element(n(this))})),t.length&&t.each((function(){var t=n(this).find(".et_pb_circle_counter_inner");t.is(":visible")&&(t.data("PieChartHasLoaded")||void 0===t.data("easyPieChart")||(t.data("easyPieChart").update(t.data("number-value")),t.data("PieChartHasLoaded",!0)))})),e.length&&e.each((function(){var t=n(this);t.data("easyPieChart").update(t.data("number-value"))})),n.each(et_pb_custom.ab_tests,(function(t,e){var n=It(e.post_id);return 0===n.length||!(!nt[e.post_id].read_goal&&n.length&&n.visible(!0))||(setTimeout((function(){n.length&&n.visible(!0)&&!nt[e.post_id].read_goal&&Pt("read_goal",e.post_id,void 0,e.test_id)}),3e3),void St(n,"view_goal"))}))}a.length&&a.each((function(){var t=n(this);et_pb_video_background_init(t,this)}))}),100),"undefined"!=typeof et_link_options_data&&et_link_options_data.length>0&&n.each(et_link_options_data,(function(t,e){if(e.class&&e.url&&e.target){var i=n(".".concat(e.class));i.on("click",(function(t){if(t.target!==t.currentTarget&&!Ot(n(t.target))||t.target===t.currentTarget){t.stopPropagation();var i=e.url;if(i=(i=i.replace(/&#91;/g,"[")).replace(/&#93;/g,"]"),"_blank"===e.target)return void window.open(i);if("#product_reviews_tab"===i){var a=n(".reviews_tab a");a.length>0&&(a.trigger("click"),et_pb_smooth_scroll(a,void 0,800),history.pushState(null,"",i))}else i&&"#"===i[0]&&n(i).length?(et_pb_smooth_scroll(n(i),void 0,800),history.pushState(null,"",i)):window.location=i}})),i.on("click","a, button",(function(t){Ot(n(this))||t.stopPropagation()}))}}));var Ft={},Lt={};function Dt(){if(n.fn.fitVids){var t="iframe[src^='http://www.hulu.com'], iframe[src^='http://www.dailymotion.com'], iframe[src^='http://www.funnyordie.com'], iframe[src^='https://embed-ssl.ted.com'], iframe[src^='http://embed.revision3.com'], iframe[src^='https://flickr.com'], iframe[src^='http://blip.tv'], iframe[src^='http://www.collegehumor.com']",e="";(0,a.default)(window.lazySizes)||(t+=", iframe[src^='data:image']",e+=".lazyloading"),n(".et_pb_slide_video").fitVids(),n(".et_pb_module").fitVids({customSelector:t,ignore:e})}xt(),et_calculate_fullscreen_section_size()}function Wt(){et_fix_fullscreen_section(),et_calculate_fullscreen_section_size(),n(document).on("click",".et_pb_fullwidth_header_scroll a",et_pb_fullwidth_header_scroll),setTimeout((function(){n(".et_pb_preload").removeClass("et_pb_preload")}),500),window.HashChangeEvent&&(n(window).on("hashchange",(function(){!function(t){var i,a,o;if(t.length)if(-1!==t.indexOf(e,0)){i=t.split(e);for(var r=0;r<i.length;r++)o=(a=i[r].split(l))[0],a.shift(),o.length&&n("#".concat(o)).length&&n("#".concat(o)).trigger({type:"et_hashchange",params:a})}else o=(a=t.split(l))[0],a.shift(),o.length&&n("#".concat(o)).length&&n("#".concat(o)).trigger({type:"et_hashchange",params:a})}(window.location.hash.replace(/[^a-zA-Z0-9-_|]/g,""))})),n(window).trigger("hashchange")),W.length&&!N&&W.each((function(){et_pb_parallax_init(n(this))})),window.et_reinit_waypoint_modules(),n(".et_audio_content").length&&n(window).trigger("resize")}function qt(){setTimeout((function(){(window.et_pb_box_shadow_elements||[]).map(et_pb_box_shadow_apply_overlay)}),0)}function Nt(t,e){var i=n(window).width()>980,a=window.et_is_fixed_nav,o=n("#wpadminbar"),r=o.length&&i?o.height():0,s=n("#top-header"),c=s.length&&a&&i?s.height():0,l=n("#main-header"),_=r+c+(l.length&&a&&i?l.height():0),d=t.offset().top-_-50;void 0!==t.find(".et_pb_salvattore_content").attr("data-columns")&&(e||salvattore.registerGrid(t.find(".et_pb_salvattore_content")[0]),salvattore.recreateColumns(t.find(".et_pb_salvattore_content")[0]),t.find(".et_pb_post").css({opacity:"1"})),t.find(".et_audio_container").length>0&&"undefined"!=typeof wp&&void 0!==wp.mediaelement&&"function"==typeof wp.mediaelement.initialize&&(wp.mediaelement.initialize(),n(window).trigger("resize")),t.find(".et-waypoint, .et_pb_circle_counter, .et_pb_number_counter").length>0&&t.find(".et-waypoint, .et_pb_circle_counter, .et_pb_number_counter").each((function(){var t=n(this);t.hasClass("et_pb_circle_counter")&&window.et_pb_reinit_circle_counters(t),t.hasClass("et_pb_number_counter")&&window.et_pb_reinit_number_counters(t),t.find(".et_pb_counter_amount").length>0&&t.find(".et_pb_counter_amount").each((function(){window.et_bar_counters_init(n(this))})),n(this).css({opacity:"1"}),window.et_reinit_waypoint_modules()})),t.find(".et_pb_slider").length>0&&t.find(".et_pb_slider").each((function(){et_pb_slider_init(n(this))})),t.on("click",".et_pb_video_overlay",(function(t){t.preventDefault(),et_pb_play_overlayed_video(n(this))})),t.fitVids({customSelector:"iframe[src^='http://www.hulu.com'], iframe[src^='http://www.dailymotion.com'], iframe[src^='http://www.funnyordie.com'], iframe[src^='https://embed-ssl.ted.com'], iframe[src^='http://embed.revision3.com'], iframe[src^='https://flickr.com'], iframe[src^='http://blip.tv'], iframe[src^='http://www.collegehumor.com']"}),t.fadeTo("slow",1),"function"==typeof window.et_shortcodes_init&&window.et_shortcodes_init(t),T(),n("html, body").animate({scrollTop:d});var p=t.find(".et_pb_grid_item");p.length&&et_pb_set_responsive_grid(n(p.parent().get(0)),".et_pb_grid_item")}window.et_calc_fullscreen_section=function(t,e){var i="object"===u(t)&&"resize"===t.type,a=n(p),o=e||n(this),r=o.index(".et_pb_fullscreen"),s=i&&void 0!==Ft[r]&&t.target.window_width>Ft[r]?800:0;Ft[r]=a.width(),void 0!==Lt[r]&&clearTimeout(Lt[r]),Lt[r]=setTimeout((function(){var t=n("body"),e=n(".et-l--header").first(),i=e.length>0?e.height():0,r=o.length,s=o.index(".et_pb_fullwidth_header"),c=r?o.offset():{},l=o.children(".et_pb_fullwidth_header_container"),_=l.children(".header-content-container"),d=l.children(".header-image-container"),u=p.innerHeight||a.height(),f=p.jQuery("#wpadminbar"),h=f.length,b=h?f.height():0,v=n("#top-header"),m=v.length,g=m?v.height():0,w=n("#main-header"),y=w.length,x=y?w.outerHeight():0,C=Ht(),k=a.width()<782,j=a.width()>980,T=(a.width()<=980&&a.width(),a.width(),b+i+g+(window.et_is_vertical_nav&&j?0:x)),O=void 0!==c.top&&c.top<=T,S=p.jQuery(".edit-post-header"),P=p.jQuery(".edit-post-layout__footer");w.attr("data-height-onload")&&(x=parseFloat(w.attr("data-height-onload"))),h&&(k?O&&(u-=b):u-=b),S.length>0&&(u-=S.outerHeight()),P.length>0&&(u-=P.outerHeight()),m&&j&&(Z&&!window.et_is_vertical_nav?O||(u-=g):!window.et_is_fixed_nav||window.et_is_vertical_nav?O&&(u-=g):u-=g),y&&(j?Z&&!window.et_is_vertical_nav?O||(u-=C):window.et_is_fixed_nav&&!window.et_is_vertical_nav?u-=O?x:C:window.et_is_fixed_nav||window.et_is_vertical_nav||O&&(u-=x):O&&(u-=x)),t.hasClass("et_transparent_nav")&&t.hasClass("et_hide_nav")&&0===s&&o.css("padding-top","");var z=parseInt(o.css("borderTopWidth"));z&&(u-=z);var I=parseInt(o.css("borderBottomWidth"));if(I&&(u-=I),i>0&&0===s&&0===o.closest(e).length&&(u-=i),setTimeout((function(){o.css("min-height","".concat(u,"px")),l.css("min-height","".concat(u,"px"))}),100),l.hasClass("center")&&_.hasClass("bottom")&&d.hasClass("bottom")&&l.addClass("bottom-bottom"),l.hasClass("center")&&_.hasClass("center")&&d.hasClass("center")&&l.addClass("center-center"),l.hasClass("center")&&_.hasClass("center")&&d.hasClass("bottom")){l.addClass("center-bottom");var A=u-d.outerHeight(!0);A>0&&_.css("min-height","".concat(A,"px")).css("height","10px")}l.hasClass("center")&&_.hasClass("bottom")&&d.hasClass("center")&&l.addClass("bottom-center"),(l.hasClass("left")||l.hasClass("right"))&&!_.length&&d.length&&l.css("justify-content","flex-end"),l.hasClass("center")&&_.hasClass("bottom")&&!d.length&&_.find(".header-content").css("margin-bottom","".concat(80,"px")),_.hasClass("bottom")&&d.hasClass("center")&&(d.find(".header-image").css("margin-bottom","".concat(80,"px")),d.css("align-self","flex-end"));var E=0;_.length&&(E+=_.outerHeight()),d.length&&(E+=d.outerHeight()),E>u&&(o.css("min-height","".concat(E,"px")),l.css("min-height","".concat(E,"px"))),d.hasClass("bottom")&&(E<u&&(o.css("min-height","".concat(E+80,"px")),l.css("min-height","".concat(E+80,"px"))),l.css("justify-content","flex-end"))}),s)},d.isBuilder||(h.on("resize",et_calculate_fullscreen_section_size),h.on("et-pb-header-height-calculated",et_calculate_fullscreen_section_size)),window.debounced_et_apply_builder_css_parallax=et_pb_debounce(et_apply_builder_css_parallax,100),window.et_pb_parallax_init=function(t){var e=t.parent();t.hasClass("et_pb_parallax_css")?(n("body").hasClass("et-fb")||v||i)&&(et_apply_builder_css_parallax.bind(e)(),v?p.jQuery("#et-fb-app").on("scroll.etCssParallaxBackground",et_apply_builder_css_parallax.bind(e)).on("resize.etCssParallaxBackground",window.debounced_et_apply_builder_css_parallax.bind(e)):n(window).on("scroll.etCssParallaxBackground",et_apply_builder_css_parallax.bind(e)).on("resize.etCssParallaxBackground",window.debounced_et_apply_builder_css_parallax.bind(e))):(et_parallax_set_height.bind(e)(),et_apply_parallax.bind(e)(),v?p.jQuery("#et-fb-app").on("scroll.etTrueParallaxBackground",et_apply_parallax.bind(e)):n(window).on("scroll.etTrueParallaxBackground",et_apply_parallax.bind(e)),n(window).on("resize.etTrueParallaxBackground",et_pb_debounce(et_parallax_set_height,100).bind(e)),n(window).on("resize.etTrueParallaxBackground",et_pb_debounce(et_apply_parallax,100).bind(e)),e.find(".et-learn-more .heading-more").on("click",(function(){setTimeout((function(){et_parallax_set_height.bind(e)()}),300)})))},n(window).on("resize",(function(){var t=f.width(),e=Q.css("width"),i=void 0!==e&&"%"!==e.substr(-1,1)?Q.width():Q.width()/100*t,a=U!==i,o=n(".et_pb_top_inside_divider, .et_pb_bottom_inside_divider");if(et_pb_resize_section_video_bg(),et_pb_center_video(),xt(),kt(),O(),A.each((function(){var t=!!n(this).hasClass("et_pb_fullwidth_portfolio_carousel");pt(n(this),t)})),a||window.et_force_width_container_change){n(".container-width-change-notify").trigger("containerWidthChanged"),setTimeout((function(){I.each((function(){window.set_filterable_grid_items(n(this))})),E.each((function(){n(this).hasClass("et_pb_gallery_grid")&&set_gallery_grid_items(n(this))}))}),100),U=i;var r=n(".et_pb_circle_counter");r.length&&r.each((function(){var t=n(this).find(".et_pb_circle_counter_inner");if(t.is(":visible")){void 0===t.data("easyPieChart")&&window.et_pb_circle_counter_init(t);var e=At();it=e;var i="desktop"!==e?"-".concat(e):"",a=t.data("bar-bg-color".concat(i));void 0!==a&&""!==a&&(t.data("easyPieChart").options.barColor=a);var o=t.data("color".concat(i));void 0!==o&&""!==o&&(t.data("easyPieChart").options.trackColor=o,t.trigger("containerWidthChanged"));var r=t.data("alpha".concat(i));void 0!==r&&""!==r&&(t.data("easyPieChart").options.trackAlpha=r,t.trigger("containerWidthChanged")),t.data("easyPieChart").update(t.data("number-value"))}})),B.length&&B.each((function(){var t=n(this);et_countdown_timer_labels(t)})),window.et_force_width_container_change=!1}window.et_fix_testimonial_inner_width(),J.length&&J.each((function(){window.et_bar_counters_init(n(this))})),d.isBuilder&&At()!==it&&et_process_animation_data(!1),(F.length||d.isBuilder)&&function(t){if(At()===it)return!1;t.each((function(){var t=n(this),e=t.data("map");if(void 0!==e){var i=At();it=i;var a="desktop"!==i?"-".concat(i):"",o="phone"===i?"-tablet":"",r=t.attr("data-grayscale".concat(a))||0;r||(r=t.attr("data-grayscale".concat(o))||t.attr("data-grayscale")||0),0!==r&&(r="-".concat(r.toString())),e.setOptions({styles:[{stylers:[{saturation:parseInt(r)}]}]})}}))}(F),(ot.length||d.isBuilder)&&n(ot).each((function(){window.et_pb_set_responsive_grid(n(this),".et_pb_grid_item")})),!d.isBuilder&&o.length&&o.each((function(){etFixDividerSpacing(n(this))}))})),d.isBuilder?n(window).one("et_fb_init_app_after",Dt):Dt(),window.et_pb_fullwidth_header_scroll=function(t){t.preventDefault();var e=f.width(),i=n("body"),a=e<782,o=i.hasClass("et_transparent_nav"),r=i.hasClass("et_hide_nav"),s=e>980,c=n(this).parents("section"),l=c.offset(),_=n("#wpadminbar"),d=n("#main-header"),p=_.length&&!a?_.height():0,u=Y.length&&window.et_is_fixed_nav&&s?Y.height():0,h=void 0===d.attr("data-height-onload")?0:d.attr("data-height-onload"),b=d.height()===Ht()||!s||!window.et_is_fixed_nav||o||r?0:Ht()-parseFloat(h),v=l.top+c.outerHeight(!0)+b-(p+u+Ht());if(!g&&window.et_is_fixed_nav&&o){var m=d.clone().addClass("et-disabled-animations et-fixed-header").css("visibility","hidden").appendTo(i);v+=Ht()-m.height(),m.remove()}c.length&&n("html, body").animate({scrollTop:v},{duration:800})},window.et_load_event_fired?Wt():n(window).on("load",(function(){Wt()})),n(".et_section_specialty").length&&n(".et_section_specialty").each((function(){n(this).find(".et_pb_row").find(">.et_pb_column:not(.et_pb_specialty_column)").addClass("et_pb_column_single")})),n(".et_pb_section_parallax").length&&n(".et_pb_map").length&&n("body").addClass("parallax-map-support"),window.et_pb_custom&&n(".et_pb_widget_area ".concat(window.et_pb_custom.widget_search_selector)).each((function(){var t=n(this),e=t.find('input[type="submit"]'),i=e.attr("value"),a=t.find("button"),o=a.text(),r=!(!e.length&&!a.length);(t.find('input[type="text"]').length||t.find('input[type="search"]').length)&&(r||t.addClass("et-no-submit-button"),t.width()<150&&t.addClass("et-narrow-wrapper"),!e.length||void 0!==i&&""!==i||(e.remove(),t.addClass("et-no-submit-button")),!a.length||void 0!==o&&""!==o||(a.remove(),t.addClass("et-no-submit-button")))})),n("body").on("click",".et_pb_ajax_pagination_container .wp-pagenavi a,.et_pb_ajax_pagination_container .pagination a",(function(){var e,a=n(this),o=a.attr("href"),r=window.location.href,s=a.closest(".et_pb_module").attr("class").split(" "),c="",l=et_get_animation_classes();return window.et_pb_ajax_pagination_cache=window.et_pb_ajax_pagination_cache||[],n.each(s,(function(t,e){l.concat(["et_had_animation","lazyload","lazyloaded"]).includes(e)||""!==e.trim()&&(c+=".".concat(e))})),e=n(c),et_remove_animation(e),void 0!==window.et_pb_ajax_pagination_cache[o+c]?e.fadeTo("slow",.2,(function(){e.find(".et_pb_ajax_pagination_container").replaceWith(window.et_pb_ajax_pagination_cache[o+c]),Nt(e,!0),n(".et_pb_tabs").length&&window.et_pb_tabs_init(n(".et_pb_tabs")),qt()})):(void 0===window.et_pb_ajax_pagination_cache[r+c]&&(window.et_pb_ajax_pagination_cache[r+c]=e.find(".et_pb_ajax_pagination_container")),e.fadeTo("slow",.2,(function(){var a=function(i){var a=t(i),r=a.filter("#et-builder-module-design-cached-inline-styles"),s=a.find("".concat(c," .et_pb_ajax_pagination_container")).prepend(r);et_remove_animation(s.find(".et_animated")),e.find(".et_pb_ajax_pagination_container").replaceWith(s),window.et_pb_ajax_pagination_cache[o+c]=s,Nt(e,!1),n(".et_pb_tabs").length&&window.et_pb_tabs_init(n(".et_pb_tabs")),qt(),n(document.body).trigger("post-load")},r={url:o,success:a,error:function(e){404===e.status&&t("body.error404").length>0&&a(e.responseText)}};i&&(r.data={et_layout_block_layout_content:ETBlockLayoutModulesScript.layoutContent},r.method="POST"),t.ajax(r)}))),!1})),window.et_pb_search_init=function(t){var e=At();it=e;var n=t.find(".et_pb_s"),i=t.find(".et_pb_searchsubmit"),a=i.outerHeight(),o=n.innerHeight();i.css({position:"relative"}),a>o&&n.innerHeight(a),i.css({position:""})},window.et_pb_search_percentage_custom_margin_fix=function(t){var e=t.find(".et_pb_s").css("margin").split(" "),n={};switch(e.length){case 4:n={top:e[0],right:e[1],bottom:e[2],left:e[3]};break;case 2:n={top:e[0],right:e[1],bottom:e[0],left:e[1]};break;default:n={top:e[0],right:e[0],bottom:e[0],left:e[0]}}var i="".concat(0-parseFloat(n.left),"px");t.find(".et_pb_searchsubmit").css({top:n.top,right:i,bottom:n.bottom})},n(".et_pb_search").length&&n(".et_pb_search").each((function(){var t=n(this);t.is(".et_pb_search_percentage_custom_margin")&&et_pb_search_percentage_custom_margin_fix(t),et_pb_search_init(t)})),window.et_pb_comments_init=function(t){var e=t.find(".comment-reply-link, .submit");e.length&&(e.addClass("et_pb_button"),void 0!==t.attr("data-icon")&&""!==t.attr("data-icon")&&(e.attr("data-icon",t.attr("data-icon")),e.addClass("et_pb_custom_button_icon")),void 0!==t.attr("data-icon-tablet")&&""!==t.attr("data-icon-tablet")&&(e.attr("data-icon-tablet",t.attr("data-icon-tablet")),e.addClass("et_pb_custom_button_icon")),void 0!==t.attr("data-icon-phone")&&""!==t.attr("data-icon-phone")&&(e.attr("data-icon-phone",t.attr("data-icon-phone")),e.addClass("et_pb_custom_button_icon")))},n(".et_pb_comments_module").length&&n(".et_pb_comments_module").each((function(){var t=n(this);et_pb_comments_init(t)}));var $t=document.onreadystatechange||function(){};function Vt(t){t.find("[data-conditional-logic]").each((function(){for(var e=n(this),i=e.data("conditional-logic"),a=e.data("conditional-relation"),o=[],r=0;r<i.length;r++){var s,c=i[r],l=c[0],_=c[1],d=c[2],p=t.find('.et_pb_contact_field[data-id="'.concat(l,'"]')),u=(p.data("id"),p.data("type"));if(p.is(":visible")){switch(u){case"input":case"email":s=p.find("input").val();break;case"text":s=p.find("textarea").val();break;case"radio":s=p.find("input:checked").val()||"";break;case"checkbox":var f=p.find(":checkbox:checked");s=!1,f.each((function(){if(d===n(this).val())return s=!0,!1})),d=!0;break;case"select":s=p.find("select").val()}if("is empty"!==_&&"is not empty"!==_||(_="is empty"===_?"is":"is not",d="","checkbox"===u&&!1===s&&(s="")),s&&"string"==typeof s&&(s=s.replace(/\\(.)/g,"$1")),!("is"===_&&s!==d||"is not"===_&&s===d)){var h=new RegExp(d,"i");if("string"==typeof d&&(h=new RegExp(d.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&"),"i")),("contains"!==_||s.match(h))&&("does not contain"!==_||!s.match(h))){var b=parseInt(s),v=parseInt(d);("is greater"!==_&&"is less"!==_||!isNaN(b)&&!isNaN(v))&&("is greater"===_&&b<=v||"is less"===_&&b>=v||o.push(!0))}}}}e.hide();var m=e.find('input[type="text"]'),g=m.attr("pattern");m.attr("novalidate","novalidate"),m.attr("data-pattern",g),m.removeAttr("pattern"),"all"===a&&i.length===o.length&&(e.show(),m.removeAttr("novalidate"),m.attr("pattern",m.data("pattern"))),"any"===a&&0<o.length&&(e.show(),m.removeAttr("novalidate"),m.attr("pattern",m.data("pattern")))}))}if(document.onreadystatechange=function(){"complete"===document.readyState&&window.et_fix_pricing_currency_position(),$t()},n(".et_pb_contact_form_container, .et_pb_newsletter_custom_fields").each((function(){var t=n(this),e="input, textarea, select",i=function(){Vt(t)},a=et_pb_debounce(i,250);t.on("change",e,i),t.on("keydown",e,a),Vt(t)})),"undefined"!=typeof et_animation_data&&et_animation_data.length>0){for(var Rt=0,Qt=0;Qt<et_animation_data.length;Qt++){var Ut=et_animation_data[Qt];if(Ut.class){var Zt=n(".".concat(Ut.class));(Zt.hasClass("et_pb_menu")||Zt.hasClass("et_pb_fullwidth_menu"))&&Rt++}}n(".et_pb_menu, .et_pb_fullwidth_menu").each((function(){var t=n(this);t.on("webkitAnimationEnd oanimationend msAnimationEnd animationend",(function(){t.css("z-index",Rt-t.index(".et_pb_menu, .et_pb_fullwidth_menu"))}))}))}n(".et_pb_section_video_bg_hover").each((function(){var t=this,e=n(this).closest(".et_pb_section_video_on_hover"),i=!1;e.on("mouseover",(function(){i||(n(t).find(".mejs-video video").trigger("play"),i=!0)})),e.on("mouseleave",(function(){i=!1}))})),n(document).trigger("et_pb_after_init_modules"),window.et_pb_wrap_woo_attribute_fields_in_span(),window.et_pb_shop_add_hover_class=function(){n(".et_pb_shop").each((function(){n(this).find(".et_shop_image").on("mouseover",(function(){var t=n(this).parents().eq(1),e=t.find(".price"),i=t.find(".woocommerce-loop-product__title");e.addClass("hover"),i.addClass("hover")})).on("mouseout",(function(){var t=n(this).parents().eq(1),e=t.find(".price"),i=t.find(".woocommerce-loop-product__title");e.removeClass("hover"),i.removeClass("hover")}))}))},et_pb_shop_add_hover_class()})),window.et_load_event_fired?j():n(window).on("load",(function(){j()}))},window.etFixDividerSpacing=function(t){t.attr("style","");var e=t.css("backgroundSize").split(" "),n=e[0],i=e[1];if("string"==typeof n&&"string"==typeof i&&"100%"!==n&&"%"===n.substr(-1,1)){var a=parseFloat(t.outerWidth()),o=parseFloat(n)/100*a,r="".concat(parseInt(o),"px ").concat(i);t.css("backgroundSize",r)}},window.et_pb_custom&&window.et_pb_custom.is_ab_testing_active&&"yes"===window.et_pb_custom.is_cache_plugin_active){n(window).on("load",(function(){window.et_load_event_fired=!0}));var T=et_pb_custom.ab_tests.length;n.each(et_pb_custom.ab_tests,(function(t,e){n.ajax({type:"POST",url:et_pb_custom.ajaxurl,dataType:"json",data:{action:"et_pb_ab_get_subject_id",et_frontend_nonce:et_pb_custom.et_frontend_nonce,et_pb_ab_test_id:e.post_id},success:function(t){if(t){var i=n(".et_pb_subject_placeholder_id_".concat(e.post_id,"_").concat(t.id));i.after(t.content),i.remove()}(T-=1)<=0&&(n(".et_pb_subject_placeholder").remove(),window.et_pb_init_modules(),n("body").trigger("et_pb_ab_subject_ready"))}})}))}else window.et_pb_init_modules();function O(){n("body").is(".et-fb")&&n("#wpadminbar").length>0&&setTimeout((function(){n("#et_fix_html_margin").remove(),n("<style />",{id:"et_fix_html_margin",text:"html.js.et-fb-top-html { margin-top: 0px !important; }"}).appendTo("head")}),0)}function S(t){var e=t.find(".et_pb_menu__wrap").first(),n=t.find(".et_pb_menu__search-container").first(),i=t.find(".et_pb_menu__search-input").first();n.hasClass("et_pb_is_animating")||(e.removeClass("et_pb_menu__wrap--hidden").addClass("et_pb_menu__wrap--visible"),n.removeClass("et_pb_menu__search-container--visible").addClass("et_pb_menu__search-container--hidden et_pb_is_animating"),i.trigger("blur"),setTimeout((function(){n.removeClass("et_pb_is_animating").addClass("et_pb_menu__search-container--disabled")}),1e3))}document.addEventListener("readystatechange",(function(){"complete"===document.readyState&&(d.isDiviTheme||d.isExtraTheme)&&function(){if(window.et_location_hash=window.location.hash.replace(/[^a-zA-Z0-9-_#]/g,""),""!==window.et_location_hash){window.scrollTo(0,0);var t=n(window.et_location_hash);t.length&&("scrollRestoration"in history?history.scrollRestoration="manual":(window.et_location_hash_style=t.css("display"),t.css("display","none")))}}()})),document.addEventListener("DOMContentLoaded",(function(){n(".et_pb_top_inside_divider.et-no-transition, .et_pb_bottom_inside_divider.et-no-transition").removeClass("et-no-transition").each((function(){etFixDividerSpacing(n(this))})),setTimeout((function(){(window.et_pb_box_shadow_elements||[]).map(et_pb_box_shadow_apply_overlay)}),0)})),n(window).on("load",(function(){var t=n("body");if(window.et_load_event_fired=!0,t.hasClass("safari")){var e=t.css("display"),i="initial"===e?"block":"initial";if(t.css({display:i}),setTimeout((function(){t.css({display:e})}),0),t.hasClass("woocommerce-page")&&t.hasClass("single-product")){var a=n(".woocommerce div.product div.images.woocommerce-product-gallery");if(0===a.length)return;var o=parseInt(a[0].style.opacity);if(!o)return;a.css({opacity:o-.09}),setTimeout((function(){a.css({opacity:o})}),0)}}n(".et_pb_module #rating, .et_pb_module .comment-form-rating").length>0&&n(".et_pb_module #rating, .et_pb_module .comment-form-rating").each((function(){window.et_pb_init_woo_star_rating(n(this))})),window.et_pb_init_woo_custom_button_icon=function(){n(".et_pb_woo_custom_button_icon").length>0&&n(".et_pb_woo_custom_button_icon").each((function(){var t=n(this),e=t.attr("data-button-names");if(e){var i=(0,l.default)(e," ");(0,c.default)(i,(function(e){var n=t.find('button[name="'.concat(e,'"]')),i=t.attr("data-".concat(e,"-icon")),a=t.attr("data-".concat(e,"-icon-tablet")),o=t.attr("data-".concat(e,"-icon-phone"));n.addClass("et_pb_custom_button_icon et_pb_button"),(i||a||o)&&(n.attr("data-icon",i),n.attr("data-icon-tablet",a),n.attr("data-icon-phone",o))}))}else{var a=t.data("button-class"),o=t.find(".".concat(a)),r=t.attr("data-button-icon"),s=t.attr("data-button-icon-tablet"),_=t.attr("data-button-icon-phone");o.addClass("et_pb_custom_button_icon et_pb_button"),(r||s||_)&&(o.attr("data-icon",r),o.attr("data-icon-tablet",s),o.attr("data-icon-phone",_))}}))},window.et_pb_init_woo_custom_button_icon(),n("body").on("updated_checkout",(function(t){window.et_pb_init_woo_custom_button_icon()})),n(".et_pb_wc_meta").length>0&&n(".et_pb_wc_meta").each((function(){var t=n(this);""===t.find(".product_meta span:visible").text()&&t.addClass("et_pb_wc_meta_empty")}))})),n((function(){if(void 0!==MutationObserver)for(var t=function(t){return t.filter((function(){return!n(this).is(":visible")})).length},e=n(".et_pb_section"),i=function(t){var e=void 0!==n.uniqueSort?n.uniqueSort:n.unique,i=n([]);return t.each((function(){i=i.add(n(this).parents())})),e(i.get())}(e),a=t(e),o=new MutationObserver(window.et_pb_debounce((function(){var i=t(e);i<a&&n(window).trigger("resize"),a=i}),200)),r=0;r<i.length;r++)o.observe(i[r],{childList:!0,attributes:!0,attributeFilter:["class","style"],attributeOldValue:!1,characterData:!1,characterDataOldValue:!1,subtree:!1})})),O(),n(document).on("click",".et_pb_menu__search-button",(function(){!function(t){var e=t.find(".et_pb_menu__wrap").first(),i=t.find(".et_pb_menu__search-container").first(),a=t.find(".et_pb_menu__search-input").first(),o=t.find(".et_pb_row > .et_pb_menu__logo-wrap").first(),r=t.find(".et_pb_menu_inner_container > .et_pb_menu__logo-wrap").first(),s=o.add(r),c=n(window).width()<=980;if(!i.hasClass("et_pb_is_animating")){if(e.find(".mobile_nav.opened").removeClass("opened").addClass("closed"),e.find(".et_mobile_menu").hide(),e.removeClass("et_pb_menu__wrap--visible").addClass("et_pb_menu__wrap--hidden"),i.removeClass("et_pb_menu__search-container--hidden et_pb_menu__search-container--disabled").addClass("et_pb_menu__search-container--visible et_pb_is_animating"),i.css("padding-top","0px"),t.hasClass("et_pb_menu--style-left_aligned")||t.hasClass("et_pb_fullwidth_menu--style-left_aligned"))i.css("padding-left","".concat(s.width(),"px"));else{var l=s.height();i.css("padding-left","0px"),(c||t.hasClass("et_pb_menu--style-centered")||t.hasClass("et_pb_fullwidth_menu--style-centered"))&&i.css("padding-top","".concat(l>0?l+30:0,"px"))}a.css("font-size",t.find(".et-menu-nav li a").first().css("font-size")),setTimeout((function(){a.trigger("focus")}),0),setTimeout((function(){e.addClass("et_pb_no_animation"),i.addClass("et_pb_no_animation").removeClass("et_pb_is_animating")}),1e3)}}(n(this).closest(".et_pb_module"))})),n(document).on("click",".et_pb_menu__close-search-button",(function(){S(n(this).closest(".et_pb_module"))})),n(document).on("blur",".et_pb_menu__search-input",(function(){S(n(this).closest(".et_pb_module"))})),n((function(){n(".et_pb_menu--style-inline_centered_logo, .et_pb_fullwidth_menu--style-inline_centered_logo").each((function(){!function(t){var e=t.find(".et_pb_menu__logo-wrap").first();if(0!==e.length){var i=t.find(".et_pb_menu__menu").first();if(!(0===i.length||i.find(".et_pb_menu__logo").length>0)){var a=window.et_pb_menu_inject_inline_centered_logo(i.get(0));null!==a&&n(a).empty().append(e.clone())}}}(n(this))})),(0,a.default)(window.lazySizes)||n(document).on("lazyloaded",(function(t){var i=n(t.target),o=i.attr("name");i.is("iframe")&&((0,e.default)(o,"fitvid")||(0,a.default)(o))&&(i.attr("src",i.attr("data-src")),i.parent().fitVids())}))})),document.addEventListener("DOMContentLoaded",window.et_pb_reposition_menu_module_dropdowns),n(window).on("resize",window.et_pb_reposition_menu_module_dropdowns);var P={contexts:["content","attrs","styles","classes","visibility"],screenMode:void 0,windowWidth:void 0,init:function(t,e){P.screenMode=t,P.windowWidth=e,n(".et_multi_view__hover_selector").removeClass("et_multi_view__hover_selector"),P.getElements().each((function(){var t=n(this);if(!P.isBuilderElement(t)){var e=P.getData(t);e.$hoverSelector&&e.$hoverSelector.length&&e.$hoverSelector.addClass("et_multi_view__hover_selector"),P.normalStateHandler(e)}})),P.isTouchDevice()?(window.removeEventListener("touchstart",P.touchStateHandler),window.addEventListener("touchstart",P.touchStateHandler,{passive:!1})):(n(".et_multi_view__hover_selector").off("mouseenter mouseleave",P.hoverStateHandler),n(".et_multi_view__hover_selector").on("mouseenter mouseleave",P.hoverStateHandler),n("#main-header, #main-footer").off("mouseenter",P.resetHoverState),n("#main-header, #main-footer").on("mouseenter",P.resetHoverState))},normalStateHandler:function(t){t&&!P.isEmptyObject(t.normalState)&&P.callbackHandlerDefault(t.normalState,t.$target,t.$source,t.slug)},touchStateHandler:function(t){var e=n(t.target);if(n(t.target).hasClass("et_multi_view__hover_selector")||(e=n(t.target).closest(".et_multi_view__hover_selector")),e&&e.length){var i=n(t.target).is("a")?n(t.target):n(t.target).closest("a",e);if(i&&i.length){var a=i.attr("href");"#"!==a&&0===a.indexOf("#")&&n(a)&&n(a).length&&(t.preventDefault(),n("html, body").animate({scrollTop:n(a).offset().top},800))}else e.hasClass("et_multi_view__hovered")?P.resetHoverState(e,(function(){e.hasClass("et_clickable")&&e.trigger("click")})):P.setHoverState(e,(function(){e.hasClass("et_clickable")&&e.trigger("click")}))}},hoverStateHandler:function(t){var e=n(t.target);n(t.target).hasClass("et_multi_view__hover_selector")||(e=n(t.target).closest(".et_multi_view__hover_selector")),"mouseenter"!==t.type||e.hasClass("et_multi_view__hovered")?"mouseleave"===t.type&&e.hasClass("et_multi_view__hovered")&&P.resetHoverState(e):P.setHoverState(e)},setHoverState:function(t,e){P.resetHoverState();var i=[];t.data("etMultiView")&&i.push(P.getData(t)),t.find("[data-et-multi-view]").each((function(){var t=n(this);P.isBuilderElement(t)||i.push(P.getData(t))}));for(var a=0;a<i.length;a++){var o=i[a];!o||P.isEmptyObject(o.normalState)||P.isEmptyObject(o.hoverState)||P.callbackHandlerDefault(o.hoverState,o.$target,o.$source,o.slug)}t.addClass("et_multi_view__hovered"),"function"==typeof e&&e()},resetHoverState:function(t,e){var i=[];t&&t.length?(t.data("etMultiView")&&i.push(P.getData(t)),t.find("[data-et-multi-view]").each((function(){var t=n(this);P.isBuilderElement(t)||i.push(P.getData(t))}))):P.getElements().each((function(){var t=n(this);P.isBuilderElement(t)||i.push(P.getData(t))}));for(var a=0;a<i.length;a++){var o=i[a];!o||P.isEmptyObject(o.normalState)||P.isEmptyObject(o.hoverState)||P.callbackHandlerDefault(o.normalState,o.$target,o.$source,o.slug)}n(".et_multi_view__hover_selector").removeClass("et_multi_view__hovered"),"function"==typeof e&&e()},getData:function(t){if(!t||!t.length)return!1;var e=P.getScreenMode(),i=t.data("etMultiView");if(!i)return!1;if("string"==typeof i&&(i=P.tryParseJSON(i)),!i||!i.schema||!i.slug)return!1;var a=i.target?n(i.target):t;if(!a||!a.length)return!1;for(var o={},r={},s=0;s<P.contexts.length;s++){var c=P.contexts[s];i.schema&&i.schema.hasOwnProperty(c)&&(i.schema[c].hasOwnProperty(e)?o[c]=i.schema[c][e]:"tablet"===e&&i.schema[c].hasOwnProperty("desktop")?o[c]=i.schema[c].desktop:"phone"===e&&i.schema[c].hasOwnProperty("tablet")?o[c]=i.schema[c].tablet:"phone"===e&&i.schema[c].hasOwnProperty("desktop")&&(o[c]=i.schema[c].desktop),i.schema[c].hasOwnProperty("hover")&&(r[c]=i.schema[c].hover))}var l=!!i.hover_selector&&n(i.hover_selector);return l&&l.length||(l=t.hasClass(".et_pb_module")?t:t.closest(".et_pb_module")),{normalState:o,hoverState:r,$target:a,$source:t,$hoverSelector:l,slug:i.slug,screenMode:e}},callbackHandlerDefault:function(t,e,n,i){if(i){var a=P.getCallbackHandlerCustom(i);if(a&&"function"==typeof a)return a(t,e,n,i)}var o={};return t.hasOwnProperty("content")&&(o.content=P.updateContent(t.content,e,n)),t.hasOwnProperty("attrs")&&(o.attrs=P.updateAttrs(t.attrs,e,n)),t.hasOwnProperty("styles")&&(o.styles=P.updateStyles(t.styles,e,n)),t.hasOwnProperty("classes")&&(o.classes=P.updateClasses(t.classes,e,n)),t.hasOwnProperty("visibility")&&(o.visibility=P.updateVisibility(t.visibility,e,n)),!P.isEmptyObject(o)&&o},callbackHandlerCounter:function(t,e,n){var i=P.callbackHandlerDefault(t,e,n);i&&i.attrs&&i.attrs.hasOwnProperty("data-width")&&window.et_bar_counters_init(e)},callbackHandlerNumberCounter:function(t,e,n){if(e.hasClass("title"))return P.callbackHandlerDefault(t,e,n);var i=t.attrs||!1;if(i&&(i.hasOwnProperty("data-percent-sign")&&P.updateContent(i["data-percent-sign"],e.find(".percent-sign"),n),i.hasOwnProperty("data-number-value"))){var a=e.closest(".et_pb_number_counter"),o=i["data-number-value"]||50,r=i["data-number-separator"]||"";P.updateAttrs({"data-number-value":o,"data-number-separator":r},a,n)&&a.data("easyPieChart")&&a.data("easyPieChart").update(o)}},callbackHandlerCircleCounter:function(t,e,n){if(!e.hasClass("et_pb_circle_counter_inner"))return P.callbackHandlerDefault(t,e,n);var i=t.attrs||!1;if(i&&(i.hasOwnProperty("data-percent-sign")&&P.updateContent(i["data-percent-sign"],e.find(".percent-sign"),n),i.hasOwnProperty("data-number-value"))){var a=e.closest(".et_pb_circle_counter_inner"),o=i["data-number-value"];P.updateAttrs({"data-number-value":o},a,n)&&a.data("easyPieChart")&&(window.et_pb_circle_counter_init(a),a.data("easyPieChart").update(o))}},callbackHandlerSlider:function(t,e,n){var i=P.callbackHandlerDefault(t,e,n);e.hasClass("et_pb_module")&&i&&i.classes&&(i.classes.add&&-1!==i.classes.add.indexOf("et_pb_slider_no_arrows")&&e.find(".et-pb-slider-arrows").addClass("et_multi_view_hidden"),i.classes.remove&&-1!==i.classes.remove.indexOf("et_pb_slider_no_arrows")&&e.find(".et-pb-slider-arrows").removeClass("et_multi_view_hidden"),i.classes.add&&-1!==i.classes.add.indexOf("et_pb_slider_no_pagination")&&e.find(".et-pb-controllers").addClass("et_multi_view_hidden"),i.classes.remove&&-1!==i.classes.remove.indexOf("et_pb_slider_no_pagination")&&e.find(".et-pb-controllers").removeClass("et_multi_view_hidden"))},callbackHandlerPostSlider:function(t,e,n){var i=P.callbackHandlerDefault(t,e,n);e.hasClass("et_pb_module")&&i&&i.classes&&(i.classes.add&&-1!==i.classes.add.indexOf("et_pb_slider_no_arrows")&&e.find(".et-pb-slider-arrows").addClass("et_multi_view_hidden"),i.classes.remove&&-1!==i.classes.remove.indexOf("et_pb_slider_no_arrows")&&e.find(".et-pb-slider-arrows").removeClass("et_multi_view_hidden"),i.classes.add&&-1!==i.classes.add.indexOf("et_pb_slider_no_pagination")&&e.find(".et-pb-controllers").addClass("et_multi_view_hidden"),i.classes.remove&&-1!==i.classes.remove.indexOf("et_pb_slider_no_pagination")&&e.find(".et-pb-controllers").removeClass("et_multi_view_hidden"))},callbackHandlerVideoSlider:function(t,e,n){var i=P.callbackHandlerDefault(t,e,n);if(e.hasClass("et_pb_slider")&&i&&i.classes){i.classes.add&&-1!==i.classes.add.indexOf("et_pb_slider_no_arrows")&&e.find(".et-pb-slider-arrows").addClass("et_multi_view_hidden"),i.classes.remove&&-1!==i.classes.remove.indexOf("et_pb_slider_no_arrows")&&e.find(".et-pb-slider-arrows").removeClass("et_multi_view_hidden");var a=i.classes.add&&-1!==i.classes.add.indexOf("et_pb_slider_dots")?"et_pb_slider_dots":!(!i.classes.add||-1===i.classes.add.indexOf("et_pb_slider_carousel"))&&"et_pb_slider_carousel";if(a){var o=e.data("et_pb_simple_slider");"object"===u(o)&&o.et_slider_destroy(),et_pb_slider_init(e),"et_pb_slider_carousel"===a&&e.siblings(".et_pb_carousel").et_pb_simple_carousel({slide_duration:1e3})}}},callbackHandlerSliderItem:function(t,e,i){if(!e.hasClass("et_pb_slide_video")&&!e.is("img"))return P.callbackHandlerDefault(t,e,i);if(e.hasClass("et_pb_slide_video")){var a=!(!t||!t.content)&&n(t.content),o=-1!==e.html().indexOf("fluid-width-video-wrapper")?n(e.find(".fluid-width-video-wrapper").html()):n(e.html());if(!a||!o)return;var r=!1;if(a.hasClass("wp-video")&&o.hasClass("wp-video")?function(){if(a.find("source").length!==o.find("source").length)return!0;var t=!1;return a.find("source").each((function(e){var i=o.find("source").eq(e);n(this).attr("src")!==i.attr("src")&&(t=!0)})),t}()&&(r=P.callbackHandlerDefault(t,e,i)):(a.is("iframe")&&o.is("iframe")&&a.attr("src")!==o.attr("src")||a.hasClass("wp-video")&&o.is("iframe")||a.is("iframe")&&o.hasClass("wp-video"))&&(r=P.callbackHandlerDefault(t,e,i)),r&&r.content)if(a.is("iframe"))e.closest(".et_pb_module").fitVids();else{var s=a.find("video").attr("width"),c=a.find("video").attr("height"),l=e.width(),_=l/s*c;e.find("video").mediaelementplayer({videoWidth:parseInt(l),videoHeight:parseInt(_),autosizeProgress:!1,success:function(t,e){var i=n(e),a=_-i.height()+n(t).height();i.css("margin-top","".concat(a,"px"))}})}}else if(e.is("img")&&(r=P.callbackHandlerDefault(t,e,i))&&r.attrs&&r.attrs.src){var d=e.closest(".et_pb_module");e.css("visibility","hidden"),et_fix_slider_height(d),setTimeout((function(){et_fix_slider_height(d),e.css("visibility","visible")}),100)}},callbackHandlerVideo:function(t,e,i){if(e.hasClass("et_pb_video_overlay"))return P.callbackHandlerDefault(t,e,i);var a=!1,o=!(!t||!t.content)&&n(t.content),r=-1!==e.html().indexOf("fluid-width-video-wrapper")?n(e.find(".fluid-width-video-wrapper").html()):n(e.html());return o&&r?(o.is("video")&&r.is("video")?function(){if(o.find("source").length!==r.find("source").length)return!0;var t=!1;return o.find("source").each((function(e){var i=r.find("source").eq(e);n(this).attr("src")!==i.attr("src")&&(t=!0)})),t}()&&(a=P.callbackHandlerDefault(t,e,i)):(o.is("iframe")&&r.is("iframe")&&o.attr("src")!==r.attr("src")||o.is("video")&&r.is("iframe")||o.is("iframe")&&r.is("video"))&&(a=P.callbackHandlerDefault(t,e,i)),a&&a.content&&o.is("iframe")&&n.fn.fitVids&&e.fitVids(),a):void 0},callbackHandlerBlog:function(t,e,n){var i=P.callbackHandlerDefault(t,e,n),a=P.getObjectValue(i,"classes.add");a&&-1!==a.indexOf("et_pb_blog_show_content")&&et_reinit_waypoint_modules()},callbackHandlerWooCommerceBreadcrumb:function(t,e,n){if(t.content)return P.callbackHandlerDefault(t,e,n);if(t.attrs&&t.attrs.hasOwnProperty("href")){var i=t.attrs.href;return P.updateAttrs({href:i},e,n)}},callbackHandlerWooCommerceTabs:function(t,e,i){var a=P.callbackHandlerDefault(t,e,i);if(a&&a.attrs&&a.attrs.hasOwnProperty("data-include_tabs")){e.find("li").hide(),e.find("li").removeClass("et_pb_tab_active");var o=[];a.attrs["data-include_tabs"].split("|").forEach((function(t){""!==t.trim()&&o.push("".concat(t,"_tab"))})),o.forEach((function(t,e){0===e&&n(".".concat(t)).addClass("et_pb_tab_active"),n(".".concat(t)).show()}))}},getCallbackHandlerCustom:function(t){switch(t){case"et_pb_counter":return P.callbackHandlerCounter;case"et_pb_number_counter":return P.callbackHandlerNumberCounter;case"et_pb_circle_counter":return P.callbackHandlerCircleCounter;case"et_pb_slider":case"et_pb_fullwidth_slider":return P.callbackHandlerSlider;case"et_pb_post_slider":case"et_pb_fullwidth_post_slider":return P.callbackHandlerPostSlider;case"et_pb_video_slider":return P.callbackHandlerVideoSlider;case"et_pb_slide":return P.callbackHandlerSliderItem;case"et_pb_video":return P.callbackHandlerVideo;case"et_pb_blog":return P.callbackHandlerBlog;case"et_pb_wc_breadcrumb":return P.callbackHandlerWooCommerceBreadcrumb;case"et_pb_wc_tabs":return P.callbackHandlerWooCommerceTabs;default:return!1}},updateContent:function(t,e,i){if(void 0===t)return!1;var a=n("<"+(e.get(0).tagName||"div")+">").html(t);return e.html()!==a.html()&&(e.empty().html(t),i.hasClass("et_multi_view_swapped")||i.addClass("et_multi_view_swapped"),!0)},updateAttrs:function(t,e,i){if(!t)return!1;var a={};return n.each(t,(function(n,i){var o=e.attr(n);switch(n){case"class":case"style":case"srcset":case"sizes":break;case"src":o!==i&&(e.off("load"),e.on("load",(function(){e.addClass("et_multi_view_image__loaded"),e.removeClass("et_multi_view_image__loading")})),e.addClass("et_multi_view_image__loading"),e.removeClass("et_multi_view_image__loaded"),e.attr({src:i,srcset:t.srcset||"",sizes:t.sizes||""}),i?e.removeClass("et_multi_view_hidden_image"):e.addClass("et_multi_view_hidden_image"),a[n]=i);break;default:o!==i&&(e.attr(n,i),0===n.indexOf("data-")&&e.data(n.replace("data-",""),i),a[n]=i)}})),!P.isEmptyObject(a)&&(i.hasClass("et_multi_view_swapped")||i.addClass("et_multi_view_swapped"),a)},updateStyles:function(t,e,i){if(!t)return!1;var a={};return n.each(t,(function(t,n){e.css(t)!==n&&(e.css(t,n),a[t]=n)})),!P.isEmptyObject(a)&&(i.hasClass("et_multi_view_swapped")||i.addClass("et_multi_view_swapped"),a)},updateClasses:function(t,e,n){if(!t)return!1;var i={};if(t.add)for(var a=0;a<t.add.length;a++)e.hasClass(t.add[a])||(e.addClass(t.add[a]),i.hasOwnProperty("add")||(i.add=[]),i.add.push(t.add[a]));if(t.remove)for(a=0;a<t.remove.length;a++)e.hasClass(t.remove[a])&&(e.removeClass(t.remove[a]),i.hasOwnProperty("remove")||(i.remove=[]),i.remove.push(t.remove[a]));return!P.isEmptyObject(i)&&(n.hasClass("et_multi_view_swapped")||n.addClass("et_multi_view_swapped"),i)},updateVisibility:function(t,e,n){var i={};return t&&e.hasClass("et_multi_view_hidden")&&(e.removeClass("et_multi_view_hidden"),i.isVisible=!0),t||e.hasClass("et_multi_view_hidden")||(e.addClass("et_multi_view_hidden"),i.isHidden=!0),!P.isEmptyObject(i)&&(n.hasClass("et_multi_view_swapped")||n.addClass("et_multi_view_swapped"),i)},isEmptyObject:function(t){if(!t)return!0;var e=!0;for(var n in t)t.hasOwnProperty(n)&&(e=!1);return e},getObjectValue:function(t,e,i){try{for(var a=n.extend({},t),o=e.split("."),r=0;r<o.length;++r)a=a[o[r]];return a}catch(t){return i}},tryParseJSON:function(t){try{return JSON.parse(t)}catch(t){return!1}},getScreenMode:function(){if(d.isBuilder&&P.screenMode)return P.screenMode;var t=P.getWindowWidth();return t>980?"desktop":t>767?"tablet":"phone"},getWindowWidth:function(){return P.windowWidth?P.windowWidth:d.isBuilder?n(".et-core-frame").width():n(window).width()},getElements:function(){return d.isBuilder?n(".et-core-frame").contents().find("[data-et-multi-view]"):n("[data-et-multi-view]")},isBuilderElement:function(t){return t.closest("#et-fb-app").length>0},isTouchDevice:function(){return"ontouchstart"in window||navigator.msMaxTouchPoints}};!function(){if(d.isBuilder)n(window).on("et_fb_preview_mode_changed",(function(t,e){"et_fb_preview_mode_changed"===t.type&&P.init(e)}));else{n((function(){P.init()})),n(window).on("orientationchange",(function(t){P.init()}));var t=null;n(window).on("resize",(function(e){e.originalEvent&&e.originalEvent.isTrusted&&(clearTimeout(t),t=setTimeout((function(){P.init(void 0,n(window).width())}),200))}))}}(),d.isBuilder&&n((function(){n(document).on("submit",".et-fb-root-ancestor-sibling form",(function(t){t.preventDefault()})),n(document).on("click",'.et-fb-root-ancestor-sibling a, .et-fb-root-ancestor-sibling button, .et-fb-root-ancestor-sibling input[type="submit"]',(function(t){t.preventDefault()}))})),window.etInitWooReviewsRatingStars=function(){n('select[name="rating"]').each((function(){n(this).prev(".stars").remove(),n(this).hide().before('<p class="stars">\t\t\t\t\t\t<span>\t\t\t\t\t\t\t<a class="star-1" href="#">1</a>\t\t\t\t\t\t\t<a class="star-2" href="#">2</a>\t\t\t\t\t\t\t<a class="star-3" href="#">3</a>\t\t\t\t\t\t\t<a class="star-4" href="#">4</a>\t\t\t\t\t\t\t<a class="star-5" href="#">5</a>\t\t\t\t\t\t</span>\t\t\t\t\t</p>')}))}}(t)}).call(this,n(8))},1467:function(t,e,n){"use strict";(function(t){var e,i=(e=n(7))&&e.__esModule?e:{default:e},a=n(353);!function(t){function e(){var e=t("body").hasClass("et_pb_pagebuilder_layout"),n=t("body").hasClass("et-tb-has-template");return!(e||n)}function n(e){var n=e.target.getAttribute("name"),i=e.target.value;t("input[type=hidden][name=".concat(n,"]")).remove(),t("<input>").attr({type:"hidden",value:i,name:n}).prependTo(".et_pb_wc_checkout_payment_info form.checkout")}function o(e){var n=e.target.getAttribute("name"),a=t("input[type=hidden][name=".concat(n,"]"));(0,i.default)(["ship_to_different_address","createaccount"],n)&&!e.target.checked&&a.remove(),"ship_to_different_address"===n&&(e.target.checked?(c(),t("div.shipping_address").slideDown()):t("div.shipping_address").slideUp())}function r(e){var n=e.target.getAttribute("name"),a=e.target.value;t("input[type=hidden][name=".concat(n,"]")).remove(),(0,i.default)(["shipping_state","billing_state"],n)&&t("input[type=hidden][name=".concat(n,"]"),".et_pb_wc_checkout_payment_info").remove(),t("<input>").attr({type:"hidden",value:a,name:n}).prependTo(".et_pb_wc_checkout_payment_info form.checkout")}function s(e){var n=t(e.target),i=e.target.getAttribute("name"),a=n.val();t(".et_pb_wc_checkout_payment_info input[type=hidden][name=".concat(i,"]")).remove(),t("<input>").attr({type:"hidden",value:a,name:i}).prependTo(".et_pb_wc_checkout_payment_info form.checkout")}function c(){var e=t(".et_pb_wc_checkout_shipping input[name=ship_to_different_address]"),n=e.is(":checked");t(".et_pb_wc_checkout_billing .form-row").each((function(){var e,n,i=t(this).find("input"),a=t(this).find("select");i.length?(e=i.attr("name"),n=i.val()):a.length&&(e=a.attr("name"),n=a.val()),""!==e&&void 0!==e&&t("<input>").attr({type:"hidden",value:n,name:e}).prependTo(".et_pb_wc_checkout_payment_info form.checkout")})),n&&(t(".et_pb_wc_checkout_shipping .form-row").each((function(){var e,n,i=t(this).find("input"),a=t(this).find("select");i.length?(e=i.attr("name"),n=i.val()):a.length&&(e=a.attr("name"),n=a.val()),""!==e&&void 0!==e&&(t('.et_pb_wc_checkout_payment_info form.checkout input[type="hidden"][name="'+e+'"]').remove(),t("<input>").attr({type:"hidden",value:n,name:e}).prependTo(".et_pb_wc_checkout_payment_info form.checkout"))})),t("<input>").attr({type:"hidden",value:e.val(),name:"ship_to_different_address"}).prependTo(".et_pb_wc_checkout_payment_info form.checkout"))}var l;function _(){var e=t(".et_pb_wc_checkout_payment_info");t(".wc_payment_method").removeClass("et_pb_checked"),e.find('input.input-radio[type="radio"]:checked').parent(".wc_payment_method").addClass("et_pb_checked")}var d={customButtonIconInit:function(){window.et_pb_init_woo_custom_button_icon()},animationInit:function(){u.etProcessAnimationData()},makeReturnToShopBtnVisibleWhenCartEmptied:function(){if(!a.isVB){var e=t(".wc-backward").closest(".et_pb_wc_cart_notice");e.hasClass("et_animated")&&e.removeClass("et_animated").addClass("et_had_animation")}},removeDuplicateWooCartForm:function(){a.isVB||t(".woocommerce-cart-form").closest(".woocommerce").find(".woocommerce-cart-form:not(:first)").remove()},removeDuplicatedCartTotalModules:function(){a.isVB||t(".et_pb_wc_cart_totals").find(".cart_totals:not(:first)").remove()},wooCartTotalsInit:function(){t(document.body).on("updated_wc_div",this.removeDuplicatedCartTotalModules)},wooCartProductsInit:function(){t(document.body).on("updated_wc_div",this.removeDuplicateWooCartForm)},wooNoticeInit:function(){t(document.body).on("updated_wc_div",this.makeReturnToShopBtnVisibleWhenCartEmptied),t(document.body).on("updated_wc_div",this.animationInit)},reInitCustomButtonIcon:function(){t(document.body).on("updated_wc_div",this.customButtonIconInit)},init:function(){this.wooCartProductsInit(),this.wooNoticeInit(),this.reInitCustomButtonIcon(),this.wooCartTotalsInit(),t(document.body).on("change input",".woocommerce-cart-form .cart_item :input",(function(){if(!a.isBuilder){var e,n,i,o=t(this).closest(".et_pb_module_inner").find('button[name="update_cart"]'),r=t(this).parents(".et_pb_woo_custom_button_icon.et_pb_wc_cart_products");e=r.attr("data-apply_coupon-icon"),n=r.attr("data-apply_coupon-icon-tablet"),i=r.attr("data-apply_coupon-icon-phone"),o.addClass("et_pb_custom_button_icon et_pb_button"),(e||n||i)&&(o.attr("data-icon",e),o.attr("data-icon-tablet",n),o.attr("data-icon-phone",i))}}))}},p={init:function(){this.stopStickyWooNoticeScroll()},stopStickyWooNoticeScroll:function(){a.isVB||t("a.showcoupon").on("click",(function(e){if(t(this).parents(".et_pb_wc_cart_notice").hasClass("et_pb_sticky_module")){e.stopPropagation();var n=t(this).parents(".et_pb_sticky_module");return t(".checkout_coupon",n).slideToggle(400,(function(){t(".checkout_coupon",n).find(":input:eq(0)").focus()})),!1}}))}},u={et_get_animation_classes:function(){return["et_animated","et_is_animating","infinite","et-waypoint","fade","fadeTop","fadeRight","fadeBottom","fadeLeft","slide","slideTop","slideRight","slideBottom","slideLeft","bounce","bounceTop","bounceRight","bounceBottom","bounceLeft","zoom","zoomTop","zoomRight","zoomBottom","zoomLeft","flip","flipTop","flipRight","flipBottom","flipLeft","fold","foldTop","foldRight","foldBottom","foldLeft","roll","rollTop","rollRight","rollBottom","rollLeft","transformAnim"]},et_remove_animation:function(e){if(!e.hasClass("infinite")){var n=this.et_get_animation_classes();e.is(".et_pb_section")&&e.is(".roll")&&t("".concat(et_frontend_scripts.builderCssContainerPrefix,", ").concat(et_frontend_scripts.builderCssLayoutPrefix)).css("overflow-x",""),e.removeClass(n.join(" ")),e.css({"animation-delay":"","animation-duration":"","animation-timing-function":"",opacity:"",transform:"",left:""}),e.addClass("et_had_animation")}},et_remove_animation_data:function(e){for(var n=[],i=e.get(0).attributes,a=0;a<i.length;a++)"data-animation-"===i[a].name.substring(0,15)&&n.push(i[a].name);t.each(n,(function(t,n){e.removeAttr(n)}))},et_process_animation_intensity:function(t,e,n){var i={};switch(t){case"slide":switch(e){case"top":i={transform:"translate3d(0, ".concat(-2*n,"%, 0)")};break;case"right":i={transform:"translate3d(".concat(2*n,"%, 0, 0)")};break;case"bottom":i={transform:"translate3d(0, ".concat(2*n,"%, 0)")};break;case"left":i={transform:"translate3d(".concat(-2*n,"%, 0, 0)")};break;default:i={transform:"scale3d(".concat(a=.01*(100-n),", ").concat(a,", ").concat(a,")")}}break;case"zoom":var a;i={transform:"scale3d(".concat(a=.01*(100-n),", ").concat(a,", ").concat(a,")")};break;case"flip":switch(e){case"right":var o=Math.ceil(.9*n);i={transform:"perspective(2000px) rotateY(".concat(o,"deg)")};break;case"left":o=-1*Math.ceil(.9*n),i={transform:"perspective(2000px) rotateY(".concat(o,"deg)")};break;case"top":default:o=Math.ceil(.9*n),i={transform:"perspective(2000px) rotateX(".concat(o,"deg)")};break;case"bottom":o=-1*Math.ceil(.9*n),i={transform:"perspective(2000px) rotateX(".concat(o,"deg)")}}break;case"fold":switch(e){case"top":o=-1*Math.ceil(.9*n),i={transform:"perspective(2000px) rotateX(".concat(o,"deg)")};break;case"bottom":o=Math.ceil(.9*n),i={transform:"perspective(2000px) rotateX(".concat(o,"deg)")};break;case"left":o=Math.ceil(.9*n),i={transform:"perspective(2000px) rotateY(".concat(o,"deg)")};break;default:o=-1*Math.ceil(.9*n),i={transform:"perspective(2000px) rotateY(".concat(o,"deg)")}}break;case"roll":switch(e){case"right":case"bottom":o=-1*Math.ceil(3.6*n),i={transform:"rotateZ(".concat(o,"deg)")};break;case"top":case"left":o=Math.ceil(3.6*n),i={transform:"rotateZ(".concat(o,"deg)")};break;default:o=Math.ceil(3.6*n),i={transform:"rotateZ(".concat(o,"deg)")}}}return i},et_animate_element:function(e){var n=this,i=e;if(!i.hasClass("et_had_animation")){var a=i.attr("data-animation-style"),o=i.attr("data-animation-repeat"),r=i.attr("data-animation-duration"),s=i.attr("data-animation-delay"),c=i.attr("data-animation-intensity"),l=i.attr("data-animation-starting-opacity"),_=i.attr("data-animation-speed-curve"),d=i.parent(".et_pb_button_module_wrapper"),p=t("body").hasClass("edge");i.is(".et_pb_section")&&"roll"===a&&t("".concat(et_frontend_scripts.builderCssContainerPrefix,", ").concat(et_frontend_scripts.builderCssLayoutPrefix)).css("overflow-x","hidden"),this.et_remove_animation_data(i);var u=isNaN(parseInt(l))?0:.01*parseInt(l);-1===t.inArray(_,["linear","ease","ease-in","ease-out","ease-in-out"])&&(_="ease-in-out"),d.length>0&&(i.removeClass("et_animated"),(i=d).addClass("et_animated")),i.css({"animation-duration":r,"animation-delay":s,opacity:u,"animation-timing-function":_}),"slideTop"!==a&&"slideBottom"!==a||i.css("left","0px");for(var f={},h=isNaN(parseInt(c))?50:parseInt(c),b=["slide","zoom","flip","fold","roll"],v=!1,m=!1,g=0;g<b.length;g++){var w=b[g];if(a&&a.substr(0,w.length)===w){v=w,""!==(m=a.substr(w.length,a.length))&&(m=m.toLowerCase());break}}if(!1!==v&&!1!==m&&(f=this.et_process_animation_intensity(v,m,h)),t.isEmptyObject(f)||i.css(p?t.extend(f,{transition:"transform 0s ease-in"}):f),i.addClass("et_animated"),i.addClass("et_is_animating"),i.addClass(a),i.addClass(o),!o){var y=parseInt(r),x=parseInt(s);setTimeout((function(){n.et_remove_animation(i)}),y+x),p&&!t.isEmptyObject(f)&&setTimeout((function(){i.css("transition","")}),y+x+50)}}},getCurrentWindowMode:function(){var e=t(window).width(),n="desktop";return e<=980&&e>767?n="tablet":e<=767&&(n="phone"),n},etProcessAnimationData:function(){if("undefined"!=typeof et_animation_data&&0!==et_animation_data.length){t("body").css("overflow-x","hidden"),t("#page-container").css("overflow-y","hidden");for(var e=0;e<et_animation_data.length;e++){var n=et_animation_data[e];if(n.class&&n.style&&n.repeat&&n.duration&&n.delay&&n.intensity&&n.starting_opacity&&n.speed_curve){var i=t(".".concat(n.class));i.removeClass("et_had_animation");var a=this.getCurrentWindowMode(),o="desktop"===a,r="";o||(r+="_".concat(a));var s=o||void 0===n["style".concat(r)]?n.style:n["style".concat(r)],c=o||void 0===n["repeat".concat(r)]?n.repeat:n["repeat".concat(r)],l=o||void 0===n["duration".concat(r)]?n.duration:n["duration".concat(r)],_=o||void 0===n["delay".concat(r)]?n.delay:n["delay".concat(r)],d=o||void 0===n["intensity".concat(r)]?n.intensity:n["intensity".concat(r)],p=o||void 0===n["starting_opacity".concat(r)]?n.starting_opacity:n["starting_opacity".concat(r)],u=o||void 0===n["speed_curve".concat(r)]?n.speed_curve:n["speed_curve".concat(r)];i.attr({"data-animation-style":s,"data-animation-repeat":"once"===c?"":"infinite","data-animation-duration":l,"data-animation-delay":_,"data-animation-intensity":d,"data-animation-starting-opacity":p,"data-animation-speed-curve":u}),this.et_animate_element(i)}}}}};d.init(),p.init(),function e(){t(".et_pb_wc_checkout_billing form.checkout").length?(a.isVB&&t(".et_pb_wc_checkout_billing form.checkout").prepend('\n        <div class="woocommerce-NoticeGroup woocommerce-NoticeGroup-checkout">\n          <ul class="woocommerce-error" role="alert">\n            <li data-id="billing_first_name">\n              <strong>Billing First name</strong> is a required field.\n            </li>\n          </ul>\n        </div>\n        '),clearTimeout(l)):l=setTimeout(e,1e3)}(),t(document.body).on("updated_checkout",_),t("#et-boc").on("change","input.input-radio",_),t(document.body).on("click",".woocommerce-cart-form .product-remove > a",(function(t){if("undefined"!=typeof wc_cart_params&&a.isVB)return t.preventDefault(),!1})),t(document.body).on("init_checkout",(function(){e()||(t(document.body).on("checkout_error",(function(){t(".woocommerce-NoticeGroup-checkout:not(:first)").hide()})),c(),t(document.body).on("change",".et_pb_wc_checkout_billing input",s),t(document.body).on("change",".et_pb_wc_checkout_billing select",r),t(document.body).on("change",".et_pb_wc_checkout_shipping input",s),t(document.body).on("change",".et_pb_wc_checkout_shipping select",r),t(document.body).on("change","#ship-to-different-address input",o),t(document.body).on("change","textarea[name=order_comments]",n),t(document.body).on("change","input#createaccount",o),t(".et_pb_wc_checkout_shipping").length||t('.woocommerce-error li[data-id^="shipping_"]').hide(),t(".et_pb_wc_checkout_shipping div.shipping_address").hide())})),t(document.body).on("wc_cart_emptied",(function(){e()||t(".et_pb_wc_cart_totals").hide()})),t(".et_pb_wc_checkout_order_details").on("change","input[name^=shipping_method]",(function(){t(document.body).trigger("update_checkout")})),t(".et_pb_wc_checkout_billing select[name^=billing_country], .et_pb_wc_checkout_shipping select[name^=shipping_country]").on("change",(function(){t(document.body).trigger("update_checkout")})),t(".et_pb_wc_checkout_billing input[name^=billing_postcode], .et_pb_wc_checkout_shipping input[name^=shipping_postcode]").on("change",(function(){t(document.body).trigger("update_checkout")})),e()||t("body").hasClass("woocommerce-order-received")&&t('.et_pb_row:has(".et_pb_column.et_pb_column_empty")').addClass("et_pb_no_top_bottom_padding")}(t),t((function(t){t.scroll_to_notices=function(e){var n=100;t(".et-fixed-header").length&&(n+=t(".et-fixed-header").height()),e.length&&t("html, body").animate({scrollTop:e.offset().top-n},1e3)}}))}).call(this,n(8))},147:function(t,e,n){var i=n(100),a=n(251),o=n(252);function r(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new i;++e<n;)this.add(t[e])}r.prototype.add=r.prototype.push=a,r.prototype.has=o,t.exports=r},148:function(t,e){t.exports=function(t,e){return t.has(e)}},149:function(t,e){t.exports=function(t,e,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o<a;)if(e(t[o],o,t))return o;return-1}},150:function(t,e,n){var i=n(116);t.exports=function(t){return t?(t=i(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},151:function(t,e,n){var i=n(121),a=n(60),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var r=t[e];o.call(t,e)&&a(r,n)&&(void 0!==n||e in t)||i(t,e,n)}},162:function(t,e,n){var i=n(203)();t.exports=i},163:function(t,e,n){var i=n(187),a=n(80),o=n(4),r=n(73),s=n(71),c=n(82),l=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),_=!n&&a(t),d=!n&&!_&&r(t),p=!n&&!_&&!d&&c(t),u=n||_||d||p,f=u?i(t.length,String):[],h=f.length;for(var b in t)!e&&!l.call(t,b)||u&&("length"==b||d&&("offset"==b||"parent"==b)||p&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||s(b,h))||f.push(b);return f}},164:function(t,e){t.exports=function(){return[]}},165:function(t,e,n){var i=n(112);t.exports=function(t,e,n){var a=t.length;return n=void 0===n?a:n,!e&&n>=a?t:i(t,e,n)}},166:function(t,e,n){var i=n(343),a=n(181),o=n(344);t.exports=function(t){return a(t)?o(t):i(t)}},169:function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},17:function(t,e,n){var i=n(163),a=n(117),o=n(38);t.exports=function(t){return o(t)?i(t):a(t)}},170:function(t,e,n){var i=n(44)(n(23),"Set");t.exports=i},171:function(t,e,n){var i=n(44)(n(23),"WeakMap");t.exports=i},172:function(t,e,n){var i=n(226),a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,r=i((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(a,(function(t,n,i,a){e.push(i?a.replace(o,"$1"):n||t)})),e}));t.exports=r},173:function(t,e){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1}},174:function(t,e,n){var i=n(23).Uint8Array;t.exports=i},175:function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,i){n[++e]=[i,t]})),n}},176:function(t,e,n){var i=n(177),a=n(141),o=n(17);t.exports=function(t){return i(t,o,a)}},177:function(t,e,n){var i=n(119),a=n(4);t.exports=function(t,e,n){var o=e(t);return a(t)?o:i(o,n(t))}},178:function(t,e,n){var i=n(12);t.exports=function(t){return t==t&&!i(t)}},179:function(t,e){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},181:function(t,e){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return n.test(t)}},186:function(t,e){t.exports=function(){return!1}},187:function(t,e){t.exports=function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}},188:function(t,e,n){var i=n(189),a=/^\s+/;t.exports=function(t){return t?t.slice(0,i(t)+1).replace(a,""):t}},189:function(t,e){var n=/\s/;t.exports=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e}},190:function(t,e,n){var i=n(45);t.exports=function(t,e){return i(e,(function(e){return t[e]}))}},201:function(t,e,n){var i=n(35),a=n(221),o=n(12),r=n(139),s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,_=c.toString,d=l.hasOwnProperty,p=RegExp("^"+_.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||a(t))&&(i(t)?p:s).test(r(t))}},202:function(t,e,n){var i=n(23)["__core-js_shared__"];t.exports=i},203:function(t,e){t.exports=function(t){return function(e,n,i){for(var a=-1,o=Object(e),r=i(e),s=r.length;s--;){var c=r[t?s:++a];if(!1===n(o[c],c,o))break}return e}}},204:function(t,e,n){var i=n(38);t.exports=function(t,e){return function(n,a){if(null==n)return n;if(!i(n))return t(n,a);for(var o=n.length,r=e?o:-1,s=Object(n);(e?r--:++r<o)&&!1!==a(s[r],r,s););return n}}},205:function(t,e,n){var i=n(74),a=n(80),o=n(4),r=n(71),s=n(98),c=n(52);t.exports=function(t,e,n){for(var l=-1,_=(e=i(e,t)).length,d=!1;++l<_;){var p=c(e[l]);if(!(d=null!=t&&n(t,p)))break;t=t[p]}return d||++l!=_?d:!!(_=null==t?0:t.length)&&s(_)&&r(p,_)&&(o(t)||a(t))}},206:function(t,e,n){var i=n(287),a=n(205);t.exports=function(t,e){return null!=t&&a(t,e,i)}},207:function(t,e){t.exports=function(t){return t!=t}},209:function(t,e,n){var i=n(44),a=function(){try{var t=i(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=a},210:function(t,e,n){var i=n(151),a=n(74),o=n(71),r=n(12),s=n(52);t.exports=function(t,e,n,c){if(!r(t))return t;for(var l=-1,_=(e=a(e,t)).length,d=_-1,p=t;null!=p&&++l<_;){var u=s(e[l]),f=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return t;if(l!=d){var h=p[u];void 0===(f=c?c(h,u,p):void 0)&&(f=r(h)?h:o(e[l+1])?[]:{})}i(p,u,f),p=p[u]}return t}},217:function(t,e,n){var i=n(169)(Object.keys,Object);t.exports=i},218:function(t,e,n){var i=n(44)(n(23),"DataView");t.exports=i},219:function(t,e,n){var i=n(59),a=Object.prototype,o=a.hasOwnProperty,r=a.toString,s=i?i.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var i=!0}catch(t){}var a=r.call(t);return i&&(e?t[s]=n:delete t[s]),a}},220:function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},221:function(t,e,n){var i,a=n(202),o=(i=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";t.exports=function(t){return!!o&&o in t}},222:function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},223:function(t,e,n){var i=n(44)(n(23),"Promise");t.exports=i},224:function(t,e,n){var i=n(37),a=n(30);t.exports=function(t){return a(t)&&"[object Arguments]"==i(t)}},225:function(t,e,n){var i=n(37),a=n(98),o=n(30),r={};r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&a(t.length)&&!!r[i(t)]}},226:function(t,e,n){var i=n(146);t.exports=function(t){var e=i(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},227:function(t,e,n){var i=n(228),a=n(76),o=n(97);t.exports=function(){this.size=0,this.__data__={hash:new i,map:new(o||a),string:new i}}},228:function(t,e,n){var i=n(229),a=n(230),o=n(231),r=n(232),s=n(233);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}c.prototype.clear=i,c.prototype.delete=a,c.prototype.get=o,c.prototype.has=r,c.prototype.set=s,t.exports=c},229:function(t,e,n){var i=n(75);t.exports=function(){this.__data__=i?i(null):{},this.size=0}},23:function(t,e,n){var a=n(138),o="object"==("undefined"==typeof self?"undefined":i(self))&&self&&self.Object===Object&&self,r=a||o||Function("return this")();t.exports=r},230:function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},231:function(t,e,n){var i=n(75),a=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(i){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return a.call(e,t)?e[t]:void 0}},232:function(t,e,n){var i=n(75),a=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return i?void 0!==e[t]:a.call(e,t)}},233:function(t,e,n){var i=n(75);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=i&&void 0===e?"__lodash_hash_undefined__":e,this}},234:function(t,e){t.exports=function(){this.__data__=[],this.size=0}},235:function(t,e,n){var i=n(77),a=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=i(e,t);return!(n<0||(n==e.length-1?e.pop():a.call(e,n,1),--this.size,0))}},236:function(t,e,n){var i=n(77);t.exports=function(t){var e=this.__data__,n=i(e,t);return n<0?void 0:e[n][1]}},237:function(t,e,n){var i=n(77);t.exports=function(t){return i(this.__data__,t)>-1}},238:function(t,e,n){var i=n(77);t.exports=function(t,e){var n=this.__data__,a=i(n,t);return a<0?(++this.size,n.push([t,e])):n[a][1]=e,this}},239:function(t,e,n){var i=n(78);t.exports=function(t){var e=i(this,t).delete(t);return this.size-=e?1:0,e}},240:function(t,e){t.exports=function(t){var e=i(t);return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},241:function(t,e,n){var i=n(78);t.exports=function(t){return i(this,t).get(t)}},242:function(t,e,n){var i=n(78);t.exports=function(t){return i(this,t).has(t)}},243:function(t,e,n){var i=n(78);t.exports=function(t,e){var n=i(this,t),a=n.size;return n.set(t,e),this.size+=n.size==a?0:1,this}},244:function(t,e,n){var i=n(107),a=n(118);t.exports=function(t,e,n,o){var r=n.length,s=r,c=!o;if(null==t)return!s;for(t=Object(t);r--;){var l=n[r];if(c&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++r<s;){var _=(l=n[r])[0],d=t[_],p=l[1];if(c&&l[2]){if(void 0===d&&!(_ in t))return!1}else{var u=new i;if(o)var f=o(d,p,_,t,e,u);if(!(void 0===f?a(p,d,3,o,u):f))return!1}}return!0}},245:function(t,e,n){var i=n(76);t.exports=function(){this.__data__=new i,this.size=0}},246:function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},247:function(t,e){t.exports=function(t){return this.__data__.get(t)}},248:function(t,e){t.exports=function(t){return this.__data__.has(t)}},249:function(t,e,n){var i=n(76),a=n(97),o=n(100);t.exports=function(t,e){var n=this.__data__;if(n instanceof i){var r=n.__data__;if(!a||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(r)}return n.set(t,e),this.size=n.size,this}},250:function(t,e,n){var i=n(107),a=n(140),o=n(253),r=n(254),s=n(70),c=n(4),l=n(73),_=n(82),d="[object Arguments]",p="[object Array]",u="[object Object]",f=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,h,b,v){var m=c(t),g=c(e),w=m?p:s(t),y=g?p:s(e),x=(w=w==d?u:w)==u,C=(y=y==d?u:y)==u,k=w==y;if(k&&l(t)){if(!l(e))return!1;m=!0,x=!1}if(k&&!x)return v||(v=new i),m||_(t)?a(t,e,n,h,b,v):o(t,e,w,n,h,b,v);if(!(1&n)){var j=x&&f.call(t,"__wrapped__"),T=C&&f.call(e,"__wrapped__");if(j||T){var O=j?t.value():t,S=T?e.value():e;return v||(v=new i),b(O,S,n,h,v)}}return!!k&&(v||(v=new i),r(t,e,n,h,b,v))}},251:function(t,e){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},252:function(t,e){t.exports=function(t){return this.__data__.has(t)}},253:function(t,e,n){var i=n(59),a=n(174),o=n(60),r=n(140),s=n(175),c=n(129),l=i?i.prototype:void 0,_=l?l.valueOf:void 0;t.exports=function(t,e,n,i,l,d,p){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!d(new a(t),new a(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var u=s;case"[object Set]":var f=1&i;if(u||(u=c),t.size!=e.size&&!f)return!1;var h=p.get(t);if(h)return h==e;i|=2,p.set(t,e);var b=r(u(t),u(e),i,l,d,p);return p.delete(t),b;case"[object Symbol]":if(_)return _.call(t)==_.call(e)}return!1}},254:function(t,e,n){var i=n(176),a=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,r,s){var c=1&n,l=i(t),_=l.length;if(_!=i(e).length&&!c)return!1;for(var d=_;d--;){var p=l[d];if(!(c?p in e:a.call(e,p)))return!1}var u=s.get(t),f=s.get(e);if(u&&f)return u==e&&f==t;var h=!0;s.set(t,e),s.set(e,t);for(var b=c;++d<_;){var v=t[p=l[d]],m=e[p];if(o)var g=c?o(m,v,p,e,t,s):o(v,m,p,t,e,s);if(!(void 0===g?v===m||r(v,m,n,o,s):g)){h=!1;break}b||(b="constructor"==p)}if(h&&!b){var w=t.constructor,y=e.constructor;w==y||!("constructor"in t)||!("constructor"in e)||"function"==typeof w&&w instanceof w&&"function"==typeof y&&y instanceof y||(h=!1)}return s.delete(t),s.delete(e),h}},255:function(t,e,n){var i=n(178),a=n(17);t.exports=function(t){for(var e=a(t),n=e.length;n--;){var o=e[n],r=t[o];e[n]=[o,r,i(r)]}return e}},256:function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},257:function(t,e){t.exports=function(t,e,n){for(var i=n-1,a=t.length;++i<a;)if(t[i]===e)return i;return-1}},272:function(t,e,n){var i=n(244),a=n(255),o=n(179);t.exports=function(t){var e=a(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||i(n,t,e)}}},273:function(t,e,n){var i=n(118),a=n(1),o=n(206),r=n(111),s=n(178),c=n(179),l=n(52);t.exports=function(t,e){return r(t)&&s(e)?c(l(t),e):function(n){var r=a(n,t);return void 0===r&&r===e?o(n,t):i(e,r,3)}}},274:function(t,e,n){var i=n(256),a=n(288),o=n(111),r=n(52);t.exports=function(t){return o(t)?i(r(t)):a(t)}},287:function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},288:function(t,e,n){var i=n(92);t.exports=function(t){return function(e){return i(e,t)}}},29:function(t,e,n){var i=n(83);t.exports=function(t){return null==t?"":i(t)}},30:function(t,e){t.exports=function(t){return null!=t&&"object"==i(t)}},31:function(t,e,n){var i=n(45),a=n(32),o=n(311),r=n(4);t.exports=function(t,e){return(r(t)?i:o)(t,a(e,3))}},311:function(t,e,n){var i=n(86),a=n(38);t.exports=function(t,e){var n=-1,o=a(t)?Array(t.length):[];return i(t,(function(t,i,a){o[++n]=e(t,i,a)})),o}},32:function(t,e,n){var a=n(272),o=n(273),r=n(51),s=n(4),c=n(274);t.exports=function(t){return"function"==typeof t?t:null==t?r:"object"==i(t)?s(t)?o(t[0],t[1]):a(t):c(t)}},328:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTemplateEditorIframe=e.getMotionEffectTrackerContainer=e.getEditorWritingFlowSelector=e.getEditorInserterMenuSelector=e.getContentAreaSelectorList=e.getContentAreaSelectorByVersion=e.getContentAreaSelector=void 0;var i=c(n(31)),a=c(n(65)),o=c(n(4)),r=c(n(7)),s=c(n(1));function c(t){return t&&t.__esModule?t:{default:t}}var l=function(){return{5.5:"interface-interface-skeleton__content",5.4:"block-editor-editor-skeleton__content",5.3:"edit-post-layout__content",5.2:"edit-post-layout__content","gutenberg-7.1":"edit-post-editor-regions__content"}};e.getContentAreaSelectorList=l;var _=function t(e,n){if((0,o.default)(e))return(0,i.default)(e,(function(e){return t(e,n)}));var a=n?".":"",r=(0,s.default)({5.5:"interface-interface-skeleton__content",5.4:"block-editor-editor-skeleton__content",5.3:"edit-post-layout__content",5.2:"edit-post-layout__content","gutenberg-7.1":"edit-post-editor-regions__content"},e,"");return"".concat(a).concat(r)};e.getContentAreaSelectorByVersion=_;var d=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e?".":"";return n+((0,a.default)(t.document.querySelector(_("5.5",!0)))?(0,a.default)(t.document.querySelector(_("5.4",!0)))?(0,a.default)(t.document.querySelector(_("gutenberg-7.1",!0)))?_("5.2"):_("gutenberg-7.1"):_("5.4"):_("5.5"))};e.getContentAreaSelector=d,e.getEditorWritingFlowSelector=function(){arguments.length>0&&void 0!==arguments[0]||window;var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=t?".":"",n="block-editor-writing-flow";return e+n},e.getEditorInserterMenuSelector=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=d(t,!1),i=e?".":"";return i+((0,r.default)(_(["5.4","5.5"]),n)?"block-editor-inserter__menu":"editor-inserter__menu")},e.getMotionEffectTrackerContainer=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=d(t,!1),i=e?".":"";return i+("block-editor-editor-skeleton__content"===n?"block-editor-writing-flow":n)},e.getTemplateEditorIframe=function(t){return t.jQuery('iframe[name="editor-canvas"]').contents()}},33:function(t,e,n){var i=n(150);t.exports=function(t){var e=i(t),n=e%1;return e==e?n?e-n:e:0}},334:function(t,e,n){var i=n(83),a=n(165),o=n(181),r=n(90),s=n(345),c=n(166),l=n(29);t.exports=function(t,e,n){return n&&"number"!=typeof n&&r(t,e,n)&&(e=n=void 0),(n=void 0===n?4294967295:n>>>0)?(t=l(t))&&("string"==typeof e||null!=e&&!s(e))&&!(e=i(e))&&o(t)?a(c(t),0,n):t.split(e,n):[]}},343:function(t,e){t.exports=function(t){return t.split("")}},344:function(t,e){var n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",a="[^\\ud800-\\udfff]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",r="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+n+"|"+i+")?",c="[\\ufe0e\\ufe0f]?",l=c+s+"(?:\\u200d(?:"+[a,o,r].join("|")+")"+c+s+")*",_="(?:"+[a+n+"?",n,o,r,"[\\ud800-\\udfff]"].join("|")+")",d=RegExp(i+"(?="+i+")|"+_+l,"g");t.exports=function(t){return t.match(d)||[]}},345:function(t,e,n){var i=n(439),a=n(81),o=n(106),r=o&&o.isRegExp,s=r?a(r):i;t.exports=s},35:function(t,e,n){var i=n(37),a=n(12);t.exports=function(t){if(!a(t))return!1;var e=i(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},353:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setImportantInlineValue=e.registerFrontendComponent=e.maybeIncreaseEmitterMaxListeners=e.maybeDecreaseEmitterMaxListeners=e.isVB=e.isTB=e.isLBP=e.isLBB=e.isFE=e.isExtraTheme=e.isDiviTheme=e.isBuilderType=e.isBuilder=e.isBlockEditor=e.isBFB=e.is=e.getOffsets=e.getBuilderUtilsParams=e.getBuilderType=void 0;var a=c(n(7)),o=c(n(1)),r=c(n(8)),s=n(354);function c(t){return t&&t.__esModule?t:{default:t}}function l(t){return(l="function"==typeof Symbol&&"symbol"==i(Symbol.iterator)?function(t){return i(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":i(t)})(t)}var _=function(){return window.et_builder_utils_params?window.et_builder_utils_params:s.top_window.et_builder_utils_params?s.top_window.et_builder_utils_params:{}};e.getBuilderUtilsParams=_;var d=function(){return(0,o.default)(_(),"builderType","")};e.getBuilderType=d;var p=function(t){return t===d()};e.isBuilderType=p;var u=function(t){return(0,o.default)(_(),"condition.".concat(t))};e.is=u;var f=p("fe");e.isFE=f;var h=p("vb");e.isVB=h;var b=p("bfb");e.isBFB=b;var v=p("tb");e.isTB=v;var m=p("lbb");e.isLBB=m;var g=u("diviTheme");e.isDiviTheme=g;var w=u("extraTheme");e.isExtraTheme=w;var y=p("lbp");e.isLBP=y;var x=0<(0,r.default)(s.top_window.document).find(".edit-post-layout__content").length;e.isBlockEditor=x;var C=(0,a.default)(["vb","bfb","tb","lbb"],d());e.isBuilder=C,e.getOffsets=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=C&&t.hasClass("et_pb_sticky")&&"fixed"!==t.css("position"),a=t.data("et-offsets"),r=t.data("et-offsets-device"),s=(0,o.default)(window.ET_FE,"stores.window.breakpoint","");if(i&&void 0!==a&&r===s)return a;var c=t.offset();if(void 0===c)return{};var l=C?t.children('.et-fb-custom-css-output[data-sticky-has-transform="on"]').length>0:t.hasClass("et_pb_sticky--has-transform"),_=void 0===c.top?0:c.top,d=void 0===c.left?0:c.left;if(l){var p=t.parent().offset(),u={top:c.top-p.top,left:c.left-p.left},f={top:t[0].offsetTop,left:t[0].offsetLeft};_+=f.top-u.top,c.top=_,d+=f.left-u.left,c.left=d}return c.right=d+e,c.bottom=_+n,t.data("et-offsets",c),""!==s&&t.data("et-offsets-device",c),c},e.maybeIncreaseEmitterMaxListeners=function(t,e){var n=t.listenerCount(e),i=t.getMaxListeners();n===i&&t.setMaxListeners(i+1)},e.maybeDecreaseEmitterMaxListeners=function(t,e){var n=t.listenerCount(e);t.getMaxListeners()>10&&t.setMaxListeners(n)},e.registerFrontendComponent=function(t,e,n){void 0===window.ET_FE&&(window.ET_FE={}),"object"!==l(window.ET_FE[t])&&(window.ET_FE[t]={}),window.ET_FE[t][e]=n},e.setImportantInlineValue=function(t,e,n){t.css(e,"");var i=t.attr("style");t.attr("style","".concat(i," ").concat(e,": ").concat(n," !important;"))}},354:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.top_window=e.is_iframe=void 0;var i=window;e.top_window=i;var a,o=!1;e.is_iframe=o;try{a=!!window.top.document&&window.top}catch(t){a=!1}a&&a.__Cypress__?window.parent===a?(e.top_window=i=window,e.is_iframe=o=!1):(e.top_window=i=window.parent,e.is_iframe=o=!0):a&&(e.top_window=i=a,e.is_iframe=o=a!==window.self)},36:function(t,e,n){var i=n(37),a=n(4),o=n(30);t.exports=function(t){return"string"==typeof t||!a(t)&&o(t)&&"[object String]"==i(t)}},37:function(t,e,n){var i=n(59),a=n(219),o=n(220),r=i?i.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":r&&r in Object(t)?a(t):o(t)}},38:function(t,e,n){var i=n(35),a=n(98);t.exports=function(t){return null!=t&&a(t.length)&&!i(t)}},4:function(t,e){var n=Array.isArray;t.exports=n},439:function(t,e,n){var i=n(37),a=n(30);t.exports=function(t){return a(t)&&"[object RegExp]"==i(t)}},44:function(t,e,n){var i=n(201),a=n(222);t.exports=function(t,e){var n=a(t,e);return i(n)?n:void 0}},45:function(t,e){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length,a=Array(i);++n<i;)a[n]=e(t[n],n,t);return a}},51:function(t,e){t.exports=function(t){return t}},52:function(t,e,n){var i=n(53);t.exports=function(t){if("string"==typeof t||i(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},53:function(t,e,n){var a=n(37),o=n(30);t.exports=function(t){return"symbol"==i(t)||o(t)&&"[object Symbol]"==a(t)}},54:function(t,e,n){var i=n(210);t.exports=function(t,e,n){return null==t?t:i(t,e,n)}},59:function(t,e,n){var i=n(23).Symbol;t.exports=i},60:function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},65:function(t,e){t.exports=function(t){return null===t}},7:function(t,e,n){var i=n(101),a=n(38),o=n(36),r=n(33),s=n(85),c=Math.max;t.exports=function(t,e,n,l){t=a(t)?t:s(t),n=n&&!l?r(n):0;var _=t.length;return n<0&&(n=c(_+n,0)),o(t)?n<=_&&t.indexOf(e,n)>-1:!!_&&i(t,e,n)>-1}},70:function(t,e,n){var i=n(218),a=n(97),o=n(223),r=n(170),s=n(171),c=n(37),l=n(139),_="[object Map]",d="[object Promise]",p="[object Set]",u="[object WeakMap]",f="[object DataView]",h=l(i),b=l(a),v=l(o),m=l(r),g=l(s),w=c;(i&&w(new i(new ArrayBuffer(1)))!=f||a&&w(new a)!=_||o&&w(o.resolve())!=d||r&&w(new r)!=p||s&&w(new s)!=u)&&(w=function(t){var e=c(t),n="[object Object]"==e?t.constructor:void 0,i=n?l(n):"";if(i)switch(i){case h:return f;case b:return _;case v:return d;case m:return p;case g:return u}return e}),t.exports=w},71:function(t,e){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var a=i(t);return!!(e=null==e?9007199254740991:e)&&("number"==a||"symbol"!=a&&n.test(t))&&t>-1&&t%1==0&&t<e}},73:function(t,e,n){(function(t){var a=n(23),o=n(186),r=e&&!e.nodeType&&e,s=r&&"object"==i(t)&&t&&!t.nodeType&&t,c=s&&s.exports===r?a.Buffer:void 0,l=(c?c.isBuffer:void 0)||o;t.exports=l}).call(this,n(95)(t))},74:function(t,e,n){var i=n(4),a=n(111),o=n(172),r=n(29);t.exports=function(t,e){return i(t)?t:a(t,e)?[t]:o(r(t))}},75:function(t,e,n){var i=n(44)(Object,"create");t.exports=i},76:function(t,e,n){var i=n(234),a=n(235),o=n(236),r=n(237),s=n(238);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}c.prototype.clear=i,c.prototype.delete=a,c.prototype.get=o,c.prototype.has=r,c.prototype.set=s,t.exports=c},77:function(t,e,n){var i=n(60);t.exports=function(t,e){for(var n=t.length;n--;)if(i(t[n][0],e))return n;return-1}},78:function(t,e,n){var i=n(240);t.exports=function(t,e){var n=t.__data__;return i(e)?n["string"==typeof e?"string":"hash"]:n.map}},8:function(t,e){t.exports=window.jQuery},80:function(t,e,n){var i=n(224),a=n(30),o=Object.prototype,r=o.hasOwnProperty,s=o.propertyIsEnumerable,c=i(function(){return arguments}())?i:function(t){return a(t)&&r.call(t,"callee")&&!s.call(t,"callee")};t.exports=c},81:function(t,e){t.exports=function(t){return function(e){return t(e)}}},82:function(t,e,n){var i=n(225),a=n(81),o=n(106),r=o&&o.isTypedArray,s=r?a(r):i;t.exports=s},83:function(t,e,n){var i=n(59),a=n(45),o=n(4),r=n(53),s=i?i.prototype:void 0,c=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return a(e,t)+"";if(r(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},85:function(t,e,n){var i=n(190),a=n(17);t.exports=function(t){return null==t?[]:i(t,a(t))}},86:function(t,e,n){var i=n(126),a=n(204)(i);t.exports=a},88:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==("undefined"==typeof window?"undefined":i(window))&&(n=window)}t.exports=n},89:function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},9:function(t,e,n){var i=n(99),a=n(86),o=n(110),r=n(4);t.exports=function(t,e){return(r(t)?i:a)(t,o(e))}},90:function(t,e,n){var a=n(60),o=n(38),r=n(71),s=n(12);t.exports=function(t,e,n){if(!s(n))return!1;var c=i(e);return!!("number"==c?o(n)&&r(e,n.length):"string"==c&&e in n)&&a(n[e],t)}},92:function(t,e,n){var i=n(74),a=n(52);t.exports=function(t,e){for(var n=0,o=(e=i(e,t)).length;null!=t&&n<o;)t=t[a(e[n++])];return n&&n==o?t:void 0}},95:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},97:function(t,e,n){var i=n(44)(n(23),"Map");t.exports=i},98:function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},99:function(t,e){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t}}}))},function(t,e,n){var i=n(25),a=n(26),o=n(27);t.exports=function(t,e,n){return e==e?o(t,e,n):i(t,a,n)}},function(t,e){t.exports=function(t,e,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o<a;)if(e(t[o],o,t))return o;return-1}},function(t,e){t.exports=function(t){return t!=t}},function(t,e){t.exports=function(t,e,n){for(var i=n-1,a=t.length;++i<a;)if(t[i]===e)return i;return-1}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var i=n(10),a=Object.prototype,o=a.hasOwnProperty,r=a.toString,s=i?i.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var i=!0}catch(t){}var a=r.call(t);return i&&(e?t[s]=n:delete t[s]),a}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var i=n(1),a=n(2),o=n(3);t.exports=function(t){return"string"==typeof t||!a(t)&&o(t)&&"[object String]"==i(t)}},function(t,e,n){var i=n(33);t.exports=function(t){var e=i(t),n=e%1;return e==e?n?e-n:e:0}},function(t,e,n){var i=n(34);t.exports=function(t){return t?(t=i(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},function(t,e,n){var i=n(35),a=n(11),o=n(5),r=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(a(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=a(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=i(t);var n=s.test(t);return n||c.test(t)?l(t.slice(2),n?2:8):r.test(t)?NaN:+t}},function(t,e,n){var i=n(36),a=/^\s+/;t.exports=function(t){return t?t.slice(0,i(t)+1).replace(a,""):t}},function(t,e){var n=/\s/;t.exports=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e}},function(t,e,n){var i=n(38),a=n(39);t.exports=function(t){return null==t?[]:i(t,a(t))}},function(t,e,n){var i=n(16);t.exports=function(t,e){return i(e,(function(e){return t[e]}))}},function(t,e,n){var i=n(40),a=n(51),o=n(12);t.exports=function(t){return o(t)?i(t):a(t)}},function(t,e,n){var i=n(41),a=n(42),o=n(2),r=n(44),s=n(46),c=n(47),l=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),_=!n&&a(t),d=!n&&!_&&r(t),p=!n&&!_&&!d&&c(t),u=n||_||d||p,f=u?i(t.length,String):[],h=f.length;for(var b in t)!e&&!l.call(t,b)||u&&("length"==b||d&&("offset"==b||"parent"==b)||p&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||s(b,h))||f.push(b);return f}},function(t,e){t.exports=function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}},function(t,e,n){var i=n(43),a=n(3),o=Object.prototype,r=o.hasOwnProperty,s=o.propertyIsEnumerable,c=i(function(){return arguments}())?i:function(t){return a(t)&&r.call(t,"callee")&&!s.call(t,"callee")};t.exports=c},function(t,e,n){var i=n(1),a=n(3);t.exports=function(t){return a(t)&&"[object Arguments]"==i(t)}},function(t,e,n){(function(t){var i=n(4),a=n(45),o=e&&!e.nodeType&&e,r=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=r&&r.exports===o?i.Buffer:void 0,c=(s?s.isBuffer:void 0)||a;t.exports=c}).call(this,n(17)(t))},function(t,e){t.exports=function(){return!1}},function(t,e){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var i=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==i||"symbol"!=i&&n.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e,n){var i=n(48),a=n(49),o=n(50),r=o&&o.isTypedArray,s=r?a(r):i;t.exports=s},function(t,e,n){var i=n(1),a=n(15),o=n(3),r={};r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&a(t.length)&&!!r[i(t)]}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,n){(function(t){var i=n(14),a=e&&!e.nodeType&&e,o=a&&"object"==typeof t&&t&&!t.nodeType&&t,r=o&&o.exports===a&&i.process,s=function(){try{var t=o&&o.require&&o.require("util").types;return t||r&&r.binding&&r.binding("util")}catch(t){}}();t.exports=s}).call(this,n(17)(t))},function(t,e,n){var i=n(52),a=n(53),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!i(t))return a(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var i=n(54)(Object.keys,Object);t.exports=i},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){var i=n(56),a=n(89);t.exports=function(t,e){for(var n=0,o=(e=i(e,t)).length;null!=t&&n<o;)t=t[a(e[n++])];return n&&n==o?t:void 0}},function(t,e,n){var i=n(2),a=n(57),o=n(58),r=n(87);t.exports=function(t,e){return i(t)?t:a(t,e)?[t]:o(r(t))}},function(t,e,n){var i=n(2),a=n(5),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;t.exports=function(t,e){if(i(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!a(t))||(r.test(t)||!o.test(t)||null!=e&&t in Object(e))}},function(t,e,n){var i=n(59),a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,r=i((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(a,(function(t,n,i,a){e.push(i?a.replace(o,"$1"):n||t)})),e}));t.exports=r},function(t,e,n){var i=n(60);t.exports=function(t){var e=i(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},function(t,e,n){var i=n(61);function a(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var i=arguments,a=e?e.apply(this,i):i[0],o=n.cache;if(o.has(a))return o.get(a);var r=t.apply(this,i);return n.cache=o.set(a,r)||o,r};return n.cache=new(a.Cache||i),n}a.Cache=i,t.exports=a},function(t,e,n){var i=n(62),a=n(82),o=n(84),r=n(85),s=n(86);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}c.prototype.clear=i,c.prototype.delete=a,c.prototype.get=o,c.prototype.has=r,c.prototype.set=s,t.exports=c},function(t,e,n){var i=n(63),a=n(74),o=n(81);t.exports=function(){this.size=0,this.__data__={hash:new i,map:new(o||a),string:new i}}},function(t,e,n){var i=n(64),a=n(70),o=n(71),r=n(72),s=n(73);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}c.prototype.clear=i,c.prototype.delete=a,c.prototype.get=o,c.prototype.has=r,c.prototype.set=s,t.exports=c},function(t,e,n){var i=n(6);t.exports=function(){this.__data__=i?i(null):{},this.size=0}},function(t,e,n){var i=n(13),a=n(66),o=n(11),r=n(68),s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,_=c.toString,d=l.hasOwnProperty,p=RegExp("^"+_.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||a(t))&&(i(t)?p:s).test(r(t))}},function(t,e,n){var i,a=n(67),o=(i=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";t.exports=function(t){return!!o&&o in t}},function(t,e,n){var i=n(4)["__core-js_shared__"];t.exports=i},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var i=n(6),a=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(i){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return a.call(e,t)?e[t]:void 0}},function(t,e,n){var i=n(6),a=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return i?void 0!==e[t]:a.call(e,t)}},function(t,e,n){var i=n(6);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=i&&void 0===e?"__lodash_hash_undefined__":e,this}},function(t,e,n){var i=n(75),a=n(76),o=n(78),r=n(79),s=n(80);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}c.prototype.clear=i,c.prototype.delete=a,c.prototype.get=o,c.prototype.has=r,c.prototype.set=s,t.exports=c},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var i=n(7),a=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=i(e,t);return!(n<0)&&(n==e.length-1?e.pop():a.call(e,n,1),--this.size,!0)}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){var i=n(7);t.exports=function(t){var e=this.__data__,n=i(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var i=n(7);t.exports=function(t){return i(this.__data__,t)>-1}},function(t,e,n){var i=n(7);t.exports=function(t,e){var n=this.__data__,a=i(n,t);return a<0?(++this.size,n.push([t,e])):n[a][1]=e,this}},function(t,e,n){var i=n(18)(n(4),"Map");t.exports=i},function(t,e,n){var i=n(8);t.exports=function(t){var e=i(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var i=n(8);t.exports=function(t){return i(this,t).get(t)}},function(t,e,n){var i=n(8);t.exports=function(t){return i(this,t).has(t)}},function(t,e,n){var i=n(8);t.exports=function(t,e){var n=i(this,t),a=n.size;return n.set(t,e),this.size+=n.size==a?0:1,this}},function(t,e,n){var i=n(88);t.exports=function(t){return null==t?"":i(t)}},function(t,e,n){var i=n(10),a=n(16),o=n(2),r=n(5),s=i?i.prototype:void 0,c=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return a(e,t)+"";if(r(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},function(t,e,n){var i=n(5);t.exports=function(t){if("string"==typeof t||i(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},,,,,,function(t,e,n){"use strict";n.r(e);n(21),n(22),n(23);var i=n(19),a=n.n(i),o=n(9),r=n.n(o),s=n(20),c=n.n(s),l=n(0);var _=function(){return window.et_builder_utils_params?window.et_builder_utils_params:l.a.et_builder_utils_params?l.a.et_builder_utils_params:{}},d=function(){return r()(_(),"builderType","")},p=function(t){return t===d()},u=function(t){return r()(_(),"condition.".concat(t))},f=(p("fe"),p("vb"),p("bfb"),p("tb"),p("lbb"),u("diviTheme"),u("extraTheme"),p("lbp"),c()(l.a.document).find(".edit-post-layout__content").length,a()(["vb","bfb","tb","lbb"],d()));!function(t){window.et_calculating_scroll_position=!1,window.et_side_nav_links_initialized=!1;var e=f?ET_Builder.Frames.top:window,n={};function i(){return n.et_get_first_section?n.et_get_first_section:n.et_get_first_section=t(".et-l:not(.et-l--footer) .et_pb_section:visible").first()}var a="ontouchstart"in window||navigator.maxTouchPoints,o=t(window),r=t("#main-content .container:first-child");function s(t,e,n){var i,a,o,r,s,c=Date.now||(new Date).getTime(),l=function l(){var _=c-r;_<e&&_>=0?i=setTimeout(l,e-_):(i=null,n||(s=t.apply(o,a),i||(o=a=null)))};return function(){o=this,a=arguments,r=c;var _=n&&!i;return i||(i=setTimeout(l,e)),_&&(s=t.apply(o,a),o=a=null),s}}function c(e){var n,i=t("body"),a=t("#logo"),o=parseInt(a.attr("data-actual-width")),r=parseInt(a.attr("data-actual-height")),s=parseInt(a.attr("data-height-percentage")),c=t("#et-top-navigation"),l=parseInt(c.attr("data-height")),_=parseInt(c.attr("data-fixed-height")),d=t("#main-header"),p=i.hasClass("et_header_style_split"),u=d.hasClass("et-fixed-header"),f=i.hasClass("et_hide_primary_logo"),h=i.hasClass("et_hide_fixed_logo"),b=u?l:_;e=void 0!==e&&e,p&&!window.et_is_vertical_nav&&(e&&(b=l),n=o*((b*(s/100)+22)/r),f&&(u||e)&&(n=0),!h||u||e||(n=0),t(".et_header_style_split .centered-inline-logo-wrap").css({width:n+"px"}))}function l(e){var n=t(".et_header_style_slide .et_slide_in_menu_container"),i=t(".et_header_style_slide #page-container, .et_header_style_slide.et_fixed_nav #main-header"),a=t(".et_header_style_slide #main-header"),o=n.hasClass("et_pb_slide_menu_opened"),r=void 0!==e?e:"auto",s=t("body").hasClass("et_boxed_layout"),c=s?parseFloat(t("#page-container").css("margin-left")):0,l=n.innerWidth(),_=t("body").hasClass("rtl");"auto"!==r&&(o&&"open"===r||!o&&"close"===r)||(o?(_?(n.css({left:"-"+l+"px"}),i.css({right:"0px"})):(n.css({right:"-"+l+"px"}),i.css({left:"0px"})),s&&et_is_fixed_nav&&(_?a.css({right:c+"px"}):a.css({left:c+"px"})),setTimeout((function(){n.css({display:"none"})}),700)):(n.css({display:"block"}),setTimeout((function(){if(_?(n.css({left:"0px"}),i.css({right:"-"+(l-c)+"px"})):(n.css({right:"0px"}),i.css({left:"-"+(l-c)+"px"})),s&&et_is_fixed_nav){var t=0>l-2*c?Math.abs(l-2*c):"-"+(l-2*c);t<l&&(_?a.css({right:t+"px"}):a.css({left:t+"px"}))}}),50)),t("body").toggleClass("et_pb_slide_menu_active"),n.toggleClass("et_pb_slide_menu_opened"))}function _(){if(et_is_fixed_nav&&!(980>=parseInt(o.width()))){var e=parseInt(t("#main-header").length?t("#main-header").innerHeight():0);t("html, body").animate({scrollTop:t("form.checkout").offset().top-100-e},1e3)}}function d(){var e=t(".et_header_style_fullscreen .et_slide_in_menu_container"),n=e.find(".et_slide_menu_top").innerHeight();e.toggleClass("et_pb_fullscreen_menu_opened"),t("body").toggleClass("et_pb_fullscreen_menu_active"),p(),e.hasClass("et_pb_fullscreen_menu_opened")?(e.addClass("et_pb_fullscreen_menu_animated"),e.css({"padding-top":n+20+"px"})):setTimeout((function(){e.removeClass("et_pb_fullscreen_menu_animated")}),1e3)}function p(t){if(f){var n=jQuery(".et_header_style_fullscreen .et_slide_in_menu_container.et_pb_fullscreen_menu_opened");if(n.length>0){var i=jQuery(e).height();i-=parseInt(n.css("padding-top"),10),n.closest(".admin-bar").length>0&&(i-=32),n.find(".et_pb_fullscreen_nav_container").css("max-height",i+"px")}}}if(document.addEventListener("DOMContentLoaded",(function(){var n,a=t("body").hasClass("et_fixed_nav")||t("body").hasClass("et_vertical_fixed"),l=t("body").hasClass("et_vertical_fixed"),_=t("body").hasClass("rtl"),u=t("body").hasClass("et_hide_nav"),h=t("body").hasClass("et_header_style_left"),b=t("#top-header"),v=t("#main-header"),m=t("#page-container"),g=t("body.single"),w=!1,y=0,x=t("#et-top-navigation"),C=t("#logo"),k=t("ul.nav, ul.menu"),j=t(".container"),T=t("body").hasClass("et_is_customize_preview"),O=t("#et-secondary-menu a.et-cart-info");if(t(".woocommerce .woocommerce-product-gallery").length>0){var S=t(".woocommerce-product-gallery")[0],P=S.outerHTML.replace("data-columns","data-cols");S.outerHTML=P}function z(){var e=t("#main-header > .container > .logo_container"),n=t(".centered-inline-logo-wrap > .logo_container"),i=x.children("nav").children("ul").children("li").length,a=Math.round(i/2)-1,r=window.innerWidth||o.width();r>980&&e.length&&t("body").hasClass("et_header_style_split")&&(t('<li class="centered-inline-logo-wrap"></li>').insertAfter(x.find("nav > ul >li:nth("+a+")")),e.appendTo(x.find(".centered-inline-logo-wrap"))),r<=980&&n.length&&(n.prependTo("#main-header > .container"),t("#main-header .centered-inline-logo-wrap").remove())}function I(){var e=t("body");if(e.hasClass("et_boxed_layout")&&e.hasClass("et_vertical_fixed")&&e.hasClass("et_vertical_right")){var n=parseFloat(t("#page-container").css("margin-right"));n=0>(n+=parseFloat(t("#et-main-area").css("margin-right"))-225)?0:n,t("#main-header").addClass("et_vertical_menu_set").css({left:"",right:n+"px"})}}O.length>0&&t(".shop_table.cart").length>0&&t(document.body).on("updated_wc_div",(function(){var e,n=0;t(".shop_table.cart").find(".product-quantity input").each((function(){n+=parseInt(t(this).val())})),e=(e=1===n?DIVI.item_count:DIVI.items_count).replace("%d",n),O.find("span").text(e)})),window.et_pb_init_nav_menu(k),(t(".et_header_style_split").length&&!window.et_is_vertical_nav||T)&&(z(),t(window).on("resize",(function(){z()}))),window.et_is_vertical_nav&&(t("#main-header").height()<t("#et-top-navigation").height()&&t("#main-header").height(t("#et-top-navigation").height()+t("#logo").height()+100),I()),window.et_calculate_header_values=function(){var e=b.length&&b.is(":visible")?parseInt(b.innerHeight()):0,i=t("#wpadminbar").length?parseInt(t("#wpadminbar").innerHeight()):0,a=t(".et_header_style_slide .et_slide_in_menu_container"),o=t("body").hasClass("rtl");if(y=parseInt(t("#main-header").length?t("#main-header").innerHeight():0)+e,n=(y<=90?y-29:y-56)+i,a.length&&!t("body").hasClass("et_pb_slide_menu_active")&&(o?a.css({left:"-"+parseInt(a.innerWidth())+"px",display:"none"}):a.css({right:"-"+parseInt(a.innerWidth())+"px",display:"none"}),t("body").hasClass("et_boxed_layout")))if(o){var r=m.css("margin-right");v.css({right:r})}else{r=m.css("margin-left");v.css({left:r})}};var A=t("#commentform");if(et_pb_form_placeholders_init(A),A.on("submit",(function(){et_pb_remove_placeholder_text(A)})),et_duplicate_menu(t("#et-top-navigation ul.nav"),t("#et-top-navigation .mobile_nav"),"mobile_menu","et_mobile_menu"),et_duplicate_menu("",t(".et_pb_fullscreen_nav_container"),"mobile_menu_slide","et_mobile_menu","no_click_event"),t("ul.et_disable_top_tier").length){var E=t("ul.et_disable_top_tier > li > ul").prev("a");E.attr("href","#"),E.on("click",(function(t){t.preventDefault()}));var B=t("ul#mobile_menu > li > ul").prev("a");B.attr("href","#"),B.on("click",(function(t){t.preventDefault()}))}if(t("#et-secondary-nav").length&&t("#et-top-navigation #mobile_menu").append(t("#et-secondary-nav").clone().html()),t(".et_slide_in_menu_container").length){var M=t(".et_slide_in_menu_container").find(".menu-item-has-children > a");M.length&&M.append('<span class="et_mobile_menu_arrow"></span>')}function H(n){setTimeout((function(){var n=0,i=t("body"),a=f?e.jQuery("#wpadminbar"):t("#wpadminbar"),o=e.jQuery("html"),r=t("#top-header"),s=o.is(".et-fb-preview--zoom:not(.et-fb-preview--desktop)");if(s=(s=s||o.is(".et-fb-preview--tablet"))||o.is(".et-fb-preview--phone"),a.length&&!Number.isNaN(a.innerHeight())){var c=parseFloat(a.innerHeight());n+=f&&s?0:c}r.length&&r.is(":visible")&&(n+=r.innerHeight());var l=i.hasClass("et_fixed_nav"),_=!l&&i.hasClass("et_transparent_nav")&&i.hasClass("et_secondary_nav_enabled");window.et_is_vertical_nav||!l&&!_||t("#main-header").css("top",n+"px")}),n)}function F(){var e=t("body"),n=t(document).height(),i=t(window).height()+y+200;e.hasClass("et_vertical_nav")||(e.hasClass("et_hide_nav")||e.hasClass("et_hide_nav_disabled")&&e.hasClass("et_fixed_nav"))&&(n>i?(e.hasClass("et_hide_nav_disabled")&&(e.addClass("et_hide_nav"),e.removeClass("et_hide_nav_disabled")),t("#main-header").css("transform","translateY(-"+y+"px)"),t("#top-header").css("transform","translateY(-"+y+"px)")):(t("#main-header").css({transform:"translateY(0)",opacity:"1"}),t("#top-header").css({transform:"translateY(0)",opacity:"1"}),e.removeClass("et_hide_nav"),e.addClass("et_hide_nav_disabled")),W())}function L(t,e){var n={};n[e]=t.css(e),t.attr({"data-fix-page-container":"on"}).data({fix_page_container_style:n})}function D(t,e){if(void 0===t)return!1;var n=t.split("|");return void 0!==n[e]&&n[e]}function W(){var e,n,s=parseInt(o.width()),c=b.length&&b.is(":visible")?parseInt(b.innerHeight()):0,l=0,_=v.clone().addClass("et-disabled-animations main-header-clone").css({opacity:"0px",position:"fixed",top:"auto",right:"0px",bottom:"0px",left:"0px"}).appendTo(t("body"));if(t("body").hasClass("et-bfb")||t('*[data-fix-page-container="on"]').each((function(){var e=t(this),n=e.data();n&&n.fix_page_container_style&&e.css(n.fix_page_container_style)})),s>980&&(!v.attr("data-height-loaded")||t("body").is(".et-fb"))){var d=0;v.hasClass("et-fixed-header")?(_.removeClass("et-fixed-header"),d=_.height(),_.addClass("et-fixed-header")):d=v.height(),v.attr({"data-height-onload":parseInt(d),"data-height-loaded":!0})}if(s<=980?(e=parseInt(v.length?v.innerHeight():0)+c-(t("body").hasClass("et-fb")?0:1),window.et_is_transparent_nav&&!i().length&&(e+=58)):(e=parseInt(v.attr("data-height-onload"))+c,window.et_is_transparent_nav&&!window.et_is_vertical_nav&&r.length&&(e+=58),l=_.height()),u){var p=parseInt(x.data("height"))-parseInt(x.data("fixed-height"));l=parseInt(v.data("height-onload"))-p}v.attr({"data-fixed-height-onload":l});var f=t(".et_fixed_nav.et_transparent_nav.et-db.et_full_width_page #left-area > .woocommerce-notices-wrapper");if(f.length>0&&"yes"!==f.attr("data-position-set")){var h=l;0===h&&v.attr("data-height-onload")&&(h=v.attr("data-height-onload")),f.css("marginTop",parseFloat(h)+"px"),f.animate({opacity:"1"}),f.attr("data-position-set","yes")}var w=t(document).height(),C=t(window).height()+y+200>w,k=parseInt(t(window).width())>980&&u;if(!window.et_is_transparent_nav||window.et_is_vertical_nav||k&&!C)a&&m.css("paddingTop",e+"px");else{t("body").hasClass("et-bfb")||i().addClass("et_pb_section_first");var j=i().length,T=j&&g.length,O=r.find(".et_post_meta_wrapper").first(),S=O.find("h1.entry-title"),P=t(".single.et_pb_pagebuilder_layout.et_full_width_page"),z=P.length&&S.length,I=P.length&&0===S.length,A=T&&t(".et-l--body").length,E=i().is(".et_pb_fullwidth_section"),B=s<=980&&r.length,M=t("body").hasClass("single-project");if(A||!T||I&&E||M)if(E){var F=i().children(".et_pb_module:visible").first();if(I&&E&&s>980&&(e-=58),F.is(".et_pb_slider")){var W=F.find(".et_pb_slide_image"),q=F.find(".et_pb_slide"),N=F.find(".et_pb_slide .et_pb_container"),$=0-parseInt(W.height())/2,V=F.find(".et-pb-slider-arrows a"),R=V.height();L(q,"paddingTop"),q.css({paddingTop:e+"px"}),N.css({"min-height":""}),L(W,"marginTop"),W.css({marginTop:$+"px"}),L(V,"marginTop"),V.css({marginTop:e/2-R/2+"px"});var Q=0;F.find(".et_pb_slide").each((function(){var e=t(this),n=e.find(".et_pb_container");e.show(),n.css({"min-height":""});var i=n.innerHeight();Q<i&&(Q=i),e.is(':not(".et-pb-active-slide")')&&e.hide()})),L(N,"min-height"),N.css({"min-height":Q+"px"})}else if(F.is(".et_pb_fullwidth_header")){F.removeAttr("style");var U=parseInt(F.css("paddingTop"));L(F,"paddingTop"),F.css({paddingTop:e+U+"px"})}else if(F.is(".et_pb_fullwidth_portfolio"))L(F,"paddingTop"),F.css({paddingTop:e+"px"});else if(F.is(".et_pb_map_container")){var Z=F.find(".et_pb_map");Z.css({height:""}),F.find(".et_pb_map").css({height:e+parseInt(Z.css("height"))+"px"}),F.addClass("et_beneath_transparent_nav")}else if(F.is(".et_pb_menu")||F.is(".et_pb_fullwidth_menu"))L(F,"marginTop"),F.css({marginTop:e+"px"});else if(F.is(".et_pb_fullwidth_code")){var Y=F;Y.css({paddingTop:""});var G=parseInt(Y.css("paddingTop"));L(Y,"paddingTop"),Y.css({paddingTop:e+G+"px"})}else if(F.is(".et_pb_post_title")){L(F,"paddingTop"),F.css({paddingTop:e+50+"px"})}else F.length||(n=parseFloat(i().css("paddingTop")),L(i(),"paddingTop"),i().data("is_hide_nav")||i().css({paddingTop:n+e+"px"}),clearTimeout(window.et_fallback_transparent_adjustment_timeout),window.et_fallback_transparent_adjustment_timeout=setTimeout((function(){var a=t("body").hasClass("et_hide_nav")&&"matrix(1, 0, 0, 1, 0, 0)"!==t("#main-header").css("transform");a?i().css({paddingTop:""}):i().css({paddingTop:n+e+"px"}),i().data("is_hide_nav",a)}),300))}else if(j){i().css({paddingTop:""});var X,J=D(i().attr("data-padding"),0),K=D(i().attr("data-padding-tablet"),0),tt=D(i().attr("data-padding-phone"),0);J||K||tt?(s>980&&J?i().css({paddingTop:"number"==typeof J?J+"px":J}):s>767&&K?i().css({paddingTop:"number"==typeof K?K+"px":K}):tt&&i().css({paddingTop:"number"==typeof tt?tt+"px":tt}),X=parseInt(i().css("paddingTop")),i().css({paddingTop:e+X+"px"})):(n=e+parseInt(i().css("paddingTop")),L(i(),"paddingTop"),i().css({paddingTop:n+"px"}))}else B?r.css({paddingTop:e+"px"}):t("#main-content .container:first-child").css({paddingTop:e+"px"});else r.css({paddingTop:""}),s<980&&(e+=40),E&&i().css({paddingTop:"0px"}),z?O.css({paddingTop:e+"px"}):I?(L(i(),"paddingTop"),i().css({paddingTop:""}),i().css({paddingTop:"calc("+(e-58)+"px + "+i().css("paddingTop")+")"})):(L(r,"paddingTop"),r.css({paddingTop:e+"px"}));t("#et_fix_page_container_position").length||t("<style />",{id:"et_fix_page_container_position",text:"#page-container{ padding-top: 0 !important;}"}).appendTo("head");var et=t(".et_pb_section:visible").first(),nt=et.find(".et_pb_row:visible").first(),it=et.find(".et_pb_module:visible").first(),at=et.hasClass("et_pb_section_parallax"),ot=nt.hasClass("et_pb_section_parallax"),rt=it.hasClass("et_pb_section_parallax");(at||ot||rt)&&t(window).trigger("resize.etTrueParallaxBackground")}_.remove(),H(0),t(document).trigger("et-pb-header-height-calculated")}window.et_change_primary_nav_position=H,window.et_fix_page_container_position=W,j.data("previous-width",parseInt(j.width()));var q=s((function(){W(),"function"==typeof et_fix_fullscreen_section&&et_fix_fullscreen_section()}),200);function N(){if(a&&et_calculate_header_values(),setTimeout((function(){W()}),0),window.et_is_minified_js&&window.et_is_transparent_nav&&!window.et_is_vertical_nav&&t(window).trigger("resize"),window.hasOwnProperty("et_location_hash")&&""!==window.et_location_hash&&function(){var e=window.et_location_hash.replace(/(\|)/g,"\\$1");if(0!==t(e).length){var n=t(e+" .et_pb_map_container"),i=n.children(".et_pb_map"),a=t(e);void 0!==window.et_location_hash_style&&a.css("display",window.et_location_hash_style);var o=(void 0!==a.offset().top?a.offset().top:0)>4e3?1600:800;n.length&&google.maps.event.trigger(i[0],"resize"),a.parents().hasClass("commentlist")&&t(".reviews_tab").trigger("click").animate({scrollTop:a.offset().top},700),setTimeout((function(){et_pb_smooth_scroll(a,!1,o,"swing"),setTimeout((function(){et_pb_smooth_scroll(a,!1,150,"linear")}),o+25)}),700)}}(),h&&!window.et_is_vertical_nav){var e=parseInt(t("#logo").width());_?x.css("padding-right",e+30+"px"):x.css("padding-left",e+30+"px")}if(t("p.demo_store").length&&t("p.demo_store").is(":visible")&&(t("#footer-bottom").css("margin-bottom",t("p.demo_store").innerHeight()+"px"),t(".woocommerce-store-notice__dismiss-link").on("click",(function(){t("#footer-bottom").css("margin-bottom","")}))),t.fn.waypoint){var s;if(l&&(s=t("#main-content")).waypoint({handler:function(e){c(),"down"===e?t("#main-header").addClass("et-fixed-header"):t("#main-header").removeClass("et-fixed-header")}}),a){var d=(i().length>0?i().offset().top:0)<=(t("#wpadminbar").length?t("#wpadminbar").height():0);d&&window.et_is_transparent_nav&&!window.et_is_vertical_nav&&i().length?(s=i().is(".et_pb_fullwidth_section")?i().children(".et_pb_module:visible").first():i().find(".et_pb_row:visible").first()).length||(s=t(".et-l .et_pb_module:visible").first()):s=d&&window.et_is_transparent_nav&&!window.et_is_vertical_nav&&r.length?t("#content-area"):t("#main-content");var p=!0;setTimeout((function(){p=!1}),0),s.waypoint({offset:function(){if(w&&(setTimeout((function(){et_calculate_header_values()}),200),w=!1),u)return n-y-200;var t=s.offset();return t.top<n&&(n=0-(n-t.top)),n},handler:function(e){if(c(),"down"===e){if(p&&0===o.scrollTop())return;if(v.addClass("et-fixed-header"),m.addClass("et-animated-content"),b.addClass("et-fixed-header"),!u&&!window.et_is_transparent_nav&&!t(".mobile_menu_bar_toggle").is(":visible")){var n,i,a,r=b.length?parseInt(b.height()):0;n=v.clone().addClass("et-fixed-header, et_header_clone").css({transition:"none",display:"none"}),i=parseInt(n.prependTo("body").height()),window.et_is_vertical_nav||(a=parseInt(m.css("padding-top"))-i-r+1,m.css("margin-top",-a+"px")),t(".et_header_clone").remove()}}else a=1,v.removeClass("et-fixed-header"),b.removeClass("et-fixed-header"),m.css("margin-top",-a+"px");window.dispatchEvent(new CustomEvent("ETDiviFixedHeaderTransitionStart",{detail:{marginTop:-a}})),setTimeout((function(){Z(),window.dispatchEvent(new CustomEvent("ETDiviFixedHeaderTransitionEnd",{detail:{marginTop:-a}}))}),400)}})}u&&F()}}t(window).on("resize",(function(){var n,i,r=parseInt(o.width()),s=j.length>0,c=s&&parseInt(j.data("previous-width"))||0,l=j.css("width"),_=void 0!==l?"%"!==l.substr(-1,1):"",d=s?_?parseInt(j.width()):parseInt((parseInt(j.width())/100).toFixed(0))*r:0,p=j.length&&c!==d,h=t(".et_slide_in_menu_container"),b=f?e.jQuery("#wpadminbar"):t("#wpadminbar"),g=t("body").hasClass("rtl");(a&&p&&(q(),j.data("previous-width",d)),u&&F(),(b.length&&a&&r>=740&&r<=782||f)&&(et_calculate_header_values(),H(0)),Z(),h.length&&!t("body").hasClass("et_pb_slide_menu_active")&&(g?h.css({left:"-"+parseInt(h.innerWidth())+"px",right:"unset"}):h.css({right:"-"+parseInt(h.innerWidth())+"px"}),t("body").hasClass("et_boxed_layout")&&a&&(g?(n=m.css("margin-right"),v.css({right:n})):(n=m.css("margin-left"),v.css({left:n})))),h.length&&t("body").hasClass("et_pb_slide_menu_active"))&&(t("body").hasClass("et_boxed_layout")?(n=parseFloat(m.css("margin-left")),m.css({left:"-"+(parseInt(h.innerWidth())-n)+"px"}),a&&(i=0>parseInt(h.innerWidth())-2*n?Math.abs(h.innerWidth()-2*n):"-"+(h.innerWidth()-2*n))<parseInt(h.innerWidth())&&v.css({left:i+"px"})):g?t("#page-container, .et_fixed_nav #main-header").css({right:"-"+parseInt(h.innerWidth())+"px"}):t("#page-container, .et_fixed_nav #main-header").css({left:"-"+parseInt(h.innerWidth())+"px"}));if(h.length&&t("body").hasClass("et_header_style_fullscreen")){var w=parseInt(h.find(".et_slide_menu_top").innerHeight());h.css({"padding-top":w+20+"px"})}I()})),f&&jQuery(".et_header_style_fullscreen .et_slide_in_menu_container").length>0&&jQuery(window).on("resize",p),t((function(){t.fn.fitVids&&t("#main-content").fitVids({customSelector:"iframe[src^='http://www.hulu.com'], iframe[src^='http://www.dailymotion.com'], iframe[src^='http://www.funnyordie.com'], iframe[src^='https://embed-ssl.ted.com'], iframe[src^='http://embed.revision3.com'], iframe[src^='https://flickr.com'], iframe[src^='http://blip.tv'], iframe[src^='http://www.collegehumor.com']"})})),t('a[href*="#"]:not([href="#"]), .mobile_nav').on("click",(function(e){var n=t(this),i=n.closest(".et_smooth_scroll_disabled").length,a=n.closest(".woocommerce-tabs").length&&n.closest(".tabs").length,o=n.closest(".tt_tabs_navigation").length,r=n.closest(".eab-shortcode_calendar-navigation-link").length,s=n.closest(".view-cart-lnk").length,c=n.hasClass("acomment-reply"),l=n.closest(".hustle-ui").length,_=n.hasClass("woocommerce-review-link"),p=i||s||a||r||c||_||o||l;if((n.hasClass("mobile_nav")||location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname)&&!p){var u=t(this.hash);if(n.hasClass("mobile_nav")&&(u=t("#"+e.target.hash.slice(1)),t(e.target).parent().hasClass("pum-trigger"))){e.preventDefault();var f=t(e.target).parent().attr("class").split(" ").filter((function(t){return t.includes("popmake")}))[0].split("-")[1];t("#pum-".concat(f)).css({opacity:"1",display:"block"}),t("#popmake-".concat(f)).css({opacity:"1",display:"block"})}if(!u.length&&this.hash&&(u=t("[name="+this.hash.slice(1)+"]")),u.length)return t(this).parents().hasClass("widget_recent_reviews")&&t(".reviews_tab").trigger("click").animate({scrollTop:u.offset().top},700),n.closest(".et_pb_fullscreen_menu_opened").length>0&&d(),setTimeout((function(){et_pb_smooth_scroll(u,!1,800)}),0),!t("#main-header").hasClass("et-fixed-header")&&t("body").hasClass("et_fixed_nav")&&t(window).width()>980&&setTimeout((function(){et_pb_smooth_scroll(u,!1,40,"linear")}),780),!1}}));var $,V,R,Q=function(){var e,n=t(".et-l--post"),i=t(".et-l--body .et_pb_section:visible").not(".et-l--post .et_pb_section");return e=f?n.find(".et-fb-post-content > .et_pb_section"):n.find(".et_builder_inner_content > .et_pb_section:visible"),0===i.length||e.length>1?e:i};function U(){t(".et_search_form_container").hasClass("et_pb_is_animating")||(t(".et_menu_container").removeClass("et_pb_menu_hidden et_pb_no_animation").addClass("et_pb_menu_visible"),t(".et_search_form_container").removeClass("et_pb_search_visible et_pb_no_animation").addClass("et_pb_search_form_hidden et_pb_is_animating"),setTimeout((function(){t(".et_menu_container").addClass("et_pb_no_animation"),t(".et_search_form_container").addClass("et_pb_no_animation").removeClass("et_pb_is_animating")}),1e3))}function Z(){var e=t(".et_search_form_container");if(e.hasClass("et_pb_search_visible")){var n=t("body"),i=t("#main-header").innerHeight(),a=t("#top-menu").width(),o=t("#top-menu li a").css("font-size");e.css({height:i+"px"}),e.find("input").css("font-size",o),n.hasClass("et_header_style_left")?e.find("form").css("max-width",a+60+"px"):e.css("max-width",a+60+"px")}}if(window.et_pb_window_side_nav_scroll_init=function(){if(!0!==window.et_calculating_scroll_position&&!1!==window.et_side_nav_links_initialized){var e=Q();window.et_calculating_scroll_position=!0;var n,i=t(".et-l--header").length||t(".et-l--body").length||!t("#main-header").length?0:-90,a=t("body").hasClass("et_fixed_nav")?20:i,o=t("#top-header").length>0?parseInt(t("#top-header").height()):0,r=t("#main-header").length>0?parseInt(t("#main-header").height()):0;t("#wpadminbar").length>0&&parseInt(t(window).width())>600&&(a+=parseInt(t("#wpadminbar").outerHeight())),n=window.et_is_vertical_nav?o+a+60:o+r+a;for(var s=parseInt(t(window).height()),c=parseInt(t(window).scrollTop()),l=s+c===parseInt(t(document).height()),_=t(".side_nav_item a").length-1,d=0;d<=_;d++){var p=e.eq(d),u=void 0===p.offset(),f=t(".side_nav_item a.active").parent().index(),h=null,b=!1===u?p.offset().top-n:0;u?h=0:l?h=_:c>=b&&(h=d),null!==h&&h!==f&&(t(".side_nav_item a").removeClass("active"),t("a#side_nav_item_id_"+h).addClass("active"))}window.et_calculating_scroll_position=!1}},window.et_pb_side_nav_page_init=function(e){if(t(".et_pb_side_nav_page").length){var n=Q(),i=n.length,a=parseInt((20*i+40)/2);window.et_side_nav_links_initialized=!1,window.et_calculating_scroll_position=!1,i>1&&t(".et_pb_side_nav_page").length&&(e?t(".et_pb_side_nav").empty():t("#main-content").append('<ul class="et_pb_side_nav"></ul>'),n.each((function(e,n){var a=0===e?"active":"";t(".et_pb_side_nav").append('<li class="side_nav_item"><a href="#" id="side_nav_item_id_'+e+'" class= "'+a+'">'+e+"</a></li>"),i-1===e&&(window.et_side_nav_links_initialized=!0)})),t("ul.et_pb_side_nav").css("marginTop","-"+a+"px"),t(".et_pb_side_nav").addClass("et-visible"),t(".et_pb_side_nav a").on("click",(function(){var e=parseInt(t(this).text()),i=n.eq(e),a="0"==t(this).text()&&!t(".et-l--body").length;return et_pb_smooth_scroll(i,a,800),!t("#main-header").hasClass("et-fixed-header")&&t("body").hasClass("et_fixed_nav")&&parseInt(t(window).width())>980&&setTimeout((function(){et_pb_smooth_scroll(i,a,200)}),500),!1})),t(window).on("scroll",et_pb_window_side_nav_scroll_init))}},t(window).on("resize",(function(){et_pb_side_nav_page_init(!0)})),t("body").is(".et-fb, .et-bfb")&&(window.et_pb_side_nav_page_init=s(window.et_pb_side_nav_page_init,200)),et_pb_side_nav_page_init(),t(".et_pb_scroll_top").length&&(t(window).on("scroll",(function(){t(this).scrollTop()>800?t(".et_pb_scroll_top").show().removeClass("et-hidden").addClass("et-visible"):t(".et_pb_scroll_top").removeClass("et-visible").addClass("et-hidden")})),t(".et_pb_scroll_top").on("click",(function(){t("html, body").animate({scrollTop:0},800)}))),t(".comment-reply-link").length&&t(".comment-reply-link").addClass("et_pb_button"),t("#et_top_search").on("click",(function(){var e=t(".et_search_form_container");e.hasClass("et_pb_is_animating")||(t(".et_menu_container").removeClass("et_pb_menu_visible et_pb_no_animation").addClass("et_pb_menu_hidden"),e.removeClass("et_pb_search_form_hidden et_pb_no_animation").addClass("et_pb_search_visible et_pb_is_animating"),setTimeout((function(){t(".et_menu_container").addClass("et_pb_no_animation"),e.addClass("et_pb_no_animation").removeClass("et_pb_is_animating")}),1e3),e.find("input").trigger("focus"),Z())})),t(".et_close_search_field").on("click",(function(){U()})),t(document).on("mouseup",(function(e){var n=t("#main-header");t(".et_menu_container").hasClass("et_pb_menu_hidden")&&(n.is(e.target)||0!==n.has(e.target).length||U())})),C.length){var Y=C.is("img")?C.attr("src"):C.find("img").attr("src");$=Y,V=function(){var e,n,i,a="svg"===(C.is("img")?C.attr("src"):C.find("img").attr("src")).substr(-3,3);t("body").append(t("<div />",{id:"et-define-logo-wrap",style:"position: fixed; bottom: 0; opacity: 0;"})),e=t("#et-define-logo-wrap"),a&&e.addClass("svg-logo"),e.html(C.clone().css({display:"block"}).removeAttr("id")),n=e.find("img").width(),i=e.find("img").height(),C.attr({"data-actual-width":n,"data-actual-height":i}),e.remove(),c(!0)},(R=new Image).onLoad=V,R.onload=V,R.src=$}function G(){t(window).off("scroll",window.et_pb_window_side_nav_scroll_init),t("#main-content .et_pb_side_nav").off("click",".et_pb_side_nav a"),t("#main-content .et_pb_side_nav").remove(),et_pb_side_nav_page_init()}t(".footer-widget").each((function(){var e=t(this),n=e.width(),i=e.find(".widget_adsensewidget ins");i.length&&i.width(n)})),t("body").is(".et-fb")?(t(window).on("et_fb_root_did_mount",(function(){G(),N()})),t(window).on("et_fb_section_content_change",G)):window.addEventListener("load",N)})),t("#main-header").on("click",".et_toggle_slide_menu",(function(){l()})),a&&(o.on("swipeleft",(function(t){30>=parseInt(o.width())-parseInt(t.swipestart.coords[0])&&l("open")})),o.on("swiperight",(function(e){t("body").hasClass("et_pb_slide_menu_active")&&l("close")}))),t("#page-container").on("click",".et_toggle_fullscreen_menu",(function(){d()})),t(window).on("visibilitychange",(function(){t("body").hasClass("et_pb_fullscreen_menu_active")&&t(".et_toggle_fullscreen_menu").trigger("click")})),t(".et_pb_fullscreen_nav_container").on("click","li.menu-item-has-children > a",(function(){var e=t(this).closest("li"),n=e.find(">a .et_mobile_menu_arrow"),i=e.find(">ul"),a=n.hasClass("et_pb_submenu_opened");return n.toggleClass("et_pb_submenu_opened"),a?(i.removeClass("et_pb_slide_dropdown_opened"),i.slideToggle(700,"easeInOutCubic")):(i.slideToggle(700,"easeInOutCubic"),i.addClass("et_pb_slide_dropdown_opened")),!1})),t("body").hasClass("et_header_style_fullscreen")){var u=t(".et_header_style_fullscreen .et_slide_in_menu_container");if(u.length){var h=u.find(".et_slide_menu_top").innerHeight();u.css({"padding-top":h+20+"px"})}}t(document.body).on("checkout_error",(function(){_()})),t(document.body).on("updated_checkout",(function(t){"failure"===t.result&&_()})),o.on("et_fb_init",(function(){var t=e.wp;if(t&&t.hooks&&t.hooks.addFilter){var n=window.DIVI.row_selector;t.hooks.addFilter("et.pb.row.css.selector","divi.et.pb.row.css.selector",(function(t){return t.replace("%%row_selector%%",n)}))}}))}(jQuery)}]);


wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'ltr' ] } );

!function(){var e={101:function(){var e,t,i;function n(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}(t=t||(e=[],{getAll:function(){return e},removeAll:function(){e=[]},add:function(t){e.push(t)},remove:function(t){var i=e.indexOf(t);-1!==i&&e.splice(i,1)},update:function(t){if(0===e.length)return!1;var i=0;for(t=null!=t?t:window.performance.now();i<e.length;)e[i].update(t)?i++:e.splice(i,1);return!0}})).Tween=function(e){var i={},a={},o={},s=1e3,r=0,l=!1,h=!1,u=!1,p=0,c=null,d=t.Easing.Linear.None,f=t.Interpolation.Linear,g=[],v=null,m=!1,y=null,b=null,w=null;for(var P in e)i[P]=parseFloat(e[P],10);this.to=function(e,t){return null!=t&&(s=t),a=e,this},this.start=function(s){for(var r in t.add(this),h=!0,m=!1,c=(null!=s?s:window.performance.now())+p,a){if(n(a[r],Array)){if(0===a[r].length)continue;a[r]=[e[r]].concat(a[r])}null!=i[r]&&(i[r]=e[r],!1===n(i[r],Array)&&(i[r]*=1),o[r]=i[r]||0)}return this},this.stop=function(){return h&&(t.remove(this),h=!1,null!=w&&w.call(e),this.stopChainedTweens()),this},this.stopChainedTweens=function(){for(var e=0,t=g.length;e<t;e++)g[e].stop()},this.complete=function(){return h&&(t.remove(this),h=!1,null!=b&&b.call(e),this.completeChainedTweens()),this},this.completeChainedTweens=function(){for(var e=0,t=g.length;e<t;e++)g[e].complete()},this.delay=function(e){return p=e,this},this.repeat=function(e){return r=e,this},this.yoyo=function(e){return l=e,this},this.easing=function(e){return d=null==e?d:e,this},this.interpolation=function(e){return f=e,this},this.chain=function(){return g=arguments,this},this.onStart=function(e){return v=e,this},this.onUpdate=function(e){return y=e,this},this.onComplete=function(e){return b=e,this},this.onStop=function(e){return w=e,this},this.update=function(t){if(t<c)return!0;for(h in!1===m&&(null!=v&&v.call(e),m=!0),w=(w=(t-c)/s)>1?1:w,P=d(w),a)if(null!=i[h]){var h,w,P,S=i[h]||0,x=a[h];n(x,Array)?e[h]=f(x,P):("string"==typeof x&&(x=x.startsWith("+")||x.startsWith("-")?S+parseFloat(x,10):parseFloat(x,10)),"number"==typeof x&&(e[h]=S+(x-S)*P))}if(null!=y&&y.call(e,P),1===w){if(r>0){for(h in isFinite(r)&&r--,o){if("string"==typeof a[h]&&(o[h]=o[h]+parseFloat(a[h],10)),l){var C=o[h];o[h]=a[h],a[h]=C}i[h]=o[h]}l&&(u=!u),c=t+p}else{null!=b&&b.call(e);for(var E=0,T=g.length;E<T;E++)g[E].start(c+s);return!1}}return!0}},t.Easing={Linear:{None:function(e){return e}},Quadratic:{In:function(e){return e*e},Out:function(e){return e*(2-e)},InOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)}},Quartic:{In:function(e){return e*e*e*e},Out:function(e){return 1- --e*e*e*e},InOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)}},Sinusoidal:{In:function(e){return 1-Math.cos(e*Math.PI/2)},Out:function(e){return Math.sin(e*Math.PI/2)},InOut:function(e){return .5*(1-Math.cos(Math.PI*e))}},Cubic:{In:function(e){return e*e*e},Out:function(e){return--e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}}},t.Interpolation={Linear:function(e,i){var n=e.length-1,a=n*i,o=Math.floor(a),s=t.Interpolation.Utils.Linear;return i<0?s(e[0],e[1],a):i>1?s(e[n],e[n-1],n-a):s(e[o],e[o+1>n?n:o+1],a-o)},Bezier:function(e,i){for(var n=0,a=e.length-1,o=Math.pow,s=t.Interpolation.Utils.Bernstein,r=0;r<=a;r++)n+=o(1-i,a-r)*o(i,r)*e[r]*s(a,r);return n},Utils:{Linear:function(e,t,i){return(t-e)*i+e},Bernstein:function(e,i){var n=t.Interpolation.Utils.Factorial;return n(e)/n(i)/n(e-i)},Factorial:(i=[1],function(e){var t=1;if(i[e])return i[e];for(var n=e;n>1;n--)t*=n;return i[e]=t,t}),CatmullRom:function(e,t,i,n,a){var o=(i-e)*.5,s=(n-t)*.5,r=a*a;return a*r*(2*t-2*i+o+s)+(-3*t+3*i-2*o-s)*r+o*a+t}}},window.TWEEN=t}},t={};function i(n){var a=t[n];if(void 0!==a)return a.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,i),o.exports}i.amdO={},function(){"use strict";var e,t,n={jQuery:jQuery,version:"2.3.42",autoDetectLocation:!0,slug:void 0,locationVar:"dearViewerLocation",locationFile:void 0,MOUSE_CLICK_ACTIONS:{NONE:"none",NAV:"nav"},ARROW_KEYS_ACTIONS:{NONE:"none",NAV:"nav"},MOUSE_DBL_CLICK_ACTIONS:{NONE:"none",ZOOM:"zoom"},MOUSE_SCROLL_ACTIONS:{NONE:"none",ZOOM:"zoom",NAV:"nav"},PAGE_SCALE:{PAGE_FIT:"fit",PAGE_WIDTH:"width",AUTO:"auto",ACTUAL:"actual",MANUAL:"manual"},READ_DIRECTION:{LTR:"ltr",RTL:"rtl"},TURN_DIRECTION:{LEFT:"left",RIGHT:"right",NONE:"none"},INFO_TYPE:{INFO:"info",ERROR:"error"},FLIPBOOK_PAGE_MODE:{SINGLE:"single",DOUBLE:"double",AUTO:"auto"},FLIPBOOK_SINGLE_PAGE_MODE:{ZOOM:"zoom",BOOKLET:"booklet",AUTO:"auto"},FLIPBOOK_PAGE_SIZE:{AUTO:"auto",SINGLE:"single",DOUBLE_INTERNAL:"dbl_int",DOUBLE:"dbl",DOUBLE_COVER_BACK:"dbl_cover_back"},LINK_TARGET:{NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4},CONTROLS_POSITION:{HIDDEN:"hidden",TOP:"top",BOTTOM:"bottom"},TURN_CORNER:{TL:"tl",TR:"tr",BL:"bl",BR:"br",L:"l",R:"r",NONE:"none"},REQUEST_STATUS:{OFF:"none",ON:"pending",COUNT:"counting"},TEXTURE_TARGET:{THUMB:0,VIEWER:1,ZOOM:2},FLIPBOOK_CENTER_SHIFT:{RIGHT:1,LEFT:-1,NONE:0},FLIPBOOK_COVER_TYPE:{NONE:"none",PLAIN:"plain",BASIC:"basic",RIDGE:"ridge"}};function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i<t;i++)n[i]=e[i];return n}n._defaults={is3D:!0,has3DShadow:!0,color3DCover:"#aaaaaa",color3DSheets:"#fff",cover3DType:n.FLIPBOOK_COVER_TYPE.NONE,flexibility:.9,drag3D:!1,height:"auto",autoOpenOutline:!1,autoOpenThumbnail:!1,showDownloadControl:!0,showSearchControl:!0,showPrintControl:!0,enableSound:!0,duration:800,pageRotation:0,flipbook3DTiltAngleUp:0,flipbook3DTiltAngleLeft:0,readDirection:n.READ_DIRECTION.LTR,pageMode:n.FLIPBOOK_PAGE_MODE.AUTO,singlePageMode:n.FLIPBOOK_SINGLE_PAGE_MODE.AUTO,flipbookFitPages:!1,backgroundColor:"transparent",flipbookHardPages:"none",openPage:1,annotationClass:"",maxTextureSize:3200,minTextureSize:256,rangeChunkSize:524288,disableAutoFetch:!0,disableStream:!0,disableFontFace:!1,icons:{altnext:"df-icon-arrow-right1",altprev:"df-icon-arrow-left1",next:"df-icon-arrow-right1",prev:"df-icon-arrow-left1",end:"df-icon-last-page",start:"df-icon-first-page",share:"df-icon-share","outline-open":"df-icon-arrow-right","outline-close":"df-icon-arrow-down",help:"df-icon-help",more:"df-icon-more",download:"df-icon-download",zoomin:"df-icon-add-circle",zoomout:"df-icon-minus-circle",resetzoom:"df-icon-minus-circle",fullscreen:"df-icon-fullscreen","fullscreen-off":"df-icon-fit-screen",fitscreen:"df-icon-fit-screen",thumbnail:"df-icon-grid-view",outline:"df-icon-list",close:"df-icon-close",doublepage:"df-icon-double-page",singlepage:"df-icon-file",print:"df-icon-print",play:"df-icon-play",pause:"df-icon-pause",search:"df-icon-search",sound:"df-icon-volume","sound-off":"df-icon-volume",facebook:"df-icon-facebook",google:"df-icon-google",twitter:"df-icon-twitter",whatsapp:"df-icon-whatsapp",linkedin:"df-icon-linkedin",pinterest:"df-icon-pinterest",mail:"df-icon-mail"},text:{toggleSound:"Turn on/off Sound",toggleThumbnails:"Toggle Thumbnails",toggleOutline:"Toggle Outline/Bookmark",previousPage:"Previous Page",nextPage:"Next Page",toggleFullscreen:"Toggle Fullscreen",zoomIn:"Zoom In",zoomOut:"Zoom Out",resetZoom:"Reset Zoom",pageFit:"Fit Page",widthFit:"Fit Width",toggleHelp:"Toggle Help",search:"Search in PDF",singlePageMode:"Single Page Mode",doublePageMode:"Double Page Mode",downloadPDFFile:"Download PDF File",gotoFirstPage:"Goto First Page",gotoLastPage:"Goto Last Page",print:"Print",play:"Start AutoPlay",pause:"Pause AutoPlay",share:"Share",close:"Close",mailSubject:"Check out this FlipBook",mailBody:"Check out this site {{url}}",loading:"Loading",thumbTitle:"Thumbnails",outlineTitle:"Table of Contents",searchTitle:"Search",searchPlaceHolder:"Search",analyticsEventCategory:"DearFlip",analyticsViewerReady:"Document Ready",analyticsViewerOpen:"Document Opened",analyticsViewerClose:"Document Closed",analyticsFirstPageChange:"First Page Changed"},share:{facebook:"https://www.facebook.com/sharer/sharer.php?u={{url}}&t={{mailsubject}}",twitter:"https://twitter.com/share?url={{url}}&text={{mailsubject}}",mail:void 0,whatsapp:"https://api.whatsapp.com/send/?text={{mailsubject}}+{{url}}&type=custom_url&app_absent=0",linkedin:"https://www.linkedin.com/shareArticle?url={{url}}&title={{mailsubject}}",pinterest:"https://www.pinterest.com/pin/create/button/?url={{url}}&media=&description={{mailsubject}}"},allControls:"altPrev,pageNumber,altNext,play,outline,thumbnail,zoomIn,zoomOut,zoom,fullScreen,share,download,search,pageMode,startPage,endPage,sound,search,print,more",moreControls:"download,pageMode,pageFit,startPage,endPage,sound",leftControls:"outline,thumbnail",rightControls:"fullScreen,share,download,more",hideControls:"",hideShareControls:"",controlsPosition:n.CONTROLS_POSITION.BOTTOM,paddingTop:20,paddingLeft:15,paddingRight:15,paddingBottom:20,enableAnalytics:!1,zoomRatio:2,maxDPI:2,fakeZoom:1,pageScale:n.PAGE_SCALE.PAGE_FIT,controlsFloating:!0,sideMenuOverlay:!0,enableAnnotation:!0,enableAutoLinks:!0,arrowKeysAction:n.ARROW_KEYS_ACTIONS.NAV,clickAction:n.MOUSE_CLICK_ACTIONS.NAV,dblClickAction:n.MOUSE_DBL_CLICK_ACTIONS.NONE,mouseScrollAction:n.MOUSE_SCROLL_ACTIONS.NONE,linkTarget:n.LINK_TARGET.BLANK,soundFile:"sound/turn2.mp3",imagesLocation:"images",imageResourcesPath:"images/pdfjs/",popupThumbPlaceholder:"data:image/svg+xml,"+escape('<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 210 297"><rect width="210" height="297" style="fill:#f1f2f2"/><circle cx="143" cy="95" r="12" style="fill:#e3e8ed"/><polygon points="131 138 120 149 95 124 34 184 176 185 131 138" style="fill:#e3e8ed"/></svg>'),cMapUrl:"js/libs/cmaps/",logo:"",logoUrl:"",sharePrefix:"",pageSize:n.FLIPBOOK_PAGE_SIZE.AUTO,backgroundImage:"",pixelRatio:window.devicePixelRatio||1,spotLightIntensity:.22,ambientLightColor:"#fff",ambientLightIntensity:.8,shadowOpacity:.1,slug:void 0,headerElementSelector:void 0,onReady:function(e){},onPageChanged:function(e){},beforePageChanged:function(e){},onCreate:function(e){},onCreateUI:function(e){},onFlip:function(e){},beforeFlip:function(e){},autoPDFLinktoViewer:!1,autoLightBoxFullscreen:!1,thumbLayout:"book-title-hover",cleanupAfterRender:!0,canvasWillReadFrequently:!0,providerType:"pdf",loadMoreCount:-1,autoPlay:!1,autoPlayDuration:1e3,autoPlayStart:!1,popupBackGroundColor:"#eee",mockupMode:!1,instantTextureProcess:!1,cachePDFTexture:!1,pdfVersion:"default"},n.defaults={},n.jQuery.extend(!0,n.defaults,n._defaults),n.viewers={},n.providers={},n.openFileOptions={},n.executeCallback=function(){};var o=n.jQuery,s="WebKitCSSMatrix"in window||document.body&&"MozPerspective"in document.body.style,r="onmousedown"in window,l=n.utils={mouseEvents:r?{type:"mouse",start:"mousedown",move:"mousemove",end:"mouseup"}:{type:"touch",start:"touchstart",move:"touchmove",end:"touchend"},html:{div:"<div></div>",a:"<a>",input:"<input type='text'/>",select:"<select></select>"},getSharePrefix:function(){return l.getSharePrefixes()[0]},getSharePrefixes:function(){return(n.defaults.sharePrefix+",dflip-,flipbook-,dearflip-,dearpdf-").split(",").map(function(e){return e.trim()})},toRad:function(e){return e*Math.PI/180},toDeg:function(e){return 180*e/Math.PI},ifdef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return null==e?t:e},createBtn:function(e,t,i){var n=o(l.html.div,{class:"df-ui-btn df-ui-"+e,title:i,html:void 0!==i?"<span>"+i+"</span>":""});return void 0!==t&&t.indexOf("<svg")>-1?n.html(t.replace("<svg",'<svg xmlns="http://www.w3.org/2000/svg" ')):n.addClass(t),n},transition:function(e,t){return e?t/1e3+"s ease-out":"0s none"},display:function(e){return e?"block":"none"},resetTranslate:function(){return l.translateStr(0,0)},bgImage:function(e){return null==e||"blank"===e?"":' url("'+e+'")'},translateStr:function(e,t){return s?" translate3d("+e+"px,"+t+"px, 0px) ":" translate("+e+"px, "+t+"px) "},httpsCorrection:function(e){try{if(null==e)return null;if("string"!=typeof e)return e;var t=window.location;if(t.href.split(".")[0]===e.split(".")[0])return e;e.split("://")[1].split("/")[0].replace("www.","")===t.hostname.replace("www.","")&&e.indexOf(t.hostname.replace("www.",""))>-1&&(t.href.indexOf("https://")>-1?e=e.replace("http://","https://"):t.href.indexOf("http://")>-1&&(e=e.replace("https://","http://")),t.href.indexOf("://www.")>-1&&-1===e.indexOf("://www.")&&(e=e.replace("://","://www.")),-1===t.href.indexOf("://www.")&&e.indexOf("://www.")>-1&&(e=e.replace("://www.","://")))}catch(t){console.log("Skipping URL correction: "+e)}return e},rotateStr:function(e){return" rotateZ("+e+"deg) "},lowerPowerOfTwo:function(e){return Math.pow(2,Math.floor(Math.log(e)/Math.LN2))},nearestPowerOfTwo:function(e,t){return Math.min(t||2048,Math.pow(2,Math.ceil(Math.log(e)/Math.LN2)))},getFullscreenElement:function(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement},hasFullscreenEnabled:function(){return document.fullscreenEnabled||document.mozFullScreenEnabled||document.webkitFullscreenEnabled||document.msFullscreenEnabled},fixMouseEvent:function(e){if(!e)return e;var t=e.originalEvent||e;if(!t.changedTouches||!(t.changedTouches.length>0))return e;var i=o.event.fix(e),n=t.changedTouches[0];return i.clientX=n.clientX,i.clientY=n.clientY,i.pageX=n.pageX,i.touches=t.touches,i.pageY=n.pageY,i.movementX=n.movementX,i.movementY=n.movementY,i},limitAt:function(e,t,i){return e<t?t:e>i?i:e},distOrigin:function(e,t){return l.distPoints(0,0,e,t)},distPoints:function(e,t,i,n){return Math.sqrt(Math.pow(i-e,2)+Math.pow(n-t,2))},angleByDistance:function(e,t){var i=t/2,n=l.limitAt(e,0,t);return n<i?l.toDeg(Math.asin(n/i)):90+l.toDeg(Math.asin((n-i)/i))},calculateScale:function(e,t){var i=l.distPoints(e[0].x,e[0].y,e[1].x,e[1].y);return l.distPoints(t[0].x,t[0].y,t[1].x,t[1].y)/i},getVectorAvg:function(e){return{x:e.map(function(e){return e.x}).reduce(l.sum)/e.length,y:e.map(function(e){return e.y}).reduce(l.sum)/e.length}},sum:function(e,t){return e+t},getTouches:function(e,t){return t=t||{left:0,top:0},Array.prototype.slice.call(e.touches).map(function(e){return{x:e.pageX-t.left,y:e.pageY-t.top}})},getScriptCallbacks:[],getScript:function(e,t,i,n){var a,s=l.getScriptCallbacks[e];function r(){a.removeEventListener("load",h,!1),a.removeEventListener("readystatechange",h,!1),a.removeEventListener("complete",h,!1),a.removeEventListener("error",u,!1),a.onload=a.onreadystatechange=null,a=null,a=null}function h(e,t){if(null!=a&&(t||!a.readyState||/loaded|complete/.test(a.readyState))){if(!t){for(var n=0;n<s.length;n++)s[n]&&s[n](),s[n]=null;i=null}r()}}function u(){i(),r(),i=null}if(0===o("script[src='"+e+"']").length){(s=l.getScriptCallbacks[e]=[]).push(t),a=document.createElement("script");var p=document.body.getElementsByTagName("script")[0];a.async=!0,a.setAttribute("data-cfasync","false"),!0===n&&a.setAttribute("type","module"),null!=p?(p.parentNode.insertBefore(a,p),p=null):document.body.appendChild(a),a.addEventListener("load",h,!1),a.addEventListener("readystatechange",h,!1),a.addEventListener("complete",h,!1),i&&a.addEventListener("error",u,!1),a.src=e+("MS"===l.prefix.dom?"?"+Math.random():"")}else s.push(t)},detectScriptLocation:function(){if(void 0===window[n.locationVar])o("script").each(function(){var e=o(this)[0].src;if((e.indexOf("/"+n.locationFile+".js")>-1||e.indexOf("/"+n.locationFile+".min.js")>-1||e.indexOf("js/"+n.locationFile+".")>-1)&&(e.indexOf("https://")>-1||e.indexOf("http://")>-1)){var t=e.split("/");window[n.locationVar]=t.slice(0,-2).join("/")}});else if(-1==window[n.locationVar].indexOf(":")){var e=document.createElement("a");e.href=window[n.locationVar],window[n.locationVar]=e.href,e=null}void 0!==window[n.locationVar]&&window[n.locationVar].length>2&&"/"!==window[n.locationVar].slice(-1)&&(window.window[n.locationVar]+="/")},disposeObject:function(e){return e&&e.dispose&&e.dispose(),e=null},log:function(){for(var e,t=arguments.length,i=Array(t),o=0;o<t;o++)i[o]=arguments[o];!0===n.defaults.enableDebugLog&&window.console&&(e=console).log.apply(e,function(e){if(Array.isArray(e))return a(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return a(e,void 0);var i=Object.prototype.toString.call(e).slice(8,-1);if("Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i)return Array.from(i);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return a(e,void 0)}}(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())},color:{getBrightness:function(e){var t=e.replace("#","").match(/.{1,2}/g).map(function(e){return parseInt(e,16)});return .299*t[0]+.587*t[1]+.114*t[2]},isLight:function(e){return!l.color.isDark(e)},isDark:function(e){return 128>l.color.getBrightness(e)}},isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isIOS:/(iPad|iPhone|iPod)/g.test(navigator.userAgent),isIPad:"iPad"===navigator.platform||void 0!==navigator.maxTouchPoints&&navigator.maxTouchPoints>2&&/Mac/.test(navigator.platform),isMac:navigator.platform.toUpperCase().indexOf("MAC")>=0,isSafari:/constructor/i.test(window.HTMLElement)||"[object SafariRemoteNotification]"===(!window.safari||window.safari.pushNotification).toString(),isIEUnsupported:!!navigator.userAgent.match(/(MSIE|Trident)/),isSafariWindows:function(){return!l.isMac&&l.isSafari},hasWebgl:function(){try{var e=document.createElement("canvas");return!!(window.WebGLRenderingContext&&(e.getContext("webgl")||e.getContext("experimental-webgl")))}catch(e){return!1}}(),hasES2022:void 0!==Array.prototype.at,canSupport3D:function(){var e=!0;try{if(!1==l.hasWebgl)e=!1,console.log("Proper Support for Canvas webgl 3D not detected!");else if(!1==l.hasES2022)e=!1,console.log("Proper Support for 3D not extpected in older browser!");else if(-1!==navigator.userAgent.indexOf("MSIE")||navigator.appVersion.indexOf("Trident/")>0)e=!1,console.log("Proper Support for 3D not detected for IE!");else if(l.isSafariWindows())e=!1,console.log("Proper Support for 3D not detected for Safari!");else{var t=navigator.userAgent.toString().toLowerCase().match(/android\s([0-9\.]*)/i);(t=t?t[1]:void 0)&&(t=parseInt(t,10),!isNaN(t)&&t<9&&(e=!1,console.log("Proper Support for 3D not detected for Android below 9.0!")))}}catch(e){}return e},prefix:(e=window.getComputedStyle(document.documentElement,""),t=Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)[1],{dom:"WebKit|Moz|MS".match(RegExp("("+t+")","i"))[1],lowercase:t,css:"-"+t+"-",js:t[0].toUpperCase()+t.substr(1)}),scrollIntoView:function(e,t,i){(t=t||e.parentNode).scrollTop=e.offsetTop+(!1===i?e.offsetHeight-t.offsetHeight:0),t.scrollLeft=e.offsetLeft-t.offsetLeft},getVisibleElements:function(e){var t=e.container,i=e.elements,n=e.visible||[],a=t.scrollTop,o=a+t.clientHeight;if(0==o)return n;var s=0,r=i.length-1,l=i[s],h=l.offsetTop+l.clientTop+l.clientHeight;if(h<a)for(;s<r;){var u=s+r>>1;(h=(l=i[u]).offsetTop+l.clientTop+l.clientHeight)>a?r=u:s=u+1}for(var p=s;p<i.length;p++)if((l=i[p]).offsetTop+l.clientTop<=o)n.push(p+1);else break;return n},getMouseDelta:function(e){var t=0;return null!=e.wheelDelta?t=e.wheelDelta:null!=e.detail&&(t=-e.detail),t},pan:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=e.startPoint,a=e.app.zoomValue,o=e.left+(!0===i?0:t.raw.x-n.raw.x),s=e.top+(!0===i?0:t.raw.y-n.raw.y);e.left=Math.ceil(l.limitAt(o,-e.shiftWidth,e.shiftWidth)),e.top=Math.ceil(l.limitAt(s,-e.shiftHeight,e.shiftHeight)),1===a&&(e.left=0,e.top=0),!1===i&&(e.startPoint=t)}};l.isChromeExtension=function(){return 0===window.location.href.indexOf("chrome-extension://")};var h=/\x00+/g,u=/[\x01-\x1F]/g;l.removeNullCharacters=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"string"!=typeof e?(warn("The argument for removeNullCharacters must be a string."),e):(t&&(e=e.replace(u," ")),e.replace(h,""))},n.hashFocusBookFound=!1,l.detectHash=function(){n.preParseHash=window.location.hash;var e=l.getSharePrefixes();-1==e.indexOf("")&&e.push(""),Array.prototype.forEach.call(e,function(e){var t=n.preParseHash;if(t&&t.indexOf(e)>=0&&!1===n.hashFocusBookFound){e.length>0&&(t=t.split(e)[1]);var i=t.split("/")[0].replace("#","");if(i.length>0){var a,s=t.split("/")[1];if(null!=s&&(s=s.split("/")[0]),0===(a=o("[data-df-slug="+i+"]")).length&&(a=o("[data-slug="+i+"]")),0===a.length&&(a=o("#df-"+i+",#"+i)),0===a.length&&(a=o("[data-_slug="+i+"]")),a.length>0&&a.is("._df_thumb,._df_button,._df_custom,._df_link,._df_book,.df-element,.dp-element")){a=o(a[0]),n.hashFocusBookFound=!0,s=parseInt(s,10),l.focusHash(a);var r=n.activeLightBox&&n.activeLightBox.app||a.data("df-app");if(null!=r)return r.gotoPage(s),r.hashNavigationEnabled=!0,l.focusHash(r.element),!1;null!=s&&a.attr("data-hash-page",s),a.addClass("df-hash-focused",!0),null!=a.data("lightbox")||null!=a.data("df-lightbox")?a.trigger("click"):null!=a.attr("href")&&a.attr("href").indexOf(".pdf")>-1&&a.trigger("click")}}}})},l.focusHash=function(e){var t,i;null===(t=(i=e[0]).scrollIntoView)||void 0===t||t.call(i,{behavior:"smooth",block:"nearest",inline:"nearest"})},l.contain=function(e,t,i,n){var a=Math.min(i/e,n/t);return{width:e*a,height:t*a}},l.containUnStretched=function(e,t,i,n){var a=Math.min(1,i/e,n/t);return{width:e*a,height:t*a}},l.fallbackOptions=function(e){return void 0===e.share.mail&&(e.share.mail="mailto:?subject="+e.text.mailSubject+"&body="+e.text.mailBody),e.openPage&&(e.openPage=parseInt(e.openPage,10)),e};var p=function(e){var t={},i={id:"",thumb:"",openPage:"data-hash-page,df-page,data-df-page,data-page,page",target:"",height:"",showDownloadControl:"data-download",source:"pdf-source,df-source,source",is3D:"webgl,is3d",viewerType:"viewertype,viewer-type",pagemode:""};for(var n in i)for(var a=(n+","+i[n]).split(","),o=0;o<a.length;o++){var s=a[o];if(""!==s){var r=e.data(s);if(null!==r&&""!=r&&void 0!=r||null!==(r=e.attr(s))&&""!=r&&void 0!=r){t[n]=r;break}}}return e.removeAttr("data-hash-page"),t};l.getOptions=function(e){void 0==(e=o(e)).data("df-option")&void 0==e.data("option")&&e.data("df-option","option_"+e.attr("id")),void 0!==e.attr("source")&&e.data("df-source",e.attr("source"));var t=e.data("df-option")||e.data("option"),i=void 0;i=(void 0===t?"undefined":t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)=="object"?t:null==t||""===t||null==window[t]?{}:window[t];var n=p(e);return o.extend(!0,{},i,n)},l.isTrue=function(e){return"true"===e||!0===e},l.parseInt=function(e){return parseInt(e,10)},l.parseFloat=function(e){return parseFloat(e)},l.parseIntIfExists=function(e){return void 0!==e&&(e=parseInt(e,10)),e},l.parseFloatIfExists=function(e){return void 0!==e&&(e=parseFloat(e)),e},l.parseBoolIfExists=function(e){return void 0!==e&&(e=l.isTrue(e)),e},l.getCurveAngle=function(e,t){var i,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return e?(i=t>135?180-(180-t)*2:t>45?t-45:0,i=l.limitAt(i,n,180)):(i=t<45?2*t:t<135?t+45:180,i=l.limitAt(i,0,180-n)),i},l.sanitizeOptions=function(e){var t,i;if(e.showDownloadControl=l.parseBoolIfExists(e.showDownloadControl),e.showSearchControl=l.parseBoolIfExists(e.showSearchControl),e.showPrintControl=l.parseBoolIfExists(e.showPrintControl),e.flipbook3DTiltAngleLeft=l.parseIntIfExists(e.flipbook3DTiltAngleLeft),e.flipbook3DTiltAngleUp=l.parseIntIfExists(e.flipbook3DTiltAngleUp),e.paddingLeft=l.parseIntIfExists(e.paddingLeft),e.paddingRight=l.parseIntIfExists(e.paddingRight),e.paddingTop=l.parseIntIfExists(e.paddingTop),e.paddingBottom=l.parseIntIfExists(e.paddingBottom),e.duration=l.parseIntIfExists(e.duration),e.rangeChunkSize=l.parseIntIfExists(e.rangeChunkSize),e.maxTextureSize=l.parseIntIfExists(e.maxTextureSize),e.linkTarget=l.parseIntIfExists(e.linkTarget),e.zoomRatio=l.parseFloatIfExists(e.zoomRatio),e.is3D=l.parseBoolIfExists(e.is3D),e.enableAnalytics=l.parseBoolIfExists(e.enableAnalytics),e.autoPlay=l.parseBoolIfExists(e.autoPlay),e.autoPlayStart=l.parseBoolIfExists(e.autoPlayStart),e.autoPlayDuration=l.parseIntIfExists(e.autoPlayDuration),void 0!==e.loadMoreCount&&(e.loadMoreCount=l.parseInt(e.loadMoreCount),(isNaN(e.loadMoreCount)||0===e.loadMoreCount)&&(e.loadMoreCount=-1)),null!=e.source&&(Array===e.source.constructor||Array.isArray(e.source)||(t=e.source,null!=(i=Array)&&"undefined"!=typeof Symbol&&i[Symbol.hasInstance]?!!i[Symbol.hasInstance](t):t instanceof i)))for(var n=0;n<e.source.length;n++)e.source[n]=l.httpsCorrection(e.source[n]);else e.source=l.httpsCorrection(e.source);return e},l.finalizeOptions=function(e){return e},l.urlify=function(e){for(var t,i,n=/[a-zA-Z0-9][^\s,]{3,}\.[^\s,]+[a-zA-Z0-9]/gi,a=[];t=n.exec(e);){var o=t[0];1==(o.match(/@/g)||[]).length?o.match(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,7})+/gi)&&a.push({index:t.index,length:o.length,text:o}):o.match(/[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b[-a-zA-Z0-9@:%_\+.~#?&//=]*/g)&&(0===(i=o.toLowerCase()).indexOf("http:")||0===i.indexOf("https:")||0===i.indexOf("www."))&&a.push({index:t.index,length:o.length,text:o})}return a},l.oldurlify=function(e){return e.replace(/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[.\!\/\\w]*))?)/g,function(e,t,i,n,a){var o=e=e.toLowerCase();if(e.indexOf(":")>0&&-1===e.indexOf("http:")&&-1===e.indexOf("https:"))return l.log("AutoLink Rejected: "+o+" for "+e),e;if(0===e.indexOf("www."))o="http://"+e;else if(0===e.indexOf("http://")||0===e.indexOf("https://"));else if(0===e.indexOf("mailto:"));else if(e.indexOf("@")>0&&(o="mailto:"+e,null===e.match(/(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/)))return l.log("AutoLink Rejected: "+o+" for "+e),e;return l.log("AutoLink: "+o+" for "+e),'<a href="'+o+'" class="df-autolink" target="_blank">'+e+"</a>"})},l.supportsPassive=!1;try{var c=Object.defineProperty({},"passive",{get:function(){l.supportsPassive=!0}});window.addEventListener("testPassive",null,c),window.removeEventListener("testPassive",null,c)}catch(e){}n.parseCSSElements=function(){o(".dvcss").each(function(){var e,t=o(this),i=function(e){for(var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"dvcss_e_",n=e.classList,a=0;a<n.length;a++)if(0===(t=n[a]).indexOf(i))return t;return null}(t[0]);t.removeClass(i).removeClass("dvcss"),i=i.replace("dvcss_e_","");try{e=JSON.parse(atob(i))}catch(e){}if(e){var n="df_option_"+e.id;window[n]=o.extend(!0,{},window[n],e),t.addClass("df-element"),"none"!==e.lightbox&&(t.attr("data-df-lightbox",void 0===e.lightbox?"custom":e.lightbox),"thumb"==e.lightbox&&t.attr("data-df-thumb",e.pdfThumb),e.thumbLayout&&t.attr("data-df-thumb-layout",e.thumbLayout),e.apl&&t.attr("apl",e.apl)),t.data("df-option",n),t.attr("data-df-slug",e.slug),t.attr("id","df_"+e.id)}})},n.parseThumbs=function(e){e.element.html(""),(null==e.thumbURL||""==e.thumbURL.toString().trim())&&(e.element.addClass("df-thumb-not-found"),e.thumbURL=n.defaults.popupThumbPlaceholder);var t=o("<span class='df-book-title'>").html(e.title),i=o("<div class='df-book-wrapper'>").appendTo(e.element);i.append(o("<div class='df-book-page1'>")),i.append(o("<div class='df-book-page2'>"));var a=o("<div class='df-book-cover'>").append(t).appendTo(i),s=o('<img width="210px" height="297px" class="df-lazy" alt="'+e.title+'"/>');s.attr("data-src",e.thumbURL),s.attr("src",n.defaults.popupThumbPlaceholder),a.prepend(s),n.addLazyElement(s[0]),!0===n.defaults.displayLightboxPlayIcon&&a.addClass("df-icon-play-popup"),"book-title-top"===e.thumbLayout?t.prependTo(e.element):("book-title-bottom"===e.thumbLayout||"cover-title"===e.thumbLayout)&&(e.hasShelf?e.thumbLayout="book-title-fixed":t.appendTo(e.element),!0===n.defaults.displayLightboxPlayIcon&&(e.element.removeClass("df-icon-play-popup"),i.addClass("df-icon-play-popup"))),e.element.addClass("df-tl-"+e.thumbLayout),e.element.attr("title",e.title)},n.initId=10,n.embeds=[],n.activeEmbeds=[],n.removeEmbeds=[],n.removeEmbedsLimit=l.isMobile?1:2,n.parseNormalElements=function(){o(".df-posts").each(function(){if(!1!==n.defaults.loadMoreCount&&-1!==n.defaults.loadMoreCount){var e=o(this);if("true"!==e.data("df-parsed")){e.data("df-parsed","true"),e.attr("df-parsed","true");var t=0,i=e.find(".df-element"),a=i.length;i.each(function(){++t>n.defaults.loadMoreCount&&o(this).attr("skip-parse","true")}),a>n.defaults.loadMoreCount&&e.append("<div class='df-load-more-button-wrapper'><div class='df-load-more-button'>Load More..</div></div>")}}}),n.triggerId=10,o(".df-element").each(function(){var e=o(this);if("true"!==e.attr("skip-parse")&&"true"!==e.data("df-parsed")){e.data("df-parsed","true"),e.attr("df-parsed","true");var t=e.data("df-lightbox")||e.data("lightbox");if(void 0===t)e.addClass("df-lazy-embed"),n.addLazyElement(e[0]);else if(e.addClass("df-popup-"+t),"thumb"===t){var i=e.data("df-thumb-layout")||n.defaults.thumbLayout,a=l.httpsCorrection(e.data("df-thumb"));e.removeAttr("data-thumb").removeAttr("data-thumb-layout");var s=e.html().trim();(void 0===s||""===s)&&(s="Click to Open");var r=e.parent().hasClass("df-has-shelf");n.parseThumbs({element:e,thumbURL:a,title:s,thumbLayout:i,hasShelf:r}),r&&e.after(o("<df-post-shelf>"))}else"button"===t&&n.defaults.buttonClass&&e.addClass(n.defaults.buttonClass);var h=e.attr("data-trigger");null!=h&&h.length>1&&(h=h.split(","),n.triggerId++,h.forEach(function(t){e.attr("df-trigger-id",n.triggerId),o("#"+t).addClass("df-trigger").attr("df-trigger",n.triggerId)}))}}),n.handleLazy=function(){var e;if(n.removeEmbeds.length>n.removeEmbedsLimit&&(e=n.removeEmbeds.shift())){var t=o("[initID='"+e+"']");if(t.length>0){var i=t.data("df-app");if(i){t.attr("data-df-page",i.currentPageNumber),l.log("Removed app id "+e),i.dispose(),i=null;var a=n.activeEmbeds.indexOf(e);a>-1&&n.activeEmbeds.splice(a,1)}}}if(e=n.embeds.shift()){var s=o("[initID='"+e+"']");if(s.length>0){if(s.is("img"))s.hasClass("df-lazy")?(s.attr("src",s.attr("data-src")),s.removeAttr("data-src"),s.removeClass("df-lazy"),n.lazyObserver.unobserve(s[0])):l.log("Prevent this"),n.handleLazy();else{var r=s.data("df-app");null==r?s.dearviewer():r.softInit(),l.log("Created app id "+e),n.activeEmbeds.push(e)}}}n.removeEmbeds.length<=n.removeEmbedsLimit&&0==n.embeds.length&&(n.checkRequestQueue=null)}},n.lazyObserver={observe:function(e){(e=o(e)).is("img")?e.hasClass("df-lazy")&&(e.attr("src",e.attr("data-src")),e.removeAttr("data-src"),e.removeClass("df-lazy")):e.dearviewer()}},"function"==typeof IntersectionObserver&&(n.lazyObserver=new IntersectionObserver(function(e,t){e.forEach(function(e){var t,i=o(e.target),a=i.attr("initID");e.isIntersecting?(!i.attr("initID")&&(i.attr("initID",n.initId),a=n.initId.toString(),n.initId++),(t=n.removeEmbeds.indexOf(a))>-1?(n.removeEmbeds.splice(t,1),l.log("Removed id "+a+"from Removal list")):-1==(t=n.embeds.indexOf(a))&&(n.embeds.push(a),l.log("Added id "+a+"to Add list"))):a&&((t=n.embeds.indexOf(a))>-1?(n.embeds.splice(t,1),l.log("Removed id "+a+" from Add list")):-1==(t=n.removeEmbeds.indexOf(a))&&(n.removeEmbeds.push(a),l.log("Added id "+a+" to Removal list"))),d=0,(n.removeEmbeds.length>n.removeEmbedsLimit||n.embeds.length>0)&&null==n.checkRequestQueue&&(n.checkRequestQueue=function(){d++,n.checkRequestQueue&&requestAnimationFrame(function(){n&&n.checkRequestQueue&&n.checkRequestQueue()}),d>20&&(d=0,n.handleLazy())},n.checkRequestQueue())})}));var d=0;n.addLazyElement=function(e){n.lazyObserver.observe(e)},n.parseElements=l.parseElements=function(){n.parseCSSElements(),n.parseNormalElements()},n.initUtils=function(){l.detectScriptLocation();var e=o("body");(l.isSafari||l.isIOS)&&e.addClass("df-ios"),e.on("click",function(){}),e.on("click",".df-posts .df-load-more-button",function(){var e=o(this).closest(".df-posts");if(e.length>0){var t=0;e.find(".df-element").each(function(){var e=o(this);"true"===e.attr("skip-parse")&&(t<n.defaults.loadMoreCount&&e.removeAttr("skip-parse"),t++)}),n.parseNormalElements()}}),n.defaults.shelfImage&&""!=n.defaults.shelfImage&&e.append("<style>.df-has-shelf df-post-shelf:before, .df-has-shelf df-post-shelf:after{background-image: url('"+n.defaults.shelfImage+"');}</style>")};var f=n.utils,g=/*#__PURE__*/function(){var e;function t(e,i){(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,t),this.pages=[],this.app=i,this.parentElement=this.app.viewerContainer;var n="df-viewer "+(e.viewerClass||"");this.element=jQuery("<div>",{class:n}),this.parentElement.append(this.element),this.wrapper=jQuery("<div>",{class:"df-viewer-wrapper"}),this.element.append(this.wrapper),this.oldBasePageNumber=0,this.pages=[],this.minZoom=1,this.maxZoom=4,this.swipeThreshold=20,this.stageDOM=null,this.events={},this.arrowKeysAction=e.arrowKeysAction,this.clickAction=e.clickAction,this.scrollAction=e.scrollAction,this.dblClickAction=e.dblClickAction,this.pageBuffer=[],this.pageBufferSize=10}return e=[{key:"init",value:function(){}},{key:"softDispose",value:function(){}},{key:"updateBuffer",value:function(e){}},{key:"pageResetCallback",value:function(e){}},{key:"initCustomControls",value:function(){}},{key:"_getInnerWidth",value:function(){return this.app.dimensions.containerWidth-this.app.dimensions.padding.width-this.app.dimensions.offset.width}},{key:"_getInnerHeight",value:function(){return this.app.dimensions.maxHeight-this.app.dimensions.padding.height}},{key:"_getOuterHeight",value:function(e){return e}},{key:"dispose",value:function(){this.stageDOM&&(this.stageDOM.removeEventListener("mousemove",this.events.mousemove,!1),this.stageDOM.removeEventListener("mousedown",this.events.mousedown,!1),this.stageDOM.removeEventListener("mouseup",this.events.mouseup,!1),this.stageDOM.removeEventListener("touchmove",this.events.mousemove,!1),this.stageDOM.removeEventListener("touchstart",this.events.mousedown,!1),this.stageDOM.removeEventListener("touchend",this.events.mouseup,!1),this.stageDOM.removeEventListener("dblclick",this.events.dblclick,!1),this.stageDOM.removeEventListener("scroll",this.events.scroll,!1),this.stageDOM.removeEventListener("mousewheel",this.events.mousewheel,!1),this.stageDOM.removeEventListener("DOMMouseScroll",this.events.mousewheel,!1)),this.events=null,this.stageDOM=null,this.element.remove()}},{key:"checkDocumentPageSizes",value:function(){}},{key:"getViewerPageNumber",value:function(e){return e}},{key:"getDocumentPageNumber",value:function(e){return e}},{key:"getRenderContext",value:function(e,t){var i=this.app,a=i.provider,o=t.pageNumber,s=f.ifdef(t.textureTarget,n.TEXTURE_TARGET.VIEWER);i.dimensions.pageFit;var r=a.viewPorts[o],l=i.viewer.getTextureSize(t),h=null;if(h=s===n.TEXTURE_TARGET.THUMB?i.thumbSize:Math.floor(l.height),void 0===a.getCache(o,h)){var u=l.height/r.height,p=document.createElement("canvas"),c=this.filterViewPort(e.getViewport({scale:u,rotation:e._pageInfo.rotate+i.options.pageRotation}),o);s===n.TEXTURE_TARGET.THUMB&&(u=c.width/c.height>180/i.thumbSize?180*u/c.width:u*i.thumbSize/c.height,c=this.filterViewPort(e.getViewport({scale:u,rotation:e._pageInfo.rotate+i.options.pageRotation}),o)),p.height=Math.floor(c.height),p.width=Math.floor(c.width);var d=Math.abs(p.width-l.width)/l.width*100;return d>.001&&d<2&&(p.width=Math.floor(l.width),p.height=Math.floor(l.height)),i.viewer.filterViewPortCanvas(c,p,o),{canvas:p,canvasContext:p.getContext("2d",{willReadFrequently:!0===n.defaults.canvasWillReadFrequently}),viewport:c}}}},{key:"filterViewPort",value:function(e,t){return e}},{key:"getViewPort",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.app.provider.viewPorts[e];return t?null!=i?i:this.app.provider.defaultPage.viewPort:i}},{key:"pagesReady",value:function(){}},{key:"onReady",value:function(){}},{key:"filterViewPortCanvas",value:function(e){}},{key:"finalizeAnnotations",value:function(){}},{key:"finalizeTextContent",value:function(){}},{key:"updateTextContent",value:function(e){void 0==e&&(e=this.getBasePage(e)),this.app.provider.processTextContent(e,this.getTextElement(e,!0))}},{key:"isActivePage",value:function(e){return e===this.app.currentPageNumber}},{key:"initEvents",value:function(){var e=this.stageDOM=f.ifdef(this.stageDOM,this.parentElement[0]);e&&(e.addEventListener("mousemove",this.events.mousemove=this.mouseMove.bind(this),!1),e.addEventListener("mousedown",this.events.mousedown=this.mouseDown.bind(this),!1),e.addEventListener("mouseup",this.events.mouseup=this.mouseUp.bind(this),!1),e.addEventListener("touchmove",this.events.mousemove=this.mouseMove.bind(this),!1),e.addEventListener("touchstart",this.events.mousedown=this.mouseDown.bind(this),!1),e.addEventListener("touchend",this.events.mouseup=this.mouseUp.bind(this),!1),e.addEventListener("dblclick",this.events.dblclick=this.dblclick.bind(this),!1),e.addEventListener("scroll",this.events.scroll=this.onScroll.bind(this),!1),e.addEventListener("mousewheel",this.events.mousewheel=this.mouseWheel.bind(this),!1),e.addEventListener("DOMMouseScroll",this.events.mousewheel=this.mouseWheel.bind(this),!1)),this.startTouches=null,this.lastScale=null,this.startPoint=null}},{key:"refresh",value:function(){}},{key:"reset",value:function(){}},{key:"eventToPoint",value:function(e){var t={x:e.clientX,y:e.clientY};return t.x=t.x-this.app.viewerContainer[0].getBoundingClientRect().left,t.y=t.y-this.app.viewerContainer[0].getBoundingClientRect().top,{raw:t}}},{key:"mouseMove",value:function(e){e=f.fixMouseEvent(e),this.pinchMove(e),!0===this.pinchZoomDirty&&e.preventDefault(),this.startPoint&&!0!=this.pinchZoomDirty&&(this.pan(this.eventToPoint(e)),e.preventDefault())}},{key:"mouseDown",value:function(e){e=f.fixMouseEvent(e),this.pinchDown(e),this.startPoint=this.eventToPoint(e)}},{key:"mouseUp",value:function(e){e=f.fixMouseEvent(e),!0===this.pinchZoomDirty&&e.preventDefault();var t=this.eventToPoint(e),i=e.target||e.originalTarget,n=this.startPoint&&t.x===this.startPoint.x&&t.y===this.startPoint.y&&"A"!==i.nodeName;!0===e.ctrlKey&&n&&this.zoomOnPoint(t),this.pinchUp(e),this.startPoint=null}},{key:"pinchDown",value:function(e){}},{key:"pinchUp",value:function(e){}},{key:"pinchMove",value:function(e){}},{key:"updateTemporaryScale",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!0===e)this.parentElement[0].style.transform="none";else if(this.app.viewer.zoomCenter){var t=this.app.viewer.pinchZoomUpdateScale;this.parentElement[0].style.transformOrigin=this.app.viewer.zoomCenter.x+"px "+this.app.viewer.zoomCenter.y+"px",this.parentElement[0].style.transform="scale3d("+t+","+t+",1)"}}},{key:"pan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.panRequestStatus=n.REQUEST_STATUS.ON,f.pan(this,e,t)}},{key:"updatePan",value:function(){this.element.css({transform:"translate3d("+this.left+"px,"+this.top+"px,0)"})}},{key:"dblclick",value:function(e){}},{key:"onScroll",value:function(e){}},{key:"mouseWheel",value:function(e){var t=this.app,i=f.getMouseDelta(e),a=!0===e.ctrlKey,o=t.options.mouseScrollAction===n.MOUSE_SCROLL_ACTIONS.ZOOM&&(!0===t.options.isLightBox||!0===t.isFullscreen);a||o?(i>0||i<0)&&(e.preventDefault(),t.viewer.zoomCenter=this.eventToPoint(e).raw,t.zoom(i),t.ui.update()):t.options.mouseScrollAction===n.MOUSE_SCROLL_ACTIONS.NAV&&(i>0?t.next():i<0&&t.prev())}},{key:"zoomOnPoint",value:function(e){this.app.viewer.zoomCenter=e.raw,this.app.zoom(1)}},{key:"getVisiblePages",value:function(){return this.visiblePagesCache=[],{main:this.visiblePagesCache,buffer:[]}}},{key:"getBasePage",value:function(){return this.app.currentPageNumber}},{key:"isFirstPage",value:function(e){return void 0===e&&(e=this.app.currentPageNumber),1===e}},{key:"isLastPage",value:function(e){return void 0===e&&(e=this.app.currentPageNumber),e===this.app.pageCount}},{key:"isEdgePage",value:function(e){return void 0===e&&(e=this.app.currentPageNumber),1===e||e===this.app.pageCount}},{key:"checkRequestQueue",value:function(){var e=n.REQUEST_STATUS;this.panRequestStatus===e.ON&&(this.updatePan(),this.panRequestStatus=e.OFF),this.app.viewer.pinchZoomRequestStatus===e.ON&&(this.app.viewer.updateTemporaryScale(),this.app.viewer.pinchZoomRequestStatus=e.OFF)}},{key:"isAnimating",value:function(){return!1}},{key:"updatePendingStatusClass",value:function(e){void 0===e&&(e=this.isAnimating()),this.app.container.toggleClass("df-pending",e)}},{key:"initPages",value:function(){}},{key:"resize",value:function(){}},{key:"determinePageMode",value:function(){}},{key:"zoom",value:function(){}},{key:"gotoPageCallBack",value:function(){this.requestRefresh()}},{key:"requestRefresh",value:function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];this.app.refreshRequestStatus=!0===e?n.REQUEST_STATUS.ON:n.REQUEST_STATUS.OFF}},{key:"getPageByNumber",value:function(e){var t=this.pages,i=void 0;if(this.app.isValidPage(e)){for(var n=0;n<t.length;n++)if(e===t[n].pageNumber){i=t[n];break}}return i}},{key:"changeAnnotation",value:function(){return!1}},{key:"getAnnotationElement",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.getPageByNumber(e);if(void 0!==i)return void 0===i.annotationElement&&(i.annotationElement=jQuery("<div class='df-link-content'>"),i.contentLayer.append(i.annotationElement)),!0===t&&i.annotationElement.html(""),i.annotationElement[0]}},{key:"getTextElement",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.getPageByNumber(e);if(void 0!==i)return void 0===i.textElement&&(i.textElement=jQuery("<div class='df-text-content'>"),i.contentLayer.append(i.textElement)),!0===t&&(i.textElement.html(""),i.textElement.siblings(".df-auto-link-content").html("")),i.textElement[0]}},{key:"render",value:function(){}},{key:"textureLoadedCallback",value:function(e){}},{key:"handleZoom",value:function(){}},{key:"getTextureSize",value:function(e){console.error("Texture calculation missing!")}},{key:"textureHeightLimit",value:function(e){return f.limitAt(e,1,this.app.dimensions.maxTextureHeight)}},{key:"textureWidthLimit",value:function(e){return f.limitAt(e,1,this.app.dimensions.maxTextureWidth)}},{key:"setPage",value:function(e){f.log("Set Page detected",e.pageNumber);var t=this.getPageByNumber(e.pageNumber);return!!t&&(e.callback=this.textureLoadedCallback.bind(this),t.loadTexture(e),this.updateBuffer(t),!0)}},{key:"cleanPage",value:function(e){return!0}},{key:"validatePageChange",value:function(e){return e!==this.app.currentPageNumber}},{key:"afterControlUpdate",value:function(){}},{key:"searchPage",value:function(e){return{include:!0,label:this.app.provider.getLabelforPage(e)}}}],function(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}();function v(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function m(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function y(e,t,i){return t&&m(e.prototype,t),i&&m(e,i),e}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var P=n.utils,S=/*#__PURE__*/function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}(n,e);var t,i=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,i=b(n);return e=t?Reflect.construct(i,arguments,b(this).constructor):i.apply(this,arguments),e&&("object"==(e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)||"function"==typeof e)?e:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this)});function n(e){var t;return v(this,n),(t=i.call(this)).canvasMode=null,e&&e.parentElement&&(t.parentElement=e.parentElement),t.init(),t}return y(n,[{key:"init",value:function(){var e=this.element=jQuery("<div>",{class:"df-page"});e[0].appendChild(this.contentLayer[0]),this.texture=new Image,this.parentElement&&this.parentElement[0].append(e[0])}},{key:"resetContent",value:function(){void 0!==this.annotationElement&&this.annotationElement.html(""),void 0!==this.textElement&&this.textElement.html("")}},{key:"setLoading",value:function(){this.element.toggleClass("df-loading",!0!==this.textureLoaded)}},{key:"loadTexture",value:function(e){var t=this,i=e.texture,n=e.callback;function a(){t.textureSrc=i,t.element.css({backgroundImage:P.bgImage(i)}),t.updateTextureLoadStatus(!0),"function"==typeof n&&n(e)}null===t.canvasMode&&i&&"CANVAS"===i.nodeName&&(t.canvasMode=!0),!0===t.canvasMode?(t.element.find(">canvas").remove(),i!==t.textureLoadFallback&&(t.textureSrc=i,t.element.append(jQuery(i))),t.updateTextureLoadStatus(!0),"function"==typeof n&&n(e)):i===t.textureLoadFallback?a():(t.texture.onload=a,t.texture.src=i)}},{key:"updateCSS",value:function(e){this.element.css(e)}},{key:"resetCSS",value:function(){this.element.css({transform:"",boxShadow:"",display:"block"})}}]),n}(/*#__PURE__*/function(){function e(){v(this,e),this.textureLoadFallback="blank",this.textureStamp="-1",this.textureLoaded=!1,this.texture="blank",this.textureSrc="blank",this.pageNumber=void 0,this.contentLayer=jQuery("<div>",{class:"df-page-content"})}return y(e,[{key:"reset",value:function(){this.resetTexture(),this.resetContent()}},{key:"resetTexture",value:function(){this.textureLoaded=!1,this.textureStamp="-1",this.loadTexture({texture:this.textureLoadFallback}),this.contentLayer.removeClass("df-content-loaded")}},{key:"clearTexture",value:function(){this.loadTexture({texture:this.textureLoadFallback})}},{key:"resetContent",value:function(){}},{key:"loadTexture",value:function(e){}},{key:"getTexture",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.textureSrc;return!0===e&&t&&t.cloneNode&&(t=t.cloneNode()).getContext&&t.getContext("2d").drawImage(this.textureSrc,0,0),t}},{key:"setLoading",value:function(){}},{key:"updateTextureLoadStatus",value:function(e){this.textureLoaded=!0===e,P.log((!0===this.textureLoaded?"Loaded ":"Loading ")+this.textureStamp+" for "+this.pageNumber),this.contentLayer.toggleClass("df-content-loaded",!0===e),this.setLoading()}},{key:"changeTexture",value:function(e,t){var i=e+"|"+t;return this.textureStamp!==i&&(P.log("Page "+e+" : texture changed from - "+this.textureStamp+" to "+i),this.textureLoaded=!1,this.textureStamp=i,this.updateTextureLoadStatus(!1),!0)}}]),e}());function x(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C(e,t,i){return(C="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,i){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=E(e)););return e}(e,t);if(n){var a=Object.getOwnPropertyDescriptor(n,t);return a.get?a.get.call(i||e):a.value}})(e,t,i||e)}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function T(e,t){return(T=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var k=n.utils,O=/*#__PURE__*/function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&T(e,t)}(o,e);var t,i,a=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,i=E(o);return e=t?Reflect.construct(i,arguments,E(this).constructor):i.apply(this,arguments),e&&("object"==(e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)||"function"==typeof e)?e:x(this)});function o(e,t){var i;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),e.viewerClass="df-reader",t.options.mouseScrollAction=n.MOUSE_SCROLL_ACTIONS.NONE,(i=a.call(this,e,t)).app.jumpStep=1,i.minZoom=.25,i.stackCount=i.app.pageCount,i.app.options.paddingLeft=0,i.app.options.paddingRight=0,i.app.options.paddingTop=10,i.app.options.paddingBottom=!0===i.app.options.controlsFloating?20:10,i.app.pageScaling=i.app.options.pageScale,i.acceptAppMouseEvents=!0,i.scrollStatus=n.REQUEST_STATUS.OFF,i.deltaPanX=0,i.deltaPanY=0,t._viewerPrepared(),i.zoomViewer=x(i),i}return i=[{key:"init",value:function(){C(E(o.prototype),"init",this).call(this),this.initEvents(),this.initPages(),this.initScrollBar()}},{key:"initEvents",value:function(){this.stageDOM=this.element[0],C(E(o.prototype),"initEvents",this).call(this)}},{key:"initPages",value:function(){this.stackCount=this.app.pageCount;for(var e=0;e<this.stackCount;e++){var t=new S({parentElement:this.wrapper});t.index=e,t.viewer=this,this.pages.push(t)}}},{key:"initScrollBar",value:function(){this.scrollBar=jQuery("<div class='df-reader-scrollbar'>"),this.scrollBar.appendTo(this.app.container),this.scrollPageNumber=jQuery("<div class='df-reader-scroll-page-number'>").appendTo(this.app.container)}},{key:"afterControlUpdate",value:function(){void 0!==this.scrollBar&&(this.scrollBar[0].innerHTML=this.app.getCurrentLabel(),this.app.provider.pageLabels?this.scrollPageNumber[0].innerHTML=this.app.getCurrentLabel()+"<div>("+this.app.currentPageNumber+" of "+this.app.pageCount+")</div>":this.scrollPageNumber[0].innerHTML=this.app.getCurrentLabel()+"<div>of "+this.app.pageCount+"</div>")}},{key:"updateBuffer",value:function(e){if("-1"!==e.textureStamp&&void 0!==e.pageNumber){for(var t=e.pageNumber,i=e.pageNumber,n=0,a=0;a<this.pageBuffer.length;a++){var o=this.pageBuffer[a].pageNumber;if(t===o){k.log("Page "+t+" already in buffer, skipping");return}Math.abs(this.app.currentPageNumber-o)>Math.abs(this.app.currentPageNumber-i)&&(i=o,n=a)}this.pageBuffer.push(e),this.pageBuffer.length>this.pageBufferSize&&(k.log("Farthest buffer: "+i),this.pageBuffer[n].reset(),this.pageBuffer.splice(n,1))}}},{key:"initCustomControls",value:function(){var e=this.app.ui.controls;e.openRight.hide(),e.openLeft.hide()}},{key:"dispose",value:function(){C(E(o.prototype),"dispose",this).call(this),this.scrollBar&&this.scrollBar.remove(),this.scrollPageNumber&&this.scrollPageNumber.remove(),this.element.remove()}},{key:"_getInnerHeight",value:function(){C(E(o.prototype),"_getInnerHeight",this).call(this);var e=this.app.dimensions.maxHeight-this.app.dimensions.padding.height,t=this.app.dimensions.defaultPage.viewPort,i=this.app.dimensions.containerWidth-20-this.app.dimensions.padding.width;this.app.pageScaling===n.PAGE_SCALE.ACTUAL&&(i=1*this.app.provider.defaultPage.viewPort.width);var a=e;return this.app.pageScaling===n.PAGE_SCALE.PAGE_WIDTH?a=100*t.height:this.app.pageScaling===n.PAGE_SCALE.AUTO?a=1.5*t.height:this.app.pageScaling===n.PAGE_SCALE.ACTUAL&&(a=1*t.height),a-=2,this._containCover=k.contain(t.width,t.height,i,a),a=Math.min(e,this._containCover.height+2),this.app.pageScaleValue=this._containCover.height/t.height,this.app.dimensions.isFixedHeight?e:a}},{key:"handleZoom",value:function(){var e=this.app,t=this.maxZoom=4,i=e.zoomValue;!0===e.pendingZoom&&null!=e.zoomDelta?i=e.zoomDelta>0?i*e.options.zoomRatio:i/e.options.zoomRatio:null!=this.lastScale&&(i*=this.lastScale,this.lastScale=null),i=k.limitAt(i,this.minZoom,t),e.zoomValueChange=i/e.zoomValue,e.zoomChanged=e.zoomValue!==i,e.zoomValue=i}},{key:"resize",value:function(){var e=this.app;e.dimensions;var t=e.dimensions.padding,i=this.shiftHeight=0;this.element.css({top:-i,bottom:-i,right:-0,left:-0,paddingTop:t.top,paddingRight:t.right,paddingBottom:t.bottom,paddingLeft:t.left});for(var n=this.getVisiblePages().main[0]-1,a=(n=this.pages[n].element[0]).getBoundingClientRect(),o=this.parentElement[0].getBoundingClientRect(),s=0;s<this.pages.length;s++){var r=this.pages[s],l=this.getViewPort(s+1,!0),h=r.element[0].style;h.height=Math.floor(l.height*e.pageScaleValue*e.zoomValue)+"px",h.width=Math.floor(l.width*e.pageScaleValue*e.zoomValue)+"px"}if(this.oldScrollHeight!=this.element[0].scrollHeight&&void 0!==this.oldScrollHeight){var u,p=this.element[0].scrollHeight/this.oldScrollHeight;this.skipScrollCheck=!0;var c=n.offsetTop+n.clientTop-(a.top-o.top+n.clientTop)*p,d=n.offsetLeft+n.clientLeft-(a.left-o.left+n.clientLeft)*p;c+=(p-1)*10/2,d+=(p-1)*10/2,this.zoomCenter=null!==(u=this.zoomCenter)&&void 0!==u?u:{x:0,y:0},c+=(p-1)*this.zoomCenter.y,d+=(p-1)*this.zoomCenter.x,this.zoomCenter=null,this.element[0].scrollTop=c,this.element[0].scrollLeft=d,this.skipScrollCheck=!1}this.oldScrollHeight=this.element[0].scrollHeight,this.scrollBar[0].style.transform="none",this.updateScrollBar()}},{key:"onReady",value:function(){this.gotoPageCallBack(),this.oldScrollHeight=this.element[0].scrollHeight}},{key:"refresh",value:function(){for(var e=this.app,t=this.getVisiblePages().main,i=0;i<t.length;i++){var a=void 0,o=t[i];a=this.pages[o-1],o!==a.pageNumber&&(a.resetTexture(),this.app.textureRequestStatus=n.REQUEST_STATUS.ON),a.element.attr("number",o),a.pageNumber=o}this.requestRefresh(!1),e.textureRequestStatus=n.REQUEST_STATUS.ON}},{key:"isAnimating",value:function(){return this.scrollStatus===n.REQUEST_STATUS.ON||this.scrollStatus===n.REQUEST_STATUS.COUNT}},{key:"checkRequestQueue",value:function(){C(E(o.prototype),"checkRequestQueue",this).call(this),this.scrollStatus===n.REQUEST_STATUS.ON&&(this.scrollStatus=n.REQUEST_STATUS.OFF),this.scrollStatus===n.REQUEST_STATUS.COUNT&&(this.scrollStatus=n.REQUEST_STATUS.ON)}},{key:"isActivePage",value:function(e){return void 0!==this.visiblePagesCache&&this.visiblePagesCache.includes(e)}},{key:"getVisiblePages",value:function(){var e=k.getVisibleElements({container:this.element[0],elements:this.wrapper[0].children});return e=0===e.length?[this.app.currentPageNumber]:e.splice(0,this.pageBufferSize),this.visiblePagesCache=e,{main:e,buffer:[]}}},{key:"getPageByNumber",value:function(e){var t=this.pages[e-1];return void 0===t&&k.log("Page Not found for: "+e),t}},{key:"onScroll",value:function(e){for(var t=this.element[0].scrollTop+this.app.dimensions.containerHeight/2,i=this.getVisiblePages().main,a=i[0],o=0;o<i.length;o++){a=i[o];var s=this.pages[a-1].element[0],r=s.offsetTop+s.clientTop;if(r<=t&&s.clientHeight+r>=t)break;if(o>0&&r>t&&s.clientHeight+r>=t){a=i[o-1];break}}this.skipScrollIntoView=!0,this.app.gotoPage(a),this.skipScrollIntoView=!1,this.updateScrollBar(),e.preventDefault&&e.preventDefault(),e.stopPropagation(),this.requestRefresh(),this.scrollStatus=n.REQUEST_STATUS.COUNT,n.handlePopup(this.element,!1)}},{key:"updateScrollBar",value:function(){var e=this.element[0];this.app.container[0],e.scrollLeft;var t=60+(e.offsetHeight-40-60-60)*e.scrollTop/(e.scrollHeight-e.offsetHeight);isNaN(t)&&(t=60),this.scrollBar.lastY=t,this.scrollBar[0].style.transform="translateY("+t+"px)"}},{key:"validatePageChange",value:function(e){}},{key:"gotoPageCallBack",value:function(){if(!0!==this.skipScrollIntoView){var e=this.getPageByNumber(this.app.currentPageNumber);null!=e&&k.scrollIntoView(e.element[0],this.element[0])}this.skipScrollIntoView=!1,this.requestRefresh()}},{key:"getTextureSize",value:function(e){var t=this.app.provider.viewPorts[1];this.app.provider.viewPorts[e.pageNumber]&&(t=this.app.provider.viewPorts[e.pageNumber]);var i=this.app.options.pixelRatio;return{height:t.height*this.app.zoomValue*this.app.pageScaleValue*i,width:t.width*this.app.zoomValue*this.app.pageScaleValue*i}}},{key:"textureLoadedCallback",value:function(e){var t=this.getPageByNumber(e.pageNumber),i=this.app,n=this.getViewPort(e.pageNumber,!0);t.element.height(Math.floor(n.height*i.pageScaleValue*i.zoomValue)).width(Math.floor(n.width*i.pageScaleValue*i.zoomValue))}},{key:"pan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.startPoint,a=e.raw.y-i.raw.y,o=e.raw.x-i.raw.x;this.deltaPanY+=a,this.deltaPanX+=o,this.panRequestStatus=n.REQUEST_STATUS.ON,!1===t&&(this.startPoint=e)}},{key:"updatePan",value:function(){this.element[0].scrollTop=this.element[0].scrollTop-this.deltaPanY,this.element[0].scrollLeft=this.element[0].scrollLeft-this.deltaPanX,this.deltaPanY=0,this.deltaPanX=0}},{key:"mouseMove",value:function(e){if(this.startPoint&&this.isScrollBarPressed){var t=k.fixMouseEvent(e),i=this.eventToPoint(t),n=this.element[0],a=this.scrollBar.lastY-(this.startPoint.raw.y-i.raw.y);this.scrollBar.lastY=a,n.scrollTop=(a-60)*(n.scrollHeight-n.offsetHeight)/(n.offsetHeight-40-60-60),this.startPoint=i,e.preventDefault();return}e.touches&&e.touches.length<2||C(E(o.prototype),"mouseMove",this).call(this,e)}},{key:"mouseDown",value:function(e){C(E(o.prototype),"mouseDown",this).call(this,e),e.srcElement===this.scrollBar[0]&&(this.isScrollBarPressed=!0,this.scrollBar.addClass("df-active"),this.scrollPageNumber.addClass("df-active"))}},{key:"mouseUp",value:function(e){C(E(o.prototype),"mouseUp",this).call(this,e),(this.isScrollBarPressed=this.scrollBar)&&(this.isScrollBarPressed=!1,this.scrollBar.removeClass("df-active"),this.scrollPageNumber.removeClass("df-active"))}}],function(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(o.prototype,i),o}(g);function R(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function L(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function I(e,t,i){return t&&L(e.prototype,t),i&&L(e,i),e}function N(e,t,i){return(N="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,i){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_(e)););return e}(e,t);if(n){var a=Object.getOwnPropertyDescriptor(n,t);return a.get?a.get.call(i||e):a.value}})(e,t,i||e)}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function A(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&M(e,t)}function M(e,t){return(M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function D(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var i,n=_(e);return i=t?Reflect.construct(n,arguments,_(this).constructor):n.apply(this,arguments),i&&("object"==(i&&"undefined"!=typeof Symbol&&i.constructor===Symbol?"symbol":typeof i)||"function"==typeof i)?i:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this)}}var F=n.utils,z=/*#__PURE__*/function(e){A(i,e);var t=D(i);function i(e,a){var o,s;return R(this,i),e.viewerClass="df-flipbook "+(e.viewerClass||""),(o=t.call(this,e,a)).isFlipBook=!0,o.sheets=[],o.isRTL=o.app.isRTL,o.foldSense=50,o.isOneSided=!1,o.stackCount=null!==(s=e.stackCount)&&void 0!==s?s:6,o.annotedPage=null,o.pendingAnnotations=[],o.seamPosition=0,o.dragSheet=null,o.drag=null,o.soundOn=!0===e.enableSound,o.soundFile=null,o.minZoom=1,o.maxZoom=4,o.pureMaxZoom=4,(o.app.options.pageSize===n.FLIPBOOK_PAGE_SIZE.AUTO||o.app.options.pageSize===n.FLIPBOOK_PAGE_SIZE.DOUBLE_INTERNAL)&&(o.app.checkSecondPage=!0),o.app.pageScaling=n.PAGE_SCALE.PAGE_FIT,e.viewerClass="",o.zoomViewer=new B(e,a),o}return I(i,[{key:"init",value:function(){N(_(i.prototype),"init",this).call(this),this.initSound();var e=this.app;this.pageMode=e.options.pageMode===n.FLIPBOOK_PAGE_MODE.AUTO?F.isMobile||e.pageCount<=2?n.FLIPBOOK_PAGE_MODE.SINGLE:n.FLIPBOOK_PAGE_MODE.DOUBLE:e.options.pageMode,this.singlePageMode=e.options.singlePageMode||(F.isMobile?n.FLIPBOOK_SINGLE_PAGE_MODE.BOOKLET:n.FLIPBOOK_SINGLE_PAGE_MODE.ZOOM),this.updatePageMode(),this.rightSheetHeight=this.leftSheetHeight=this._defaultPageSize.height,this.leftSheetWidth=this.rightSheetWidth=this._defaultPageSize.width,this.leftSheetTop=this.rightSheetTop=(this.availablePageHeight()-this._defaultPageSize.height)/2,this.zoomViewer.rightSheetHeight=this.zoomViewer.leftSheetHeight=this._defaultPageSize.height,this.zoomViewer.leftSheetWidth=this.zoomViewer.rightSheetWidth=this._defaultPageSize.width}},{key:"determineHeight",value:function(){}},{key:"initCustomControls",value:function(){N(_(i.prototype),"initCustomControls",this).call(this);var e=this,t=this.app,n=t.ui,a=n.controls,o=t.options.text,s=t.options.icons;a.sound=F.createBtn("sound",s.sound,o.toggleSound).on("click",function(){e.soundOn=!e.soundOn,n.updateSound()}),n.updateSound=function(){!1===e.soundOn?a.sound.addClass("disabled"):a.sound.removeClass("disabled")},n.updateSound()}},{key:"dispose",value:function(){N(_(i.prototype),"dispose",this).call(this);for(var e=0;e<this.sheets.length;e++){var t=this.sheets[e];t&&t.currentTween&&(t.currentTween.stop(),t.currentTween=null)}this.zoomViewer.dispose(),this.soundFile=null}},{key:"determinePageMode",value:function(){var e=this.app,t=this.pageMode;if(this.app.pageCount<3)this.pageMode=n.FLIPBOOK_PAGE_MODE.SINGLE;else if(this.app.options.pageMode===n.FLIPBOOK_PAGE_MODE.AUTO&&!0!=this.pageModeChangedManually){if(!0===F.isMobile){if(this.app.dimensions.isAutoHeight&&!1==this.app.dimensions.isFixedHeight){var i=this._calculateInnerHeight(!0),a=this._calculateInnerHeight(!1),o=e.dimensions.stage.innerWidth+(!0!=e.options.sideMenuOverlay&&e.isSideMenuOpen?220:0);this.pageMode=i>1.1*a&&o<768?n.FLIPBOOK_PAGE_MODE.SINGLE:n.FLIPBOOK_PAGE_MODE.DOUBLE,this._calculateInnerHeight()}else{var s=e.dimensions.stage.innerWidth+(!0!=e.options.sideMenuOverlay&&e.isSideMenuOpen?220:0);this.pageMode=e.dimensions.stage.innerHeight>1.1*s&&s<768?n.FLIPBOOK_PAGE_MODE.SINGLE:n.FLIPBOOK_PAGE_MODE.DOUBLE}}this.pageMode!=t&&this.setPageMode({isSingle:this.pageMode==n.FLIPBOOK_PAGE_MODE.SINGLE})}}},{key:"initSound",value:function(){this.soundFile=document.createElement("audio"),this.soundFile.setAttribute("src",this.app.options.soundFile+"?ver="+n.version),this.soundFile.setAttribute("type","audio/mpeg")}},{key:"playSound",value:function(){try{!0===this.app.userHasInteracted&&!0===this.soundOn&&(this.soundFile.currentTime=0,this.soundFile.play())}catch(e){}}},{key:"checkDocumentPageSizes",value:function(){var e=this.app.provider;e.pageSize===n.FLIPBOOK_PAGE_SIZE.AUTO&&(e._page2Ratio&&e._page2Ratio>1.5*e.defaultPage.pageRatio?e.pageSize=n.FLIPBOOK_PAGE_SIZE.DOUBLE_INTERNAL:e.pageSize=n.FLIPBOOK_PAGE_SIZE.SINGLE),e.pageSize===n.FLIPBOOK_PAGE_SIZE.DOUBLE_INTERNAL&&(e.pageCount=1===e.numPages?1:2*e.numPages-2),(e.pageSize===n.FLIPBOOK_PAGE_SIZE.DOUBLE_COVER_BACK||e.pageSize===n.FLIPBOOK_PAGE_SIZE.DOUBLE)&&(e.pageCount=2*e.numPages)}},{key:"getViewerPageNumber",value:function(e){return this.app.provider.pageSize===n.FLIPBOOK_PAGE_SIZE.DOUBLE_INTERNAL&&e>2&&(e=2*e-1),this.app.provider.pageSize===n.FLIPBOOK_PAGE_SIZE.DOUBLE_COVER_BACK&&e>2&&(e=2*e-1),e}},{key:"getDocumentPageNumber",value:function(e){return this.app.provider.pageSize===n.FLIPBOOK_PAGE_SIZE.DOUBLE_INTERNAL&&e>2?Math.ceil((e-1)/2)+1:this.app.provider.pageSize===n.FLIPBOOK_PAGE_SIZE.DOUBLE_COVER_BACK&&e>1?e===this.app.pageCount?1:Math.ceil((e-1)/2)+1:e}},{key:"getViewPort",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0;return this.filterViewPort(N(_(i.prototype),"getViewPort",this).call(this,e,t),e,n)}},{key:"isDoubleInternal",value:function(){return this.app.provider.pageSize===n.FLIPBOOK_PAGE_SIZE.DOUBLE_INTERNAL}},{key:"isDoubleCoverBack",value:function(){return this.app.provider.pageSize===n.FLIPBOOK_PAGE_SIZE.DOUBLE_COVER_BACK}},{key:"isDoubleInternalPage",value:function(e){return this.isDoubleInternal()&&e>1&&e<this.app.provider.pageCount}},{key:"getDoublePageWidthFix",value:function(e){return this.isDoubleInternalPage(e)||this.isDoubleCoverBack()?2:1}},{key:"isDoublePageFix",value:function(e){var t=!1;return(this.isDoubleCoverBack()||this.isDoubleInternalPage(e))&&(this.app.isRTL?e%2==0&&(t=!0):e%2==1&&(t=!0)),t}},{key:"finalizeAnnotations",value:function(e,t){}},{key:"finalizeTextContent",value:function(e,t){this.app.zoomValue>this.app.viewer.pureMaxZoom&&(this.zoomViewer.leftViewPort&&this.zoomViewer.leftPage.contentLayer[0].style.setProperty("--scale-factor",this.zoomViewer.leftSheetHeight/this.zoomViewer.leftViewPort.height),this.zoomViewer.rightViewPort&&this.zoomViewer.rightPage.contentLayer[0].style.setProperty("--scale-factor",this.zoomViewer.rightSheetHeight/this.zoomViewer.rightViewPort.height))}},{key:"isActivePage",value:function(e){return void 0!==this.visiblePagesCache&&this.visiblePagesCache.includes(e)}},{key:"isSheetCover",value:function(e){var t=this.isBooklet;return 0===e||t&&1===e||e===Math.ceil(this.app.pageCount/(t?1:2))-(t?0:1)}},{key:"isSheetHard",value:function(e){var t=this.app.options.flipbookHardPages;if(this.isBooklet,"cover"===t)return this.isSheetCover(e);if("all"===t)return!0;var i=(","+t+",").indexOf(","+(2*e+1)+",")>-1,n=(","+t+",").indexOf(","+(2*e+2)+",")>-1;return i||n}},{key:"sheetsIndexShift",value:function(e,t,i){e>t?(this.sheets[i-1].skipFlip=!0,this.sheets.unshift(this.sheets.pop())):e<t&&(this.sheets[0].skipFlip=!0,this.sheets.push(this.sheets.shift()))}},{key:"checkSwipe",value:function(e,t){if(!0!==this.pinchZoomDirty&&1===this.app.zoomValue&&!0===this.canSwipe){var i="vertical"==this.orientation?e.y-this.lastPosY:e.x-this.lastPosX;Math.abs(i)>this.swipeThreshold&&(i<0?this.app.openRight():this.app.openLeft(),this.canSwipe=!1,t.preventDefault()),this.lastPosX=e.x,this.lastPosY=e.y}}},{key:"checkCenter",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=this.app,a=n.FLIPBOOK_CENTER_SHIFT,o=i.currentPageNumber%2==0,s=this.getBasePage(),r=this.isRTL,l=this.isSingle;e=0===s||this.isBooklet?this.isRTL?a.RIGHT:a.LEFT:s===i.pageCount?r?a.LEFT:a.RIGHT:l?r?o?a.LEFT:a.RIGHT:o?a.RIGHT:a.LEFT:a.NONE,!0!==this.centerNeedsUpdate&&(this.centerNeedsUpdate=this.centerShift!==e),this.centerNeedsUpdate&&(this.centerShift=e,this.updateCenter(t),this.centerNeedsUpdate=!1)}},{key:"updateCenter",value:function(){console.log("UpdateCenter: missing implementation.")}},{key:"reset",value:function(){for(var e,t=0;t<this.sheets.length;t++)(e=this.sheets[t]).reset(),e.pageNumber=-1,e.frontPage&&(e.frontPage.pageNumber=-1),e.backPage&&(e.backPage.pageNumber=-1),e.resetTexture();this.annotedPage=null,this.oldBasePageNumber=-1,this.centerShift=null,this.refresh()}},{key:"handleZoom",value:function(){var e=this.app;e.dimensions;var t=this.getLeftPageTextureSize({zoom:!1,isAnnotation:!0}),i=this.getRightPageTextureSize({zoom:!1,isAnnotation:!0});this.maxZoom,e.zoomValue,this.pureMaxZoom=e.dimensions.maxTextureSize/Math.max(t.height,t.width,i.height,i.width);var n=this.maxZoom=e.options.fakeZoom*this.pureMaxZoom,a=e.zoomValue,o=!1,s=!1;n<this.minZoom&&(n=this.maxZoom=this.minZoom),!0===e.pendingZoom&&null!=e.zoomDelta?a=e.zoomDelta>0?a*e.options.zoomRatio:a/e.options.zoomRatio:null!=this.lastScale&&(a*=this.lastScale,this.lastScale=null),a=F.limitAt(a,this.minZoom,n),e.zoomValueChange=a/e.zoomValue,(e.zoomChanged=e.zoomValue!==a)&&(1===a||1===e.zoomValue)&&(o=1===a,s=1===e.zoomValue),e.zoomValue=a,(s||o)&&(e.container.toggleClass("df-zoom-active",1!==a),s&&this.enterZoom(),o&&this.exitZoom())}},{key:"refresh",value:function(){var e=this.app,t=this.stackCount,i=this.isRTL,a=this.isBooklet,o=this.getBasePage(),s=a?1:2;i&&(o=e.pageCount-o);var r,l=this.oldBasePageNumber,h=Math.ceil(e.pageCount/s),u=Math.floor(t/2);o!==this.oldBasePageNumber&&(this.pageNumberChanged=!0,this.updatePendingStatusClass(!0),this.zoomViewer.reset()),this.sheetsIndexShift(l,o,t);var p=Math.ceil(o/s);for(r=0;r<t;r++){var c=void 0,d=p-u+r;if(i&&(d=h-d-1),null!=(c=this.sheets[r])){c.targetSide=r<u?n.TURN_DIRECTION.LEFT:n.TURN_DIRECTION.RIGHT;var f=c.side!==c.targetSide,g=d!==c.pageNumber,v=f&&!1===c.skipFlip&&1===e.zoomValue;!f&&g&&c.isFlipping&&c.currentTween&&c.currentTween.stop(),c.isHard=this.isSheetHard(d),c.isCover=this.isSheetCover(d),g&&(c.resetTexture(),(this.app.isRTL?c.backPage:c.frontPage).pageNumber=this.isBooklet?d:2*d+1,(this.app.isRTL?c.frontPage:c.backPage).pageNumber=this.isBooklet?-1:2*d+2,e.textureRequestStatus=n.REQUEST_STATUS.ON),c.pageNumber=d,this.refreshSheet({sheet:c,sheetNumber:d,totalSheets:h,zIndex:this.stackCount+(r<u?r-u:u-r),visible:a?i?r<u||c.isFlipping||v:r>=u||c.isFlipping||v:d>=0&&d<h||a&&d===h,index:r,needsFlip:v,midPoint:u})}}this.requestRefresh(!1),e.textureRequestStatus=n.REQUEST_STATUS.ON,this.oldBasePageNumber=o,this.checkCenter(),this.zoomViewer.refresh(),this.pageNumberChanged=!1}},{key:"validatePageChange",value:function(e){if(e===this.app.currentPageNumber)return!1;var t=this.app,i=!this.isFlipping()||void 0===t.oldPageNumber;return(i=i||t.currentPageNumber<e&&t.oldPageNumber<t.currentPageNumber)||t.currentPageNumber>e&&t.oldPageNumber>t.currentPageNumber}},{key:"getVisiblePages",value:function(){for(var e=[],t=this.getBasePage(),i=this.app.zoomValue>1?1:this.isBooklet&&F.isMobile?Math.min(this.stackCount/2,2):this.stackCount/2,n=0;n<i;n++)e.push(t-n),e.push(t+n+1);return this.visiblePagesCache=e,{main:e,buffer:[]}}},{key:"getBasePage",value:function(e){return(void 0===e&&(e=this.app.currentPageNumber),this.isBooklet)?e:2*Math.floor(e/2)}},{key:"getRightPageNumber",value:function(){return this.getBasePage()+(this.isBooklet?0:this.isRTL?0:1)}},{key:"getLeftPageNumber",value:function(){return this.getBasePage()+(this.isBooklet?0:this.isRTL?1:0)}},{key:"afterFlip",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0],!0!==this.isAnimating()&&(this.pagesReady(),this.updatePendingStatusClass())}},{key:"isFlipping",value:function(){var e=!1;return this.sheets.forEach(function(t){!0===t.isFlipping&&(e=!0)}),e}},{key:"isAnimating",value:function(){return this.isFlipping()}},{key:"mouseWheel",value:function(e){this.app.options.mouseScrollAction===n.MOUSE_SCROLL_ACTIONS.ZOOM?this.zoomViewer.mouseWheel(e):N(_(i.prototype),"mouseWheel",this).call(this,e)}},{key:"checkRequestQueue",value:function(){this.app.zoomValue>1?this.zoomViewer.checkRequestQueue():N(_(i.prototype),"checkRequestQueue",this).call(this)}},{key:"updatePan",value:function(){}},{key:"resetPageTween",value:function(){}},{key:"gotoPageCallBack",value:function(){this.resetPageTween(),1!==this.app.zoomValue&&!0===this.app.options.resetZoomBeforeFlip&&this.app.resetZoom(),this.beforeFlip(),this.requestRefresh()}},{key:"beforeFlip",value:function(){this.app.executeCallback("beforeFlip"),1===this.app.zoomValue&&this.playSound()}},{key:"onFlip",value:function(){this.app.executeCallback("onFlip")}},{key:"getAnnotationElement",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=void 0;return(a=this.app.zoomValue>1||!0===n?this.zoomViewer.getAnnotationElement(e,t):N(_(i.prototype),"getAnnotationElement",this).call(this,e,t))&&(a.parentNode.classList.toggle("df-double-internal",this.isDoubleInternalPage(e)),a.parentNode.classList.toggle("df-double-internal-fix",this.isDoublePageFix(e))),a}},{key:"getTextElement",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.app.zoomValue>1||!0===n?this.zoomViewer.getTextElement(e,t):N(_(i.prototype),"getTextElement",this).call(this,e,t)}},{key:"enterZoom",value:function(){this.exchangeTexture(this,this.zoomViewer)}},{key:"exitZoom",value:function(){this.exchangeTexture(this.zoomViewer,this)}},{key:"exchangeTexture",value:function(e,t){var i=this.getBasePage(),n=e.getPageByNumber(i),a=t.getPageByNumber(i);if(a&&"-1"===a.textureStamp?(a.textureStamp=n.textureStamp,a.loadTexture({texture:n.getTexture(!0)}),F.log("Texture Exchanging at "+i)):F.log("Texture Exchanging Bypassed at "+i),!this.isBooklet){var o=e.getPageByNumber(i+1),s=t.getPageByNumber(i+1);s&&"-1"===s.textureStamp?(s.textureStamp=o.textureStamp,s.loadTexture({texture:o.getTexture(!0)}),F.log("Texture Exchanging at "+(i+1))):F.log("Texture Exchanging Bypassed at "+(i+1))}t.pagesReady()}},{key:"setPageMode",value:function(e){var t=this.app,i=!0===e.isSingle;this.pageMode=i?n.FLIPBOOK_PAGE_MODE.SINGLE:n.FLIPBOOK_PAGE_MODE.DOUBLE,this.updatePageMode(),t.resizeRequestStart(),t.viewer.pageMode===n.FLIPBOOK_PAGE_MODE.DOUBLE&&t.ui.controls.pageMode?t.ui.controls.pageMode.removeClass(t.options.icons.doublepage).addClass(t.options.icons.singlepage).attr("title",t.options.text.singlePageMode).html("<span>"+t.options.text.singlePageMode+"</span>"):t.ui.controls.pageMode.addClass(t.options.icons.doublepage).removeClass(t.options.icons.singlepage).attr("title",t.options.text.doublePageMode).html("<span>"+t.options.text.doublePageMode+"</span>")}},{key:"updatePageMode",value:function(){this.app.pageCount<3&&(this.pageMode=n.FLIPBOOK_PAGE_MODE.SINGLE),this.isSingle=this.pageMode===n.FLIPBOOK_PAGE_MODE.SINGLE,this.isBooklet=this.isSingle&&this.singlePageMode===n.FLIPBOOK_SINGLE_PAGE_MODE.BOOKLET,this.app.jumpStep=this.isSingle?1:2,this.totalSheets=Math.ceil(this.app.pageCount/(this.isBooklet?1:2)),this.sheets.length>0&&this.reset()}},{key:"setPage",value:function(e){return e.textureTarget===n.TEXTURE_TARGET.ZOOM?this.zoomViewer.setPage(e):N(_(i.prototype),"setPage",this).call(this,e)}},{key:"_calculateInnerHeight",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;void 0===e&&(e=this.pageMode===n.FLIPBOOK_PAGE_MODE.SINGLE);var t=this.app.dimensions.defaultPage.viewPort,i=this.availablePageWidth(!1,!0,e),a=this.app.dimensions.maxHeight-this.app.dimensions.padding.height;"vertical"==this.orientation&&!1==e&&(a/=2),this._defaultPageSize=F.contain(t.width,t.height,i,a),this._pageFitArea={width:i,height:a};var o=this.app.dimensions.isFixedHeight?a:this._pageFitArea.height;return this.app.dimensions.isAutoHeight&&!1==this.app.dimensions.isFixedHeight&&(o=Math.floor(this._defaultPageSize.height)),o}},{key:"_getInnerHeight",value:function(){var e=this._calculateInnerHeight();return this.app.dimensions.stage.width=this.app.dimensions.stage.innerWidth+this.app.dimensions.padding.width,this.app.dimensions.stage.height=e+this.app.dimensions.padding.height,e}},{key:"availablePageWidth",value:function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;void 0===i&&(i=this.pageMode===n.FLIPBOOK_PAGE_MODE.SINGLE);var a=!0===t?this.app.dimensions.offset.width:0,o=this.app.dimensions.stage.innerWidth+a;return Math.floor((o/=!0===i||"vertical"==this.orientation?1:2)*(e?this.app.zoomValue:1))}},{key:"availablePageHeight",value:function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;void 0===t&&(t=this.pageMode===n.FLIPBOOK_PAGE_MODE.SINGLE);var i=this.app.dimensions.stage.innerHeight;return!1===t&&"vertical"==this.orientation&&(i/=2),Math.floor(i*(e?this.app.zoomValue:1))}},{key:"getTextureSize",value:function(e){var t=this.getViewPort(e.pageNumber,!0),i=this.app.options.pixelRatio,n=F.contain(t.width,t.height,i*this.availablePageWidth(e.zoom),i*this.availablePageHeight(e.zoom));return{height:(n=F.containUnStretched(n.width,n.height,this.app.options.maxTextureSize,this.app.options.maxTextureSize)).height,width:n.width}}},{key:"getLeftPageTextureSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.pageNumber=this.getLeftPageNumber(),this.getTextureSize(e)}},{key:"getRightPageTextureSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.pageNumber=this.getRightPageNumber(),this.getTextureSize(e)}},{key:"filterViewPort",value:function(e,t){var i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(void 0!==e){if(!0!=i)return e;var n=e.clone();return n.width=n.width/this.getDoublePageWidthFix(t),n}}},{key:"filterViewPortCanvas",value:function(e,t,i){this.isDoublePageFix(i)&&(e.transform[4]=e.transform[4]-Math.floor(Math.min(t.width,2*e.width-t.width))),e.widthFix=this.isDoubleInternalPage(i)?2:1}},{key:"isClosedPage",value:function(e){return void 0===e&&(e=this.app.currentPageNumber),1===e||e===this.app.jumpStep*Math.ceil(this.app.pageCount/this.app.jumpStep)&&!this.isBooklet}},{key:"isLeftPage",value:function(e){return(void 0===e&&(e=this.app.currentPageNumber),this.isBooklet)?this.isRTL:e%2==(this.isRTL?1:0)}},{key:"cleanPage",value:function(e){if(!this.isDoubleInternalPage(e))return N(_(i.prototype),"cleanPage",this).call(this,e);var t=e+(e%2==1?-1:1);return!1===this.app.provider.requestedPages[e]&&!1===this.app.provider.requestedPages[t]}},{key:"onReady",value:function(){N(_(i.prototype),"onReady",this).call(this)}},{key:"searchPage",value:function(e){return{include:!this.isDoublePageFix(e),label:this.app.provider.getLabelforPage(e)+(this.isDoubleInternalPage(e)?"-"+this.app.provider.getLabelforPage(e+1):"")}}}]),i}(g),B=/*#__PURE__*/function(e){A(i,e);var t=D(i);function i(e,n){var a;return R(this,i),e.viewerClass="df-zoomview "+(e.viewerClass||""),(a=t.call(this,e,n)).viewer=a.app.viewer,a.events={},a.init(),a.initEvents(),a.left=0,a.top=0,a}return I(i,[{key:"init",value:function(){this.leftPage=new S,this.rightPage=new S,this.pages.push(this.leftPage),this.pages.push(this.rightPage),this.leftPage.element.addClass("df-page-back"),this.rightPage.element.addClass("df-page-front"),this.wrapper.append(this.leftPage.element),this.wrapper.append(this.rightPage.element),this.bookShadow=jQuery("<div>",{class:"df-book-shadow"}),this.wrapper.append(this.bookShadow),this.wrapper.addClass("df-sheet")}},{key:"initEvents",value:function(){this.stageDOM=this.element[0],N(_(i.prototype),"initEvents",this).call(this)}},{key:"dispose",value:function(){this.element.remove()}},{key:"resize",value:function(){var e=this.app.dimensions,t=e.padding,i=this.app.viewer.availablePageHeight(),a=this.app.viewer.availablePageWidth(),o=this.fullWidth=a*(this.app.viewer.pageMode===n.FLIPBOOK_PAGE_MODE.SINGLE?1:2),s=e.stage.innerWidth,r=e.stage.innerHeight,l=this.shiftHeight=Math.ceil(F.limitAt((i-r)/2,0,i)),h=this.shiftWidth=Math.ceil(F.limitAt((o-s)/2,0,o));1===this.app.zoomValue&&(this.left=0,this.top=0),this.element.css({top:-l,bottom:-l,right:-h,left:-h,paddingTop:t.top,paddingRight:t.right,paddingBottom:t.bottom,paddingLeft:t.left,transform:"translate3d("+this.left+"px,"+this.top+"px,0)"}),this.wrapper.css({width:o,height:i,marginTop:e.height-i-t.height>0?(e.height-t.height-i)/2:0}),this.wrapper.height(i).width(o-o%2),!0===this.app.pendingZoom&&this.zoom(),this.app.viewer.annotedPage=null,this.pagesReady()}},{key:"zoom",value:function(){var e=this.app;if(e.zoomChanged){var t=e.dimensions.origin,i=e.zoomValueChange;if(1===e.zoomValue)this.left=0,this.top=0;else{this.left*=i,this.top*=i,e.viewer.zoomCenter||(e.viewer.zoomCenter={x:t.x,y:t.y});var n={raw:e.viewer.zoomCenter},a={raw:{}},o=(n.raw.x-t.x)*i,s=(n.raw.y-t.y)*i;a.raw.x=t.x+o,a.raw.y=t.y+s,this.startPoint=a,this.pan(n),this.startPoint=null}}e.viewer.zoomCenter=null}},{key:"reset",value:function(){this.leftPage.resetTexture(),this.rightPage.resetTexture()}},{key:"refresh",value:function(){var e=this.app,t=e.viewer,i=t.getBasePage(),n=t.isBooklet?!e.isRTL:e.isRTL,a=n?this.rightPage:this.leftPage,o=n?this.leftPage:this.rightPage;a.pageNumber=i,o.pageNumber=i+1,a.updateCSS({display:0===i?"none":"block"}),o.updateCSS({display:o.pageNumber>e.pageCount||t.isBooklet?"none":"block"})}},{key:"updateCenter",value:function(){if(null!==this&&null!==this.app.viewer){var e=this.app.viewer.centerShift,t=this.app.viewer.isRTL,i=!t&&this.app.currentPageNumber>1||t&&this.app.currentPageNumber<this.app.pageCount?this.leftSheetWidth:this.rightSheetWidth;this.wrapper[0].style.left=e*i/2+"px"}}},{key:"isDoubleInternalPage",value:function(e){return this.app.viewer.isDoubleInternalPage(e)}},{key:"pagesReady",value:function(){if(!this.app.viewer.isFlipping()&&(1!==this.app.zoomValue&&this.app.viewer.updatePendingStatusClass(!1),!1===this.app.options.flipbookFitPages)){var e=this.app.viewer.getBasePage(),t=this.leftViewPort=this.app.viewer.getViewPort(e+(this.app.viewer.isBooklet?0:this.app.viewer.isRTL?1:0)),i=this.rightViewPort=this.app.viewer.getViewPort(e+(this.app.viewer.isBooklet?0:this.app.viewer.isRTL?0:1));if(t){var n=F.contain(t.width,t.height,this.app.viewer.availablePageWidth(),this.app.viewer.availablePageHeight());this.leftSheetWidth=Math.floor(n.width),this.leftSheetHeight=Math.floor(n.height),this.leftSheetTop=(this.app.viewer.availablePageHeight()-this.leftSheetHeight)/2,this.app.zoomValue>this.app.viewer.pureMaxZoom&&this.leftPage.contentLayer[0].style.setProperty("--scale-factor",this.leftSheetHeight/t.height)}if(i){var a=F.contain(i.width,i.height,this.app.viewer.availablePageWidth(),this.app.viewer.availablePageHeight());this.rightSheetWidth=Math.floor(a.width),this.rightSheetHeight=Math.floor(a.height),this.rightSheetTop=(this.app.viewer.availablePageHeight()-this.rightSheetHeight)/2,this.app.zoomValue>this.app.viewer.pureMaxZoom&&this.rightPage.contentLayer[0].style.setProperty("--scale-factor",this.rightSheetHeight/i.height)}(void 0!=t||void 0!=i)&&(this.totalSheetsWidth=this.leftSheetWidth+this.rightSheetWidth,this.leftPage.element.height(Math.floor(this.leftSheetHeight)).width(Math.floor(this.leftSheetWidth)).css({transform:"translateY("+Math.floor(this.leftSheetTop)+"px)"}),this.rightPage.element.height(Math.floor(this.rightSheetHeight)).width(Math.floor(this.rightSheetWidth)).css({transform:"translateY("+Math.floor(this.rightSheetTop)+"px)"}))}}},{key:"textureLoadedCallback",value:function(e){this.getPageByNumber(e.pageNumber),this.pagesReady()}}]),i}(g),U=/*#__PURE__*/function(){function e(t){R(this,e),this.parentElement=t.parentElement,this.isFlipping=!1,this.isOneSided=!1,this.viewer=t.viewer,this.frontPage=null,this.backPage=null,this.pageNumber=void 0,this.animateToReset=null}return I(e,[{key:"init",value:function(){}},{key:"flip",value:function(){}},{key:"frontImage",value:function(e){this.frontPage.loadTexture({texture:e.texture,callback:e.callback})}},{key:"backImage",value:function(e){this.backPage.loadTexture({texture:e.texture,callback:e.callback})}},{key:"resetTexture",value:function(){this.frontPage.resetTexture(),this.backPage.resetTexture()}},{key:"reset",value:function(){this.animateToReset=null,this.isFlipping=!1,this.currentTween=null,this.pendingPoint=null,this.magnetic=!1,this.skipFlip=!0,this.animateToReset=null,this.viewer.dragPage=null,this.viewer.flipPage=null,this.viewer.corner=n.TURN_CORNER.NONE}}]),e}();function H(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function V(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function W(e,t,i){return t&&V(e.prototype,t),i&&V(e,i),e}function j(e,t,i){return(j="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,i){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=q(e)););return e}(e,t);if(n){var a=Object.getOwnPropertyDescriptor(n,t);return a.get?a.get.call(i||e):a.value}})(e,t,i||e)}function q(e){return(q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function G(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Z(e,t)}function Z(e,t){return(Z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function K(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var i,n=q(e);return i=t?Reflect.construct(n,arguments,q(this).constructor):n.apply(this,arguments),i&&("object"==(i&&"undefined"!=typeof Symbol&&i.constructor===Symbol?"symbol":typeof i)||"function"==typeof i)?i:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this)}}var Q=n.utils,X=/*#__PURE__*/function(e){G(i,e);var t=K(i);function i(e){var n;return H(this,i),(n=t.call(this,e)).init(),n}return W(i,[{key:"init",value:function(){var e="<div>",t=this.element=jQuery(e,{class:"df-sheet"}),i=this.frontPage=new S;i.element.addClass("df-page-front");var n=this.backPage=new S;n.element.addClass("df-page-back");var a=this.wrapper=jQuery(e,{class:"df-sheet-wrapper"}),o=this.foldInnerShadow=jQuery(e,{class:"df-sheet-fold-inner-shadow"}),s=this.foldOuterShadow=jQuery(e,{class:"df-sheet-fold-outer-shadow"});this.parentElement.append(t),t.append(a),t.append(s),a.append(i.element),a.append(n.element),a.append(o)}},{key:"updateCSS",value:function(e){this.element.css(e)}},{key:"resetCSS",value:function(){this.wrapper.css({transform:""}),this.frontPage.resetCSS(),this.backPage.resetCSS()}},{key:"updateSize",value:function(e,t,i){e=Math.floor(e),t=Math.floor(t),i=Math.floor(i),this.wrapper[0].style.height=this.wrapper[0].style.width=Math.ceil(Q.distOrigin(e,t)*this.viewer.app.zoomValue)+"px",this.element[0].style.height=this.frontPage.element[0].style.height=this.backPage.element[0].style.height=this.foldInnerShadow[0].style.height=t+"px",this.element[0].style.width=this.frontPage.element[0].style.width=this.backPage.element[0].style.width=this.foldInnerShadow[0].style.width=e+"px",this.element[0].style.transform="translateY("+i+"px)"}},{key:"flip",value:function(e){var t=this;if(e=e||t.pendingPoint,null!=t&&null!=t.viewer){t.isFlipping=!0,t.viewer.flipPage=t;var i,a,o=t.viewer.isBooklet,s=t.side===n.TURN_DIRECTION.RIGHT,r=t.viewer.isRTL,l=t.viewer.corner===n.TURN_CORNER.BL||t.viewer.corner===n.TURN_CORNER.BR?t.element.height():0,h=t.viewer.leftSheetWidth+t.viewer.rightSheetWidth,u=0;a=t.end=t&&!0===t.animateToReset?{x:s?h:0,y:l}:{x:s?0:h,y:l},t.flipEasing=t.isHard?TWEEN.Easing.Quadratic.InOut:TWEEN.Easing.Linear.None;var p=t.viewer.app.options.duration;!0===t.isHard?(null!=e&&(u=Q.angleByDistance(e.distance,e.fullWidth)),i=t.init={angle:u*(s?-1:1)},a=t.end=t&&!0===t.animateToReset?{angle:s?0:-0}:{angle:s?-180:180}):null==e?i=t.init=t&&!0===t.animateToReset?{x:s?0:h,y:0}:{x:s?h:0,y:0}:(i=t.init={x:e.x,y:e.y,opacity:1},p=t.viewer.app.options.duration*Q.distPoints(i.x,i.y,a.x,a.y)/t.viewer.fullWidth,p=Q.limitAt(p,t.viewer.app.options.duration/3,t.viewer.duration)),i.index=0,a.index=1,t.isFlipping=!0,o&&(!s&&!r||s&&r)&&(t.element[0].style.opacity=0),!0===t.isHard?t.currentTween=new TWEEN.Tween(i).delay(0).to(a,t.viewer.app.options.duration).onUpdate(function(){t.updateTween(this)}).easing(t.flipEasing).onComplete(t.completeTween.bind(t)).start():null==e?t.currentTween=new TWEEN.Tween(i).delay(0).to(a,t.viewer.app.options.duration).onUpdate(function(){t.updateTween(this)}).easing(TWEEN.Easing.Sinusoidal.Out).onComplete(t.completeTween.bind(t)).start():t.currentTween=new TWEEN.Tween(i).delay(0).to(a,p).onUpdate(function(){t.updateTween(this)}).easing(TWEEN.Easing.Sinusoidal.Out).onComplete(t.completeTween.bind(t)).start()}}},{key:"updatePoint",value:function(e){if(null!=e){var t=this.element.width(),i=this.element.height(),a=this.viewer.corner!==n.TURN_CORNER.NONE?this.viewer.corner:e.corner,o=n.TURN_CORNER,s=this.side===n.TURN_DIRECTION.RIGHT,r=a===o.BL||a===o.BR;e.rx=!0===s?this.viewer.leftSheetWidth+t-e.x:e.x,e.ry=!0===r?i-e.y:e.y;var l=Math.atan2(e.ry,e.rx);l=Math.PI/2-Q.limitAt(l,0,Q.toRad(90));var h=t-e.rx/2,u=e.ry/2,p=Math.max(0,Math.sin(l-Math.atan2(u,h))*Q.distOrigin(h,u)),c=.5*Q.distOrigin(e.rx,e.ry),d=Math.ceil(t-p*Math.sin(l)),f=Math.ceil(p*Math.cos(l)),g=Q.toDeg(l),v=r?s?180+(90-g):180+g:s?g:90-g,m=r?s?180+(90-g):g:s?g+180:v,y=r?s?90-g:g+90:s?v-90:v+180,b=s?t-d:d,w=r?i+f:-f,P=s?-d:d-t,S=r?-i-f:f,x=Q.limitAt(.5*e.distance/t,0,.5),C=Q.limitAt((this.viewer.leftSheetWidth+t-e.rx)*.5/t,.05,.3);this.element.addClass("df-folding");var E=s?this.backPage.element:this.frontPage.element,T=s?this.frontPage.element:this.backPage.element,k=this.foldOuterShadow,O=this.foldInnerShadow;this.wrapper.css({transform:Q.translateStr(b,w)+Q.rotateStr(v)}),T.css({transform:Q.rotateStr(-v)+Q.translateStr(-b,-w)}),E.css({transform:Q.rotateStr(m)+Q.translateStr(P,S),boxShadow:"rgba(0, 0, 0, "+x+") 0px 0px 20px"}),O.css({transform:Q.rotateStr(m)+Q.translateStr(P,S),opacity:C/2,backgroundImage:Q.prefix.css+"linear-gradient( "+y+"deg, rgba(0, 0, 0, 0.25) , rgb(0, 0, 0) "+.7*c+"px, rgb(255, 255, 255) "+c+"px)"}),k.css({opacity:C/2,left:s?"auto":0,right:s?0:"auto",backgroundImage:Q.prefix.css+"linear-gradient( "+(-y+180)+"deg, rgba(0, 0, 0,0) "+c/3+"px, rgb(0, 0, 0) "+c+"px)"})}}},{key:"updateAngle",value:function(e,t){var i=5*this.element.width();this.wrapper.css({perspective:i,perspectiveOrigin:!0===t?"0% 50%":"100% 50%"}),this.element.addClass("df-folding"),this.backPage.updateCSS({display:!0===t?e<=-90?"block":"none":e<90?"block":"none",transform:("MfS"!==Q.prefix.dom?"":"perspective("+i+"px) ")+(!0===t?"translateX(-100%) ":"")+"rotateY("+((!0===t?180:0)+e)+"deg)"}),this.frontPage.updateCSS({display:!0===t?e>-90?"block":"none":e>=90?"block":"none",transform:("MSd"!==Q.prefix.dom?"":"perspective("+i+"px) ")+(!1===t?"translateX(100%) ":"")+"rotateY("+((!1===t?-180:0)+e)+"deg)"})}},{key:"updateTween",value:function(e){var t=this.viewer.isBooklet,i=this.side===n.TURN_DIRECTION.RIGHT,a=this.viewer.isRTL,o=!0===this.animateToReset;!0===this.isHard?(this.updateAngle(e.angle,i),this.angle=e.angle):(this.updatePoint({x:e.x,y:e.y}),this.x=e.x,this.y=e.y),t&&!o&&(this.element[0].style.opacity=i&&!a||!i&&a?e.index>.5?2*(1-e.index):1:e.index<.5?2*e.index:1)}},{key:"completeTween",value:function(){!0===this.isHard?(this.updateAngle(this.end.angle),this.backPage.element.css({display:"block"}),this.frontPage.element.css({display:"block"})):this.updatePoint({x:this.end.x,y:this.end.y}),this.element[0].style.opacity=1,!0!==this.animateToReset&&(this.side=this.targetSide),this.reset(),this.viewer.onFlip(),this.viewer.afterFlip(),this.viewer.requestRefresh()}}]),i}(U),Y=/*#__PURE__*/function(e){G(i,e);var t=K(i);function i(e,a){var o,s;return H(this,i),e.viewerClass=null!==(s=e.viewerClass)&&void 0!==s?s:"df-flipbook-2d",e.skipViewerLoaded=!0,(o=t.call(this,e,a)).bookShadow=jQuery("<div>",{class:"df-book-shadow"}),o.wrapper.append(o.bookShadow),o.corner=n.TURN_CORNER.NONE,a._viewerPrepared(),o}return W(i,[{key:"init",value:function(){j(q(i.prototype),"init",this).call(this),this.initEvents(),this.initPages()}},{key:"initEvents",value:function(){this.stageDOM=this.element[0],j(q(i.prototype),"initEvents",this).call(this)}},{key:"dispose",value:function(){j(q(i.prototype),"dispose",this).call(this),this.element.remove()}},{key:"initPages",value:function(){for(var e=0;e<this.stackCount;e++){var t=new X({parentElement:this.wrapper});t.index=e,t.viewer=this,this.sheets.push(t),this.pages.push(t.frontPage),this.pages.push(t.backPage)}}},{key:"resize",value:function(){j(q(i.prototype),"resize",this).call(this);var e=this.app.dimensions,t=e.padding,n=this.availablePageHeight(),a=this.availablePageWidth(),o=this.fullWidth=2*a,s=e.width,r=e.height,l=this.shiftHeight=Math.ceil(Q.limitAt((n-r+t.height)/2,0,n)),h=this.shiftWidth=Math.ceil(Q.limitAt((o-s+t.width)/2,0,o));1===this.app.zoomValue&&(this.left=0,this.top=0),this.element.css({top:-l,bottom:-l,right:-h,left:-h,paddingTop:t.top,paddingRight:t.right,paddingBottom:t.bottom,paddingLeft:t.left,transform:"translate3d("+this.left+"px,"+this.top+"px,0)"}),this.wrapper.css({marginTop:Math.max(e.height-n-t.height)/2,height:n,width:o-o%2}),this.zoomViewer.resize(),this.centerNeedsUpdate=!0,this.checkCenter(!0),this.pagesReady()}},{key:"updateCenter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.centerShift*(this.isRTL,this.isLeftPage()?this.leftSheetWidth:this.rightSheetWidth)/2;this.seamPosition=(-this.app.dimensions.offset.width+this.app.dimensions.containerWidth)/2+t,this.wrapperShift=(this.isSingle?-this.app.dimensions.stage.innerWidth/2:0)+t,this.wrapper[0].style.left=this.wrapperShift+"px",this.wrapper[0].style.transition=e?"none":"",this.zoomViewer.updateCenter()}},{key:"refreshSheet",value:function(e){var t=e.sheet,i=e.sheetNumber;!1===t.isFlipping&&(e.needsFlip?(t.element.addClass("df-flipping"),t.flip()):(t.skipFlip=!1,t.element.removeClass("df-flipping df-quick-turn df-folding df-left-side df-right-side"),t.element.addClass(t.targetSide===n.TURN_DIRECTION.LEFT?"df-left-side":"df-right-side"),t.side=t.targetSide,t.targetSide===n.TURN_DIRECTION.LEFT?t.updateSize(this.leftSheetWidth,this.leftSheetHeight,this.leftSheetTop):t.updateSize(this.rightSheetWidth,this.rightSheetHeight,this.rightSheetTop))),t.visible=e.visible,t.isHard?t.element.addClass("df-hard-sheet"):(t.element.removeClass("df-hard-sheet"),t.frontPage.updateCSS({display:"block"}),t.backPage.updateCSS({display:"block"})),t.updateCSS({display:!0===t.visible?"block":"none",zIndex:e.zIndex}),null==t.pendingPoint&&!1===t.isFlipping&&t.resetCSS(),i!==t.pageNumber&&(t.element.attr("number",i),t.backPage.element.attr("pagenumber",t.backPage.pageNumber),t.frontPage.element.attr("pagenumber",t.frontPage.pageNumber))}},{key:"eventToPoint",value:function(e){e=Q.fixMouseEvent(e);var t,i,a,o,s,r,l,h,u,p=this.wrapper[0].getBoundingClientRect(),c=this.is3D,d=this.sheets,f=(this.app.dimensions,{x:e.clientX,y:e.clientY}),g=this.parentElement[0].getBoundingClientRect();f.x=f.x-g.left,f.y=f.y-g.top,t=(u=this.dragSheet?this.dragSheet.side===n.TURN_DIRECTION.RIGHT:f.x>this.seamPosition)?this.rightSheetWidth:this.leftSheetWidth,a=u?this.rightSheetHeight:this.leftSheetHeight,i=this.rightSheetWidth+this.leftSheetWidth,s=u?this.rightSheetTop:this.leftSheetTop,o=f.x-(this.seamPosition-this.leftSheetWidth),s=f.y-(p.top-g.top)-s,r=this.drag===n.TURN_DIRECTION.NONE?o<t?o:i-o:this.drag===n.TURN_DIRECTION.LEFT?o:i-o,l=u?d[this.stackCount/2]:d[this.stackCount/2-1],h=o<this.foldSense?n.TURN_DIRECTION.LEFT:o>i-this.foldSense?n.TURN_DIRECTION.RIGHT:n.TURN_DIRECTION.NONE;var v,m=s,y=this.foldSense;return v=o>=0&&o<y?m>=0&&m<=y?n.TURN_CORNER.TL:m>=a-y&&m<=a?n.TURN_CORNER.BL:m>y&&m<a-y?n.TURN_CORNER.L:n.TURN_CORNER.NONE:o>=i-y&&o<=i?m>=0&&m<=y?n.TURN_CORNER.TR:m>=a-y&&m<=a?n.TURN_CORNER.BR:m>y&&m<a-y?n.TURN_CORNER.R:n.TURN_CORNER.NONE:n.TURN_CORNER.NONE,{isInsideSheet:o>=0&&o<=i&&m>=0&&m<=a,isInsideCorner:v!==n.TURN_CORNER.NONE&&v!==n.TURN_CORNER.L&&v!==n.TURN_CORNER.R,x:c?f.x:o,y:c?f.y:s,fullWidth:i,sheetWidth:t,sheetHeight:a,rawDistance:i-o,distance:r,sheet:l,drag:h,foldSense:this.foldSense,event:e,raw:f,corner:v}}},{key:"pan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Q.pan(this,e,t)}},{key:"mouseMove",value:function(e){var t=this.eventToPoint(e);if(null!=e.touches&&2==e.touches.length){this.pinchMove(e);return}1!==this.app.zoomValue&&null!=this.startPoint&&!0===this.canSwipe&&(this.pan(t),e.preventDefault());var i=this.dragSheet||t.sheet;if(null==this.flipPage&&(null!=this.dragSheet||!0===t.isInsideCorner)){null!=this.dragSheet||(t.y=Q.limitAt(t.y,1,this.availablePageHeight()-1),t.x=Q.limitAt(t.x,1,t.fullWidth-1));var a=null!=this.dragSheet?this.corner:t.corner;if(i.isHard){var o=a===n.TURN_CORNER.BR||a===n.TURN_CORNER.TR,s=Q.angleByDistance(t.distance,t.fullWidth);i.updateAngle(s*(o?-1:1),o)}else i.updatePoint(t);i.magnetic=!0,i.magneticCorner=t.corner,e.preventDefault()}null==this.dragSheet&&null!=i&&!1===t.isInsideCorner&&!0===i.magnetic&&(i.pendingPoint=t,i.animateToReset=!0,i.magnetic=!1,this.corner=i.magneticCorner,i.flip(i.pendingPoint),i.pendingPoint=null),this.checkSwipe(t,e)}},{key:"mouseUp",value:function(e){if(null!=this.startPoint&&(e.touches||0===e.button)){if(null==this.dragSheet&&null!=e.touches&&0==e.touches.length){this.pinchUp(e);return}var t=this.eventToPoint(e),i=e.target||e.originalTarget,a=1===this.app.zoomValue&&t.x===this.startPoint.x&&t.y===this.startPoint.y&&"A"!==i.nodeName;if(!0===e.ctrlKey&&a)this.zoomOnPoint(t);else if(this.dragSheet){e.preventDefault();var o=this.dragSheet;if(o.pendingPoint=t,this.drag=t.drag,a&&(!0===t.isInsideCorner||t.isInsideSheet&&this.clickAction===n.MOUSE_CLICK_ACTIONS.NAV))t.corner.indexOf("l")>-1?this.app.openLeft():this.app.openRight();else{var s=this.getBasePage();t.distance>t.sheetWidth/2&&(t.sheet.side===n.TURN_DIRECTION.LEFT?this.app.openLeft():this.app.openRight()),s===this.getBasePage()&&(o.animateToReset=!0,o.flip(t))}this.dragSheet=null,o.magnetic=!1}else a&&!t.sheet.isFlipping&&t.isInsideSheet&&this.clickAction===n.MOUSE_CLICK_ACTIONS.NAV&&("left"===t.sheet.side?this.app.openLeft():this.app.openRight());this.startPoint=null,this.canSwipe=!1,this.drag=n.TURN_DIRECTION.NONE}}},{key:"mouseDown",value:function(e){if(e.touches||0===e.button){if(null!=e.touches&&2==e.touches.length){this.pinchDown(e);return}var t=this.eventToPoint(e);this.startPoint=t,this.lastPosX=t.x,this.lastPosY=t.y,t.isInsideCorner&&null==this.flipPage?(this.dragSheet=t.sheet,this.drag=t.drag,this.corner=t.corner,0===t.sheet.pageNumber?this.bookShadow.css({width:"50%",left:this.app.isRTL?0:"50%",transitionDelay:""}):t.sheet.pageNumber===Math.ceil(this.app.pageCount/2)-1&&this.bookShadow.css({width:"50%",left:this.app.isRTL?"50%":0,transitionDelay:""})):this.canSwipe=!0}}},{key:"onScroll",value:function(e){}},{key:"resetPageTween",value:function(){for(var e=0;e<this.stackCount;e++){var t=this.sheets[e];t.currentTween&&t.currentTween.complete(!0)}this.requestRefresh()}},{key:"pagesReady",value:function(){if(!this.isFlipping()){if(!1===this.app.options.flipbookFitPages){var e=this.app.viewer.getBasePage(),t=this.leftViewport=this.getViewPort(e+(this.isBooklet?0:this.isRTL?1:0)),i=this.rightViewPort=this.getViewPort(e+(this.isBooklet?0:this.isRTL?0:1));if(t){var a=Q.contain(t.width,t.height,this.availablePageWidth(),this.availablePageHeight());this.leftSheetWidth=Math.floor(a.width),this.leftSheetHeight=Math.floor(a.height),this.leftSheetTop=(this.availablePageHeight()-this.leftSheetHeight)/2}if(i){var o=Q.contain(i.width,i.height,this.availablePageWidth(),this.availablePageHeight());this.rightSheetWidth=Math.floor(o.width),this.rightSheetHeight=Math.floor(o.height),this.rightSheetTop=(this.availablePageHeight()-this.rightSheetHeight)/2}this.totalSheetsWidth=this.leftSheetWidth+this.rightSheetWidth;for(var s=0;s<this.sheets.length;s++){var r=this.sheets[s];r.side===n.TURN_DIRECTION.LEFT?r.updateSize(this.leftSheetWidth,this.leftSheetHeight,this.leftSheetTop):r.updateSize(this.rightSheetWidth,this.rightSheetHeight,this.rightSheetTop)}}this.updateCenter(),this.updatePendingStatusClass()}}},{key:"textureLoadedCallback",value:function(e){this.getPageByNumber(e.pageNumber),this.pagesReady()}}]),i}(z);function J(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function ee(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function et(e,t,i){return t&&ee(e.prototype,t),i&&ee(e,i),e}function ei(e){return(ei=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function en(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&eo(e,t)}function ea(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function eo(e,t){return(eo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function es(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var i,n=ei(e);return i=t?Reflect.construct(n,arguments,ei(this).constructor):n.apply(this,arguments),i&&("object"==(i&&"undefined"!=typeof Symbol&&i.constructor===Symbol?"symbol":typeof i)||"function"==typeof i)?i:J(this)}}var er={};function el(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eh(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function eu(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ep(e,t,i){return t&&eu(e.prototype,t),i&&eu(e,i),e}function ec(e,t,i){return(ec="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,i){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ed(e)););return e}(e,t);if(n){var a=Object.getOwnPropertyDescriptor(n,t);return a.get?a.get.call(i||e):a.value}})(e,t,i||e)}function ed(e){return(ed=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ef(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&eg(e,t)}function eg(e,t){return(eg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ev(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var i,n=ed(e);return i=t?Reflect.construct(n,arguments,ed(this).constructor):n.apply(this,arguments),i&&("object"==(i&&"undefined"!=typeof Symbol&&i.constructor===Symbol?"symbol":typeof i)||"function"==typeof i)?i:el(this)}}er.init=function(){if(!0!==er.initialized){var e=window.THREE;er={init:function(){},initialized:!0,GEOMETRY_TYPE:{PLANE:0,BOX:1,MODEL:2},MATERIAL_FACE:{FRONT:5,BACK:4},WHITE_COLOR:new e.Color("white"),defaults:{anisotropy:8,maxTextureSize:2048,groundTexture:"blank",color:16777215,shininess:15,width:210,height:297,depth:.2,segments:150,textureLoadFallback:"blank"},textureLoader:new e.TextureLoader,clearChild:function(e){var t,i=e.material;if(e.parent.remove(e),e=l.disposeObject(e),null!=i){if(null==i.length)i.map&&(t=i.map,i.dispose(),t.dispose()),i.bumpMap&&(t=i.bumpMap,i.dispose(),t.dispose()),i.normalMap&&(t=i.normalMap,i.dispose(),t.dispose());else for(var n=0;n<i.length;n++)i[n]&&(i[n].map&&(t=i[n].map,i[n].dispose(),t.dispose()),i[n].bumpMap&&(t=i[n].bumpMap,i[n].dispose(),t.dispose()),i[n].normalMap&&(t=i[n].normalMap,i[n].dispose(),t.dispose())),i[n]=null;i=null,t=null}},loadImage:function(t,i,n,a,o){if(null==i){var s=null==t.material[n]?null:t.material[n][a]?t.material[n][a].sourceFile:null;return null==s?null:s.indexOf("data:image")>-1?null:s}var r=null;return"CANVAS"===i.nodeName||"IMG"===i.nodeName?((r=new e.Texture(i)).needsUpdate=!0,er.loadTexture(r,t,a,n),"function"==typeof o&&o(t,r)):"blank"!==i?(r=null==i?null:er.textureLoader.load(i,function(e){e.sourceFile=i,er.loadTexture(e,t,a,n),"function"==typeof o&&o(t,e)},void 0,function(){null==r.image&&er.loadImage(t,er.defaults.textureLoadFallback,n,a),er.loadTextureFailed()}))&&(r.mapping=e.UVMapping):(er.loadTexture(null,t,a,n),"function"==typeof o&&o(t,r)),0},loadTexture:function(t,i,n,a){if(t){var o=t.image;t.naturalWidth=o.naturalWidth,t.naturalHeight=o.naturalHeight,t.needsUpdate=!0,void 0!=i.textureRotation&&(t.rotation=e.MathUtils.degToRad(i.textureRotation),t.center=i.textureCenter)}null!==t&&"map"===n&&(t.anisotropy=0,er.defaults.anisotropy>0&&(t.anisotropy=er.defaults.anisotropy),!0===e.skipPowerOfTwo&&(t.minFilter=e.LinearFilter,t.magFilter=e.LinearFilter),t.name=new Date().toTimeString()),er.clearTexture(i.material[a][n]),i.material[a][n]=t,"bumpMap"===n&&(i.material[a].bumpScale=i.sheet.getBumpScale(a)),i.material[a].needsUpdate=!0},loadTextureFailed:function(){return null},clearTexture:function(e){e&&(e.image&&"CANVAS"===e.image.nodeName&&(e.image.remove&&e.image.remove(),delete e.image),e=l.disposeObject(e))}},e.skipPowerOfTwo=!0;var t=/*#__PURE__*/function(t){en(n,t);var i=es(n);function n(t){$(this,n);var a,o=t.width||er.defaults.width,s=t.height||er.defaults.height,r=t.color||er.defaults.color,l=t.segments||er.defaults.segments,h=t.depth||er.defaults.depth,u={color:r,flatShading:!1,shininess:t.shininess||er.defaults.shininess},p=new e.MeshPhongMaterial(u),c=[p,p,p,p,new e.MeshPhongMaterial(u),new e.MeshPhongMaterial(u)];return(a=i.call(this,new e.BoxGeometry(o,s,h,l,1,1),c)).material[5].transparent=!0,a.material[4].transparent=!0,a.baseType="Paper",a.type="Paper",a.castShadow=!0,a.receiveShadow=!0,t.parent3D.add(J(a)),a}return et(n,[{key:"loadImage",value:function(e,t,i){er.loadImage(this,e,t,"map",i)}},{key:"frontImage",value:function(e,t){er.loadImage(this,e,er.MATERIAL_FACE.FRONT,"map",t)}},{key:"backImage",value:function(e,t){er.loadImage(this,e,er.MATERIAL_FACE.BACK,"map",t)}},{key:"loadBump",value:function(e){er.loadImage(this,e,er.MATERIAL_FACE.FRONT,"bumpMap",null),er.loadImage(this,e,er.MATERIAL_FACE.BACK,"bumpMap",null)}},{key:"loadNormalMap",value:function(e,t){if(void 0!==t){er.loadImage(this,e,t,"normalMap",null);return}er.loadImage(this,e,er.MATERIAL_FACE.FRONT,"normalMap",null),er.loadImage(this,e,er.MATERIAL_FACE.BACK,"normalMap",null)}}]),n}(e.Mesh),i=/*#__PURE__*/function(e){en(i,e);var t=es(i);function i(e){var n;return $(this,i),(n=t.call(this,e)).receiveShadow=!0,n.frontImage(er.defaults.groundTexture),n.backImage(er.defaults.groundTexture),n.type="Ground",n}return i}(t),n=/*#__PURE__*/function(t){en(a,t);var n=es(a);function a(t){$(this,a);var o,s=J(o=n.call(this));s.canvas=t.canvas||document.createElement("canvas"),s.canvas=jQuery(o.canvas),s.camera=new e.PerspectiveCamera(20,s.width/s.height,4,5e4),s.renderer=new e.WebGLRenderer({canvas:s.canvas[0],antialias:!0,alpha:!0}),s.renderer.setPixelRatio(t.pixelRatio),s.renderer.setSize(s.width,s.height),s.renderer.setClearColor(16777215,0),s.renderer.shadowMap.enabled=!0,s.renderer.shadowMap.type=1,s.ground=new i({color:16777215,height:s.camera.far/10,width:s.camera.far/10,segments:2,parent3D:s}),s.ambientLight=new e.AmbientLight(4473924),s.add(s.ambientLight);var r=s.spotLight=new e.DirectionalLight(16777215,.25);return r.position.set(0,1,0),!1!==t.castShadow&&(r.castShadow=!0,r.shadow.camera.near=200,r.shadow.camera.far=2e3,r.shadow.camera.top=1350,r.shadow.camera.bottom=-1350,r.shadow.camera.left=-1350,r.shadow.camera.right=1350,r.shadow.radius=2,r.shadow.mapSize.width=1024,r.shadow.mapSize.height=1024,r.shadow.needsUpdate=!0),s.add(r),s.animateCount=0,s.renderCount=0,s.camera.position.set(-300,300,300),s.camera.lookAt(new e.Vector3(0,0,0)),o}return et(a,[{key:"resizeCanvas",value:function(e,t){this.renderer.setSize(e,t),this.camera.aspect=e/t,this.camera.updateProjectionMatrix()}},{key:"render",value:function(){this.animateCount++,this.renderer.render(this,this.camera),null!=this.stats&&this.stats.update()}},{key:"clearMaterials",value:function(){for(var e=this.children.length,t=e-1;t>=0;t--){var i=this.children[t];if(i.baseType&&"Paper"===i.baseType&&i.material){if(i.material.length)for(var n=0;n<i.material.length;n++)i.material[n].needsUpdate=!0;else i.material.needsUpdate=!0}}}},{key:"clearChild",value:function(){this.spotLight.shadow.map=l.disposeObject(this.spotLight.shadow.map),this.spotLight.castShadow=!1,this.clearMaterials();for(var e=this.children.length,t=e-1;t>=0;t--){var i=this.children[t];if(i.children&&i.children.length>0)for(var n=i.children.length-1;n>=0;n--)er.clearChild(i.children[n]);er.clearChild(i),i=null}this.render()}}]),a}(e.Scene);er.Paper=t,er.Stage=n;var a=/*#__PURE__*/function(e){en(i,e);var t=es(i);function i(e){var n;return $(this,i),(n=t.call(this)).element=e,n.element.style.position="absolute",n.addEventListener("removed",function(){null!==this.element.parentNode&&this.element.parentNode.removeChild(this.element)}),n}return i}(e.Object3D);e.CSS3DObject=a;var o=/*#__PURE__*/function(e){en(i,e);var t=es(i);function i(e){return $(this,i),t.call(this,e)}return i}(e.CSS3DObject);e.CSS3DSprite=o,e.MathUtils&&(e.Math=e.MathUtils),e.CSS3DRenderer=function(){l.log("THREE.CSS3DRenderer",e.REVISION);var t,i,n,a,o=new e.Matrix4,s={camera:{fov:0,style:""},objects:{}},r=document.createElement("div");r.style.overflow="hidden",r.style.WebkitTransformStyle="preserve-3d",r.style.MozTransformStyle="preserve-3d",r.style.oTransformStyle="preserve-3d",r.style.transformStyle="preserve-3d",this.domElement=r;var h=document.createElement("div");h.style.WebkitTransformStyle="preserve-3d",h.style.MozTransformStyle="preserve-3d",h.style.oTransformStyle="preserve-3d",h.style.transformStyle="preserve-3d",r.appendChild(h),this.setClearColor=function(){},this.getSize=function(){return{width:t,height:i}},this.setSize=function(e,o){t=e,i=o,n=t/2,a=i/2,r.style.width=e+"px",r.style.height=o+"px",h.style.width=e+"px",h.style.height=o+"px"};var u=function(e){return Math.abs(e)<Number.EPSILON?0:e},p=function(e){var t=e.elements;return"matrix3d("+u(t[0])+","+u(-t[1])+","+u(t[2])+","+u(t[3])+","+u(t[4])+","+u(-t[5])+","+u(t[6])+","+u(t[7])+","+u(t[8])+","+u(-t[9])+","+u(t[10])+","+u(t[11])+","+u(t[12])+","+u(-t[13])+","+u(t[14])+","+u(t[15])+")"},c=function(e){var t=e.elements;return"translate3d(-50%,-50%,0) matrix3d("+u(t[0])+","+u(t[1])+","+u(t[2])+","+u(t[3])+","+u(-t[4])+","+u(-t[5])+","+u(-t[6])+","+u(-t[7])+","+u(t[8])+","+u(t[9])+","+u(t[10])+","+u(t[11])+","+u(t[12])+","+u(t[13])+","+u(t[14])+","+u(t[15])+")"},d=function(t,i){if(ea(t,e.CSS3DObject)){ea(t,e.CSS3DSprite)?(o.copy(i.matrixWorldInverse),o.transpose(),o.copyPosition(t.matrixWorld),o.scale(t.scale),o.elements[3]=0,o.elements[7]=0,o.elements[11]=0,o.elements[15]=1,n=c(o)):n=c(t.matrixWorld);var n,a=t.element,r=s.objects[t.id];(void 0===r||r!==n)&&(a.style.WebkitTransform=n,a.style.MozTransform=n,a.style.oTransform=n,a.style.transform=n,s.objects[t.id]=n),a.parentNode!==h&&h.appendChild(a)}for(var l=0,u=t.children.length;l<u;l++)d(t.children[l],i)};this.render=function(t,o){var l=.5/Math.tan(e.Math.degToRad(.5*o.fov))*i;s.camera.fov!==l&&(r.style.WebkitPerspective=l+"px",r.style.MozPerspective=l+"px",r.style.oPerspective=l+"px",r.style.perspective=l+"px",s.camera.fov=l),t.updateMatrixWorld(),null===o.parent&&o.updateMatrixWorld(),o.matrixWorldInverse.invert?o.matrixWorldInverse.copy(o.matrixWorld).invert():o.matrixWorldInverse.getInverse(o.matrixWorld);var u="translate3d(0,0,"+l+"px)"+p(o.matrixWorldInverse)+" translate3d("+n+"px,"+a+"px, 0)";s.camera.style!==u&&(h.style.WebkitTransform=u,h.style.MozTransform=u,h.style.oTransform=u,h.style.transform=u,s.camera.style=u),d(t,o)}}}};var em=n.utils,ey=/*#__PURE__*/function(e){ef(i,e);var t=ev(i);function i(e){var n;return eh(this,i),(n=t.call(this,e)).flexibility=e.flexibility,n.sheetAngle=180,n.curveAngle=0,n.parent3D=e.parent3D,n.segments=e.segments||50,n.width=e.width||100,n.height=e.height||100,n.depth=e.depth||.5,n.matColor="white",n.fallbackMatColor=er.WHITE_COLOR,n.init(),n.bumpScale=[0,0,0,0,1,1],n}return ep(i,[{key:"init",value:function(){this.element=new er.Paper({parent3D:this.parent3D,segments:this.segments,depth:this.depth,height:this.height,width:this.width,flatShading:0===this.flexibility}),this.element.sheet=this,this.frontPage=new ew({sheet:this,face:5}),this.backPage=new ew({sheet:this,face:4}),this.reset(),this.updateAngle()}},{key:"setMatColor",value:function(e,t){if(this.matColor=new THREE.Color(e),void 0===t)for(var i=0;i<6;i++)this.element.material[i].color=this.matColor;else this.element.material[t].color=this.matColor}},{key:"getBumpScale",value:function(e){return this.bumpScale[e]}},{key:"resetMatColor",value:function(e,t){this.element.material[e].color=t?this.matColor:this.fallbackMatColor}},{key:"frontImage",value:function(e,t){this.element.frontImage(e,t)}},{key:"backImage",value:function(e,t){this.element.backImage(e,t)}},{key:"updateAngle",value:function(){if(void 0!==this.viewer&&null!==this.viewer){var e=!0===this.isHard?0:this.flexibility,t=("vertical"===this.viewer.orientation?this.height:this.width)*(1-Math.sin(e/2*(e/2))/2-e/20);this.element.scale.y=("vertical"===this.viewer.orientation?this.width:this.height)/this.element.geometry.parameters.height;var i=this.segments,n=t/1,a=n*e,o=[],s=[],r=[],l=[],h=[],u=[],p=this.depth,c=0,d=[];d.push(c),h[0]=[],u[0]=[];var f=this.sheetAngle*Math.PI/180;"vertical"!==this.viewer.orientation&&(this.element.position.x=-Math.cos(f)*this.viewer.pageOffset),"vertical"===this.viewer.orientation&&(this.element.position.y=Math.cos(f)*this.viewer.pageOffset);var g=!0===this.isHard?f:this.curveAngle*Math.PI/180,v=this.sheetAngle*Math.PI/180,m=v-Math.PI/2,y=Math.sin(m)*p/2;h[0][0]=h[0][1]=new THREE.Vector3(-n*Math.cos(f),0,Math.sin(f)*n-y),u[0][0]=u[0][1]=new THREE.Vector3(h[0][0].x-Math.cos(m)*p,0,h[0][0].z+2*y),h[0][1]=new THREE.Vector3(-n/2*Math.cos(g),0,n/2*Math.sin(g)-y),u[0][1]=new THREE.Vector3(h[0][1].x-Math.cos(m)*p,0,h[0][1].z+2*y),v=(45+this.sheetAngle/2)*Math.PI/180,h[0][2]=new THREE.Vector3(-Math.cos(v)*a/2,0,Math.sin(v)*a-y),u[0][2]=new THREE.Vector3(h[0][2].x+Math.cos(m)*p,0,h[0][2].z+2*y),5e-4>Math.abs(u[0][2].x-0)&&(u[0][2].x=0),h[0][3]=new THREE.Vector3(0,0,-y),u[0][3]=new THREE.Vector3(h[0][3].x-Math.cos(m)*p,0,h[0][3].z+2*y),5e-4>Math.abs(u[0][3].x-0)&&(u[0][3].x=0);for(var b=0;b<1;b++){var w=Math.max(this.segments-1,1);o[b]=new THREE.CubicBezierCurve3(h[b][0],h[b][1],h[b][2],h[b][3]),r[b]=o[b].getPoints(w),w>2&&r[b].push(new THREE.Vector3().copy(r[b][w]));for(var P=void 0,S=r[b][0],x=1;x<r[b].length;x++)c+=(P=r[b][x]).distanceTo(S),d.push(c),S=P;s[b]=new THREE.CubicBezierCurve3(u[b][0],u[b][1],u[b][2],u[b][3]),l[b]=s[b].getPoints(w),w>2&&l[b].push(new THREE.Vector3().copy(l[b][w]))}var C=this.element.geometry;if(void 0!==C.attributes){var E=C.attributes.position,T=C.attributes.uv,k=i+1;E.setZ(0,r[0][i].z),E.setZ(2,r[0][i].z),E.setX(0,r[0][i].x),E.setX(2,r[0][i].x),E.setZ(1,l[0][i].z),E.setZ(3,l[0][i].z),E.setX(1,l[0][i].x),E.setX(3,l[0][i].x),E.setZ(5,r[0][0].z),E.setZ(7,r[0][0].z),E.setX(5,r[0][0].x),E.setX(7,r[0][0].x),E.setZ(4,l[0][0].z),E.setZ(6,l[0][0].z),E.setX(4,l[0][0].x),E.setX(6,l[0][0].x);for(var O=0;O<1;O++)for(var R=0;R<k;R++)E.setZ(8+0*k+R,r[0][R].z),E.setX(8+0*k+R,r[0][R].x),E.setZ(8+1*k+R,l[0][R].z),E.setX(8+1*k+R,l[0][R].x),E.setZ(8+2*k+R,r[0][R].z),E.setX(8+2*k+R,r[0][R].x),E.setZ(8+3*k+R,l[0][R].z),E.setX(8+3*k+R,l[0][R].x),E.setZ(8+4*k+R,r[0][R].z),E.setX(8+4*k+R,r[0][R].x),E.setZ(8+5*k+R,r[0][R].z),E.setX(8+5*k+R,r[0][R].x),T.setX(8+4*k+R,d[R]/c),T.setX(8+5*k+R,d[R]/c),E.setZ(8+6*k+R,l[0][i-R].z),E.setX(8+6*k+R,l[0][i-R].x),E.setZ(8+7*k+R,l[0][i-R].z),E.setX(8+7*k+R,l[0][i-R].x),T.setX(8+6*k+R,1-d[i-R]/c),T.setX(8+7*k+R,1-d[i-R]/c);C.computeBoundingBox(),this.element.scale.x=1*n/c,C.computeBoundingSphere(),E.needsUpdate=!0,T.needsUpdate=!0,C.computeVertexNormals()}else{var L=C.vertices,I=i-1,N=8;L[0].z=L[2].z=r[0][i].z,L[0].x=L[2].x=r[0][i].x,L[1].z=L[3].z=l[0][i].z,L[1].x=L[3].x=l[0][i].x,L[5].z=L[7].z=r[0][0].z,L[5].x=L[7].x=r[0][0].x,L[4].z=L[6].z=l[0][0].z,L[4].x=L[6].x=l[0][0].x;for(var _=0;_<1;_++)for(var A=1;A<i;A++)L[N].z=L[N+3*I].z=l[0][A].z,L[N].x=L[N+3*I].x=l[0][A].x,L[N+I].z=L[N+2*I].z=r[0][A].z,L[N+I].x=L[N+2*I].x=r[0][A].x,N++;for(var M=C.faceVertexUvs[0],D=C.faces,F=0,z=0;z<M.length;z++)if(D[z].materialIndex===er.MATERIAL_FACE.BACK){var B=d[F]/c;z%2==0?(M[z][0].x=M[z][1].x=M[z+1][0].x=B,F++):M[z-1][2].x=M[z][1].x=M[z][2].x=B}else if(D[z].materialIndex===er.MATERIAL_FACE.FRONT){var U=1-d[F]/c;z%2==0?(M[z][0].x=M[z][1].x=M[z+1][0].x=U,F--):M[z-1][2].x=M[z][1].x=M[z][2].x=U}C.computeBoundingBox(),this.element.scale.x=1*n/c,C.computeBoundingSphere(),C.verticesNeedUpdate=!0,C.computeFaceNormals(),C.computeVertexNormals(),C.uvsNeedUpdate=!0,C.normalsNeedUpdate=!0}o.forEach(function(e){}),s.forEach(function(e){}),l.forEach(function(e){}),r.forEach(function(e){})}}},{key:"flip",value:function(e,t){var i=this,n=i.viewer.isBooklet;!0===i.isCover&&(0===e&&(e=2.5*i.viewer.flexibility),180===e&&(e-=2.5*i.viewer.flexibility));var a=t-e,o=e>90,s=i.viewer.isRTL,r=o?i.backPage.pageNumber:i.frontPage.pageNumber,l=this.viewer.getViewPort(r);l&&(l=em.contain(l.width,l.height,i.viewer.availablePageWidth(),i.viewer.availablePageHeight()));var h=-(i.viewer.has3DCover&&i.viewer.isClosedPage()?i.viewer.coverExtraWidth:0),u=-(i.viewer.has3DCover&&i.viewer.isClosedPage()?i.viewer.coverExtraHeight:0);i.init={angle:e,height:o?i.viewer.rightSheetHeight:i.viewer.leftSheetHeight,width:o?i.viewer.rightSheetWidth:i.viewer.leftSheetWidth,index:o&&!s||!o&&s?1:0,_index:0},i.first={angle:e+a/4,index:o&&!s||!o&&s?1:.25},i.mid={angle:e+2*a/4,index:.5},i.mid2={angle:e+3*a/4,index:o&&!s||!o&&s?.25:1},i.end={angle:t,index:o&&!s||!o&&s?0:1,height:u+(l?l.height:i.height),width:h+(l?l.width:i.width)},i.isFlipping=!0;var p=function(e){i.sheetAngle=e.angle,i.curveAngle=i.isHard?e.angle:em.getCurveAngle(o,e.angle),!0===i.isHard?(i.flexibility=0,i.isCover&&i.viewer.flipCover(i)):i.flexibility=e.angle<90?i.leftFlexibility:i.rightFlexibility,i.element.position.z=(e.angle<90?i.leftPos:i.rightPos)+i.depth,n&&(i.element.material[5].opacity=i.element.material[4].opacity=e.index,i.element.castShadow=e.index>.5),i.height=e.height,i.width=e.width,i.updateAngle(!0)};n&&(!o&&!s||o&&s)&&(i.element.material[5].opacity=i.element.material[4].opacity=0,i.element.castShadow=!1),i.currentTween=new TWEEN.Tween(i.init).to({angle:[i.first.angle,i.mid.angle,i.mid2.angle,i.end.angle],index:[i.first.index,i.mid.index,i.mid2.index,i.end.index],_index:1,height:i.end.height,width:i.end.width},i.viewer.app.options.duration*Math.abs(a)/180).onUpdate(function(e){p(this,e)}).easing(TWEEN.Easing.Sinusoidal.Out).onStop(function(){i.currentTween=null,i.isFlipping=!1,i.isCover&&(i.viewer.leftCover.isFlipping=!1,i.viewer.rightCover.isFlipping=!1),i.element.material[5].opacity=i.element.material[4].opacity=1}).onComplete(function(){i.updateAngle(),i.element.material[5].opacity=i.element.material[4].opacity=1,i.element.castShadow=!0,i.isFlipping=!1,i.isCover&&(i.viewer.leftCover.isFlipping=!1,i.viewer.rightCover.isFlipping=!1),i.side=i.targetSide,i.viewer.onFlip(),i.viewer.afterFlip(),i.currentTween=null,i.viewer&&i.viewer.requestRefresh&&i.viewer.requestRefresh()}).start(),i.currentTween.update(window.performance.now())}}]),i}(U),eb=/*#__PURE__*/function(e){ef(i,e);var t=ev(i);function i(e,n){var a,o,s,r,l;return eh(this,i),e.viewerClass="df-flipbook-3d",(a=t.call(this,e,n)).pageOffset=5,a.spiralCount=20,a.groundDistance=null!==(o=e.groundDistance)&&void 0!==o?o:2,a.hasSpiral="true"===e.hasSpiral||!0===e.hasSpiral,a.flexibility=em.limitAt(null!==(s=e.flexibility)&&void 0!==s?s:.9,0,10),a.hasSpiral&&(a.flexibility=0),0===a.flexibility&&(e.sheetSegments=8),a.drag3D=em.isTrue(e.drag3D),a.texturePowerOfTwo=!em.isMobile&&(null===(r=e.texturePowerOfTwo)||void 0===r||r),a.color3DSheets=null!==(l=a.app.options.color3DSheets)&&void 0!==l?l:"white",a.midPosition=0,a.initMOCKUP(function(){n._viewerPrepared()}),a}return ep(i,[{key:"initMOCKUP",value:function(e){var t=this.app;"undefined"==typeof THREE?(t.updateInfo(t.options.text.loading+" WEBGL 3D ..."),"function"==typeof window.define&&window.define.amd&&window.requirejs?(window.requirejs.config({paths:{three:t.options.threejsSrc.replace(".js","")},shim:{three:{exports:"THREE"}}}),window.require(["three"],function(t){return window.THREE=t,er.init(),"function"==typeof e&&e(),t})):"function"==typeof window.define&&window.define.amd?window.require(["three",t.options.threejsSrc.replace(".js","")],function(t){t(function(){er.init(),"function"==typeof e&&e()})}):em.getScript(t.options.threejsSrc+"?ver="+n.version,function(){er.init(),"function"==typeof e&&e()},function(){t.updateInfo("Unable to load THREE.js...")})):(er.init(),"function"==typeof e&&e())}},{key:"init",value:function(){var e=this.app;ec(ed(i.prototype),"init",this).call(this),e.provider.defaultPage.pageRatio,this.pageScaleX=1,this.initDepth(),this.initStage(),this.initPages(),this.initEvents(),this.render()}},{key:"updatePageMode",value:function(){ec(ed(i.prototype),"updatePageMode",this).call(this);var e=this.app;this.has3DCover=e.options.cover3DType!==n.FLIPBOOK_COVER_TYPE.NONE&&e.pageCount>7&&!this.isBooklet,this.has3DCover&&"none"===e.options.flipbookHardPages&&(e.options.flipbookHardPages="cover")}},{key:"initDepth",value:function(){var e,t;this.sheetDepth=this.pageScaleX*(null!==(e=this.app.options.sheetDepth)&&void 0!==e?e:.5),this.sheetSegments=null!==(t=this.app.options.sheetSegments)&&void 0!==t?t:20,this.coverDepth=2*this.sheetDepth,this.sheetsDepth=Math.min(10,this.app.pageCount/4)*this.sheetDepth}},{key:"initStage",value:function(){var e=this.stage=new er.Stage({pixelRatio:this.app.options.pixelRatio});(e.canvas=jQuery(e.renderer.domElement).addClass("df-3dcanvas")).appendTo(this.element),e.camera.position.set(0,0,600),e.camera.lookAt(new THREE.Vector3(0,0,0)),this.camera=e.camera,e.spotLight.position.set(-220,220,550),e.spotLight.castShadow=!em.isMobile&&this.app.options.has3DShadow,e.spotLight.shadow&&(e.spotLight.shadow.bias=-.005),e.ambientLight.color=new THREE.Color("#fff"),e.ambientLight.intensity=.82;var t=new THREE.ShadowMaterial;t.opacity=this.app.options.shadowOpacity,e.ground.oldMaterial=e.ground.material,e.ground.material=t,e.ground.position.z=this.has3DCover?-6:-4,e.selectiveRendering=!0;var i=e.cssRenderer=new THREE.CSS3DRenderer;jQuery(i.domElement).css({position:"absolute",top:0,pointerEvents:"none"}).addClass("df-3dcanvas df-csscanvas"),this.element[0].appendChild(i.domElement),e.cssScene=new THREE.Scene,this.wrapper.remove(),this.wrapper=new THREE.Group,this.stage.add(this.wrapper),this.wrapper.add(e.ground),this.bookWrapper=new THREE.Group,this.bookWrapper.name="bookwrapper",this.wrapper.add(this.bookWrapper),this.bookHelper=e.bookHelper=new THREE.BoxHelper(this.bookWrapper,16776960),e.add(this.bookHelper),this.bookHelper.visible=!1,this.cameraWrapper=new THREE.Group,this.cameraWrapper.add(e.camera),e.add(this.cameraWrapper),this.app.renderRequestStatus=n.REQUEST_STATUS.ON}},{key:"initPages",value:function(){for(var e={parent3D:this.bookWrapper,viewer:this,segments:this.sheetSegments,depth:this.sheetDepth,flexibility:this.flexibility},t=0;t<this.stackCount;t++){var i=new ey(e);i.index=t,i.viewer=this,this.sheets.push(i),i.setMatColor(this.color3DSheets),this.pages.push(i.frontPage),this.pages.push(i.backPage),this.stage.cssScene.add(i.frontPage.cssPage),this.stage.cssScene.add(i.backPage.cssPage)}e.depth=this.sheetsDepth,e.segments=1,e.flexibility=0,this.leftSheets=new ey(e),this.rightSheets=new ey(e),this.leftSheets.setMatColor(this.color3DSheets),this.rightSheets.setMatColor(this.color3DSheets),e.depth=this.coverDepth,this.leftCover=new ey(e),this.rightCover=new ey(e),this.leftCover.isHard=!0,this.rightCover.isHard=!0,this.set3DCoverNormal(),this.setcolor3DCover(this.app.options.color3DCover),this.stage.cssScene.add(this.leftCover.frontPage.cssPage),this.stage.cssScene.add(this.rightCover.backPage.cssPage),this.zoomViewer.leftPage.element.css({backgroundColor:this.color3DSheets}),this.zoomViewer.rightPage.element.css({backgroundColor:this.color3DSheets}),"vertical"===this.orientation&&this.bookWrapper.children.forEach(function(e){e.rotateZ(THREE.MathUtils.degToRad(-90)),e.textureCenter=new THREE.Vector2(.5,.5),e.textureRotation=90}),this.initSpiral()}},{key:"initSpiral",value:function(){this.hasSpiral=!1}},{key:"set3DCoverNormal",value:function(){}},{key:"setcolor3DCover",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]}},{key:"initEvents",value:function(){this.stageDOM=this.element[0],ec(ed(i.prototype),"initEvents",this).call(this)}},{key:"dispose",value:function(){ec(ed(i.prototype),"dispose",this).call(this),this.stage&&(this.stage.clearChild(),this.stage.cssRenderer.domElement.parentNode.removeChild(this.stage.cssRenderer.domElement),this.stage.cssRenderer=null,this.stage.orbitControl=em.disposeObject(this.stage.orbitControl),this.stage.renderer=em.disposeObject(this.stage.renderer),jQuery(this.stage.canvas).remove(),this.stage.canvas=null,this.stage=em.disposeObject(this.stage)),this.centerTween&&this.centerTween.stop&&this.centerTween.stop()}},{key:"render",value:function(){this.stage.render(),this.stage.cssRenderer.render(this.stage.cssScene,this.stage.camera)}},{key:"resize",value:function(){ec(ed(i.prototype),"resize",this).call(this);var e=this,t=e.app,n=e.stage,a=t.dimensions;a.padding,e.isSingle;var o=this.availablePageWidth(),s=this.availablePageHeight();n.resizeCanvas(a.stage.width,a.stage.height),n.cssRenderer.setSize(a.stage.width,a.stage.height),this.pageScaleX=Math.max(Math.max(o,s)/400,1),this.initDepth(),this.sheets.forEach(function(t){t.depth=e.sheetDepth}),t.refreshRequestStart();var r=this.refSize=Math.min(s,o);this.coverExtraWidth=("vertical"==e.orientation?2:1)*r*.025,this.coverExtraHeight=("vertical"==e.orientation?1:2)*r*.025,!0!==this.has3DCover&&(this.coverExtraWidth=0,this.coverExtraHeight=0),e.zoomViewer.resize(),e.cameraPositionDirty=!0,e.centerNeedsUpdate=!0,e.checkCenter(!0),e.pagesReady(),this.pageOffset=(this.hasSpiral?6:0)*Math.min(this._defaultPageSize.width,this._defaultPageSize.height)/1e3}},{key:"fitCameraToCenteredObject",value:function(e,t,i,n){var a=new THREE.Box3;a.setFromObject(t),new THREE.Vector3;var o=new THREE.Vector3;a.getSize(o);var s=this.coverExtraHeight,r=2*this.coverExtraWidth;this.isClosedPage()&&(r=0,s=0),o.x=o.x-r+this.app.dimensions.padding.width,o.y=o.y-s+this.app.dimensions.padding.height;var l=e.fov*(Math.PI/180),h=2*Math.atan(Math.tan(l/2)*e.aspect),u=Math.max(o.z/2+Math.abs(o.x/2/Math.tan(h/2)),o.z/2+Math.abs(o.y/2/Math.tan(l/2)));void 0!==i&&0!==i&&(u*=i),e.position.set(0,0,u);var p=a.min.z,c=p<0?-p+u:u-p;e.far=3*c,e.updateProjectionMatrix(),void 0!==n&&(n.target=new THREE.Vector3(0,0,0),n.maxDistance=2*c)}},{key:"updateShadowSize",value:function(){}},{key:"refresh",value:function(){var e=this.app,t=this.getBasePage();this.refreshRequested=!0;var n=1/e.pageCount*t,a=this.isRTL?1-n:n,o=Math.min(this.stackCount,this.totalSheets),s=em.limitAt(this.totalSheets,this.stackCount,2*this.stackCount),r=this.isBooklet?0:this.flexibility/s;this.leftFlexibility=r*(1-a),this.rightFlexibility=r*a,this.midPosition=.5*o*this.sheetDepth,ec(ed(i.prototype),"refresh",this).call(this);var l=!0===this.has3DCover;this.leftCover.element.visible=this.rightCover.element.visible=this.leftSheets.element.visible=this.rightSheets.element.visible=l,this.wrapper.position.z=-this.midPosition;var h=0,u=0,p=this.isRTL,c=this.isFirstPage(),d=this.isLastPage(),f=this.isLeftClosed=this.isClosedPage()&&(p&&d||!p&&c),g=this.isRightClosed=this.isClosedPage()&&(!p&&d||p&&c);if(l){this.leftSheets.depth=p?this.sheetsDepth*(1-this.getBasePage()/e.pageCount):this.sheetsDepth*t/e.pageCount,this.leftSheets.element.visible=p?e.pageCount-this.getBasePage()>2:t>2,h-=this.leftSheets.depth/2,this.leftSheets.element.position.z=h,h-=this.coverDepth+(this.leftSheets.element.visible?this.leftSheets.depth/2:0)+3*this.coverDepth,this.leftCover.depth=this.rightCover.depth=this.coverDepth;var v=Math.max(this.leftSheetHeight,this.rightSheetHeight);g&&(v=this.leftSheetHeight),f&&(v=this.rightSheetHeight),!0!==this.leftCover.isFlipping&&(this.leftCover.element.position.z=f?this.midPosition+this.coverDepth:h+this.coverDepth/2,this.leftCover.element.position.z=Math.max(this.leftCover.element.position.z,-(.05*this.refSize)),this.leftCover.element.position.x=0,this.leftSheets.sheetAngle=this.leftCover.sheetAngle=f?180:0,this.leftSheets.curveAngle=this.leftCover.curveAngle=f?180:0,!0===this.rightCover.isFlipping||(this.leftCover.height=v,this.leftCover.width=this.leftCover.sheetAngle<90?this.leftSheetWidth:this.rightSheetWidth,this.isClosedPage()||(this.leftCover.width+=this.coverExtraWidth,this.leftCover.height+=this.coverExtraHeight)),this.leftSheets.updateAngle(),this.leftCover.updateAngle()),this.rightSheets.depth=this.sheetsDepth-this.leftSheets.depth,this.rightSheets.element.visible=p?t>2:e.pageCount-this.getBasePage()>2,u-=this.rightSheets.depth/2,this.rightSheets.element.position.z=u,u-=this.coverDepth+(this.rightSheets.element.visible?this.rightSheets.depth/2:0)+3*this.coverDepth,!0!==this.rightCover.isFlipping&&(this.rightCover.element.position.z=g?this.midPosition+this.coverDepth:u+this.coverDepth/2,this.rightCover.element.position.z=Math.max(this.rightCover.element.position.z,-(.05*this.refSize)),this.rightCover.element.position.x=0,this.rightSheets.sheetAngle=this.rightCover.sheetAngle=g?0:180,this.rightSheets.curveAngle=this.rightCover.curveAngle=g?0:180,!0===this.leftCover.isFlipping||(this.rightCover.height=v,this.rightCover.width=this.rightCover.sheetAngle<90?this.leftSheetWidth:this.rightSheetWidth,this.isClosedPage()||(this.rightCover.width+=this.coverExtraWidth,this.rightCover.height+=this.coverExtraHeight)),this.rightSheets.updateAngle(),this.rightCover.updateAngle()),this.updateSheets(),this.stage.ground.position.z=Math.min(h,u)-this.refSize*this.groundDistance/100,this.stage.ground.position.z=Math.max(this.stage.ground.position.z,-(.1*this.refSize))}else this.stage.ground.position.z=-this.midPosition-15*this.sheetDepth;!0===this.cameraPositionDirty&&this.updateCameraPosition(),this.refreshSpiral()}},{key:"refreshSpiral",value:function(){}},{key:"updateCameraPosition",value:function(){var e=this.app,t=this.stage,i=e.dimensions,a=i.padding,o=1/(2*Math.tan(Math.PI*t.camera.fov*.5/180)/(i.stage.height/e.zoomValue))+2.2;this.updateShadowSize(),this.stage.spotLight.position.x=-(330*this.pageScaleX),this.stage.spotLight.position.y=330*this.pageScaleX,this.stage.spotLight.position.z=550*this.pageScaleX,this.stage.spotLight.shadow.camera.far=1200*this.pageScaleX,this.stage.spotLight.shadow.camera.updateProjectionMatrix();var s=(a.top-a.bottom)/e.zoomValue/2,r=-(a.left-a.right)/e.zoomValue/2;t.camera.position.z!==o&&!0===e.pendingZoom&&(t.camera.position.z=o),1===e.zoomValue&&(this.bookWrapper.rotation.set(0,0,0),this.bookHelper.rotation.set(0,0,0),this.cameraWrapper.rotation.set(0,0,0),0!==e.options.flipbook3DTiltAngleUp||0!==e.options.flipbook3DTiltAngleLeft?(t.camera.aspect=i.stage.width/i.stage.height,t.camera.updateProjectionMatrix(),this.bookWrapper.rotateZ(THREE.Math.degToRad(-e.options.flipbook3DTiltAngleLeft)),this.bookWrapper.rotateX(THREE.Math.degToRad(-e.options.flipbook3DTiltAngleUp)),"vertical"==this.orientation?this.bookWrapper.scale.y=1/(this.isSingle?2:1):this.bookWrapper.scale.x=1/(this.isSingle?2:1),this.bookHelper.update(),this.fitCameraToCenteredObject(t.camera,this.bookWrapper),this.bookWrapper.rotation.set(0,0,0),this.bookWrapper.scale.x=1,this.bookWrapper.scale.y=1,t.camera.position.set(r,s,t.camera.position.z+t.ground.position.z),this.camera.aspect=i.stage.width/i.stage.height,this.camera.updateProjectionMatrix(),this.cameraWrapper.rotateX(THREE.Math.degToRad(e.options.flipbook3DTiltAngleUp)),this.cameraWrapper.rotateZ(THREE.Math.degToRad(e.options.flipbook3DTiltAngleLeft))):t.camera.position.set(r,s,o)),t.camera.updateProjectionMatrix(),this.app.renderRequestStatus=n.REQUEST_STATUS.ON,this.cameraPositionDirty=!1}},{key:"refreshSheet",value:function(e){var t,i=e.sheet,a=e.index,o=i.sheetAngle,s=!(i.isHard||0===this.flexibility);i.leftFlexibility=s?this.leftFlexibility:0,i.rightFlexibility=s?this.rightFlexibility:0,i.leftPos=this.midPosition+(a-e.midPoint+1)*this.sheetDepth-this.sheetDepth/2,i.rightPos=this.midPosition-(a-e.midPoint)*this.sheetDepth-this.sheetDepth/2,t=i.targetSide===n.TURN_DIRECTION.LEFT?0:180,!1===i.isFlipping&&(e.needsFlip?(i.isFlipping=!0,i.isCover&&0===e.sheetNumber&&(this.isRTL?this.rightCover.isFlipping=!0:this.leftCover.isFlipping=!0),i.isCover&&this.totalSheets-e.sheetNumber==1&&(this.isRTL?this.leftCover.isFlipping=!0:this.rightCover.isFlipping=!0),i.element.position.z=Math.max(o<90?i.leftPos:i.rightPos,this.midPosition)+this.sheetDepth,i.flexibility=o<90?i.leftFlexibility:i.rightFlexibility,i.flip(o,t)):(i.skipFlip=!1,i.sheetAngle=i.curveAngle=t,i.flexibility=t<90?i.leftFlexibility:i.rightFlexibility,i.element.position.z=t<90?i.leftPos:i.rightPos,i.side=i.targetSide,i.height=t<90?this.leftSheetHeight:this.rightSheetHeight,i.width=t<90?this.leftSheetWidth:this.rightSheetWidth),i.updateAngle(),this.app.renderRequestStatus=n.REQUEST_STATUS.ON),i.element.visible=e.visible}},{key:"updateCenter",value:function(){var e=this,t=this.app,i="vertical"==this.orientation?e.wrapper.position.y:e.wrapper.position.x,a=("vertical"===this.orientation?-1:1)*e.centerShift*(this.isLeftPage()?"vertical"==this.orientation?this.leftSheetHeight:this.leftSheetWidth:"vertical"==this.orientation?this.rightSheetHeight:this.rightSheetWidth)/2;e.seamPosition=(-t.dimensions.offset.width+t.dimensions.containerWidth)/2+a,a!==e.centerEnd&&(e.centerTween&&e.centerTween.stop&&e.centerTween.stop(),e.onCenterStartAnimation(this),e.centerTween=new TWEEN.Tween({x:i}).delay(0).to({x:a},1===t.zoomValue&&!0!==e.skipCenterAnimation?e.app.options.duration:1).onStart(function(){}).onUpdate(function(){e.onCenterUpdateAnimation(this)}).onComplete(function(){e.onCenterCompleteAnimation(this)}).onStop(function(){e.onCenterStopAnimation(this)}).easing(TWEEN.Easing.Cubic.InOut).start(),this.updatePendingStatusClass(),e.skipCenterAnimation=!1,e.centerEnd=a),e.renderRequestStatus=n.REQUEST_STATUS.ON,this.zoomViewer.updateCenter()}},{key:"onCenterUpdateAnimation",value:function(e){"vertical"==this.orientation?(this.wrapper.position.y=e.x,this.stage&&this.stage.cssScene&&(this.stage.cssScene.position.y=e.x)):(this.wrapper.position.x=e.x,this.stage&&this.stage.cssScene&&(this.stage.cssScene.position.x=e.x))}},{key:"onCenterStartAnimation",value:function(e){}},{key:"onCenterStopAnimation",value:function(e){}},{key:"onCenterCompleteAnimation",value:function(e){}},{key:"flipCover",value:function(e){var t,i,n=null;0===e.pageNumber||this.isBooklet&&1===e.pageNumber?(n=this.isRTL?this.rightCover:this.leftCover,t=this.isRTL?1:-1):e.pageNumber===this.totalSheets-1&&(n=this.isRTL?this.leftCover:this.rightCover,t=this.isRTL?-1:1),null!==n&&(i=n.depth+e.depth+1,n.sheetAngle=e.sheetAngle,n.curveAngle=e.curveAngle,this.rightCover.height=this.leftCover.height=e.height+this.coverExtraHeight,this.rightCover.width=this.leftCover.width=e.width+this.coverExtraWidth,n.flexibility=e.flexibility,this.rightCover.updateAngle(),this.leftCover.updateAngle(),n.element.position.x=e.element.position.x+t*Math.sin(e.sheetAngle*Math.PI/180)*i,n.element.position.z=e.element.position.z+t*Math.cos(e.sheetAngle*Math.PI/180)*i)}},{key:"pagesReady",value:function(){if(!this.isAnimating()&&!0===this.refreshRequested){if(!1===this.app.options.flipbookFitPages){var e=this.app.viewer.getBasePage(),t=this.leftViewport=this.getViewPort(e+(this.isBooklet?0:this.isRTL?1:0)),i=this.rightViewPort=this.getViewPort(e+(this.isBooklet?0:this.isRTL?0:1));if(t){var a=em.contain(t.width,t.height,this.availablePageWidth(),this.availablePageHeight());(this.leftSheetWidth!=Math.floor(a.width)||this.leftSheetHeight!=Math.floor(a.height))&&(this.cameraPositionDirty=!0),this.leftSheetWidth=Math.floor(a.width),this.leftSheetHeight=Math.floor(a.height)}if(i){var o=em.contain(i.width,i.height,this.availablePageWidth(),this.availablePageHeight());(this.rightSheetWidth!=Math.floor(o.width)||this.rightSheetWidth!=Math.floor(o.height))&&(this.cameraPositionDirty=!0),this.rightSheetWidth=Math.floor(o.width),this.rightSheetHeight=Math.floor(o.height)}for(var s=0;s<this.sheets.length;s++){var r=this.sheets[s];r.side===n.TURN_DIRECTION.LEFT?(r.height=this.leftSheetHeight,r.width=this.leftSheetWidth):(r.height=this.rightSheetHeight,r.width=this.rightSheetWidth),r.updateAngle()}if(this.isClosedPage()){var l=this.isRTL&&this.isLastPage()||!this.isRTL&&this.isFirstPage();this.leftCover.width=this.rightCover.width=l?this.rightSheetWidth:this.leftSheetWidth,this.leftCover.height=this.rightCover.height=l?this.rightSheetHeight:this.leftSheetHeight}else this.leftCover.height=this.rightCover.height=this.coverExtraHeight+Math.max(this.leftSheetHeight,this.rightSheetHeight),this.leftCover.width=this.coverExtraWidth+this.leftSheetWidth,this.rightCover.width=this.coverExtraWidth+this.rightSheetWidth;this.leftSheets.width=this.leftSheetWidth,this.leftSheets.height=this.leftSheetHeight,this.rightSheets.height=this.rightSheetHeight,this.rightSheets.width=this.rightSheetWidth,this.leftCover.updateAngle(),this.leftSheets.updateAngle(),this.rightCover.updateAngle(),this.rightSheets.updateAngle(),this.updateSheets(!0)}this.updateCenter(),this.updateCSSLayer(),this.updatePendingStatusClass(),this.refreshSpiral(),!0===this.cameraPositionDirty&&this.updateCameraPosition()}}},{key:"updateSheets",value:function(e){if(!0!==this.isClosedPage()){var t=this.getPageByNumber(this.getRightPageNumber());if(!0!==this.rightCover.isFlipping&&t&&t.sheet.element.geometry.attributes){var i=this.rightSheets.element.geometry.attributes.position,n=e?t.sheet.element.geometry.boundingBox.max.x*t.sheet.element.scale.x:this.rightSheets.lastSlopeX;i.setX(21,n),i.setX(23,n),i.setX(4,n),i.setX(6,n),i.setX(10,n),i.setX(14,n),i.needsUpdate=!0,this.rightSheets.element.geometry.attributes.uv.needsUpdate=!0,this.rightSheets.element.geometry.computeVertexNormals(),e&&(this.rightSheets.lastSlopeX=n)}var a=this.getPageByNumber(this.getLeftPageNumber());if(!0!==this.leftCover.isFlipping&&a&&a.sheet.element.geometry.attributes){var o=this.leftSheets.element.geometry.attributes.position,s=e?a.sheet.element.geometry.boundingBox.min.x*a.sheet.element.scale.x:this.leftSheets.lastSlopeX;o.setX(16,s),o.setX(18,s),o.setX(5,s),o.setX(7,s),o.setX(8,s),o.setX(12,s),o.needsUpdate=!0,this.leftSheets.element.geometry.attributes.uv.needsUpdate=!0,this.leftSheets.element.geometry.computeVertexNormals(),e&&(this.leftSheets.lastSlopeX=s)}}}},{key:"updateCSSLayer",value:function(){}},{key:"mouseMove",value:function(e){if(e=em.fixMouseEvent(e),this.app.renderRequestStatus=n.REQUEST_STATUS.ON,null!=e.touches&&2===e.touches.length){this.pinchMove(e);return}var t=this.eventToPoint(e);if(null!==this.dragSheet&&!1!==this.drag3D&&Math.abs(t.x-this.startPoint.x)>2){!0!==this.isDragging&&(this.updatePendingStatusClass(!0),this.isDragging=!0);var i=this.dragSheet.width,a=t.x-(this.app.dimensions.origin.x+this.centerEnd-i),o=em.limitAt(1-a/i,-1,1),s=em.toDeg(Math.acos(o)),r=this.dragSheet,l=this.drag===n.TURN_DIRECTION.LEFT;r.sheetAngle=s;var h=em.getCurveAngle(l,s,45);r.isCover&&r.viewer.flipCover(r),r.curveAngle=r.isHard?s:h,r.updateAngle()}this.checkSwipe(t,e)}},{key:"mouseUp",value:function(e){if((e=em.fixMouseEvent(e)).touches||0===e.button){if(null==this.dragSheet&&null!=e.touches&&0===e.touches.length){this.pinchUp(e);return}var t=this.eventToPoint(e);if(1===this.app.zoomValue){if(null!==this.dragSheet){var i=t.x-this.startPoint.x;Math.abs(i)>2*this.swipeThreshold&&(this.drag===n.TURN_DIRECTION.LEFT&&i>0?this.app.openLeft():this.drag===n.TURN_DIRECTION.RIGHT&&i<0&&this.app.openRight()),this.requestRefresh(),this.updatePendingStatusClass()}var a=e.target||e.originalTarget,o=this.startPoint&&t.x===this.startPoint.x&&t.y===this.startPoint.y&&"A"!==a.nodeName;!0===e.ctrlKey&&o?this.zoomOnPoint(t):o&&t.sheet&&this.clickAction===n.MOUSE_CLICK_ACTIONS.NAV&&(t.sheet.sheetAngle>90?this.app.openRight():this.app.openLeft())}this.dragSheet=null,this.drag=null,!0===this.isDragging&&(this.isDragging=!1),this.startPoint=null,this.canSwipe=!1,this.app.renderRequestStatus=n.REQUEST_STATUS.ON}}},{key:"raycastCLick",value:function(e){this.mouse=new THREE.Vector2,this.raycaster=new THREE.Raycaster,this.mouse.x=e.offsetX/this.app.dimensions.stage.width*2-1,this.mouse.y=1-e.offsetY/this.app.dimensions.stage.height*2,this.raycaster.setFromCamera(this.mouse,this.camera);var t=this.raycaster.intersectObjects(this.bookWrapper.children,!0);if(t.length>0){var i,n=0;do{if((i=null!=t[n]?t[n].object:null).sheet&&i.sheet.index&&!0!==i.sheet.isFlipping)return i;n++}while(n<t.length)}}},{key:"mouseDown",value:function(e){if((e=em.fixMouseEvent(e)).touches||0===e.button){if(null!=e.touches&&2===e.touches.length)this.pinchDown(e);else{e=em.fixMouseEvent(e);var t=this.eventToPoint(e);this.startPoint=t,this.lastPosX=t.x,this.lastPosY=t.y;var i=this.raycastCLick(e),a=t.sheet?t.sheet.width-Math.abs(t.x-(this.app.dimensions.origin.x+this.centerEnd)):0;t.sheet&&i&&t.isInsideSheet&&a<t.sheet.width/2?(this.dragSheet=i.sheet,this.drag=t.sheet.sheetAngle<90?n.TURN_DIRECTION.LEFT:n.TURN_DIRECTION.RIGHT):this.canSwipe=!0}}}},{key:"eventToPoint",value:function(e){var t=this.app.dimensions,i={x:(e=em.fixMouseEvent(e)).clientX,y:e.clientY};i.x=i.x-this.parentElement[0].getBoundingClientRect().left,i.y=i.y-this.parentElement[0].getBoundingClientRect().top;var n=(-t.offset.width+t.containerWidth)/2-t.stage.width/2,a=(-t.offset.width+t.containerWidth)/2+t.stage.width/2,o=t.padding.top,s=t.padding.top+this.availablePageHeight(),r=i.x<this.seamPosition,l=this.getBasePage()+(r?0:1),h=this.getPageByNumber(l);h&&(h=h.sheet);var u=i.x>n&&i.x<a&&i.y>o&&i.y<s;return{isInsideSheet:u,isInsideDragZone:u&&i.x-n<this.foldSense||a-i.x<this.foldSense,x:i.x,y:i.y,left:n,top:o,right:a,bottom:s,raw:i,isLeftSheet:r,sheet:h}}},{key:"checkPageLoading",value:function(){for(var e=!0,t=this.getVisiblePages().main,i=0;i<(this.isBooklet?1:2);i++){var n=this.getPageByNumber(t[i]);n&&(e=n.textureLoaded&&e)}this.element.toggleClass("df-loading",!e)}},{key:"textureLoadedCallback",value:function(e){this.app.renderRequestStart(),this.pagesReady()}},{key:"getTextureSize",value:function(e){var t=ec(ed(i.prototype),"getTextureSize",this).call(this,e);if(1!==this.app.zoomValue||!0===e.isAnnotation)return t;var n=em.nearestPowerOfTwo(t.height),a=t.width*n/t.height;return this.texturePowerOfTwo?{height:n,width:a}:t}},{key:"getPageByNumber",value:function(e){if(this.has3DCover){var t=!this.isBooklet&&e===this.app.pageCount&&e%2==0,n=1===e;if(!this.isRTL&&n||this.isRTL&&t)return this.leftCover.frontPage;if(!this.isRTL&&t||this.isRTL&&n)return this.rightCover.backPage}return ec(ed(i.prototype),"getPageByNumber",this).call(this,e)}},{key:"setPage",value:function(e){return ec(ed(i.prototype),"setPage",this).call(this,e)}},{key:"beforeFlip",value:function(){ec(ed(i.prototype),"beforeFlip",this).call(this)}}]),i}(z),ew=/*#__PURE__*/function(e){ef(i,e);var t=ev(i);function i(e){eh(this,i);var n,a=el(n=t.call(this,e));return a.element=null,a.face=e.face,a.parent3D=e.sheet,a.sheet=e.sheet,a.cssPage=new THREE.CSS3DObject(a.contentLayer[0]),n}return ep(i,[{key:"setLoading",value:function(){this.sheet.viewer.checkPageLoading()}},{key:"clearMap",value:function(){this.sheet.element.material[this.face].map=null,this.sheet.element.material[this.face].needsUpdate=!0}},{key:"loadTexture",value:function(e){var t=this,i=e.texture,a=e.callback;function o(i,n){t.updateTextureLoadStatus(!0),t.sheet.resetMatColor(t.face,e.texture===t.textureLoadFallback),"function"==typeof a&&a(e)}t.textureSrc=i,"function"==typeof n.defaults.beforeLoadTexture&&n.defaults.beforeLoadTexture({texture:i,page:t}),4===this.face?this.sheet.backImage(i,o):this.sheet.frontImage(i,o)}}]),i}(S);function eP(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eS(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function ex(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function eC(e,t,i){return t&&ex(e.prototype,t),i&&ex(e,i),e}function eE(e){return(eE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function eT(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function ek(e,t){return(ek=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function eO(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}n.defaults.maxTextureSize=2048,n.viewers={},n.viewers.flipbook=function e(t,i){return(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),!1==n.utils.canSupport3D()&&(t.is3D=!1),!0===t.is3D)?new eb(t,i):new Y(t,i)},n.viewers.default=n.viewers.reader=O;var eR=n.utils,eL=/*#__PURE__*/function(){function e(){eS(this,e),this.baseUrl=null,this.pdfDocument=null,this.pdfApp=null,this.pdfHistory=null,this.externalLinkRel=null,this.externalLinkEnabled=!0,this._pagesRefCache=null}return eC(e,[{key:"dispose",value:function(){this.baseUrl=null,this.pdfDocument=null,this.pdfApp=null,this.pdfHistory=null,this._pagesRefCache=null}},{key:"setDocument",value:function(e,t){this.baseUrl=t,this.pdfDocument=e,this._pagesRefCache=Object.create(null)}},{key:"setViewer",value:function(e){this.pdfApp=e,this.externalLinkTarget=e.options.linkTarget}},{key:"setHistory",value:function(e){this.pdfHistory=e}},{key:"pagesCount",get:function(){return this.pdfDocument.numPages}},{key:"page",get:function(){return this.pdfApp.currentPageNumber},set:function(e){this.pdfApp.gotoPage(e)}},{key:"navigateTo",value:function(e){this.goToDestination(e)}},{key:"addLinkAttributes",value:function(e,t){arguments.length>2&&void 0!==arguments[2]&&arguments[2];var i=this.externalLinkTarget,a=this.externalLinkRel,o=this.externalLinkEnabled;if(!t||"string"!=typeof t)throw Error('A valid "url" parameter must provided.');var s=(0,eR.removeNullCharacters)(t);o?e.href=e.title=s:(e.href="",e.title="Disabled: ".concat(s),e.onclick=function(){return!1});var r="";switch(i){case n.LINK_TARGET.NONE:break;case n.LINK_TARGET.SELF:r="_self";break;case n.LINK_TARGET.BLANK:r="_blank";break;case n.LINK_TARGET.PARENT:r="_parent";break;case n.LINK_TARGET.TOP:r="_top"}e.target=r,e.rel="string"==typeof a?a:"noopener noreferrer nofollow"}},{key:"goToDestination",value:function(e){var t,i="",n=this,a=function(t){eR.log("Requested: ",t);var o=eT(t,Object)?n._pagesRefCache[t.num+" "+t.gen+" R"]:t+1;o?((o=n.pdfApp.viewer.getViewerPageNumber(o))>n.pdfApp.pageCount&&(o=n.pdfApp.pageCount),eR.log("Loading for:",t," at page ",o),n.pdfApp.requestDestRefKey===t.num+" "+t.gen+" R"?(n.pdfApp.gotoPage(o),n.pdfHistory&&n.pdfHistory.push({dest:e,hash:i,page:o})):eR.log("Expired Request for ",o," with ",t)):(n.pdfApp.container.addClass("df-fetch-pdf"),n.pdfDocument.getPageIndex(t).then(function(e){var i=t.num+" "+t.gen+" R";n._pagesRefCache[i]=e+1,a(t)}))};"string"==typeof e?(i=e,t=this.pdfDocument.getDestination(e)):t=Promise.resolve(e),t.then(function(t){eR.log("Started:",t),e=t,eT(t,Array)&&(n.pdfApp.requestDestRefKey=t[0].num+" "+t[0].gen+" R",a(t[0]))})}},{key:"customNavigateTo",value:function(e){if(""!==e&&null!=e&&"null"!==e){var t=null;if(isNaN(Math.floor(e))){if("string"==typeof e&&isNaN(t=parseInt(e.replace("#",""),10))){window.open(e,this.pdfApp.options.linkTarget===n.LINK_TARGET.SELF?"_self":"_blank");return}}else t=e;null!=t&&this.pdfApp.gotoPage(t)}}},{key:"getDestinationHash",value:function(e){if("string"==typeof e)return this.getAnchorUrl("#"+escape(e));if(eT(e,Array)){var t=e[0],i=eT(t,Object)?this._pagesRefCache[t.num+" "+t.gen+" R"]:t+1;if(i){var n=this.getAnchorUrl("#page="+i),a=e[1];if((void 0===a?"undefined":eO(a))==="object"&&"name"in a&&"XYZ"===a.name){var o=e[4]||this.pdfApp.pageScaleValue,s=parseFloat(o);s&&(o=100*s),n+="&zoom="+o,(e[2]||e[3])&&(n+=","+(e[2]||0)+","+(e[3]||0))}return n}}return this.getAnchorUrl("")}},{key:"getCustomDestinationHash",value:function(e){return"#"+escape(e)}},{key:"getAnchorUrl",value:function(e){return(this.baseUrl||"")+e}},{key:"executeNamedAction",value:function(e){switch(e){case"GoBack":this.pdfHistory&&this.pdfHistory.back();break;case"GoForward":this.pdfHistory&&this.pdfHistory.forward();break;case"NextPage":this.page++;break;case"PrevPage":this.page--;break;case"LastPage":this.page=this.pagesCount;break;case"FirstPage":this.page=1}var t=document.createEvent("CustomEvent");t.initCustomEvent("namedaction",!0,!0,{action:e}),this.pdfApp.container.dispatchEvent(t)}},{key:"cachePageRef",value:function(e,t){var i=t.num+" "+t.gen+" R";this._pagesRefCache[i]=e}}]),e}(),eI=/*#__PURE__*/function(){function e(t,i){eS(this,e),this.props=t,this.app=i,this.textureCache=[],this.pageCount=0,this.numPages=0,this.outline=[],this.viewPorts=[],this.requestedPages="",this.requestIndex=0,this.pagesToClean=[],this.defaultPage=void 0,this.pageSize=this.app.options.pageSize,this._page1Pass=!1,this._page2Pass=!1,this.pageLabels=void 0,this.textSearchLength=0,this.textSearch="",this.textContentSearch=[],this.textContentJoinedSearch=[],this.textOffsetSearch=[],this.textContent=[],this.textContentJoined=[],this.textOffset=[],this.autoLinkItemsCache=[],this.autoLinkHitsCache=[],this.searchHitItemsCache=[],this.searchHits=[],this.PDFLinkItemsCache=[],this.canPrint=!0,this.textPostion=[]}return eC(e,[{key:"finalize",value:function(){}},{key:"dispose",value:function(){}},{key:"softDispose",value:function(){}},{key:"setCache",value:function(e,t,i){i&&(void 0===this.textureCache[i]&&(this.textureCache[i]=[]),this.textureCache[i][e]=t)}},{key:"getCache",value:function(e,t){return void 0===this.textureCache[t]?void 0:this.textureCache[t][e]}},{key:"_isValidPage",value:function(e){return e>0&&e<=this.pageCount}},{key:"getLabelforPage",value:function(e){return this.pageLabels&&void 0!==this.pageLabels[e-1]?this.pageLabels[e-1]:e}},{key:"getThumbLabel",value:function(e){var t=this.getLabelforPage(e);return t!==e?t+" ("+e+")":e}},{key:"getPageNumberForLabel",value:function(e){if(!this.pageLabels)return e;var t=this.pageLabels.indexOf(e);return t<0?null:t+1}},{key:"processPage",value:function(e){}},{key:"cleanUpPages",value:function(){}},{key:"checkRequestQueue",value:function(){}},{key:"processAnnotations",value:function(){}},{key:"processTextContent",value:function(){}},{key:"loadDocument",value:function(){}},{key:"pagesLoaded",value:function(){this._page1Pass&&this._page2Pass&&(this.app.viewer.checkDocumentPageSizes(),this.finalize())}},{key:"_documentLoaded",value:function(){this.finalizeOutLine(),this.app&&this.app.dimensions&&void 0===this.app.dimensions.pageFit&&eR.log("Provider needs to initialize page properties for the app"),this.app._documentLoaded()}},{key:"finalizeOutLine",value:function(){if(null!==this.app&&null!==this.app.options){var e=this.app.options.outline;if(e)for(var t=0;t<e.length;t++)e[t].custom=!0,this.outline.push(e[t])}}},{key:"search",value:function(){}}]),e}(),eN=/*#__PURE__*/function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ek(e,t)}(o,e);var t,a=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,i=eE(o);return e=t?Reflect.construct(i,arguments,eE(this).constructor):i.apply(this,arguments),e&&("object"===eO(e)||"function"==typeof e)?e:eP(this)});function o(e,t){eS(this,o);var s,r,l=function(e){h.updateInfo(h.options.text.loading+" PDF Worker ...");var t=document.createElement("a");t.href=h.options.pdfjsWorkerSrc+u.cacheBustParameters,t.hostname!==window.location.hostname&&!0===n.loadCorsPdfjsWorker?(h.updateInfo(h.options.text.loading+" PDF Worker CORS ..."),jQuery.ajax({url:h.options.pdfjsWorkerSrc+u.cacheBustParameters,cache:!0,success:function(t){h.options.pdfjsWorkerSrc=eR.createObjectURL(t,"text/javascript"),"function"==typeof e&&e()}})):"function"==typeof e&&e()},h=(s=a.call(this,e,t)).app,u=eP(s);return u.pdfDocument=void 0,u._page2Ratio=void 0,u.cacheBustParameters="?ver="+n.version+"&pdfver="+h.options.pdfVersion,r=function(){pdfjsLib.GlobalWorkerOptions.workerSrc=h.options.pdfjsWorkerSrc+u.cacheBustParameters,pdfjsLib.canvasWillReadFrequently=n.defaults.canvasWillReadFrequently,u.loadDocument()},"undefined"==typeof pdfjsLib?(h.updateInfo(h.options.text.loading+" PDF Service ..."),eR.getScript(h.options.pdfjsSrc+u.cacheBustParameters,function(){"function"==typeof define&&i.amdO&&window.requirejs&&window.require&&window.require.config?(h.updateInfo(h.options.text.loading+" PDF Service (require) ..."),window.require.config({paths:{"pdfjs-dist/build/pdf.worker":h.options.pdfjsWorkerSrc.replace(".js","")}}),window.require(["pdfjs-dist/build/pdf"],function(e){window.pdfjsLib=e,l(r)})):l(r)},function(){h.updateInfo("Unable to load PDF service.."),u.dispose()},h.options.pdfjsSrc.indexOf("pdfjs-4")>1)):"function"==typeof r&&r(),s}return eC(o,[{key:"dispose",value:function(){this.pdfDocument&&this.pdfDocument.destroy(),this.linkService=eR.disposeObject(this.linkService),this.pdfLoadProgress&&this.pdfLoadProgress.destroy(),this.pdfLoadProgress=null,this.pdfDocument=null}},{key:"loadDocument",value:function(){var e=this.app,t=this.app.options,i=this,n=t.pdfParameters||{};if(n.url=eR.httpsCorrection(n.url||t.source),n.rangeChunkSize=t.rangeChunkSize,n.cMapPacked=!0,n.disableAutoFetch=t.disableAutoFetch,n.disableStream=t.disableStream,n.disableRange=!0===t.disableRange,n.disableFontFace=t.disableFontFace,n.isEvalSupported=!1,n.cMapUrl=t.cMapUrl,n.imagesLocation=t.imagesLocation,n.imageResourcesPath=t.imageResourcesPath,!n.url&&!n.data&&!n.range){e.updateInfo("ERROR : No PDF File provided! ","df-error");return}var a=i.pdfLoadProgress=pdfjsLib.getDocument(n);a._worker.promise.then(function(t){e.updateInfo(e.options.text.loading+" PDF ...")}),a.onPassword=function(e,t){switch(t){case pdfjsLib.PasswordResponses.NEED_PASSWORD:var i=prompt("Enter the password to open the PDF file.");if(null===i)throw Error("No password givsen.");e(i);break;case pdfjsLib.PasswordResponses.INCORRECT_PASSWORD:var i=prompt("Invalid password. Please try again.");if(!i)throw Error("No password givaen.");e(i)}},a.promise.then(function(n){i.pdfDocument=n,n.getPage(1).then(function(a){i.defaultPage=a;var o,s=i.defaultPage.viewPort=a.getViewport({scale:1,rotation:a._pageInfo.rotate+e.options.pageRotation}),r=i.defaultPage.pageRatio=s.width/s.height;i.viewPorts[1]=s,e.dimensions.defaultPage={ratio:r,viewPort:s,width:s.width,height:s.height},e.dimensions.maxTextureHeight=(null!==(o=t.maxTextureSize)&&void 0!==o?o:3200)/(r>1?r:1),e.dimensions.maxTextureWidth=e.dimensions.maxTextureHeight*r,e.dimensions.autoHeightRatio=1/r,i.pageCount=n.numPages,i.numPages=n.numPages,i._page1Pass=!0,i.pagesLoaded()}),n.numPages>1&&!0===e.checkSecondPage?n.getPage(2).then(function(t){var n=t.getViewport({scale:1,rotation:t._pageInfo.rotate+e.options.pageRotation});i._page2Ratio=n.width/n.height,i.viewPorts[2]=n,i._page2Pass=!0,i.pagesLoaded()}):(i._page2Pass=!0,i.pagesLoaded())}).catch(function(t){if(null!==e&&null!=e.options){var n,a="",o=document.createElement("a");o.href=e.options.source,o.hostname===window.location.hostname||-1!==o.href.indexOf("file://")||eR.isChromeExtension()||-1!==o.href.indexOf("blob:")||(a="<strong>CROSS ORIGIN!! </strong>");var s=(null===(n=e.options)||void 0===n?void 0:n.fileName)||o.href;e.updateInfo(a+"<strong>Error: Cannot access file!  </strong>"+s+"<br><br>"+t.message,"df-error"),console.log(t),e.container.removeClass("df-loading").addClass("df-error"),i.dispose()}}),a.getTotalLength=function(){return i.pdfLoadProgress._transport._networkStream._fullRequestReader.contentLength},a.onProgress=function(t){if(null!==e){var i=100*t.loaded/a.getTotalLength();isNaN(i)?t&&t.loaded?(void 0===a.lastLoaded||a.lastLoaded+25e4<t.loaded)&&(a.lastLoaded=t.loaded,e.updateInfo(e.options.text.loading+" PDF "+(Math.ceil(t.loaded/1e4)/100).toFixed(2).toString()+"MB ...")):e.updateInfo(e.options.text.loading+" PDF ..."):e.updateInfo(e.options.text.loading+" PDF "+Math.ceil(Math.min(100,i)).toString().split(".")[0]+"% ...")}}}},{key:"pdfFetchStarted",value:function(){this.pdfFetchStatusCount=0,this.app.container.addClass("df-fetch-pdf"),this.pdfFetchStatus=n.REQUEST_STATUS.COUNT}},{key:"checkRequestQueue",value:function(){}},{key:"finalize",value:function(){var e=this.app,t=this;null!==e&&null!==e.options&&(t.linkService=new eL,t.linkService.setDocument(t.pdfDocument,null),t.linkService.setViewer(e),t.pdfDocument.getOutline().then(function(i){!0===e.options.overwritePDFOutline&&(i=[]),i=i||[],t.outline=i}).finally(function(){t._getLabels()}))}},{key:"_getLabels",value:function(){var e=this.app,t=this;t.pdfDocument.getPageLabels().then(function(i){if(i&&!0!==e.options.disablePageLabels){for(var n=i.length,a=0,o=0,s=0;s<n;s++){var r=i[s];if(r===(s+1).toString())a++;else if(""===r)o++;else break}a>=n||o>=n||(t.pageLabels=i)}}).finally(function(){t._getPermissions()})}},{key:"_getPermissions",value:function(){var e=this.app,t=this;t.pdfDocument.getPermissions().then(function(i){null!==i&&Array.isArray(i)&&(t.canPrint=i.indexOf(pdfjsLib.PermissionFlag.PRINT)>-1,!1==t.canPrint&&(console.log("PDF printing is disabled."),e.options.showPrintControl=e.options.showPrintControl&&t.canPrint))}).finally(function(){t._documentLoaded()})}},{key:"processPage",value:function(e){var t=this.app,i=this,n=e.pageNumber,a=performance.now(),o=t.viewer.getTextureSize(e);if(!0===DEARFLIP.defaults.cachePDFTexture&&void 0!==this.getCache(n,o.height)){t.applyTexture(this.getCache(n,o.height),e),eR.log("Texture loaded from cache for : "+n);return}var s=t.viewer.getDocumentPageNumber(n);eR.log("Requesting PDF Page:"+s),i.pdfDocument.getPage(s).then(function(r){i.viewPorts[n]||(e.isFreshPage=!0,i.viewPorts[n]=r.getViewport({scale:1,rotation:r._pageInfo.rotate+t.options.pageRotation}));var l,h=t.viewer.getRenderContext(r,e);e.isFreshPage&&(null===(l=t.viewer.getPageByNumber(e.pageNumber))||void 0===l||l.changeTexture(e.pageNumber,h.canvas.height)),eR.log("Page "+n+" rendering - "+h.canvas.width+"x"+h.canvas.height),e.trace=i.requestIndex++,i.requestedPages+=","+e.trace+"["+s+"|"+h.canvas.height+"]",r.cleanupAfterRender=!1,r.render(h).promise.then(function(){if(t.applyTexture(h.canvas,e),!0===DEARFLIP.defaults.cachePDFTexture&&i.setCache(e.pageNumber,h.canvas,o.height),!0===t.options.cleanupAfterRender){var l=","+e.trace+"["+s+"|"+h.canvas.height+"]";eR.log("CleanUp Requesting for ("+n+") actual "+s),i.requestedPages.indexOf(l)>-1&&(i.requestedPages=i.requestedPages.replace(l,""),-1==i.requestedPages.indexOf("["+s+"|")?(eR.log("CleanUp Passed for ("+n+") actual "+s),i.pagesToClean.push(r),i.pagesToClean.length>0&&i.cleanUpPages()):eR.log("CleanUp Cancelled waiting for ("+n+") actual "+s+" : "+i.requestedPages))}h=null,eR.log("Rendered "+n+" in "+(performance.now()-a)+" milliseconds")}).catch(function(e){console.log(e)})}).catch(function(e){console.log(e)})}},{key:"cleanUpPages",value:function(){for(;this.pagesToClean.length>0;){var e=this.pagesToClean.splice(-1)[0];eR.log("Cleanup Completed for PDF page: "+(e._pageIndex+1)),e.cleanup()}}},{key:"clearSearch",value:function(){this.searchHits=[],this.searchHitItemsCache=[],this.totalHits=0,this.app.searchResults.html(""),this.app.container.removeClass("df-search-open"),this.textSearch="",this.app.container.find(".df-search-hits").remove()}},{key:"search",value:function(e){if(this.textSearch!==e){if(this.clearSearch(),e.length<3&&""!=e){this.app.updateSearchInfo("Minimum 3 letters required.");return}this.textSearch=e,this.textSearchLength=e.length,this.app.searchContainer.addClass("df-searching"),this.app.container.addClass("df-fetch-pdf"),this._search(e,1)}}},{key:"_search",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=this;i.app.updateSearchInfo("Searching Page: "+t),i.searchPage(t).then(function(n){for(var a,o=RegExp(e,"gi"),s=[];a=o.exec(n);)s.push({index:a.index,length:i.textSearchLength});if(i.searchHits[t]=s,s.length>0){var r=i.app.viewer.searchPage(t);!0===r.include&&(i.totalHits+=s.length,i.app.searchResults.append('<div class="df-search-result '+(i.app.currentPageNumber===t?"df-active":"")+'" data-df-page="'+t+'"><span>Page '+r.label+"</span><span>"+s.length+" "+(s.length>1?"results":"result")+"</span></div>"))}i.app.viewer.isActivePage(t)&&(i.processTextContent(t,i.app.viewer.getTextElement(t,!0)),i.app.ui.update()),i._search(e,t+1)}).catch(function(){}).finally(function(){0==i.totalHits?i.app.updateSearchInfo("No results Found!"):i.app.updateSearchInfo(i.totalHits+" results found"),i.app.searchContainer.removeClass("df-searching"),i.app.container.removeClass("df-fetch-pdf")})}},{key:"prepareTextContent",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=this;if(void 0==n.textContentJoinedSearch[t]||i){var a,n=this,o=0,s=0,r=0;n.textContentSearch[t]=[],n.textContent[t]=[],n.textOffsetSearch[t]=[],n.textOffset[t]=[],n.textContentJoinedSearch[t]=[],n.textContentJoined[t]=[];for(var l=0;l<e.items.length;l++)a=e.items[l],n.textContentSearch[t].push(!0===a.hasEOL?a.str+" ":a.str),n.textContent[t].push(a.str+" "),s+=r=(a.str.length||0)+(!0===a.hasEOL?1:0),n.textOffsetSearch[t].push({length:r,offset:s-r}),o+=r=(a.str.length||0)+1,n.textOffset[t].push({length:r,offset:o-r});n.textContentJoinedSearch[t]=n.textContentSearch[t].join(""),n.textContentJoined[t]=n.textContent[t].join("")}}},{key:"searchPage",value:function(e){var t=this;return new Promise(function(i,n){if(t._isValidPage(e))try{var a=t.app.viewer.getDocumentPageNumber(e);void 0==t.textContentJoinedSearch[a]?t.pdfDocument.getPage(a).then(function(e){e.getTextContent().then(function(e){t.prepareTextContent(e,a),i(t.textContentJoinedSearch[a])})}):i(t.textContentJoinedSearch[a])}catch(e){eR.log(e),n(e)}else n()})}}]),o}(eI);function e_(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eA(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function eM(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function eD(e,t,i){return t&&eM(e.prototype,t),i&&eM(e,i),e}function eF(e){return(eF=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ez(e,t){return(ez=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.providers.pdf=eN;var eB=n.utils,eU=/*#__PURE__*/function(){function e(t){eA(this,e),this._viewPort=new eV(0,0),this._pageInfo={rotate:0},this.src=t.src}return eD(e,[{key:"getViewport",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{scale:1};return new eV(this._viewPort.height*e.scale,this._viewPort.width*e.scale,e.scale)}}]),e}(),eH=/*#__PURE__*/function(){function e(t){eA(this,e),this.source=[],this.pages=[],this.numPages=t.length;for(var i=0;i<t.length;i++)this.source[i]=eB.httpsCorrection(t[i].toString()),this.pages.push(new eU({src:this.source[i]}))}return eD(e,[{key:"getPage",value:function(e){var t=this;return new Promise(function(i,n){try{jQuery("<img/>").attr("src",t.source[e-1]).prop("crossOrigin","Anonymous").on("load",function(){jQuery(this).off();var e=new eU({src:this.src});e._viewPort.height=this.height,e._viewPort.width=this.width,e._viewPort.scale=1,e.image=this,i(e)})}catch(e){n(e)}})}}]),e}(),eV=/*#__PURE__*/function(){function e(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;eA(this,e),this.scale=n,this.height=t,this.width=i,this.scale=n,this.transform=[0,0,0,0,0,this.height]}return eD(e,[{key:"clone",value:function(){return new e(this.height,this.width,this.scale)}}]),e}(),eW=/*#__PURE__*/function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ez(e,t)}(n,e);var t,i=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,i=eF(n);return e=t?Reflect.construct(i,arguments,eF(this).constructor):i.apply(this,arguments),e&&("object"==(e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)||"function"==typeof e)?e:e_(this)});function n(e,t){eA(this,n);var a,o=(a=i.call(this,e,t)).app,s=e_(a);return s.document=new eH(o.options.source),s.pageCount=s.document.numPages,s.numPages=s.document.numPages,s.loadDocument(),a}return eD(n,[{key:"dispose",value:function(){}},{key:"loadDocument",value:function(){var e=this.app,t=this.app.options,i=this;i.document.getPage(1).then(function(n){i.defaultPage=n;var a,o=i.defaultPage.viewPort=n._viewPort,s=i.defaultPage.pageRatio=o.width/o.height;i.viewPorts[1]=o,e.dimensions.defaultPage={ratio:s,viewPort:o,width:o.width,height:o.height},e.dimensions.maxTextureHeight=(null!==(a=t.maxTextureSize)&&void 0!==a?a:3200)/(s>1?s:1),e.dimensions.maxTextureWidth=e.dimensions.maxTextureHeight*s,e.dimensions.autoHeightRatio=1/s,i._page1Pass=!0,i.pagesLoaded()}),i.pageCount>1&&!0===e.checkSecondPage?i.document.getPage(2).then(function(e){var t=e._viewPort;i._page2Ratio=t.width/t.height,i.viewPorts[2]=t,i._page2Pass=!0,i.pagesLoaded()}):(i._page2Pass=!0,i.pagesLoaded())}},{key:"finalize",value:function(){var e=this.app;null!==e&&null!==e.options&&(this.linkService=new eL,this.linkService.setViewer(e),this._documentLoaded())}},{key:"processPage",value:function(e){var t=this.app,i=this,n=e.pageNumber,a=performance.now(),o=t.viewer.getDocumentPageNumber(n);eB.log("Requesting PDF Page:"+o),i.document.getPage(o).then(function(o){i.viewPorts[n]||(e.isFreshPage=!0,i.viewPorts[n]=o._viewPort);var s,r,l=t.viewer.getRenderContext(o,e);(e.isFreshPage&&(null===(s=t.viewer.getPageByNumber(e.pageNumber))||void 0===s||s.changeTexture(e.pageNumber,l.canvas.height)),e.preferCanvas=!0,!0===e.preferCanvas)?(l.canvas.getContext("2d").drawImage(o.image,l.viewport.transform[4],0,l.canvas.width*(null!==(r=l.viewport.widthFix)&&void 0!==r?r:1),l.canvas.height),t.applyTexture(l.canvas,e)):t.applyTexture({src:o.src,height:l.canvas.height,width:l.canvas.width},e),eB.log("Rendered "+n+" in "+(performance.now()-a)+" milliseconds")})}}]),n}(eI);function ej(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function eq(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function eG(e,t,i){return t&&eq(e.prototype,t),i&&eq(e,i),e}function eZ(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}n.providers.image=eW,i(101);var eK=n.jQuery,eQ=n.utils,eX=n.REQUEST_STATUS,eY=/*#__PURE__*/function(){function e(t,i){ej(this,e),this.options=t,this.app=i,this.parentElement=this.app.container,this.element=eK("<div>",{class:"df-ui"}),this.leftElement=eK("<div>",{class:"df-ui-left"}).appendTo(this.element),this.centerElement=eK("<div>",{class:"df-ui-center"}).appendTo(this.element),this.rightElement=eK("<div>",{class:"df-ui-right"}).appendTo(this.element),this.parentElement.append(this.element),this.events={},this.controls={}}return eG(e,[{key:"init",value:function(){var e=this,t="<div>",i=this.app,a=this.controls,o=i.options.text,s=i.options.icons;e.createLogo(),this.openRight=a.openRight=eK(t,{class:"df-ui-nav df-ui-next",title:i.isRTL?o.previousPage:o.nextPage,html:'<div class="df-ui-btn '+s.next+'"></div>'}).on("click",function(){i.openRight()}),this.openLeft=a.openLeft=eK(t,{class:"df-ui-nav df-ui-prev",title:i.isRTL?o.nextPage:o.previousPage,html:'<div class="df-ui-btn '+s.prev+'"></div>'}).on("click",function(){i.openLeft()}),!0==i.options.autoPlay&&(this.play=a.play=eQ.createBtn("play",s.play,o.play).on("click",function(){var e=eK(this);i.setAutoPlay(!e.hasClass(i.options.icons.pause))}),i.setAutoPlay(i.options.autoPlayStart)),this.pageNumber=a.pageNumber=eQ.createBtn("page").on("change",function(){i.gotoPageLabel(a.pageInput.val())}).on("keyup",function(e){13===e.keyCode&&i.gotoPageLabel(a.pageInput.val())});var r="df_book_page_number_"+Math.ceil(performance.now()/10);this.pageInput=a.pageInput=eK('<input id="'+r+'" type="text"/>').appendTo(a.pageNumber),this.pageLabel=a.pageLabel=eK('<label for="'+r+'"></label>').appendTo(a.pageNumber),this.thumbnail=a.thumbnail=eQ.createBtn("thumbnail",s.thumbnail,o.toggleThumbnails),a.thumbnail.on("click",function(){var t=eK(this);null==i.thumblist&&i.initThumbs(),i.thumbContainer.toggleClass("df-sidemenu-visible"),t.toggleClass("df-active"),t.hasClass("df-active")&&(t.siblings(".df-active").trigger("click"),i.thumbRequestStatus=eX.ON),e.update(),!1===i.options.sideMenuOverlay&&i.resizeRequestStart()}).addClass("df-sidemenu-trigger"),i.hasOutline()&&(this.outline=a.outline=eQ.createBtn("outline",s.outline,o.toggleOutline),a.outline.on("click",function(){var t=eK(this);if(null==i.outlineViewer&&i.initOutline(),i.outlineContainer){var n=i.outlineContainer;t.toggleClass("df-active"),n.toggleClass("df-sidemenu-visible"),t.hasClass("df-active")&&t.siblings(".df-active").trigger("click"),e.update(),!1===i.options.sideMenuOverlay&&i.resizeRequestStart()}}).addClass("df-sidemenu-trigger")),!0===i.options.showSearchControl&&!0!==eQ.isMobile&&"string"==typeof i.options.source&&(a.search=eQ.createBtn("search",s.search,o.search),a.search.on("click",function(){var t=eK(this);if(null==i.searchContainer&&i.initSearch(),i.searchContainer){var n=i.searchContainer;t.toggleClass("df-active"),n.toggleClass("df-sidemenu-visible"),t.hasClass("df-active")&&(t.siblings(".df-active").trigger("click"),i.searchBox.focus()),e.update(),!1===i.options.sideMenuOverlay&&i.resizeRequestStart()}}).addClass("df-sidemenu-trigger"));var l=e.element;if(this.zoomIn=a.zoomIn=eQ.createBtn("zoomin",s.zoomin,o.zoomIn).on("click",function(){i.zoom(1),e.update()}),this.zoomOut=a.zoomOut=eQ.createBtn("zoomout",s.zoomout,o.zoomOut).on("click",function(){i.zoom(-1),e.update()}),this.resetZoom=a.resetZoom=eQ.createBtn("resetzoom",s.resetzoom,o.resetZoom).on("click",function(){i.resetZoom(-1),e.update()}),i.viewer.isFlipBook){if(i.pageCount>2){var h=i.viewer.pageMode===n.FLIPBOOK_PAGE_MODE.SINGLE;this.pageMode=a.pageMode=eQ.createBtn("pagemode",s[h?"doublepage":"singlepage"],h?o.doublePageMode:o.singlePageMode).on("click",function(){var e=eK(this);i.viewer.setPageMode({isSingle:!e.hasClass(s.doublepage)}),i.viewer.pageModeChangedManually=!0})}}else this.pageFit=a.pageFit=eQ.createBtn("pagefit",s.pagefit,o.pageFit).on("click",function(){var e=a.pageFit;!0==!e.hasClass(s.widthfit)?(e.addClass(s.widthfit),e.html("<span>"+o.widthFit+"</span>"),e.attr("title",o.widthFit)):(e.removeClass(s.widthfit),e.html("<span>"+o.pageFit+"</span>"),e.attr("title",o.pageFit))});if(e.shareBox=new eJ(i.container,i.options),this.share=a.share=eQ.createBtn("share",s.share,o.share).on("click",function(){!0===e.shareBox.isOpen?e.shareBox.close():(e.shareBox.update(i.getURLHash()),e.shareBox.show())}),this.more=a.more=eQ.createBtn("more",s.more).on("click",function(t){!0!==e.moreContainerOpen&&(eK(this).addClass("df-active"),e.moreContainerOpen=!0,t.stopPropagation())}),this.startPage=a.startPage=eQ.createBtn("start",s.start,o.gotoFirstPage).on("click",function(){i.start()}),this.endPage=a.endPage=eQ.createBtn("end",s.end,o.gotoLastPage).on("click",function(){i.end()}),!0===i.options.showPrintControl&&!0!==eQ.isMobile&&"string"==typeof i.options.source&&(this.print=a.print=eQ.createBtn("print",s.print,o.print).on("click",function(){n.printHandler=n.printHandler||new e0,n.printHandler.printPDF(i.options.source)})),!0===i.options.showDownloadControl&&"string"==typeof i.options.source){var u="df-ui-btn df-ui-download "+s.download;this.download=a.download=eK('<a download target="_blank" class="'+u+'"><span>'+o.downloadPDFFile+"</span></a>"),a.download.attr("href",eQ.httpsCorrection(i.options.source)).attr("title",o.downloadPDFFile)}e.moreContainer=eK(t,{class:"df-more-container"}),a.more.append(e.moreContainer),!0===i.options.isLightBox&&!0!==i.fullscreenSupported||(this.fullScreen=a.fullScreen=eQ.createBtn("fullscreen",s.fullscreen,o.toggleFullscreen).on("click",i.switchFullscreen.bind(i))),i.viewer.initCustomControls();var p=i.options.allControls.replace(/ /g,"").split(","),c=","+i.options.moreControls.replace(/ /g,"")+",",d=","+i.options.hideControls.replace(/ /g,"")+",";i.options.leftControls.replace(/ /g,""),i.options.rightControls.replace(/ /g,""),d+=",";for(var f=0;f<p.length;f++){var g=p[f];if(0>d.indexOf(","+g+",")){var v=a[g];null!=v&&(void 0===v?"undefined":eZ(v))=="object"&&(c.indexOf(","+g+",")>-1&&"more"!==g&&"pageNumber"!==g?e.moreContainer.append(v):!0==i.options.controlsFloating?l.append(v):this.centerElement.append(v))}}0==e.moreContainer.children().length&&this.more.addClass("df-hidden"),i.container.append(l),i.container.append(a.openLeft),i.container.append(this.controls.openRight),window.addEventListener("click",e.events.closePanels=e.closePanels.bind(e),!1),window.addEventListener("keyup",e.events.keyup=e.keyUp.bind(e),!1),document.addEventListener("fullscreenchange",e.events.fullscreenChange=e.fullscreenChange.bind(e),!1),!0===i.options.autoOpenThumbnail&&e.controls.thumbnail.trigger("click"),i.hasOutline()&&!0===i.options.autoOpenOutline&&e.controls.outline.trigger("click"),i.executeCallback("onCreateUI")}},{key:"closePanels",value:function(e){if(!0===this.moreContainerOpen){var t;null===(t=this.controls.more)||void 0===t||t.removeClass("df-active"),this.moreContainerOpen=!1}}},{key:"fullscreenChange",value:function(e){void 0===eQ.getFullscreenElement()&&!0===this.app.isFullscreen&&this.app.switchFullscreen()}},{key:"keyUp",value:function(e){var t=this.app;if("INPUT"!==e.target.nodeName){var i=!1;switch(t.options.arrowKeysAction===n.ARROW_KEYS_ACTIONS.NAV&&((!0===t.isFullscreen||!0===t.options.isLightBox)&&(i=!0),!0!=t.options.isLightBox&&n.activeEmbeds.length<2&&!1===eK("body").hasClass("df-lightbox-open")&&(i=!0)),e.keyCode){case 27:n.activeLightBox&&n.activeLightBox.app&&!eQ.isChromeExtension()&&n.activeLightBox.closeButton.trigger("click");break;case 37:i&&t.openLeft();break;case 39:i&&t.openRight()}}}},{key:"createLogo",value:function(){var e=this.app,t=null;e.options.logo.indexOf("<")>-1?t=eK(e.options.logo).addClass("df-logo df-logo-html"):e.options.logo.trim().length>2&&(t=eK('<a class="df-logo df-logo-img" target="_blank" href="'+e.options.logoUrl+'"><img alt="" src="'+e.options.logo+'"/>')),this.element.append(t)}},{key:"dispose",value:function(){for(var e in this.controls)if(this.controls.hasOwnProperty(e)){var t=this.controls[e];null!==t&&(void 0===t?"undefined":eZ(t))=="object"&&t.off().remove()}this.element.remove(),this.shareBox=eQ.disposeObject(this.shareBox),window.removeEventListener("click",this.events.closePanels,!1),window.removeEventListener("keyup",this.events.keyup,!1),document.removeEventListener("fullscreenchange",this.events.fullscreenChange,!1)}},{key:"update",value:function(){var e=this.app,t=this.controls;!0!==this._pageLabelWidthSet&&(this.pageLabel.width(""),e.provider.pageLabels?this.pageLabel.html("88888888888888888".substring(0,3*e.pageCount.toString().length+4)):this.pageLabel.html("88888888888".substring(0,2*e.pageCount.toString().length+3)),this.pageNumber.width(this.pageLabel.width()),this.pageLabel.width(this.pageLabel.width()),this.pageLabel.html(""),this._pageLabelWidthSet=!0);var i=e.getCurrentLabel();i.toString()!==e.currentPageNumber.toString()?t.pageLabel.html(i+"("+e.currentPageNumber+"/"+e.pageCount+")"):t.pageLabel.html(i+"/"+e.pageCount),t.pageInput.val(i),e.container.toggleClass("df-sidemenu-open",e.container.find(".df-sidemenu-visible").length>0);var n=e.provider.totalHits>0&&e.container.find(".df-sidemenu-visible.df-search-container").length>0;if(e.container.toggleClass("df-search-open",n),n){var a=e.searchContainer.find(".df-search-result[data-df-page="+e.currentPageNumber+"]");if(e.searchContainer.find(".df-search-result.df-active").removeClass("df-active"),a.length>0&&!a.hasClass(".df-active")){a.addClass("df-active");var o=e.searchResults[0],s=o.scrollTop;s+o.getBoundingClientRect().height<(a=a[0]).offsetTop+a.scrollHeight?eQ.scrollIntoView(a,null,!1):s>a.offsetTop&&eQ.scrollIntoView(a)}}t.zoomIn.toggleClass("disabled",e.zoomValue===e.viewer.maxZoom),t.zoomOut.toggleClass("disabled",e.zoomValue===e.viewer.minZoom);var r=e.isRTL,l=e.currentPageNumber===e.startPage,h=e.currentPageNumber===e.endPage,u=l&&!r||h&&r,p=h&&!r||l&&r;t.openRight.toggleClass("df-hidden",p),t.openLeft.toggleClass("df-hidden",u),e.viewer.afterControlUpdate()}}]),e}(),eJ=/*#__PURE__*/function(){function e(t,i){ej(this,e),this.isOpen=!1,this.shareUrl="",this.init(t,i)}return eG(e,[{key:"init",value:function(e,t){var i=this;for(var n in i.wrapper=eK('<div class="df-share-wrapper" style="display: none;">').on("click",function(){i.close()}),i.box=eK('<div class="df-share-box">'),i.box.on("click",function(e){e.preventDefault(),e.stopPropagation()}),i.box.appendTo(i.wrapper).html('<span class="df-share-title">'+t.text.share+"</span>"),i.urlInput=eK('<textarea name="df-share-url" class="df-share-url">').on("click",function(){eK(this).select()}),i.box.append(i.urlInput),t.share)!function(e){if(t.share.hasOwnProperty(e)&&0>t.hideShareControls.indexOf(e)){var n=t.share[e];null!==n&&(i[e]=eK("<div>",{class:"df-share-button df-share-"+e+" "+t.icons[e]}).on("click",function(e){e.preventDefault(),window.open(n.replace("{{url}}",encodeURIComponent(i.shareUrl)).replace("{{mailsubject}}",t.text.mailSubject),"Sharer","width=500,height=400"),e.stopPropagation()}),i.box.append(i[e]))}}(n);eK(e).append(i.wrapper)}},{key:"show",value:function(){this.wrapper.fadeIn(300),this.urlInput.val(this.shareUrl),this.urlInput.trigger("click"),this.isOpen=!0}},{key:"dispose",value:function(){for(var e in this)this.hasOwnProperty(e)&&this[e]&&this[e].off&&this[e].off();this.wrapper.remove()}},{key:"close",value:function(){this.wrapper.fadeOut(300),this.isOpen=!1}},{key:"update",value:function(e){this.shareUrl=e}}]),e}(),e$=/*#__PURE__*/function(){function e(t){ej(this,e),this.duration=300;var i=this;return i.lightboxWrapper=eK("<div>").addClass("df-lightbox-wrapper"),i.backGround=eK("<div>").addClass("df-lightbox-bg").appendTo(i.lightboxWrapper),i.element=eK("<div>").addClass("df-app").appendTo(i.lightboxWrapper),i.controls=eK("<div>").addClass("df-lightbox-controls").appendTo(i.lightboxWrapper),i.closeButton=eK("<div>").addClass("df-lightbox-close df-ui-btn "+n.defaults.icons.close).on("click",function(){i.close(t)}).appendTo(i.controls),i.lightboxWrapper.append(i.element),i}return eG(e,[{key:"show",value:function(e){return 0===this.lightboxWrapper.parent().length&&eK("body").append(this.lightboxWrapper),eK("html,body").addClass("df-lightbox-open"),this.lightboxWrapper.fadeIn(this.duration),"function"==typeof e&&e(),this}},{key:"close",value:function(e){return this.lightboxWrapper.fadeOut(this.duration),Array.prototype.forEach.call(n.utils.getSharePrefixes(),function(e){0===window.location.hash.indexOf("#"+e)&&history.replaceState(void 0,void 0,"#_")}),"function"==typeof e&&setTimeout(e,this.duration),eK("html,body").removeClass("df-lightbox-open"),this.element.attr("class","df-app").attr("style",""),this.lightboxWrapper.attr("class","df-lightbox-wrapper").attr("style",""),this.backGround.attr("style",""),this}}]),e}(),e0=/*#__PURE__*/function(){function e(){ej(this,e);var t=this;return t.frame=eK('<iframe id="df-print-frame" style="display:none">').appendTo(eK("body")),t.frame.on("load",function(){try{t.frame[0].contentWindow.print()}catch(e){console.log(e)}}),t}return eG(e,[{key:"printPDF",value:function(e){this.frame[0].src=e}}]),e}(),e1=/*#__PURE__*/function(){function e(t,i){ej(this,e),this.options=t,this.app=i,this.parentElement=t.parentElement,this.element=eK("<div>",{class:"df-sidemenu-wrapper"}),this.parentElement.append(this.element),this.buttons=eK("<div>",{class:"df-sidemenu-buttons df-ui-wrapper"}).appendTo(this.element),this.close=eQ.createBtn("close",i.options.icons.close,i.options.text.close),this.buttons.append(this.close)}return eG(e,[{key:"dispose",value:function(){this.element.remove()}}]),e}(),e2=/*#__PURE__*/function(){function e(t){ej(this,e),this.outline=null,this.lastToggleIsShow=!0,this.container=t.container,this.linkService=t.linkService,this.outlineItemClass=t.outlineItemClass||"outlineItem",this.outlineToggleClass=t.outlineToggleClass||"outlineItemToggler",this.outlineToggleHiddenClass=t.outlineToggleHiddenClass||"outlineItemsHidden"}return eG(e,[{key:"dispose",value:function(){this.container&&this.container.parentNode&&this.container.parentNode.removeChild(this.container),this.linkService=null}},{key:"reset",value:function(){this.outline=null,this.lastToggleIsShow=!0;for(var e=this.container;e.firstChild;)e.removeChild(e.firstChild)}},{key:"_dispatchEvent",value:function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("outlineloaded",!0,!0,{outlineCount:e}),this.container.dispatchEvent(t)}},{key:"_bindLink",value:function(e,t){var i=this.linkService;if(!0===t.custom)e.href=i.getCustomDestinationHash(t.dest),e.onclick=function(){return i.customNavigateTo(t.dest),!1};else{if(t.url){pdfjsLib.addLinkAttributes(e,{url:t.url});return}e.href=i.getDestinationHash(t.dest),e.onclick=function(){return i.navigateTo(t.dest),!1}}}},{key:"_addToggleButton",value:function(e){var t=this,i=document.createElement("div");i.className=this.outlineToggleClass+" "+this.outlineToggleHiddenClass,i.onclick=(function(n){if(n.stopPropagation(),i.classList.toggle(this.outlineToggleHiddenClass),n.shiftKey){var a=!i.classList.contains(this.outlineToggleHiddenClass);t._toggleOutlineItem(e,a)}}).bind(this),e.insertBefore(i,e.firstChild)}},{key:"_toggleOutlineItem",value:function(e,t){this.lastToggleIsShow=t;for(var i=e.querySelectorAll("."+this.outlineToggleClass),n=0,a=i.length;n<a;++n)i[n].classList[t?"remove":"add"](this.outlineToggleHiddenClass)}},{key:"render",value:function(e){var t=e&&e.outline||null,i=0;if(this.outline&&this.reset(),this.outline=t,t){for(var n=document.createDocumentFragment(),a=[{parent:n,items:this.outline,custom:!1}],o=!1;a.length>0;)for(var s=a.shift(),r=s.custom,l=0,h=s.items.length;l<h;l++){var u=s.items[l],p=document.createElement("div");p.className=this.outlineItemClass;var c=document.createElement("a");if(null==u.custom&&null!=r&&(u.custom=r),this._bindLink(c,u),c.textContent=u.title.replace(/\x00/g,""),p.appendChild(c),u.items&&u.items.length>0){o=!0,this._addToggleButton(p);var d=document.createElement("div");d.className=this.outlineItemClass+"s",p.appendChild(d),a.push({parent:d,custom:u.custom,items:u.items})}s.parent.appendChild(p),i++}o&&(null!=this.container.classList?this.container.classList.add(this.outlineItemClass+"s"):null!=this.container.className&&(this.container.className+=" picWindow")),this.container.appendChild(n),this._dispatchEvent(i)}}}]),e}(),e3=/*#__PURE__*/function(){function e(t){ej(this,e);var i=function(){o.thumbRequestCount=0,o.thumbRequestStatus=eX.COUNT},n=this.itemHeight=t.itemHeight,a=this.itemWidth=t.itemWidth,o=this.app=t.app;this.items=t.items,this.generatorFn=t.generatorFn,this.totalRows=t.totalRows||t.items&&t.items.length,this.addFn=t.addFn,this.scrollFn=t.scrollFn,this.container=document.createElement("div");for(var s=this,r=0;r<this.totalRows;r++){var l=document.createElement("div"),h=r+1;l.id="df-thumb"+h;var u=document.createElement("div"),p=document.createElement("div"),c=document.createElement("div");c.className="df-wrapper",p.className="df-thumb-number",l.className="df-thumb",u.className="df-bg-image",c.style.height=n+"px",c.style.width=a+"px",p.innerText=o.provider.getLabelforPage(h),l.appendChild(c),c.appendChild(p),c.appendChild(u),this.container.appendChild(l)}s.dispose=function(){s.container&&s.container.parentNode&&s.container.parentNode.removeChild(s.container),s.container.removeEventListener("scroll",i)},s.container.addEventListener("scroll",i)}return eG(e,[{key:"processThumbRequest",value:function(){eQ.log("Thumb Request Initiated");var e=this.app;if(e.thumbRequestStatus=eX.OFF,e.activeThumb!==e.currentPageNumber&&null!=e.thumbContainer&&e.thumbContainer.hasClass("df-sidemenu-visible")){var t=e.thumblist.container,i=t.scrollTop,a=t.getBoundingClientRect().height,o=e.thumbContainer.find("#df-thumb"+e.currentPageNumber);o.length>0?(e.thumbContainer.find(".df-selected").removeClass("df-selected"),o.addClass("df-selected"),i+a<(o=o[0]).offsetTop+o.scrollHeight?eQ.scrollIntoView(o,null,!1):i>o.offsetTop&&eQ.scrollIntoView(o),e.activeThumb=e.currentPageNumber):(eK(t).scrollTop(124*e.currentPageNumber),e.thumbRequestStatus=eX.ON)}if(0===e.thumblist.container.getElementsByClassName("df-thumb-requested").length){var s=eQ.getVisibleElements({container:e.thumblist.container,elements:e.thumblist.container.children});eK.inArray(s)&&s.unshift(e.activeThumb);for(var r=0;r<s.length;r++){var l=e.thumblist.container.children[s[r]-1];if(void 0!==l&&!1===l.classList.contains("df-thumb-loaded")&&!1===l.classList.contains("df-thumb-requested"))return l.classList.add("df-thumb-requested"),eQ.log("Thumb Requested for "+s[r]),e.provider.processPage({pageNumber:s[r],textureTarget:n.TEXTURE_TARGET.THUMB}),!1}}}},{key:"setPage",value:function(e){var t=this.app,i=e.pageNumber,a=e.texture;if(e.textureTarget===n.TEXTURE_TARGET.THUMB){var o=t.container.find("#df-thumb"+i);o.find(".df-wrapper").css({height:e.height,width:e.width}),o.find(".df-bg-image").css({backgroundImage:eQ.bgImage(a)}),o.addClass("df-thumb-loaded").removeClass("df-thumb-requested")}eQ.log("Thumbnail set for "+e.pageNumber),t.thumbRequestStatus=eX.ON}}]),e}();function e5(){if(void 0===n.openLocalFileInput){var e=n.openLocalFileInput=eK('<input type="file" accept=".pdf" style="display:none">').appendTo(eK("body")).data("df-option",n.openFileOptions);e.change(function(){var t,i=e[0].files;i.length&&(t=i[0],e.val(""),n.openFile(t))})}}n.openLightBox=function(e){n.activeLightBox||(n.activeLightBox=new e$(function(){n.activeLightBox.app&&(n.activeLightBox.app.closeRequested=!0,n.activeLightBox.app.analytics({eventAction:n.activeLightBox.app.options.analyticsViewerClose,options:n.activeLightBox.app.options})),n.activeLightBox.app=eQ.disposeObject(n.activeLightBox.app)})),n.activeLightBox.duration=300,(void 0===n.activeLightBox.app||null===n.activeLightBox.app||!0===n.activeLightBox.app.closeRequested||n.openLocalFileInput==e)&&(n.activeLightBox.app=eQ.disposeObject(n.activeLightBox.app),null===n.activeLightBox.app&&n.activeLightBox.show(function(){n.activeLightBox.app=eK(n.activeLightBox.element).dearviewer({transparent:!1,isLightBox:!0,hashNavigationEnabled:!0,height:"100%",dataElement:e}),history.pushState({},null,"#"),n.activeLightBox.lightboxWrapper.toggleClass("df-lightbox-padded",!1===n.activeLightBox.app.options.popupFullsize),n.activeLightBox.lightboxWrapper.toggleClass("df-rtl",n.activeLightBox.app.options.readDirection===n.READ_DIRECTION.RTL),n.activeLightBox.backGround.css({backgroundColor:"transparent"===n.activeLightBox.app.options.backgroundColor?n.defaults.popupBackGroundColor:n.activeLightBox.app.options.backgroundColor})}))},n.checkBrowserURLforDefaults=function(){if(!eQ.isIEUnsupported){var e=new URL(location.href).searchParams.get("viewer-type")||new URL(location.href).searchParams.get("viewertype"),t=new URL(location.href).searchParams.get("is-3d")||new URL(location.href).searchParams.get("is3d");e&&(n.defaults.viewerType=e),("true"===t||"false"===t)&&(n.defaults.is3D="true"===t)}},n.checkBrowserURLforPDF=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!eQ.isIEUnsupported){var t=new URL(location.href).searchParams.get("pdf-source");return t&&(t=decodeURI(t),e&&n.openURL(t)),t}},n.fileDropHandler=function(e,t){var i=e[0];"application/pdf"===i.type&&(t.preventDefault(),t.stopPropagation(),n.openFile(i))},n.openFile=function(e){if(e){var t;n.oldLocalFileObjectURL&&window.URL.revokeObjectURL(n.oldLocalFileObjectURL),n.oldLocalFileObjectURL=window.URL.createObjectURL(e),null===(t=n.openFileSelected)||void 0===t||t.call(n,{url:n.oldLocalFileObjectURL,file:e}),n.openURL(n.oldLocalFileObjectURL)}else n.openURL()},n.openURL=function(e){e5(),e&&(n.openFileOptions.source=e,n.openFileOptions.pdfParameters=null),n.openLightBox(n.openLocalFileInput)},n.openBase64=function(e){n.openFileOptions.source=null,n.openFileOptions.pdfParameters={data:atob(e)},n.openURL()},n.openLocalFile=function(){e5(),n.openLocalFileInput.click()},n.initControls=function(){var e=eK("body");if(!1!==n.defaults.autoPDFLinktoViewer&&e.on("click",'a[href$=".pdf"]',function(e){var t=eK(this);void 0!==t.attr("download")||"_blank"===t.attr("target")||t.hasClass("df-ui-btn")||t.parents(".df-app").length>0||(e.preventDefault(),t.data("df-source",t.attr("href")),n.openLightBox(t))}),window.addEventListener("popstate",function(e){n.activeLightBox&&n.activeLightBox.app&&!eQ.isChromeExtension()&&n.activeLightBox.closeButton.trigger("click")}),e.on("click",".df-open-local-file",function(e){n.openLocalFile()}),e.on("click",".df-sidemenu-buttons .df-ui-close",function(){eK(this).closest(".df-app").find(".df-ui-btn.df-active").trigger("click")}),e.on("mouseout",".df-link-content section.squareAnnotation, .df-link-content section.textAnnotation, .df-link-content section.freeTextAnnotation",function(){var e=eK(this);n.handlePopup(e,!1)}),e.on("mouseover",".df-link-content section.squareAnnotation, .df-link-content section.textAnnotation, .df-link-content section.freeTextAnnotation",function(){var e=eK(this);n.handlePopup(e,!0)}),n.handlePopup=function(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],i=e.closest(".df-container"),n=i.find(".df-comment-popup");if(n.toggleClass("df-active",t),t){var a=e[0].getBoundingClientRect(),o=i[0].getBoundingClientRect(),s=e.find(".popupWrapper").first();if(e.hasClass("popupTriggerArea")){var r=e.data("annotation-id");void 0!==r&&(s=e.siblings("[data-annotation-id=popup_"+r+"]"))}n.html(s.html());var l=a.left-o.left;l+360>o.width?l=o.width-360-10:l<10&&(l=10);var h=a.top-o.top+a.height+5;h+n.height()>o.height?h=a.top-n.height()-a.height-10:h<10&&(h=10),n.css({left:l,top:h})}},void 0!=n.fileDropElement){var t=eK(n.fileDropElement);t.length>0&&(t.on("dragover",function(e){e.preventDefault(),e.stopPropagation(),eK(this).addClass("df-dragging")}),t.on("dragleave",function(e){e.preventDefault(),e.stopPropagation(),eK(this).removeClass("df-dragging")}),t.on("drop",function(e){var t=e.originalEvent.dataTransfer.files;t.length&&n.fileDropHandler(t,e)}))}};var e8=n.jQuery,e4=n.REQUEST_STATUS,e9=n.utils,e7=/*#__PURE__*/function(){var e;function t(e){var i,a,o;(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,t),this.options=e,this.viewerType=this.options.viewerType,this.startPage=1,this.endPage=1,this.element=e8(this.options.element),e.maxTextureSize=null!==(i=e.maxTextureSize)&&void 0!==i?i:2048,e9.isMobile&&(e.maxTextureSize=4096===e.maxTextureSize?3200:e.maxTextureSize),this.dimensions={padding:{},offset:{},pageFit:{},stage:{},isAutoHeight:"auto"===e.height,maxTextureSize:e.maxTextureSize},this.is3D=e.is3D,this.options.pixelRatio=e9.limitAt(this.options.pixelRatio,1,this.options.maxDPI),this.options.fakeZoom=null!==(a=this.options.fakeZoom)&&void 0!==a?a:1,this.events={},this.links=e.links,this.thumbSize=128,this.pendingZoom=!0,this.currentPageNumber=this.options.openPage||this.startPage,this.hashNavigationEnabled=!0===this.options.hashNavigationEnabled,this.pendingZoom=!0,this.zoomValue=1,this.pageScaling=n.PAGE_SCALE.MANUAL,this.isRTL=e.readDirection===n.READ_DIRECTION.RTL,this.jumpStep=1,this.resizeRequestStatus=e4.OFF,this.refreshRequestStatus=e4.OFF,this.refreshRequestCount=0,this.resizeRequestCount=0,this.fullscreenSupported=e9.hasFullscreenEnabled(),this.thumbRequestCount=0,this.isExternalReady=null===(o=this.options.isExternalReady)||void 0===o||o,this.init(),!0===this.options.autoLightBoxFullscreen&&!0===this.options.isLightBox&&this.switchFullscreen(),this.executeCallback("onCreate"),this.target=this}return e=[{key:"init",value:function(){var e=this.options;if(this.initDOM(),this.initResourcesLocation(),this.initInfo(),(null==e.source||0===e.source.length)&&null==e.pdfParameters){this.updateInfo("ERROR: Set a Valid Document Source.",n.INFO_TYPE.ERROR),this.container.removeClass("df-loading").addClass("df-error");return}if(e9.isIEUnsupported){this.updateInfo("Your browser (Internet Explorer) is out of date! <br><a href='https://browsehappy.com/'>Upgrade to a new browser.</a>","df-old-browser"),this.container.removeClass("df-loading").addClass("df-error");return}this.commentPopup=e8('<div class="df-comment-popup">').appendTo(this.container),this.viewer=new this.viewerType(e,this),this.sideMenu=new e1({parentElement:this.container},this),this.provider=new n.providers[e.providerType](e,this),this.state="loading",this.checkRequestQueue()}},{key:"initDOM",value:function(){this.element.addClass("df-app").removeClass("df-container df-loading"),this.container=e8("<div>").appendTo(this.element),this.container.addClass("df-container df-loading df-init df-controls-"+this.options.controlsPosition+(!0===this.options.controlsFloating?" df-float":" df-float-off")+("transparent"===this.options.backgroundColor?" df-transparent":"")+(!0===this.isRTL?" df-rtl":"")+(!0===e9.isIOS||!0===e9.isIPad?" df-ios":"")),this._offsetParent=this.container[0].offsetParent,this.backGround=e8("<div class='df-bg'>").appendTo(this.container).css({backgroundColor:this.options.backgroundColor,backgroundImage:this.options.backgroundImage?"url('"+this.options.backgroundImage+"')":""}),this.viewerContainer=e8("<div>").appendTo(this.container),this.viewerContainer.addClass("df-viewer-container")}},{key:"initResourcesLocation",value:function(){var e=this.options;if(void 0!==window[n.locationVar]){if(e.pdfjsSrc=window[n.locationVar]+"js/libs/pdf.min.js",e.threejsSrc=window[n.locationVar]+"js/libs/three.min.js",e.pdfjsWorkerSrc=window[n.locationVar]+"js/libs/pdf.worker.min.js",e.soundFile=window[n.locationVar]+e.soundFile,e.imagesLocation=window[n.locationVar]+e.imagesLocation,e.imageResourcesPath=window[n.locationVar]+e.imageResourcesPath,e.cMapUrl=window[n.locationVar]+e.cMapUrl,void 0!==e.pdfVersion){var t="";"latest"==e.pdfVersion||"beta"==e.pdfVersion?t="latest":"stable"==e.pdfVersion&&(t="stable"),("latest"==e.pdfVersion||"default"==e.pdfVersion)&&(Array.prototype.at,void 0===Array.prototype.at&&(t="stable",console.log("Proper Support for Latest version PDF.js 3.7 not available. Switching to PDF.js 2.5!"))),"default"!==t&&""!==t&&(e.pdfjsSrc=window[n.locationVar]+"js/libs/pdfjs/"+t+"/pdf.min.js",e.pdfjsWorkerSrc=window[n.locationVar]+"js/libs/pdfjs/"+t+"/pdf.worker.min.js"),"stable"===t&&(this.options.fakeZoom=1)}}else console.warn("DEARVIEWER locationVar not found!");this.executeCallback("onInitResourcesLocation")}},{key:"initEvents",value:function(){var e=this.container[0];window.addEventListener("resize",this.events.resize=this.resetResizeRequest.bind(this),!1),e.addEventListener("mousemove",this.events.mousemove=this.mouseMove.bind(this),!1),e.addEventListener("mousedown",this.events.mousedown=this.mouseDown.bind(this),!1),window.addEventListener("mouseup",this.events.mouseup=this.mouseUp.bind(this),!1),e.addEventListener("touchmove",this.events.touchmove=this.mouseMove.bind(this),!1),e.addEventListener("touchstart",this.events.touchstart=this.mouseDown.bind(this),!1),window.addEventListener("touchend",this.events.touchend=this.mouseUp.bind(this),!1)}},{key:"mouseMove",value:function(e){e.touches&&e.touches.length>1&&e.preventDefault(),!0===this.viewer.acceptAppMouseEvents&&this.viewer.mouseMove(e)}},{key:"mouseDown",value:function(e){this.userHasInteracted=!0,!0===this.viewer.acceptAppMouseEvents&&0===e8(e.srcElement).closest(".df-sidemenu").length&&this.viewer.mouseDown(e)}},{key:"mouseUp",value:function(e){this.viewer&&!0===this.viewer.acceptAppMouseEvents&&this.viewer.mouseUp(e)}},{key:"softDispose",value:function(){this.softDisposed=!0,this.provider.dispose(),this.viewer.dispose()}},{key:"softInit",value:function(){this.viewer=new this.viewerType(this.options,this),this.provider=new n.providers[this.options.providerType](this.options,this),this.softDisposed=!1}},{key:"dispose",value:function(){var e,t,i,n,a,o=this.container[0];clearInterval(this.autoPlayTimer),this.autoPlayTimer=null,this.autoPlayFunction=null,this.provider=e9.disposeObject(this.provider),this.contentProvider=null,this.target=null,this.viewer=e9.disposeObject(this.viewer),this.sideMenu=e9.disposeObject(this.sideMenu),this.ui=e9.disposeObject(this.ui),this.thumblist=e9.disposeObject(this.thumblist),this.outlineViewer=e9.disposeObject(this.outlineViewer),this.events&&(window.removeEventListener("resize",this.events.resize,!1),o.removeEventListener("mousemove",this.events.mousemove,!1),o.removeEventListener("mousedown",this.events.mousedown,!1),window.removeEventListener("mouseup",this.events.mouseup,!1),o.removeEventListener("touchmove",this.events.touchmove,!1),o.removeEventListener("touchstart",this.events.touchstart,!1),window.removeEventListener("touchend",this.events.touchend,!1)),this.events=null,this.options=null,this.element.removeClass("df-app"),this.viewerType=null,this.checkRequestQueue=null,null===(e=this.info)||void 0===e||e.remove(),this.info=null,null===(t=this.loadingIcon)||void 0===t||t.remove(),this.loadingIcon=null,null===(i=this.backGround)||void 0===i||i.remove(),this.backGround=null,null===(n=this.outlineContainer)||void 0===n||n.remove(),this.outlineContainer=null,null===(a=this.commentPopup)||void 0===a||a.remove(),this.commentPopup=null,this.viewerContainer.off(),this.viewerContainer.remove(),this.viewerContainer=null,this.container.off(),this.container.remove(),this.container=null,this.element.off(),this.element.data("df-app",null),this.element=null,this._offsetParent=null,this.dimensions=null}},{key:"resetResizeRequest",value:function(){this.resizeRequestStatus=e4.COUNT,this.resizeRequestCount=0,this.container.addClass("df-pendingresize"),this.pendingResize=!0}},{key:"initInfo",value:function(){this.info=e8("<div>",{class:"df-loading-info"}),this.container.append(this.info),this.info.html(this.options.text.loading+"..."),this.loadingIcon=e8("<div>",{class:"df-loading-icon"}).appendTo(this.container)}},{key:"updateInfo",value:function(e,t){e9.log(e),void 0!==this.info&&this.info.html(e)}},{key:"_documentLoaded",value:function(){e9.log("Document Loaded"),this.isDocumentReady=!0,this.contentProvider=this.provider,this.executeCallback("onDocumentLoad"),this.endPage=this.pageCount=this.provider.pageCount,this.currentPageNumber=this.getValidPage(this.currentPageNumber)}},{key:"_viewerPrepared",value:function(){e9.log("Viewer Prepared"),this.isViewerPrepared=!0,this.executeCallback("onViewerLoad")}},{key:"requestFinalize",value:function(){!0===this.isDocumentReady&&!0===this.isViewerPrepared&&!0===this.isExternalReady&&!0!==this.finalizeRequested&&(this.finalizeRequested=!0,this.finalize())}},{key:"finalizeComponents",value:function(){this.ui=new eY({},this),this.ui.init(),this.calculateLayout(),this.viewer.init()}},{key:"finalize",value:function(){this.resize(),this.ui.update(),this.initEvents(),!0==this.options.isLightBox&&this.analytics({eventAction:this.options.analyticsViewerOpen,options:this.options}),this.container.removeClass("df-loading df-init"),this.viewer.onReady(),this.analytics({eventAction:this.options.analyticsViewerReady,options:this.options}),this.executeCallback("onReady"),!0===this.options.dataElement.hasClass("df-hash-focused")&&(e9.focusHash(this.options.dataElement),this.options.dataElement.removeClass("df-hash-focused")),!0===this.hashNavigationEnabled&&this.getURLHash(),e9.log("App Finalized")}},{key:"initOutline",value:function(){var e=e8("<div>").addClass("df-outline-container df-sidemenu");e.append('<div class="df-sidemenu-title">'+this.options.text.outlineTitle+"</div>");var t=e8("<div>").addClass("df-wrapper");e.append(t),this.sideMenu.element.append(e),this.outlineContainer=e,this.outlineViewer=new e2({container:t[0],linkService:this.provider.linkService,outlineItemClass:"df-outline-item",outlineToggleClass:"df-outline-toggle",outlineToggleHiddenClass:"df-outlines-hidden"}),this.outlineViewer.render({outline:this.provider.outline})}},{key:"initThumbs",value:function(){var e=this;e.thumblist=new e3({app:e,addFn:function(e){},scrollFn:function(){e.thumbRequestStatus=e4.ON},itemHeight:e.thumbSize,itemWidth:e9.limitAt(Math.floor(e.dimensions.defaultPage.ratio*e.thumbSize),32,180),totalRows:e.pageCount}),e.thumblist.lastScrolled=Date.now(),e.thumbRequestStatus=e4.ON;var t=e8("<div>").addClass("df-thumb-container df-sidemenu");t.append('<div class="df-sidemenu-title">'+this.options.text.thumbTitle+"</div>"),t.append(e8(e.thumblist.container).addClass("df-wrapper")),e.thumbContainer=t,e.sideMenu.element.append(t),e.container.on("click",".df-thumb-container .df-thumb",function(t){t.stopPropagation();var i=e8(this).attr("id").replace("df-thumb","");e.gotoPage(parseInt(i,10))})}},{key:"initSearch",value:function(){var e=this,t=e8("<div>").addClass("df-search-container df-sidemenu");t.append('<div class="df-sidemenu-title">'+this.options.text.searchTitle+"</div>"),e.searchForm=e8('<div class="df-search-form">').appendTo(t),e.searchBox=e8('<input type="text" class="df-search-text" placeholder="'+this.options.text.searchPlaceHolder+'">').on("keyup",function(t){13===t.keyCode&&e.search()}).appendTo(e.searchForm),e.searchButton=e8('<div class="df-ui-btn df-search-btn df-icon-search">').on("click",function(t){e.search()}).appendTo(e.searchForm),e.clearButton=e8('<a class="df-search-clear">Clear</a>').on("click",function(t){e.clearSearch()}).appendTo(e.searchForm),e.searchInfo=e8('<div class="df-search-info">').appendTo(t),e.searchResults=e8('<div class="df-wrapper df-search-results">').appendTo(t),e.searchContainer=t,e.sideMenu.element.append(t),e.container.on("click",".df-search-result",function(t){t.stopPropagation();var i=e8(this).data("df-page");e.gotoPage(parseInt(i,10))})}},{key:"search",value:function(e){void 0==e&&(e=this.searchBox.val()),this.provider.search(e.trim())}},{key:"clearSearch",value:function(){this.searchBox.val(""),this.searchInfo.html(""),this.provider.clearSearch()}},{key:"updateSearchInfo",value:function(e){e9.log(e),void 0!==this.searchInfo&&this.searchInfo.html(e)}},{key:"checkRequestQueue",value:function(){var e=this;if(e.checkRequestQueue&&requestAnimationFrame(function(){e&&e.checkRequestQueue&&e.checkRequestQueue()}),!e.softDisposed){if("ready"!=e.state){"loading"===e.state&&!0===this.isDocumentReady&&!0===this.isViewerPrepared&&!0===this.isExternalReady&&(e.state="finalizing",this.finalizeComponents()),"finalizing"===e.state&&(e.state="ready",e.finalize());return}e.container&&e.container[0]&&e._offsetParent!==e.container[0].offsetParent&&(e._offsetParent=e.container[0].offsetParent,null!==e._offsetParent&&(e.resize(),e.resizeRequestStatus=e4.OFF),e9.log("Visibility Resize Detected")),(null!==e._offsetParent||e.isFullscreen)&&(TWEEN.getAll().length>0&&(TWEEN.update(),e.renderRequestStatus=e4.ON),e.resizeRequestStatus===e4.ON?(e.resizeRequestStatus=e4.OFF,e.resize()):e.resizeRequestStatus===e4.COUNT&&(e.resizeRequestCount++,e.resizeRequestCount>10&&(e.resizeRequestCount=0,e.resizeRequestStatus=e4.ON)),e.refreshRequestStatus===e4.ON?(e.refreshRequestStatus=e4.OFF,e.pendingResize=!1,e.viewer.refresh(),this.container.removeClass("df-pendingresize")):e.refreshRequestStatus===e4.COUNT&&(e.refreshRequestCount++,e.refreshRequestCount>3&&(e.refreshRequestCount=0,e.refreshRequestStatus=e4.ON)),e.textureRequestStatus===e4.ON&&e.processTextureRequest(),e.thumbRequestStatus===e4.ON?e.processThumbRequest():e.thumbRequestStatus===e4.COUNT&&(e.thumbRequestCount++,e.thumbRequestCount>3&&(e.thumbRequestCount=0,e.thumbRequestStatus=e4.ON)),e.renderRequestStatus===e4.ON&&(e.viewer.render(),e.renderRequestStatus=e4.OFF),e.provider.checkRequestQueue(),e.viewer.checkRequestQueue())}}},{key:"processTextureRequest",value:function(){var e,t,i=this.viewer,a=this.provider,o=i.getVisiblePages().main,s=0,r=this.zoomValue>1;if(i.isAnimating()&&!0!==DEARFLIP.defaults.instantTextureProcess)this.textureRequestStatus=e4.ON;else{e9.log("Texture Request Working");for(var l=0;l<o.length;l++){s=0;var h=o[l];if(h>0&&h<=this.pageCount&&((e=r?i.zoomViewer.getPageByNumber(h):i.getPageByNumber(h))&&(t=i.getTextureSize({pageNumber:h}),e.changeTexture(h,Math.floor(t.height))&&(a.processPage({pageNumber:h,textureTarget:r?n.TEXTURE_TARGET.ZOOM:n.TEXTURE_TARGET.VIEWER}),s++,this.viewer.getAnnotationElement(h,!0))),s>0))break}0===s&&(this.textureRequestStatus=e4.OFF)}}},{key:"applyTexture",value:function(e,t){var i=void 0!==e.toDataURL;if(t.textureTarget===n.TEXTURE_TARGET.THUMB){if(t.height=e.height,t.width=e.width,i){var a=e.toDataURL("image/png");this.provider.setCache(t.pageNumber,a,this.thumbSize),t.texture=a}else t.texture=e.src;this.thumblist.setPage(t)}else t.texture=i?e:e.src,!0===this.viewer.setPage(t)&&(this.provider.processAnnotations(t.pageNumber,this.viewer.getAnnotationElement(t.pageNumber,!0)),this.provider.processTextContent(t.pageNumber,this.viewer.getTextElement(t.pageNumber,!0)))}},{key:"processThumbRequest",value:function(){null!==this.thumblist&&void 0!==this.thumblist&&this.thumblist.processThumbRequest()}},{key:"refreshRequestStart",value:function(){this.refreshRequestStatus=e4.COUNT,this.refreshRequestCount=0}},{key:"renderRequestStart",value:function(){this.renderRequestStatus=e4.ON}},{key:"resizeRequestStart",value:function(){this.resizeRequestStatus=e4.ON}},{key:"zoom",value:function(e){this.pendingZoom=!0,this.zoomDelta=e,this.resize()}},{key:"resetZoom",value:function(){1!==this.zoomValue&&(this.zoomValue=1.001,this.zoom(-1))}},{key:"calculateLayout",value:function(){var e,t,i=this.isSideMenuOpen=this.container.hasClass("df-sidemenu-open"),a=this.dimensions,o=this.dimensions.padding,s=e8(window).height();a.offset={top:0,left:this.options.sideMenuOverlay||!i||this.isRTL?0:220,right:!this.options.sideMenuOverlay&&i&&this.isRTL?220:0,bottom:0,width:!this.options.sideMenuOverlay&&i?220:0},this.viewerContainer.css({left:a.offset.left,right:a.offset.right});var r=a.controlsHeight=this.container.find(".df-ui").height();if(o.top=this.options.paddingTop+(this.options.controlsPosition===n.CONTROLS_POSITION.TOP?r:0),o.left=this.options.paddingLeft,o.right=this.options.paddingRight,o.bottom=this.options.paddingBottom+(this.options.controlsPosition===n.CONTROLS_POSITION.BOTTOM?r:0),o.height=o.top+o.bottom,o.width=o.left+o.right,o.heightDiff=o.top-o.bottom,o.widthDiff=o.left-o.right,a.isFullSize=!0===this.isFullscreen,a.isFixedHeight=a.isFullSize||!a.isAutoHeight,a.containerWidth=a.isFullSize?e8(window).width():this.element.width(),this.container.toggleClass("df-xs",a.containerWidth<400).toggleClass("df-xss",a.containerWidth<320),a.maxHeight=s-(a.containerWidth>600&&null!==(t=e8(null!==(e=this.options.headerElementSelector)&&void 0!==e?e:"#wpadminbar").height())&&void 0!==t?t:0),a.isFixedHeight){if(a.isFullSize)a.maxHeight=s;else{this.element.height(this.options.height);var l=this.element.height();a.maxHeight=Math.min(l,a.maxHeight)}}a.width,a.stage.innerWidth=this.viewer._getInnerWidth();var h=a.stage.innerHeight=this.viewer._getInnerHeight(),u=this.viewer._getOuterHeight(h+a.padding.height);a.containerHeight=a.isFullSize?s:u,this.element.height(a.containerHeight);var p=this.element.height();a.isFullSize||p==a.containerHeight||(a.containerHeight=p,a.stage.innerHeight=p-a.padding.height,a.stage.height=p),a.origin={x:(o.widthDiff+a.containerWidth-a.offset.left-a.offset.right)/2,y:(o.heightDiff+a.containerHeight)/2},this.viewer.determinePageMode()}},{key:"resize",value:function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];e9.log("Resize Request Initiated"),this.calculateLayout(),this.viewer.handleZoom(),this.viewer.resize(),!1!==e&&(this.pendingZoom?(this.viewer.refresh(),e9.log("Pending Zoom updated")):this.refreshRequestStart(),this.ui.update(),this.renderRequestStatus=e4.ON,this.zoomChanged=!1,this.pendingZoom=!1,this.executeCallback("afterResize"))}},{key:"hasOutline",value:function(){if(this.provider.outline.length>0)return!0}},{key:"switchFullscreen",value:function(){var e,t,i=this,n=i.container[0];if(i.container.toggleClass("df-fullscreen",!0!==i.isFullscreen),(null==i?void 0:null===(t=i.ui)||void 0===t?void 0:null===(e=t.controls)||void 0===e?void 0:e.fullscreen)&&i.ui.controls.fullScreen.toggleClass(i.options.icons["fullscreen-off"],!0!==i.isFullscreen),!0!==i.isFullscreen){var a=null;n.requestFullscreen?a=n.requestFullscreen():n.msRequestFullscreen?a=n.msRequestFullscreen():n.mozRequestFullScreen?a=n.mozRequestFullScreen():n.webkitRequestFullscreen&&(a=n.webkitRequestFullscreen()),a&&a.then&&a.then(function(){i.refreshRequestStatus,e4.ON,i.resize()}),i.isFullscreen=!0}else i.isFullscreen=!1,document.exitFullscreen?document.fullscreenElement&&document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen(),e9.hasFullscreenEnabled()||i.container[0].scrollIntoView();e9.hasFullscreenEnabled()||(i.resizeRequestStatus=e4.ON)}},{key:"next",value:function(){this.jumpBy(this.jumpStep)}},{key:"prev",value:function(){this.jumpBy(-this.jumpStep)}},{key:"jumpBy",value:function(e){var t=this.currentPageNumber+e;t=e9.limitAt(t,this.startPage,this.endPage),!0!=this.anyFirstPageChanged&&(this.analytics({eventAction:this.options.analyticsFirstPageChange,options:this.options}),this.anyFirstPageChanged=!0),this.gotoPage(t),this.ui.update()}},{key:"openRight",value:function(){this.isRTL?this.prev():this.next()}},{key:"openLeft",value:function(){this.isRTL?this.next():this.prev()}},{key:"start",value:function(){this.gotoPage(this.startPage)}},{key:"end",value:function(){this.gotoPage(this.endPage)}},{key:"gotoPage",value:function(e){e=this.getValidPage(parseInt(e,10)),null!==this.viewer&&!1!==this.viewer.validatePageChange(e)&&(this.executeCallback("beforePageChanged"),this.requestDestRefKey=void 0,this.container.removeClass("df-fetch-pdf"),this.oldPageNumber=this.currentPageNumber,this.currentPageNumber=e,this.thumbRequestStatus=e4.ON,this.viewer.gotoPageCallBack&&this.viewer.gotoPageCallBack(),this.ui.update(),!0==this.autoPlay&&this.setAutoPlay(this.autoPlay),!0===this.hashNavigationEnabled&&this.getURLHash(),this.executeCallback("onPageChanged"))}},{key:"gotoPageLabel",value:function(e){this.gotoPage(this.provider.getPageNumberForLabel(e.toString().trim()))}},{key:"getCurrentLabel",value:function(){return this.provider.getLabelforPage(this.currentPageNumber)}},{key:"autoPlayFunction",value:function(){this&&this.autoPlay&&(e9.limitAt(this.currentPageNumber+this.jumpStep,this.startPage,this.endPage)!==this.currentPageNumber?this.next():this.setAutoPlay(!1))}},{key:"setAutoPlay",value:function(e){if(this.options.autoPlay){var t=(e=!0==e)?this.options.text.pause:this.options.text.play;this.ui.controls.play.toggleClass(this.options.icons.pause,e),this.ui.controls.play.html("<span>"+t+"</span>"),this.ui.controls.play.attr("title",t),clearInterval(this.autoPlayTimer),e&&(this.autoPlayTimer=setInterval(this.autoPlayFunction.bind(this),this.options.autoPlayDuration)),this.autoPlay=e}}},{key:"isValidPage",value:function(e){return this.provider._isValidPage(e)}},{key:"getValidPage",value:function(e){return isNaN(e)?e=this.currentPageNumber:e<1?e=1:e>this.pageCount&&(e=this.pageCount),e}},{key:"getURLHash",value:function(){if(null!=this.options.id){var e=e9.getSharePrefix(this.options.sharePrefix)+(null!=this.options.slug?this.options.slug:this.options.id)+"/";null!=this.currentPageNumber&&(e+=this.currentPageNumber+"/"),history.replaceState(void 0,void 0,"#"+e)}return window.location.href}},{key:"executeCallback",value:function(e){}},{key:"analytics",value:function(e){}}],function(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}();n.prepareOptions=function(e){t=e.element,(null!=e8&&"undefined"!=typeof Symbol&&e8[Symbol.hasInstance]?e8[Symbol.hasInstance](t):t instanceof e8)||(e.element=e8(e.element));var t,i=e.element;null==e.dataElement&&(e.dataElement=i);var a=e.dataElement,o=n.utils.getOptions(a),s=e8.extend(!0,{},n.defaults,e,o);s=e9.fallbackOptions(s),e9.log(s);var r=e8.extend(!0,{},n._defaults,s);return e9.isMobile&&"function"==typeof n.viewers[r.mobileViewerType]&&(r.viewerType=r.mobileViewerType),"function"!=typeof n.viewers[r.viewerType]?(console.warn("Invalid Viewer Type! "+r.viewerType+" | Using default Viewer!"),r.viewerType=n.viewers.default):r.viewerType=n.viewers[r.viewerType],r=e9.finalizeOptions(e9.sanitizeOptions(r))},n.Application=function(e){var t=n.prepareOptions(e),i=new e7(t);return e.element.data("df-app",i),null!=t.id&&!0!==t.isLightBox&&(window[t.id.toString()]=i),i},e8.fn.extend({dearviewer_options:function(e){return null==e&&(e={}),e.element=e8(this),new n.prepareOptions(e)},dearviewer:function(e){return null==e&&(e={}),e.element=e8(this),new n.Application(e)}});var e6=n.jQuery,te=window.DFLIP=window.DEARFLIP=n;te.defaults.viewerType="flipbook",te.slug="dflip",te.locationVar="dFlipLocation",te.locationFile="dflip",te.PAGE_MODE={SINGLE:1,DOUBLE:2,AUTO:null},te.SINGLE_PAGE_MODE={ZOOM:1,BOOKLET:2,AUTO:null},te.CONTROLSPOSITION={HIDDEN:"hide",TOP:"top",BOTTOM:"bottom"},te.DIRECTION={LTR:1,RTL:2},te.PAGE_SIZE={AUTO:0,SINGLE:1,DOUBLEINTERNAL:2},te.parseFallBack=function(){e6(".df-posts").addClass("dflip-books"),e6(".dflip-books").addClass("df-posts"),e6("._df_button, ._df_thumb, ._df_book").each(function(){var e=e6(this);"true"!==e.data("df-parsed")&&(e.addClass("df-element"),e.hasClass("_df_book")||(e.hasClass("_df_thumb")?(e.attr("data-df-lightbox","thumb"),void 0!==e.attr("thumb")&&e.data("df-thumb",e.attr("thumb"))):e.attr("data-df-lightbox","button")))})},te.parseBooks=function(){te.parseFallBack(),te.parseElements()};var tt=function(e){var t,i;return null!=e.source&&(Array===e.source.constructor||Array.isArray(e.source)||(t=e.source,null!=(i=Array)&&"undefined"!=typeof Symbol&&i[Symbol.hasInstance]?!!i[Symbol.hasInstance](t):t instanceof i))&&(e.providerType="image"),null!=e.cover3DType&&(!0==e.cover3DType||"true"==e.cover3DType?e.cover3DType=te.FLIPBOOK_COVER_TYPE.BASIC:(!1==e.cover3DType||"false"==e.cover3DType)&&(e.cover3DType=te.FLIPBOOK_COVER_TYPE.NONE)),void 0!==e.pageSize&&("1"===e.pageSize||1===e.pageSize||e.pageSize===te.FLIPBOOK_PAGE_SIZE.SINGLE?e.pageSize=te.FLIPBOOK_PAGE_SIZE.SINGLE:"2"===e.pageSize||2===e.pageSize||e.pageSize===te.FLIPBOOK_PAGE_SIZE.DOUBLE_INTERNAL?e.pageSize=te.FLIPBOOK_PAGE_SIZE.DOUBLE_INTERNAL:e.pageSize===te.FLIPBOOK_PAGE_SIZE.DOUBLE_COVER_BACK||(e.pageSize=te.FLIPBOOK_PAGE_SIZE.AUTO)),void 0!==e.pageMode&&("1"===e.pageMode||1===e.pageMode||e.pageMode===te.FLIPBOOK_PAGE_MODE.SINGLE?e.pageMode=te.FLIPBOOK_PAGE_MODE.SINGLE:"2"===e.pageMode||2===e.pageMode||e.pageMode===te.FLIPBOOK_PAGE_MODE.DOUBLE?e.pageMode=te.FLIPBOOK_PAGE_MODE.DOUBLE:e.pageMode=te.FLIPBOOK_PAGE_MODE.AUTO),void 0!==e.singlePageMode&&("1"===e.singlePageMode||1===e.singlePageMode||e.singlePageMode===te.FLIPBOOK_SINGLE_PAGE_MODE.ZOOM?e.singlePageMode=te.FLIPBOOK_SINGLE_PAGE_MODE.ZOOM:"2"===e.singlePageMode||2===e.singlePageMode||e.singlePageMode===te.FLIPBOOK_SINGLE_PAGE_MODE.BOOKLET?e.singlePageMode=te.FLIPBOOK_SINGLE_PAGE_MODE.BOOKLET:e.singlePageMode=te.FLIPBOOK_SINGLE_PAGE_MODE.AUTO),void 0!==e.controlsPosition&&"hide"===e.controlsPosition&&(e.controlsPosition=te.CONTROLS_POSITION.HIDDEN),void 0!==e.overwritePDFOutline&&(e.overwritePDFOutline=l.isTrue(e.overwritePDFOutline)),void 0!==e.webgl&&(e.is3D=e.webgl=e.webgl,delete e.webgl),void 0!==e.webglShadow&&(e.has3DShadow=l.isTrue(e.webglShadow),delete e.webglShadow),void 0!==e.scrollWheel&&(l.isTrue(e.scrollWheel)&&(e.mouseScrollAction=te.MOUSE_SCROLL_ACTIONS.ZOOM),delete e.scrollWheel),void 0!==e.stiffness&&delete e.stiffness,void 0!==e.soundEnable&&(e.enableSound=l.isTrue(e.soundEnable),delete e.soundEnable),void 0!==e.enableDownload&&(e.showDownloadControl=l.isTrue(e.enableDownload),delete e.enableDownload),void 0!==e.autoEnableOutline&&(e.autoOpenOutline=l.isTrue(e.autoEnableOutline),delete e.autoEnableOutline),void 0!==e.autoEnableThumbnail&&(e.autoOpenThumbnail=l.isTrue(e.autoEnableThumbnail),delete e.autoEnableThumbnail),void 0!==e.direction&&("2"===e.direction||2===e.direction||e.direction===te.READ_DIRECTION.RTL?e.readDirection=te.READ_DIRECTION.RTL:e.readDirection=te.READ_DIRECTION.LTR,delete e.direction),void 0!==e.hard&&(e.flipbookHardPages=e.hard,"hard"===e.flipbookHardPages&&(e.flipbookHardPages="all"),delete e.hard),void 0!==e.forceFit&&delete e.forceFit,l.sanitizeOptions(e)};e6.fn.extend({flipBook:function(e,t){return null==t&&(t={}),t.source=e,t.element=e6(this),new n.Application(t)}}),e6(document).ready(function(){var e=e6("body");te.executeCallback("beforeDearFlipInit"),void 0!==window.dFlipWPGlobal&&e6.extend(!0,te.defaults,tt(window.dFlipWPGlobal)),te.initUtils(),te.initControls(),e.on("click",".df-element[data-df-lightbox],.df-element[data-lightbox]",function(e){var t=e6(this);e.preventDefault(),e.stopPropagation(),te.openLightBox(t)}),te.checkBrowserURLforDefaults(),te.parseCSSElements(),te.parseFallBack(),l.detectHash(),te.parseNormalElements(),te.checkBrowserURLforPDF(!0),te.executeCallback("afterDearFlipInit")}),l.finalizeOptions=function(e){return tt(e)},te.executeCallback("onDearFlipLoad")}()}();


wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'ltr' ] } );

/*!
* FitVids 1.1
*
* Copyright 2013, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com
* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
* Released under the WTFPL license - http://sam.zoy.org/wtfpl/
*
*/
;(function($){'use strict';$.fn.fitVids=function(options){var settings={customSelector:null,ignore:null};if(!document.getElementById('fit-vids-style')){var head=document.head||document.getElementsByTagName('head')[0];var css='.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}';var div=document.createElement("div");div.innerHTML='<p>x</p><style id="fit-vids-style">'+css+'</style>';head.appendChild(div.childNodes[1])}
if(options){$.extend(settings,options)}
return this.each(function(){var selectors=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]','object','embed'];if(settings.customSelector){selectors.push(settings.customSelector)}
var ignoreList='.fitvidsignore';if(settings.ignore){ignoreList=ignoreList+', '+settings.ignore}
var $allVideos=$(this).find(selectors.join(','));$allVideos=$allVideos.not('object object');$allVideos=$allVideos.not(ignoreList);$allVideos.each(function(){var $this=$(this);if($this.parents(ignoreList).length>0){return}
if(this.tagName.toLowerCase()==='embed'&&$this.parent('object').length||$this.parent('.fluid-width-video-wrapper').length){return}
if((!$this.css('height')&&!$this.css('width'))&&(isNaN($this.attr('height'))||isNaN($this.attr('width')))){$this.attr('height',9);$this.attr('width',16)}
var height=(this.tagName.toLowerCase()==='object'||($this.attr('height')&&!isNaN(parseInt($this.attr('height'),10))))?parseInt($this.attr('height'),10):$this.height(),width=!isNaN(parseInt($this.attr('width'),10))?parseInt($this.attr('width'),10):$this.width(),aspectRatio=height/width;if(!$this.attr('name')){var videoName='fitvid'+$.fn.fitVids._count;$this.attr('name',videoName);$.fn.fitVids._count++}
$this.wrap('<div class="fluid-width-video-wrapper"></div>').parent('.fluid-width-video-wrapper').css('padding-top',(aspectRatio*100)+'%');$this.removeAttr('height').removeAttr('width')})})};$.fn.fitVids._count=0})(window.jQuery||window.Zepto);


wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'ltr' ] } );

(function($){$(function(){var user_agent=navigator.userAgent;var is_opera_edge;var browser=user_agent.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))/i)||[];var browser_name='';var browser_class='';if(/trident/i.test(browser[0])){browser_name='ie'}else if(browser[0]==='Chrome'){is_opera_edge=user_agent.match(/\b(OPR|Edge)/);if(is_opera_edge!==null){browser_name=is_opera_edge[0].replace('OPR','opera')}}
if(''===browser_name){if('standalone' in window.navigator&&!window.navigator.standalone){browser_name='uiwebview'}else{browser_name=browser[0]&&''!==browser[0]?browser[0]:navigator.appName}}
browser_name=browser_name.toLowerCase();switch(browser_name){case 'msie':browser_class='ie';break;case 'firefox':browser_class='gecko';break;default:browser_class=browser_name;break}
if(user_agent.match(/iPhone/)){browser_class+=' iphone'}
$('body').addClass(browser_class)})})(jQuery);


wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'ltr' ] } );

"use strict";function cmplz_create_element(e,t){e=document.createElement(e);return e.innerHtml=t,e}function cmplz_add_event(e,t,c){document.addEventListener(e,e=>{e.target.closest(t)&&c(e)})}function cmplz_is_hidden(e){return null===e.offsetParent}function cmplz_html_decode(e){return(new DOMParser).parseFromString(e,"text/html").documentElement.textContent}function cmplzLoadConsentAreaContent(e,i){document.querySelectorAll(".cmplz-consent-area.cmplz-placeholder").forEach(t=>{let c=t.getAttribute("data-category"),n=t.getAttribute("data-service");var o=t.getAttribute("data-post_id"),a=t.getAttribute("data-block_id");if(e===c||i===n){let e=new XMLHttpRequest;e.open("GET",complianz.url+"consent-area/"+o+"/"+a,!0),e.setRequestHeader("Content-type","application/json"),e.send(),t.classList.remove("cmplz-placeholder"),e.onload=function(){t.innerHTML=JSON.parse(e.response),t.querySelectorAll("script").forEach(e=>{cmplz_run_script(e.innerHTML,c,n,"inline",e)})}}})}document.querySelectorAll(".cmplz-consent-area.cmplz-placeholder").forEach(e=>{e.addEventListener("click",e=>{let t=e.target;(t=t.classList.contains("cmplz-consent-area")?t:e.target.closest(".cmplz-consent-area.cmplz-placeholder"))&&(cmplz_set_service_consent(e=t.getAttribute("data-service"),!0),cmplzLoadConsentAreaContent(!1,e),cmplz_enable_category(null,e),cmplz_set_banner_status("dismissed"))}),document.addEventListener("cmplz_enable_category",function(e){cmplzLoadConsentAreaContent(e.detail.category,e.detail.service)})}),document.addEventListener("cmplz_manage_consent_container_loaded",function(e){var t,c=window.location.href;-1!=c.indexOf("#")&&(t=-1!=c.lastIndexOf("?")?c.lastIndexOf("?"):void 0,c=c.substring(c.indexOf("#")+1,t),t=document.getElementById(c))&&(c=t.getBoundingClientRect().top+window.pageYOffset-200,window.scrollTo({top:c,behavior:"smooth"}))}),complianz.locale=complianz.locale+"&token="+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5),function(){function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var c=document.createEvent("CustomEvent");return c.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),c}"function"!=typeof window.CustomEvent&&(e.prototype=window.Event.prototype,window.CustomEvent=e)}();var cmplz_banner,cmplz_manage_consent_button,cmplzResizeTimer,cmplz_banner_container=document.getElementById("cmplz-cookiebanner-container"),cmplz_waiting_inline_scripts=[],cmplz_waiting_scripts=[],cmplz_fired_scripts=[],cmplz_placeholder_class_index=0,cmplz_all_scripts_hook_fired=!1,cmplz_consent_stored_once=!1,cmplz_fired_category_events=["functional"],cmplz_fired_service_events=[],cmplz_categories=["functional","preferences","statistics","marketing"];window.cmplz_get_cookie=function(t){if("undefined"!=typeof document){t=complianz.prefix+t;var c=document.cookie.split(";");for(let e=0;e<c.length;e++){var n=c[e].trim();if(n.startsWith(t+"="))return n.substring(t.length+1)}}return""},window.cmplz_set_cookie=function(e,t,c){var n,o,a,i;"undefined"!=typeof document&&(c=void 0===c||c,n="https:"===window.location.protocol?";secure":"",(o=new Date).setTime(o.getTime()+24*complianz.cookie_expiry*60*60*1e3),o=";expires="+o.toGMTString(),a=0<(a=cmplz_get_cookie_domain()).length?";domain="+a:"",c=c?complianz.prefix:"",i=cmplz_get_cookie_path(),document.cookie=""+c+e+`=${t};SameSite=Lax${n}${o}${a};path=`+i)},window.cmplz_in_array=function(e,t){return t.includes(e)},window.cmplz_highest_accepted_category=function(){var t=cmplz_accepted_categories(),c=["marketing","statistics","preferences"];for(let e=0;e<c.length;e++)if(cmplz_in_array(c[e],t))return c[e];return"functional"};const cmplz_set_category_as_body_class=()=>{const c=document.body.classList;for(let e=c.length-1;0<=e;e--)c[e].startsWith("cmplz-")&&"cmplz-document"!==c[e]&&c.remove(c[e]);var e=cmplz_accepted_categories(),e=(Object.values(e).forEach(e=>{"string"==typeof e&&c.add("cmplz-"+e)}),cmplz_get_all_service_consents()),e=(Object.entries(e).forEach(([e,t])=>{t&&c.add("cmplz-"+e)}),c.add("cmplz-"+complianz.region,"cmplz-"+complianz.consenttype),new CustomEvent("cmplz_set_category_as_bodyclass"));document.dispatchEvent(e)},cmplz_append_css=e=>{var t=document.head||document.getElementsByTagName("head")[0],c=document.createElement("style");c.setAttribute("type","text/css"),c.appendChild(document.createTextNode(e)),t.appendChild(c)},cmplz_load_css=e=>{var t=document.head||document.getElementsByTagName("head")[0],c=document.createElement("link");c.rel="stylesheet",c.type="text/css",c.href=e,t.appendChild(c)};function cmplz_run_script(t,c,n,e,o){var a=document.createElement("script");if("inline"!==e?a.src=t:("string"!=typeof t&&(t=t.innerHTML),a.innerHTML=[t,"cmplzScriptLoaded();"].join("\n")),!cmplz_in_array(t,cmplz_fired_scripts)){cmplzCopyAttributes(o,a);try{"inline"!==e?a.onload=function(){cmplz_run_after_all_scripts(c,n),cmplz_maybe_run_waiting_scripts(t,c,n,o)}:window.cmplzScriptLoaded=function(){cmplz_run_after_all_scripts(c,n),cmplz_maybe_run_waiting_scripts(t,c,n,o)},document.head.appendChild(a)}catch(e){throw cmplz_run_after_all_scripts(c,n),"Something went wrong "+e+" while loading "+t}}}function cmplz_maybe_run_waiting_scripts(e,t,c,n){var o=cmplz_get_waiting_script(cmplz_waiting_scripts,e),o=(o&&cmplz_run_script(o,t,c,"src",n),cmplz_get_waiting_script(cmplz_waiting_inline_scripts,e));o&&cmplz_run_script(o,t,c,"inline",n)}const cmplzLazyLoader=()=>{var e=document.querySelectorAll(".cmplz-blocked-content-container");const t=new IntersectionObserver((e,n)=>{e.forEach(e=>{var t,c;e.isIntersecting&&((t=(e=e.target).getAttribute("data-placeholder-image"))&&(c=e.getAttribute("data-placeholder_class_index"),cmplz_append_css(".cmplz-placeholder-"+c+" {background-image: url("+t+") !important;}"),cmplz_set_blocked_content_container_aspect_ratio(e,t,c)),n.unobserve(e))})});e.forEach(e=>{t.observe(e)})};function cmplz_set_blocked_content_container(){document.querySelectorAll(".cmplz-image").forEach(e=>{var t,c,n,o;e.classList.contains("cmplz-processed")||(e.classList.add("cmplz-processed"),t=e.getAttribute("data-service"),c=e.getAttribute("data-category"),(n=e.parentElement).classList.add("cmplz-blocked-content-container"),o=n.getAttribute("data-placeholder_class_index"),"lazy"===e.getAttribute("loading")&&(e.removeAttribute("loading"),e.setAttribute("data-deferlazy",1)),null==o&&(cmplz_placeholder_class_index++,n.classList.add("cmplz-placeholder-"+cmplz_placeholder_class_index,"cmplz-blocked-content-container"),n.setAttribute("data-placeholder_class_index",cmplz_placeholder_class_index),cmplz_insert_placeholder_text(n,c,t)))}),document.querySelectorAll(".cmplz-placeholder-element").forEach(t=>{if(!t.classList.contains("cmplz-processed")){t.classList.add("cmplz-processed");var c=t.getAttribute("data-service"),n=t.getAttribute("data-category");let e;null===(e=t.classList.contains("cmplz-iframe")?("lazy"===t.getAttribute("loading")&&(t.removeAttribute("loading"),t.setAttribute("data-deferlazy",1)),t.parentElement):t).getAttribute("data-placeholder_class_index")&&(cmplz_placeholder_class_index++,e.classList.add("cmplz-placeholder-"+cmplz_placeholder_class_index,"cmplz-blocked-content-container"),e.setAttribute("data-placeholder_class_index",cmplz_placeholder_class_index),cmplz_insert_placeholder_text(e,n,c),n=t.getAttribute("data-placeholder-image"))&&void 0!==n&&n.length&&e.setAttribute("data-placeholder-image",n)}}),cmplzLazyLoader(),cmplz_has_consent("statistics")&&cmplz_enable_category("statistics"),cmplz_has_consent("marketing")&&cmplz_enable_category("marketing")}function cmplz_insert_placeholder_text(e,n,o){if(!e.querySelector(".cmplz-blocked-content-notice")){let t=complianz.placeholdertext;n=n||"marketing";let c;if(void 0!==t){if(1==complianz.clean_cookies){let e=o?o.replace("-"," "):"";e=e.charAt(0).toUpperCase()+e.slice(1),t=t.replace("{service}",e),(c=cmplz_create_element("div",t)).innerHTML=t,c.classList.add("cmplz-blocked-content-notice");var a=c.querySelector("button"),a=(a.setAttribute("data-service",o),a.setAttribute("data-category",n),a.setAttribute("aria-label",complianz.aria_label.replace("{service}",e)),complianz.page_links[complianz.region]),i=c.querySelector(".cmplz-links a");a&&a.hasOwnProperty("cookie-statement")&&(i.setAttribute("href",a["cookie-statement"].url),"{title}"===i.innerText)&&(i.innerText=a["cookie-statement"].title)}else{i=cmplz_create_element("button",""),a=complianz.categories.hasOwnProperty(n)?complianz.categories[n]:"marketing";i.innerText=t.replace("{category}",a),i.classList.add("cmplz-blocked-content-notice","cmplz-accept-category","cmplz-accept-"+n),i.setAttribute("data-service",o),i.setAttribute("data-category",n),i.setAttribute("aria-label",complianz.aria_label.replace("{category}",n)),c=i}("VIDEO"!==e.tagName?e:e.parentElement).appendChild(c)}}}function cmplz_set_blocked_content_container_aspect_ratio(t,c,n){var e;null!=t&&((e=new Image).addEventListener("load",function(){var e=this.naturalWidth||1,e=this.naturalHeight*(t.clientWidth/e),e=-1===c.indexOf("placeholder.jpg")?"height:"+e+"px;":"";cmplz_append_css(".cmplz-placeholder-"+n+" {"+e+"}")}),e.src=c)}function cmplz_has_blocked_scripts(){return 0<document.querySelectorAll("script[data-category], script[data-service]").length}function cmplz_enable_category(o,a){1==complianz.tm_categories&&""!==o&&cmplz_run_tm_event(o);var t={},t=(t.category=o,t.categories=cmplz_accepted_categories(),t.region=complianz.region,new CustomEvent("cmplz_before_category",{detail:t}));if(document.dispatchEvent(t),a=void 0!==a?a:"do_not_match","functional"!==(o=""===o?"do_not_match":o)){"marketing"===o&&cmplz_set_integrations_cookies();let e;e="do_not_match"!==a?'.cmplz-blocked-content-notice [data-service="'+a+'"]':1!=complianz.clean_cookies?".cmplz-blocked-content-notice.cmplz-accept-"+o:'.cmplz-blocked-content-notice [data-category="'+o+'"]',document.querySelectorAll(e).forEach(e=>{var t=e.getAttribute("data-service");e.parentNode.classList.contains("cmplz-blocked-content-notice")&&(e=e.parentNode),cmplz_is_service_denied(t)||e.parentNode.removeChild(e)}),document.querySelectorAll('[data-category="'+o+'"], [data-service="'+a+'"]').forEach(t=>{var e=t.getAttribute("data-service");if(!cmplz_is_service_denied(e)&&"functional"!==t.getAttribute("data-category")&&!t.classList.contains("cmplz-activated")){var e=t.tagName;if("LINK"===e){t.classList.add("cmplz-activated");var c=t.getAttribute("data-href");cmplz_load_css(c,o)}else if("IMG"===e){t.classList.add("cmplz-activated");c=t.getAttribute("data-src-cmplz");t.setAttribute("src",c),t.getAttribute("data-deferlazy")&&t.setAttribute("loading","lazy"),cmplz_remove_placeholder(t)}else if("IFRAME"===e){t.classList.add("cmplz-activated");let e=t.getAttribute("data-src-cmplz");c=t.getAttribute("data-cmplz-target")?t.getAttribute("data-cmplz-target"):"src";"1"===cmplz_get_url_parameter(t.getAttribute(c),"autoplay")&&(e+="&autoplay=1"),t.getAttribute("data-deferlazy")&&t.setAttribute("loading","lazy"),t.addEventListener("load",()=>{cmplz_remove_placeholder(t)}),t.setAttribute(c,e)}else t.classList.contains("cmplz-placeholder-element")&&(t.classList.add("cmplz-activated"),e=t.getAttribute("data-placeholder_class_index"),t.classList.remove("cmplz-blocked-content-container","cmplz-placeholder-"+e))}});t=document.querySelectorAll('script[data-category="'+o+'"], script[data-service="'+a+'"]');t.forEach(e=>{var t=e.getAttribute("data-waitfor"),c=e.getAttribute("data-cmplz-src");t&&(c?cmplz_waiting_scripts[t]=c:0<e.innerText.length&&(cmplz_waiting_inline_scripts[t]=e)),e.parentElement&&e.parentElement.removeChild(e)}),t.forEach(e=>{var t,c,n=e.getAttribute("type");!e.classList.contains("cmplz-activated")&&n&&"text/javascript"!==n&&(e.classList.add("cmplz-activated"),(n=e.getAttribute("data-cmplz-src"))?(e.removeAttribute("type"),cmplz_is_waiting_script(cmplz_waiting_scripts,n)||(e.getAttribute("data-post_scribe_id")?(t="#"+e.getAttribute("data-post_scribe_id"),(c=document.querySelector(t))&&(c.innerHtml(""),postscribe(t,"<script src="+n+"><\/script>"))):cmplz_run_script(n,o,a,"src",e))):0<e.innerText.length&&(cmplz_is_waiting_script(cmplz_waiting_inline_scripts,e.innerText)||cmplz_run_script(e.innerText,o,a,"inline",e)))}),cmplz_run_after_all_scripts(o,a)}}function cmplz_remove_placeholder(e){var t,c=e.closest(".cmplz-blocked-content-container");c&&(t=c.getAttribute("data-placeholder_class_index"),c.classList.remove("cmplz-blocked-content-container","cmplz-placeholder-"+t)),e.classList.remove("cmplz-iframe-styles","cmplz-iframe","video-wrap")}function cmplz_get_waiting_script(e,t){for(var c in e){var n;if(e.hasOwnProperty(c))if(-1!==t.indexOf(c))return n=e[c],delete e[c],n}return!1}function cmplz_array_is_empty(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function cmplz_is_waiting_script(t,c){for(var n in t)if(t.hasOwnProperty(n)){let e=t[n];if("string"!=typeof e&&(e=e.innerText),-1!==c.indexOf(e)||-1!==e.indexOf(c))return!0}return!1}function cmplz_run_after_all_scripts(e,t){var c="do_not_match"!==t&&!cmplz_in_array(t,cmplz_fired_service_events),n="do_not_match"!==e&&!cmplz_in_array(e,cmplz_fired_category_events);(n||c)&&(n&&cmplz_fired_category_events.push(e),c&&cmplz_fired_service_events.push(t),(n={}).category=e,n.service=t,n.categories=cmplz_accepted_categories(),n.services=cmplz_get_all_service_consents(),n.region=complianz.region,c=new CustomEvent("cmplz_enable_category",{detail:n}),document.dispatchEvent(c)),!cmplz_all_scripts_hook_fired&&cmplz_array_is_empty(cmplz_waiting_inline_scripts)&&cmplz_array_is_empty(cmplz_waiting_scripts)&&(n=new CustomEvent("cmplz_run_after_all_scripts",{detail:e,service:t}),document.dispatchEvent(n),cmplz_all_scripts_hook_fired=!0)}window.addEventListener("resize",function(e){clearTimeout(cmplzResizeTimer),cmplzResizeTimer=setTimeout(cmplz_set_blocked_content_container,500)},!0),1==complianz.block_ajax_content&&setInterval(function(){cmplz_set_blocked_content_container()},2e3);var cmplz_fired_events=[];function cmplz_run_tm_event(e){-1===cmplz_fired_events.indexOf(e)&&(cmplz_fired_events.push(e),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"cmplz_event_"+e}),e=new CustomEvent("cmplz_tag_manager_event",{detail:e}),document.dispatchEvent(e))}function cmplz_fire_before_categories_consent(e){var t={},e=(t.categories=e,t.region=complianz.region,new CustomEvent("cmplz_before_categories_consent",{detail:t}));document.dispatchEvent(e)}function cmplz_check_cookie_policy_id(){var e=cmplz_get_cookie("policy_id");e&&parseInt(complianz.current_policy_id)!==parseInt(e)&&(cmplz_deny_all(),cmplz_set_banner_status("show"),cmplz_clear_cookies("cmplz"))}function cmplz_do_not_track(){var e="doNotTrack"in navigator&&"1"===navigator.doNotTrack,t="globalPrivacyControl"in navigator&&navigator.globalPrivacyControl;return!(!complianz.do_not_track_enabled||!t&&!e)}function cmplz_get_services_on_page(){let c=[];return document.querySelectorAll("[data-service]").forEach(e=>{var t=e.getAttribute("data-service"),e=e.getAttribute("data-category");-1==c.indexOf(t)&&c.push({category:e,service:t})}),c}function cmplz_is_bot(){var e=new RegExp("(googlebot/|Googlebot-Mobile|Google-InspectionTool|Googlebot-Image|Google favicon|Mediapartners-Google|bingbot|slurp|java|wget|curl|Commons-HttpClient|Python-urllib|libwww|httpunit|nutch|phpcrawl|msnbot|jyxobot|FAST-WebCrawler|FAST Enterprise Crawler|biglotron|teoma|convera|seekbot|gigablast|exabot|ngbot|ia_archiver|GingerCrawler|webmon |httrack|webcrawler|grub.org|UsineNouvelleCrawler|antibot|netresearchserver|speedy|fluffy|bibnum.bnf|findlink|msrbot|panscient|yacybot|AISearchBot|IOI|ips-agent|tagoobot|MJ12bot|dotbot|woriobot|yanga|buzzbot|mlbot|yandexbot|purebot|Linguee Bot|Voyager|CyberPatrol|voilabot|baiduspider|citeseerxbot|spbot|twengabot|postrank|turnitinbot|scribdbot|page2rss|sitebot|linkdex|Adidxbot|blekkobot|ezooms|dotbot|Mail.RU_Bot|discobot|heritrix|findthatfile|europarchive.org|NerdByNature.Bot|sistrix crawler|ahrefsbot|Aboundex|domaincrawler|wbsearchbot|summify|ccbot|edisterbot|seznambot|ec2linkfinder|gslfbot|aihitbot|intelium_bot|facebookexternalhit|yeti|RetrevoPageAnalyzer|lb-spider|sogou|lssbot|careerbot|wotbox|wocbot|ichiro|DuckDuckBot|lssrocketcrawler|drupact|webcompanycrawler|acoonbot|openindexspider|gnam gnam spider|web-archive-net.com.bot|backlinkcrawler|coccoc|integromedb|content crawler spider|toplistbot|seokicks-robot|it2media-domain-crawler|ip-web-crawler.com|siteexplorer.info|elisabot|proximic|changedetection|blexbot|arabot|WeSEE:Search|niki-bot|CrystalSemanticsBot|rogerbot|360Spider|psbot|InterfaxScanBot|Lipperhey SEO Service|CC Metadata Scaper|g00g1e.net|GrapeshotCrawler|urlappendbot|brainobot|fr-crawler|binlar|SimpleCrawler|Livelapbot|Twitterbot|cXensebot|smtbot|bnf.fr_bot|A6-Indexer|ADmantX|Facebot|Twitterbot|OrangeBot|memorybot|AdvBot|MegaIndex|SemanticScholarBot|ltx71|nerdybot|xovibot|BUbiNG|Qwantify|archive.org_bot|Applebot|TweetmemeBot|crawler4j|findxbot|SemrushBot|yoozBot|lipperhey|y!j-asr|Domain Re-Animator Bot|AddThis)","i"),t=navigator.userAgent;return e.test(t)}function cmplz_is_speedbot(){var e=navigator.userAgent;return new RegExp("(GTmetrix|pingdom|pingbot|Lighthouse)","i").test(e)}function cmplz_exists_service_consent(){var e,t=cmplz_get_cookie("consented_services");try{for(const c in e=JSON.parse(t))if(e.hasOwnProperty(c)&&1==e[c])return!0}catch(e){}return!1}function cmplz_set_service_consent(e,t){var c=cmplz_get_cookie("consented_services");let n;try{n=JSON.parse(c)}catch(e){n={}}n[e]=t,cmplz_set_cookie("consented_services",JSON.stringify(n));c={},c.service=e,c.value=t,c.region=complianz.region,cmplz_all_scripts_hook_fired=!1,e=new CustomEvent("cmplz_status_change_service",{detail:c});document.dispatchEvent(e)}function cmplz_clear_all_service_consents(){cmplz_set_cookie("consented_services","")}function cmplz_get_all_service_consents(){var e=cmplz_get_cookie("consented_services");let t;try{t=JSON.parse(e)}catch(e){t={}}return t}function cmplz_get_cookie_path(){return void 0!==complianz.cookie_path&&""!==complianz.cookie_path?complianz.cookie_path:"/"}function cmplz_get_cookie_domain(){return 1==complianz.set_cookies_on_root&&3<complianz.cookie_domain.length&&!complianz.cookie_domain.includes("localhost")?complianz.cookie_domain:""}function cmplz_reload_browser_compatible(){var e;-1<navigator.userAgent.toLowerCase().indexOf("firefox")?((e=new URL(window.location.href)).searchParams.set("cmplz-force-reload",Date.now().toString()),window.location.href=e.toString()):window.location.reload()}window.cmplz_accept_all=function(){for(var e in cmplz_clear_all_service_consents(),cmplz_fire_before_categories_consent(cmplz_categories),cmplz_categories)cmplz_categories.hasOwnProperty(e)&&cmplz_set_consent(cmplz_categories[e],"allow");cmplz_sync_category_checkboxes()},window.cmplz_deny_all=function(){for(var e in cmplz_categories)cmplz_categories.hasOwnProperty(e)&&cmplz_set_consent(cmplz_categories[e],"deny");let t=!1;"functional"===cmplz_highest_accepted_category()&&!cmplz_exists_service_consent()||(t=!0),cmplz_clear_cookies("cmplz_service")&&(t=!0),cmplz_clear_all_service_consents(),cmplz_integrations_revoke(),cmplz_fire_categories_event(),cmplz_track_status();var c=new CustomEvent("cmplz_revoke",{detail:t});document.dispatchEvent(c),!complianz.tcf_active&&t&&cmplz_reload_browser_compatible()},window.conditionally_show_banner=function(){complianz=cmplz_merge_object(complianz,cmplz_user_data),cmplz_maybe_auto_redirect(),cmplz_set_blocked_content_container(),window.wp_consent_type=complianz.consenttype;var e,t,c,n=new CustomEvent("wp_consent_type_defined"),o=(document.dispatchEvent(n),n=new CustomEvent("cmplz_before_cookiebanner"),document.dispatchEvent(n),1==complianz.forceEnableStats&&"optin"===complianz.consenttype&&cmplz_set_consent("statistics","allow"),cmplz_categories.reverse()),a=[];for(e in o)o.hasOwnProperty(e)&&(t=cmplz_categories[e],cmplz_has_consent(t))&&a.push(t);for(c in cmplz_fire_before_categories_consent(a),a)o.hasOwnProperty(c)&&cmplz_enable_category(a[c]);if(cmplz_exists_service_consent()){cmplz_enable_category("","general");var i,l,r,s=cmplz_get_services_on_page();for(i in s)s.hasOwnProperty(i)&&(l=s[i].service,r=s[i].category,cmplz_has_service_consent(l,r))&&(document.querySelectorAll('.cmplz-accept-service[data-service="'+l+'"]').forEach(e=>{e.checked=!0}),cmplz_enable_category("",l))}cmplz_sync_category_checkboxes(),cmplz_integrations_init(),cmplz_check_cookie_policy_id(),cmplz_set_up_auto_dismiss(),cmplz_load_manage_consent_container(),n=new CustomEvent("cmplz_cookie_banner_data",{detail:complianz}),document.dispatchEvent(n),""===cmplz_get_cookie("saved_categories")&&("optin"!==complianz.consenttype&&"optout"!==complianz.consenttype?cmplz_track_status("no_warning"):cmplz_do_not_track()&&cmplz_track_status("do_not_track")),cmplz_set_category_as_body_class(),cmplz_fire_categories_event(),cmplz_do_not_track()?(console.log("global privacy control or do not track detected: no banner."),cmplz_track_status("do_not_track")):("optin"===complianz.consenttype?(complianz.forceEnableStats&&cmplz_enable_category("statistics"),console.log("opt-in"),show_cookie_banner):"optout"===complianz.consenttype?(console.log("opt-out"),show_cookie_banner):(console.log("other consent type, no cookie warning"),cmplz_accept_all))()},window.show_cookie_banner=function(){let e=complianz.disable_cookiebanner||cmplz_is_speedbot(),t=!1;(document.querySelector("#cmplz-manage-consent-container")||document.querySelector(".cmplz-dropdown-cookiepolicy"))&&(t=!0);var c=document.getElementById("cmplz-cookiebanner-container"),c=(c&&document.body.prepend(c),document.createElement("link"));let n=complianz.page_links[complianz.region];(cmplz_banner=document.querySelector(".cmplz-cookiebanner.banner-"+complianz.user_banner_id+"."+complianz.consenttype))||(e=!0),cmplz_manage_consent_button=document.querySelector("#cmplz-manage-consent .cmplz-manage-consent.manage-consent-"+complianz.user_banner_id);var o=complianz.css_file.replace("{type}",complianz.consenttype).replace("{banner_id}",complianz.user_banner_id),o=(-1!==complianz.css_file.indexOf("cookiebanner/css/defaults/banner")&&console.log("Fallback default css file used. Please re-save banner settings, or check file writing permissions in uploads directory"),c.href=o,c.type="text/css",c.rel="stylesheet",c.onload=function(){e||(cmplz_banner.classList.remove("cmplz-hidden"),cmplz_manage_consent_button.classList.remove("cmplz-hidden"))},document.getElementsByTagName("head")[0].appendChild(c),cmplz_banner&&!e&&(cmplz_banner.querySelectorAll(".cmplz-links a:not(.cmplz-external), .cmplz-buttons a:not(.cmplz-external)").forEach(e=>{var t,c=e;for(t in c.classList.add("cmplz-hidden"),n)n.hasOwnProperty(t)&&c.classList.contains(t)&&(c.setAttribute("href",n[t].url+c.getAttribute("data-relative_url")),"{title}"===c.innerText&&(c.innerText=cmplz_html_decode(n[t].title)),c.classList.remove("cmplz-hidden"))}),cmplz_set_banner_status(),t)&&(cmplz_banner.classList.remove("cmplz-show"),cmplz_banner.classList.add("cmplz-dismissed"),cmplz_manage_consent_button.classList.remove("cmplz-dismissed"),cmplz_manage_consent_button.classList.add("cmplz-show")),new CustomEvent("cmplz_cookie_warning_loaded",{detail:complianz.region}));document.dispatchEvent(o)},window.cmplz_get_banner_status=function(){return cmplz_get_cookie("banner-status")},window.cmplz_set_banner_status=function(e){let t=cmplz_get_cookie("banner-status");(e=void 0!==e?e:t)!==t&&cmplz_set_cookie("banner-status",e),0===e.length&&(e="show"),t="show"===e?"dismissed":"show",cmplz_banner&&0<e.length&&(cmplz_banner.classList.remove("cmplz-"+t),cmplz_banner.classList.add("cmplz-"+e),cmplz_manage_consent_button)&&(cmplz_manage_consent_button.classList.add("cmplz-"+t),cmplz_manage_consent_button.classList.remove("cmplz-"+e)),cmplz_banner_container&&complianz.soft_cookiewall&&(cmplz_banner_container.classList.remove("cmplz-"+t),cmplz_banner_container.classList.add("cmplz-"+e,"cmplz-soft-cookiewall"));e=new CustomEvent("cmplz_banner_status",{detail:e});document.dispatchEvent(e),cmplz_start_clean()},window.cmplz_has_consent=function(e){if(cmplz_is_bot())return!0;if("functional"===e)return!0;let t,c;return t=cmplz_do_not_track()?(c=cmplz_get_cookie(e),"allow"===c):(c=cmplz_get_cookie(e),("optout"===complianz.consenttype||"other"===complianz.consenttype)&&""===c||"allow"===c)},window.cmplz_is_service_denied=function(e){var t=cmplz_get_cookie("consented_services");let c;try{c=JSON.parse(t)}catch(e){c={}}return!!c.hasOwnProperty(e)&&!c[e]},window.cmplz_has_service_consent=function(e,t){var c=cmplz_get_cookie("consented_services");let n;try{n=JSON.parse(c)}catch(e){n={}}return n.hasOwnProperty(e)?n[e]:cmplz_has_consent(t)},window.cmplz_set_consent=function(e,t){cmplz_set_accepted_cookie_policy_id(),t="functional"===e?"allow":t;var c,n=cmplz_get_cookie(e);let o="allow"===t;document.querySelectorAll("input.cmplz-"+e).forEach(e=>{e.checked=o}),n!==t&&(cmplz_set_cookie(e,t),"allow"===t&&cmplz_enable_category(e),cmplz_wp_set_consent(e,t),"statistics"===e&&cmplz_wp_set_consent("statistics-anonymous","allow"),(c=new Object).category=e,c.value=t,c.region=complianz.region,c.categories=cmplz_accepted_categories(),cmplz_all_scripts_hook_fired=!1,c=new CustomEvent("cmplz_status_change",{detail:c}),document.dispatchEvent(c),"marketing"===e)&&"deny"===t&&"allow"===n&&(cmplz_integrations_revoke(),setTimeout(function(){cmplz_reload_browser_compatible()},500))};var cmplz_id_cookie,cmplz_id_session,cmplz_id,cmplz_user_data=[];if("undefined"!=typeof Storage&&sessionStorage.cmplz_user_data&&(cmplz_user_data=JSON.parse(sessionStorage.cmplz_user_data)),1!=complianz.geoip||0!=cmplz_user_data.length&&cmplz_user_data.version===complianz.version&&cmplz_user_data.banner_version===complianz.banner_version)conditionally_show_banner();else{let e=new XMLHttpRequest,t=cmplz_get_url_parameter(window.location.href,"cmplz_user_region");t=t?"&cmplz_user_region="+t:"",e.open("GET",complianz.url+"banner?"+complianz.locale+t,!0),e.setRequestHeader("Content-type","application/json"),e.send(),e.onload=function(){cmplz_user_data=JSON.parse(e.response),sessionStorage.cmplz_user_data=JSON.stringify(cmplz_user_data),conditionally_show_banner()}}function cmplz_track_status_end(){cmplz_consent_stored_once||cmplz_track_status()}function cmplz_set_up_auto_dismiss(){if("optout"===complianz.consenttype){if(1==complianz.dismiss_on_scroll){let t=function(e){window.pageYOffset>Math.floor(400)&&(cmplz_set_banner_status("dismissed"),cmplz_fire_categories_event(),cmplz_track_status(),window.removeEventListener("scroll",t),this.onWindowScroll=null)};window.addEventListener("scroll",t)}var e=parseInt(complianz.dismiss_timeout);0<e&&window.setTimeout(function(){cmplz_set_banner_status("dismissed"),cmplz_fire_categories_event(),cmplz_track_status()},Math.floor(e))}}function cmplz_fire_categories_event(){var e=new Object,e=(e.category=cmplz_highest_accepted_category(),e.categories=cmplz_accepted_categories(),e.region=complianz.region,new CustomEvent("cmplz_fire_categories",{detail:e}));document.dispatchEvent(e)}function cmplz_track_status(e){let t=[];e=void 0!==e&&e;var c=new CustomEvent("cmplz_track_status",{detail:e});document.dispatchEvent(c),t=e?[e]:cmplz_accepted_categories(),cmplz_set_category_as_body_class();let n,o;try{n=JSON.parse(cmplz_get_cookie("saved_categories"))}catch(e){n={}}try{o=JSON.parse(cmplz_get_cookie("saved_services"))}catch(e){o={}}var c=cmplz_get_all_service_consents();cmplz_equals(n,t)&&cmplz_equals(o,c)||1!=complianz.store_consent||cmplz_is_bot()||cmplz_is_speedbot()||(cmplz_set_cookie("saved_categories",JSON.stringify(t)),cmplz_set_cookie("saved_services",JSON.stringify(c)),cmplz_consent_stored_once=!0,(e=new XMLHttpRequest).open("POST",complianz.url+"track",!0),c={consented_categories:t,consented_services:c,consenttype:window.wp_consent_type},e.setRequestHeader("Content-type","application/json"),e.send(JSON.stringify(c)))}function cmplz_accepted_categories(){let e=cmplz_categories,n=[];for(var t in e)e.hasOwnProperty(t)&&(t=e[t],cmplz_has_consent(t))&&n.push(t);return e=e.filter(function(e,t,c){return cmplz_in_array(e,n)})}function cmplz_sync_category_checkboxes(){for(var e in cmplz_categories)cmplz_categories.hasOwnProperty(e)&&(e=cmplz_categories[e],cmplz_has_consent(e)||"functional"===e?document.querySelectorAll("input.cmplz-"+e).forEach(e=>{e.checked=!0}):document.querySelectorAll("input.cmplz-"+e).forEach(e=>{e.checked=!1})),document.querySelectorAll(".cmplz-accept-service").forEach(e=>{var t=e.getAttribute("data-service"),c=e.getAttribute("data-category");cmplz_has_service_consent(t,c)?e.checked=!0:cmplz_is_service_denied(t)?e.checked=!1:(c=e.getAttribute("data-category"),e.checked=!!cmplz_has_consent(c))})}function cmplz_merge_object(e,t){var c,n,o={};for(c in t)t.hasOwnProperty(c)&&(o[c]=t[c]);for(n in e)t.hasOwnProperty(n)&&void 0!==t[n]||e.hasOwnProperty(n)&&(o[n]=e[n]);return o}function cmplz_clear_cookies(t){if("undefined"==typeof document)return!1;let a=!1,i="https:"===window.location.protocol?";secure":"",l="expires="+(new Date).toGMTString(),r=location.pathname.replace(/^\/|\/$/g,"").split("/");return document.cookie.split("; ").forEach(function(e){let n=e.split(";")[0].split("=")[0];if(-1!==n.indexOf(t)){a=!0;let c=window.location.hostname.split(".");var o=1<c.length;for(r.forEach(function(e){e="/"+e;document.cookie=encodeURIComponent(n)+"=;SameSite=Lax"+i+";"+l+";domain=."+c.join(".")+";path="+e,document.cookie=encodeURIComponent(n)+"=;SameSite=Lax"+i+";"+l+";domain=."+c.join(".")+";path="+e+"/"});0<c.length;){let t="."+c.join(".");c.shift(),o&&1===c.length&&c.shift(),r.forEach(function(e){e="/"+e;document.cookie=encodeURIComponent(n)+"=;SameSite=Lax"+i+";"+l+";domain="+t+";path="+e,document.cookie=encodeURIComponent(n)+"=;SameSite=Lax"+i+";"+l+";domain="+t+";path="+e+"/"})}}}),cmplz_set_accepted_cookie_policy_id(),a}function cmplz_set_accepted_cookie_policy_id(){cmplz_set_cookie("policy_id",complianz.current_policy_id)}function cmplz_integrations_init(){var e,t=complianz.set_cookies;for(e in t)t.hasOwnProperty(e)&&"1"===t[e][1]&&cmplz_set_cookie(e,t[e][1],!1)}function cmplz_integrations_revoke(){var e,t=complianz.set_cookies;for(e in t)t.hasOwnProperty(e)&&(cmplz_set_cookie(e,t[e][1],!1),0==t[e][1])&&cmplz_clear_cookies(e)}function cmplz_set_integrations_cookies(){var e,t=complianz.set_cookies;for(e in t)t.hasOwnProperty(e)&&cmplz_set_cookie(e,t[e][0],!1)}function cmplz_get_url_parameter(e,t){if(e&&void 0!==e&&-1!==e.indexOf("?")){e=e.split("?")[1];if(e){var c=e.split("&");for(let e=0;e<c.length;e++){var n=c[e].split("=");if(n[0]===t)return void 0===n[1]||decodeURIComponent(n[1])}}}return!1}function cmplz_maybe_auto_redirect(){var e=cmplz_get_url_parameter(window.location.href,"cmplz_region_redirect"),t=cmplz_get_url_parameter(window.location.href,"cmplz-region");e&&!t&&(e=window.location.href.split("#")[0]+"&cmplz-region="+complianz.region,t=window.location.hash,window.location.href=e+t)}function cmplz_wp_set_consent(e,t){"function"==typeof wp_set_consent&&wp_set_consent(e,t)}1==complianz.store_consent&&(cmplz_id_cookie=cmplz_get_cookie("id"),cmplz_id=cmplz_id_session="","undefined"!=typeof Storage&&sessionStorage.cmplz_id&&(cmplz_id_session=JSON.parse(sessionStorage.cmplz_id)),0==cmplz_id_cookie.length&&0<cmplz_id_session.length&&(cmplz_id=cmplz_id_session,cmplz_set_cookie("id",cmplz_id)),0<cmplz_id_cookie.length&&0==cmplz_id_session.length&&(cmplz_id=cmplz_id_cookie),"undefined"!=typeof Storage)&&(sessionStorage.cmplz_id=JSON.stringify(cmplz_id)),document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&cmplz_track_status_end()}),window.addEventListener("pagehide",cmplz_track_status_end,!1),window.addEventListener("beforeunload",cmplz_track_status_end,!1),document.addEventListener("cmplz_consent_action",function(e){cmplz_set_consent(e.detail.category,"allow"),cmplz_fire_categories_event(),cmplz_track_status()}),cmplz_add_event("click",".cmplz-accept",function(e){e.preventDefault(),setTimeout(()=>{cmplz_accept_all(),cmplz_set_banner_status("dismissed"),cmplz_fire_categories_event(),cmplz_track_status()},0)}),cmplz_add_event("click",".cmplz-accept-category, .cmplz-accept-marketing",function(e){e.preventDefault();var e=e.target,t=e.getAttribute("data-service"),e=e.getAttribute("data-category")||"marketing";1==complianz.clean_cookies&&void 0!==t&&t?(cmplz_set_service_consent(t,!0),cmplz_enable_category("","general"),cmplz_enable_category("",t)):cmplz_set_consent(e,"allow"),cmplz_set_banner_status("dismissed"),cmplz_fire_categories_event(),cmplz_track_status()}),cmplz_add_event("click",".cmplz-accept-service",function(e){var e=e.target;"INPUT"!==e.tagName&&(void 0!==(e=e.getAttribute("data-service"))&&(cmplz_set_service_consent(e,!0),cmplz_enable_category("","general"),cmplz_enable_category("",e)),cmplz_fire_categories_event(),cmplz_track_status())}),cmplz_add_event("change",".cmplz-accept-service",function(e){var t=e.target,c=t.tagName,n=t.getAttribute("data-service");void 0!==n&&("INPUT"===c?(cmplz_set_banner_status("dismissed"),t.checked?(cmplz_set_service_consent(n,!0),cmplz_enable_category("",n)):(cmplz_set_service_consent(n,!1),setTimeout(function(){cmplz_reload_browser_compatible()},500))):(e.preventDefault(),cmplz_set_service_consent(n,!0),cmplz_enable_category("","general"),cmplz_enable_category("",n),setTimeout(function(){cmplz_reload_browser_compatible()},500))),cmplz_fire_categories_event(),cmplz_track_status()}),cmplz_add_event("click",".cmplz-save-preferences",function(e){var t,c,n,o,a,e=e.target,i=(cmplz_banner=e.closest(".cmplz-cookiebanner"),[]);for(t in cmplz_categories)cmplz_categories.hasOwnProperty(t)&&(c=cmplz_categories[t],n=cmplz_banner.querySelector("input.cmplz-"+c))&&n.checked&&i.push(c);for(o in cmplz_fire_before_categories_consent(i),cmplz_categories)cmplz_categories.hasOwnProperty(o)&&(a=cmplz_categories[o],i.includes(a)?cmplz_set_consent(a,"allow"):cmplz_set_consent(a,"deny"));cmplz_set_banner_status("dismissed"),cmplz_fire_categories_event(),cmplz_track_status()}),cmplz_add_event("click",".cmplz-close",function(e){cmplz_set_banner_status("dismissed")}),cmplz_add_event("click",".cmplz-view-preferences",function(e){e=e.target;(cmplz_banner=e.closest(".cmplz-cookiebanner")).querySelector(".cmplz-categories").classList.contains("cmplz-fade-in")?(cmplz_banner.classList.remove("cmplz-categories-visible"),cmplz_banner.querySelector(".cmplz-categories").classList.remove("cmplz-fade-in"),cmplz_banner.querySelector(".cmplz-view-preferences").style.display="block",cmplz_banner.querySelector(".cmplz-save-preferences").style.display="none"):(cmplz_banner.classList.add("cmplz-categories-visible"),cmplz_banner.querySelector(".cmplz-categories").classList.add("cmplz-fade-in"),cmplz_banner.querySelector(".cmplz-view-preferences").style.display="none",cmplz_banner.querySelector(".cmplz-save-preferences").style.display="block")}),cmplz_add_event("change",".cmplz-manage-consent-container .cmplz-category",function(e){for(var t in cmplz_categories){var c;cmplz_categories.hasOwnProperty(t)&&(t=cmplz_categories[t],c=document.querySelector(".cmplz-manage-consent-container input.cmplz-"+t))&&(c.checked?cmplz_set_consent(t,"allow"):cmplz_set_consent(t,"deny"),cmplz_set_banner_status("dismissed"),cmplz_fire_categories_event(),cmplz_track_status())}}),cmplz_add_event("click",".cmplz-deny",function(e){e.preventDefault(),cmplz_set_banner_status("dismissed"),cmplz_deny_all()}),cmplz_add_event("click","button.cmplz-manage-settings",function(e){e.preventDefault();var e=document.querySelector(".cmplz-cookiebanner .cmplz-categories"),t=document.querySelector(".cmplz-save-settings"),c=document.querySelector("button.cmplz-manage-settings");cmplz_is_hidden(e)?(t.style.display="block",c.style.display="none",e.style.display="block"):(t.style.display="none",c.style.display="block",e.style.display="none")}),cmplz_add_event("click","button.cmplz-manage-consent",function(e){e.preventDefault(),cmplz_set_banner_status("show")});var cmplzCleanCookieInterval,cmplz_cookie_data=[];function cmplz_start_clean(){if(1==complianz.clean_cookies)if((cmplz_cookie_data="undefined"!=typeof Storage?JSON.parse(sessionStorage.getItem("cmplz_cookie_data")):cmplz_cookie_data)&&0!==cmplz_cookie_data.length)cmplz_setup_clean_interval();else{let e=new XMLHttpRequest;e.open("GET",complianz.url+"cookie_data",!0),e.setRequestHeader("Content-type","application/json"),e.send(),e.onload=function(){cmplz_cookie_data=JSON.parse(e.response),sessionStorage.setItem("cmplz_cookie_data",JSON.stringify(cmplz_cookie_data)),cmplz_setup_clean_interval()}}}function cmplz_do_cleanup(){for(const t of["preferences","statistics","marketing"])if(!cmplz_has_consent(t)&&cmplz_cookie_data.hasOwnProperty(t)){var e=cmplz_cookie_data[t];for(const c in e)if(!cmplz_has_service_consent(c,t))for(const n of e[c])cmplz_clear_cookies(n),cmplz_clear_storage(n)}}function cmplz_setup_clean_interval(){!cmplz_cookie_data||cmplzCleanCookieInterval||(cmplz_do_cleanup(),cmplzCleanCookieInterval=setInterval(cmplz_do_cleanup,1e3))}function cmplz_clear_storage(e){"undefined"!=typeof Storage&&(localStorage.getItem(e)&&localStorage.removeItem(e),sessionStorage.getItem(e))&&sessionStorage.removeItem(e)}function cmplz_load_manage_consent_container(){let c=document.querySelector(".cmplz-manage-consent-container");if(c){let t=new XMLHttpRequest;t.open("GET",complianz.url+"manage_consent_html?"+complianz.locale,!0),t.setRequestHeader("Content-type","application/json"),t.send(),t.onload=function(){var e=JSON.parse(t.response);c.insertAdjacentHTML("beforeend",e),cmplz_sync_category_checkboxes();document.querySelector("#cmplz-manage-consent-container-nojavascript").style.display="none",c.style.display="block";e=new CustomEvent("cmplz_manage_consent_container_loaded");document.dispatchEvent(e)}}}function cmplz_equals(c,n){if(Array.isArray(c)||(c=Object.keys(c),n=Object.keys(n)),!c||!n)return!1;if(c.length!==n.length)return!1;for(let e=0,t=c.length;e<t;e++)if(c[e]instanceof Array&&n[e]instanceof Array){if(!cmplz_equals(c[e],n[e]))return!1}else if(c[e]!==n[e])return!1;return!0}function cmplzCopyAttributes(e,t){const c=["type","data-service","data-category","async"];Array.from(e.attributes).forEach(e=>{"data-script-type"===e.nodeName&&"module"===e.nodeValue?(t.setAttribute("type","module"),t.removeAttribute("data-script-type")):c.includes(e.nodeName)||t.setAttribute(e.nodeName,e.nodeValue)})}cmplz_add_event("keypress",".cmplz-banner-slider label",function(e){32==(e.keyCode||e.which)&&document.activeElement.click()}),cmplz_add_event("keypress",".cmplz-cookiebanner .cmplz-header .cmplz-close",function(e){13==(e.keyCode||e.which)&&document.activeElement.click()});var cmplz_has_wp_video=document.querySelector(".cmplz-wp-video-shortcode"),cmplz_times_checked=0;void 0!==window.jQuery&&jQuery(document).ready(function(r){if(cmplz_has_wp_video){document.addEventListener("cmplz_enable_category",function(e){t()});let e=setInterval(function(){cmplz_times_checked+=1,document.querySelector(".cmplz-wp-video-shortcode")&&cmplz_times_checked<100?t():clearInterval(e)},500)}function t(){if(document.querySelector(".cmplz-wp-video-shortcode")){var e,t,n,o=cmplz_accepted_categories(),a=cmplz_get_all_service_consents(),i=[];for(e in o)if(o.hasOwnProperty(e)){var l=o[e];if("functional"===l)break;i.push('.cmplz-wp-video-shortcode[data-category="'+l+'"]')}for(t in a)a.hasOwnProperty(t)&&i.push('.cmplz-wp-video-shortcode[data-service="'+t+'"]');n=i.join(",");let c=!1;0<n.length&&document.querySelectorAll(n).forEach(e=>{c=!0,e.setAttribute("controls","controls"),e.classList.add("wp-video-shortcode","cmplz-processed"),e.classList.remove("cmplz-wp-video-shortcode"),e.closest(".cmplz-wp-video").classList.remove("cmplz-wp-video");var t=e.closest(".wp-video").querySelector(".cmplz-blocked-content-notice");t&&t.parentElement.removeChild(t),e.classList.remove("cmplz-blocked-content-container")}),c&&(window.wp.mediaelement?window.wp.mediaelement.initialize():(n={videoWidth:"100%",videoHeight:"100%",enableAutosize:!0},r(".wp-video-shortcode").mediaelementplayer(n)))}}function c(e){e=r(e);"function"==typeof e.parent().fitVids&&e.parent().fitVids()}document.querySelectorAll(".cmplz-video.cmplz-activated").forEach(e=>{c(e)}),document.addEventListener("cmplz_enable_category",function(e){document.querySelectorAll(".cmplz-video.cmplz-activated").forEach(e=>{c(e)})})});


wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'ltr' ] } );

/**
 * This JS file was auto-generated via Terser.
 *
 * Contributors should avoid editing this file, but instead edit the associated
 * non minified file file. For more information, check out our engineering docs
 * on how we handle JS minification in our engineering docs.
 *
 * @see: https://evnt.is/dev-docs-minification
 */

String.prototype.className=function(){return"string"!=typeof this&&!this instanceof String||"function"!=typeof this.replace?this:this.replace(".","")},String.prototype.varName=function(){return"string"!=typeof this&&!this instanceof String||"function"!=typeof this.replace?this:this.replace("-","_")},function(){const hash=new URL(window.location.href).hash;if(!hash||!hash.match("#(tribe|tec)"))return;let updatesDidOccurr=!0;const mutationObserver=new MutationObserver((function(){updatesDidOccurr=!0}));mutationObserver.observe(window.document,{attributes:!0,childList:!0,characterData:!0,subtree:!0});let mutationCallback=function(){if(updatesDidOccurr)updatesDidOccurr=!1,setTimeout(mutationCallback,250);else{mutationObserver.takeRecords(),mutationObserver.disconnect();const scrollTo=document.getElementById(hash.substring(1));scrollTo&&scrollTo.scrollIntoView()}};mutationCallback()}();var tribe=tribe||{};window.tec=window.tec||{};


wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'ltr' ] } );

/**
 * This JS file was auto-generated via Terser.
 *
 * Contributors should avoid editing this file, but instead edit the associated
 * non minified file file. For more information, check out our engineering docs
 * on how we handle JS minification in our engineering docs.
 *
 * @see: https://evnt.is/dev-docs-minification
 */

!function(f){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=f();else if("function"==typeof define&&define.amd)define([],f);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Qs=f()}}((function(){return function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,(function(r){return o(e[i][1][r]||r)}),p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}({1:[function(require,module,exports){"use strict";var replace=String.prototype.replace,percentTwenties=/%20/g,Format_RFC1738="RFC1738",Format_RFC3986="RFC3986";module.exports={default:Format_RFC3986,formatters:{RFC1738:function(e){return replace.call(e,percentTwenties,"+")},RFC3986:function(e){return String(e)}},RFC1738:Format_RFC1738,RFC3986:Format_RFC3986}},{}],2:[function(require,module,exports){"use strict";var stringify=require(4),parse=require(3),formats=require(1);module.exports={formats:formats,parse:parse,stringify:stringify}},{1:1,3:3,4:4}],3:[function(require,module,exports){"use strict";var utils=require(5),has=Object.prototype.hasOwnProperty,isArray=Array.isArray,defaults={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:utils.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},interpretNumericEntities=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},parseArrayValue=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},parseKeys=function parseQueryStringKeys(e,t,r,a){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,l=r.depth>0&&/(\[[^[\]]*])/.exec(o),s=l?o.slice(0,l.index):o,n=[];if(s){if(!r.plainObjects&&has.call(Object.prototype,s)&&!r.allowPrototypes)return;n.push(s)}for(var p=0;r.depth>0&&null!==(l=i.exec(o))&&p<r.depth;){if(p+=1,!r.plainObjects&&has.call(Object.prototype,l[1].slice(1,-1))&&!r.allowPrototypes)return;n.push(l[1])}return l&&n.push("["+o.slice(l.index)+"]"),function(e,t,r,a){for(var o=a?t:parseArrayValue(t,r),i=e.length-1;i>=0;--i){var l,s=e[i];if("[]"===s&&r.parseArrays)l=r.allowEmptyArrays&&""===o?[]:[].concat(o);else{l=r.plainObjects?Object.create(null):{};var n="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,p=r.decodeDotInKeys?n.replace(/%2E/g,"."):n,c=parseInt(p,10);r.parseArrays||""!==p?!isNaN(c)&&s!==p&&String(c)===p&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(l=[])[c]=o:"__proto__"!==p&&(l[p]=o):l={0:o}}o=l}return o}(n,t,r,a)}};module.exports=function(e,t){var r=function normalizeParseOptions(e){if(!e)return defaults;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?defaults.charset:e.charset,r=void 0===e.duplicates?defaults.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||defaults.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:defaults.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:defaults.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:defaults.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:defaults.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:defaults.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:defaults.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:defaults.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:defaults.decoder,delimiter:"string"==typeof e.delimiter||utils.isRegExp(e.delimiter)?e.delimiter:defaults.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:defaults.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:defaults.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:defaults.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:defaults.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:defaults.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var a="string"==typeof e?function parseQueryStringValues(e,t){var r,a={__proto__:null},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,l=o.split(t.delimiter,i),s=-1,n=t.charset;if(t.charsetSentinel)for(r=0;r<l.length;++r)0===l[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===l[r]?n="utf-8":"utf8=%26%2310003%3B"===l[r]&&(n="iso-8859-1"),s=r,r=l.length);for(r=0;r<l.length;++r)if(r!==s){var p,c,d=l[r],u=d.indexOf("]="),y=-1===u?d.indexOf("="):u+1;-1===y?(p=t.decoder(d,defaults.decoder,n,"key"),c=t.strictNullHandling?null:""):(p=t.decoder(d.slice(0,y),defaults.decoder,n,"key"),c=utils.maybeMap(parseArrayValue(d.slice(y+1),t),(function(e){return t.decoder(e,defaults.decoder,n,"value")}))),c&&t.interpretNumericEntities&&"iso-8859-1"===n&&(c=interpretNumericEntities(c)),d.indexOf("[]=")>-1&&(c=isArray(c)?[c]:c);var f=has.call(a,p);f&&"combine"===t.duplicates?a[p]=utils.combine(a[p],c):f&&"last"!==t.duplicates||(a[p]=c)}return a}(e,r):e,o=r.plainObjects?Object.create(null):{},i=Object.keys(a),l=0;l<i.length;++l){var s=i[l],n=parseKeys(s,a[s],r,"string"==typeof e);o=utils.merge(o,n,r)}return!0===r.allowSparse?o:utils.compact(o)}},{5:5}],4:[function(require,module,exports){"use strict";var getSideChannel=require(29),utils=require(5),formats=require(1),has=Object.prototype.hasOwnProperty,arrayPrefixGenerators={brackets:function brackets(e){return e+"[]"},comma:"comma",indices:function indices(e,r){return e+"["+r+"]"},repeat:function repeat(e){return e}},isArray=Array.isArray,push=Array.prototype.push,pushToArray=function(e,r){push.apply(e,isArray(r)?r:[r])},toISO=Date.prototype.toISOString,defaultFormat=formats.default,defaults={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:utils.encode,encodeValuesOnly:!1,format:defaultFormat,formatter:formats.formatters[defaultFormat],indices:!1,serializeDate:function serializeDate(e){return toISO.call(e)},skipNulls:!1,strictNullHandling:!1},sentinel={},stringify=function stringify(e,r,t,o,a,n,i,l,s,f,u,d,y,c,p,m,h,v){for(var w=e,b=v,g=0,A=!1;void 0!==(b=b.get(sentinel))&&!A;){var D=b.get(e);if(g+=1,void 0!==D){if(D===g)throw new RangeError("Cyclic object value");A=!0}void 0===b.get(sentinel)&&(g=0)}if("function"==typeof f?w=f(r,w):w instanceof Date?w=y(w):"comma"===t&&isArray(w)&&(w=utils.maybeMap(w,(function(e){return e instanceof Date?y(e):e}))),null===w){if(n)return s&&!m?s(r,defaults.encoder,h,"key",c):r;w=""}if(function isNonNullishPrimitive(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||"symbol"==typeof e||"bigint"==typeof e}(w)||utils.isBuffer(w))return s?[p(m?r:s(r,defaults.encoder,h,"key",c))+"="+p(s(w,defaults.encoder,h,"value",c))]:[p(r)+"="+p(String(w))];var E,N=[];if(void 0===w)return N;if("comma"===t&&isArray(w))m&&s&&(w=utils.maybeMap(w,s)),E=[{value:w.length>0?w.join(",")||null:void 0}];else if(isArray(f))E=f;else{var S=Object.keys(w);E=u?S.sort(u):S}var O=l?r.replace(/\./g,"%2E"):r,T=o&&isArray(w)&&1===w.length?O+"[]":O;if(a&&isArray(w)&&0===w.length)return T+"[]";for(var k=0;k<E.length;++k){var I=E[k],P="object"==typeof I&&void 0!==I.value?I.value:w[I];if(!i||null!==P){var x=d&&l?I.replace(/\./g,"%2E"):I,z=isArray(w)?"function"==typeof t?t(T,x):T:T+(d?"."+x:"["+x+"]");v.set(e,g);var K=getSideChannel();K.set(sentinel,v),pushToArray(N,stringify(P,z,t,o,a,n,i,l,"comma"===t&&m&&isArray(w)?null:s,f,u,d,y,c,p,m,h,K))}}return N};module.exports=function(e,r){var t,o=e,a=function normalizeStringifyOptions(e){if(!e)return defaults;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var r=e.charset||defaults.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=formats.default;if(void 0!==e.format){if(!has.call(formats.formatters,e.format))throw new TypeError("Unknown format option provided.");t=e.format}var o,a=formats.formatters[t],n=defaults.filter;if(("function"==typeof e.filter||isArray(e.filter))&&(n=e.filter),o=e.arrayFormat in arrayPrefixGenerators?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":defaults.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var i=void 0===e.allowDots?!0===e.encodeDotInKeys||defaults.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:defaults.addQueryPrefix,allowDots:i,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:defaults.allowEmptyArrays,arrayFormat:o,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:defaults.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?defaults.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:defaults.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:defaults.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:defaults.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:defaults.encodeValuesOnly,filter:n,format:t,formatter:a,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:defaults.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:defaults.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:defaults.strictNullHandling}}(r);"function"==typeof a.filter?o=(0,a.filter)("",o):isArray(a.filter)&&(t=a.filter);var n=[];if("object"!=typeof o||null===o)return"";var i=arrayPrefixGenerators[a.arrayFormat],l="comma"===i&&a.commaRoundTrip;t||(t=Object.keys(o)),a.sort&&t.sort(a.sort);for(var s=getSideChannel(),f=0;f<t.length;++f){var u=t[f];a.skipNulls&&null===o[u]||pushToArray(n,stringify(o[u],u,i,l,a.allowEmptyArrays,a.strictNullHandling,a.skipNulls,a.encodeDotInKeys,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,s))}var d=n.join(a.delimiter),y=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),d.length>0?y+d:""}},{1:1,29:29,5:5}],5:[function(require,module,exports){"use strict";var formats=require(1),has=Object.prototype.hasOwnProperty,isArray=Array.isArray,hexTable=function(){for(var e=[],r=0;r<256;++r)e.push("%"+((r<16?"0":"")+r.toString(16)).toUpperCase());return e}();module.exports={combine:function combine(e,r){return[].concat(e,r)},compact:function compact(e){for(var r=[{obj:{o:e},prop:"o"}],t=[],o=0;o<r.length;++o)for(var n=r[o],a=n.obj[n.prop],c=Object.keys(a),i=0;i<c.length;++i){var u=c[i],p=a[u];"object"==typeof p&&null!==p&&-1===t.indexOf(p)&&(r.push({obj:a,prop:u}),t.push(p))}return function compactQueue(e){for(;e.length>1;){var r=e.pop(),t=r.obj[r.prop];if(isArray(t)){for(var o=[],n=0;n<t.length;++n)void 0!==t[n]&&o.push(t[n]);r.obj[r.prop]=o}}}(r),e},decode:function(e,r,t){var o=e.replace(/\+/g," ");if("iso-8859-1"===t)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(e){return o}},encode:function encode(e,r,t,o,n){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===t)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",i=0;i<a.length;i+=1024){for(var u=a.length>=1024?a.slice(i,i+1024):a,p=[],s=0;s<u.length;++s){var f=u.charCodeAt(s);45===f||46===f||95===f||126===f||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||n===formats.RFC1738&&(40===f||41===f)?p[p.length]=u.charAt(s):f<128?p[p.length]=hexTable[f]:f<2048?p[p.length]=hexTable[192|f>>6]+hexTable[128|63&f]:f<55296||f>=57344?p[p.length]=hexTable[224|f>>12]+hexTable[128|f>>6&63]+hexTable[128|63&f]:(s+=1,f=65536+((1023&f)<<10|1023&u.charCodeAt(s)),p[p.length]=hexTable[240|f>>18]+hexTable[128|f>>12&63]+hexTable[128|f>>6&63]+hexTable[128|63&f])}c+=p.join("")}return c},isBuffer:function isBuffer(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function isRegExp(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function maybeMap(e,r){if(isArray(e)){for(var t=[],o=0;o<e.length;o+=1)t.push(r(e[o]));return t}return r(e)},merge:function merge(e,r,t){if(!r)return e;if("object"!=typeof r){if(isArray(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(t&&(t.plainObjects||t.allowPrototypes)||!has.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var o=e;return isArray(e)&&!isArray(r)&&(o=function arrayToObject(e,r){for(var t=r&&r.plainObjects?Object.create(null):{},o=0;o<e.length;++o)void 0!==e[o]&&(t[o]=e[o]);return t}(e,t)),isArray(e)&&isArray(r)?(r.forEach((function(r,o){if(has.call(e,o)){var n=e[o];n&&"object"==typeof n&&r&&"object"==typeof r?e[o]=merge(n,r,t):e.push(r)}else e[o]=r})),e):Object.keys(r).reduce((function(e,o){var n=r[o];return has.call(e,o)?e[o]=merge(e[o],n,t):e[o]=n,e}),o)}}},{1:1}],29:[function(require,module,exports){"use strict";var GetIntrinsic=require(20),callBound=require(7),inspect=require(27),$TypeError=require(16),$WeakMap=GetIntrinsic("%WeakMap%",!0),$Map=GetIntrinsic("%Map%",!0),$weakMapGet=callBound("WeakMap.prototype.get",!0),$weakMapSet=callBound("WeakMap.prototype.set",!0),$weakMapHas=callBound("WeakMap.prototype.has",!0),$mapGet=callBound("Map.prototype.get",!0),$mapSet=callBound("Map.prototype.set",!0),$mapHas=callBound("Map.prototype.has",!0),listGetNode=function(e,t){for(var n,a=e;null!==(n=a.next);a=n)if(n.key===t)return a.next=n.next,n.next=e.next,e.next=n,n};module.exports=function getSideChannel(){var e,t,n,a={assert:function(e){if(!a.has(e))throw new $TypeError("Side channel does not contain "+inspect(e))},get:function(a){if($WeakMap&&a&&("object"==typeof a||"function"==typeof a)){if(e)return $weakMapGet(e,a)}else if($Map){if(t)return $mapGet(t,a)}else if(n)return function(e,t){var n=listGetNode(e,t);return n&&n.value}(n,a)},has:function(a){if($WeakMap&&a&&("object"==typeof a||"function"==typeof a)){if(e)return $weakMapHas(e,a)}else if($Map){if(t)return $mapHas(t,a)}else if(n)return function(e,t){return!!listGetNode(e,t)}(n,a);return!1},set:function(a,r){$WeakMap&&a&&("object"==typeof a||"function"==typeof a)?(e||(e=new $WeakMap),$weakMapSet(e,a,r)):$Map?(t||(t=new $Map),$mapSet(t,a,r)):(n||(n={key:{},next:null}),function(e,t,n){var a=listGetNode(e,t);a?a.value=n:e.next={key:t,next:e.next,value:n}}(n,a,r))}};return a}},{16:16,20:20,27:27,7:7}],6:[function(require,module,exports){},{}],7:[function(require,module,exports){"use strict";var GetIntrinsic=require(20),callBind=require(8),$indexOf=callBind(GetIntrinsic("String.prototype.indexOf"));module.exports=function callBoundIntrinsic(i,n){var t=GetIntrinsic(i,!!n);return"function"==typeof t&&$indexOf(i,".prototype.")>-1?callBind(t):t}},{20:20,8:8}],20:[function(require,module,exports){"use strict";var $Error=require(12),$EvalError=require(11),$RangeError=require(13),$ReferenceError=require(14),$SyntaxError=require(15),$TypeError=require(16),$URIError=require(17),$Function=Function,getEvalledConstructor=function(r){try{return $Function('"use strict"; return ('+r+").constructor;")()}catch(r){}},$gOPD=Object.getOwnPropertyDescriptor;if($gOPD)try{$gOPD({},"")}catch(r){$gOPD=null}var throwTypeError=function(){throw new $TypeError},ThrowTypeError=$gOPD?function(){try{return throwTypeError}catch(r){try{return $gOPD(arguments,"callee").get}catch(r){return throwTypeError}}}():throwTypeError,hasSymbols=require(24)(),hasProto=require(23)(),getProto=Object.getPrototypeOf||(hasProto?function(r){return r.__proto__}:null),needsEval={},TypedArray="undefined"!=typeof Uint8Array&&getProto?getProto(Uint8Array):undefined,INTRINSICS={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?undefined:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?undefined:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols&&getProto?getProto([][Symbol.iterator]()):undefined,"%AsyncFromSyncIteratorPrototype%":undefined,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":"undefined"==typeof Atomics?undefined:Atomics,"%BigInt%":"undefined"==typeof BigInt?undefined:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?undefined:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?undefined:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?undefined:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":$Error,"%eval%":eval,"%EvalError%":$EvalError,"%Float32Array%":"undefined"==typeof Float32Array?undefined:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?undefined:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?undefined:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":"undefined"==typeof Int8Array?undefined:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?undefined:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?undefined:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols&&getProto?getProto(getProto([][Symbol.iterator]())):undefined,"%JSON%":"object"==typeof JSON?JSON:undefined,"%Map%":"undefined"==typeof Map?undefined:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&hasSymbols&&getProto?getProto((new Map)[Symbol.iterator]()):undefined,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?undefined:Promise,"%Proxy%":"undefined"==typeof Proxy?undefined:Proxy,"%RangeError%":$RangeError,"%ReferenceError%":$ReferenceError,"%Reflect%":"undefined"==typeof Reflect?undefined:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?undefined:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&hasSymbols&&getProto?getProto((new Set)[Symbol.iterator]()):undefined,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?undefined:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols&&getProto?getProto(""[Symbol.iterator]()):undefined,"%Symbol%":hasSymbols?Symbol:undefined,"%SyntaxError%":$SyntaxError,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError,"%Uint8Array%":"undefined"==typeof Uint8Array?undefined:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?undefined:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?undefined:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?undefined:Uint32Array,"%URIError%":$URIError,"%WeakMap%":"undefined"==typeof WeakMap?undefined:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?undefined:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?undefined:WeakSet};if(getProto)try{null.error}catch(r){var errorProto=getProto(getProto(r));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function doEval(r){var e;if("%AsyncFunction%"===r)e=getEvalledConstructor("async function () {}");else if("%GeneratorFunction%"===r)e=getEvalledConstructor("function* () {}");else if("%AsyncGeneratorFunction%"===r)e=getEvalledConstructor("async function* () {}");else if("%AsyncGenerator%"===r){var t=doEval("%AsyncGeneratorFunction%");t&&(e=t.prototype)}else if("%AsyncIteratorPrototype%"===r){var o=doEval("%AsyncGenerator%");o&&getProto&&(e=getProto(o.prototype))}return INTRINSICS[r]=e,e},LEGACY_ALIASES={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bind=require(19),hasOwn=require(26),$concat=bind.call(Function.call,Array.prototype.concat),$spliceApply=bind.call(Function.apply,Array.prototype.splice),$replace=bind.call(Function.call,String.prototype.replace),$strSlice=bind.call(Function.call,String.prototype.slice),$exec=bind.call(Function.call,RegExp.prototype.exec),rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=function stringToPath(r){var e=$strSlice(r,0,1),t=$strSlice(r,-1);if("%"===e&&"%"!==t)throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");if("%"===t&&"%"!==e)throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");var o=[];return $replace(r,rePropName,(function(r,e,t,n){o[o.length]=t?$replace(n,reEscapeChar,"$1"):e||r})),o},getBaseIntrinsic=function getBaseIntrinsic(r,e){var t,o=r;if(hasOwn(LEGACY_ALIASES,o)&&(o="%"+(t=LEGACY_ALIASES[o])[0]+"%"),hasOwn(INTRINSICS,o)){var n=INTRINSICS[o];if(n===needsEval&&(n=doEval(o)),void 0===n&&!e)throw new $TypeError("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:t,name:o,value:n}}throw new $SyntaxError("intrinsic "+r+" does not exist!")};module.exports=function GetIntrinsic(r,e){if("string"!=typeof r||0===r.length)throw new $TypeError("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new $TypeError('"allowMissing" argument must be a boolean');if(null===$exec(/^%?[^%]*%?$/,r))throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var t=stringToPath(r),o=t.length>0?t[0]:"",n=getBaseIntrinsic("%"+o+"%",e),a=n.name,y=n.value,i=!1,p=n.alias;p&&(o=p[0],$spliceApply(t,$concat([0,1],p)));for(var d=1,s=!0;d<t.length;d+=1){var f=t[d],u=$strSlice(f,0,1),l=$strSlice(f,-1);if(('"'===u||"'"===u||"`"===u||'"'===l||"'"===l||"`"===l)&&u!==l)throw new $SyntaxError("property names with quotes must have matching quotes");if("constructor"!==f&&s||(i=!0),hasOwn(INTRINSICS,a="%"+(o+="."+f)+"%"))y=INTRINSICS[a];else if(null!=y){if(!(f in y)){if(!e)throw new $TypeError("base intrinsic for "+r+" exists, but the property is not available.");return}if($gOPD&&d+1>=t.length){var c=$gOPD(y,f);y=(s=!!c)&&"get"in c&&!("originalValue"in c.get)?c.get:y[f]}else s=hasOwn(y,f),y=y[f];s&&!i&&(INTRINSICS[a]=y)}}return y}},{11:11,12:12,13:13,14:14,15:15,16:16,17:17,19:19,23:23,24:24,26:26}],8:[function(require,module,exports){"use strict";var bind=require(19),GetIntrinsic=require(20),setFunctionLength=require(28),$TypeError=require(16),$apply=GetIntrinsic("%Function.prototype.apply%"),$call=GetIntrinsic("%Function.prototype.call%"),$reflectApply=GetIntrinsic("%Reflect.apply%",!0)||bind.call($call,$apply),$defineProperty=require(10),$max=GetIntrinsic("%Math.max%");module.exports=function callBind(e){if("function"!=typeof e)throw new $TypeError("a function is required");var n=$reflectApply(bind,$call,arguments);return setFunctionLength(n,1+$max(0,e.length-(arguments.length-1)),!0)};var applyBind=function applyBind(){return $reflectApply(bind,$apply,arguments)};$defineProperty?$defineProperty(module.exports,"apply",{value:applyBind}):module.exports.apply=applyBind},{10:10,16:16,19:19,20:20,28:28}],16:[function(require,module,exports){"use strict";module.exports=TypeError},{}],19:[function(require,module,exports){"use strict";var implementation=require(18);module.exports=Function.prototype.bind||implementation},{18:18}],10:[function(require,module,exports){"use strict";var $defineProperty=require(20)("%Object.defineProperty%",!0)||!1;if($defineProperty)try{$defineProperty({},"a",{value:1})}catch(e){$defineProperty=!1}module.exports=$defineProperty},{20:20}],28:[function(require,module,exports){"use strict";var GetIntrinsic=require(20),define=require(9),hasDescriptors=require(22)(),gOPD=require(21),$TypeError=require(16),$floor=GetIntrinsic("%Math.floor%");module.exports=function setFunctionLength(e,r){if("function"!=typeof e)throw new $TypeError("`fn` is not a function");if("number"!=typeof r||r<0||r>4294967295||$floor(r)!==r)throw new $TypeError("`length` must be a positive 32-bit integer");var t=arguments.length>2&&!!arguments[2],i=!0,n=!0;if("length"in e&&gOPD){var o=gOPD(e,"length");o&&!o.configurable&&(i=!1),o&&!o.writable&&(n=!1)}return(i||n||!t)&&(hasDescriptors?define(e,"length",r,!0,!0):define(e,"length",r)),e}},{16:16,20:20,21:21,22:22,9:9}],9:[function(require,module,exports){"use strict";var $defineProperty=require(10),$SyntaxError=require(15),$TypeError=require(16),gopd=require(21);module.exports=function defineDataProperty(e,r,o){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new $TypeError("`obj` must be an object or a function`");if("string"!=typeof r&&"symbol"!=typeof r)throw new $TypeError("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new $TypeError("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new $TypeError("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new $TypeError("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new $TypeError("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,t=arguments.length>5?arguments[5]:null,i=arguments.length>6&&arguments[6],a=!!gopd&&gopd(e,r);if($defineProperty)$defineProperty(e,r,{configurable:null===t&&a?a.configurable:!t,enumerable:null===n&&a?a.enumerable:!n,value:o,writable:null===l&&a?a.writable:!l});else{if(!i&&(n||l||t))throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[r]=o}}},{10:10,15:15,16:16,21:21}],15:[function(require,module,exports){"use strict";module.exports=SyntaxError},{}],21:[function(require,module,exports){"use strict";var $gOPD=require(20)("%Object.getOwnPropertyDescriptor%",!0);if($gOPD)try{$gOPD([],"length")}catch(t){$gOPD=null}module.exports=$gOPD},{20:20}],11:[function(require,module,exports){"use strict";module.exports=EvalError},{}],12:[function(require,module,exports){"use strict";module.exports=Error},{}],13:[function(require,module,exports){"use strict";module.exports=RangeError},{}],14:[function(require,module,exports){"use strict";module.exports=ReferenceError},{}],17:[function(require,module,exports){"use strict";module.exports=URIError},{}],18:[function(require,module,exports){"use strict";var ERROR_MESSAGE="Function.prototype.bind called on incompatible ",toStr=Object.prototype.toString,max=Math.max,funcType="[object Function]",concatty=function concatty(t,n){for(var r=[],o=0;o<t.length;o+=1)r[o]=t[o];for(var e=0;e<n.length;e+=1)r[e+t.length]=n[e];return r},slicy=function slicy(t,n){for(var r=[],o=n||0,e=0;o<t.length;o+=1,e+=1)r[e]=t[o];return r},joiny=function(t,n){for(var r="",o=0;o<t.length;o+=1)r+=t[o],o+1<t.length&&(r+=n);return r};module.exports=function bind(t){var n=this;if("function"!=typeof n||toStr.apply(n)!==funcType)throw new TypeError(ERROR_MESSAGE+n);for(var r,o=slicy(arguments,1),e=max(0,n.length-o.length),i=[],c=0;c<e;c++)i[c]="$"+c;if(r=Function("binder","return function ("+joiny(i,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof r){var e=n.apply(this,concatty(o,arguments));return Object(e)===e?e:this}return n.apply(t,concatty(o,arguments))})),n.prototype){var p=function Empty(){};p.prototype=n.prototype,r.prototype=new p,p.prototype=null}return r}},{}],23:[function(require,module,exports){"use strict";var test={__proto__:null,foo:{}},$Object=Object;module.exports=function hasProto(){return{__proto__:test}.foo===test.foo&&!(test instanceof $Object)}},{}],26:[function(require,module,exports){"use strict";var call=Function.prototype.call,$hasOwn=Object.prototype.hasOwnProperty,bind=require(19);module.exports=bind.call(call,$hasOwn)},{19:19}],24:[function(require,module,exports){"use strict";var origSymbol="undefined"!=typeof Symbol&&Symbol,hasSymbolSham=require(25);module.exports=function hasNativeSymbols(){return"function"==typeof origSymbol&&"function"==typeof Symbol&&"symbol"==typeof origSymbol("foo")&&"symbol"==typeof Symbol("bar")&&hasSymbolSham()}},{25:25}],22:[function(require,module,exports){"use strict";var $defineProperty=require(10),hasPropertyDescriptors=function hasPropertyDescriptors(){return!!$defineProperty};hasPropertyDescriptors.hasArrayLengthDefineBug=function hasArrayLengthDefineBug(){if(!$defineProperty)return null;try{return 1!==$defineProperty([],"length",{value:1}).length}catch(r){return!0}},module.exports=hasPropertyDescriptors},{10:10}],25:[function(require,module,exports){"use strict";module.exports=function hasSymbols(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var o=Object.getOwnPropertySymbols(t);if(1!==o.length||o[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(t,e);if(42!==n.value||!0!==n.enumerable)return!1}return!0}},{}],27:[function(require,module,exports){(function(global){(function(){var hasMap="function"==typeof Map&&Map.prototype,mapSizeDescriptor=Object.getOwnPropertyDescriptor&&hasMap?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,mapSize=hasMap&&mapSizeDescriptor&&"function"==typeof mapSizeDescriptor.get?mapSizeDescriptor.get:null,mapForEach=hasMap&&Map.prototype.forEach,hasSet="function"==typeof Set&&Set.prototype,setSizeDescriptor=Object.getOwnPropertyDescriptor&&hasSet?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,setSize=hasSet&&setSizeDescriptor&&"function"==typeof setSizeDescriptor.get?setSizeDescriptor.get:null,setForEach=hasSet&&Set.prototype.forEach,weakMapHas="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,weakSetHas="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,weakRefDeref="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,booleanValueOf=Boolean.prototype.valueOf,objectToString=Object.prototype.toString,functionToString=Function.prototype.toString,$match=String.prototype.match,$slice=String.prototype.slice,$replace=String.prototype.replace,$toUpperCase=String.prototype.toUpperCase,$toLowerCase=String.prototype.toLowerCase,$test=RegExp.prototype.test,$concat=Array.prototype.concat,$join=Array.prototype.join,$arrSlice=Array.prototype.slice,$floor=Math.floor,bigIntValueOf="function"==typeof BigInt?BigInt.prototype.valueOf:null,gOPS=Object.getOwnPropertySymbols,symToString="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,hasShammedSymbols="function"==typeof Symbol&&"object"==typeof Symbol.iterator,toStringTag="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,isEnumerable=Object.prototype.propertyIsEnumerable,gPO=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function addNumericSeparator(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||$test.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var n=t<0?-$floor(-t):$floor(t);if(n!==t){var o=String(n),i=$slice.call(e,o.length+1);return $replace.call(o,r,"$&_")+"."+$replace.call($replace.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $replace.call(e,r,"$&_")}var utilInspect=require(6),inspectCustom=utilInspect.custom,inspectSymbol=isSymbol(inspectCustom)?inspectCustom:null;function wrapQuotes(t,e,r){var n="double"===(r.quoteStyle||e)?'"':"'";return n+t+n}function quote(t){return $replace.call(String(t),/"/g,"&quot;")}function isArray(t){return!("[object Array]"!==toStr(t)||toStringTag&&"object"==typeof t&&toStringTag in t)}function isRegExp(t){return!("[object RegExp]"!==toStr(t)||toStringTag&&"object"==typeof t&&toStringTag in t)}function isSymbol(t){if(hasShammedSymbols)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!symToString)return!1;try{return symToString.call(t),!0}catch(t){}return!1}module.exports=function inspect_(t,e,r,n){var o=e||{};if(has(o,"quoteStyle")&&"single"!==o.quoteStyle&&"double"!==o.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has(o,"maxStringLength")&&("number"==typeof o.maxStringLength?o.maxStringLength<0&&o.maxStringLength!==1/0:null!==o.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=!has(o,"customInspect")||o.customInspect;if("boolean"!=typeof i&&"symbol"!==i)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has(o,"indent")&&null!==o.indent&&"\t"!==o.indent&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has(o,"numericSeparator")&&"boolean"!=typeof o.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=o.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return inspectString(t,o);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var c=String(t);return a?addNumericSeparator(t,c):c}if("bigint"==typeof t){var l=String(t)+"n";return a?addNumericSeparator(t,l):l}var p=void 0===o.depth?5:o.depth;if(void 0===r&&(r=0),r>=p&&p>0&&"object"==typeof t)return isArray(t)?"[Array]":"[Object]";var u=function getIndent(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=$join.call(Array(t.indent+1)," ")}return{base:r,prev:$join.call(Array(e+1),r)}}(o,r);if(void 0===n)n=[];else if(indexOf(n,t)>=0)return"[Circular]";function inspect(t,e,i){if(e&&(n=$arrSlice.call(n)).push(e),i){var a={depth:o.depth};return has(o,"quoteStyle")&&(a.quoteStyle=o.quoteStyle),inspect_(t,a,r+1,n)}return inspect_(t,o,r+1,n)}if("function"==typeof t&&!isRegExp(t)){var s=function nameOf(t){if(t.name)return t.name;var e=$match.call(functionToString.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(t),f=arrObjKeys(t,inspect);return"[Function"+(s?": "+s:" (anonymous)")+"]"+(f.length>0?" { "+$join.call(f,", ")+" }":"")}if(isSymbol(t)){var y=hasShammedSymbols?$replace.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call(t);return"object"!=typeof t||hasShammedSymbols?y:markBoxed(y)}if(function isElement(t){return!(!t||"object"!=typeof t)&&("undefined"!=typeof HTMLElement&&t instanceof HTMLElement||"string"==typeof t.nodeName&&"function"==typeof t.getAttribute)}(t)){for(var S="<"+$toLowerCase.call(String(t.nodeName)),g=t.attributes||[],m=0;m<g.length;m++)S+=" "+g[m].name+"="+wrapQuotes(quote(g[m].value),"double",o);return S+=">",t.childNodes&&t.childNodes.length&&(S+="..."),S+"</"+$toLowerCase.call(String(t.nodeName))+">"}if(isArray(t)){if(0===t.length)return"[]";var b=arrObjKeys(t,inspect);return u&&!function singleLineValues(t){for(var e=0;e<t.length;e++)if(indexOf(t[e],"\n")>=0)return!1;return!0}(b)?"["+indentedJoin(b,u)+"]":"[ "+$join.call(b,", ")+" ]"}if(function isError(t){return!("[object Error]"!==toStr(t)||toStringTag&&"object"==typeof t&&toStringTag in t)}(t)){var h=arrObjKeys(t,inspect);return"cause"in Error.prototype||!("cause"in t)||isEnumerable.call(t,"cause")?0===h.length?"["+String(t)+"]":"{ ["+String(t)+"] "+$join.call(h,", ")+" }":"{ ["+String(t)+"] "+$join.call($concat.call("[cause]: "+inspect(t.cause),h),", ")+" }"}if("object"==typeof t&&i){if(inspectSymbol&&"function"==typeof t[inspectSymbol]&&utilInspect)return utilInspect(t,{depth:p-r});if("symbol"!==i&&"function"==typeof t.inspect)return t.inspect()}if(function isMap(t){if(!mapSize||!t||"object"!=typeof t)return!1;try{mapSize.call(t);try{setSize.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(t)){var d=[];return mapForEach&&mapForEach.call(t,(function(e,r){d.push(inspect(r,t,!0)+" => "+inspect(e,t))})),collectionOf("Map",mapSize.call(t),d,u)}if(function isSet(t){if(!setSize||!t||"object"!=typeof t)return!1;try{setSize.call(t);try{mapSize.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(t)){var j=[];return setForEach&&setForEach.call(t,(function(e){j.push(inspect(e,t))})),collectionOf("Set",setSize.call(t),j,u)}if(function isWeakMap(t){if(!weakMapHas||!t||"object"!=typeof t)return!1;try{weakMapHas.call(t,weakMapHas);try{weakSetHas.call(t,weakSetHas)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(t))return weakCollectionOf("WeakMap");if(function isWeakSet(t){if(!weakSetHas||!t||"object"!=typeof t)return!1;try{weakSetHas.call(t,weakSetHas);try{weakMapHas.call(t,weakMapHas)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(t))return weakCollectionOf("WeakSet");if(function isWeakRef(t){if(!weakRefDeref||!t||"object"!=typeof t)return!1;try{return weakRefDeref.call(t),!0}catch(t){}return!1}(t))return weakCollectionOf("WeakRef");if(function isNumber(t){return!("[object Number]"!==toStr(t)||toStringTag&&"object"==typeof t&&toStringTag in t)}(t))return markBoxed(inspect(Number(t)));if(function isBigInt(t){if(!t||"object"!=typeof t||!bigIntValueOf)return!1;try{return bigIntValueOf.call(t),!0}catch(t){}return!1}(t))return markBoxed(inspect(bigIntValueOf.call(t)));if(function isBoolean(t){return!("[object Boolean]"!==toStr(t)||toStringTag&&"object"==typeof t&&toStringTag in t)}(t))return markBoxed(booleanValueOf.call(t));if(function isString(t){return!("[object String]"!==toStr(t)||toStringTag&&"object"==typeof t&&toStringTag in t)}(t))return markBoxed(inspect(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if(t===global)return"{ [object globalThis] }";if(!function isDate(t){return!("[object Date]"!==toStr(t)||toStringTag&&"object"==typeof t&&toStringTag in t)}(t)&&!isRegExp(t)){var O=arrObjKeys(t,inspect),w=gPO?gPO(t)===Object.prototype:t instanceof Object||t.constructor===Object,$=t instanceof Object?"":"null prototype",k=!w&&toStringTag&&Object(t)===t&&toStringTag in t?$slice.call(toStr(t),8,-1):$?"Object":"",v=(w||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(k||$?"["+$join.call($concat.call([],k||[],$||[]),": ")+"] ":"");return 0===O.length?v+"{}":u?v+"{"+indentedJoin(O,u)+"}":v+"{ "+$join.call(O,", ")+" }"}return String(t)};var hasOwn=Object.prototype.hasOwnProperty||function(t){return t in this};function has(t,e){return hasOwn.call(t,e)}function toStr(t){return objectToString.call(t)}function indexOf(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function inspectString(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return inspectString($slice.call(t,0,e.maxStringLength),e)+n}return wrapQuotes($replace.call($replace.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lowbyte),"single",e)}function lowbyte(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+$toUpperCase.call(e.toString(16))}function markBoxed(t){return"Object("+t+")"}function weakCollectionOf(t){return t+" { ? }"}function collectionOf(t,e,r,n){return t+" ("+e+") {"+(n?indentedJoin(r,n):$join.call(r,", "))+"}"}function indentedJoin(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+$join.call(t,","+r)+"\n"+e.prev}function arrObjKeys(t,e){var r=isArray(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=has(t,o)?e(t[o],t):""}var i,a="function"==typeof gOPS?gOPS(t):[];if(hasShammedSymbols){i={};for(var c=0;c<a.length;c++)i["$"+a[c]]=a[c]}for(var l in t)has(t,l)&&(r&&String(Number(l))===l&&l<t.length||hasShammedSymbols&&i["$"+l]instanceof Symbol||($test.call(/[^\w$]/,l)?n.push(e(l,t)+": "+e(t[l],t)):n.push(l+": "+e(t[l],t))));if("function"==typeof gOPS)for(var p=0;p<a.length;p++)isEnumerable.call(t,a[p])&&n.push("["+e(a[p])+"]: "+e(t[a[p]],t));return n}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{6:6}]},{},[2])(2)}));


wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'ltr' ] } );

/*! This file is auto-generated */
!function(n,r){var t,e;"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define("underscore",r):(n="undefined"!=typeof globalThis?globalThis:n||self,t=n._,(e=n._=r()).noConflict=function(){return n._=t,e})}(this,function(){var n="1.13.6",r="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},e=Array.prototype,F=Object.prototype,V="undefined"!=typeof Symbol?Symbol.prototype:null,P=e.push,f=e.slice,s=F.toString,q=F.hasOwnProperty,t="undefined"!=typeof ArrayBuffer,u="undefined"!=typeof DataView,U=Array.isArray,W=Object.keys,z=Object.create,L=t&&ArrayBuffer.isView,$=isNaN,C=isFinite,K=!{toString:null}.propertyIsEnumerable("toString"),J=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],G=Math.pow(2,53)-1;function l(u,o){return o=null==o?u.length-1:+o,function(){for(var n=Math.max(arguments.length-o,0),r=Array(n),t=0;t<n;t++)r[t]=arguments[t+o];switch(o){case 0:return u.call(this,r);case 1:return u.call(this,arguments[0],r);case 2:return u.call(this,arguments[0],arguments[1],r)}for(var e=Array(o+1),t=0;t<o;t++)e[t]=arguments[t];return e[o]=r,u.apply(this,e)}}function o(n){var r=typeof n;return"function"==r||"object"==r&&!!n}function H(n){return void 0===n}function Q(n){return!0===n||!1===n||"[object Boolean]"===s.call(n)}function i(n){var r="[object "+n+"]";return function(n){return s.call(n)===r}}var X=i("String"),Y=i("Number"),Z=i("Date"),nn=i("RegExp"),rn=i("Error"),tn=i("Symbol"),en=i("ArrayBuffer"),a=i("Function"),r=r.document&&r.document.childNodes,p=a="function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof r?function(n){return"function"==typeof n||!1}:a,r=i("Object"),un=u&&r(new DataView(new ArrayBuffer(8))),a="undefined"!=typeof Map&&r(new Map),u=i("DataView");var h=un?function(n){return null!=n&&p(n.getInt8)&&en(n.buffer)}:u,v=U||i("Array");function y(n,r){return null!=n&&q.call(n,r)}var on=i("Arguments"),an=(!function(){on(arguments)||(on=function(n){return y(n,"callee")})}(),on);function fn(n){return Y(n)&&$(n)}function cn(n){return function(){return n}}function ln(r){return function(n){n=r(n);return"number"==typeof n&&0<=n&&n<=G}}function sn(r){return function(n){return null==n?void 0:n[r]}}var d=sn("byteLength"),pn=ln(d),hn=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var vn=t?function(n){return L?L(n)&&!h(n):pn(n)&&hn.test(s.call(n))}:cn(!1),g=sn("length");function yn(n,r){r=function(r){for(var t={},n=r.length,e=0;e<n;++e)t[r[e]]=!0;return{contains:function(n){return!0===t[n]},push:function(n){return t[n]=!0,r.push(n)}}}(r);var t=J.length,e=n.constructor,u=p(e)&&e.prototype||F,o="constructor";for(y(n,o)&&!r.contains(o)&&r.push(o);t--;)(o=J[t])in n&&n[o]!==u[o]&&!r.contains(o)&&r.push(o)}function b(n){if(!o(n))return[];if(W)return W(n);var r,t=[];for(r in n)y(n,r)&&t.push(r);return K&&yn(n,t),t}function dn(n,r){var t=b(r),e=t.length;if(null==n)return!e;for(var u=Object(n),o=0;o<e;o++){var i=t[o];if(r[i]!==u[i]||!(i in u))return!1}return!0}function m(n){return n instanceof m?n:this instanceof m?void(this._wrapped=n):new m(n)}function gn(n){return new Uint8Array(n.buffer||n,n.byteOffset||0,d(n))}m.VERSION=n,m.prototype.valueOf=m.prototype.toJSON=m.prototype.value=function(){return this._wrapped},m.prototype.toString=function(){return String(this._wrapped)};var bn="[object DataView]";function mn(n,r,t,e){var u;return n===r?0!==n||1/n==1/r:null!=n&&null!=r&&(n!=n?r!=r:("function"==(u=typeof n)||"object"==u||"object"==typeof r)&&function n(r,t,e,u){r instanceof m&&(r=r._wrapped);t instanceof m&&(t=t._wrapped);var o=s.call(r);if(o!==s.call(t))return!1;if(un&&"[object Object]"==o&&h(r)){if(!h(t))return!1;o=bn}switch(o){case"[object RegExp]":case"[object String]":return""+r==""+t;case"[object Number]":return+r!=+r?+t!=+t:0==+r?1/+r==1/t:+r==+t;case"[object Date]":case"[object Boolean]":return+r==+t;case"[object Symbol]":return V.valueOf.call(r)===V.valueOf.call(t);case"[object ArrayBuffer]":case bn:return n(gn(r),gn(t),e,u)}o="[object Array]"===o;if(!o&&vn(r)){var i=d(r);if(i!==d(t))return!1;if(r.buffer===t.buffer&&r.byteOffset===t.byteOffset)return!0;o=!0}if(!o){if("object"!=typeof r||"object"!=typeof t)return!1;var i=r.constructor,a=t.constructor;if(i!==a&&!(p(i)&&i instanceof i&&p(a)&&a instanceof a)&&"constructor"in r&&"constructor"in t)return!1}e=e||[];u=u||[];var f=e.length;for(;f--;)if(e[f]===r)return u[f]===t;e.push(r);u.push(t);if(o){if((f=r.length)!==t.length)return!1;for(;f--;)if(!mn(r[f],t[f],e,u))return!1}else{var c,l=b(r);if(f=l.length,b(t).length!==f)return!1;for(;f--;)if(c=l[f],!y(t,c)||!mn(r[c],t[c],e,u))return!1}e.pop();u.pop();return!0}(n,r,t,e))}function c(n){if(!o(n))return[];var r,t=[];for(r in n)t.push(r);return K&&yn(n,t),t}function jn(e){var u=g(e);return function(n){if(null==n)return!1;var r=c(n);if(g(r))return!1;for(var t=0;t<u;t++)if(!p(n[e[t]]))return!1;return e!==wn||!p(n[_n])}}var _n="forEach",r=["clear","delete"],u=["get","has","set"],U=r.concat(_n,u),wn=r.concat(u),t=["add"].concat(r,_n,"has"),u=a?jn(U):i("Map"),r=a?jn(wn):i("WeakMap"),U=a?jn(t):i("Set"),a=i("WeakSet");function j(n){for(var r=b(n),t=r.length,e=Array(t),u=0;u<t;u++)e[u]=n[r[u]];return e}function An(n){for(var r={},t=b(n),e=0,u=t.length;e<u;e++)r[n[t[e]]]=t[e];return r}function xn(n){var r,t=[];for(r in n)p(n[r])&&t.push(r);return t.sort()}function Sn(f,c){return function(n){var r=arguments.length;if(c&&(n=Object(n)),!(r<2||null==n))for(var t=1;t<r;t++)for(var e=arguments[t],u=f(e),o=u.length,i=0;i<o;i++){var a=u[i];c&&void 0!==n[a]||(n[a]=e[a])}return n}}var On=Sn(c),_=Sn(b),Mn=Sn(c,!0);function En(n){var r;return o(n)?z?z(n):((r=function(){}).prototype=n,n=new r,r.prototype=null,n):{}}function Bn(n){return v(n)?n:[n]}function w(n){return m.toPath(n)}function Nn(n,r){for(var t=r.length,e=0;e<t;e++){if(null==n)return;n=n[r[e]]}return t?n:void 0}function In(n,r,t){n=Nn(n,w(r));return H(n)?t:n}function Tn(n){return n}function A(r){return r=_({},r),function(n){return dn(n,r)}}function kn(r){return r=w(r),function(n){return Nn(n,r)}}function x(u,o,n){if(void 0===o)return u;switch(null==n?3:n){case 1:return function(n){return u.call(o,n)};case 3:return function(n,r,t){return u.call(o,n,r,t)};case 4:return function(n,r,t,e){return u.call(o,n,r,t,e)}}return function(){return u.apply(o,arguments)}}function Dn(n,r,t){return null==n?Tn:p(n)?x(n,r,t):(o(n)&&!v(n)?A:kn)(n)}function Rn(n,r){return Dn(n,r,1/0)}function S(n,r,t){return m.iteratee!==Rn?m.iteratee(n,r):Dn(n,r,t)}function Fn(){}function Vn(n,r){return null==r&&(r=n,n=0),n+Math.floor(Math.random()*(r-n+1))}m.toPath=Bn,m.iteratee=Rn;var O=Date.now||function(){return(new Date).getTime()};function Pn(r){function t(n){return r[n]}var n="(?:"+b(r).join("|")+")",e=RegExp(n),u=RegExp(n,"g");return function(n){return e.test(n=null==n?"":""+n)?n.replace(u,t):n}}var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},qn=Pn(t),t=Pn(An(t)),Un=m.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Wn=/(.)^/,zn={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Ln=/\\|'|\r|\n|\u2028|\u2029/g;function $n(n){return"\\"+zn[n]}var Cn=/^\s*(\w|\$)+\s*$/;var Kn=0;function Jn(n,r,t,e,u){return e instanceof r?(e=En(n.prototype),o(r=n.apply(e,u))?r:e):n.apply(t,u)}var M=l(function(u,o){function i(){for(var n=0,r=o.length,t=Array(r),e=0;e<r;e++)t[e]=o[e]===a?arguments[n++]:o[e];for(;n<arguments.length;)t.push(arguments[n++]);return Jn(u,i,this,this,t)}var a=M.placeholder;return i}),Gn=(M.placeholder=m,l(function(r,t,e){var u;if(p(r))return u=l(function(n){return Jn(r,u,t,this,e.concat(n))});throw new TypeError("Bind must be called on a function")})),E=ln(g);function B(n,r,t,e){if(e=e||[],r||0===r){if(r<=0)return e.concat(n)}else r=1/0;for(var u=e.length,o=0,i=g(n);o<i;o++){var a=n[o];if(E(a)&&(v(a)||an(a)))if(1<r)B(a,r-1,t,e),u=e.length;else for(var f=0,c=a.length;f<c;)e[u++]=a[f++];else t||(e[u++]=a)}return e}var Hn=l(function(n,r){var t=(r=B(r,!1,!1)).length;if(t<1)throw new Error("bindAll must be passed function names");for(;t--;){var e=r[t];n[e]=Gn(n[e],n)}return n});var Qn=l(function(n,r,t){return setTimeout(function(){return n.apply(null,t)},r)}),Xn=M(Qn,m,1);function Yn(n){return function(){return!n.apply(this,arguments)}}function Zn(n,r){var t;return function(){return 0<--n&&(t=r.apply(this,arguments)),n<=1&&(r=null),t}}var nr=M(Zn,2);function rr(n,r,t){r=S(r,t);for(var e,u=b(n),o=0,i=u.length;o<i;o++)if(r(n[e=u[o]],e,n))return e}function tr(o){return function(n,r,t){r=S(r,t);for(var e=g(n),u=0<o?0:e-1;0<=u&&u<e;u+=o)if(r(n[u],u,n))return u;return-1}}var er=tr(1),ur=tr(-1);function or(n,r,t,e){for(var u=(t=S(t,e,1))(r),o=0,i=g(n);o<i;){var a=Math.floor((o+i)/2);t(n[a])<u?o=a+1:i=a}return o}function ir(o,i,a){return function(n,r,t){var e=0,u=g(n);if("number"==typeof t)0<o?e=0<=t?t:Math.max(t+u,e):u=0<=t?Math.min(t+1,u):t+u+1;else if(a&&t&&u)return n[t=a(n,r)]===r?t:-1;if(r!=r)return 0<=(t=i(f.call(n,e,u),fn))?t+e:-1;for(t=0<o?e:u-1;0<=t&&t<u;t+=o)if(n[t]===r)return t;return-1}}var ar=ir(1,er,or),fr=ir(-1,ur);function cr(n,r,t){r=(E(n)?er:rr)(n,r,t);if(void 0!==r&&-1!==r)return n[r]}function N(n,r,t){if(r=x(r,t),E(n))for(u=0,o=n.length;u<o;u++)r(n[u],u,n);else for(var e=b(n),u=0,o=e.length;u<o;u++)r(n[e[u]],e[u],n);return n}function I(n,r,t){r=S(r,t);for(var e=!E(n)&&b(n),u=(e||n).length,o=Array(u),i=0;i<u;i++){var a=e?e[i]:i;o[i]=r(n[a],a,n)}return o}function lr(p){return function(n,r,t,e){var u=3<=arguments.length,o=n,i=x(r,e,4),a=t,f=!E(o)&&b(o),c=(f||o).length,l=0<p?0:c-1;for(u||(a=o[f?f[l]:l],l+=p);0<=l&&l<c;l+=p){var s=f?f[l]:l;a=i(a,o[s],s,o)}return a}}var sr=lr(1),pr=lr(-1);function T(n,e,r){var u=[];return e=S(e,r),N(n,function(n,r,t){e(n,r,t)&&u.push(n)}),u}function hr(n,r,t){r=S(r,t);for(var e=!E(n)&&b(n),u=(e||n).length,o=0;o<u;o++){var i=e?e[o]:o;if(!r(n[i],i,n))return!1}return!0}function vr(n,r,t){r=S(r,t);for(var e=!E(n)&&b(n),u=(e||n).length,o=0;o<u;o++){var i=e?e[o]:o;if(r(n[i],i,n))return!0}return!1}function k(n,r,t,e){return E(n)||(n=j(n)),0<=ar(n,r,t="number"==typeof t&&!e?t:0)}var yr=l(function(n,t,e){var u,o;return p(t)?o=t:(t=w(t),u=t.slice(0,-1),t=t[t.length-1]),I(n,function(n){var r=o;if(!r){if(null==(n=u&&u.length?Nn(n,u):n))return;r=n[t]}return null==r?r:r.apply(n,e)})});function dr(n,r){return I(n,kn(r))}function gr(n,e,r){var t,u,o=-1/0,i=-1/0;if(null==e||"number"==typeof e&&"object"!=typeof n[0]&&null!=n)for(var a=0,f=(n=E(n)?n:j(n)).length;a<f;a++)null!=(t=n[a])&&o<t&&(o=t);else e=S(e,r),N(n,function(n,r,t){u=e(n,r,t),(i<u||u===-1/0&&o===-1/0)&&(o=n,i=u)});return o}var br=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function mr(n){return n?v(n)?f.call(n):X(n)?n.match(br):E(n)?I(n,Tn):j(n):[]}function jr(n,r,t){if(null==r||t)return(n=E(n)?n:j(n))[Vn(n.length-1)];for(var e=mr(n),t=g(e),u=(r=Math.max(Math.min(r,t),0),t-1),o=0;o<r;o++){var i=Vn(o,u),a=e[o];e[o]=e[i],e[i]=a}return e.slice(0,r)}function D(o,r){return function(t,e,n){var u=r?[[],[]]:{};return e=S(e,n),N(t,function(n,r){r=e(n,r,t);o(u,n,r)}),u}}var _r=D(function(n,r,t){y(n,t)?n[t].push(r):n[t]=[r]}),wr=D(function(n,r,t){n[t]=r}),Ar=D(function(n,r,t){y(n,t)?n[t]++:n[t]=1}),xr=D(function(n,r,t){n[t?0:1].push(r)},!0);function Sr(n,r,t){return r in t}var Or=l(function(n,r){var t={},e=r[0];if(null!=n){p(e)?(1<r.length&&(e=x(e,r[1])),r=c(n)):(e=Sr,r=B(r,!1,!1),n=Object(n));for(var u=0,o=r.length;u<o;u++){var i=r[u],a=n[i];e(a,i,n)&&(t[i]=a)}}return t}),Mr=l(function(n,t){var r,e=t[0];return p(e)?(e=Yn(e),1<t.length&&(r=t[1])):(t=I(B(t,!1,!1),String),e=function(n,r){return!k(t,r)}),Or(n,e,r)});function Er(n,r,t){return f.call(n,0,Math.max(0,n.length-(null==r||t?1:r)))}function Br(n,r,t){return null==n||n.length<1?null==r||t?void 0:[]:null==r||t?n[0]:Er(n,n.length-r)}function R(n,r,t){return f.call(n,null==r||t?1:r)}var Nr=l(function(n,r){return r=B(r,!0,!0),T(n,function(n){return!k(r,n)})}),Ir=l(function(n,r){return Nr(n,r)});function Tr(n,r,t,e){Q(r)||(e=t,t=r,r=!1),null!=t&&(t=S(t,e));for(var u=[],o=[],i=0,a=g(n);i<a;i++){var f=n[i],c=t?t(f,i,n):f;r&&!t?(i&&o===c||u.push(f),o=c):t?k(o,c)||(o.push(c),u.push(f)):k(u,f)||u.push(f)}return u}var kr=l(function(n){return Tr(B(n,!0,!0))});function Dr(n){for(var r=n&&gr(n,g).length||0,t=Array(r),e=0;e<r;e++)t[e]=dr(n,e);return t}var Rr=l(Dr);function Fr(n,r){return n._chain?m(r).chain():r}function Vr(t){return N(xn(t),function(n){var r=m[n]=t[n];m.prototype[n]=function(){var n=[this._wrapped];return P.apply(n,arguments),Fr(this,r.apply(m,n))}}),m}N(["pop","push","reverse","shift","sort","splice","unshift"],function(r){var t=e[r];m.prototype[r]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==r&&"splice"!==r||0!==n.length||delete n[0]),Fr(this,n)}}),N(["concat","join","slice"],function(n){var r=e[n];m.prototype[n]=function(){var n=this._wrapped;return Fr(this,n=null!=n?r.apply(n,arguments):n)}});n=Vr({__proto__:null,VERSION:n,restArguments:l,isObject:o,isNull:function(n){return null===n},isUndefined:H,isBoolean:Q,isElement:function(n){return!(!n||1!==n.nodeType)},isString:X,isNumber:Y,isDate:Z,isRegExp:nn,isError:rn,isSymbol:tn,isArrayBuffer:en,isDataView:h,isArray:v,isFunction:p,isArguments:an,isFinite:function(n){return!tn(n)&&C(n)&&!isNaN(parseFloat(n))},isNaN:fn,isTypedArray:vn,isEmpty:function(n){var r;return null==n||("number"==typeof(r=g(n))&&(v(n)||X(n)||an(n))?0===r:0===g(b(n)))},isMatch:dn,isEqual:function(n,r){return mn(n,r)},isMap:u,isWeakMap:r,isSet:U,isWeakSet:a,keys:b,allKeys:c,values:j,pairs:function(n){for(var r=b(n),t=r.length,e=Array(t),u=0;u<t;u++)e[u]=[r[u],n[r[u]]];return e},invert:An,functions:xn,methods:xn,extend:On,extendOwn:_,assign:_,defaults:Mn,create:function(n,r){return n=En(n),r&&_(n,r),n},clone:function(n){return o(n)?v(n)?n.slice():On({},n):n},tap:function(n,r){return r(n),n},get:In,has:function(n,r){for(var t=(r=w(r)).length,e=0;e<t;e++){var u=r[e];if(!y(n,u))return!1;n=n[u]}return!!t},mapObject:function(n,r,t){r=S(r,t);for(var e=b(n),u=e.length,o={},i=0;i<u;i++){var a=e[i];o[a]=r(n[a],a,n)}return o},identity:Tn,constant:cn,noop:Fn,toPath:Bn,property:kn,propertyOf:function(r){return null==r?Fn:function(n){return In(r,n)}},matcher:A,matches:A,times:function(n,r,t){var e=Array(Math.max(0,n));r=x(r,t,1);for(var u=0;u<n;u++)e[u]=r(u);return e},random:Vn,now:O,escape:qn,unescape:t,templateSettings:Un,template:function(o,n,r){n=Mn({},n=!n&&r?r:n,m.templateSettings);var t,r=RegExp([(n.escape||Wn).source,(n.interpolate||Wn).source,(n.evaluate||Wn).source].join("|")+"|$","g"),i=0,a="__p+='";if(o.replace(r,function(n,r,t,e,u){return a+=o.slice(i,u).replace(Ln,$n),i=u+n.length,r?a+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'":t?a+="'+\n((__t=("+t+"))==null?'':__t)+\n'":e&&(a+="';\n"+e+"\n__p+='"),n}),a+="';\n",r=n.variable){if(!Cn.test(r))throw new Error("variable is not a bare identifier: "+r)}else a="with(obj||{}){\n"+a+"}\n",r="obj";a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{t=new Function(r,"_",a)}catch(n){throw n.source=a,n}function e(n){return t.call(this,n,m)}return e.source="function("+r+"){\n"+a+"}",e},result:function(n,r,t){var e=(r=w(r)).length;if(!e)return p(t)?t.call(n):t;for(var u=0;u<e;u++){var o=null==n?void 0:n[r[u]];void 0===o&&(o=t,u=e),n=p(o)?o.call(n):o}return n},uniqueId:function(n){var r=++Kn+"";return n?n+r:r},chain:function(n){return(n=m(n))._chain=!0,n},iteratee:Rn,partial:M,bind:Gn,bindAll:Hn,memoize:function(e,u){function o(n){var r=o.cache,t=""+(u?u.apply(this,arguments):n);return y(r,t)||(r[t]=e.apply(this,arguments)),r[t]}return o.cache={},o},delay:Qn,defer:Xn,throttle:function(t,e,u){function o(){l=!1===u.leading?0:O(),i=null,c=t.apply(a,f),i||(a=f=null)}function n(){var n=O(),r=(l||!1!==u.leading||(l=n),e-(n-l));return a=this,f=arguments,r<=0||e<r?(i&&(clearTimeout(i),i=null),l=n,c=t.apply(a,f),i||(a=f=null)):i||!1===u.trailing||(i=setTimeout(o,r)),c}var i,a,f,c,l=0;return u=u||{},n.cancel=function(){clearTimeout(i),l=0,i=a=f=null},n},debounce:function(r,t,e){function u(){var n=O()-i;n<t?o=setTimeout(u,t-n):(o=null,e||(f=r.apply(c,a)),o||(a=c=null))}var o,i,a,f,c,n=l(function(n){return c=this,a=n,i=O(),o||(o=setTimeout(u,t),e&&(f=r.apply(c,a))),f});return n.cancel=function(){clearTimeout(o),o=a=c=null},n},wrap:function(n,r){return M(r,n)},negate:Yn,compose:function(){var t=arguments,e=t.length-1;return function(){for(var n=e,r=t[e].apply(this,arguments);n--;)r=t[n].call(this,r);return r}},after:function(n,r){return function(){if(--n<1)return r.apply(this,arguments)}},before:Zn,once:nr,findKey:rr,findIndex:er,findLastIndex:ur,sortedIndex:or,indexOf:ar,lastIndexOf:fr,find:cr,detect:cr,findWhere:function(n,r){return cr(n,A(r))},each:N,forEach:N,map:I,collect:I,reduce:sr,foldl:sr,inject:sr,reduceRight:pr,foldr:pr,filter:T,select:T,reject:function(n,r,t){return T(n,Yn(S(r)),t)},every:hr,all:hr,some:vr,any:vr,contains:k,includes:k,include:k,invoke:yr,pluck:dr,where:function(n,r){return T(n,A(r))},max:gr,min:function(n,e,r){var t,u,o=1/0,i=1/0;if(null==e||"number"==typeof e&&"object"!=typeof n[0]&&null!=n)for(var a=0,f=(n=E(n)?n:j(n)).length;a<f;a++)null!=(t=n[a])&&t<o&&(o=t);else e=S(e,r),N(n,function(n,r,t){((u=e(n,r,t))<i||u===1/0&&o===1/0)&&(o=n,i=u)});return o},shuffle:function(n){return jr(n,1/0)},sample:jr,sortBy:function(n,e,r){var u=0;return e=S(e,r),dr(I(n,function(n,r,t){return{value:n,index:u++,criteria:e(n,r,t)}}).sort(function(n,r){var t=n.criteria,e=r.criteria;if(t!==e){if(e<t||void 0===t)return 1;if(t<e||void 0===e)return-1}return n.index-r.index}),"value")},groupBy:_r,indexBy:wr,countBy:Ar,partition:xr,toArray:mr,size:function(n){return null==n?0:(E(n)?n:b(n)).length},pick:Or,omit:Mr,first:Br,head:Br,take:Br,initial:Er,last:function(n,r,t){return null==n||n.length<1?null==r||t?void 0:[]:null==r||t?n[n.length-1]:R(n,Math.max(0,n.length-r))},rest:R,tail:R,drop:R,compact:function(n){return T(n,Boolean)},flatten:function(n,r){return B(n,r,!1)},without:Ir,uniq:Tr,unique:Tr,union:kr,intersection:function(n){for(var r=[],t=arguments.length,e=0,u=g(n);e<u;e++){var o=n[e];if(!k(r,o)){for(var i=1;i<t&&k(arguments[i],o);i++);i===t&&r.push(o)}}return r},difference:Nr,unzip:Dr,transpose:Dr,zip:Rr,object:function(n,r){for(var t={},e=0,u=g(n);e<u;e++)r?t[n[e]]=r[e]:t[n[e][0]]=n[e][1];return t},range:function(n,r,t){null==r&&(r=n||0,n=0),t=t||(r<n?-1:1);for(var e=Math.max(Math.ceil((r-n)/t),0),u=Array(e),o=0;o<e;o++,n+=t)u[o]=n;return u},chunk:function(n,r){if(null==r||r<1)return[];for(var t=[],e=0,u=n.length;e<u;)t.push(f.call(n,e,e+=r));return t},mixin:Vr,default:m});return n._=n});


wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'ltr' ] } );

/**
 * This JS file was auto-generated via Terser.
 *
 * Contributors should avoid editing this file, but instead edit the associated
 * non minified file file. For more information, check out our engineering docs
 * on how we handle JS minification in our engineering docs.
 *
 * @see: https://evnt.is/dev-docs-minification
 */

tribe.events=tribe.events||{},tribe.events.views=tribe.events.views||{},tribe.events.views.manager={},function($,_,obj){"use strict";var $window=$(window);obj.nonces=null,obj.selectors={container:'[data-js="tribe-events-view"]',form:'[data-js="tribe-events-view-form"]',link:'[data-js="tribe-events-view-link"]',dataScript:'[data-js="tribe-events-view-data"]',loader:".tribe-events-view-loader",loaderText:".tribe-events-view-loader__text",hiddenElement:".tribe-common-a11y-hidden",nonceScript:'[data-js="tribe-events-view-nonce-data"]'},obj.lastLocation={origin:"",pathname:""},obj.doingPopstate=!1,obj.currentAjaxRequest=null,obj.$lastContainer=$(),obj.$containers=$(),obj.cleanup=function(container){var $container=$(container),$form=$container.find(obj.selectors.form),$data=$container.find(obj.selectors.dataScript),data={};$data.length&&(data=JSON.parse($data.text().trim())),$container.trigger("beforeCleanup.tribeEvents",[$container,data]),$container.find(obj.selectors.link).off("click.tribeEvents",obj.onLinkClick),$form.length&&$form.off("submit.tribeEvents",obj.onSubmit),$container.trigger("afterCleanup.tribeEvents",[$container,data])},obj.setup=function(index,container){var $nonces=$($.find(obj.selectors.nonceScript)),$container=$(container),$form=$container.find(obj.selectors.form),$data=$container.find(obj.selectors.dataScript),data={};$nonces.length&&(obj.nonces=JSON.parse($($nonces[0]).text().trim()),$nonces.remove()),$data.length&&(data=JSON.parse($data.text().trim())),$container.trigger("beforeSetup.tribeEvents",[index,$container,data]),$container.find(obj.selectors.link).on("click.tribeEvents",obj.onLinkClick),$form.length&&$form.on("submit.tribeEvents",obj.onSubmit),$container.trigger("afterSetup.tribeEvents",[index,$container,data])},obj.getContainer=function(element){var $element=$(element);return $element.is(obj.selectors.container)?$element:$element.parents(obj.selectors.container).eq(0)},obj.getContainerData=function($container){var $data=$container.find(obj.selectors.dataScript);if($data.length)return JSON.parse($data.text().trim())},obj.shouldManageUrl=function($container){var shouldManageUrl=$container.data("view-manage-url");return shouldManageUrl=void 0===shouldManageUrl||/^(true|1|on|yes)$/.test(String(shouldManageUrl))},obj.updateUrl=function($container){if(!obj.doingPopstate&&obj.shouldManageUrl($container)){var $data=$container.find(obj.selectors.dataScript);if($data.length){var data=JSON.parse($data.text().trim());_.isObject(data)&&(_.isUndefined(data.url)||_.isUndefined(data.title)||(document.title=data.title,window.history.pushState(null,data.title,data.url),obj.lastLocation.pathname=document.location.pathname,obj.lastLocation.origin=document.location.origin))}}},obj.onLinkClick=function(event){var $container=obj.getContainer(this);$container.trigger("beforeOnLinkClick.tribeEvents",event),event.preventDefault();var containerData=obj.getContainerData($container),url=$(this).attr("href"),prevUrl=containerData.prev_url,shouldManageUrl=obj.shouldManageUrl($container),shortcodeId=$container.data("view-shortcode"),data={prev_url:encodeURI(decodeURI(prevUrl)),url:encodeURI(decodeURI(url)),should_manage_url:shouldManageUrl};return shortcodeId&&(data.shortcode=shortcodeId),obj.request(data,$container),$container.trigger("afterOnLinkClick.tribeEvents",event),!1},obj.onSubmit=function(event){var $container=obj.getContainer(this);$container.trigger("beforeOnSubmit.tribeEvents",event),event.preventDefault();var $form=$(this),data={view_data:Qs.parse($form.serialize())["tribe-events-views"]};return obj.request(data,$container),$container.trigger("afterOnSubmit.tribeEvents",event),!1},obj.onPopState=function(event){var target=event.originalEvent.target,url=target.location.href,$container=obj.getLastContainer();if(obj.lastLocation.origin===target.location.origin&&obj.lastLocation.pathname===target.location.pathname)return!1;if(obj.lastLocation.pathname=document.location.pathname,obj.lastLocation.origin=document.location.origin,!$container)return!1;obj.currentAjaxRequest&&obj.currentAjaxRequest.abort(),obj.doingPopstate=!0,$container.trigger("beforePopState.tribeEvents",event);var data={url:url};return obj.request(data,$container),!1},obj.setupRequestData=function(data,$container){var shouldManageUrl=obj.shouldManageUrl($container),containerData=obj.getContainerData($container);data.url||(data.url=containerData.url),data.prev_url||(data.prev_url=containerData.prev_url),data.should_manage_url=shouldManageUrl,obj.nonces&&(data=$.extend(data,obj.nonces));var requestData=$container.data("tribeRequestData");return $.isPlainObject(requestData)?$.extend(requestData,data):data},obj.request=function(data,$container){$container.trigger("beforeRequest.tribeEvents",[data,$container]);var settings=obj.getAjaxSettings($container);settings.data=obj.setupRequestData(data,$container),obj.currentAjaxRequest=$.ajax(settings),$container.trigger("afterRequest.tribeEvents",[data,$container])},obj.getAjaxSettings=function($container){return{url:$container.data("view-rest-url"),method:$container.data("view-rest-method")||"POST",async:!0,beforeSend:obj.ajaxBeforeSend,complete:obj.ajaxComplete,success:obj.ajaxSuccess,error:obj.ajaxError,context:$container}},obj.ajaxBeforeSend=function(jqXHR,settings){var $loader=this.find(obj.selectors.loader);if(this.trigger("beforeAjaxBeforeSend.tribeEvents",[jqXHR,settings]),$loader.length){$loader.removeClass(obj.selectors.hiddenElement.className());var $loaderText=$loader.find(obj.selectors.loaderText);$loaderText.text($loaderText.text())}this.attr("aria-busy","true"),this.trigger("afterAjaxBeforeSend.tribeEvents",[jqXHR,settings])},obj.ajaxComplete=function(jqXHR,textStatus){var $loader=this.find(obj.selectors.loader);this.trigger("beforeAjaxComplete.tribeEvents",[jqXHR,textStatus]),$loader.length&&$loader.addClass(obj.selectors.hiddenElement.className()),this.trigger("afterAjaxComplete.tribeEvents",[jqXHR,textStatus]),obj.doingPopstate&&(obj.doingPopstate=!1),obj.currentAjaxRequest=null},obj.ajaxSuccess=function(data,textStatus,jqXHR){var $container=this;$container.trigger("beforeAjaxSuccess.tribeEvents",[data,textStatus,jqXHR]);var $html=$(data),$nonces=$html.find(obj.selectors.nonceScript);$html=$html.not(obj.selectors.nonceScript),$nonces.length&&(obj.nonces=JSON.parse($($nonces[0]).text().trim())),obj.cleanup($container),document.dispatchEvent(new CustomEvent("containerReplaceBefore.tribeEvents",{detail:$container})),$container.replaceWith($html),$container=$html,obj.setup(0,$container),document.dispatchEvent(new CustomEvent("containerReplaceAfter.tribeEvents",{detail:$container})),obj.selectContainers(),obj.updateUrl($container),$container.trigger("afterAjaxSuccess.tribeEvents",[data,textStatus,jqXHR]),obj.shouldManageUrl($container)&&(obj.$lastContainer=$container)},obj.ajaxError=function(jqXHR,settings){this.trigger("beforeAjaxError.tribeEvents",[jqXHR,settings]),this.trigger("afterAjaxError.tribeEvents",[jqXHR,settings])},obj.selectContainers=function(){return obj.$containers=$(obj.selectors.container),obj.$containers},obj.getLastContainer=function(){return obj.$lastContainer.length||(obj.$lastContainer=obj.$containers.filter('[data-view-manage-url="1"]').eq(0)),obj.$lastContainer},obj.ready=function(){obj.selectContainers().each(obj.setup),obj.lastLocation={origin:document.location.origin,pathname:document.location.pathname}},$(obj.ready),$window.on("popstate",obj.onPopState)}(jQuery,window.underscore||window._,tribe.events.views.manager);


wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'ltr' ] } );

/**
 * This JS file was auto-generated via Terser.
 *
 * Contributors should avoid editing this file, but instead edit the associated
 * non minified file file. For more information, check out our engineering docs
 * on how we handle JS minification in our engineering docs.
 *
 * @see: https://evnt.is/dev-docs-minification
 */

tribe.events=tribe.events||{},tribe.events.views=tribe.events.views||{},tribe.events.views.breakpoints={},function($,obj){"use strict";var $document=$(document);obj.selectors={container:'[data-js="tribe-events-view"]',dataScript:'[data-js="tribe-events-view-data"]',breakpointClassPrefix:"tribe-common--breakpoint-"},obj.breakpoints={},obj.setContainerClasses=function($container,data){Object.keys(data.breakpoints).forEach((function(breakpoint){var className=obj.selectors.breakpointClassPrefix+breakpoint;obj.breakpoints[breakpoint]=data.breakpoints[breakpoint],$container.outerWidth()<data.breakpoints[breakpoint]?$container.removeClass(className):$container.addClass(className)}))},obj.handleResize=function(event){obj.setContainerClasses(event.data.container,event.data.data)},obj.unbindEvents=function($container){$container.off("resize.tribeEvents",obj.handleResize).off("beforeAjaxSuccess.tribeEvents",obj.deinit)},obj.bindEvents=function($container,data){$container.on("resize.tribeEvents",{container:$container,data:data},obj.handleResize).on("beforeAjaxSuccess.tribeEvents",{container:$container},obj.deinit)},obj.deinit=function(event,jqXHR,settings){obj.unbindEvents(event.data.container)},obj.initTasks=function($container,data){$container instanceof jQuery||($container=$($container)),obj.bindEvents($container,data),obj.setContainerClasses($container,data);$container.data("tribeEventsBreakpoints",{initialized:!0})},obj.init=function(event,index,$container,data){$container instanceof jQuery||($container=$($container));var state=$container.data("tribeEventsBreakpoints");state&&state.initialized||obj.initTasks($container,data)},obj.setup=function(container){var $container=$(container);if($container.is(obj.selectors.container)){var $data=$container.find(obj.selectors.dataScript),data={};$data.length&&(data=JSON.parse($data.text().trim())),obj.initTasks($container,data)}},obj.ready=function(){$document.on("afterSetup.tribeEvents",obj.selectors.container,obj.init)},$(obj.ready)}(jQuery,tribe.events.views.breakpoints);


wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'ltr' ] } );
