1try{ 2try{ 3try{ 4try{ 5try{ 6try{ 7try{ 8try{ 9try{ 10try{ 11try{ 12try{ 13try{ 14try{ 15try{ 16try{ 17try{ 18try{ 19try{ 20try{ 21try{ 22try{ 23try{ 24try{ 25try{ 26try{ 27try{ 28try{ 29try{ 30try{ 31try{ 32try{ 33try{ 34try{ 35try{ 36try{ 37try{ 38 39 40 var wcBlocksMiddlewareConfig = { 41 storeApiNonce: '048b8c78f0', 42 wcStoreApiNonceTimestamp: '1790786511' 43 }; 44 45(()=>{"use strict";var e={n:t=>{var o=t&&t.__esModule?()=>t.default:()=>t;return e.d(o,{a:o}),o},d:(t,o)=>{for(var r in o)e.o(o,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:o[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.wp.apiFetch;var o=e.n(t);let r="",a=0;try{const e=window.localStorage.getItem("storeApiNonce"),t=e?JSON.parse(e):{};r=t?.nonce||"",a=t?.timestamp||0}catch{}const s=e=>{const t=e.url||e.path;return!(!t||!e.method||"GET"===e.method)&&null!==/wc\/store\/v1\//.exec(t)},n=(e,t)=>{e!==r&&(a&&t<a||(r=e,a=t||Date.now()/1e3,window.localStorage.setItem("storeApiNonce",JSON.stringify({nonce:r,timestamp:a}))))},c=e=>{const t=e.headers||{};return e.headers={...t,Nonce:r},e};o().use((e,t)=>(s(e)&&(e=c(e),Array.isArray(e?.data?.requests)&&(e.data.requests=e.data.requests.map(c))),t(e,t))),o().setNonce=e=>{const t="function"==typeof e?.get?e.get("Nonce"):e.Nonce,o="function"==typeof e?.get?e.get("Nonce-Timestamp"):e["Nonce-Timestamp"];t&&n(t,o)},n(wcBlocksMiddlewareConfig.storeApiNonce,wcBlocksMiddlewareConfig.storeApiNonceTimestamp);const i=window.wp.url;o().use((e,t)=>("string"==typeof e.url&&s(e)&&(e.url=(0,i.addQueryArgs)(e.url,{_locale:"site"})),"string"==typeof e.path&&s(e)&&(e.path=(0,i.addQueryArgs)(e.path,{_locale:"site"})),t(e)));let l=window.localStorage.getItem("storeApiCartHash");o().setCartHash=e=>{const t="function"==typeof e?.get?e.get("Cart-Hash"):e["Cart-Hash"];t&&(e=>{e!==l&&(l=e,window.localStorage.setItem("storeApiCartHash",l))})(t)},(this.wc=this.wc||{}).wcBlocksMiddleware={}})(); 46 47 48 49} 50catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://labadibeachhotelgh.com/wp-content/plugins/woocommerce/assets/client/blocks/wc-blocks-middleware.js\n- Error message: "+ e.message);} 51 52 53 54 var wcBlocksMiddlewareConfig = { 55 storeApiNonce: '048b8c78f0', 56 wcStoreApiNonceTimestamp: '1790786511' 57 }; 58 59(()=>{"use strict";var e={9168:(e,t,r)=>{r.d(t,{isBoolean:()=>s,isObject:()=>a.Gv,isString:()=>i,objectHasProp:()=>a.DU});const s=e=>"boolean"==typeof e;var a=r(9487);r(6169),r(4457);const i=e=>"string"==typeof e;r(119)},6169:(e,t,r)=>{r.d(t,{k:()=>s});const s=e=>null===e},9487:(e,t,r)=>{r.d(t,{DU:()=>i,Gv:()=>a});var s=r(6169);const a=e=>!(0,s.k)(e)&&e instanceof Object&&e.constructor===Object;function i(e,t){return a(e)&&t in e}},4457:(e,t,r)=>{r.d(t,{mW:()=>a});var s=r(9168);const a=e=>(0,s.isObject)(e)&&(0,s.objectHasProp)(e,"type")},119:(e,t,r)=>{r.d(t,{Y:()=>a});var s=r(9168);const a=e=>(0,s.isObject)(e)&&Object.entries(e).every(([e,t])=>{return(0,s.isString)(e)&&(r=t,(0,s.isObject)(r)&&(0,s.objectHasProp)(r,"message")&&(0,s.objectHasProp)(r,"hidden")&&(0,s.isString)(r.message)&&(0,s.isBoolean)(r.hidden));var r})},254:e=>{var t,r=function(){function e(e,t){if("function"!=typeof e)throw new TypeError("DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but got: "+e+".");this._batchLoadFn=e,this._maxBatchSize=function(e){if(!(!e||!1!==e.batch))return 1;var t=e&&e.maxBatchSize;if(void 0===t)return 1/0;if("number"!=typeof t||t<1)throw new TypeError("maxBatchSize must be a positive number: "+t);return t}(t),this._batchScheduleFn=function(e){var t=e&&e.batchScheduleFn;if(void 0===t)return s;if("function"!=typeof t)throw new TypeError("batchScheduleFn must be a function: "+t);return t}(t),this._cacheKeyFn=function(e){var t=e&&e.cacheKeyFn;if(void 0===t)return function(e){return e};if("function"!=typeof t)throw new TypeError("cacheKeyFn must be a function: "+t);return t}(t),this._cacheMap=function(e){if(!(!e||!1!==e.cache))return null;var t=e&&e.cacheMap;if(void 0===t)return new Map;if(null!==t){var r=["get","set","delete","clear"].filter(function(e){return t&&"function"!=typeof t[e]}
59);if(0!==r.length)throw new TypeError("Custom cacheMap missing methods: "+r.join(", "))}return t}(t),this._batch=null,this.name=function(e){return e&&e.name?e.name:null}(t)}var t=e.prototype;return t.load=function(e){if(null==e)throw new TypeError("The loader.load() function must be called with a value, but got: "+String(e)+".");var t=function(e){var t=e._batch;if(null!==t&&!t.hasDispatched&&t.keys.length<e._maxBatchSize)return t;var r={hasDispatched:!1,keys:[],callbacks:[]};return e._batch=r,e._batchScheduleFn(function(){!function(e,t){if(t.hasDispatched=!0,0!==t.keys.length){var r;try{r=e._batchLoadFn(t.keys)}catch(r){return a(e,t,new TypeError("DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function errored synchronously: "+String(r)+"."))}if(!r||"function"!=typeof r.then)return a(e,t,new TypeError("DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did not return a Promise: "+String(r)+"."));r.then(function(e){if(!n(e))throw new TypeError("DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did not return a Promise of an Array: "+String(e)+".");if(e.length!==t.keys.length)throw new TypeError("DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did not return a Promise of an Array of the same length as the Array of keys.\n\nKeys:\n"+String(t.keys)+"\n\nValues:\n"+String(e));i(t);for(var r=0;r<t.callbacks.length;r++){var s=e[r];s instanceof Error?t.callbacks[r].reject(s):t.callbacks[r].resolve(s)}}).catch(function(r){a(e,t,r)})}else i(t)}(e,r)}),r}(this),r=this._cacheMap,s=this._cacheKeyFn(e);if(r){var o=r.get(s);if(o){var c=t.cacheHits||(t.cacheHits=[]);return new Promise(function(e){c.push(function(){e(o)})})}}t.keys.push(e);var d=new Promise(function(e,r){t.callbacks.push({resolve:e,reject:r})});return r&&r.set(s,d),d},t.loadMany=function(e){if(!n(e))throw new TypeError("The loader.loadMany() function must be called with Array<key> but got: "+e+".");for(var t=[],r=0;r<e.length;r++)t.push(this.load(e[r]).catch(function(e){return e}));return Promise.all(t)},t.clear=function(e){var t=this._cacheMap;if(t){var r=this._cacheKeyFn(e);t.delete(r)}return this},t.clearAll=function(){var e=this._cacheMap;return e&&e.clear(),this},t.prime=function(e,t){var r=this._cacheMap;if(r){var s,a=this._cacheKeyFn(e);void 0===r.get(a)&&(t instanceof Error?(s=Promise.reject(t)).catch(function(){}):s=Promise.resolve(t),r.set(a,s))}return this},e}(),s="object"==typeof process&&"function"==typeof process.nextTick?function(e){t||(t=Promise.resolve()),t.then(function(){process.nextTick(e)})}:"function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){setTimeout(e)};function a(e,t,r){i(t);for(var s=0;s<t.keys.length;s++)e.clear(t.keys[s]),t.callbacks[s].reject(r)}function i(e){if(e.cacheHits)for(var t=0;t<e.cacheHits.length;t++)e.cacheHits[t]()}function n(e){return"object"==typeof e&&null!==e&&"number"==typeof e.length&&(0===e.length||e.length>0&&Object.prototype.hasOwnProperty.call(e,e.length-1))}e.exports=r}},t={};function r(s){var a=t[s];if(void 0!==a)return a.exports;var i=t[s]={exports:{}};return e[s](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var s in t)r.o(t,s)&&!r.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};r.r(s),r.d(s,{API_BLOCK_NAMESPACE:()=>V,CART_STORE_KEY:()=>Ra,CHECKOUT_STORE_KEY:()=>tn,COLLECTIONS_STORE_KEY:()=>In,CheckoutPutAbortController:()=>hi,EMPTY_CART_COUPONS:()=>G,EMPTY_CART_CROSS_SELLS:()=>q,EMPTY_CART_ERRORS:()=>Q,EMPTY_CART_FEES:()=>z,EMPTY_CART_ITEMS:()=>B,EMPTY_CART_ITEM_ERRORS:()=>K,EMPTY_EXTENSIONS:()=>Z,EMPTY_PAYMENT_METHODS:()=>X,EMPTY_PAYMENT_REQUIREMENTS:()=>$,EMPTY_SHIPPING_RATES:()=>W,EMPTY_TAX_LINES:()=>J,PAYMENT_STORE_KEY:()=>
59ma,QUERY_STATE_STORE_KEY:()=>Un,SCHEMA_STORE_KEY:()=>Kn,STORE_NOTICES_STORE_KEY:()=>ro,VALIDATION_STORE_KEY:()=>na,cartStore:()=>Aa,checkoutStore:()=>en,clearCheckoutPutRequests:()=>gi,collectionsStore:()=>vn,getErrorDetails:()=>We,getInvalidParamNoticeContext:()=>Je,getNoticeContextFromErrorResponse:()=>et,hasInState:()=>nn,isEditor:()=>It,paymentStore:()=>ha,processErrorResponse:()=>tt,queryStateStore:()=>Hn,schemaStore:()=>zn,storeNoticesStore:()=>to,updateState:()=>Tn,validationStore:()=>ia});var a={};r.r(a),r.d(a,{getCartData:()=>se,getCartErrors:()=>le,getCartItem:()=>he,getCartMeta:()=>de,getCartTotals:()=>ce,getCouponBeingApplied:()=>_e,getCouponBeingRemoved:()=>Ee,getCustomerData:()=>ae,getHasCalculatedShipping:()=>oe,getItemsPendingDelete:()=>Re,getItemsPendingQuantityUpdate:()=>Te,getNeedsShipping:()=>ne,getProductsPendingAdd:()=>ve,getShippingRates:()=>ie,hasPendingItemsOperations:()=>Ie,isAddressFieldsForShippingRatesUpdating:()=>Ae,isApplyingCoupon:()=>pe,isCartDataStale:()=>ue,isCustomerDataUpdating:()=>Se,isItemPendingDelete:()=>ye,isItemPendingQuantity:()=>ge,isRemovingCoupon:()=>me,isShippingRateBeingSelected:()=>Pe});var i={};r.r(i),r.d(i,{addItemToCart:()=>Nt,applyCoupon:()=>Ot,applyExtensionCartUpdate:()=>Dt,changeCartItemQuantity:()=>jt,finishAddingToCart:()=>xt,itemIsPendingDelete:()=>Wt,itemIsPendingQuantity:()=>Qt,receiveApplyingCoupon:()=>qt,receiveCart:()=>Ct,receiveCartContents:()=>ft,receiveCartItem:()=>Kt,receiveError:()=>bt,receiveRemovingCoupon:()=>zt,removeCoupon:()=>Mt,removeItemFromCart:()=>Lt,saveForLater:()=>Ht,selectShippingRate:()=>Yt,setBillingAddress:()=>er,setCartData:()=>Gt,setErrorData:()=>Bt,setIsCartDataStale:()=>Xt,setProductsPendingAdd:()=>rr,setShippingAddress:()=>tr,shippingRatesBeingSelected:()=>Jt,startAddingToCart:()=>kt,syncCartWithIAPIStore:()=>wt,updateCustomerData:()=>Vt,updatingAddressFieldsForShippingRates:()=>Zt,updatingCustomerData:()=>$t});var n={};r.r(n),r.d(n,{getCartData:()=>_r,getCartTotals:()=>mr});var o={};r.r(o),r.d(o,{__internalEmitPaymentProcessingEvent:()=>$r,__internalRemoveAvailableExpressPaymentMethod:()=>_s,__internalRemoveAvailablePaymentMethod:()=>us,__internalSetActivePaymentMethod:()=>ns,__internalSetAvailableExpressPaymentMethods:()=>ls,__internalSetAvailablePaymentMethods:()=>ds,__internalSetExpressPaymentError:()=>Xr,__internalSetExpressPaymentMethodsInitialized:()=>as,__internalSetExpressPaymentStarted:()=>Jr,__internalSetPaymentError:()=>ts,__internalSetPaymentIdle:()=>Zr,__internalSetPaymentMethodData:()=>os,__internalSetPaymentMethodsInitialized:()=>ss,__internalSetPaymentProcessing:()=>es,__internalSetPaymentReady:()=>rs,__internalSetPaymentResult:()=>cs,__internalSetRegisteredExpressPaymentMethods:()=>ps,__internalSetShouldSavePaymentMethod:()=>is,__internalUpdateAvailablePaymentMethods:()=>ms});var c={};r.r(c),r.d(c,{expressPaymentMethodsInitialized:()=>Ls,getActivePaymentMethod:()=>fs,getActiveSavedPaymentMethods:()=>ks,getActiveSavedToken:()=>Cs,getAvailableExpressPaymentMethods:()=>Ds,getAvailablePaymentMethods:()=>bs,getCurrentStatus:()=>Hs,getIncompatiblePaymentMethods:()=>Ms,getPaymentMethodData:()=>Os,getPaymentResult:()=>js,getRegisteredExpressPaymentMethods:()=>ws,getSavedPaymentMethods:()=>Ns,getShouldSavePaymentMethod:()=>Us,getState:()=>Fs,hasPaymentError:()=>Rs,isExpressPaymentMethodActive:()=>Is,isExpressPaymentStarted:()=>Ss,isPaymentFailed:()=>vs,isPaymentIdle:()=>gs,isPaymentPristine:()=>hs,isPaymentProcessing:()=>As,isPaymentReady:()=>Ps,isPaymentStarted:()=>ys,isPaymentSuccess:()=>Ts,paymentMethodsInitialized:()=>xs});var d={};r.r(d),r.d(d,{clearAllValidationErrors:()=>Ws,clearValidationError:()=>Xs,clearValidationErrors:()=>Qs,hideValidationError:()=>$s,setValidationErrors:()=>Ks,showAllValidationErrors:()=>Js,showValidationError:()=>Zs});var l={};r.r(l),r.d(l,{getValidationError:()=>ea,getValidationErrorId:()=>ta,getValidationErrors:()=>sa,hasValidationErrors:()=>ra});var p={};r.r(p),r.d(p,{getActiveAutocompleteProvider:()=>Ka,getAdditionalFields:()=>xa,getCheckoutStatus:()=>La,getCustomerId:()=>Ia,getCustomerPassword:()=>Ca,getEditingBillingAddress:()=>Oa,getEditingShippingAddress:()=>Ma,getExtensionData:()=>Na,getOrderId:()=>fa,getOrderNotes:()=>ba,getRedirectUrl:()=>Da,getRegisteredAutocompleteProviders:()=>za,getShouldCreateAccount:()=>ka,getUseShippingAsBilling:()=>wa,hasError:()=>Ha,hasOrder:()=>Ua,isAfterProcessing:()=>Va,isBeforeProcessing:()=>Ya,isCalculating:()=>Ba,isComplete:()=>ja,isIdle:()=>Fa,isProcessing:()=>Ga,prefersCollection:()=>qa});var u={};r.r(u),r.d(u,{__internalDecrementCalculating:()=>Ni,__internalEmitAfterProcessingEvents:()=>Ai,__internalEmitValidateEvent:()=>Si,__internalFinishCalculation:()=>Oi,__internalIncrementCalculating:()=>
59Mi,__internalProcessCheckoutResponse:()=>yi,__internalSetAfterProcessing:()=>Ci,__internalSetBeforeProcessing:()=>vi,__internalSetComplete:()=>fi,__internalSetCustomerId:()=>ki,__internalSetCustomerPassword:()=>xi,__internalSetExtensionData:()=>Bi,__internalSetHasError:()=>Di,__internalSetIdle:()=>Ri,__internalSetOrderNotes:()=>Yi,__internalSetProcessing:()=>Ii,__internalSetRedirectUrl:()=>bi,__internalSetShouldCreateAccount:()=>ji,__internalSetUseShippingAsBilling:()=>Li,__internalStartCalculation:()=>wi,addAddressAutocompleteProvider:()=>qi,disableCheckoutFor:()=>Ti,setActiveAddressAutocompleteProvider:()=>zi,setAdditionalFields:()=>Fi,setEditingBillingAddress:()=>Hi,setEditingShippingAddress:()=>Ui,setExtensionData:()=>Gi,setPrefersCollection:()=>Vi,updateDraftOrder:()=>Pi});var _={};r.r(_),r.d(_,{getCollection:()=>cn,getCollectionError:()=>dn,getCollectionHeader:()=>ln,getCollectionLastModified:()=>pn});var m={};r.r(m),r.d(m,{receiveCollection:()=>En,receiveCollectionError:()=>hn,receiveLastModified:()=>gn});var E={};r.r(E),r.d(E,{getCollection:()=>Sn,getCollectionHeader:()=>An});var h={};r.r(h),r.d(h,{getValueForQueryContext:()=>On,getValueForQueryKey:()=>wn});var g={};r.r(g),r.d(g,{setQueryValue:()=>kn,setValueForQueryContext:()=>xn});var y={};r.r(y),r.d(y,{getRoute:()=>jn,getRoutes:()=>Fn});var S={};r.r(S),r.d(S,{receiveRoutes:()=>Vn});var A={};r.r(A),r.d(A,{getRoute:()=>Gn,getRoutes:()=>Bn});var P={};r.r(P),r.d(P,{registerContainer:()=>Wn,unregisterContainer:()=>Xn});var T={};r.r(T),r.d(T,{getRegisteredContainers:()=>$n});const R=window.wp.notices,v=window.wp.data,I=window.wp.dataControls,C=window.wp.i18n,f="wc/store/cart",b={code:"cart_api_error",message:(0,C.__)("Unable to get cart data from the API.","woocommerce"),data:{status:500}},D=window.wc.wcSettings,w=(0,D.getSetting)("wcBlocksConfig",{pluginUrl:"",productCount:0,defaultAvatar:"",restApiRoutes:{},wordCountType:"words"}),O=w.pluginUrl+"assets/images/",M=(w.pluginUrl,D.STORE_PAGES.shop,D.STORE_PAGES.checkout,D.STORE_PAGES.checkout,D.STORE_PAGES.privacy,D.STORE_PAGES.privacy,D.STORE_PAGES.terms,D.STORE_PAGES.terms,D.STORE_PAGES.cart,D.STORE_PAGES.cart,D.STORE_PAGES.myaccount?.permalink?D.STORE_PAGES.myaccount.permalink:(0,D.getSetting)("wpLoginUrl","/wp-login.php"),(0,D.getSetting)("localPickupEnabled",!1)),N=((0,D.getSetting)("shippingMethodsExist",!1),(0,D.getSetting)("shippingEnabled",!0)),k=(0,D.getSetting)("countries",{}),x=(0,D.getSetting)("countryData",{}),L={...Object.fromEntries(Object.keys(x).filter(e=>!0===x[e].allowBilling).map(e=>[e,k[e]||""])),...Object.fromEntries(Object.keys(x).filter(e=>!0===x[e].allowShipping).map(e=>[e,k[e]||""]))},H=(Object.fromEntries(Object.keys(L).map(e=>[e,x[e].states||{}])),Object.fromEntries(Object.keys(L).map(e=>[e,x[e].locale||{}]))),U={address:["first_name","last_name","company","address_1","address_2","city","postcode","country","state","phone"],contact:["email"],order:[]},j=(0,D.getSetting)("addressFieldsLocations",U).address,F=(0,D.getSetting)("addressFieldsLocations",U).contact,Y=(0,D.getSetting)("addressFieldsLocations",U).order,V=((0,D.getSetting)("additionalOrderFields",{}),(0,D.getSetting)("additionalContactFields",{}),(0,D.getSetting)("additionalAddressFields",{}),"wc/blocks"),G=[],B=[],q=[],z=[],K=[],Q=[],W=[],X=[],$=[],Z={},J=[],ee={};j.forEach(e=>{ee[e]=""});const te={};j.forEach(e=>{te[e]=""}),te.email="";const re={cartItemsPendingQuantity:[],cartItemsPendingDelete:[],productsPendingAdd:[],cartData:{coupons:G,shippingRates:W,shippingAddress:ee,billingAddress:te,items:B,itemsCount:0,itemsWeight:0,crossSells:q,needsShipping:!0,needsPayment:!1,hasCalculatedShipping:!0,fees:z,totals:{currency_code:"",currency_symbol:"",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"",currency_suffix:"",total_items:"0",total_items_tax:"0",total_fees:"0",total_fees_tax:"0",total_discount:"0",total_discount_tax:"0",total_shipping:"0",total_shipping_tax:"0",total_price:"0",total_tax:"0",tax_lines:J},errors:K,paymentMethods:X,paymentRequirements:$,extensions:Z},metaData:{updatingCustomerData:!1,updatingAddressFieldsForShippingRates:!1,updatingSelectedRate:!1,applyingCoupon:"",removingCoupon:"",isCartDataStale:!1},errors:Q},se=e=>e.cartData,ae=(0,v.createSelector)(e=>({shippingAddress:e.cartData.shippingAddress,billingAddress:e.cartData.billingAddress})),ie=e=>e.cartData.shippingRates,ne=e=>e.cartData.needsShipping,oe=e=>e.cartData.hasCalculatedShipping,ce=e=>e.cartData.totals||re.cartData.totals,de=e=>e.metaData||re.metaData,le=e=>
59e.errors,pe=e=>!!e.metaData.applyingCoupon,ue=e=>e.metaData.isCartDataStale,_e=e=>e.metaData.applyingCoupon||"",me=e=>!!e.metaData.removingCoupon,Ee=e=>e.metaData.removingCoupon||"",he=(e,t)=>e.cartData.items.find(e=>e.key===t),ge=(e,t)=>e.cartItemsPendingQuantity.includes(t),ye=(e,t)=>e.cartItemsPendingDelete.includes(t),Se=e=>!!e.metaData.updatingCustomerData,Ae=e=>!!e.metaData.updatingAddressFieldsForShippingRates,Pe=e=>!!e.metaData.updatingSelectedRate,Te=e=>e.cartItemsPendingQuantity,Re=e=>e.cartItemsPendingDelete,ve=e=>e.productsPendingAdd,Ie=e=>e.productsPendingAdd.length>0||e.cartItemsPendingQuantity.length>0||e.cartItemsPendingDelete.length>0,Ce={SET_CART_DATA:"SET_CART_DATA",SET_ERROR_DATA:"SET_ERROR_DATA",APPLYING_COUPON:"APPLYING_COUPON",REMOVING_COUPON:"REMOVING_COUPON",RECEIVE_CART_ITEM:"RECEIVE_CART_ITEM",ITEM_PENDING_QUANTITY:"ITEM_PENDING_QUANTITY",SET_IS_CART_DATA_STALE:"SET_IS_CART_DATA_STALE",RECEIVE_REMOVED_ITEM:"RECEIVE_REMOVED_ITEM",UPDATING_CUSTOMER_DATA:"UPDATING_CUSTOMER_DATA",UPDATING_ADDRESS_FIELDS_FOR_SHIPPING_RATES:"UPDATING_ADDRESS_FIELDS_FOR_SHIPPING_RATES",SET_BILLING_ADDRESS:"SET_BILLING_ADDRESS",SET_SHIPPING_ADDRESS:"SET_SHIPPING_ADDRESS",UPDATING_SELECTED_SHIPPING_RATE:"UPDATING_SELECTED_SHIPPING_RATE",PRODUCT_PENDING_ADD:"PRODUCT_PENDING_ADD"},fe=window.wc.wcTypes;var be=function(){return be=Object.assign||function(e){for(var t,r=1,s=arguments.length;r<s;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},be.apply(this,arguments)};function De(e){return e.toLowerCase()}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var we=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],Oe=/[^A-Z0-9]+/gi;function Me(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce(function(e,t){return e.replace(t,r)},e)}function Ne(e,t){var r=e.charAt(0),s=e.substr(1).toLowerCase();return t>0&&r>="0"&&r<="9"?"_"+r+s:""+r.toUpperCase()+s}function ke(e,t){return 0===t?e.toLowerCase():Ne(e,t)}const xe=e=>((e,t)=>Object.entries(e).reduce((e,[r,s])=>({...e,[t(0,r)]:s}),{}))(e,(e,t)=>{return void 0===r&&(r={}),function(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var r=t.splitRegexp,s=void 0===r?we:r,a=t.stripRegexp,i=void 0===a?Oe:a,n=t.transform,o=void 0===n?De:n,c=t.delimiter,d=void 0===c?" ":c,l=Me(Me(e,s,"$1\0$2"),i,"\0"),p=0,u=l.length;"\0"===l.charAt(p);)p++;for(;"\0"===l.charAt(u-1);)u--;return l.slice(p,u).split("\0").map(o).join(d)}(e,be({delimiter:"",transform:Ne},t))}(t,be({transform:ke},r));var r}),Le=window.CustomEvent||null,He=(e,{bubbles:t=!1,cancelable:r=!1,element:s,detail:a={}})=>{if(!Le)return;s||(s=document.body);const i=new Le(e,{bubbles:t,cancelable:r,detail:a});s.dispatchEvent(i)},Ue=()=>{He("wc-blocks_adding_to_cart",{bubbles:!0,cancelable:!0})},je=({preserveCartData:e=!1})=>{He("wc-blocks_added_to_cart",{bubbles:!0,cancelable:!0,detail:{preserveCartData:e}})},Fe=window.wp.htmlEntities,Ye=window.wp.hooks,Ve=window.wp.dom,Ge=e=>(0,Ve.__unstableStripHTML)((0,Fe.decodeEntities)(e)),Be=({oldCart:e,newCart:t,cartItemsPendingQuantity:r=[],cartItemsPendingDelete:s=[],productsPendingAdd:a=[]})=>{(0,v.select)(f).hasFinishedResolution("getCartData")&&(((e,t,r)=>{e.items.forEach(e=>{r.includes(e.key)||!t.items.find(t=>t&&t.key===e.key)&&(0,Ye.applyFilters)("woocommerce_show_cart_item_removed_notice",!0,e)&&(0,v.dispatch)("core/notices").createInfoNotice((0,C.sprintf)(/* translators: %s is the name of the item. */ /* translators: %s is the name of the item. */ 60(0,C.__)('"%s" was removed from your cart.',"woocommerce"),Ge(e.name)),{context:"wc/cart",speak:!0,type:"snackbar",id:`${e.key}-removed`})})})(e,t,s),((e,t,r,s)=>{t.items.forEach(t=>{if(r.includes(t.key)||s.includes(t.id))return;const a=e.items.find(e=>e&&e.key===t.key);return a&&t.key===a.key?(t.quantity!==a.quantity&&(e=>e.quantity>=e.quantity_limits.minimum&&e.quantity<=e.quantity_limits.maximum&&e.quantity%e.quantity_limits.multiple_of===0)(t)&&(0,Ye.applyFilters)("woocommerce_show_cart_item_quantity_changed_notice",!0,t)&&(0,v.dispatch)("core/notices").createInfoNotice((0,C.sprintf)(/* translators: %1$s is the name of the item, %2$d is the quantity of the item. */ /* translators: %1$s is the name of the item, %2$d is the quantity of the item. */ 61(0,C.__)('The quantity of "%1$s" was changed to %2$s.',"woocommerce"),Ge(t.name),t.quantity),{context:"wc/cart",speak:!0,type:"snackbar",id:`${t.key}-quantity-update`}),t):void 0})})(e,t,r,a))},qe=(0,C.__)("Something went wrong. Please contact us to get assistance.","woocommerce"),ze=(e,t,r)=>{const s=r?.context;(0,v.select)("wc/store/payment").isExpressPaymentMethodActive()||void 0===s||(0,v.dispatch)(R.store).createNotice(e,t,{isDismissible:!0,...r,context:s})};let Ke=function(e){return e.CART="wc/cart",e.CHECKOUT="wc/checkout",e.PAYMENTS="wc/checkout/payments",e.EXPRESS_PAYMENTS="wc/checkout/express-payments",e.CONTACT_INFORMATION="wc/checkout/contact-information",e.SHIPPING_ADDRESS="wc/checkout/shipping-address",e.BILLING_ADDRESS="wc/checkout/billing-address",e.SHIPPING_METHODS="wc/checkout/shipping-methods",e.CHECKOUT_ACTIONS="wc/checkout/checkout-actions",e.ORDER_INFORMATION="wc/checkout/order-information",e}({});const Qe=e=>!(0,fe.isObject)(e)||void 0===e.retry||!0===e.retry,We=e=>{const t=(0,fe.objectHasProp)(e.data,"details")?Object.entries(e.data.details):null;return t?t.reduce((e,[t,{code:r,message:s,additional_errors:a=[],data:i}])=>[...e,{param:t,id:`${t}_${r}`,code:r,message:(0,Fe.decodeEntities)(s),data:i},...Array.isArray(a)?a.flatMap(e=>{if(!(0,fe.objectHasProp)(e,"code")||!(0,fe.objectHasProp)(e,"message"))return[];const r=[{param:t,id:`${t}_${e.code}`,code:e.code,message:(0,Fe.decodeEntities)(e.message),data:e.data}];return void 0!==e.data?[...r,...We(e)]:r}):[]],[]):[]},Xe=e=>{switch(e){case"woocommerce_rest_missing_email_address":case"woocommerce_rest_invalid_email_address":return Ke.CONTACT_INFORMATION;default:return Ke.CART}},$e=(e,t)=>
61{switch(e){case"invalid_email":return Ke.CONTACT_INFORMATION;case"billing_address":return"invalid_email"===t?Ke.CONTACT_INFORMATION:Ke.BILLING_ADDRESS;case"shipping_address":return Ke.SHIPPING_ADDRESS;default:return}},Ze=({code:e,id:t,param:r,data:s},a)=>{let i="",n="";return(0,fe.isObject)(s)&&(0,fe.objectHasProp)(s,"key")&&(0,fe.objectHasProp)(s,"location")&&(0,fe.isString)(s.location)&&(i=(e=>{switch(e){case"contact":return Ke.CONTACT_INFORMATION;case"order":return Ke.ORDER_INFORMATION;default:return}})(s.location)),(0,fe.objectHasProp)(s,"key")&&(0,fe.isString)(s.key)&&(n=`${s.key}__${t}`),{id:n||t,context:a||i||$e(r,e)||Xe(e)}},Je=(e,t)=>We(e).map(e=>Ze(e,t)),et=(e,t)=>"rest_invalid_param"===e.code?Je(e,t):[{id:e.code,context:t||e?.data?.context||Xe(e.code)}],tt=(e,t)=>{if(!(0,fe.isApiErrorResponse)(e))return;if("rest_invalid_param"===e.code)return((e,t)=>{We(e).forEach(e=>{ze("error",e.message,Ze(e,t))})})(e,t);let r=(0,Fe.decodeEntities)(e.message)||qe;"invalid_json"===e.code&&(r=qe),ze("error",r,{id:e.code,context:t||e?.data?.context||Xe(e.code)})},rt=(e=null,t=null)=>{null!==t&&t.flatMap(e=>et(e)).forEach(e=>{var t;t=e,(0,v.dispatch)("core/notices").removeNotice(t.id,t.context)}),null!==e&&(e=>{e.forEach(e=>{ze("error",(0,Fe.decodeEntities)(e.message),{id:e.code,context:e?.data?.context||"wc/cart"})})})((e=>e.filter(fe.isApiErrorResponse))(e))},st=window.wp.apiFetch;var at=r.n(st),it=r(254),nt=r.n(it);const ot={},ct={code:"invalid_json",message:(0,C.__)("The response is not a valid JSON response.","woocommerce")},dt=e=>{at().setNonce&&"function"==typeof at().setNonce?at().setNonce(e):console.error('The monkey patched function on APIFetch, "setNonce", is not present, likely another plugin or some other code has removed this augmentation'),at().setCartHash&&"function"==typeof at()?.setCartHash?at().setCartHash(e):console.error('The monkey patched function on APIFetch, "setCartHash", is not present, likely another plugin or some other code has removed this augmentation')},lt=new(nt())(e=>at()({path:"/wc/store/v1/batch",method:"POST",data:{requests:e.map(e=>({...e,body:e?.data}))}}).then(t=>((0,fe.assertBatchResponseIsValid)(t),e.map((e,r)=>t.responses[r]||ot))),{batchScheduleFn:e=>setTimeout(e,300),cache:!1,maxBatchSize:25}),pt=e=>({type:"API_FETCH_WITH_HEADERS",options:e}),ut=["/wc/store/v1/checkout","/wc/store/v1/checkout?__experimental_calc_totals=true","/wc/store/v1/cart/update-item","/wc/store/v1/shopper-lists/saved-for-later/items"],_t=e=>new Promise((t,r)=>{!e.method||"GET"===e.method||ut.includes(e.path||"")?at()({...e,parse:!1}).then(e=>{e instanceof Response?e.json().then(r=>{t({response:r,headers:e.headers}),dt(e.headers)}).catch(()=>{r(ct)}):r(ct)}).catch(e=>{"AbortError"!==e.name?(e.headers&&dt(e.headers),"function"==typeof e.json?e.json().then(e=>{r(e)}).catch(()=>{r(ct)}):r(e.message)):r(e)}):(async e=>await lt.load(e))(e).then(e=>{throw(0,fe.assertResponseIsValid)(e),e.status>=200&&e.status<300&&(t({response:e.body,headers:e.headers}),dt(e.headers)),e}).catch(e=>{e.headers&&dt(e.headers),e.body?r(e.body):r(e)})}),mt=e=>_t(e),Et={API_FETCH_WITH_HEADERS:({options:e})=>_t(e)};var ht=r(9487);const gt=(e,t,r)=>{let s,a=null;const i=(...i)=>{a=i,s&&clearTimeout(s),s=setTimeout(()=>{s=null,!r&&a&&e(...a)},t),r&&!s&&e(...i)};return i.flush=()=>{s&&a&&(e(...a),clearTimeout(s),s=null)},i.clear=()=>{s&&clearTimeout(s),s=null},i},yt=window.wp.url,St="wc/store/validation",At=(e,t)=>"string"!=typeof t?t:"email"===e?(0,yt.isEmail)(t)?t.trim():"":"postcode"===e?t.replace(" ","").toUpperCase():t.trim(),Pt=(e,t)=>Object.keys(e).filter(r=>At(r,e[r])!==At(r,t[r])),Tt=gt(e=>{window.localStorage.setItem("WOOCOMMERCE_CHECKOUT_IS_CUSTOMER_DATA_DIRTY",e?"true":"false")},300);let Rt=!0;const vt=e=>{Rt=e},It=()=>(0,yt.getPath)(window.location.href)?.includes("site-editor.php")||(0,yt.getPath)(window.location.href)?.includes("post.php")||!!(0,v.select)("core/editor")||!1,Ct=e=>({dispatch:t,select:r})=>{const s=xe(e),a=r.getCartData(),i=[...a.errors,...r.getCartErrors()];t.setCartData(s);const n=r.getCartData(),o=r.getItemsPendingDelete();if(Be({oldCart:a,newCart:n,cartItemsPendingQuantity:r.getItemsPendingQuantityUpdate(),cartItemsPendingDelete:o,productsPendingAdd:r.getProductsPendingAdd()}),o.length>0){const e=new Set(n.items.map(e=>e.key));o.forEach(r=>{e.has(r)||t.itemIsPendingDelete(r,!1)})}rt(n.errors,i),t.setErrorData(null)},ft=e=>({dispatch:t})=>{const{shipping_address:r,billing_address:s,...a}=e;
61t.receiveCart(a)},bt=(e=null)=>({dispatch:t})=>{(0,fe.isApiErrorResponse)(e)&&(e.data?.cart&&t.receiveCart(e?.data?.cart),t.setErrorData(e))},Dt=e=>async({dispatch:t})=>{try{const{response:r}=await mt({path:"/wc/store/v1/cart/extensions",method:"POST",data:{namespace:e.namespace,data:e.data},cache:"no-store"}),s=e.overwriteDirtyCustomerData,a=(0,ht.Gv)(s)?{shipping_address:!0===s.shipping_address,billing_address:!0===s.billing_address}:{shipping_address:!0===s,billing_address:!0===s},i="true"===window.localStorage.getItem("WOOCOMMERCE_CHECKOUT_IS_CUSTOMER_DATA_DIRTY"),n=a.shipping_address||!i,o=a.billing_address||!i;if(!n||!o){const{shipping_address:e,billing_address:s,...a}=r,i={...a};return n&&(i.shipping_address=r.shipping_address),o&&(i.billing_address=r.billing_address),t.receiveCart(i),r}return t.receiveCart(r),r}catch(e){return t.receiveError((0,fe.isApiErrorResponse)(e)?e:null),Promise.reject(e)}},wt=({cartItemsPendingQuantity:e,cartItemsPendingDelete:t,productsPendingAdd:r})=>async({dispatch:s,select:a})=>{try{r&&r.length>0&&r.forEach(e=>{s.setProductsPendingAdd(e,!0)}),e&&e.length>0&&e.forEach(e=>{s.itemIsPendingQuantity(e,!0)}),t&&t.length>0&&t.forEach(e=>{s.itemIsPendingDelete(e,!0)});const{response:i}=await mt({path:"/wc/store/v1/cart",method:"GET",cache:"no-store"}),n=xe(i),o=a.getCartData(),c=[...o.errors,...a.getCartErrors()];vt(!1),s.setCartData(n),vt(!0),r&&r.length>0&&r.forEach(e=>{s.setProductsPendingAdd(e,!1)}),e&&e.length>0&&e.forEach(e=>{s.itemIsPendingQuantity(e,!1)}),t&&t.length>0&&t.forEach(e=>{s.itemIsPendingDelete(e,!1)});const d=a.getCartData();Be({oldCart:o,newCart:d,cartItemsPendingQuantity:e,cartItemsPendingDelete:t,productsPendingAdd:r}),rt(d.errors,c),s.setErrorData(null)}catch(a){return r&&r.length>0&&r.forEach(e=>{s.setProductsPendingAdd(e,!1)}),e&&e.length>0&&e.forEach(e=>{s.itemIsPendingQuantity(e,!1)}),t&&t.length>0&&t.forEach(e=>{s.itemIsPendingDelete(e,!1)}),s.receiveError((0,fe.isApiErrorResponse)(a)?a:null),Promise.reject(a)}},Ot=e=>
61async({dispatch:t})=>{try{t.receiveApplyingCoupon(e);const{response:r}=await mt({path:"/wc/store/v1/cart/apply-coupon",method:"POST",data:{code:e},cache:"no-store"});return t.receiveCartContents(r),r}catch(e){return t.receiveError((0,fe.isApiErrorResponse)(e)?e:null),Promise.reject(e)}finally{t.receiveApplyingCoupon("")}},Mt=e=>async({dispatch:t})=>{try{t.receiveRemovingCoupon(e);const{response:r}=await mt({path:"/wc/store/v1/cart/remove-coupon",method:"POST",data:{code:e},cache:"no-store"});return t.receiveCartContents(r),r}catch(e){return t.receiveError((0,fe.isApiErrorResponse)(e)?e:null),Promise.reject(e)}finally{t.receiveRemovingCoupon("")}},Nt=(e,t=1,r,s={})=>async({dispatch:a})=>{try{a.startAddingToCart(e);const{response:i}=await mt({path:"/wc/store/v1/cart/add-item",method:"POST",data:{...s,id:e,quantity:t,variation:r},cache:"no-store"});return a.receiveCart(i),a.finishAddingToCart(e),i}catch(t){return a.receiveError((0,fe.isApiErrorResponse)(t)?t:null),a.finishAddingToCart(e,!1),Promise.reject(t)}};function kt(e){return async({dispatch:t})=>{Ue(),t.setProductsPendingAdd(e,!0)}}function xt(e,t=!0){return async({dispatch:r})=>{t&&je({preserveCartData:!0}),r.setProductsPendingAdd(e,!1)}}const Lt=e=>
61async({dispatch:t})=>{try{t.itemIsPendingDelete(e);const{response:r}=await mt({path:"/wc/store/v1/cart/remove-item",data:{key:e},method:"POST",cache:"no-store"});return t.receiveCart(r),r}catch(e){return t.receiveError((0,fe.isApiErrorResponse)(e)?e:null),Promise.reject(e)}finally{t.itemIsPendingDelete(e,!1)}},Ht=e=>async()=>{if("string"!=typeof e||0===e.trim().length)throw new Error((0,C.__)("A cart item is required to save it for later.","woocommerce"));const{response:t}=await mt({path:"/wc/store/v1/shopper-lists/saved-for-later/items",method:"POST",data:{cart_item_key:e},cache:"no-store"});return window.dispatchEvent(new CustomEvent("wc-blocks_store_sync_required",{detail:{type:"shopper-list-item-added",slug:"saved-for-later",item:t}})),t},Ut=new Map,jt=(e,t)=>async({dispatch:r,select:s})=>{const a=s.getCartItem(e);if(a?.quantity===t)return;const i=Ut.get(e);i&&i.abort();const n="undefined"==typeof AbortController?null:new AbortController;n&&Ut.set(e,n);try{r.itemIsPendingQuantity(e);const{response:s}=await mt({path:"/wc/store/v1/cart/update-item",method:"POST",data:{key:e,quantity:t},cache:"no-store",signal:n?.signal??null});return r.receiveCart(s),s}catch(e){if(e instanceof DOMException&&"AbortError"===e.name)return;return r.receiveError((0,fe.isApiErrorResponse)(e)?e:null),Promise.reject(e)}finally{Ut.get(e)===n&&Ut.delete(e),r.itemIsPendingQuantity(e,!1)}};let Ft=null;const Yt=(e,t=null)=>async({dispatch:r,select:s})=>{const a=s.getShippingRates().find(e=>e.package_id===t)?.shipping_rates.find(e=>!0===e.selected);if(a?.rate_id===e)return void(Ft&&Ft.abort());if(It())return;const i=s.getShippingRates();try{r.shippingRatesBeingSelected(!0),r.setCartData({shippingRates:i.map(r=>null!==t&&r.package_id!==t?r:{...r,shipping_rates:r.shipping_rates.map(t=>({...t,selected:t.rate_id===e}))})}),Ft&&Ft.abort(),Ft="undefined"==typeof AbortController?null:new AbortController;const{response:s}=await mt({path:"/wc/store/v1/cart/select-shipping-rate",method:"POST",data:{package_id:t,rate_id:e},cache:"no-store",signal:Ft?.signal||null}),{shipping_address:a,billing_address:n,...o}=s;return r.receiveCart(o),r.shippingRatesBeingSelected(!1),s}catch(e){return r.setCartData({shippingRates:i}),r.receiveError((0,fe.isApiErrorResponse)(e)?e:null),r.shippingRatesBeingSelected(!1),Promise.reject(e)}},Vt=(e,t=!0,r=!1)=>async({dispatch:s})=>{try{s.updatingCustomerData(!0),"shipping_address"in e&&r&&s.updatingAddressFieldsForShippingRates(!0);const{response:a}=await mt({path:"/wc/store/v1/cart/update-customer",method:"POST",data:e,cache:"no-store"});return t?s.receiveCartContents(a):s.receiveCart(a),Tt(!1),a}catch(e){return s.receiveError((0,fe.isApiErrorResponse)(e)?e:null),Tt(!0),Promise.reject(e)}finally{s.updatingCustomerData(!1),s.updatingAddressFieldsForShippingRates(!1)}};function Gt(e){return{type:Ce.SET_CART_DATA,response:e}}function Bt(e){return{type:Ce.SET_ERROR_DATA,error:e}}function qt(e){return{type:Ce.APPLYING_COUPON,couponCode:e}}function zt(e){return{type:Ce.REMOVING_COUPON,couponCode:e}}function Kt(e=null){return{type:Ce.RECEIVE_CART_ITEM,cartItem:e}}function Qt(e,t=!0){return{type:Ce.ITEM_PENDING_QUANTITY,cartItemKey:e,isPendingQuantity:t}}function Wt(e,t=!0){return{type:Ce.RECEIVE_REMOVED_ITEM,cartItemKey:e,isPendingDelete:t}}function Xt(e=!0){return{type:Ce.SET_IS_CART_DATA_STALE,isCartDataStale:e}}function $t(e){return{type:Ce.UPDATING_CUSTOMER_DATA,isResolving:e}}function Zt(e){return{type:Ce.UPDATING_ADDRESS_FIELDS_FOR_SHIPPING_RATES,isResolving:e}}function Jt(e){return{type:Ce.UPDATING_SELECTED_SHIPPING_RATE,isResolving:e}}function er(e){return{type:Ce.SET_BILLING_ADDRESS,billingAddress:e}}function tr(e){return{type:Ce.SET_SHIPPING_ADDRESS,shippingAddress:e}}function rr(e,t){return{type:Ce.PRODUCT_PENDING_ADD,productId:e,isAdding:t}}const sr={currency_code:D.SITE_CURRENCY.code,currency_symbol:D.SITE_CURRENCY.symbol,currency_minor_unit:D.SITE_CURRENCY.minorUnit,currency_decimal_separator:D.SITE_CURRENCY.decimalSeparator,currency_thousand_separator:D.SITE_CURRENCY.thousandSeparator,currency_prefix:D.SITE_CURRENCY.prefix,currency_suffix:D.SITE_CURRENCY.suffix},ar=(e,t=2)=>{const r=D.SITE_CURRENCY.minorUnit;if(r===t||!e)return e;const s=Math.pow(10,r);return(Math.round(parseInt(e,10)/Math.pow(10,t))*s).toString()},ir=(0,D.getSetting)("localPickupEnabled",!1),nr=(0,D.getSetting)("localPickupText",(0,C.__)("Local pickup","woocommerce")),or=(0,D.getSetting)("localPickupCost",""),cr=ir?(0,D.getSetting)("localPickupLocations",[]):[],dr=cr?Object.values(cr).map((e,t)=>({...sr,name:`${nr} (${e.name})`,description:"",delivery_time:"",price:ar(or,0)||"0",taxes:"0",rate_id:`pickup_location:${t+1}`,instance_id:t+1,meta_data:[{key:"pickup_location",value:e.name},{key:"pickup_address",value:e.formatted_address},{key:"pickup_details",value:e.details}],method_id:"pickup_location",selected:!1})):[],lr=[{destination:{address_1:"",address_2:"",city:"",state:"",postcode:"",country:""},package_id:0,name:(0,C.__)("Shipping","woocommerce"),items:[{key:"33e75ff09dd601bbe69f351039152189",name:(0,C._x)("Beanie with Logo","example product in Cart Block","woocommerce"),quantity:2},{key:"6512bd43d9caa6e02c990b0a82652dca",name:(0,C._x)("Beanie","example product in Cart Block","woocommerce"),quantity:1}],shipping_rates:[{...sr,name:(0,C.__)("Flat rate shipping","woocommerce"),description:"",delivery_time:"",price:ar("500"),taxes:"0",rate_id:"flat_rate:0",instance_id:0,meta_data:[],method_id:"flat_rate",selected:!1},{...sr,name:(0,C.__)("Free shipping","woocommerce"),description:"",delivery_time:"",price:"0",taxes:"0",rate_id:"free_shipping:1",instance_id:0,meta_data:[],method_id:"flat_rate",selected:!0},...dr]}],pr=(0,D.getSetting)("displayCartPricesIncludingTax",!1),ur={coupons:[],shipping_rates:(0,D.getSetting)("shippingMethodsExist",!1)||(0,D.getSetting)("localPickupEnabled",!1)?lr:[],items:[{key:"1",id:1,type:"simple",quantity:2,catalog_visibility:"visible",name:(0,C.__)("Beanie","woocommerce"),summary:(0,C.__)("Beanie","woocommerce"),short_description:(0,C.__)("Warm hat for winter","woocommerce"),description:"Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.",sku:"woo-beanie",permalink:"https://example.org",low_stock_remaining:2,backorders_allowed:!1,show_backorder_badge:!1,sold_individually:!1,quantity_limits:{minimum:1,maximum:99,multiple_of:1,editable:!0},images:[{id:10,src:O+"previews/beanie.jpg",thumbnail:O+"previews/beanie.jpg",srcset:"",sizes:"",name:"",alt:""}],variation:[{attribute:(0,C.__)("Color","woocommerce"),value:(0,C.__)("Yellow","woocommerce")},{attribute:(0,C.__)("Size","woocommerce"),value:(0,C.__)("Small","woocommerce")}],prices:{...sr,price:ar(pr?"12000":"10000"),regular_price:ar(pr?"120":"
61100"),sale_price:ar(pr?"12000":"10000"),price_range:null,raw_prices:{precision:6,price:pr?"12000000":"10000000",regular_price:pr?"12000000":"10000000",sale_price:pr?"12000000":"10000000"}},totals:{...sr,line_subtotal:ar("2000"),line_subtotal_tax:ar("400"),line_total:ar("2000"),line_total_tax:ar("400")},extensions:{},item_data:[]},{key:"2",id:2,type:"simple",quantity:1,catalog_visibility:"visible",name:(0,C.__)("Cap","woocommerce"),summary:(0,C.__)("Cap","woocommerce"),short_description:(0,C.__)("Lightweight baseball cap","woocommerce"),description:"Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.",sku:"woo-cap",low_stock_remaining:null,permalink:"https://example.org",backorders_allowed:!1,show_backorder_badge:!1,sold_individually:!1,quantity_limits:{minimum:1,maximum:99,multiple_of:1,editable:!0},images:[{id:11,src:O+"previews/cap.jpg",thumbnail:O+"previews/cap.jpg",srcset:"",sizes:"",name:"",alt:""}],variation:[{attribute:(0,C.__)("Color","woocommerce"),value:(0,C.__)("Orange","woocommerce")}],prices:{...sr,price:ar(pr?"2400":"2000"),regular_price:ar(pr?"2400":"2000"),sale_price:ar(pr?"2400":"2000"),price_range:null,raw_prices:{precision:6,price:pr?"24000000":"20000000",regular_price:pr?"24000000":"20000000",sale_price:pr?"24000000":"20000000"}},totals:{...sr,line_subtotal:ar("2000"),line_subtotal_tax:ar("400"),line_total:ar("2000"),line_total_tax:ar("400")},extensions:{},item_data:[]}],cross_sells:[{id:1,name:(0,C.__)("Polo","woocommerce"),slug:"polo",parent:0,type:"simple",variation:"",permalink:"https://example.org",sku:"woo-polo",short_description:(0,C.__)("Polo","woocommerce"),description:(0,C.__)("Polo","woocommerce"),on_sale:!1,prices:{...sr,price:ar(pr?"24000":"20000"),regular_price:ar(pr?"24000":"20000"),sale_price:ar(pr?"12000":"10000"),price_range:null},price_html:"",average_rating:"4.5",review_count:2,images:[{id:17,src:O+"previews/polo.jpg",thumbnail:O+"previews/polo.jpg",srcset:"",sizes:"",name:"",alt:""}],categories:[],tags:[],attributes:[],variations:[],has_options:!1,is_purchasable:!0,is_in_stock:!0,is_on_backorder:!1,low_stock_remaining:null,sold_individually:!1,add_to_cart:{text:"",description:"",url:"",minimum:1,maximum:99,multiple_of:1}},{id:2,name:(0,C.__)("Long Sleeve Tee","woocommerce"),slug:"long-sleeve-tee",parent:0,type:"simple",variation:"",permalink:"https://example.org",sku:"woo-long-sleeve-tee",short_description:(0,C.__)("Long Sleeve Tee","woocommerce"),description:(0,C.__)("Long Sleeve Tee","woocommerce"),on_sale:!1,prices:{...sr,price:ar(pr?"30000":"25000"),regular_price:ar(pr?"30000":"25000"),sale_price:ar(pr?"30000":"25000"),price_range:null},price_html:"",average_rating:"4",review_count:2,images:[{id:17,src:O+"previews/long-sleeve-tee.jpg",thumbnail:O+"previews/long-sleeve-tee.jpg",srcset:"",sizes:"",name:"",alt:""}],categories:[],tags:[],attributes:[],variations:[],has_options:!1,is_purchasable:!0,is_in_stock:!0,is_on_backorder:!1,low_stock_remaining:null,sold_individually:!1,add_to_cart:{text:"",description:"",url:"",minimum:1,maximum:99,multiple_of:1}},{id:3,name:(0,C.__)("Hoodie with Zipper","woocommerce"),slug:"hoodie-with-zipper",parent:0,type:"simple",variation:"",permalink:"https://example.org",sku:"woo-hoodie-with-zipper",short_description:(0,C.__)("Hoodie with Zipper","woocommerce"),description:(0,C.__)("Hoodie with Zipper","woocommerce"),on_sale:!0,prices:{...sr,price:ar(pr?"15000":"12500"),regular_price:ar(pr?"30000":"25000"),sale_price:ar(pr?"15000":"12500"),price_range:null},price_html:"",average_rating:"1",review_count:2,images:[{id:17,src:O+"previews/hoodie-with-zipper.jpg",thumbnail:O+"previews/hoodie-with-zipper.jpg",srcset:"",sizes:"",name:"",alt:""}],categories:[],tags:[],attributes:[],variations:[],has_options:!1,is_purchasable:!0,is_in_stock:!0,is_on_backorder:!1,low_stock_remaining:null,sold_individually:!1,add_to_cart:{text:"",description:"",url:"",minimum:1,maximum:99,multiple_of:1}},{id:4,name:(0,C.__)("Hoodie with Logo","woocommerce"),slug:"hoodie-with-logo",parent:0,type:"simple",variation:"",permalink:"https://example.org",sku:"woo-hoodie-with-logo",short_description:(0,C.__)("Polo","woocommerce"),description:(0,C.__)("Polo","woocommerce"),on_sale:!1,prices:{...sr,price:ar(pr?"4500":"4250"),regular_price:ar(pr?"4500":"4250"),sale_price:ar(pr?"4500":"4250"),price_range:null},price_html:"",average_rating:"5",review_count:2,images:[{id:17,src:O+"previews/hoodie-with-logo.jpg",thumbnail:O+"previews/hoodie-with-logo.jpg",srcset:"",sizes:"",name:"",alt:""}],categories:[],tags:[],attributes:[],variations:[],has_options:!1,is_purchasable:!0,is_in_stock:!0,is_on_backorder:!1,low_stock_remaining:null,sold_individually:!1,add_to_cart:{text:"",description:"",url:"",minimum:1,maximum:99,multiple_of:1}},{id:5,name:(0,C.__)("Hoodie with Pocket","woocommerce"),slug:"hoodie-with-pocket",parent:0,type:"simple",variation:"",permalink:"https://example.org",sku:"woo-hoodie-with-pocket",short_description:(0,C.__)("Hoodie with Pocket","woocommerce"),description:(0,C.__)("Hoodie with Pocket","woocommerce"),on_sale:!0,prices:{...sr,price:ar(pr?"3500":"3250"),regular_price:ar(pr?"4500":"4250"),sale_price:ar(pr?"3500":"3250"),price_range:null},price_html:"",average_rating:"3.75",review_count:4,images:[{id:17,src:O+"previews/hoodie-with-pocket.jpg",thumbnail:O+"previews/hoodie-with-pocket.jpg",srcset:"",sizes:"",name:"",alt:""}],categories:[],tags:[],attributes:[],variations:[],has_options:!1,is_purchasable:!0,is_in_stock:!0,is_on_backorder:!1,low_stock_remaining:null,sold_individually:!1,add_to_cart:{text:"",description:"",url:"",minimum:1,maximum:99,multiple_of:1}},{id:6,name:(0,C.__)("T-Shirt","woocommerce"),slug:"t-shirt",parent:0,type:"simple",variation:"",permalink:"https://example.org",sku:"woo-t-shirt",short_description:(0,C.__)("T-Shirt","woocommerce"),description:(0,C.__)("T-Shirt","woocommerce"),on_sale:!1,prices:{...sr,price:ar(pr?"1800":"1500"),regular_price:ar(pr?"1800":"1500"),sale_price:ar(pr?"1800":"1500"),price_range:null},price_html:"",average_rating:"3",review_count:2,images:[{id:17,src:O+"previews/tshirt.jpg",thumbnail:O+"previews/tshirt.jpg",srcset:"",sizes:"",name:"",alt:""}],categories:[],tags:[],attributes:[],variations:[],has_options:!1,is_purchasable:!0,is_in_stock:!0,is_on_backorder:!1,low_stock_remaining:null,sold_individually:!1,add_to_cart:{text:"",description:"",url:"",minimum:1,maximum:99,multiple_of:1}}],fees:[{id:"fee",name:(0,C.__)("Fee","woocommerce"),totals:{...sr,total:ar("100"),total_tax:ar("20")}}],items_count:3,items_weight:0,needs_payment:!0,needs_shipping:N,has_calculated_shipping:!0,shipping_address:{first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:"",phone:""},billing_address:{first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:"",email:"",ph
61one:""},totals:{...sr,total_items:ar("4000"),total_items_tax:ar("800"),total_fees:ar("100"),total_fees_tax:ar("20"),total_discount:"0",total_discount_tax:"0",total_shipping:"0",total_shipping_tax:"0",total_tax:ar("820"),total_price:ar("4920"),tax_lines:[{name:(0,C.__)("Sales tax","woocommerce"),rate:"20%",price:ar("820")}]},errors:[],payment_methods:["cod","bacs","cheque"],payment_requirements:["products"],extensions:{}},_r=()=>async({dispatch:e})=>{if(It())return void e.receiveCart(ur);const t=await at()({path:"/wc/store/v1/cart",method:"GET",cache:"no-store",parse:!1});"function"==typeof at().setCartHash&&at().setCartHash(t?.headers);try{const r=await t.json(),{receiveCart:s,receiveError:a}=e;if(!r)return void a(b);vt(!1),s(r),vt(!0)}catch(t){const{receiveError:r}=e;r(b)}},mr=()=>async({resolveSelect:e})=>{await e.getCartData()},Er=e=>{const t=document.cookie.split(";").reduce((e,t)=>{const[r,s]=t.split("=").map(e=>e.trim());return r&&s&&(e[r]=decodeURIComponent(s)),e},{});return e?t[e]||"":t},hr=()=>!!Er("woocommerce_items_in_cart"),gr=()=>{if(!hr()||!(()=>{const e=Er("woocommerce_cart_hash");return(window.localStorage?.getItem("storeApiCartHash")||"")===e})())return null;const e=window.localStorage?.getItem("storeApiCartData");if(!e)return null;const t=JSON.parse(e);return t&&"object"==typeof t?t:null},yr=(Sr=(e=re,t)=>{switch(t.type){case Ce.PRODUCT_PENDING_ADD:if(t.isAdding){const r=[...e.productsPendingAdd];r.push(t.productId),e={...e,productsPendingAdd:r};break}e={...e,productsPendingAdd:e.productsPendingAdd.filter(e=>e!==t.productId)};break;case Ce.SET_ERROR_DATA:"error"in t&&t.error&&(e={...e,errors:[t.error]});break;case Ce.SET_CART_DATA:t.response&&(e={...e,errors:Q,cartData:{...e.cartData,...t.response}});break;case Ce.APPLYING_COUPON:(t.couponCode||""===t.couponCode)&&(e={...e,metaData:{...e.metaData,applyingCoupon:t.couponCode}});break;case Ce.SET_BILLING_ADDRESS:const r=Object.keys(t.billingAddress).some(r=>t.billingAddress[r]!==e.cartData.billingAddress?.[r]);e={...e,cartData:{...e.cartData,billingAddress:{...e.cartData.billingAddress,...t.billingAddress}}},r&&Tt(!0);break;case Ce.SET_SHIPPING_ADDRESS:const s=Object.keys(t.shippingAddress).some(r=>t.shippingAddress[r]!==e.cartData.shippingAddress?.[r]);e={...e,cartData:{...e.cartData,shippingAddress:{...e.cartData.shippingAddress,...t.shippingAddress}}},s&&Tt(!0);break;case Ce.REMOVING_COUPON:(t.couponCode||""===t.couponCode)&&(e={...e,metaData:{...e.metaData,removingCoupon:t.couponCode}});break;
61case Ce.ITEM_PENDING_QUANTITY:const a=e.cartItemsPendingQuantity.filter(e=>e!==t.cartItemKey);t.isPendingQuantity&&t.cartItemKey&&a.push(t.cartItemKey),e={...e,cartItemsPendingQuantity:a};break;case Ce.RECEIVE_REMOVED_ITEM:const i=e.cartItemsPendingDelete.filter(e=>e!==t.cartItemKey);t.isPendingDelete&&t.cartItemKey&&i.push(t.cartItemKey),e={...e,cartItemsPendingDelete:i};break;case Ce.RECEIVE_CART_ITEM:e={...e,errors:Q,cartData:{...e.cartData,items:e.cartData.items.map(e=>e.key===t.cartItem?.key?t.cartItem:e)}};break;case Ce.UPDATING_CUSTOMER_DATA:e={...e,metaData:{...e.metaData,updatingCustomerData:!!t.isResolving}};break;case Ce.UPDATING_ADDRESS_FIELDS_FOR_SHIPPING_RATES:e={...e,metaData:{...e.metaData,updatingAddressFieldsForShippingRates:!!t.isResolving}};break;case Ce.UPDATING_SELECTED_SHIPPING_RATE:e={...e,metaData:{...e.metaData,updatingSelectedRate:!!t.isResolving}};break;case Ce.SET_IS_CART_DATA_STALE:e={...e,metaData:{...e.metaData,isCartDataStale:t.isCartDataStale}}}return e},(e,t)=>{const r=Sr(e,t);return r.cartData&&!It()&&(e=>{try{window.localStorage?.setItem("storeApiCartData",JSON.stringify(e))}catch{}})(r.cartData),r});var Sr;const Ar=Object.entries(H).reduce((e,[t,r])=>(e[t]=Object.entries(r).reduce((e,[t,r])=>(e[t]=(e=>{const t={};return void 0!==e.label&&(t.label=e.label),void 0!==e.required&&(t.required=e.required),void 0!==e.hidden&&(t.hidden=e.hidden),void 0===e.label||e.optionalLabel||(t.optionalLabel=(0,C.sprintf)(/* translators: %s Field label. */ /* translators: %s Field label. */ 62(0,C.__)("%s (optional)","woocommerce"),e.label)),void 0!==e.optionalLabel&&(t.optionalLabel=e.optionalLabel),e.index&&((0,fe.isNumber)(e.index)&&(t.index=e.index),(0,fe.isString)(e.index)&&(t.index=parseInt(e.index,10))),e.hidden&&(t.required=!1),t})(r),e),{}),e),{}),Pr=["state","country","postcode","city"],Tr=e=>{const t=((e,t,r="")=>{const s=r&&void 0!==Ar[r]?Ar[r]:{};return e.map(e=>({key:e,...t&&e in t?t[e]:{},...s&&e in s?s[e]:{}})).sort((e,t)=>e.index-t.index)})(j,D.defaultFields,e.country),r=Object.assign({},e);return t.forEach(({key:t,hidden:s})=>{!0===s&&((e,t)=>e in t)(t,e)&&(r[t]="")}),r},Rr=window.wp.isShallowEqual;var vr=r.n(Rr);const Ir={customerDataIsInitialized:!1,doingPush:!1,customerData:{billingAddress:{},shippingAddress:{}},dirtyProps:{billingAddress:[],shippingAddress:[]}},Cr=()=>{if(Ir.doingPush)return;Ir.doingPush=!0,(()=>{const e=(0,v.select)(Aa).getCustomerData();Ir.dirtyProps.billingAddress=[...Ir.dirtyProps.billingAddress,...Pt(Ir.customerData.billingAddress,e.billingAddress)],Ir.dirtyProps.shippingAddress=[...Ir.dirtyProps.shippingAddress,...Pt(Ir.customerData.shippingAddress,e.shippingAddress)],Ir.customerData=e;const t=Ir.dirtyProps.shippingAddress,r=Ir.dirtyProps.billingAddress,s=Ir.customerData.shippingAddress,a=Ir.customerData.billingAddress,i=t.includes("country"),n=r.includes("country"),o=t.includes("state"),c=r.includes("state"),d=t.includes("postcode"),l=r.includes("postcode");i&&!d&&(t.push("postcode"),s.postcode=""),n&&!l&&(r.push("postcode"),a.postcode=""),i&&!o&&(t.push("state"),s.state=""),n&&!c&&(r.push("state"),a.state="")})();const e=Ir.dirtyProps.billingAddress.length>0,t=Ir.dirtyProps.shippingAddress.length>0;if(!e&&!t)return void(Ir.doingPush=!1);if(!(e=>{const t=(0,v.select)(St);return 0===[...e.billingAddress.filter(e=>void 0!==t.getValidationError("billing_"+e)),...e.shippingAddress.filter(e=>void 0!==t.getValidationError("shipping_"+e))].filter(Boolean).length})(Ir.dirtyProps))return void(Ir.doingPush=!1);const r=Ir.dirtyProps.shippingAddress.some(e=>Pr.includes(e));(0,v.dispatch)(Aa).updateCustomerData({...e&&{billing_address:Ir.customerData.billingAddress},...t&&{shipping_address:Ir.customerData.shippingAddress}},!0,r).then(()=>{Ir.dirtyProps.billingAddress=[],Ir.dirtyProps.shippingAddress=[],Ir.doingPush=!1}).catch(e=>{Ir.doingPush=!1,tt(e)})},fr=gt(()=>{Ir.doingPush?fr():Cr()},1500),br="wc/store/payment";let Dr=function(e){return e.IDLE="idle",e.EXPRESS_STARTED="express_started",e.PROCESSING="processing",e.READY="ready",e.ERROR="has_error",e}({});const wr="wc/store/checkout";let Or=function(e){return e.IDLE="idle",e.COMPLETE="complete",e.BEFORE_PROCESSING="before_processing",e.PROCESSING="processing",e.AFTER_PROCESSING="after_processing",e}({});const Mr={order_id:0,customer_id:0,billing_address:{},shipping_address:{},additional_fields:{},...(0,D.getSetting)("checkoutData",{})||{}},Nr=(0,D.getSetting)("globalPaymentMethods"),kr=(0,D.getSetting)("customerPaymentMethods",{}),xr=It()?Nr[0]?.id||"":Mr?.payment_method,Lr={status:Dr.IDLE,activePaymentMethod:xr||"",availablePaymentMethods:{},availableExpressPaymentMethods:{},registeredExpressPaymentMethods:{},savedPaymentMethods:(0,D.getSetting)("customerPaymentMethods",{}),paymentMethodData:function(){if(!xr)return{};const e=Object.keys(kr).flatMap(e=>kr[e]).find(e=>e.method.gateway===xr);if(e){const t=e.tokenId.toString(),r=e.method.gateway,s=`wc-${r}-payment-token`;return{token:t,payment_method:r,[s]:t}}return{}}(),paymentResult:null,paymentMethodsInitialized:!1,expressPaymentMethodsInitialized:!1,shouldSavePaymentMethod:!1};let Hr=function(e){return e.SET_PAYMENT_IDLE="SET_PAYMENT_IDLE",e.SET_EXPRESS_PAYMENT_STARTED="SET_EXPRESS_PAYMENT_STARTED",e.SET_PAYMENT_READY="SET_PAYMENT_READY",e.SET_PAYMENT_PROCESSING="SET_PAYMENT_PROCESSING",e.SET_PAYMENT_ERROR="SET_PAYMENT_ERROR",e.SET_PAYMENT_METHODS_INITIALIZED="SET_PAYMENT_METHODS_INITIALIZED",e.SET_EXPRESS_PAYMENT_METHODS_INITIALIZED="SET_EXPRESS_PAYMENT_METHODS_INITIALIZED",e.SET_ACTIVE_PAYMENT_METHOD="SET_ACTIVE_PAYMENT_METHOD",e.SET_SHOULD_SAVE_PAYMENT_METHOD="SET_SHOULD_SAVE_PAYMENT_METHOD",e.SET_AVAILABLE_PAYMENT_METHODS="SET_AVAILABLE_PAYMENT_METHODS",e.SET_AVAILABLE_EXPRESS_PAYMENT_METHODS="SET_AVAILABLE_EXPRESS_PAYMENT_METHODS",e.SET_REGISTERED_EXPRESS_PAYMENT_METHODS="SET_REGISTERED_EXPRESS_PAYMENT_METHODS",e.REMOVE_AVAILABLE_PAYMENT_METHOD="REMOVE_AVAILABLE_PAYMENT_METHOD",e.REMOVE_AVAILABLE_EXPRESS_PAYMENT_METHOD="REMOVE_AVAILABLE_EXPRESS_PAYMENT_METHOD",e.INITIALIZE_PAYMENT_METHODS="INITIALIZE_PAYMENT_METHODS",e.SET_PAYMENT_METHOD_DATA="SET_PAYMENT_METHOD_DATA",e.SET_PAYMENT_RESULT="SET_PAYMENT_RESULT",e}({});const Ur=e=>Object.fromEntries(e.map(({package_id:e,shipping_rates:t})=>[e,t.find(e=>e.selected)?.rate_id||""])),jr=window.wc.wcBlocksRegistry,Fr=(e,t,r=!1)=>{const{createErrorNotice:s}=(0,v.dispatch)("core/notices"),a=r?Ke.EXPRESS_PAYMENTS:Ke.PAYMENTS;s(`${(0,C.sprintf)(/* translators: %s the id of the payment method being registered (bank transfer, cheque...) */ /* translators: %s the id of the payment method being registered (bank transfer, cheque...) */ 63(0,C.__)("There was an error registering the payment method with id '%s': ","woocommerce"),e.paymentMethodId)} ${t}`,{context:a,id:`wc-${e.paymentMethodId}-registration-error`})},Yr=async(e=!1)=>{let t={};const r=e?(0,jr.getExpressPaymentMethods)():(0,jr.getPaymentMethods)(),s=r=>{if(e){const{name:e,title:s,description:a,gatewayId:i,supports:n}=r;t={...t,[r.name]:{name:e,title:s,description:a,gatewayId:i,supportsStyle:n?.style}}}else{const{name:e}=r;t={...t,[r.name]:{name:e}}}},a=e?Object.keys(r):Array.from(new Set([...(0,D.getSetting)("paymentMethodSortOrder",[]),...Object.keys(r)])),i=(()=>{let e;if((0,v.select)("core/editor")){const t={cartCoupons:ur.coupons,cartItems:ur.items,crossSellsProducts:ur.cross_sells,cartFees:ur.fees,cartItemsCount:ur.items_count,cartItemsWeight:ur.items_weight,cartNeedsPayment:ur.needs_payment,cartNeedsShipping:ur.needs_shipping,cartItemErrors:K,cartTotals:ur.totals,cartIsLoading:!1,cartErrors:Q,billingData:re.cartData.billingAddress,billingAddress:re.cartData.billingAddress,shippingAddress:re.cartData.shippingAddress,extensions:Z,shippingRates:ur.shipping_rates,isLoadingRates:!1,cartHasCalculatedShipping:ur.has_calculated_shipping,paymentRequirements:ur.payment_requirements,receiveC
63art:()=>{}};e={cart:t,cartTotals:t.cartTotals,cartNeedsShipping:t.cartNeedsShipping,billingData:t.billingAddress,billingAddress:t.billingAddress,shippingAddress:t.shippingAddress,selectedShippingMethods:Ur(t.shippingRates),paymentMethods:ur.payment_methods,paymentRequirements:t.paymentRequirements}}else{const t=(0,v.select)(f),r=t.getCartData(),s=t.getCartErrors(),a=t.getCartTotals(),i=!t.hasFinishedResolution("getCartData"),n=t.isAddressFieldsForShippingRatesUpdating(),o=Ur(r.shippingRates);e={cart:{cartCoupons:r.coupons,cartItems:r.items,crossSellsProducts:r.crossSells,cartFees:r.fees,cartItemsCount:r.itemsCount,cartItemsWeight:r.itemsWeight,cartNeedsPayment:r.needsPayment,cartNeedsShipping:r.needsShipping,cartItemErrors:r.errors,cartTotals:a,cartIsLoading:i,cartErrors:s,billingData:Tr(r.billingAddress),billingAddress:Tr(r.billingAddress),shippingAddress:Tr(r.shippingAddress),extensions:r.extensions,shippingRates:r.shippingRates,isLoadingRates:n,cartHasCalculatedShipping:r.hasCalculatedShipping,paymentRequirements:r.paymentRequirements,receiveCart:(0,v.dispatch)(f).receiveCart},cartTotals:r.totals,cartNeedsShipping:r.needsShipping,billingData:r.billingAddress,billingAddress:r.billingAddress,shippingAddress:r.shippingAddress,selectedShippingMethods:o,paymentMethods:r.paymentMethods,paymentRequirements:r.paymentRequirements}}return e})(),n=i.paymentMethods,o=!!(0,v.select)("core/editor");for(let t=0;t<a.length;t++){const c=a[t],d=r[c];if(d)try{const t=!(!o&&!e)||n.includes(c),r=!!o||t&&await Promise.resolve(d.canMakePayment(i));if(r){if("object"==typeof r&&r.error)throw new Error(r.error.message);s(d)}}catch(t){(D.CURRENT_USER_IS_ADMIN||o)&&Fr(d,t,e)}}const c=(0,v.select)(br),d=Object.keys(t),l=e?c.getAvailableExpressPaymentMethods():c.getAvailablePaymentMethods();if(Object.keys(l).length===d.length&&Object.keys(l).every(e=>d.includes(e)))return!0;const{__internalSetAvailablePaymentMethods:p,__internalSetAvailableExpressPaymentMethods:u}=(0,v.dispatch)(br);return(e?u:p)(t),!0},Vr=async e=>{const t=Object.keys(e),r=Object.keys((0,v.select)(ha).getAvailableExpressPaymentMethods()),s=[...t,...r],a=(0,v.select)(ha).getActivePaymentMethod();if(a&&s.includes(a))return;const i=(0,v.select)(ha).getSavedPaymentMethods(),n=Object.keys(i).flatMap(e=>i[e]),o=n.find(e=>e.is_default)||n[0]||void 0;if(o){const e=o.tokenId.toString(),t=o.method.gateway,r=`wc-${t}-payment-token`;return void(0,v.dispatch)(ha).__internalSetActivePaymentMethod(t,{token:e,payment_method:t,[r]:e,isSavedToken:!0})}(0,v.dispatch)(ha).__internalSetPaymentIdle(),(0,v.dispatch)(ha).__internalSetActivePaymentMethod(t[0])},Gr=window.wp.deprecated;var Br=r.n(Gr);const qr=(window.wp.element,"payment_setup"),zr=e=>["first_name","last_name","company","address_1","address_2","city","state","postcode","country","phone"].every(t=>(0,fe.objectHasProp)(e,t)),Kr=e=>zr(e)&&(0,fe.objectHasProp)(e,"email");var Qr=r(4457),Wr=r(119);const Xr=e=>({registry:t})=>{const{createErrorNotice:r,removeNotice:s}=t.dispatch(R.store);e?r(e,{id:"wc-express-payment-error",context:Ke.EXPRESS_PAYMENTS}):s("wc-express-payment-error",Ke.EXPRESS_PAYMENTS)},$r=(e,t)=>({dispatch:r,registry:s})=>{const{createErrorNotice:a,removeNotice:i}=s.dispatch(R.store);return i("wc-payment-error",Ke.PAYMENTS),(async(e,t,r)=>{const s=[],a=((e,t)=>e[t]?Array.from(e[t].values()).sort((e,t)=>e.priority-t.priority):[])(e,t);for(const e of a)try{const t=await Promise.resolve(e.callback(r));if(!(0,fe.isObserverResponse)(t))continue;if(!t.hasOwnProperty("type"))throw new Error("Returned objects from event emitter observers must return an object with a type property");if((0,fe.isErrorResponse)(t)||(0,fe.isFailResponse)(t))return s.push(t),s;s.push(t)}catch(e){return console.error(e),s.push({type:fe.responseTypes.ERROR}),s}return s})(e,qr,{}).then(e=>{let i,n,o,c;e.forEach(e=>{(0,fe.isSuccessResponse)(e)&&(i=e),((0,fe.isErrorResponse)(e)||(0,fe.isFailResponse)(e))&&(n=e);const{billingAddress:t,billingData:r,shippingAddress:s,shippingData:a}=e?.meta||{};o=t,c=s,r&&(o=r,Br()("returning billingData from an onPaymentProcessing observer in WooCommerce Blocks",{version:"9.5.0",alternative:"billingAddress",link:"https://github.com/woocommerce/woocommerce-blocks/pull/6369"})),(0,fe.objectHasProp)(a,"address")&&a.address&&(c=a.address,Br()("returning shippingData from an onPaymentProcessing observer in WooCommerce Blocks",{version:"9.5.0",alternative:"shippingAddress",link:"https://github.com/woocommerce/woocommerce-blocks/pull/8163"}))});const{setBillingAddress:d,setShippingAddress:l}=s.dispatch(Aa);if((0,Qr.mW)(i)&&!n){const{paymentMethodData:e}=i?.meta||{};Kr(o)&&d(o),zr(c)&&l(c),r.__internalSetPaymentMethodData((0,fe.isObject)(e)?e:{}),r.__internalSetPaymentReady()}else if((0,fe.isFailResponse)(n)){const{paymentMethodData:e}=n?.meta||{};if((0,fe.objectHasProp)(n,"message")&&(0,fe.isString)(n.message)&&n.message.length){let e=Ke.PAYMENTS;(0,fe.objectHasProp)(n,"messageContext")&&(0,fe.isString)(n.messageContext)&&n.messageContext.length&&(e=n.messageContext),a(n.message,{id:"wc-payment-error",isDismissible:!1,
63context:e})}Kr(o)&&d(o),r.__internalSetPaymentMethodData((0,fe.isObject)(e)?e:{}),r.__internalSetPaymentError()}else if((0,fe.isErrorResponse)(n)){if((0,fe.objectHasProp)(n,"message")&&(0,fe.isString)(n.message)&&n.message.length){let e=Ke.PAYMENTS;(0,fe.objectHasProp)(n,"messageContext")&&(0,fe.isString)(n.messageContext)&&n.messageContext.length&&(e=n.messageContext),a(n.message,{id:"wc-payment-error",isDismissible:!1,context:e})}r.__internalSetPaymentError(),(0,Wr.Y)(n.validationErrors)&&t(n.validationErrors)}else r.__internalSetPaymentReady()})},Zr=()=>({type:Hr.SET_PAYMENT_IDLE}),Jr=()=>({type:Hr.SET_EXPRESS_PAYMENT_STARTED}),es=()=>({type:Hr.SET_PAYMENT_PROCESSING}),ts=()=>({type:Hr.SET_PAYMENT_ERROR}),rs=()=>({type:Hr.SET_PAYMENT_READY}),ss=e=>async({select:t,dispatch:r})=>{const s=t.getAvailablePaymentMethods();e&&await Vr(s),r({type:Hr.SET_PAYMENT_METHODS_INITIALIZED,initialized:e})},as=e=>({type:Hr.SET_EXPRESS_PAYMENT_METHODS_INITIALIZED,initialized:e}),is=e=>({type:Hr.SET_SHOULD_SAVE_PAYMENT_METHOD,shouldSavePaymentMethod:e}),ns=(e,t={})=>({type:Hr.SET_ACTIVE_PAYMENT_METHOD,activePaymentMethod:e,paymentMethodData:t}),os=(e={})=>({type:Hr.SET_PAYMENT_METHOD_DATA,paymentMethodData:e}),cs=e=>({type:Hr.SET_PAYMENT_RESULT,data:e}),ds=e=>
63async({dispatch:t,select:r})=>{r.getActivePaymentMethod()in e||await Vr(e),t({type:Hr.SET_AVAILABLE_PAYMENT_METHODS,paymentMethods:e})},ls=e=>({type:Hr.SET_AVAILABLE_EXPRESS_PAYMENT_METHODS,paymentMethods:e}),ps=e=>({type:Hr.SET_REGISTERED_EXPRESS_PAYMENT_METHODS,paymentMethods:e}),us=e=>({type:Hr.REMOVE_AVAILABLE_PAYMENT_METHOD,name:e}),_s=e=>({type:Hr.REMOVE_AVAILABLE_EXPRESS_PAYMENT_METHOD,name:e});function ms(){return async({select:e,dispatch:t})=>{const r=await Yr(!0),s=await Yr(!1),{paymentMethodsInitialized:a,expressPaymentMethodsInitialized:i}=e;s&&!a()&&t(ss(!0)),r&&!i()&&t(as(!0))}}const Es={};(0,D.getSetting)("globalPaymentMethods")&&(0,D.getSetting)("globalPaymentMethods").forEach(e=>{Es[e.id]=e.title});const hs=e=>(Br()("isPaymentPristine",{since:"9.6.0",alternative:"isPaymentIdle",plugin:"WooCommerce Blocks",link:"https://github.com/woocommerce/woocommerce-blocks/pull/8110"}),e.status===Dr.IDLE),gs=e=>e.status===Dr.IDLE,ys=e=>(Br()("isPaymentStarted",{since:"9.6.0",alternative:"isExpressPaymentStarted",plugin:"WooCommerce Blocks",link:"https://github.com/woocommerce/woocommerce-blocks/pull/8110"}),e.status===Dr.EXPRESS_STARTED),Ss=e=>e.status===Dr.EXPRESS_STARTED,As=e=>e.status===Dr.PROCESSING,Ps=e=>e.status===Dr.READY,Ts=e=>(Br()("isPaymentSuccess",{since:"9.6.0",alternative:"isPaymentReady",plugin:"WooCommerce Blocks",link:"https://github.com/woocommerce/woocommerce-blocks/pull/8110"}),e.status===Dr.READY),Rs=e=>e.status===Dr.ERROR,vs=e=>(Br()("isPaymentFailed",{since:"9.6.0",plugin:"WooCommerce Blocks",link:"https://github.com/woocommerce/woocommerce-blocks/pull/8110"}),e.status===Dr.ERROR),Is=e=>Object.keys(e.availableExpressPaymentMethods).includes(e.activePaymentMethod),Cs=e=>"object"==typeof e.paymentMethodData&&(0,fe.objectHasProp)(e.paymentMethodData,"token")?e.paymentMethodData.token+"":"",fs=e=>e.activePaymentMethod,bs=e=>e.availablePaymentMethods,Ds=e=>e.availableExpressPaymentMethods,ws=e=>e.registeredExpressPaymentMethods,Os=e=>e.paymentMethodData,Ms=(0,v.createSelector)(e=>{const{availablePaymentMethods:t,availableExpressPaymentMethods:r,paymentMethodsInitialized:s,expressPaymentMethodsInitialized:a}=e;return s&&a?Object.fromEntries(Object.entries(Es).filter(([e])=>!(e in{...t,...r}))):{}},e=>[e.availablePaymentMethods,e.availableExpressPaymentMethods,e.paymentMethodsInitialized,e.expressPaymentMethodsInitialized]),Ns=e=>e.savedPaymentMethods,ks=e=>((e=[],t)=>{if(0===e.length)return{};const r=(0,jr.getPaymentMethods)(),s=Object.fromEntries(e.map(e=>[e,r[e]])),a=Object.keys(t),i={};return a.forEach(e=>{const r=t[e].filter(({method:{gateway:e}})=>e in s&&s[e].supports?.showSavedCards);r.length&&(i[e]=r)}),i})(Object.keys(e.availablePaymentMethods),e.savedPaymentMethods),xs=e=>e.paymentMethodsInitialized,Ls=e=>e.expressPaymentMethodsInitialized,Hs=e=>(Br()("getCurrentStatus",{since:"8.9.0",alternative:"isPaymentIdle, isPaymentProcessing, hasPaymentError",plugin:"WooCommerce Blocks",link:"https://github.com/woocommerce/woocommerce-blocks/pull/7666"}),{get isPristine(){return Br()("isPristine",{since:"9.6.0",alternative:"isIdle",plugin:"WooCommerce Blocks"}),gs(e)},isIdle:gs(e),isStarted:Ss(e),isProcessing:As(e),get isFinished(){return Br()("isFinished",{since:"9.6.0",plugin:"WooCommerce Blocks",link:"https://github.com/woocommerce/woocommerce-blocks/pull/8110"}),Rs(e)||Ps(e)},hasError:Rs(e),get hasFailed(){return Br()("hasFailed",{since:"9.6.0",plugin:"WooCommerce Blocks",link:"https://github.com/woocommerce/woocommerce-blocks/pull/8110"}),Rs(e)},get isSuccessful(){return Br()("isSuccessful",{since:"9.6.0",plugin:"WooCommerce Blocks",link:"https://github.com/woocommerce/woocommerce-blocks/pull/8110"}),Ps(e)},isDoingExpressPayment:Is(e)}),Us=e=>e.shouldSavePaymentMethod,js=e=>e.paymentResult,Fs=e=>e,Ys="SET_VALIDATION_ERRORS",Vs="CLEAR_VALIDATION_ERROR",Gs="CLEAR_VALIDATION_ERRORS",Bs="HIDE_VALIDATION_ERROR",qs="SHOW_VALIDATION_ERROR",zs="SHOW_ALL_VALIDATION_ERRORS",Ks=e=>({type:Ys,errors:e}),Qs=e=>({type:Gs,errors:e}),Ws=()=>(Br()("clearAllValidationErrors",{version:"9.0.0",alternative:"clearValidationErrors",plugin:"WooCommerce Blocks",link:"https://github.com/woocommerce/woocommerce-blocks/pull/7601",hint:"Calling `clearValidationErrors` with no arguments will clear all validation errors."}),Qs()),Xs=e=>({type:Vs,error:e}),$s=e=>({type:Bs,error:e}),Zs=e=>({type:qs,error:e}),Js=()=>({type:zs}),ea=(e,t)=>e[t],ta=(e,t)=>{if(e.hasOwnProperty(t)&&!e[t].hidden)return`validate-error-${t}`}
63,ra=e=>Object.keys(e).length>0,sa=e=>e,aa={reducer:(e={},t)=>{const r={...e};switch(t.type){case Ys:return t.errors&&Object.entries(t.errors).some(([t,r])=>!("string"!=typeof r?.message||e.hasOwnProperty(t)&&vr()(e[t],r)))?{...e,...t.errors}:e;case Vs:return(0,fe.isString)(t.error)&&r.hasOwnProperty(t.error)?(delete r[t.error],r):r;case Gs:const{errors:s}=t;return void 0===s?{}:Array.isArray(s)?(s.forEach(e=>{r.hasOwnProperty(e)&&delete r[e]}),r):r;case Bs:return(0,fe.isString)(t.error)&&r.hasOwnProperty(t.error)?(r[t.error].hidden=!0,r):r;case qs:return(0,fe.isString)(t.error)&&r.hasOwnProperty(t.error)?(r[t.error].hidden=!1,r):r;case zs:return Object.keys(r).forEach(e=>{r[e].hidden&&(r[e].hidden=!1)}),{...r};default:return e}},selectors:l,actions:d},ia=(0,v.createReduxStore)(St,aa);(0,v.register)(ia);const na=St,oa=e=>{let t="";if(F.includes(e))t="contact_";else{if(!Y.includes(e))return!1;t="order_"}return!!(0,v.select)(ia).getValidationError(`${t}${e}`)},ca={isInitialized:!1,doingPush:!1,checkoutData:{orderNotes:"",additionalFields:{},activePaymentMethod:""},hasSession:!1},da=(0,D.getSetting)("isCheckoutBlock",!1),la=()=>{if(!ca.hasSession)return;if(ca.doingPush)return;if(ca.doingPush=!0,!da)return void(ca.doingPush=!1);if((0,v.select)(br).isExpressPaymentStarted())return void(ca.doingPush=!1);const e=(0,v.select)(wr),t=(0,v.select)(br),r={orderNotes:e.getOrderNotes(),additionalFields:e.getAdditionalFields(),activePaymentMethod:t.getActivePaymentMethod()};if(""===r.activePaymentMethod)return void(ca.doingPush=!1);const s=Object.keys(r.additionalFields).filter(e=>!oa(e)&&(e in ca.checkoutData.additionalFields||""!==r.additionalFields[e])&&ca.checkoutData.additionalFields[e]!==r.additionalFields[e]).reduce((e,t)=>(e[t]=r.additionalFields[t],e),{}),a={};if(Object.keys(s).length>0&&(a.additional_fields=s),!(e=>{if(0===Object.keys(e).length)return!0;for(const t of Object.keys(e))if(oa(t))return!1;return!0})(s))return ca.doingPush=!1,void(ca.checkoutData=r);r.orderNotes!==ca.checkoutData.orderNotes&&(a.order_notes=r.orderNotes),r.activePaymentMethod!==ca.checkoutData.activePaymentMethod&&(a.payment_method=r.activePaymentMethod),0!==Object.keys(a).length?(ca.checkoutData=r,(0,v.dispatch)(wr).updateDraftOrder(a).then(()=>{var e;e=a,(0,fe.isObject)(e)&&e?.additional_fields&&(0,fe.isObject)(e.additional_fields)&&Object.keys(e.additional_fields).forEach(e=>{(e=>{const{removeNotice:t}=(0,v.dispatch)(R.store),r=(0,v.select)("wc/store/store-notices").getRegisteredContainers(),{getNotices:s}=(0,v.select)(R.store);r.forEach(r=>{s(r).forEach(s=>{s.id.startsWith(e)&&t(s.id,r)})})})(e)}),ca.doingPush=!1}).catch(e=>{ca.doingPush=!1,tt(e)}),ca.doingPush=!1):ca.doingPush=!1},pa=gt(()=>{ca.doingPush||la()},1500),ua=(e=!0)=>{ca.isInitialized?e?pa():la():(()=>{const e=(0,v.select)(wr),t=(0,v.select)(br);ca.checkoutData={orderNotes:e.getOrderNotes(),additionalFields:e.getAdditionalFields(),activePaymentMethod:t.getActivePaymentMethod()},ca.hasSession=document.cookie.includes("woocommerce_cart_hash"),ca.isInitialized=!0})()},_a=()=>{pa.clear()},ma=br,Ea={reducer:(e=Lr,t)=>{let r=e;switch(t.type){case Hr.SET_PAYMENT_IDLE:r={...e,status:Dr.IDLE};break;case Hr.SET_EXPRESS_PAYMENT_STARTED:r={...e,status:Dr.EXPRESS_STARTED};break;case Hr.SET_PAYMENT_PROCESSING:r={...e,status:Dr.PROCESSING};break;case Hr.SET_PAYMENT_READY:r={...e,status:Dr.READY};break;case Hr.SET_PAYMENT_ERROR:r={...e,status:Dr.ERROR};break;case Hr.SET_SHOULD_SAVE_PAYMENT_METHOD:r={...e,shouldSavePaymentMethod:t.shouldSavePaymentMethod};break;case Hr.SET_PAYMENT_METHOD_DATA:r={...e,paymentMethodData:t.paymentMethodData};break;case Hr.SET_PAYMENT_RESULT:r={...e,paymentResult:t.data};break;case Hr.REMOVE_AVAILABLE_PAYMENT_METHOD:const s={...e.availablePaymentMethods};delete s[t.name],r={...e,availablePaymentMethods:{...s}};break;case Hr.REMOVE_AVAILABLE_EXPRESS_PAYMENT_METHOD:const a={...e.availableExpressPaymentMethods};delete a[t.name],r={...e,availableExpressPaymentMethods:{...a}};break;case Hr.SET_PAYMENT_METHODS_INITIALIZED:r={...e,paymentMethodsInitialized:t.initialized};break;case Hr.SET_EXPRESS_PAYMENT_METHODS_INITIALIZED:r={...e,expressPaymentMethodsInitialized:t.initialized};break;case Hr.SET_AVAILABLE_PAYMENT_METHODS:r={...e,availablePaymentMethods:t.paymentMethods};break;case Hr.SET_AVAILABLE_EXPRESS_PAYMENT_METHODS:r={...e,availableExpressPaymentMethods:t.paymentMethods};break;case Hr.SET_REGISTERED_EXPRESS_PAYMENT_METHODS:r={...e,registeredExpressPaymentMethods:t.paymentMethods};break;case Hr.SET_ACTIVE_PAYMENT_METHOD:r={...e,activePaymentMethod:t.activePaymentMethod,paymentMethodData:t.paymentMethodData||e.paymentMethodData};break;default:return r}return r},selectors:c,actions:o,controls:{...I.controls,...Et},__experimentalUseThunks:!0},ha=(0,v.createReduxStore)(br,Ea);(0,v.register)(ha),(0,v.subscribe)(ua,ha);const ga=async()=>!!(0,v.select)(Aa).hasFinishedResolution("getCartData")&&(await(0,v.dispatch)(ha).__internalUpdateAvailablePaymentMethods(),!0),ya=gt(ga,1e3),Sa={reducer:yr,actions:i,controls:I.controls,selectors:a,resolvers:n,initialState:{...re,cartData:{...re.cartData,...gr()||{}}}},Aa=(0,v.createReduxStore)(f,Sa);(0,v.register)(Aa),window.addEventListener("load",()=>{const e=gr(),t=e?.itemsCount>0;hr()&&!t||window.location?.search?.match(/add-to-cart/)||It()||(0,v.dispatch)(Aa).finishResolution("getCartData")}),(0,v.subscribe)((e=!0)=>
63{if((0,v.select)(Aa).hasFinishedResolution("getCartData"))return Ir.customerDataIsInitialized?void(vr()(Ir.customerData,(0,v.select)(Aa).getCustomerData())||(e?fr():Cr())):(Ir.customerData=(0,v.select)(Aa).getCustomerData(),void(Ir.customerDataIsInitialized=!0))},Aa);let Pa=null;(0,v.subscribe)(()=>{const e=(0,v.select)(f).getCartData();!0===Rt&&null!==Pa&&Pa!==e&&window.dispatchEvent(new CustomEvent("wc-blocks_store_sync_required",{detail:{type:"from_@wordpress/data"}})),Pa=e},Aa),window.addEventListener("wc-blocks_store_sync_required",e=>{const t=e,{type:r,quantityChanges:s}=t.detail;"from_iAPI"===r&&(0,v.dispatch)(Aa).syncCartWithIAPIStore(s)}),document.body.addEventListener("focusout",e=>{e.target&&e.target instanceof Element&&"input"===e.target.tagName.toLowerCase()&&fr.flush()});const Ta=(0,v.subscribe)(async()=>{await ga()&&(Ta(),(0,v.subscribe)(ya,Aa))},Aa),Ra=f,va=(0,D.getSetting)("collectableMethodIds",[]),Ia=e=>e.customerId,Ca=e=>e.customerPassword,fa=e=>e.orderId,ba=e=>e.orderNotes,Da=e=>e.redirectUrl,wa=e=>e.useShippingAsBilling,Oa=e=>e.editingBillingAddress,Ma=e=>e.editingShippingAddress,Na=e=>e.extensionData,ka=e=>e.shouldCreateAccount,xa=e=>e.additionalFields,La=e=>e.status,Ha=e=>e.hasError,Ua=e=>!!e.orderId,ja=e=>e.status===Or.COMPLETE,Fa=e=>e.status===Or.IDLE,Ya=e=>e.status===Or.BEFORE_PROCESSING,Va=e=>e.status===Or.AFTER_PROCESSING,Ga=e=>e.status===Or.PROCESSING,Ba=e=>e.calculatingCount>0,qa=e=>{if(void 0===e.prefersCollection){const e=(0,v.select)(f).getShippingRates();if(!e||!e.length)return!1;const r=e[0].shipping_rates.find(e=>e.selected);if((0,fe.objectHasProp)(r,"method_id")&&(0,fe.isString)(r.method_id))return t=r?.method_id,!!M&&(Array.isArray(t)?!!t.find(e=>va.includes(e)):va.includes(t))}var t;return e.prefersCollection},za=e=>e.addressAutocompleteProviders,Ka=(e,t)=>e.activeAddressAutocompleteProvider?.[t],Qa="ADD_ADDRESS_AUTOCOMPLETE_PROVIDER",Wa="SET_ACTIVE_ADDRESS_AUTOCOMPLETE_PROVIDER",Xa="DECREMENT_CALCULATING",$a="INCREMENT_CALCULATING",Za="SET_ADDITIONAL_FIELDS",Ja="SET_AFTER_PROCESSING",ei="SET_BEFORE_PROCESSING",ti="SET_CHECKOUT_COMPLETE",ri="SET_CHECKOUT_CUSTOMER_ID",si="SET_CHECKOUT_CUSTOMER_PASSWORD",ai="SET_EXTENSION_DATA",ii="SET_CHECKOUT_HAS_ERROR",ni="SET_IDLE",oi="SET_CHECKOUT_ORDER_NOTES",ci="SET_PREFERS_COLLECTION",di="SET_CHECKOUT_IS_PROCESSING",li="SET_REDIRECT_URL",pi="SET_SHOULD_CREATE_ACCOUNT",ui="SET_USE_SHIPPING_AS_BILLING",_i="SET_EDITING_BILLING_ADDRESS",mi="SET_EDITING_SHIPPING_ADDRESS",Ei=window.wc.blocksCheckoutEvents;let hi=new AbortController;function gi(){hi.abort(),hi=new AbortController,_a()}const yi=e=>({dispatch:t})=>{const r=(e=>{const t={message:"",paymentStatus:"not set",redirectUrl:"",paymentDetails:{}};return"payment_result"in e&&(t.paymentStatus=e.payment_result.payment_status,t.redirectUrl=e.payment_result.redirect_url,e.payment_result.hasOwnProperty("payment_details")&&Array.isArray(e.payment_result.payment_details)&&e.payment_result.payment_details.forEach(({key:e,value:r})=>{t.paymentDetails[e]=(0,Fe.decodeEntities)(r)})),"message"in e&&(t.message=(0,Fe.decodeEntities)(e.message)),!t.message&&"data"in e&&"status"in e.data&&e.data.status>299&&(t.message=(0,C.__)("Something went wrong. Please contact us to get assistance.","woocommerce")),t})(e);t.__internalSetRedirectUrl(r?.redirectUrl||""),(0,v.dispatch)(ha).__internalSetPaymentResult(r),t.__internalSetAfterProcessing()},Si=({setValidationErrors:e})=>({dispatch:t,registry:r})=>{const{createErrorNotice:s}=r.dispatch(R.store);((e,t)=>{const r=(0,v.select)("core/notices").getNotices(t),{removeNotice:s}=(0,v.dispatch)("core/notices");r.filter(e=>"error"===e.status).forEach(e=>s(e.id,t))})(),Ei.checkoutEventsEmitter.emit(Ei.CHECKOUT_EVENTS.CHECKOUT_VALIDATION).then(r=>{0===r.length||r.every(fe.isSuccessResponse)?t.__internalSetProcessing():(r.forEach(({errorMessage:t,validationErrors:r,context:a="wc/checkout"})=>{"string"==typeof t&&t&&s(t,{context:a}),(0,fe.isValidValidationErrorsObject)(r)&&e(r)}),t.__internalSetIdle(),t.__internalSetHasError())})},Ai=({notices:e})=>({select:t,dispatch:r,registry:s})=>{const{createErrorNotice:a}=s.dispatch(R.store),i={redirectUrl:t.getRedirectUrl(),orderId:t.getOrderId(),customerId:t.getCustomerId(),orderNotes:t.getOrderNotes(),processingResponse:(0,v.select)(ha).getPaymentResult()};t.hasError()?Ei.checkoutEventsEmitter.emitWithAbort(Ei.CHECKOUT_EVENTS.CHECKOUT_FAIL,i).then(t=>{(({observerResponses:e,notices:t,dispatch:r,createErrorNotice:s,data:a})=>{const i=(({observerResponses:e,createErrorNotice:t})=>{let r=null;
63return e.forEach(e=>{if(((0,fe.isErrorResponse)(e)||(0,fe.isFailResponse)(e))&&e.message&&(0,fe.isString)(e.message)){const s=e.messageContext&&(0,fe.isString)(e.messageContext)?{context:e.messageContext}:void 0;r=e,t(e.message,s)}}),r})({observerResponses:e,createErrorNotice:s});null!==i?Qe(i)?r.__internalSetIdle():r.__internalSetComplete(i):(t.checkoutNotices.some(e=>"error"===e.status)||t.expressPaymentNotices.some(e=>"error"===e.status)||t.paymentNotices.some(e=>"error"===e.status)||s(a.processingResponse?.message||(0,C.__)("Something went wrong. Please contact us to get assistance.","woocommerce"),{id:"checkout",context:"wc/checkout"}),r.__internalSetIdle())})({observerResponses:t,notices:e,dispatch:r,createErrorNotice:a,data:i})}):Ei.checkoutEventsEmitter.emitWithAbort(Ei.CHECKOUT_EVENTS.CHECKOUT_SUCCESS,i).then(e=>{(({observerResponses:e,dispatch:t,createErrorNotice:r})=>{let s=null,a=null;if(e.forEach(e=>{(0,fe.isSuccessResponse)(e)&&(s=e),((0,fe.isErrorResponse)(e)||(0,fe.isFailResponse)(e))&&(a=e)}),s&&!a)t.__internalSetComplete(s);else if((0,fe.isObject)(a)){if(a.message&&(0,fe.isString)(a.message)){const e=a.messageContext&&(0,fe.isString)(a.messageContext)?{context:a.messageContext}:void 0;r(a.message,e)}Qe(a)?t.__internalSetHasError(!0):t.__internalSetComplete(a)}else t.__internalSetComplete()})({observerResponses:e,dispatch:r,createErrorNotice:a})})},Pi=e=>async({registry:t})=>{const{receiveCartContents:r}=t.dispatch(Ra);try{const t=await mt({path:"/wc/store/v1/checkout?__experimental_calc_totals=true",method:"PUT",data:e,signal:hi.signal});return t?.response?.__experimentalCart&&r(t.response.__experimentalCart),t}catch(e){return Promise.reject(e)}},Ti=e=>
63async({dispatch:t})=>{t.__internalStartCalculation();try{return await e()}finally{t.__internalFinishCalculation()}},Ri=()=>({type:ni}),vi=()=>({type:ei}),Ii=()=>({type:di}),Ci=()=>({type:Ja}),fi=(e={})=>({type:ti,data:e}),bi=e=>({type:li,redirectUrl:e}),Di=(e=!0)=>({type:ii,hasError:e}),wi=()=>({type:$a}),Oi=()=>({type:Xa}),Mi=()=>(Br()("__internalIncrementCalculating",{alternative:"disableCheckoutFor",plugin:"WooCommerce",version:"9.9.0"}),{type:$a}),Ni=()=>(Br()("__internalDecrementCalculating",{alternative:"disableCheckoutFor",plugin:"WooCommerce",version:"9.9.0"}),{type:Xa}),ki=e=>({type:ri,customerId:e}),xi=e=>({type:si,customerPassword:e}),Li=e=>({type:ui,useShippingAsBilling:e}),Hi=e=>({type:_i,isEditing:e}),Ui=e=>({type:mi,isEditing:e}),ji=e=>({type:pi,shouldCreateAccount:e}),Fi=e=>({type:Za,additionalFields:e}),Yi=e=>({type:oi,orderNotes:e}),Vi=e=>({type:ci,prefersCollection:e}),Gi=(e,t,r=!1)=>({type:ai,extensionData:t,namespace:e,replace:r}),Bi=(...e)=>(Br()("__internalSetExtensionData",{alternative:"setExtensionData",plugin:"WooCommerce",version:"9.9.0"}),Gi(...e)),qi=e=>({type:Qa,providerId:e}),zi=(e,t)=>({type:Wa,addressType:t,providerId:e}),Ki=!(!Mr.billing_address.address_1||!Mr.billing_address.first_name&&!Mr.billing_address.last_name),Qi=!(!Mr.shipping_address.address_1||!Mr.shipping_address.first_name&&!Mr.shipping_address.last_name),Wi=(Xi=Mr.billing_address,$i=Mr.shipping_address,j.every(e=>Xi[e]===$i[e]));var Xi,$i;const Zi={additionalFields:Mr.additional_fields||{},calculatingCount:0,customerId:Mr.customer_id,customerPassword:"",extensionData:{},hasError:!1,orderId:Mr.order_id,orderNotes:Mr.customer_note||"",prefersCollection:void 0,redirectUrl:"",shouldCreateAccount:!1,status:Or.IDLE,useShippingAsBilling:Wi,editingBillingAddress:!Ki,editingShippingAddress:!Qi,addressAutocompleteProviders:[],activeAddressAutocompleteProvider:{billing:"",shipping:""}},Ji={reducer:(e=Zi,t)=>{let r=e;switch(t.type){case ni:r=e.status!==Or.IDLE?{...e,status:Or.IDLE}:e;break;case li:r=void 0!==t.redirectUrl&&t.redirectUrl!==e.redirectUrl?{...e,redirectUrl:t.redirectUrl}:e;break;case ti:r={...e,status:Or.COMPLETE,redirectUrl:"string"==typeof t.data?.redirectUrl?t.data.redirectUrl:e.redirectUrl};break;case di:r={...e,status:Or.PROCESSING,hasError:!1};break;case ei:r={...e,status:Or.BEFORE_PROCESSING,hasError:!1};break;case Ja:r={...e,status:Or.AFTER_PROCESSING};break;case ii:r={...e,hasError:t.hasError,status:e.status===Or.PROCESSING||e.status===Or.BEFORE_PROCESSING?Or.IDLE:e.status};break;case $a:r={...e,calculatingCount:e.calculatingCount+1};break;case Xa:r={...e,calculatingCount:Math.max(0,e.calculatingCount-1)};break;case ri:void 0!==t.customerId&&(r={...e,customerId:t.customerId});break;case si:void 0!==t.customerPassword&&(r={...e,customerPassword:t.customerPassword});break;case Za:void 0!==t.additionalFields&&(r={...e,additionalFields:{...e.additionalFields,...t.additionalFields}});break;case ui:void 0!==t.useShippingAsBilling&&t.useShippingAsBilling!==e.useShippingAsBilling&&(r={...e,useShippingAsBilling:t.useShippingAsBilling});break;case _i:r={...e,editingBillingAddress:t.isEditing};break;case mi:r={...e,editingShippingAddress:t.isEditing};break;case pi:void 0!==t.shouldCreateAccount&&t.shouldCreateAccount!==e.shouldCreateAccount&&(r={...e,shouldCreateAccount:t.shouldCreateAccount});break;case ci:void 0!==t.prefersCollection&&t.prefersCollection!==e.prefersCollection&&(r={...e,prefersCollection:t.prefersCollection});break;case oi:void 0!==t.orderNotes&&e.orderNotes!==t.orderNotes&&(r={...e,orderNotes:t.orderNotes});break;case ai:void 0!==t.extensionData&&void 0!==t.namespace&&(r={...e,extensionData:{...e.extensionData,[t.namespace]:t.replace?t.extensionData:{...e.extensionData[t.namespace],...t.extensionData}}});break;case Qa:"string"!=typeof t.providerId||e.addressAutocompleteProviders?.includes(t.providerId)||(r={...e,addressAutocompleteProviders:[...e.addressAutocompleteProviders||[],t.providerId]});break;case Wa:"string"!=typeof t.providerId||"billing"!==t.addressType&&"shipping"!==t.addressType||t.providerId===e.activeAddressAutocompleteProvider?.[t.addressType]||(r={...e,activeAddressAutocompleteProvider:{...e.activeAddressAutocompleteProvider,[t.addressType]:t.providerId}})}return r},selectors:p,actions:u,__experimentalUseThunks:!0},en=(0,v.createReduxStore)(wr,Ji);(0,v.register)(en),(0,v.subscribe)(ua,en);const tn=wr,rn="wc/store/collections",sn=[],an=(e,t)=>!!t&&!!t.reduce((e,t)=>
63"object"==typeof e&&null!==e?e[t]:void 0,e);function nn(e,t){return an(e,t)}const on=({state:e,namespace:t,resourceName:r,query:s,ids:a,type:i="items",fallback:n=sn})=>nn(e,[t,r,a=JSON.stringify(a),s=null!==s?(0,yt.addQueryArgs)("",s):"",i])?e[t][r][a][s][i]:n,cn=(e,t,r,s=null,a=sn)=>on({state:e,namespace:t,resourceName:r,query:s,ids:a}),dn=(e,t,r,s=null,a=sn)=>on({state:e,namespace:t,resourceName:r,query:s,ids:a,type:"error",fallback:null}),ln=(e,t,r,s,a=null,i=sn)=>{const n=((e,t,r,s=null,a=sn)=>on({state:e,namespace:t,resourceName:r,query:s,ids:a,type:"headers",fallback:void 0}))(e,r,s,a,i);return n&&n.get?n.has(t)?n.get(t):void 0:null},pn=e=>e.lastModified||0,un={RECEIVE_COLLECTION:"RECEIVE_COLLECTION",RESET_COLLECTION:"RESET_COLLECTION",ERROR:"ERROR",RECEIVE_LAST_MODIFIED:"RECEIVE_LAST_MODIFIED",INVALIDATE_RESOLUTION_FOR_STORE:"INVALIDATE_RESOLUTION_FOR_STORE"};let mn=window.Headers||null;function En(e,t,r="",s=[],a={items:[],headers:mn},i=!1){return{type:i?un.RESET_COLLECTION:un.RECEIVE_COLLECTION,namespace:e,resourceName:t,queryString:r,ids:s,response:a}}function hn(e,t,r,s,a){return{type:"ERROR",namespace:e,resourceName:t,queryString:r,ids:s,response:{items:[],headers:mn,error:a}}}function gn(e){return{type:un.RECEIVE_LAST_MODIFIED,timestamp:e}}mn=mn?new mn:{get:()=>{},has:()=>{}};const yn="wc/store/schema";function*Sn(e,t,r,s){const a=yield v.controls.resolveSelect(yn,"getRoute",e,t,s),i=(0,yt.addQueryArgs)("",r);if(a)try{const{response:r=sn,headers:n}=yield pt({path:a+i});n&&n.get&&n.has("last-modified")&&(yield function*(e){const t=yield v.controls.resolveSelect(rn,"getCollectionLastModified");t?e>t&&(yield v.controls.dispatch(rn,"invalidateResolutionForStore"),yield v.controls.dispatch(rn,"receiveLastModified",e)):yield v.controls.dispatch(rn,"receiveLastModified",e)}(parseInt(n.get("last-modified"),10))),yield En(e,t,i,s,{items:r,headers:n})}catch(r){yield hn(e,t,i,s,r)}else yield En(e,t,i,s)}function*An(e,t,r,s,a){const i=[t,r,s,a].filter(e=>void 0!==e);yield v.controls.resolveSelect(rn,"getCollection",...i)}function Pn(e,t,r,s=0){const a=t[s];if(s===t.length-1)return{...e,[a]:r};const i=e[a]||{};return{...e,[a]:Pn(i,t,r,s+1)}}function Tn(e,t,r){return Pn(e,t,r)}const Rn={reducer:(e={},t)=>{if(t.type===un.RECEIVE_LAST_MODIFIED)return t.timestamp===e.lastModified?e:{...e,lastModified:t.timestamp};if(t.type===un.INVALIDATE_RESOLUTION_FOR_STORE)return{};const{type:r,namespace:s,resourceName:a,queryString:i,response:n}=t,o=t.ids?JSON.stringify(t.ids):"[]";switch(r){case un.RECEIVE_COLLECTION:if(nn(e,[s,a,o,i]))return e;e=Tn(e,[s,a,o,i],n);break;case un.RESET_COLLECTION:case un.ERROR:e=Tn(e,[s,a,o,i],n)}return e},actions:m,controls:{...I.controls,...Et},selectors:_,resolvers:E},vn=(0,v.createReduxStore)(rn,Rn);(0,v.register)(vn);const In=rn,Cn="wc/store/query-state",fn=(e,t)=>void 0===e[t]?null:e[t],bn=new Map,Dn=e=>(bn.has(e)||bn.set(e,JSON.parse(e)),bn.get(e)),wn=(e,t,r,s={})=>{const a=fn(e,t);if(null===a)return s;const i=Dn(a);return void 0!==i[r]?i[r]:s},On=(e,t,r={})=>{const s=fn(e,t);return null===s?r:Dn(s)},Mn="SET_QUERY_KEY_VALUE",Nn="SET_QUERY_CONTEXT_VALUE",kn=(e,t,r)=>({type:Mn,context:e,queryKey:t,value:r}),xn=(e,t)=>({type:Nn,context:e,value:t}),Ln={reducer:(e={},t)=>{const{type:r,context:s,queryKey:a,value:i}=t,n=fn(e,s);let o;switch(r){case Mn:const t=null!==n?JSON.parse(n):{};t[a]=i,o=JSON.stringify(t),n!==o&&(e={...e,[s]:o});break;case Nn:o=JSON.stringify(i),n!==o&&(e={...e,[s]:o})}return e},actions:g,selectors:h},Hn=(0,v.createReduxStore)(Cn,Ln);(0,v.register)(Hn);const Un=Cn,jn=(0,v.createRegistrySelector)(e=>(t,r,s,a=[])=>{const i=e(yn).hasFinishedResolution("getRoutes",[r]);let n="";if((t=t.routes)[r]?t[r][s]||(n=(0,C.sprintf)("There is no route for the given resource name (%s) in the store",s)):n=(0,C.sprintf)("There is no route for the given namespace (%s) in the store",r),""!==n){if(i)throw new Error(n);return""}const o=((e,t=[])=>{const r=(e=Object.entries(e)).find(([,e])=>t.length===e.length),[s,a]=r||[];return s?0===t.length?s:((e,t,r)=>(t.forEach((t,s)=>{e=e.replace(`{${t}}`,r[s])}),e))(s,a,t):""})(t[r][s],a);if(""===o&&i)throw new Error((0,C.sprintf)("While there is a route for the given namespace (%1$s) and resource name (%2$s), there is no route utilizing the number of ids you included in the select arguments. The available routes are: (%3$s)",r,s,JSON.stringify(t[r][s])));return o}
63),Fn=(0,v.createRegistrySelector)(e=>(t,r)=>{const s=e(yn).hasFinishedResolution("getRoutes",[r]),a=t.routes[r];if(!a){if(s)throw new Error((0,C.sprintf)("There is no route for the given namespace (%s) in the store",r));return[]}let i=[];for(const e in a)i=[...i,...Object.keys(a[e])];return i}),Yn={RECEIVE_MODEL_ROUTES:"RECEIVE_MODEL_ROUTES"};function Vn(e,t=V){return{type:Yn.RECEIVE_MODEL_ROUTES,routes:e,namespace:t}}function*Gn(e){yield v.controls.resolveSelect(yn,"getRoutes",e)}function*Bn(e){const t=yield(0,I.apiFetch)({path:e}),r=t&&t.routes?Object.keys(t.routes):[];yield Vn(r,e)}const qn={reducer:(0,v.combineReducers)({routes:(e={},t)=>{const{type:r,routes:s,namespace:a}=t;return r===Yn.RECEIVE_MODEL_ROUTES&&s.forEach(t=>{const r=((e,t)=>(t=t.replace(`${e}/`,"")).replace(/\/\(\?P\<[a-z_]*\>\[\\*[a-z]\]\+\)/g,""))(a,t);if(r&&r!==a){const s=(e=>{const t=e.match(/\<[a-z_]*\>/g);return Array.isArray(t)&&0!==t.length?t.map(e=>e.replace(/<|>/g,"")):[]})(t),i=((e,t)=>Array.isArray(t)&&0!==t.length?(t.forEach(t=>{const r=`\\(\\?P<${t}>.*?\\)`;e=e.replace(new RegExp(r),`{${t}}`)}),e):e)(t,s);nn(e,[a,r,i])||(e=Tn(e,[a,r,i],s))}}),e}}),actions:S,controls:I.controls,selectors:y,resolvers:A},zn=(0,v.createReduxStore)(yn,qn);(0,v.register)(zn);const Kn=yn;let Qn=function(e){return e.REGISTER_CONTAINER="REGISTER_CONTAINER",e.UNREGISTER_CONTAINER="UNREGISTER_CONTAINER",e}({});const Wn=e=>({type:Qn.REGISTER_CONTAINER,containerContext:e}),Xn=e=>({type:Qn.UNREGISTER_CONTAINER,containerContext:e}),$n=e=>e.containers,Zn={containers:[]},Jn="wc/store/store-notices",eo={reducer:(e=Zn,t)=>{switch(t.type){case Qn.REGISTER_CONTAINER:return{...e,containers:[...e.containers,t.containerContext]};case Qn.UNREGISTER_CONTAINER:const r=e.containers.filter(e=>e!==t.containerContext);return{...e,containers:r}}return e},actions:P,selectors:T},to=(0,v.createReduxStore)(Jn,eo);(0,v.register)(to);const ro=Jn;(this.wc=this.wc||{}).wcBlocksData=s})(); 64 65 66 67} 68catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://labadibeachhotelgh.com/wp-content/plugins/woocommerce/assets/client/blocks/wc-blocks-data.js\n- Error message: "+ e.message);} 69 70 71 72 var wcBlocksMiddlewareConfig = { 73 storeApiNonce: '048b8c78f0', 74 wcStoreApiNonceTimestamp: '1790786511' 75 }; 76 77/*! For license information please see index.js.LICENSE.txt */ 78(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{DEFAULT_ALLOWED_ATTR:()=>re,DEFAULT_ALLOWED_TAGS:()=>oe,getTrustedTypesPolicy:()=>le,sanitizeHTML:()=>ie});const{entries:n,setPrototypeOf:o,isFrozen:r,getPrototypeOf:i,getOwnPropertyDescriptor:a}=Object;let{freeze:l,seal:c,create:s}=Object,{apply:u,construct:m}="undefined"!=typeof Reflect&&Reflect;l||(l=function(e){return e}),c||(c=function(e){return e}),u||(u=function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];return e.apply(t,o)}),m||(m=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return new e(...n)});const p=R(Array.prototype.forEach),f=R(Array.prototype.lastIndexOf),d=R(Array.prototype.pop),h=R(Array.prototype.push),g=R(Array.prototype.splice),T=R(String.prototype.toLowerCase),y=R(String.prototype.toString),E=R(String.prototype.match),A=R(String.prototype.replace),_=R(String.prototype.indexOf),b=R(String.prototype.trim),S=R(Object.prototype.hasOwnProperty),N=R(RegExp.prototype.test),w=(D=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return m(D,t)});var D;function R(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return u(e,t,o)}}function O(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:T;o&&o(e,null);let i=t.length;for(;i--;){let o=t[i];if("string"==typeof o){const e=n(o);e!==o&&(r(t)||(t[i]=e),o=e)}e[o]=!0}return e}function L(e){for(let t=0;t<e.length;t++)S(e,t)||(e[t]=null);return e}function C(e){const t=s(null);for(const[o,r]of n(e))S(e,o)&&(Array.isArray(r)?t[o]=L(r):r&&"object"==typeof r&&r.constructor===Object?t[o]=C(r):t[o]=r);return t}function v(e,t){for(;null!==e;){const n=a(e,t);if(n){if(n.get)return R(n.get);if("function"==typeof n.value)return R(n.value)}e=i(e)}return function(){return null}}const k=l(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),M=l(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),x=l(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),I=l(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),z=l(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),P=l(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),U=l(["#text"]),F=l(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
78spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),H=l(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),W=l(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),B=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),G=c(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Y=c(/<%[\w\W]*|[\w\W]*%>/gm),j=c(/\$\{[\w\W]*/gm),X=c(/^data-[\-\w.\u00B7-\uFFFF]+$/),q=c(/^aria-[\-\w]+$/),$=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),K=c(/^(?:\w+script|data):/i),V=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Z=c(/^html$/i),J=c(/^[a-z][.\w]*(-[.\w]+)+$/i);var Q=Object.freeze({__proto__:null,ARIA_ATTR:q,ATTR_WHITESPACE:V,CUSTOM_ELEMENT:J,DATA_ATTR:X,DOCTYPE_NAME:Z,ERB_EXPR:Y,IS_ALLOWED_URI:$,IS_SCRIPT_OR_DATA:K,MUSTACHE_EXPR:G,TMPLIT_EXPR:j});const ee=function(){return"undefined"==typeof window?null:window};var te=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ee();const o=t=>e(t);if(o.version="3.4.0",o.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return o.isSupported=!1,o;let{document:r}=t;const i=r,a=i.currentScript,{DocumentFragment:c,HTMLTemplateElement:u,Node:m,Element:D,NodeFilter:R,NamedNodeMap:L=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:G,DOMParser:Y,trustedTypes:j}=t,X=D.prototype,q=v(X,"cloneNode"),K=v(X,"remove"),V=v(X,"nextSibling"),J=v(X,"childNodes"),te=v(X,"parentNode");if("function"==typeof u){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let ne,oe="";const{implementation:re,createNodeIterator:ie,createDocumentFragment:ae,getElementsByTagName:le}=r,{importNode:ce}=i;let se={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};o.isSupported="function"==typeof n&&"function"==typeof te&&re&&void 0!==re.createHTMLDocument;const{MUSTACHE_EXPR:ue,ERB_EXPR:me,TMPLIT_EXPR:pe,DATA_ATTR:fe,ARIA_ATTR:de,IS_SCRIPT_OR_DATA:he,ATTR_WHITESPACE:ge,CUSTOM_ELEMENT:Te}=Q;let{IS_ALLOWED_URI:ye}=Q,Ee=null;const Ae=O({}
vendor: 4,535 bytes, line 78
78,[...k,...M,...x,...z,...U]);let _e=null;const be=O({},[...F,...H,...W,...B]);let Se=Object.seal(s(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ne=null,we=null;const De=Object.seal(s(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Re=!0,Oe=!0,Le=!1,Ce=!0,ve=!1,ke=!0,Me=!1,xe=!1,Ie=!1,ze=!1,Pe=!1,Ue=!1,Fe=!0,He=!1,We=!0,Be=!1,Ge={},Ye=null;const je=O({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Xe=null;const qe=O({},["audio","video","img","source","image","track"]);let $e=null;const Ke=O({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ve="http://www.w3.org/1998/Math/MathML",Ze="http://www.w3.org/2000/svg",Je="http://www.w3.org/1999/xhtml";let Qe=Je,et=!1,tt=null;const nt=O({},[Ve,Ze,Je],y);let ot=O({},["mi","mo","mn","ms","mtext"]),rt=O({},["annotation-xml"]);const it=O({},["title","style","font","a","script"]);let at=null;const lt=["application/xhtml+xml","text/html"];let ct=null,st=null;const ut=r.createElement("form"),mt=function(e){return e instanceof RegExp||e instanceof Function},pt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!st||st!==e){if(e&&"object"==typeof e||(e={}),e=C(e),at=-1===lt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ct="application/xhtml+xml"===at?y:T,Ee=S(e,"ALLOWED_TAGS")?O({},e.ALLOWED_TAGS,ct):Ae,_e=S(e,"ALLOWED_ATTR")?O({},e.ALLOWED_ATTR,ct):be,tt=S(e,"ALLOWED_NAMESPACES")?O({},e.ALLOWED_NAMESPACES,y):nt,$e=S(e,"ADD_URI_SAFE_ATTR")?O(C(Ke),e.ADD_URI_SAFE_ATTR,ct):Ke,Xe=S(e,"ADD_DATA_URI_TAGS")?O(C(qe),e.ADD_DATA_URI_TAGS,ct):qe,Ye=S(e,"FORBID_CONTENTS")?O({},e.FORBID_CONTENTS,ct):je,Ne=S(e,"FORBID_TAGS")?O({},e.FORBID_TAGS,ct):C({}),we=S(e,"FORBID_ATTR")?O({},e.FORBID_ATTR,ct):C({}),Ge=!!S(e,"USE_PROFILES")&&e.USE_PROFILES,Re=!1!==e.ALLOW_ARIA_ATTR,Oe=!1!==e.ALLOW_DATA_ATTR,Le=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ce=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,ve=e.SAFE_FOR_TEMPLATES||!1,ke=!1!==e.SAFE_FOR_XML,Me=e.WHOLE_DOCUMENT||!1,ze=e.RETURN_DOM||!1,Pe=e.RETURN_DOM_FRAGMENT||!1,Ue=e.RETURN_TRUSTED_TYPE||!1,Ie=e.FORCE_BODY||!1,Fe=!1!==e.SANITIZE_DOM,He=e.SANITIZE_NAMED_PROPS||!1,We=!1!==e.KEEP_CONTENT,Be=e.IN_PLACE||!1,ye=e.ALLOWED_URI_REGEXP||$,Qe=e.NAMESPACE||Je,ot=e.MATHML_TEXT_INTEGRATION_POINTS||ot,rt=e.HTML_INTEGRATION_POINTS||rt,Se=e.CUSTOM_ELEMENT_HANDLING||s(null),e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Se.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Se.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Se.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ve&&(Oe=!1),Pe&&(ze=!0),Ge&&(Ee=O({},U),_e=s(null),!0===Ge.html&&(O(Ee,k),O(_e,F)),!0===Ge.svg&&(O(Ee,M),O(_e,H),O(_e,B)),!0===Ge.svgFilters&&(O(Ee,x),O(_e,H),O(_e,B)),!0===Ge.mathMl&&(O(Ee,z),O(_e,W),O(_e,B))),De.tagCheck=null,De.attributeCheck=null,e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?De.tagCheck=e.ADD_TAGS:(Ee===Ae&&(Ee=C(Ee)),O(Ee,e.ADD_TAGS,ct))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?De.attributeCheck=e.ADD_ATTR:(_e===be&&(_e=C(_e)),O(_e,e.ADD_ATTR,ct))),e.ADD_URI_SAFE_ATTR&&O($e,e.ADD_URI_SAFE_ATTR,ct),e.FORBID_CONTENTS&&(Ye===je&&(Ye=C(Ye)),O(Ye,e.FORBID_CONTENTS,ct)),e.ADD_FORBID_CONTENTS&&(Ye===je&&(Ye=C(Ye)),O(Ye,e.ADD_FORBID_CONTENTS,ct)),We&&(Ee["#text"]=!0),Me&&O(Ee,["html","head","body"]),Ee.table&&(O(Ee,["tbody"]),delete Ne.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ne=e.TRUSTED_TYPES_POLICY,oe=ne.createHTML("")}else void 0===ne&&(ne=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;
vendor: 4,374 bytes, line 78
78const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(j,a)),null!==ne&&"string"==typeof oe&&(oe=ne.createHTML(""));l&&l(e),st=e}},ft=O({},[...M,...x,...I]),dt=O({},[...z,...P]),ht=function(e){h(o.removed,{element:e});try{te(e).removeChild(e)}catch(t){K(e)}},gt=function(e,t){try{h(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){h(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ze||Pe)try{ht(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Tt=function(e){let t=null,n=null;if(Ie)e="<remove></remove>"+e;else{const t=E(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===at&&Qe===Je&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=ne?ne.createHTML(e):e;if(Qe===Je)try{t=(new Y).parseFromString(o,at)}catch(e){}if(!t||!t.documentElement){t=re.createDocument(Qe,"template",null);try{t.documentElement.innerHTML=et?oe:o}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),Qe===Je?le.call(t,Me?"html":"body")[0]:Me?t.documentElement:i},yt=function(e){return ie.call(e.ownerDocument||e,e,R.SHOW_ELEMENT|R.SHOW_COMMENT|R.SHOW_TEXT|R.SHOW_PROCESSING_INSTRUCTION|R.SHOW_CDATA_SECTION,null)},Et=function(e){return e instanceof G&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof L)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},At=function(e){return"function"==typeof m&&e instanceof m};function _t(e,t,n){p(e,e=>{e.call(o,t,n,st)})}const bt=function(e){let t=null;if(_t(se.beforeSanitizeElements,e,null),Et(e))return ht(e),!0;const n=ct(e.nodeName);if(_t(se.uponSanitizeElement,e,{tagName:n,allowedTags:Ee}),ke&&e.hasChildNodes()&&!At(e.firstElementChild)&&N(/<[/\w!]/g,e.innerHTML)&&N(/<[/\w!]/g,e.textContent))return ht(e),!0;if(ke&&e.namespaceURI===Je&&"style"===n&&At(e.firstElementChild))return ht(e),!0;if(7===e.nodeType)return ht(e),!0;if(ke&&8===e.nodeType&&N(/<[/\w]/g,e.data))return ht(e),!0;if(Ne[n]||!(De.tagCheck instanceof Function&&De.tagCheck(n))&&!Ee[n]){if(!Ne[n]&&Nt(n)){if(Se.tagNameCheck instanceof RegExp&&N(Se.tagNameCheck,n))return!1;if(Se.tagNameCheck instanceof Function&&Se.tagNameCheck(n))return!1}if(We&&!Ye[n]){const t=te(e)||e.parentNode,n=J(e)||e.childNodes;if(n&&t)for(let o=n.length-1;o>=0;--o){const r=q(n[o],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,V(e))}}return ht(e),!0}return e instanceof D&&!function(e){let t=te(e);t&&t.tagName||(t={namespaceURI:Qe,tagName:"template"});const n=T(e.tagName),o=T(t.tagName);return!!tt[e.namespaceURI]&&(e.namespaceURI===Ze?t.namespaceURI===Je?"svg"===n:t.namespaceURI===Ve?"svg"===n&&("annotation-xml"===o||ot[o]):Boolean(ft[n]):e.namespaceURI===Ve?t.namespaceURI===Je?"math"===n:t.namespaceURI===Ze?"math"===n&&rt[o]:Boolean(dt[n]):e.namespaceURI===Je?!(t.namespaceURI===Ze&&!rt[o])&&!(t.namespaceURI===Ve&&!ot[o])&&!dt[n]&&(it[n]||!ft[n]):!("application/xhtml+xml"!==at||!tt[e.namespaceURI]))}(e)?(ht(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!N(/<\/no(script|embed|frames)/i,e.innerHTML)?(ve&&3===e.nodeType&&(t=e.textContent,p([ue,me,pe],e=>{t=A(t,e," ")}),e.textContent!==t&&(h(o.removed,{element:e.cloneNode()}),e.textContent=t)),_t(se.afterSanitizeElements,e,null),!1):(ht(e),!0)},St=function(e,t,n){if(we[t])return!1;if(Fe&&("id"===t||"name"===t)&&(n in r||n in ut))return!1;if(Oe&&!we[t]&&N(fe,t));else if(Re&&N(de,t));else if(De.attributeCheck instanceof Function&&De.attributeCheck(t,e));else if(!_e[t]||we[t]){if(!(Nt(e)&&(Se.tagNameCheck instanceof RegExp&&N(Se.tagNameCheck,e)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(e))&&(Se.attributeNameCheck instanceof RegExp&&N(Se.attributeNameCheck,t)||Se.attributeNameCheck instanceof Function&&Se.attributeNameCheck(t,e))||"is"===t&&Se.allowCustomizedBuiltInElements&&(Se.tagNameCheck instanceof RegExp&&N(Se.tagNameCheck,n)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(n))))return!1}else if($e[t]);else if(N(ye,A(n,ge,"")));
vendor: 4,922 bytes, lines 78-83
78else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==_(n,"data:")||!Xe[e])if(Le&&!N(he,A(n,ge,"")));else if(n)return!1;return!0},Nt=function(e){return"annotation-xml"!==e&&E(e,Te)},wt=function(e){_t(se.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Et(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:_e,forceKeepAttr:void 0};let r=t.length;for(;r--;){const i=t[r],{name:a,namespaceURI:l,value:c}=i,s=ct(a),u=c;let m="value"===a?u:b(u);if(n.attrName=s,n.attrValue=m,n.keepAttr=!0,n.forceKeepAttr=void 0,_t(se.uponSanitizeAttribute,e,n),m=n.attrValue,!He||"id"!==s&&"name"!==s||(gt(a,e),m="user-content-"+m),ke&&N(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,m)){gt(a,e);continue}if("attributename"===s&&E(m,"href")){gt(a,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){gt(a,e);continue}if(!Ce&&N(/\/>/i,m)){gt(a,e);continue}ve&&p([ue,me,pe],e=>{m=A(m,e," ")});const f=ct(e.nodeName);if(St(f,s,m)){if(ne&&"object"==typeof j&&"function"==typeof j.getAttributeType)if(l);else switch(j.getAttributeType(f,s)){case"TrustedHTML":m=ne.createHTML(m);break;case"TrustedScriptURL":m=ne.createScriptURL(m)}if(m!==u)try{l?e.setAttributeNS(l,a,m):e.setAttribute(a,m),Et(e)?ht(e):d(o.removed)}catch(t){gt(a,e)}}else gt(a,e)}_t(se.afterSanitizeAttributes,e,null)},Dt=function(e){let t=null;const n=yt(e);for(_t(se.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)_t(se.uponSanitizeShadowNode,t,null),bt(t),wt(t),t.content instanceof c&&Dt(t.content);_t(se.afterSanitizeShadowDOM,e,null)};return o.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,r=null,a=null,l=null;if(et=!e,et&&(e="\x3c!--\x3e"),"string"!=typeof e&&!At(e)){if("function"!=typeof e.toString)throw w("toString is not a function");if("string"!=typeof(e=e.toString()))throw w("dirty is not a string, aborting")}if(!o.isSupported)return e;if(xe||pt(t),o.removed=[],"string"==typeof e&&(Be=!1),Be){if(e.nodeName){const t=ct(e.nodeName);if(!Ee[t]||Ne[t])throw w("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof m)n=Tt("\x3c!----\x3e"),r=n.ownerDocument.importNode(e,!0),1===r.nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!ze&&!ve&&!Me&&-1===e.indexOf("<"))return ne&&Ue?ne.createHTML(e):e;if(n=Tt(e),!n)return ze?null:Ue?oe:""}n&&Ie&&ht(n.firstChild);const s=yt(Be?e:n);for(;a=s.nextNode();)bt(a),wt(a),a.content instanceof c&&Dt(a.content);if(Be)return e;if(ze){if(ve){n.normalize();let e=n.innerHTML;p([ue,me,pe],t=>{e=A(e,t," ")}),n.innerHTML=e}if(Pe)for(l=ae.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(_e.shadowroot||_e.shadowrootmode)&&(l=ce.call(i,l,!0)),l}let u=Me?n.outerHTML:n.innerHTML;return Me&&Ee["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&N(Z,n.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+u),ve&&p([ue,me,pe],e=>{u=A(u,e," ")}),ne&&Ue?ne.createHTML(u):u},o.setConfig=function(){pt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),xe=!0},o.clearConfig=function(){st=null,xe=!1},o.isValidAttribute=function(e,t,n){st||pt({});const o=ct(e),r=ct(t);return St(o,r,n)},o.addHook=function(e,t){"function"==typeof t&&h(se[e],t)},o.removeHook=function(e,t){if(void 0!==t){const n=f(se[e],t);return-1===n?void 0:g(se[e],n,1)[0]}return d(se[e])},o.removeHooks=function(e){se[e]=[]},o.removeAllHooks=function(){se={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},o}();let ne;const oe=["a","b","em","i","strong","p","br","abbr"],re=["target","href","rel","name","download","title"];function ie(e,t){const n={ALLOWED_TAGS:[...t?.tags||oe],ALLOWED_ATTR:[...t?.attr||re]},o=function(){if(void 0!==ne)return ne;if("undefined"==typeof window||!window.trustedTypes)return ne=null,null;try{ne=window.trustedTypes.createPolicy("woocommerce-sanitize-noop",{createHTML:e=>e})}catch(e){ne=null,console.warn('Failed to create "woocommerce-sanitize-noop" trusted type policy:',e)}return ne}();return o&&(n.TRUSTED_TYPES_POLICY=o),"HTMLBodyElement"===t?.returnType?n.RETURN_DOM=!0:"DocumentFragment"===t?.returnType&&(n.RETURN_DOM_FRAGMENT=!0),te.sanitize(e??"",n)}let ae;function le(){if(void 0!==ae)return ae;if("undefined"==typeof window||!window.trustedTypes)return ae=null,null;try{ae=window.trustedTypes.createPolicy("woocommerce-sanitize",{createHTML:e=>ie(e)})}catch(e){ae=null,console.warn('Failed to create "woocommerce-sanitize" trusted type policy:',e)}return ae}(window.wc=window.wc||{}).sanitize=t})(); 79 80 81 82} 83catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://labadibeachhotelgh.com/w
83p-content/plugins/woocommerce/assets/client/admin/sanitize/index.js\n- Error message: "+ e.message);} 84 85 86 var wcBlocksMiddlewareConfig = { 87 storeApiNonce: '048b8c78f0', 88 wcStoreApiNonceTimestamp: '1790786511' 89 }; 90 91/*! This file is auto-generated */ 92(()=>{"use strict";var e={d:(t,d)=>{for(var o in d)e.o(d,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:d[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};function d(e){"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",e):e())}e.d(t,{default:()=>d}),(window.wp=window.wp||{}).domReady=t.default})(); 93 94 95 96} 97catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://labadibeachhotelgh.com/wp-includes/js/dist/dom-ready.min.js\n- Error message: "+ e.message);} 98 99 100 101 var wcBlocksMiddlewareConfig = { 102 storeApiNonce: '048b8c78f0', 103 wcStoreApiNonceTimestamp: '1790786511' 104 }; 105 106/*! This file is auto-generated */ 107(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{setup:()=>s,speak:()=>d});const n=window.wp.domReady;var o=e.n(n);function i(e="polite"){const t=document.createElement("div");t.id=`a11y-speak-${e}`,t.className="a11y-speak-region",t.setAttribute("style","position:absolute;margin:-1px;padding:0;height:1px;width:1px;overflow:hidden;clip-path:inset(50%);border:0;word-wrap:normal !important;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true");const{body:n}=document;return n&&n.appendChild(t),t}const a=window.wp.i18n;let r="";function d(e,t){!function(){const e=document.getElementsByClassName("a11y-speak-region"),t=document.getElementById("a11y-speak-intro-text");for(let t=0;t<e.length;t++)e[t].textContent="";t&&t.setAttribute("hidden","hidden")}(),e=function(e){return e=e.replace(/<[^<>]+>/g," "),r===e&&(e+="Â "),r=e,e}(e);const n=document.getElementById("a11y-speak-intro-text"),o=document.getElementById("a11y-speak-assertive"),i=document.getElementById("a11y-speak-polite");o&&"assertive"===t?o.textContent=e:i&&(i.textContent=e),n&&n.removeAttribute("hidden")}function s(){const e=document.getElementById("a11y-speak-intro-text"),t=document.getElementById("a11y-speak-assertive"),n=document.getElementById("a11y-speak-polite");null===e&&function(){const e=document.createElement("p");e.id="a11y-speak-intro-text",e.className="a11y-speak-intro-text",e.textContent=(0,a.__)("Notifications"),e.setAttribute("style","position:absolute;margin:-1px;padding:0;height:1px;width:1px;overflow:hidden;clip-path:inset(50%);border:0;word-wrap:normal !important;"),e.setAttribute("hidden","");const{body:t}=document;t&&t.appendChild(e)}(),null===t&&i("assertive"),null===n&&i("polite")}o()(s),(window.wp=window.wp||{}).a11y=t})(); 108 109 110 111} 112catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://labadibeachhotelgh.com/wp-includes/js/dist/a11y.min.js\n- Error message: "+ e.message);} 113 114 115 var wcBlocksMiddlewareConfig = { 116 storeApiNonce: '048b8c78f0', 117 wcStoreApiNonceTimestamp: '1790786511' 118 }; 119 120/*! This file is auto-generated */ 121(()=>{"use strict";var e={d:(t,r)=>{for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{BlockQuotation:()=>g,Circle:()=>i,Defs:()=>m,G:()=>l,HorizontalRule:()=>b,Line:()=>c,LinearGradient:()=>u,Path:()=>s,Polygon:()=>d,RadialGradient:()=>p,Rect:()=>f,SVG:()=>w,Stop:()=>y,View:()=>v});const r=window.ReactJSXRuntime;function n(e){var t,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=n(e[t]))&&(o&&(o+=" "),o+=r)}
121else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}const o=function(){for(var e,t,r=0,o="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=n(e))&&(o&&(o+=" "),o+=t);return o},a=window.wp.element,i=e=>(0,a.createElement)("circle",e),l=e=>(0,a.createElement)("g",e),c=e=>(0,a.createElement)("line",e),s=e=>(0,a.createElement)("path",e),d=e=>(0,a.createElement)("polygon",e),f=e=>(0,a.createElement)("rect",e),m=e=>(0,a.createElement)("defs",e),p=e=>(0,a.createElement)("radialGradient",e),u=e=>(0,a.createElement)("linearGradient",e),y=e=>(0,a.createElement)("stop",e),w=(0,a.forwardRef)((({className:e,isPressed:t,...n},a)=>{const i={...n,className:o(e,{"is-pressed":t})||void 0,"aria-hidden":!0,focusable:!1};return(0,r.jsx)("svg",{...i,ref:a})}));w.displayName="SVG";const b="hr",g="blockquote",v="div";(window.wp=window.wp||{}).primitives=t})(); 122 123 124 125} 126catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://labadibeachhotelgh.com/wp-includes/js/dist/primitives.min.js\n- Error message: "+ e.message);} 127 128 129 130 var wcBlocksMiddlewareConfig = { 131 storeApiNonce: '048b8c78f0', 132 wcStoreApiNonceTimestamp: '1790786511' 133 }; 134 135var wc;(()=>{"use strict";var e,t,o,r={1609:e=>{e.exports=window.React},5795:e=>{e.exports=window.ReactDOM},790:e=>{e.exports=window.ReactJSXRuntime},2435:e=>{e.exports=window.wc.sanitize},7594:e=>{e.exports=window.wc.wcBlocksData},5703:e=>{e.exports=window.wc.wcSettings},3993:e=>{e.exports=window.wc.wcTypes},195:e=>{e.exports=window.wp.a11y},9491:e=>{e.exports=window.wp.compose},7143:e=>{e.exports=window.wp.data},4040:e=>{e.exports=window.wp.deprecated},6087:e=>{e.exports=window.wp.element},8537:e=>{e.exports=window.wp.htmlEntities},7723:e=>{e.exports=window.wp.i18n},692:e=>{e.exports=window.wp.notices},5573:e=>{e.exports=window.wp.primitives}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return r[e].call(o.exports,o,o.exports,i),o.exports}i.m=r,e=[],i.O=(t,o,r,n)=>{if(!o){var w=1/0;for(a=0;a<e.length;a++){for(var[o,r,n]=e[a],p=!0,c=0;c<o.length;c++)(!1&n||w>=n)&&Object.keys(i.O).every(e=>i.O[e](o[c]))?o.splice(c--,1):(p=!1,n<w&&(w=n));if(p){e.splice(a--,1);var s=r();void 0!==s&&(t=s)}}return t}n=n||0;for(var a=e.length;a>0&&e[a-1][2]>n;a--)e[a]=e[a-1];e[a]=[o,r,n]},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},o=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var n=Object.create(null);i.r(n);var w={};t=t||[null,o({}),o([]),o(o)];for(var p=2&r&&e;"object"==typeof p&&!~t.indexOf(p);p=o(p))Object.getOwnPropertyNames(p).forEach(t=>w[t]=()=>e[t]);return w.default=()=>e,i.d(n,w),n},i.d=(e,t)=>{for(var o in t)i.o(t,o)&&!i.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.j=981,(()=>{var e={981:0};i.O.j=t=>0===e[t];var t=(t,o)=>{var r,n,[w,p,c]=o,s=0;if(w.some(t=>0!==e[t])){for(r in p)i.o(p,r)&&(i.m[r]=p[r]);if(c)var a=c(i)}for(t&&t(o);s<w.length;s++)n=w[s],i.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return i.O(a)},o=globalThis.webpackChunkwebpackWcBlocksCartCheckoutFrontendJsonp=globalThis.webpackChunkwebpackWcBlocksCartCheckoutFrontendJsonp||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var w=i.O(void 0,[817,167],()=>i(357));w=i.O(w),(wc=void 0===wc?{}:wc).blocksComponents=w})(); 136 137 138 139} 140catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://labadibeachhotelgh.com/wp-content/plugins/woocommerce/assets/client/blocks/blocks-components.js\n- Error message: "+ e.message);} 141 142 143 var wcBlocksMiddlewareConfig = { 144 storeApiNonce: '048b8c78f0', 145 wcStoreApiNonceTimestamp: '1790786511' 146 }; 147 148/*! This file is auto-generated */ 149(()=>{"use strict";var e={d:(t,o)=>{for(var r in o)e.o(o,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:o[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>o});function o(e){}(window.wp=window.wp||{}).warning=t.default})(); 150 151 152 153} 154catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://labadibeachhotelgh.com/w
154p-includes/js/dist/warning.min.js\n- Error message: "+ e.message);} 155 156 157 158 var wcBlocksMiddlewareConfig = { 159 storeApiNonce: '048b8c78f0', 160 wcStoreApiNonceTimestamp: '1790786511' 161 }; 162 163var wc;(()=>{"use strict";var e,o,t,r={1609:e=>{e.exports=window.React},5795:e=>{e.exports=window.ReactDOM},790:e=>{e.exports=window.ReactJSXRuntime},2679:e=>{e.exports=window.wc.blocksCheckoutEvents},4656:e=>{e.exports=window.wc.blocksComponents},2435:e=>{e.exports=window.wc.sanitize},7594:e=>{e.exports=window.wc.wcBlocksData},4083:e=>{e.exports=window.wc.wcBlocksRegistry},5703:e=>{e.exports=window.wc.wcSettings},3993:e=>{e.exports=window.wc.wcTypes},195:e=>{e.exports=window.wp.a11y},9491:e=>{e.exports=window.wp.compose},7143:e=>{e.exports=window.wp.data},4040:e=>{e.exports=window.wp.deprecated},6087:e=>{e.exports=window.wp.element},8537:e=>{e.exports=window.wp.htmlEntities},7723:e=>{e.exports=window.wp.i18n},923:e=>{e.exports=window.wp.isShallowEqual},692:e=>{e.exports=window.wp.notices},5573:e=>{e.exports=window.wp.primitives},979:e=>{e.exports=window.wp.warning}},n={};function w(e){var o=n[e];if(void 0!==o)return o.exports;var t=n[e]={exports:{}};return r[e].call(t.exports,t,t.exports,w),t.exports}w.m=r,e=[],w.O=(o,t,r,n)=>{if(!t){var i=1/0;for(a=0;a<e.length;a++){for(var[t,r,n]=e[a],p=!0,c=0;c<t.length;c++)(!1&n||i>=n)&&Object.keys(w.O).every(e=>w.O[e](t[c]))?t.splice(c--,1):(p=!1,n<i&&(i=n));if(p){e.splice(a--,1);var s=r();void 0!==s&&(o=s)}}return o}n=n||0;for(var a=e.length;a>0&&e[a-1][2]>n;a--)e[a]=e[a-1];e[a]=[t,r,n]},w.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return w.d(o,{a:o}),o},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,w.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var n=Object.create(null);w.r(n);var i={};o=o||[null,t({}),t([]),t(t)];for(var p=2&r&&e;"object"==typeof p&&!~o.indexOf(p);p=t(p))Object.getOwnPropertyNames(p).forEach(o=>i[o]=()=>e[o]);return i.default=()=>e,w.d(n,i),n},w.d=(e,o)=>{for(var t in o)w.o(o,t)&&!w.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},w.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),w.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),w.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},w.j=157,(()=>{var e={157:0,981:0};w.O.j=o=>0===e[o];var o=(o,t)=>{var r,n,[i,p,c]=t,s=0;if(i.some(o=>0!==e[o])){for(r in p)w.o(p,r)&&(w.m[r]=p[r]);if(c)var a=c(w)}for(o&&o(t);s<i.length;s++)n=i[s],w.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return w.O(a)},t=globalThis.webpackChunkwebpackWcBlocksCartCheckoutFrontendJsonp=globalThis.webpackChunkwebpackWcBlocksCartCheckoutFrontendJsonp||[];t.forEach(o.bind(null,0)),t.push=o.bind(null,t.push.bind(t))})();var i=w.O(void 0,[817,167],()=>w(5171));i=w.O(i),(wc=void 0===wc?{}:wc).blocksCheckout=i})(); 164 165 166 167} 168catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://labadibeachhotelgh.com/wp-content/plugins/woocommerce/assets/client/blocks/blocks-checkout.js\n- Error message: "+ e.message);} 169 170 171 var wcBlocksMiddlewareConfig = { 172 storeApiNonce: '048b8c78f0', 173 wcStoreApiNonceTimestamp: '1790786511' 174 }; 175 176!function(c){"use strict";window.wc.blocksCheckout.registerCheckoutFilters("example-extension",{itemName:function(t,e,r){return r.cartItem.description&&c(r.cartItem.description).find(".cs-room-order-date").length?t+r.cartItem.description:t},cartItemClass:function(t,e,r){return r.cartItem.description&&c(r.cartItem.description).find(".cs-room-order-date").length?t+"cs-room-item":t}})}(jQuery); 177 178 179 180} 181catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://labadibeachhotelgh.com/wp-content/themes/cozystay/assets/scripts/front/shop.min.js\n- Error message: "+ e.message);} 182 183 184 var wcBlocksMiddlewareConfig = { 185 storeApiNonce: '048b8c78f0', 186 wcStoreApiNonceTimestamp: '1790786511' 187 }; 188 189(()=>{function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function t(t){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};
189r%2?e(Object(i),!0).forEach(function(e){n(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}jQuery(document).ready(function(){window.fluentFormrecaptchaSuccessCallback=function(e){if(window.innerWidth<768&&/iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream){var t=jQuery(".g-recaptcha").filter(function(t,n){return grecaptcha.getResponse(t)==e});t.length&&jQuery("html, body").animate({scrollTop:t.first().offset().top-jQuery(window).height()/2},0)}},window.ffValidationError=function(){var e=function(){};return(e.prototype=Object.create(Error.prototype)).constructor=e,e}(),window.ff_helper={numericVal:function(e){if(e.hasClass("ff_numeric")){var t=JSON.parse(e.attr("data-formatter"));return currency(e.val(),t).value}return e.val()||0},formatCurrency:function(e,t){if(e.hasClass("ff_numeric")){var n=JSON.parse(e.attr("data-formatter"));return currency(t,n).format()}return t}},function(e,n){e||(e={}),e.stepAnimationDuration=parseInt(e.stepAnimationDuration);var i={};window.fluentFormApp=function(t){var a=t.attr("data-form_instance");a=a?a.replace(/[^a-zA-Z0-9_-]/g,""):"";var f=window["fluent_form_"+a],s=f&&"object"===r(f)?f:null;if(!s)return console.log("No Fluent form JS vars found!"),!1;if(i[a])return i[a];e.ajaxUrl||(e.ajaxUrl=s.ajaxUrl||window.ajaxurl);var c,l,u,d,h,p,m,v,g,_,w,y,b,k,x,C,j,S,T,O,Q,E,A,F,P,D=s.form_id_selector,N="."+a;return c=o,l={},u=!1,d=function(){return n("body").find("form"+N)},p=function(e,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"next";t.trigger("update_slider",{goBackToStep:e,animDuration:n,isScrollTop:r,actionType:i})},m=function(e){try{var t=e.find(":input").filter(function(e,t){return"repeater_container"===n(t).attr("data-type")?!n(t).closest(".ff-repeater-container").hasClass("ff_excluded")&&(n(this).closest(".has-conditions").hasClass("ff_excluded")&&n(this).val(""),!0):!n(t).closest(".has-conditions").hasClass("ff_excluded")});x(t);var r=t.serializeArray(),i=r.map(function(e){return e.name});t=t.filter(function(){return!n(this).closest(".ff-el-input--content").find("table").length});var a={};t.each(function(){var t=n(this).attr("name");i.includes(t)||(n(this).is(":checkbox")||n(this).is(":radio"))&&(a[t]||e.find('input[name="'+t+'"]:checked').length||(r.push({name:t,value:""}),a[t]=!0))});var o={data:n.param(n.map(r,function(e){return{name:e.name,value:e.value}})),action:"fluentform_submit",form_id:e.data("form_id")};if(n.each(e.find("[type=file]"),function(e,t){var r={},i=t.name+"[]";r[i]=[],n(t).closest("div").find(".ff-uploaded-list").find(".ff-upload-preview[data-src]").each(function(e,t){r[i][e]=n(this).data("src")}),n.each(r,function(e,t){if(t.length){var r={};r[e]=t,o.data+="&"+n.param(r)}})}),e.find(".ff_uploading").length){var f=n("<div/>",{class:"error text-danger"}),c=n("<span/>",{class:"error-clear",html:"×",click:function(e){return n(N+"_errors").html("")}}),u=n("<span/>",{class:"error-text",text:(m="file_upload_in_progress",_="File upload in progress. Please wait...",w="fluentform_submission_messages_"+s.id,window[w]&&window[w][m]?window[w][m]:_)});return n(N+"_errors").html(f.append(u,c)).show()}if(e.find(".ff-el-recaptcha.g-recaptcha").length){var d=e.find(".ff-el-recaptcha.g-recaptcha").data("g-recaptcha_widget_id");void 0!==d&&(o.data+="&"+n.param({"g-recaptcha-response":grecaptcha.getResponse(d)}))}if(e.find(".ff-el-hcaptcha.h-captcha").length){var h=e.find(".ff-el-hcaptcha.h-captcha").data("h-captcha_widget_id");void 0!==h&&(o.data+="&"+n.param({"h-captcha-response":hcaptcha.getResponse(h)}))}if(e.find(".ff-el-turnstile.cf-turnstile").length){var p=e.find(".ff-el-turnstile.cf-turnstile").data("cf-turnstile_widget_id");void 0!==p&&(o.data+="&"+n.param({"cf-turnstile-response":turnstile.getResponse(p)}))}n(N+"_success").remove(),n(N+"_errors").html(""),e.find(".error").html(""),e.parent().find(".ff-errors-in-stack").hide(),function(e,t){var n=[],r=l;return e.hasClass("ff_has_v3_recptcha")&&(r.ff_v3_recptcha=function(e,t){var n=jQuery.Deferred(),r=e.data("recptcha_key");return grecaptcha.execute(r,{action:"submit"}).then(function(e){t.data+="&"+jQuery.param({"g-recaptcha-response":e}),n.resolve()}),n.promise()}),jQuery.each(r,function(r,i){n.push(i(e,t))}),jQuery.when.apply(jQuery,n)}(e,o).then(function(){g(e),v(e,o)})}catch(t){if(!(t instanceof ffValidationError))throw t;e.trigger("fluentform_validation_failed",{form:e,response:t.messages}),C(t.messages),b(350)}var m,_,w},v=function(t,r){var i,a,o,f=(i="t="+Date.now(),a=e.ajaxUrl,a+=(a.split("?")[1]?"&":"?")+i);u||(u=!0,n.post(f,r).then(function(r){if(!r||!r.data||!r.data.result)return t.trigger("fluentform_submission_failed",{form:t,response:r}),void C(r);if(o=r,r.data.append_data&&F(r.data.append_data),r.data.nextAction)t.trigger("fluentform_next_action_"+r.data.nextAction,{form:t,response:r});else{t.triggerHandler("fluentform_submission_success",{form:t,config:s,response:r}),jQuery(document.body).trigger("fluentform_submission_success",{form:t,config:s,response:r});var i=new CustomEvent("fluentform_submission_success",{detail:{form:t[0],config:s,response:r}});if(document.dispatchEvent(i),"redirectUrl"in r.data.result)return r.data.result.message&&(n("<div/>",{id:D+"_success",class:"ff-message-success",role:"status","aria-live":"polite"}).html(r.data.result.message).insertAfter(t).focus(),t.find(".ff-el-is-error").removeClass("ff-el-is-error")),setTimeout(function(){_(t)},500),void(location.href=r.data.result.redirectUrl);var a=D+"_success",f="#"+a;
189n(f).length&&n(f).slideUp("fast"),n("<div/>",{id:a,class:"ff-message-success",role:"status","aria-live":"polite"}).html(r.data.result.message).insertAfter(t).focus(),t.find(".ff-el-is-error").removeClass("ff-el-is-error"),"hide_form"==r.data.result.action?(t.hide().addClass("ff_force_hide"),t[0].reset()):(jQuery(document.body).trigger("fluentform_reset",[t,s]),t[0].reset());var c=n(f);c.length&&!k(c[0])&&n("html, body").animate({scrollTop:c.offset().top-(n("#wpadminbar")?32:0)-20},e.stepAnimationDuration)}}).fail(function(n){t.trigger("fluentform_submission_failed",{form:t,response:n});var r=new CustomEvent("fluentform_submission_failed",{detail:{form:t[0],response:n,config:s}});if(document.dispatchEvent(r),n&&n.responseJSON&&(n.responseJSON.data||n.responseJSON.errors)){if(o=n,n.responseJSON.append_data&&F(n.responseJSON.append_data),C(n.responseJSON.errors||n.responseJSON.data),b(350),t.find(".fluentform-step").length){var i=t.find(".error").not(":empty:first").closest(".fluentform-step");if(i.length){var a=i.index();p(a,e.stepAnimationDuration,!1)}}_(t)}else C(n.responseText)}).always(function(e){var n;if(u=!1,null===(n=o)||void 0===n||null===(n=n.data)||void 0===n||null===(n=n.result)||void 0===n||!n.hasOwnProperty("redirectUrl")){if(_(t),window.grecaptcha){var r=t.find(".ff-el-recaptcha.g-recaptcha").data("g-recaptcha_widget_id");void 0!==r&&grecaptcha.reset(r)}if(window.hcaptcha){var i=t.find(".ff-el-hcaptcha.h-captcha").data("h-captcha_widget_id");void 0!==i&&hcaptcha.reset(i)}if(window.turnstile){var a=t.find(".ff-el-turnstile.cf-turnstile").data("cf-turnstile_widget_id");void 0!==a&&turnstile.reset(a)}}}))},w=function(){"yes"!=t.attr("data-ff_reinit")&&(n(document).on("submit",N,function(e){e.preventDefault(),window.ff_sumitting_form||(window.ff_sumitting_form=!0,setTimeout(function(){window.ff_sumitting_form=!1},1500),m(n(this)))}),n(document).on("reset",N,function(r){!function(r){n(".ff-step-body",t).length&&p(0,e.stepAnimationDuration,!1),r.find(".ff-el-repeat .ff-t-cell").each(function(){n(this).find("input").not(":first").remove()}),r.find(".ff-el-repeat .ff-el-repeat-buttons-list").find(".ff-el-repeat-buttons").not(":first").remove();var i=r.find("input[type=checkbox],input[type=radio]");i.length&&i.each(function(e,t){(t=n(t)).prop("defaultChecked")?t.closest(".ff-el-form-check").addClass("ff_item_selected"):t.closest(".ff-el-form-check.ff_item_selected").removeClass("ff_item_selected")}),r.find("input[type=file]").closest("div").find(".ff-uploaded-list").html("").end().closest("div").find(".ff-upload-progress").addClass("ff-hidden").find(".ff-el-progress-bar").css("width","0%");var a=r.find('input[type="range"]');a.length&&a.each(function(e,t){(t=n(t)).val(t.data("calc_value")).change()}),n.each(s.conditionals,function(e,t){n.each(t.conditions,function(e,t){y(O(t.field))})})}(n(this))}),n(document).on("keydown",N+' input[type="radio"], '+N+' input[type="checkbox"]',function(e){if("Enter"===e.key)return e.preventDefault(),"radio"===n(this).attr("type")?n(this).prop("checked",!0):"checkbox"===n(this).attr("type")&&n(this).prop("checked",!n(this).prop("checked")),n(this).trigger("change"),e.stopPropagation(),!1}))},y=function(e){var t=e.prop("type");null!=t&&("checkbox"==t||"radio"==t?e.each(function(e,t){var r=n(this);r.prop("checked",r.prop("defaultChecked"))}):t.startsWith("select")?e.find("option").each(function(e,t){var r=n(this);r.prop("selected",r.prop("defaultSelected"))}):e.val(e.prop("defaultValue")),e.trigger("change"))},b=function(e){var r=s.settings.layout.errorMessagePlacement;if(r&&"stackToBottom"!=r){var i=t.find(".ff-el-is-error").first();i.length&&!k(i[0])&&n("html, body").delay(e).animate({scrollTop:i.offset().top-(n("#wpadminbar")?32:0)-20},e)}},k=function(e){if(!e)return!0;var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=n(window).height()&&t.right<=n(window).width()},C=function(e){if(t.parent().find(".ff-errors-in-stack").empty(),e)if("string"!=typeof e){var r=s.settings.layout.errorMessagePlacement;if(!r||"stackToBottom"==r)return j(e),!1;t.find(".error").empty(),t.find(".ff-el-group").removeClass("ff-el-is-error"),n.each(e,function(e,t){"string"==typeof t&&(t=[t]),n.each(t,function(t,n){S(e,n)})})}else j({error:[e]})},j=function(e){var t=d(),r=t.parent().find(".ff-errors-in-stack");e&&(n.isEmptyObject(e)||(n.each(e,function(e,i){"string"==typeof i&&(i=[i]),n.each(i,function(i,a){var o=n("<div/>",{class:"error text-danger"}),f=n("<span/>",{class:"error-clear",html:"×"}),s=n("<span/>",{class:"error-text","data-name":O(e).attr("name"),html:a});o.attr("role","alert"),o.append(s,f),n(document.body).trigger("fluentform_error_in_stack",{form:t,element:O(e),message:s}),r.append(o).show()});var a=O(e);
189if(a){var o=a.attr("name");a.attr("aria-invalid","true");var f=n("[name='"+o+"']").first();f&&f.closest(".ff-el-group").addClass("ff-el-is-error")}}),k(r[0])||n("html, body").animate({scrollTop:r.offset().top-100},350),r.on("click",".error-clear",function(){n(this).closest("div").remove(),r.hide()}).on("click",".error-text",function(){var e=n("[name='".concat(n(this).data("name"),"']")).first();n("html, body").animate({scrollTop:e.offset()&&e.offset().top-100},350,function(t){return e.focus()})})))},S=function(e,r){var i,a;(i=O(e)).length?(i.attr("aria-invalid","true"),(a=n("<div/>",{class:"error text-danger"})).attr("role","alert"),i.closest(".ff-el-group").addClass("ff-el-is-error"),i.closest(".ff-el-input--content").length?(i.closest(".ff-el-input--content").find("div.error").remove(),n(document.body).trigger("fluentform_error_below_element",{form:t,element:i,message:r}),i.closest(".ff-el-input--content").append(a.html(r))):(i.find("div.error").remove(),i.append(a.text(r)))):j([r])},T=function(){t.find(".ff-el-group,.ff_repeater_table, .ff_repeater_container").on("change","input,select,textarea",function(){if(!window.ff_disable_error_clear){n(this).attr("aria-invalid","false");var e=s.settings.layout.errorMessagePlacement;if(e||"stackToBottom"!=e){var t=n(this).closest(".ff-el-group");t.hasClass("ff-el-is-error")&&t.removeClass("ff-el-is-error").find(".error.text-danger").remove()}}})},O=function(e){var t=d(),r=n("[data-name='"+e+"']",t);return(r=r.length?r:n("[name='"+e+"']",t)).length?r:n("[name='"+e+"[]']",t)},Q=function(){t.find(".ff-el-recaptcha.g-recaptcha").length&&window.grecaptcha&&"function"==typeof window.grecaptcha.ready&&window.grecaptcha.ready(function(){t.find(".ff-el-recaptcha.g-recaptcha").each(function(){E("g-recaptcha",n(this),grecaptcha.render)})}),t.find(".ff-el-turnstile.cf-turnstile").length&&window.turnstile&&"function"==typeof window.turnstile.ready&&window.turnstile.ready(function(){t.find(".ff-el-turnstile.cf-turnstile").each(function(){E("cf-turnstile",n(this),turnstile.render)})}),t.find(".ff-el-hcaptcha.h-captcha").length&&window.hcaptcha&&t.find(".ff-el-hcaptcha.h-captcha").each(function(){E("h-captcha",n(this),hcaptcha.render)})},E=function(e,t,n){var r=t.data("sitekey"),i=t.attr("id"),a="data-".concat(e,"_widget_id");try{var o=t.attr(a);if("g-recaptcha"===e||"h-captcha"===e){if(o&&t.find("iframe").length>0)return}else if("cf-turnstile"===e){var f=t.find('input[name="cf-turnstile-response"]');if(f.length&&f.val())return;var s=t.attr(a);s&&window.turnstile&&turnstile.remove(s)}var c=i;"cf-turnstile"===e&&(c="#"+i),o=n(c,{sitekey:r}),t.attr(a,o)}catch(t){console.error("Error rendering ".concat(e,":"),t)}},A=function(e,t,n){var r="data-".concat(e,"_widget_id"),i=t.attr(r);if(i)try{return n(i),!0}catch(n){console.error("Error resetting ".concat(e,":"),n),t.removeAttr(r).removeData("".concat(e,"-rendered"))}return!1},F=function(e){jQuery.each(e,function(e,r){if(r){var i=t.find("input[name="+e+"]");i.length?i.attr("value",r):n("<input>").attr({type:"hidden",name:e,value:r}).appendTo(t)}})},P={initFormHandlers:function(){w(),h(),T(),t.removeClass("ff-form-loading").addClass("ff-form-loaded"),t.on("show_element_error",function(e,t){S(t.element,t.message)})},registerFormSubmissionHandler:w,maybeInlineForm:h=function(){t.hasClass("ff-form-inline")&&t.find("button.ff-btn-submit").css("height","50px")},reinitExtras:function(){t.find(".ff-el-recaptcha.g-recaptcha").length&&window.grecaptcha&&"function"==typeof window.grecaptcha.ready&&window.grecaptcha.ready(function(){t.find(".ff-el-recaptcha.g-recaptcha").each(function(){var e=n(this);A("g-recaptcha",e,grecaptcha.reset)||E("g-recaptcha",e,grecaptcha.render)})}),t.find(".ff-el-turnstile.cf-turnstile").length&&window.turnstile&&"function"==typeof window.turnstile.ready&&window.turnstile.ready(function(){t.find(".ff-el-turnstile.cf-turnstile").each(function(){var e=n(this);A("cf-turnstile",e,turnstile.reset)||E("cf-turnstile",e,turnstile.render)})}),t.find(".ff-el-hcaptcha.h-captcha").length&&window.hcaptcha&&t.find(".ff-el-hcaptcha.h-captcha").each(function(){var e=n(this);A("h-captcha",e,hcaptcha.reset)||E("h-captcha",e,hcaptcha.render)})},initTriggers:function(){t=d(),jQuery(document.body).trigger("fluentform_init",[t,s]),jQuery(document.body).trigger("fluentform_init_"+s.id,[t,s]),t.trigger("fluentform_init_single",[this,s]),t.find("input.ff-el-form-control").on("keypress",function(e){return 13!==e.which}),t.data("is_initialized","yes"),t.find("input.ff-read-only").each(function(){n(this).attr({tabindex:"-1",readonly:"readonly"})}),t.find(".ff-el-tooltip").on("mouseenter",function(e){var r=n(this).data("c
189ontent"),i=n(".ff-el-pop-content");i.length||(n("<div/>",{class:"ff-el-pop-content"}).appendTo(document.body),i=n(".ff-el-pop-content")),r=r.replace(/<script[^]*?>[^]*?<\/script>/gi,"").replace(/<iframe[^]*?>[^]*?<\/iframe>/gi,"").replace(/<.*?\bon\w+=["'][^"']*["']/gi,"").replace(/javascript:/gi,""),i.html(r);var a=t.innerWidth()-20;i.css("max-width",a);var o=n(this).offset().left,f=i.outerWidth(),s=i.outerHeight(),c=o-f/2+10;c<15&&(c=15),i.css("top",n(this).offset().top-s-5),i.css("left",c)}),t.find(".ff-el-tooltip").on("mouseleave",function(){n(".ff-el-pop-content").remove()}),n(document).on("lity:open",function(){var e;null===(e=window.turnstile)||void 0===e||e.remove(),Q()}),t.one("focus",'input, select, textarea, input[type="checkbox"], input[type="radio"]',function(){t.trigger("fluentform_first_interaction")}),t.on("fluentform_first_interaction",function(){Q()}),t.on("ff_to_next_page ff_to_prev_page",function(e){Q()}),Q()},validate:x=function(e){e.length||(e=n("form.frm-fluent-form").find(":input").not(":button").filter(function(e,t){return!n(t).closest(".has-conditions").hasClass("ff_excluded")})),e.each(function(e,t){n(t).closest(".ff-el-group").removeClass("ff-el-is-error").find(".error").remove()}),c().validate(e,s.rules)},showErrorMessages:C,scrollToFirstError:b,settings:s,formSelector:N,sendData:v,addGlobalValidator:function(e,t){l[e]=t},config:s,showFormSubmissionProgress:g=function(e){e.addClass("ff_submitting"),e.find(".ff-btn-submit").addClass("disabled").addClass("ff-working").prop("disabled",!0)},addFieldValidationRule:function(e,t,n){s.rules[e]||(s.rules[e]={}),s.rules[e][t]=n},removeFieldValidationRule:function(e,t){e in s.rules&&t in s.rules[e]&&delete s.rules[e][t]},hideFormSubmissionProgress:_=function(e){e.removeClass("ff_submitting"),e.find(".ff-btn-submit").removeClass("disabled").removeClass("ff-working").attr("disabled",!1),t.parent().find(".ff_msg_temp").remove()}},i[a]=P,P};var a={init:function(){var e=this;setTimeout(function(){e.initMultiSelect()},100),this.initMask(),this.initNumericFormat(),this.initCheckableActive(),this.maybeInitSpamTokenProtection(),this.maybeHandleCleanTalkSubmitTime(),this.initOtherOptionHandlers()},maybeInitSpamTokenProtection:function(){var e=this;jQuery("form.frm-fluent-form").each(function(t,n){var r=jQuery(n),i=r.find(".fluent-form-token-field");if(0!==i.length&&!r.hasClass("ff_tokenizing")&&!r.hasClass("ff_tokenized")){var a=function(){r.hasClass("ff_tokenized")||r.hasClass("ff_tokenizing")||(r.addClass("ff_tokenizing"),e.generateAndSetToken(r,i))};r.one("ff_to_next_page ff_to_prev_page",function(e){a()}),r.on("fluentform_first_interaction",function(){a()})}})},generateAndSetToken:function(t,n){var r,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=t.data("form_id"),o=e.ajaxUrl+"?t="+Date.now(),f=this;jQuery.post(o,{action:"fluentform_generate_protection_token",form_id:a,nonce:null===(r=e)||void 0===r?void 0:r.token_nonce}).done(function(e){e.success&&e.data.token?(n.val(e.data.token),t.addClass("ff_tokenized")):(n.val(null),console.error("Token generation failed for form ID:",a))}).fail(function(e,r,o){console.error("Error generating token for form ID:",a,o),i&&setTimeout(function(){f.generateAndSetToken(t,n,!1)},1e3)}).always(function(){t.removeClass("ff_tokenizing")})},maybeHandleCleanTalkSubmitTime:function(){var e;null!==(e=window.fluentFormVars)&&void 0!==e&&e.has_cleantalk&&jQuery("form.frm-fluent-form").each(function(e,t){var n=jQuery(t).find(".ff_ct_form_load_time");n.length&&n.val(Math.floor(Date.now()/1e3))})},initOtherOptionHandlers:function(){jQuery(document).on("change",'.ff-other-option input[type="checkbox"]',function(){var e=jQuery(this),t=e.closest(".ff-el-input--content").find(".ff-other-input-wrapper");if(t.length)if(e.is(":checked")){t.show();var n=t.find(".ff-el-form-control");""===n.val().trim()&&setTimeout(function(){n.focus()},50)}else t.hide(),t.find(".ff-el-form-control").val("")}),jQuery(document).on("change",'.ff-other-option input[type="radio"]',function(){var e=jQuery(this),t=e.closest(".ff-el-input--content"),n=t.find(".ff-other
189-input-wrapper");n.length||(n=e.closest("label").next(".ff-other-input-wrapper")),e.is(":checked")&&(t.find(".ff-other-input-wrapper").hide(),n.length&&(n.show(),n.find(".ff-el-form-control").focus()))}),jQuery(document).on("change",'.ff-el-input--content input[type="radio"]',function(){var e=jQuery(this);if(!e.closest(".ff-other-option").length){var t=e.closest(".ff-el-input--content");t.find(".ff-other-input-wrapper").hide(),t.find(".ff-other-input-wrapper .ff-el-form-control").val("")}})},initMultiSelect:function(){n.isFunction(window.Choices)&&n(".ff_has_multi_select").length&&n(".ff_has_multi_select").each(function(e,r){var i=t(t({},{removeItemButton:!0,silent:!0,shouldSort:!1,searchEnabled:!0,searchResultLimit:50,searchFloor:1,searchChoices:!0,fuseOptions:{threshold:.1,distance:200,ignoreLocation:!0,tokenize:!0,matchAllTokens:!1}}),window.fluentFormVars.choice_js_vars),a=n(r).attr("data-max_selected_options");parseInt(a)&&(i.maxItemCount=parseInt(a),i.maxItemText=function(e){return(1===e?window.fluentFormVars.choice_js_vars.maxItemTextSingular:window.fluentFormVars.choice_js_vars.maxItemTextPlural).replace("%%maxItemCount%%",e)}),i.callbackOnCreateTemplates=function(){n(this.passedElement.element);return{option:function(e){var t=Choices.defaults.templates.option.call(this,e);return e.customProperties&&(t.dataset.calc_value=e.customProperties),t}}},n(r).data("choicesjs",new Choices(r,i))})},initMask:function(){if(null!=jQuery.fn.mask){var e={clearIfNotMatch:window.fluentFormVars.input_mask_vars.clearIfNotMatch,translation:{"*":{pattern:/[0-9a-zA-Z]/},0:{pattern:/\d/},9:{pattern:/\d/,optional:!0},"#":{pattern:/\d/,recursive:!0},A:{pattern:/[a-zA-Z0-9]/},S:{pattern:/[a-zA-Z]/}}};jQuery("input[data-mask]").each(function(t,n){var r=(n=jQuery(n)).attr("data-mask"),i=e;n.attr("data-mask-reverse")&&(i.reverse=!0),n.attr("data-clear-if-not-match")&&(i.clearIfNotMatch=!0),r&&n.mask(r,i)})}},initCheckableActive:function(){n(document).on("change",".ff-el-form-check input[type=radio]",function(){n(this).is(":checked")&&(n(this).closest(".ff-el-input--content").find(".ff-el-form-check").removeClass("ff_item_selected"),n(this).closest(".ff-el-form-check").addClass("ff_item_selected"))}),n(document).on("change",".ff-el-form-check input[type=checkbox]",function(){n(this).is(":checked")?n(this).closest(".ff-el-form-check").addClass("ff_item_selected"):n(this).closest(".ff-el-form-check").removeClass("ff_item_selected")})},initNumericFormat:function(){var e=n("form.frm-fluent-form .ff_numeric");n.each(e,function(e,t){var r=n(t),i=JSON.parse(r.attr("data-formatter"));r.val()&&r.val(window.ff_helper.formatCurrency(r,r.val())),r.on("blur change",function(){var e=currency(n(this).val(),i).format();n(this).val(e)})})}},o=function(){return new function(){this.errors={},this.validate=function(e,t){var r,i,a=this,o=!0;e.each(function(e,f){r=n(f),i=r.prop("name").replace("[]",""),"repeater_item"!==r.data("type")&&"repeater_container"!==r.data("type")||(i=r.attr("data-name"),t[i]=t[r.data("error_index")]),t[i]&&n.each(t[i],function(e,t){e in a&&(a[e](r,t)||(o=!1,i in a.errors||(a.errors[i]={}),a.errors[i][e]=t.message))})}),!o&&this.throwValidationException()},this.throwValidationException=function(){var e=new ffValidationError("Validation Error!");throw e.messages=this.errors,e},this.required=function(e,t){if(!t.value)return!0;var r=e.prop("type");if("checkbox"==r||"radio"==r){if(e.parents(".ff-el-group").attr("data-name")&&!t.per_row)return e.parents(".ff-el-group").find("input:checked").length;var i=n('[name="'+e.prop("name")+'"]:checked'),a=e.prop("name").replace("[]","");return i.length&&i.val()==="__ff_other_".concat(a,"__")?n('[name="'.concat(a,'__ff_other_input__"]')).val():i.length}if(r.startsWith("select")){var o=e.find(":selected");return!(!o.length||!o.val().length)}return"file"==r?e.closest("div").find(".ff-uploaded-list").find(".ff-upload-preview[data-src]").length:"false"==e.attr("is-changed")?"":String(n.trim(e.val())).length},this.url=function(e,t){var n=e.val();if(!t.value||!n.length)return!0;return/^(ftp|http|https):\/\/[^ "]+$/.test(n)},this.email=function(e,t){var n=e.val();if(!t.value||!n.length)return!0;return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(n.toLowerCase())},this.numeric=function(e,t){var r=window.ff_helper.numericVal(e);return r=r.toString(),!t.value||!r||n.isNumeric(r)},this.min=function(e,t){if(!e.val())return!0;var n=window.ff_helper.numericVal(e);return n=n.toString(),!t.value||!n.length||(this.numeric(e,t)?Number(n)>=Number(t.value):void 0)},this.max=function(e,t){if(!e.val())return!0;var n=window.ff_helper.numericVal(e);return n=n.toString(),!t.value||!n.length||(this.numeric(e,t)?Number(n)<=Number(t.value):void 0)},this.digits=function(e,t){if(!e.val())return!0;var n=window.ff_helper.numericVal(e);return n=n.toString(),!t.value||!n.length||this.numeric(e,t)&&n.length==t.value},this.max_file_size=function(){return!0},this.max_file_count=function(){return!0},this.allowed_file_types=function(){return!0},this.allowed_image_types=function(){return!0},this.force_failed=function(){return!1},this.valid_phone_number=function(e,t){if(!e.val())return!0;
189if(e&&e[0]){var n;if(!(n=void 0!==window.intlTelInputGlobals?window.intlTelInputGlobals.getInstance(e[0]):e.data("iti")))return!0;if(e.hasClass("ff_el_with_extended_validation"))return!!("yes"===e.data("strict_validation")&&"function"==typeof n.isValidNumberPrecise?n.isValidNumberPrecise():n.isValidNumber())&&(e.val(n.getNumber()),!0);var r=n.getSelectedCountryData(),i=e.val();return!e.attr("data-original_val")&&i&&r&&r.dialCode&&(e.val("+"+r.dialCode+i),e.attr("data-original_val",i)),!0}}}},f=n("form.frm-fluent-form");function s(e){var t=fluentFormApp(e);if(t)t.initFormHandlers(),t.initTriggers();else var n=0,r=setInterval(function(){(t=fluentFormApp(e))&&(clearInterval(r),t.initFormHandlers(),t.initTriggers()),++n>10&&(clearInterval(r),console.log("Form could not be loaded"))},1e3)}function c(){n(".ff_has_multi_select").each(function(){var e=n(this).data("choicesjs");if(e&&e.passedElement){e.passedElement.element.addEventListener("showDropdown",function(){var e=this.closest(".choices");if(e){var t=e.querySelector(".choices__list--dropdown");if(t){t.style.maxHeight="300px",t.style.overflowY="auto";var n=t.querySelector('.choices__list[role="listbox"]')||t.querySelector(".choices__list:not(.choices__list--dropdown)");n&&(n.style.maxHeight="280px",n.style.overflowY="auto",n.style.webkitOverflowScrolling="touch",n.style.touchAction="pan-y")}}},{passive:!0});var t=e.passedElement.element.closest(".choices");t&&(t.addEventListener("focus",function(n){t.classList.contains("is-open")||e.showDropdown()},!0),t.addEventListener("keydown",function(n){"Tab"===n.key&&t.classList.contains("is-open")&&e.hideDropdown()}))}})}n.each(f,function(e,t){s(n(t))}),n(document).on("ff_reinit",function(e,t){var r=n(t),i=fluentFormApp(r);if(!i)return!1;i.reinitExtras(),s(r),a.init(),r.attr("data-ff_reinit","yes")}),a.init(),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",function(){setTimeout(c,100)}):setTimeout(c,100)}(window.fluentFormVars,jQuery),jQuery(".fluentform").on("submit",".ff-form-loading",function(e){var t;e.preventDefault(),jQuery(this).parent().find(".ff_msg_temp").remove(),jQuery("<div/>",{class:"error text-danger ff_msg_temp"}).html((null===(t=window.fluentform_submission_messages_global)||void 0===t?void 0:t.javascript_handler_failed)||"Javascript handler could not be loaded. Form submission has been failed. Reload the page and try again").insertAfter(jQuery(this))})})})(); 190 191 192 193} 194catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://labadibeachhotelgh.com/wp-content/plugins/fluentform/assets/js/form-submission.js\n- Error message: "+ e.message);} 195 196 197 var wcBlocksMiddlewareConfig = { 198 storeApiNonce: '048b8c78f0', 199 wcStoreApiNonceTimestamp: '1790786511' 200 }; 201 202/** 203 * PDFObject v2.1.1 204 * https://github.com/pipwerks/PDFObject 205 * @license 206 * Copyright (c) 2008-2018 Philip Hutchison 207 * MIT-style license: http://pipwerks.mit-license.org/ 208 * UMD module pattern from https://github.com/umdjs/umd/blob/master/templates/returnExports.js 209 */ 210((e,o)=>{"function"==typeof define&&define.amd?define([],o):"object"==typeof module&&module.exports?module.exports=o():e.PDFObject=o()})(this,function(){var e,m,o,g,t,n,v,i,b,y,r,h,w,s,P,T,j;return"undefined"!=typeof window&&"undefined"!=typeof navigator&&(n=window.navigator.userAgent,e=void 0!==navigator.mimeTypes&&void 0!==navigator.mimeTypes["application/pdf"],m=void 0!==window.Promise,o=-1!==n.indexOf("irefox")&&-1===n.indexOf("Mobile")&&-1===n.indexOf("Tablet")&&18<parseInt(n.split("rv:")[1].split(".")[0],10),g=/iphone|ipad|ipod/i.test(n.toLowerCase()),t=function(e){var o;try{o=new ActiveXObject(e)}catch(e){o=null}return o},n=function(){return!!(window.ActiveXObject||"ActiveXObject"in window)},v=!g&&navigator.vendor&&-1!==navigator.vendor.indexOf("Apple")&&navigator.userAgent&&-1!==navigator.userAgent.indexOf("Safari"),i=function(){return!(!t("AcroPDF.PDF")&&!t("PDF.PdfCtrl"))},b=!g&&(o||e||n()&&i()),y=function(e){var o,t="";if(e){for(o in e)e.hasOwnProperty(o)&&(t+=encodeURIComponent(o)+"="+encodeURIComponent(e[o])+"&");t=t&&(t="#"+t).slice(0,t.length-1)}return t},r=function(e){"undefined"!=typeof console&&console.log&&console.log("[PDFObject] "+e)},h=function(e){return r(e),!1},w=function(e){var o=document.body;return"string"==typeof e?o=document.querySelector(e):"undefined"!=typeof jQuery&&e instanceof jQuery&&e.length?o=e.get(0):void 0!==e.nodeType&&1===e.nodeType&&(o=e),o},s=function(e){var o="pdfobject-container",t=e.className.split(/\s+/);-1===t.indexOf(o)&&(t.push(o),e.className=t.join(" "))},P=function(e,o,t,n,i){n=n+"?file="+encodeURIComponent(o)+t,o="<div style='"+(g?"-webkit-overflow-scrolling: touch;
210 overflow-y: scroll; ":"overflow: hidden; ")+"position: absolute; top: 0; right: 0; bottom: 0; left: 0;'><iframe "+i+" src='"+n+"' style='border: none; width: 100%; height: 100%;' frameborder='0'></iframe></div>";return s(e),e.style.position="relative",e.style.overflow="auto",e.innerHTML=o,e.getElementsByTagName("iframe")[0]},T=function(e,o,t,n,i,r,d){var a="",a=o&&o!==document.body?"width: "+i+"; height: "+r+";":"position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%;";return s(e),e.innerHTML="<embed "+d+" class='pdfobject' src='"+t+n+"' type='application/pdf' style='overflow: auto; "+a+"'/>",e.getElementsByTagName("embed")[0]},j=function(e,o,t,n,i,r,d){var a="",a=o&&o!==document.body?"width: "+i+"; height: "+r+";":"position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%;";return e.className+=" pdfobject-container",e.innerHTML="<iframe "+d+" class='pdfobject' src='"+t+n+"' type='application/pdf' style='border: none; "+a+"'/>",e.getElementsByTagName("iframe")[0]},{embed:function(e,o,t){var n,i,r,d,a,s,f,p,l,c,u;return"string"!=typeof e?h("URL is not valid"):(n=(t=void 0!==t?t:{}).id&&"string"==typeof t.id?"id='"+t.id+"'":"",i=t.page||!1,r=t.pdfOpenParams||{},d=void 0===t.fallbackLink||t.fallbackLink,a=t.width||"100%",s=t.height||"100%",f="boolean"!=typeof t.assumptionMode||t.assumptionMode,p="boolean"==typeof t.forcePDFJS&&t.forcePDFJS,l="boolean"==typeof t.supportRedirect&&t.supportRedirect,t=t.PDFJS_URL||!1,u="",(c=w(o=void 0!==o&&o))?(i&&(r.page=i),u=y(r),p&&t?P(c,e,u,t,n):b||f&&m&&!g?(l&&v?j:T)(c,o,e,u,a,s,n):t?P(c,e,u,t,n):(d&&(c.innerHTML=("string"==typeof d?d:"<p>This browser does not support inline PDFs. Please download the PDF to view it: <a href='[url]'>Download PDF</a></p>").replace(/\[url\]/g,e)),h("This browser does not support embedded PDFs"))):h("Target element cannot be determined"))},pdfobjectversion:"2.1.1",supportsPDFs:b})}); 211 212 213 214} 215catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://labadibeachhotelgh.com/wp-content/plugins/embed-any-document/js/pdfobject.min.js\n- Error message: "+ e.message);} 216 217 218 var wcBlocksMiddlewareConfig = { 219 storeApiNonce: '048b8c78f0', 220 wcStoreApiNonceTimestamp: '1790786511' 221 }; 222 223jQuery(function(n){n(".ead-iframe-wrapper").each(function(){var e=n(this),t=e.find(".ead-iframe"),i=e.parent(".ead-document").data("viewer"),i=void 0!==i&&0<i.length&&i,a=t.data("src"),d=t.attr("loading"),r=!1,s=t;(r=void 0!==a&&0<a.length||void 0!==d&&"lazy"===d?!0:r)||(s=n('<iframe class="ead-iframe"></iframe>')).attr({src:t.attr("src"),style:t.attr("style"),title:t.attr("title")}),i||s.css("visibility","visible"),s.on("load",function(){n(this).parents(".ead-document").find(".ead-document-loading").css("display","none")}),r||e.html(s)}),n(".ead-document[data-pdf-src]").each(function(){var e=n(this),t=e.find(".ead-iframe"),i=e.data("pdfSrc"),a=e.data("viewer");if("string"==typeof i&&/^https?:\/\//i.test(i)){var a=void 0!==a&&0<i.length&&0<a.length&&a,d="pdfjs"in eadPublic&&0<eadPublic.pdfjs.length&&"built-in"===a;if(a&&("browser"===a||d))if(PDFObject.supportsPDFs||d){a={},a=d?{forcePDFJS:!0,PDFJS_URL:eadPublic.pdfjs}:{width:t.css("width"),height:t.css("height")};try{PDFObject.embed(i,e[0],a)}catch(e){console.error("PDFObject failed to embed:",e)}}else t.css("visibility","visible")}}),n(document).on("click",".ead-reload-btn",function(e){e.preventDefault();var e=n(this).parents(".ead-document"),t=e.find(".ead-iframe").attr("src");e.find(".ead-iframe").attr("src",t)})}); 224 225 226 227} 228catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://labadibeachhotelgh.com/wp-content/plugins/embed-any-document/js/embed-
228public.min.js\n- Error message: "+ e.message);} 229 230 231 var wcBlocksMiddlewareConfig = { 232 storeApiNonce: '048b8c78f0', 233 wcStoreApiNonceTimestamp: '1790786511' 234 }; 235 236!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).firebase=t()}(this,function(){"use strict";var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};var a=function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function e(r,n){var i,o,a,e,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return e={next:t(0),throw:t(1),return:t(2)},"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return function(t){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,o&&(a=2&t[0]?o.return:t[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,t[1])).done)return a;switch(o=0,a&&(t=[2&t[0],a.value]),t[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,o=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){s.label=t[1];break}if(6===t[0]&&s.label<a[1]){s.label=a[1],a=t;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(t);break}a[2]&&s.ops.pop(),s.trys.pop();continue}t=n.call(r,s)}catch(e){t=[6,e],o=0}finally{i=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,e])}}}function d(e){var t="function"==typeof Symbol&&e[Symbol.iterator],r=0;return t?t.call(e):{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}function p(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;
236(void 0===t||0<t--)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function v(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:return new Date(t.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(var r in t)t.hasOwnProperty(r)&&(e[r]=v(e[r],t[r]));return e}var i=(t.prototype.wrapCallback=function(r){var n=this;return function(e,t){e?n.reject(e):n.resolve(t),"function"==typeof r&&(n.promise.catch(function(){}),1===r.length?r(e):r(e,t))}},t);function t(){var r=this;this.reject=function(){},this.resolve=function(){},this.promise=new Promise(function(e,t){r.resolve=e,r.reject=t})}var n,o,s,f=(s=Error,r(n=l,o=s),void(n.prototype=null===o?Object.create(o):(c.prototype=o.prototype,new c)),l);function c(){this.constructor=n}function l(e,t){var r=s.call(this,t)||this;return r.code=e,r.name="FirebaseError",Object.setPrototypeOf(r,l.prototype),Error.captureStackTrace&&Error.captureStackTrace(r,u.prototype.create),r}var u=(h.prototype.create=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=t[0]||{},i=this.service+"/"+e,o=this.errors[e],a=o?function(e,n){return e.replace(m,function(e,t){var r=n[t];return null!=r?r.toString():"<"+t+"?>"})}(o,n):"Error",s=this.serviceName+": "+a+" ("+i+").",c=new f(i,s),l=0,p=Object.keys(n);l<p.length;l++){var u=p[l];"_"!==u.slice(-1)&&(u in c&&console.warn('Overwriting FirebaseError base field "'+u+'" can cause unexpected behavior.'),c[u]=n[u])}return c},h);function h(e,t,r){this.service=e,this.serviceName=t,this.errors=r}var m=/\{\$([^}]+)}/g;function y(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function b(e,t){var r=new g(e,t);return r.subscribe.bind(r)}var g=(w.prototype.next=function(t){this.forEachObserver(function(e){e.next(t)})},w.prototype.error=function(t){this.forEachObserver(function(e){e.error(t)}),this.close(t)},w.prototype.complete=function(){this.forEachObserver(function(e){e.complete()}),this.close()},w.prototype.subscribe=function(e,t,r){var n,i=this;if(void 0===e&&void 0===t&&void 0===r)throw new Error("Missing Observer.");void 0===(n=function(e,t){if("object"!=typeof e||null===e)return!1;for(var r=0,n=t;r<n.length;r++){var i=n[r];if(i in e&&"function"==typeof e[i])return!0}return!1}(e,["next","error","complete"])?e:{next:e,error:t,complete:r}).next&&(n.next=O),void 0===n.error&&(n.error=O),void 0===n.complete&&(n.complete=O);var o=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(function(){try{i.finalError?n.error(i.finalError):n.complete()}catch(e){}}),this.observers.push(n),o},w.prototype.unsubscribeOne=function(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))},w.prototype.forEachObserver=function(e){if(!this.finalized)for(var t=0;t<this.observers.length;t++)this.sendOne(t,e)},w.prototype.sendOne=function(e,t){var r=this;this.task.then(function(){if(void 0!==r.observers&&void 0!==r.observers[e])try{t(r.observers[e])}catch(e){"undefined"!=typeof console&&console.error&&console.error(e)}})},w.prototype.close=function(e){var t=this;this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then(function(){t.observers=void 0,t.onNoObservers=void 0}))},w);function w(e,t){var r=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then(function(){e(r)}).catch(function(e){r.error(e)})}function O(){}var E=(I.prototype.setInstantiationMode=function(e){return this.instantiationMode=e,this},I.prototype.setMultipleInstances=function(e){return this.multipleInstances=e,this},I.prototype.setServiceProps=function(e){return this.serviceProps=e,this},I);function I(e,t,r){this.name=e,this.instanceFactory=t,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY"}var _="[DEFAULT]",N=(P.prototype.get=function(e){void 0===e&&(e=_);var t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){var r=new i;this.instancesDeferred.set(t,r);try{var n=this.getOrInitializeService(t);n&&r.resolve(n)}catch(e){}}return this.instancesDeferred.get(t).promise},P.prototype.getImmediate=function(e){var t=a({identifier:_,optional:!1},e),r=t.identifier,n=t.optional,i=this.normalizeInstanceIdentifier(r);try{var o=this.getOrInitializeService(i);if(o)return o;if(n)return null;throw Error("Service "+this.name+" is not available")}catch(e){if(n)return null;throw e}},P.prototype.getComponent=function(){return this.component},P.prototype.setComponent=function(e){var t,r;if(e.name!==this.name)throw Error("Mismatching Component "+e.name+" for Provider "+this.name+".");if(this.component)throw Error("Component for "+this.name+" has already been provided");
236if(function(e){return"EAGER"===e.instantiationMode}(this.component=e))try{this.getOrInitializeService(_)}catch(e){}try{for(var n=d(this.instancesDeferred.entries()),i=n.next();!i.done;i=n.next()){var o=p(i.value,2),a=o[0],s=o[1],c=this.normalizeInstanceIdentifier(a);try{var l=this.getOrInitializeService(c);s.resolve(l)}catch(e){}}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}},P.prototype.clearInstance=function(e){void 0===e&&(e=_),this.instancesDeferred.delete(e),this.instances.delete(e)},P.prototype.delete=function(){return function(o,a,s,c){return new(s=s||Promise)(function(e,t){function r(e){try{i(c.next(e))}catch(e){t(e)}}function n(e){try{i(c.throw(e))}catch(e){t(e)}}function i(t){t.done?e(t.value):new s(function(e){e(t.value)}).then(r,n)}i((c=c.apply(o,a||[])).next())})}(this,void 0,void 0,function(){var t;return e(this,function(e){switch(e.label){case 0:return t=Array.from(this.instances.values()),[4,Promise.all(t.filter(function(e){return"INTERNAL"in e}).map(function(e){return e.INTERNAL.delete()}))];case 1:return e.sent(),[2]}})})},P.prototype.isComponentSet=function(){return null!=this.component},P.prototype.getOrInitializeService=function(e){var t=this.instances.get(e);return!t&&this.component&&(t=this.component.instanceFactory(this.container,function(e){return e===_?void 0:e}(e)),this.instances.set(e,t)),t||null},P.prototype.normalizeInstanceIdentifier=function(e){return this.component?this.component.multipleInstances?e:_:e},P);function P(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map}var S,A,C=(R.prototype.addComponent=function(e){var t=this.getProvider(e.name);if(t.isComponentSet())throw new Error("Component "+e.name+" has already been registered with "+this.name);t.setComponent(e)},R.prototype.addOrOverwriteComponent=function(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)},R.prototype.getProvider=function(e){if(this.providers.has(e))return this.providers.get(e);var t=new N(e,this);return this.providers.set(e,t),t},R.prototype.getProviders=function(){return Array.from(this.providers.values())},R);function R(e){this.name=e,this.providers=new Map}function j(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)n[i]=o[a];return n}(A=S=S||{})[A.DEBUG=0]="DEBUG",A[A.VERBOSE=1]="VERBOSE",A[A.INFO=2]="INFO",A[A.WARN=3]="WARN",A[A.ERROR=4]="ERROR",A[A.SILENT=5]="SILENT";function k(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(!(t<e.logLevel)){var i=(new Date).toISOString();switch(t){case S.DEBUG:case S.VERBOSE:console.log.apply(console,j(["["+i+"] "+e.name+":"],r));break;case S.INFO:console.info.apply(console,j(["["+i+"] "+e.name+":"],r));break;case S.WARN:console.warn.apply(console,j(["["+i+"] "+e.name+":"],r));break;case S.ERROR:console.error.apply(console,j(["["+i+"] "+e.name+":"],r));break;default:throw new Error("Attempted to log a message with an invalid logType (value: "+t+")")}}}var D,F=S.INFO,x=(Object.defineProperty(L.prototype,"logLevel",{get:function(){return this._logLevel},set:function(e){if(!(e in S))throw new TypeError("Invalid value assigned to `logLevel`");this._logLevel=e},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"logHandler",{get:function(){return this._logHandler},set:function(e){if("function"!=typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e},enumerable:!0,configurable:!0}),L.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._logHandler.apply(this,j([this,S.DEBUG],e))},L.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._logHandler.apply(this,j([this,S.VERBOSE],e))},L.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._logHandler.apply(this,j([this,S.INFO],e))},L.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._logHandler.apply(this,j([this,S.WARN],e))},L.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._logHandler.apply(this,j([this,S.ERROR],e))},L);function L(e){this.name=e,this._logLevel=F,this._logHandler=k}var T,z=((D={})["no-app"]="No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",D["bad-app-name"]="Illegal App name: '{$appName}",D["duplicate-app"]="Firebase App named '{$appName}' already exists",D["app-deleted"]="Firebase App named '{$appName}' already deleted",D["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",D),V=new u("app","Firebase",z),B="@firebase/app",M="[DEFAULT]",U=((T={})[B]="fire-core",T["@firebase/analytics"]="fire-analytics",T["@firebase/auth"]="fire-auth",T["@firebase/database"]="fire-rtdb",T["@firebase/functions"]="fire-fn",T["@firebase/installations"]="fire-iid",T["@firebase/messaging"]="fire-fcm",T["@firebase/performance"]="fire-perf",T["@firebase/remote-config"]="fire-rc",T["@firebase/storage"]="fire-g
236cs",T["@firebase/firestore"]="fire-fst",T["fire-js"]="fire-js",T["firebase-wrapper"]="fire-js-all",T),H=new x("@firebase/app"),W=(Object.defineProperty(G.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(e){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=e},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!0,configurable:!0}),G.prototype.delete=function(){var t=this;return new Promise(function(e){t.checkDestroyed_(),e()}).then(function(){return t.firebase_.INTERNAL.removeApp(t.name_),Promise.all(t.container.getProviders().map(function(e){return e.delete()}))}).then(function(){t.isDeleted_=!0})},G.prototype._getService=function(e,t){return void 0===t&&(t=M),this.checkDestroyed_(),this.container.getProvider(e).getImmediate({identifier:t})},G.prototype._removeServiceInstance=function(e,t){void 0===t&&(t=M),this.container.getProvider(e).clearInstance(t)},G.prototype._addComponent=function(t){try{this.container.addComponent(t)}catch(e){H.debug("Component "+t.name+" failed to register with FirebaseApp "+this.name,e)}},G.prototype._addOrOverwriteComponent=function(e){this.container.addOrOverwriteComponent(e)},G.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw V.create("app-deleted",{appName:this.name_})},G);function G(e,t,r){var n,i,o=this;this.firebase_=r,this.isDeleted_=!1,this.name_=t.name,this.automaticDataCollectionEnabled_=t.automaticDataCollectionEnabled||!1,this.options_=function(e){return v(void 0,e)}(e),this.container=new C(t.name),this._addComponent(new E("app",function(){return o},"PUBLIC"));try{for(var a=d(this.firebase_.INTERNAL.components.values()),s=a.next();!s.done;s=a.next()){var c=s.value;this._addComponent(c)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}}W.prototype.name&&W.prototype.options||W.prototype.delete||console.log("dc");var $="7.8.2";function Y(c){var l={},p=new Map,u={__esModule:!0,initializeApp:function(e,t){void 0===t&&(t={});if("object"!=typeof t||null===t){t={name:t}}var r=t;void 0===r.name&&(r.name=M);var n=r.name;if("string"!=typeof n||!n)throw V.create("bad-app-name",{appName:String(n)});if(y(l,n))throw V.create("duplicate-app",{appName:n});var i=new c(e,r,u);return l[n]=i},app:f,registerVersion:function(e,t,r){var n,i=null!==(n=U[e])&&void 0!==n?n:e;r&&(i+="-"+r);var o=i.match(/\s|\//),a=t.match(/\s|\//);if(o||a){var s=['Unable to register library "'+i+'" with version "'+t+'":'];return o&&s.push('library name "'+i+'" contains illegal characters (whitespace or "/")'),o&&a&&s.push("and"),a&&s.push('version name "'+t+'" contains illegal characters (whitespace or "/")'),void H.warn(s.join(" "))}h(new E(i+"-version",function(){return{library:i,version:t}},"VERSION"))},apps:null,SDK_VERSION:$,INTERNAL:{registerComponent:h,removeApp:function(e){delete l[e]},components:p,useAsService:function(e,t){return"serverAuth"!==t?t:null}}};function f(e){if(!y(l,e=e||M))throw V.create("no-app",{appName:e});return l[e]}function h(r){var t,e,n=r.name;if(p.has(n))return H.debug("There were multiple attempts to register component "+n+"."),"PUBLIC"===r.type?u[n]:null;if(p.set(n,r),"PUBLIC"===r.type){var i=function(e){if(void 0===e&&(e=f()),"function"!=typeof e[n])throw V.create("invalid-app-argument",{appName:n});return e[n]()};void 0!==r.serviceProps&&v(i,r.serviceProps),u[n]=i,c.prototype[n]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this._getService.bind(this,n).apply(this,r.multipleInstances?e:[])}}try{for(var o=d(Object.keys(l)),a=o.next();!a.done;a=o.next()){var s=a.value;l[s]._addComponent(r)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}return"PUBLIC"===r.type?u[n]:null}return u.default=u,Object.defineProperty(u,"apps",{get:function(){return Object.keys(l).map(function(e){return l[e]})}}),f.App=c,u}var K=function e(){var t=Y(W);return t.INTERNAL=a(a({},t.INTERNAL),{createFirebaseNamespace:e,extendNamespace:function(e){v(t,e)},createSubscribe:b,ErrorFactory:u,deepExtend:v}),t}(),Z=(q.prototype.getPlatformInfoString=function(){return this.container.getProviders().map(function(e){if(function(e){var t,r=e.getComponent();return"VERSION"===(null===(t=r)||void 0===t?void 0:t.type)}(e)){var t=e.getImmediate();return t.library+"/"+t.version}return null}).filter(function(e){return e}).join(" ")},q);function q(e){this.container=e}if("object"==typeof self&&self.self===self&&void 0!==self.firebase){H.warn("\n Warning: Firebase is already defined in the global scope. Please make sure\n Firebase library is only loaded once.\n ");var J=self.firebase.SDK_VERSION;J&&0<=J.indexOf("LITE")&&H.warn("\n Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n ")}var Q=K.initializeApp;K.initializeApp=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(){try{return"[object process]"===Object.prototype.toString.call(global.process)}catch(e){return!1}}()&&H.warn('\n Warning: This is a browser-targeted Firebase bundle but it appears it is being\n run in a Node environment. If running in a Node environment, make sure you\n are using the bundle specified by the "main" field in package.json.\n \n If you are using Webpack, you can specify "main" as the first item in\n "resolve.mainFields":\n https://webpack.js.org/configuration/resolve/#resolvemainfields\n \n If using Rollup, use the rollup-plugin-node-resolve plugin and specify "main"\n as the first item in "mainFields", e.g. [\'main\', \'module\'].\n https://github.com/rollup/rollup-plugin-node-resolve\n '),Q.apply(void 0,e)};var X,ee,te=K;(X=te).INTERNAL.registerComponent(new E("platform-logger",function(e){return new Z(e)},"PRIVATE")),X.registerVersion(B,"0.5.4",ee),X.registerVersion("fire-js","");return te.registerVersion("firebase","7.8.2","app"),te}); 237 238 239 240} 241catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://labadibeachhotelgh.com/w
241p-content/plugins/push-notification/assets/public/application.min.js\n- Error message: "+ e.message);} 242 243 244 var wcBlocksMiddlewareConfig = { 245 storeApiNonce: '048b8c78f0', 246 wcStoreApiNonceTimestamp: '1790786511' 247 }; 248 249!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("@firebase/app")):"function"==typeof define&&define.amd?define(["@firebase/app"],t):t((e=e||self).firebase)}(this,function(ft){"use strict";try{(function(){ft=ft&&ft.hasOwnProperty("default")?ft.default:ft;var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};var u=function(){return(u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function l(o,s,a,u){return new(a=a||Promise)(function(e,t){function n(e){try{i(u.next(e))}catch(e){t(e)}}function r(e){try{i(u.throw(e))}catch(e){t(e)}}function i(t){t.done?e(t.value):new a(function(e){e(t.value)}).then(n,r)}i((u=u.apply(o,s||[])).next())})}function p(n,r){var i,o,s,e,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return e={next:t(0),throw:t(1),return:t(2)},"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return function(t){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,o&&(s=2&t[0]?o.return:t[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,t[1])).done)return s;switch(o=0,s&&(t=[2&t[0],s.value]),t[0]){case 0:case 1:s=t;break;case 4:return a.label++,{value:t[1],done:!1};case 5:a.label++,o=t[1],t=[0];continue;case 7:t=a.ops.pop(),a.trys.pop();continue;default:if(!(s=0<(s=a.trys).length&&s[s.length-1])&&(6===t[0]||2===t[0])){a=0;continue}if(3===t[0]&&(!s||t[1]>s[0]&&t[1]<s[3])){a.label=t[1];break}if(6===t[0]&&a.label<s[1]){a.label=s[1],s=t;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(t);break}s[2]&&a.ops.pop(),a.trys.pop();continue}t=r.call(n,a)}catch(e){t=[6,e],o=0}finally{i=s=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,e])}}}function c(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function r(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;
249(void 0===t||0<t--)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function i(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(r(arguments[t]));return e}var e,t,o,d=(o=Error,n(e=a,t=o),void(e.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)),a);function s(){this.constructor=e}function a(e,t){var n=o.call(this,t)||this;return n.code=e,n.name="FirebaseError",Object.setPrototypeOf(n,a.prototype),Error.captureStackTrace&&Error.captureStackTrace(n,f.prototype.create),n}var f=(h.prototype.create=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=t[0]||{},i=this.service+"/"+e,o=this.errors[e],s=o?function(e,r){return e.replace(v,function(e,t){var n=r[t];return null!=n?n.toString():"<"+t+"?>"})}(o,r):"Error",a=this.serviceName+": "+s+" ("+i+").",u=new d(i,a),c=0,f=Object.keys(r);c<f.length;c++){var l=f[c];"_"!==l.slice(-1)&&(l in u&&console.warn('Overwriting FirebaseError base field "'+l+'" can cause unexpected behavior.'),u[l]=r[l])}return u},h);function h(e,t,n){this.service=e,this.serviceName=t,this.errors=n}var v=/\{\$([^}]+)}/g,g=(b.prototype.setInstantiationMode=function(e){return this.instantiationMode=e,this},b.prototype.setMultipleInstances=function(e){return this.multipleInstances=e,this},b.prototype.setServiceProps=function(e){return this.serviceProps=e,this},b);function b(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY"}function y(n){return new Promise(function(e,t){n.onsuccess=function(){e(n.result)},n.onerror=function(){t(n.error)}})}function w(n,r,i){var o,e=new Promise(function(e,t){y(o=n[r].apply(n,i)).then(e,t)});return e.request=o,e}function m(e,n,t){t.forEach(function(t){Object.defineProperty(e.prototype,t,{get:function(){return this[n][t]},set:function(e){this[n][t]=e}})})}function k(t,n,r,e){e.forEach(function(e){e in r.prototype&&(t.prototype[e]=function(){return w(this[n],e,arguments)})})}function S(t,n,r,e){e.forEach(function(e){e in r.prototype&&(t.prototype[e]=function(){return this[n][e].apply(this[n],arguments)})})}function I(t,n,r,e){e.forEach(function(e){e in r.prototype&&(t.prototype[e]=function(){return function(e,t,n){var r=w(e,t,n);return r.then(function(e){if(e)return new C(e,r.request)})}(this[n],e,arguments)})})}function T(e){this._index=e}function C(e,t){this._cursor=e,this._request=t}function _(e){this._store=e}function P(n){this._tx=n,this.complete=new Promise(function(e,t){n.oncomplete=function(){e()},n.onerror=function(){t(n.error)},n.onabort=function(){t(n.error)}})}function j(e,t,n){this._db=e,this.oldVersion=t,this.transaction=new P(n)}function D(e){this._db=e}function E(e,t,n){var r=w(indexedDB,"open",[e,t]),i=r.request;return i&&(i.onupgradeneeded=function(e){n&&n(new j(i.result,e.oldVersion,i.transaction))}),r.then(function(e){return new D(e)})}function x(e){return w(indexedDB,"deleteDatabase",[e])}m(T,"_index",["name","keyPath","multiEntry","unique"]),k(T,"_index",IDBIndex,["get","getKey","getAll","getAllKeys","count"]),I(T,"_index",IDBIndex,["openCursor","o
249penKeyCursor"]),m(C,"_cursor",["direction","key","primaryKey","value"]),k(C,"_cursor",IDBCursor,["update","delete"]),["advance","continue","continuePrimaryKey"].forEach(function(n){n in IDBCursor.prototype&&(C.prototype[n]=function(){var t=this,e=arguments;return Promise.resolve().then(function(){return t._cursor[n].apply(t._cursor,e),y(t._request).then(function(e){if(e)return new C(e,t._request)})})})}),_.prototype.createIndex=function(){return new T(this._store.createIndex.apply(this._store,arguments))},_.prototype.index=function(){return new T(this._store.index.apply(this._store,arguments))},m(_,"_store",["name","keyPath","indexNames","autoIncrement"]),k(_,"_store",IDBObjectStore,["put","add","delete","clear","get","getAll","getKey","getAllKeys","count"]),I(_,"_store",IDBObjectStore,["openCursor","openKeyCursor"]),S(_,"_store",IDBObjectStore,["deleteIndex"]),P.prototype.objectStore=function(){return new _(this._tx.objectStore.apply(this._tx,arguments))},m(P,"_tx",["objectStoreNames","mode"]),S(P,"_tx",IDBTransaction,["abort"]),j.prototype.createObjectStore=function(){return new _(this._db.createObjectStore.apply(this._db,arguments))},m(j,"_db",["name","version","objectStoreNames"]),S(j,"_db",IDBDatabase,["deleteObjectStore","close"]),D.prototype.transaction=function(){return new P(this._db.transaction.apply(this._db,arguments))},m(D,"_db",["name","version","objectStoreNames"]),S(D,"_db",IDBDatabase,["close"]),["openCursor","o
249penKeyCursor"].forEach(function(i){[_,T].forEach(function(e){i in e.prototype&&(e.prototype[i.replace("open","iterate")]=function(){var e=function(e){return Array.prototype.slice.call(e)}(arguments),t=e[e.length-1],n=this._store||this._index,r=n[i].apply(n,e.slice(0,-1));r.onsuccess=function(){t(r.result)}})})}),[T,_].forEach(function(e){e.prototype.getAll||(e.prototype.getAll=function(e,n){var r=this,i=[];return new Promise(function(t){r.iterateCursor(e,function(e){e?(i.push(e.value),void 0===n||i.length!=n?e.continue():t(i)):t(i)})})})});var K,O="0.4.2",N=1e4,M="w:"+O,A="FIS_v2",q="https://firebaseinstallations.googleapis.com/v1",B=36e5,L=((K={})["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',K["not-registered"]="Firebase Installation is not registered.",K["installation-not-found"]="Firebase Installation not found.",K["request-failed"]='{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',K["app-offline"]="Could not process request. Application offline.",K["delete-pending-registration"]="Can't delete installation while there is a pending registration request.",K),R=new f("installations","Installations",L);function V(e){return e instanceof d&&e.code.includes("request-failed")}function W(e){var t=e.projectId;return q+"/projects/"+t+"/installations"}function F(e){return{token:e.token,requestStatus:2,expiresIn:function(e){return Number(e.replace("s","000"))}(e.expiresIn),creationTime:Date.now()}}function H(r,i){return l(this,void 0,void 0,function(){var t,n;return p(this,function(e){switch(e.label){case 0:return[4,i.json()];case 1:return t=e.sent(),n=t.error,[2,R.create("request-failed",{requestName:r,serverCode:n.code,serverMessage:n.message,serverStatus:n.status})]}})})}function U(e){var t=e.apiKey;return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t})}function $(e,t){var n=t.refreshToken,r=U(e);return r.append("Authorization",function(e){return A+" "+e}(n)),r}function G(n){return l(this,void 0,void 0,function(){var t;return p(this,function(e){switch(e.label){case 0:return[4,n()];case 1:return 500<=(t=e.sent()).status&&t.status<600?[2,n()]:[2,t]}})})}function z(t){return new Promise(function(e){setTimeout(e,t)})}var J=/^[cdef][\w-]{21}$/,Y="";function Z(){try{var e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;var t=function(e){return function(e){return btoa(String.fromCharCode.apply(String,i(e))).replace(/\+/g,"-").replace(/\//g,"_")}(e).substr(0,22)}(e);return J.test(t)?t:Y}catch(e){return Y}}function Q(e){return e.appName+"!"+e.appId}var X=new Map;function ee(e,t){var n=Q(e);te(n,t),function(e,t){var n=re();n&&n.postMessage({key:e,fid:t});ie()}(n,t)}function te(e,t){var n,r,i=X.get(e);if(i)try{for(var o=c(i),s=o.next();!s.done;s=o.next()){(0,s.value)(t)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}var ne=null;function re(){return!ne&&"BroadcastChannel"in self&&((ne=new BroadcastChannel("[Firebase] FID Change")).onmessage=function(e){te(e.data.key,e.data.fid)}),ne}function ie(){0===X.size&&ne&&(ne.close(),ne=null)}var oe,se,ae="firebase-installations-database",ue=1,ce="firebase-installations-store",fe=null;function le(){return fe=fe||E(ae,ue,function(e){switch(e.oldVersion){case 0:e.createObjectStore(ce)}})}function pe(s,a){return l(this,void 0,void 0,function(){var t,n,r,i,o;return p(this,function(e){switch(e.label){case 0:return t=Q(s),[4,le()];case 1:return n=e.sent(),r=n.transaction(ce,"readwrite"),[4,(i=r.objectStore(ce)).get(t)];case 2:return o=e.sent(),[4,i.put(a,t)];case 3:return e.sent(),[4,r.complete];case 4:return e.sent(),o&&o.fid===a.fid||ee(s,a.fid),[2,a]}})})}function de(i){return l(this,void 0,void 0,function(){var t,n,r;return p(this,function(e){switch(e.label){case 0:return t=Q(i),[4,le()];case 1:return n=e.sent(),[4,(r=n.transaction(ce,"readwrite")).objectStore(ce).delete(t)];case 2:return e.sent(),[4,r.complete];case 3:return e.sent(),[2]}})})}function he(a,u){return l(this,void 0,void 0,function(){var t,n,r,i,o,s;return p(this,function(e){switch(e.label){case 0:return t=Q(a),[4,le()];case 1:return n=e.sent(),r=n.transaction(ce,"readwrite"),[4,(i=r.objectStore(ce)).get(t)];case 2:return o=e.sent(),void 0!==(s=u(o))?[3,4]:[4,i.delete(t)];case 3:return e.sent(),[3,6];case 4:return[4,i.put(s,t)];case 5:e.sent(),e.label=6;case 6:return[4,r.complete];case 7:return e.sent(),!s||o&&o.fid===s.fid||ee(a,s.fid),[2,s]}})})}function ve(i){return l(this,void 0,void 0,function(){var r,t,n;return p(this,function(e){switch(e.label){case 0:return[4,he(i,function(e){var t=function(e){return be(e||{fid:Z(),registrationStatus:0})}(e),n=function(e,t){{if(0!==t.registrationStatus)return 1===t.registrationStatus?{installationEntry:t,registrationPromise:function(o){return l(this,void 0,void 0,function(){var t,n,r,i;return p(this,function(e){switch(e.label){case 0:return[4,ge(o)];case 1:t=e.sent(),e.label=2;case 2:return 1!==t.registrationStatus?[3,5]:[4,z(100)];case 3:return e.sent(),[4,ge(o)];case 4:return t=e.sent(),[3,2];case 5:return 0!==t.registrationStatus?[3,7]:[4,ve(o)];case 6:return n=e.sent(),r=n.installationEntry,(i=n.registrationPromise)?[2,i]:[2,r];case 7:return[2,t]}})})}(e)}:{installationEntry:t};if(!navigator.onLine){var n=Promise.reject(R.create("app-offline"));return{installationEntry:t,registrationPromise:n}}var r={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},i=function(r,i){return l(this,void 0,void 0,function(){var t,n;return p(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,7]),[4,function(a,e){var u=e.fid;return l(this,void 0,void 0,function(){var t,n,r,i,o,s;return p(this,function(e){switch(e.label){case 0:return t=W(a),n=U(a),r={fid:u,authVersion:A,appId:a.appId,sdkVersion:M},i={method:"POST",headers:n,body:JSON.stringify(r)},[4,G(function(){return fetch(t,i)})];case 1:return(o=e.sent()).ok?[4,o.json()]:[3,3];case 2:return s=e.sent(),[2,{fid:s.fid||u,registrationStatus:2,refreshToken:s.refreshToken,authToken:F(s.authToken)}];case 3:return[4,H("Create Installation",o)];case 4:throw e.sent()}})})}(r,i)];case 1:return t=e.sent(),[2,pe(r,t)];case 2:return V(n=e.sent())&&409===n.serverCode?[4,de(r)]:[3,4];case 3:return e.sent(),[3,6];case 4:return[4,pe(r,{fid:i.fid,registrationStatus:0})];case 5:e.sent(),e.label=6;case 6:throw n;case 7:return[2]}})})}(e,r);return{installationEntry:r,registrationPromise:i}}}(i,t);return r=n.registrationPromise,n.installationEntry})];case 1:return(t=e.sent()).fid!==Y?[3,3]:(n={},[4,r]);case 2:return[2,(n.installationEntry=e.sent(),n)];case 3:return[2,{installationEntry:t,registrationPromise:r}]}})})}function ge(e){return he(e,function(e){if(!e)throw R.create("installation-not-found");return be(e)})}function be(e){return function(e){return 1===e.registrationStatus&&e.registrationTime+N<Date.now()}(e)?{fid:e.fid,registrationStatus:0}:e}function ye(e,u){var c=e.appConfig,f=e.platformLoggerProvider;return l(this,void 0,void 0,function(){var t,n,r,i,o,s,a;return p(this,function(e){switch(e.label){case 0:return t=function(e,t){var n=t.fid;return W(e)+"/"+n+"/authTokens:generate"}(c,u),n=$(c,u),(r=f.getImmediate({optional:!0}))&&n.append("x-firebase-client",r.getPlatformInfoString()),i={installation:{sdkVersion:M}},o={method:"POST",headers:n,body:JSON.stringify(i)},[4,G(function(){return fetch(t,o)})];case 1:return(s=e.sent()).ok?[4,s.json()]:[3,3];case 2:return a=e.sent(),[2,F(a)];case 3:return[4,H("Generate Auth Token",s)];case 4:throw e.sent()}})})}function we(i,o){return void 0===o&&(o=!1),l(this,void 0,void 0,function(){var r,t,n;return p(this,function(e){switch(e.label){case 0:return[4,he(i.appConfig,function(e){if(!ke(e))throw R.create("not-registered");var t=e.authToken;if(!o&&function(e){return 2===e.requestStatus&&!function(e){var t=Date.now();
249return t<e.creationTime||e.creationTime+e.expiresIn<t+B}(e)}(t))return e;if(1===t.requestStatus)return r=function(r,i){return l(this,void 0,void 0,function(){var t,n;return p(this,function(e){switch(e.label){case 0:return[4,me(r.appConfig)];case 1:t=e.sent(),e.label=2;case 2:return 1!==t.authToken.requestStatus?[3,5]:[4,z(100)];case 3:return e.sent(),[4,me(r.appConfig)];case 4:return t=e.sent(),[3,2];case 5:return 0===(n=t.authToken).requestStatus?[2,we(r,i)]:[2,n]}})})}(i,o),e;if(!navigator.onLine)throw R.create("app-offline");var n=function(e){var t={requestStatus:1,requestTime:Date.now()};return u(u({},e),{authToken:t})}(e);return r=function(i,o){return l(this,void 0,void 0,function(){var t,n,r;return p(this,function(e){switch(e.label){case 0:return e.trys.push([0,3,,8]),[4,ye(i,o)];case 1:return t=e.sent(),r=u(u({},o),{authToken:t}),[4,pe(i.appConfig,r)];case 2:return e.sent(),[2,t];case 3:return!V(n=e.sent())||401!==n.serverCode&&404!==n.serverCode?[3,5]:[4,de(i.appConfig)];case 4:return e.sent(),[3,7];case 5:return r=u(u({},o),{authToken:{requestStatus:0}}),[4,pe(i.appConfig,r)];case 6:e.sent(),e.label=7;case 7:throw n;case 8:return[2]}})})}(i,n),n})];case 1:return t=e.sent(),r?[4,r]:[3,3];case 2:return n=e.sent(),[3,4];case 3:n=t.authToken,e.label=4;case 4:return[2,n]}})})}function me(e){return he(e,function(e){if(!ke(e))throw R.create("not-registered");return function(e){return 1===e.requestStatus&&e.requestTime+N<Date.now()}(e.authToken)?u(u({},e),{authToken:{requestStatus:0}}):e})}function ke(e){return void 0!==e&&2===e.registrationStatus}function Se(t,n){return void 0===n&&(n=!1),l(this,void 0,void 0,function(){return p(this,function(e){switch(e.label){case 0:return[4,function(n){return l(this,void 0,void 0,function(){var t;return p(this,function(e){switch(e.label){case 0:return[4,ve(n)];case 1:return(t=e.sent().registrationPromise)?[4,t]:[3,3];case 2:e.sent(),e.label=3;case 3:return[2]}})})}(t.appConfig)];case 1:return e.sent(),[4,we(t,n)];case 2:return[2,e.sent().token]}})})}function Ie(o,s){return l(this,void 0,void 0,function(){var t,n,r,i;return p(this,function(e){switch(e.label){case 0:return t=function(e,t){var n=t.fid;return W(e)+"/"+n}(o,s),n=$(o,s),r={method:"DELETE",headers:n},[4,G(function(){return fetch(t,r)})];case 1:return(i=e.sent()).ok?[3,3]:[4,H("Delete Installation",i)];case 2:throw e.sent();case 3:return[2]}})})}function Te(e,t){var n=e.appConfig;return function(e,t){re();var n=Q(e),r=X.get(n);r||(r=new Set,X.set(n,r)),r.add(t)}(n,t),function(){!function(e,t){var n=Q(e),r=X.get(n);r&&(r.delete(t),0===r.size&&X.delete(n),ie())}(n,t)}}function Ce(e){return R.create("missing-app-config-values",{valueName:e})}(oe=ft).INTERNAL.registerComponent(new g("installations",function(e){var t=e.getProvider("app").getImmediate(),n={appConfig:function(e){var t,n;if(!e||!e.options)throw Ce("App Configuration");if(!e.name)throw Ce("App Name");try{for(var r=c(["projectId","apiKey","appId"]),i=r.next();!i.done;i=r.next()){var o=i.value;if(!e.options[o])throw Ce(o)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}(t),platformLoggerProvider:e.getProvider("platform-logger")};return{app:t,getId:function(){return function(i){return l(this,void 0,void 0,function(){var t,n,r;return p(this,function(e){switch(e.label){case 0:return[4,ve(i.appConfig)];case 1:return t=e.sent(),n=t.installationEntry,(r=t.registrationPromise)?r.catch(console.error):we(i).catch(console.error),[2,n.fid]}})})}(n)},getToken:function(e){return Se(n,e)},delete:function(){return function(r){return l(this,void 0,void 0,function(){var t,n;return p(this,function(e){switch(e.label){case 0:return[4,he(t=r.appConfig,function(e){if(!e||0!==e.registrationStatus)return e})];case 1:if(!(n=e.sent()))return[3,6];if(1!==n.registrationStatus)return[3,2];throw R.create("delete-pending-registration");case 2:if(2!==n.registrationStatus)return[3,6];if(navigator.onLine)return[3,3];throw R.create("app-offline");case 3:return[4,Ie(t,n)];case 4:return e.sent(),[4,de(t)];case 5:e.sent(),e.label=6;case 6:return[2]}})})}(n)},onIdChange:function(e){return Te(n,e)}}},"PUBLIC")),oe.registerVersion("@firebase/installations",O);var _e=((se={})["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',se["only-available-in-window"]="This method is available in a Window context.",se["only-available-in-sw"]="This method is available in a service worker context.",se["permission-default"]="The notification permission was not granted and dismissed instead.",se["permission-blocked"]="The notification permission was not granted and blocked instead.",se["unsupported-browser"]="This browser doesn't support the API's required to use the firebase SDK.",se["failed-service-worker-registration"]="We are unable to register the default service worker. {$browserErrorMessage}",se["token-subscribe-failed"]="A problem occured while subscribing the user to FCM: {$errorInfo}",se["token-subscribe-no-token"]="FCM returned no token when subscribing the user to push.",se["token-unsubscribe-failed"]="A problem occured while unsubscribing the user from FCM: {$errorInfo}",se["token-update-failed"]="A problem occured while updating the user from FCM: {$errorInfo}",se["token-update-no-token"]="FCM returned no token when updating the user to push.",se["use-sw-after-get-token"]="The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.",se["invali
249d-sw-registration"]="The input to useServiceWorker() must be a ServiceWorkerRegistration.",se["invalid-bg-handler"]="The input to setBackgroundMessageHandler() must be a function.",se["invalid-vapid-key"]="The public VAPID key must be a string.",se["use-vapid-key-after-get-token"]="The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used.",se),Pe=new f("messaging","Messaging",_e);function je(e){return Pe.create("missing-app-config-values",{valueName:e})}function De(e){var t=new Uint8Array(e);return btoa(String.fromCharCode.apply(String,i(t))).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}var Ee="fcm_token_details_db",xe=5,Ke="fcm_token_object_Store";function Oe(a){return l(this,void 0,void 0,function(){var t,s,n=this;return p(this,function(e){switch(e.label){case 0:return"databases"in indexedDB?[4,indexedDB.databases()]:[3,2];case 1:if(t=e.sent(),!t.map(function(e){return e.name}).includes(Ee))return[2,null];e.label=2;case 2:return s=null,[4,E(Ee,xe,function(o){return l(n,void 0,void 0,function(){var t,n,r,i;return p(this,function(e){switch(e.label){case 0:return o.oldVersion<2?[2]:o.objectStoreNames.contains(Ke)?[4,(t=o.transaction.objectStore(Ke)).index("fcmSenderId").get(a)]:[2];case 1:return n=e.sent(),[4,t.clear()];case 2:if(e.sent(),!n)return[2];if(2===o.oldVersion){if(!(r=n).auth||!r.p256dh||!r.endpoint)return[2];s={token:r.fcmToken,createTime:(i=r.createTime,null!=i?i:Date.now()),subscriptionOptions:{auth:r.auth,p256dh:r.p256dh,endpoint:r.endpoint,swScope:r.swScope,vapidKey:"string"==typeof r.vapidKey?r.vapidKey:De(r.vapidKey)}}}else 3===o.oldVersion?s={token:(r=n).fcmToken,createTime:r.createTime,subscriptionOptions:{auth:De(r.auth),p256dh:De(r.p256dh),endpoint:r.endpoint,swScope:r.swScope,vapidKey:De(r.vapidKey)}}:4===o.oldVersion&&(s={token:(r=n).fcmToken,createTime:r.createTime,subscriptionOptions:{auth:De(r.auth),p256dh:De(r.p256dh),endpoint:r.endpoint,swScope:r.swScope,vapidKey:De(r.vapidKey)}});return[2]}})})})];case 3:return e.sent().close(),[4,x(Ee)];case 4:return e.sent(),[4,x("fcm_vapid_details_db")];case 5:return e.sent(),[4,x("undefined")];case 6:return e.sent(),[2,function(e){if(!e||!e.subscriptionOptions)return!1;var t=e.subscriptionOptions;return"number"==typeof e.createTime&&0<e.createTime&&"string"==typeof e.token&&0<e.token.length&&"string"==typeof t.auth&&0<t.auth.length&&"string"==typeof t.p256dh&&0<t.p256dh.length&&"string"==typeof t.endpoint&&0<t.endpoint.length&&"string"==typeof t.swScope&&0<t.swScope.length&&"string"==typeof t.vapidKey&&0<t.vapidKey.length}(s)?s:null]}})})}var Ne="firebase-messaging-database",Me=1,Ae="firebase-messaging-store",qe=null;function Be(){return qe=qe||E(Ne,Me,function(e){switch(e.oldVersion){case 0:e.createObjectStore(Ae)}})}function Le(i){return l(this,void 0,void 0,function(){var t,n,r;return p(this,function(e){switch(e.label){case 0:return t=Ve(i),[4,Be()];case 1:return[4,e.sent().transaction(Ae).objectStore(Ae).get(t)];case 2:return(n=e.sent())?[2,n]:[3,3];case 3:return[4,Oe(i.appConfig.senderId)];case 4:return(r=e.sent())?[4,Re(i,r)]:[3,6];case 5:return e.sent(),[2,r];case 6:return[2]}})})}function Re(i,o){return l(this,void 0,void 0,function(){var t,n,r;return p(this,function(e){switch(e.label){case 0:return t=Ve(i),[4,Be()];case 1:return n=e.sent(),[4,(r=n.transaction(Ae,"readwrite")).objectStore(Ae).put(o,t)];case 2:return e.sent(),[4,r.complete];case 3:return e.sent(),[2,o]}})})}function Ve(e){return e.appConfig.appId}var We="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",Fe="https://fcmregistrations.googleapis.com/v1",He="FCM_MSG",Ue="google.c.a.c_id";function $e(s,a){return l(this,void 0,void 0,function(){var t,n,r,i,o;return p(this,function(e){switch(e.label){case 0:return[4,ze(s)];case 1:t=e.sent(),n={method:"DELETE",headers:t},e.label=2;case 2:return e.trys.push([2,5,,6]),[4,fetch(Ge(s.appConfig)+"/"+a,n)];case 3:return[4,e.sent().json()];case 4:if((r=e.sent()).error)throw i=r.error.message,Pe.create("token-unsubscribe-failed",{errorInfo:i});return[3,6];case 5:throw o=e.sent(),Pe.create("token-unsubscribe-failed",{errorInfo:o});case 6:return[2]}})})}function Ge(e){var t=e.projectId;return Fe+"/projects/"+t+"/registrations"}function ze(e){var n=e.appConfig,r=e.installations;return l(this,void 0,void 0,function(){var t;return p(this,function(e){switch(e.label){case 0:return[4,r.getToken()];case 1:return t=e.sent(),[2,new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":n.apiKey,"x-goog-firebase-installations-auth":"FIS "+t})]}})})}function Je(e){var t=e.p256dh,n=e.auth,r=e.endpoint,i=e.vapidKey,o={web:{endpoint:r,auth:n,p256dh:t}};return i!==We&&(o.web.applicationPubKey=i),o}var Ye,Ze;function Qe(o,s,a){return l(this,void 0,void 0,function(){var t,n,r,i;return p(this,function(e){switch(e.label){case 0:if("granted"!==Notification.permission)throw Pe.create("permission-blocked");return[4,function(n,r){return l(this,void 0,void 0,function(){var t;return p(this,function(e){switch(e.label){case 0:return[4,n.pushManager.getSubscription()];case 1:return(t=e.sent())?[2,t]:[2,n.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:r})]}})})}(s,a)];case 1:return t=e.sent(),[4,Le(o)];case 2:return n=e.sent(),r={vapidKey:a,swScope:s.scope,endpoint:t.endpoint,auth:De(t.getKey("auth")),p256dh:De(t.getKey("p256dh"))},n?[3,3]:[2,et(o,r)];case 3:if(function(e,t){var n=t.vapidKey===e.vapidKey,r=t.endpoint===e.endpoint,i=t.auth===e.auth,o=t.p256dh===e.p256dh;return n&&r&&i&&o}(n.subscriptionOptions,r))return[3,8];e.label=4;case 4:return e.trys.push([4,6,,7]),[4,$e(o,n.token)];case 5:return e.sent(),[3,7];case 6:return i=e.sent(),console.warn(i),[3,7];case 7:return[2,et(o,r)];case 8:return Date.now()>=n.createTime+6048e5?[2,function(i,o,s){return l(this,void 0,void 0,function(){var t,n,r;return p(this,function(e){switch(e.label){case 0:return e.trys.push([0,3,,5]),[4,function(a,u){return l(this,void 0,void 0,function(){var t,n,r,i,o,s;return p(this,function(e){switch(e.label){case 0:return[4,ze(a)];case 1:t=e.sent(),n=Je(u.subscriptionOptions),r={method:"PATCH",headers:t,body:JSON.stringify(n)},e.label=2;case 2:return e.trys.push([2,5,,6]),[4,fetch(Ge(a.appConfig)+"/"+u.token,r)];case 3:return[4,e.sent().json()];case 4:return i=e.sent(),[3,6];case 5:throw o=e.sent(),Pe.create("token-update-failed",{errorInfo:o});case 6:if(i.error)throw s=i.error.message,Pe.create("token-update-failed",{errorInfo:s});if(!i.token)throw Pe.create("token-update-no-token");return[2,i.token]}})})}(o,i)];case 1:return t=e.sent(),n=u({token:t,createTime:Date.now()},i),[4,Re(o,n)];case 2:return e.sent(),[2,t];case 3:return r=e.sent(),[4,Xe(o,s)];case 4:throw e.sent(),r;case 5:return[2]}})})}({token:n.token,createTime:Date.now(),subscriptionOptions:r},o,s)]:[2,n.token];case 9:return[2]}})})}function Xe(r,i){return l(this,void 0,void 0,function(){var t,n;return p(this,function(e){switch(e.label){case 0:return[4,Le(r)];case 1:return(t=e.sent())?[4,$e(r,t.token)]:[3,4];case 2:return e.sent(),[4,function(i){return l(this,void 0,void 0,function(){var t,n,r;return p(this,function(e){switch(e.label){case 0:return t=Ve(i),[4,Be()];case 1:return n=e.sent(),[4,(r=n.transaction(Ae,"readwrite")).objectStore(Ae).delete(t)];case 2:return e.sent(),[4,r.complete];case 3:return e.sent(),[2]}})})}(r)];case 3:e.sent(),e.label=4;case 4:return[4,i.pushManager.getSubscription()];case 5:return(n=e.sent())?[2,n.unsubscribe()]:[2,!0]}})})}function et(r,i){return l(this,void 0,void 0,function(){var t,n;return p(this,function(e){switch(e.label){case 0:return[4,function(a,u){return l(this,void 0,void 0,function(){var t,n,r,i,o,s;return p(this,function(e){switch(e.label){case 0:return[4,ze(a)];case 1:t=e.sent(),n=Je(u),r={method:"POST",headers:t,body:JSON.stringify(n)},e.label=2;case 2:return e.trys.push([2,5,,6]),[4,fetch(Ge(a.appConfig),r)];case 3:return[4,e.sent().json()];case 4:return i=e.sent(),[3,6];case 5:throw o=e.sent(),Pe.create("token-subscribe-failed",{errorInfo:o});case 6:if(i.error)throw s=i.error.message,Pe.create("token-subscribe-failed",{errorInfo:s});if(!i.token)throw Pe.create("token-subscribe-no-token");return[2,i.token]}})})}(r,i)];case 1:return t=e.sent(),n={token:t,createTime:Date.now(),subscriptionOptions:i},[4,Re(r,n)];case 2:return e.sent(),[2,n.token]}})})}function tt(e){return"object"==typeof e&&!!e&&Ue in e}(Ze=Ye=Ye||{}).PUSH_RECEIVED="push-received",Ze.NOTIFICATION_CLICKED="notification-clicked";var nt=(Object.defineProperty(rt.prototype,"app",{get:function(){return this.firebaseDependencies.app},enumerable:!0,configurable:!0}),rt.prototype.getToken=function(){return l(this,void 0,void 0,function(){var t;return p(this,function(e){switch(e.label){case 0:return this.vapidKey||
249(this.vapidKey=We),[4,this.getServiceWorkerRegistration()];case 1:return t=e.sent(),"default"!==Notification.permission?[3,3]:[4,Notification.requestPermission()];case 2:e.sent(),e.label=3;case 3:if("granted"!==Notification.permission)throw Pe.create("permission-blocked");return[2,Qe(this.firebaseDependencies,t,this.vapidKey)]}})})},rt.prototype.deleteToken=function(){return l(this,void 0,void 0,function(){var t;return p(this,function(e){switch(e.label){case 0:return[4,this.getServiceWorkerRegistration()];case 1:return t=e.sent(),[2,Xe(this.firebaseDependencies,t)]}})})},rt.prototype.requestPermission=function(){return l(this,void 0,void 0,function(){var t;return p(this,function(e){switch(e.label){case 0:return"granted"===Notification.permission?[2]:[4,Notification.requestPermission()];case 1:if("granted"===(t=e.sent()))return[2];throw"denied"===t?Pe.create("permission-blocked"):Pe.create("permission-default")}})})},rt.prototype.usePublicVapidKey=function(e){if(null!==this.vapidKey)throw Pe.create("use-vapid-key-after-get-token");if("string"!=typeof e||0===e.length)throw Pe.create("invalid-vapid-key");this.vapidKey=e},rt.prototype.useServiceWorker=function(e){if(!(e instanceof ServiceWorkerRegistration))throw Pe.create("invalid-sw-registration");if(this.swRegistration)throw Pe.create("use-sw-after-get-token");this.swRegistration=e},rt.prototype.onMessage=function(e){var t=this;return this.onMessageCallback="function"==typeof e?e:e.next,function(){t.onMessageCallback=null}},rt.prototype.setBackgroundMessageHandler=function(){throw Pe.create("only-available-in-sw")},rt.prototype.onTokenRefresh=function(){return function(){}},rt.prototype.getServiceWorkerRegistration=function(){return l(this,void 0,void 0,function(){var t,n;return p(this,function(e){switch(e.label){case 0:if(this.swRegistration)return[3,4];e.label=1;case 1:return e.trys.push([1,3,,4]),t=this,[4,navigator.serviceWorker.register("/firebase-messaging-sw.js",{scope:"/firebase-cloud-messaging-push-scope"})];case 2:return t.swRegistration=e.sent(),[3,4];case 3:throw n=e.sent(),Pe.create("failed-service-worker-registration",{browserErrorMessage:n.message});case 4:return[2,this.swRegistration]}})})},rt.prototype.messageEventListener=function(o){var s;return l(this,void 0,void 0,function(){var t,n,r,i;return p(this,function(e){switch(e.label){case 0:return(null===(s=o.data)||void 0===s?void 0:s.firebaseMessaging)?(t=o.data.firebaseMessaging,n=t.type,r=t.payload,this.onMessageCallback&&n===Ye.PUSH_RECEIVED&&this.onMessageCallback(r),tt(i=r.data)&&"1"===i["google.c.a.e"]?[4,this.logEvent(n,i)]:[3,2]):[2];case 1:e.sent(),e.label=2;case 2:return[2]}})})},rt.prototype.logEvent=function(n,r){return l(this,void 0,void 0,function(){var t;return p(this,function(e){switch(e.label){case 0:return t=function(e){switch(e){case Ye.NOTIFICATION_CLICKED:return"notification_open";case Ye.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}(n),[4,this.firebaseDependencies.analyticsProvider.get()];case 1:return e.sent().logEvent(t,{message_id:r[Ue],message_name:r["google.c.a.c_l"],message_time:r["google.c.a.ts"],message_device_time:Math.floor(Date.now()/1e3)}),[2]}})})},rt);function rt(e){var t=this;this.firebaseDependencies=e,this.vapidKey=null,this.onMessageCallback=null,navigator.serviceWorker.addEventListener("message",function(e){return t.messageEventListener(e)})}var it=(Object.defineProperty(ot.prototype,"app",{get:function(){return this.firebaseDependencies.app},enumerable:!0,configurable:!0}),ot.prototype.setBackgroundMessageHandler=function(e){if(!e||"function"!=typeof e)throw Pe.create("invalid-bg-handler");this.bgMessageHandler=e},ot.prototype.getToken=function(){var n,r,i;return l(this,void 0,void 0,function(){var t;return p(this,function(e){switch(e.label){case 0:return this.vapidKey?[3,2]:[4,Le(this.firebaseDependencies)];case 1:t=e.sent(),this.vapidKey=null!=(i=null===(r=null===(n=t)||void 0===n?void 0:n.subscriptionOptions)||void 0===r?void 0:r.vapidKey)?i:We,e.label=2;case 2:return[2,Qe(this.firebaseDependencies,self.registration,this.vapidKey)]}})})},ot.prototype.deleteToken=function(){return Xe(this.firebaseDependencies,self.registration)},ot.prototype.requestPermission=function(){throw Pe.create("only-available-in-window")},ot.prototype.usePublicVapidKey=function(e){if(null!==this.vapidKey)throw Pe.create("use-vapid-key-after-get-token");if("string"!=typeof e||0===e.length)throw Pe.create("invalid-vapid-key");this.vapidKey=e},ot.prototype.useServiceWorker=function(){throw Pe.create("only-available-in-window")},ot.prototype.onMessage=function(){throw Pe.create("only-available-in-window")},ot.prototype.onTokenRefresh=function(){throw Pe.create("only-available-in-window")},ot.prototype.onPush=function(i){return l(this,void 0,void 0,function(){var t,n,r;return p(this,function(e){switch(e.label){case 0:return(t=function(e){var t=e.data;if(!t)return null;try{return t.json()}catch(e){return null}}(i))?[4,st()]:[2];case 1:return function(e){return e.some(function(e){return"visible"===e.visibilityState&&!e.url.startsWith("chrome-extension://")})}(n=e.sent())?[2,function(e,t){var n,r,i=at(Ye.PUSH_RECEIVED,t);try{for(var o=c(e),s=o.next();!s.done;s=o.next())s.value.postMessage(i)}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}(n,t)]:(r=function(e){var t;if(e&&"object"==typeof e.notification){var n=u({},e.notification);return n.data=u(u({},e.notification.data),((t={})[He]=e,t)),n}}(t))?[4,function(e){var t,n=null!==(t=e.title)&&void 0!==t?t:"",r=e.actions,i=Notification.maxActions;return r&&i&&r.length>i&&console.warn("This browser only supports "+i+" actions. The remaining actions will not be displayed."),self.registration.showNotification(n,e)}(r)]:[3,3];case 2:return e.sent(),[3,5];case 3:return this.bgMessageHandler?[4,this.bgMessageHandler(t)]:[3,5];case 4:e.sent(),e.label=5;case 5:return[2]}})})},ot.prototype.onSubChange=function(n){var r,i,o;return l(this,void 0,void 0,function(){var t;return p(this,function(e){switch(e.label){case 0:return n.newSubscription?[3,2]:[4,Xe(this.firebaseDependencies,self.registration)];case 1:return e.sent(),[2];case 2:return[4,Le(this.firebaseDependencies)];case 3:return t=e.sent(),[4,Xe(this.firebaseDependencies,self.registration)];case 4:return e.sent(),[4,Qe(this.firebaseDependencies,self.registration,(o=null===(i=null===(r=t)||void 0===r?void 0:r.subscriptionOptions)||void 0===i?void 0:i.vapidKey,null!=o?o:We))];case 5:return e.sent(),[2]}})})},ot.prototype.onNotificationClick=function(o){var s,a;return l(this,void 0,void 0,function(){var t,n,r,i;return p(this,function(e){switch(e.label){case 0:return(t=null===(a=null===(s=o.notification)||void 0===s?void 0:s.data)||void 0===a?void 0:a[He])?o.action?[2]:(o.stopImmediatePropagation(),o.notification.close(),(n=function(e){var t,n,r,i=null!==(n=null===(t=e.fcmOptions)||void 0===t?void 0:t.link)&&void 0!==n?n:null===(r=e.notification)||void 0===r?void 0:r.click_action;
249return i||(tt(e.data)?self.location.origin:null)}(t))?[4,function(u){return l(this,void 0,void 0,function(){var t,n,r,i,o,s,a;return p(this,function(e){switch(e.label){case 0:return t=new URL(u,self.location.href).href,[4,st()];case 1:n=e.sent();try{for(r=c(n),i=r.next();!i.done;i=r.next())if(o=i.value,new URL(o.url,self.location.href).href===t)return[2,o]}catch(e){s={error:e}}finally{try{i&&!i.done&&(a=r.return)&&a.call(r)}finally{if(s)throw s.error}}return[2,null]}})})}(n)]:[2]):[2];case 1:return(r=e.sent())?[3,4]:[4,self.clients.openWindow(n)];case 2:return r=e.sent(),[4,function(t){return new Promise(function(e){setTimeout(e,t)})}(3e3)];case 3:return e.sent(),[3,6];case 4:return[4,r.focus()];case 5:r=e.sent(),e.label=6;case 6:return r?(i=at(Ye.NOTIFICATION_CLICKED,t),[2,r.postMessage(i)]):[2]}})})},ot);function ot(e){var t=this;this.firebaseDependencies=e,this.vapidKey=null,this.bgMessageHandler=null,self.addEventListener("push",function(e){e.waitUntil(t.onPush(e))}),self.addEventListener("pushsubscriptionchange",function(e){e.waitUntil(t.onSubChange(e))}),self.addEventListener("notificationclick",function(e){e.waitUntil(t.onNotificationClick(e))})}function st(){return self.clients.matchAll({type:"window",includeUncontrolled:!0})}function at(e,t){return{firebaseMessaging:{type:e,payload:t}}}var ut={isSupported:ct};function ct(){return self&&"ServiceWorkerGlobalScope"in self?"indexedDB"in self&&null!==indexedDB&&"PushManager"in self&&"Notification"in self&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey"):"indexedDB"in window&&null!==indexedDB&&navigator.cookieEnabled&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}ft.INTERNAL.registerComponent(new g("messaging",function(e){var t=e.getProvider("app").getImmediate(),n={app:t,appConfig:function(e){var t,n;if(!e||!e.options)throw je("App Configuration Object");if(!e.name)throw je("App Name");var r=e.options;try{for(var i=c(["projectId","apiKey","appId","messagingSenderId"]),o=i.next();!o.done;o=i.next()){var s=o.value;if(!r[s])throw je(s)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return{appName:e.name,projectId:r.projectId,apiKey:r.apiKey,appId:r.appId,senderId:r.messagingSenderId}}(t),installations:e.getProvider("installations").getImmediate(),analyticsProvider:e.getProvider("analytics-internal")};if(!ct())throw Pe.create("unsupported-browser");return self&&"ServiceWorkerGlobalScope"in self?new it(n):new nt(n)},"PUBLIC").setServiceProps(ut))}).apply(this,arguments)}catch(e){throw console.error(e),new Error("Cannot instantiate firebase-messaging.js - be sure to load firebase-app.js first.")}}); 250 251 252 253} 254catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://labadibeachhotelgh.com/wp-content/plugins/push-notification/assets/public/messaging.min.js\n- Error message: "+ e.message);} 255 256 257 var wcBlocksMiddlewareConfig = { 258 storeApiNonce: '048b8c78f0', 259 wcStoreApiNonceTimestamp: '1790786511' 260 }; 261 262var config=pnScriptSetting.pn_config;firebase.apps.length||firebase.initializeApp(config);var swsource=pnScriptSetting.swsource;const messaging=firebase.messaging();window.addEventListener("load",(function(){"serviceWorker"in navigator?navigator.serviceWorker.register(swsource,{scope:pnScriptSetting.scope}).then((function(e){messaging.useServiceWorker(e),pushnotification_load_messaging(e),console.log("Congratulations!!Service Worker Registered ServiceWorker scope: ",e.scope)})).catch((function(e){console.log("ServiceWorker registration failed: ",e)})):console.log("Pushnotification not supported ")}));var pnServiceWorkerRegistration=null;function pushnotification_load_messaging(e){pnServiceWorkerRegistration=e,messaging.onTokenRefresh((()=>{messaging.getToken().then((e=>{console.log("Token refreshed."),push_notification_setTokenSentToServer(!1),sendTokenToServer(e),resetUI()})).catch((e=>{console.log("Unable to retrieve refreshed token ",e),showToken("Unable to retrieve refreshed token ",e)}))}
262));var t=pnScriptSetting.auto_segment_enabled||!1;if(t)try{var n=pnScriptSetting.auto_authors||[],o=pnScriptSetting.auto_categories||[],i=[],r=[],a=window.localStorage.getItem("pn_subscribed_authors");a&&(i=JSON.parse(a),Array.isArray(i)||(i=[]));var s=window.localStorage.getItem("pn_subscribed_cats");s&&(r=JSON.parse(s),Array.isArray(r)||(r=[])),i=i.map((function(e){return String(e)})),r=r.map((function(e){return String(e)})),n=n.map((function(e){return String(e)})),o=o.map((function(e){return String(e)}));var c=n.some((function(e){return-1===i.indexOf(e)})),g=o.some((function(e){return-1===r.indexOf(e)}));if(!c&&!g)return!1}catch(e){console&&console.log&&console.log("PN auto-segment localStorage parse error",e)}if(!t&&null!=function(e){for(var t=null,n=e+"=",o=document.cookie.split(";"),i=0;i<o.length;i++){for(var r=o[i];" "==r.charAt(0);)r=r.substring(1,r.length);0==r.indexOf(n)&&(t=r.substring(n.length,r.length))}return null===t&&localStorage.getItem(e)&&localStorage.getItem(e+"_expiry")>Date.now()&&(t=localStorage.getItem(e)),t}("pn_notification_block"))return!1;if(window.history.length<pnScriptSetting.popup_show_afternpageview)return!1;pnScriptSetting.popup_show_afternseconds&&parseInt(pnScriptSetting.popup_show_afternseconds);var p=document.getElementsByClassName("pn-wrapper");setTimeout((function(){p&&p[0]&&(p[0].style.display="flex")}),pnScriptSetting.popup_show_afternseconds);document.getElementById("pn-activate-permission_link_nothanks").addEventListener("click",(function(){var e=new Date;e.setDate(e.getDate()+parseInt(pnScriptSetting.notification_popup_show_again)),document.cookie="pn_notification_block=true;expires="+e.toUTCString()+";path="+pnScriptSetting.cookie_scope,localStorage.setItem("pn_notification_block",!0),localStorage.setItem("pn_notification_block_expiry",e.getTime());var t=document.getElementsByClassName("pn-wrapper");t&&(t[0].style.display="none")})),document.getElementById("pn-activate-permission_link").addEventListener("click",(function(){var e=document.getElementsByClassName("pn-wrapper");e&&(e[0].style.display="none"),messaging.requestPermission().then((function(){console.log("Notification permission granted.");var e=new Date;e.setDate(e.getDate()+parseInt(pnScriptSetting.notification_popup_show_again)),document.cookie="pn_notification_block=true;expires="+e.toUTCString()+";path="+pnScriptSetting.cookie_scope,document.cookie="notification_permission=granted;expires="+e.toUTCString()+";path="+pnScriptSetting.cookie_scope,localStorage.setItem("pn_notification_block",!0),localStorage.setItem("pn_notification_block_expiry",e.getTime()),localStorage.getItem("notification_permission","granted");try{if(pnScriptSetting.auto_segment_enabled){var t=pnScriptSetting.auto_authors||[],n=pnScriptSetting.auto_categories||[],o=[],i=[],r=window.localStorage.getItem("pn_subscribed_authors");r&&(o=JSON.parse(r),Array.isArray(o)||(o=[]));var a=window.localStorage.getItem("pn_subscribed_cats");a&&(i=JSON.parse(a),Array.isArray(i)||(i=[]));var s={};o.concat(t).forEach((function(e){s[String(e)]=!0}));var c={};i.concat(n).forEach((function(e){c[String(e)]=!0}));var g=Object.keys(s),p=Object.keys(c);window.localStorage.setItem("pn_subscribed_authors",JSON.stringify(g)),window.localStorage.setItem("pn_subscribed_cats",JSON.stringify(p))}}catch(e){console&&console.log&&console.log("PN auto-segment localStorage write error",e)}push_notification_isTokenSentToServer()?pnScriptSetting.auto_segment_enabled?messaging.getToken().then((function(e){e&&push_notification_saveToken(e)})).catch((function(e){console.log("PN getToken error",e)})):console.log("Token already saved"):push_notification_getRegToken()})).catch((function(e){if(Notification&&"denied"==Notification.permission){console.log("Notification permission denied.");var t=new Date;t.setDate(t.getDate()+pnScriptSetting.notification_popup_show_again),document.cookie="pn_notification_block=true;expires="+t+";path="+pnScriptSetting.cookie_scope,localStorage.setItem("pn_notification_block",!0),localStorage.setItem("pn_notification_block_expiry",t.getTime())}else console.log("Unable to get permission to notify.",e)}))}
262)),messaging.onMessage((function(e){console.log("Message received (foreground). ",e);let t=e.data.title,n={body:e.data.body,icon:e.data.icon,image:e.data.image,vibrate:[100,50,100],tag:"pn-"+(e.data.currentCampaign||Date.now()),data:{dateOfArrival:Date.now(),primarykey:e.data.currentCampaign,currentCampaign:e.data.currentCampaign,url:e.data.url||e.data.click_url}};pnServiceWorkerRegistration?pnServiceWorkerRegistration.showNotification(t,n).then((function(){console.log("PN Success (foreground): Notification shown via service worker")})).catch((function(e){console.error("PN Error (foreground): Failed to show notification via service worker",e),navigator.serviceWorker.ready.then((function(e){return e.showNotification(t,n)})).catch((function(e){console.error("PN Error (foreground): Fallback also failed",e)}))})):navigator.serviceWorker.ready.then((function(e){return e.showNotification(t,n)})).then((function(){console.log("PN Success (foreground): Notification shown via service worker (fallback)")})).catch((function(e){console.error("PN Error (foreground): Failed to show notification",e)}))})),navigator.clearAppBadge?navigator.clearAppBadge():navigator.clearExperimentalAppBadge?navigator.clearExperimentalAppBadge():window.ExperimentalBadge&&window.ExperimentalBadge.clear()}function push_notification_getRegToken(e){messaging.getToken().then((function(e){e?(push_notification_saveToken(e),console.log(e),push_notification_setTokenSentToServer(!0)):(console.log("No Instance ID token available. Request permission to generate one."),push_notification_setTokenSentToServer(!1))})).catch((function(e){console.log("An error occurred while retrieving token. ",e),push_notification_setTokenSentToServer(!1)}))}function push_notification_setTokenSentToServer(e){window.localStorage.setItem("sentToServer",e?"1":"0")}function push_notification_isTokenSentToServer(){return"1"===window.localStorage.getItem("sentToServer")}function sendTokenToServer(e){push_notification_isTokenSentToServer()?console.log("Token already sent to server so won't send it again unless it changes"):(console.log("Sending token to server..."),push_notification_saveToken(e))}function pn_get_checket_cats(e,t){e.checked&&pn_cat_value.push(e.checked)}function push_notification_saveToken(e){var t=new XMLHttpRequest;t.onreadystatechange=function(){4==this.readyState&&200==this.status&&(200==this.responseText.status&&push_notification_setTokenSentToServer(!0),console.log(this.responseText))};var n=pnScriptSetting.auto_segment_enabled||!1,o=[],i=[];if(console.log("Auto-segment enabled:",n),console.log("Auto categories:",pnScriptSetting.auto_categories),console.log("Auto authors:",pnScriptSetting.auto_authors),n){try{var r=window.localStorage.getItem("pn_subscribed_authors"),a=window.localStorage.getItem("pn_subscribed_cats");if(r){var s=JSON.parse(r);i=Array.isArray(s)?s:[]}if(a){var c=JSON.parse(a);o=Array.isArray(c)?c:[]}0===o.length&&(pnScriptSetting.auto_categories||[]).length&&(o=pnScriptSetting.auto_categories||[]),0===i.length&&(pnScriptSetting.auto_authors||[]).length&&(i=pnScriptSetting.auto_authors||[])}catch(e){o=pnScriptSetting.auto_categories||[],i=pnScriptSetting.auto_authors||[]}console.log("Using auto data - categories:",o,"authors:",i)}else{const e=document.querySelectorAll("#pn-categories-checkboxes input:checked");for(var g=0;g<=e.length-1;g++)o.push(e[g].value);const t=document.querySelectorAll("#pn-author-checkboxes input:checked");for(g=0;g<=t.length-1;g++)i.push(t[g].value);console.log("Using manual selection - categories:",o,"authors:",i)}var p=[...i].join(","),l=[...o].join(",");console.log("Final category string:",l),console.log("Final author string:",p);var u=pushnotificationFCMGetOS(),d=pushnotificationFCMbrowserclientDetector(),S=window.location.href;t.open("POST",pnScriptSetting.ajax_url,!0),t.setRequestHeader("Content-type","application/x-www-form-urlencoded"),t.send("token_id="+e+"&category="+l+"&author="+p+"&user_agent="+d+"&os="+u+"&nonce="+pnScriptSetting.nonce+"&action=pn_register_subscribers&url="+S)}var pushnotificationFCMbrowserclientDetector=function(){var e=!!window.opr&&!!opr.addons||!!window.opera||navigator.userAgent.indexOf(" OPR/")>=0,t="undefined"!=typeof InstallTrigger,n=/constructor/i.test(window.HTMLElement)||(!window.safari||"undefined"!=typeof safari&&safari.pushNotification).toString(),o=!!document.documentMode,i=!o&&!!window.StyleMedia,r=!(!window.chrome||!window.chrome.webstore&&!window.chrome.runtime),a=(r||e)&&!!window.CSS;if(navigator.userAgent.match("CriOS"))return"Chrome ios";n=!!navigator.userAgent.match(/Version\/[\d\.]+.*Safari/);var s=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream;
262return n&&s?"Safari ios":n?"Safari":t?"Firefox":r?"Chrome":e?"Opera":o?"IE":i?"Edge":a?"Blink":void 0},pushnotificationFCMGetOS=function(){var e=window.navigator.userAgent,t=window.navigator.platform,n=null;return-1!==["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(t)?n="Mac OS":-1!==["iPhone","iPad","iPod"].indexOf(t)?n="iOS":-1!==["Win32","Win64","Windows","WinCE"].indexOf(t)?n="Windows":/Android/.test(e)?n="Android":!n&&/Linux/.test(t)&&(n="Linux"),n};"0"==pnScriptSetting.pn_token_exists&&setTimeout((function(){messaging.getToken().then((function(e){e?(push_notification_saveToken(e),console.log(e),push_notification_setTokenSentToServer(!0)):(console.log("No Instance ID token available. Request permission to generate one."),push_notification_setTokenSentToServer(!1))})).catch((function(e){console.log("An error occurred while retrieving token. ",e),push_notification_setTokenSentToServer(!1)}))}),2e3); 263 264 265 266} 267catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://labadibeachhotelgh.com/wp-content/plugins/push-notification/assets/public/app.min.js\n- Error message: "+ e.message);} 268 269 270 var wcBlocksMiddlewareConfig = { 271 storeApiNonce: '048b8c78f0', 272 wcStoreApiNonceTimestamp: '1790786511' 273 }; 274
vendor: 18,994 bytes, lines 275-278
275/* 276 Copyright (C) Federico Zivolo 2017 277 Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT). 278 */(function(e,t){'object'==typeof exports&&'undefined'!=typeof module?module.exports=t():'function'==typeof define&&define.amd?define(t):e.Popper=t()})(this,function(){'use strict';function e(e){return e&&'[object Function]'==={}.toString.call(e)}function t(e,t){if(1!==e.nodeType)return[];var o=window.getComputedStyle(e,null);return t?o[t]:o}function o(e){return'HTML'===e.nodeName?e:e.parentNode||e.host}function n(e){if(!e||-1!==['HTML','BODY','#document'].indexOf(e.nodeName))return window.document.body;var i=t(e),r=i.overflow,p=i.overflowX,s=i.overflowY;return /(auto|scroll)/.test(r+s+p)?e:n(o(e))}function r(e){var o=e&&e.offsetParent,i=o&&o.nodeName;return i&&'BODY'!==i&&'HTML'!==i?-1!==['TD','TABLE'].indexOf(o.nodeName)&&'static'===t(o,'position')?r(o):o:window.document.documentElement}function p(e){var t=e.nodeName;return'BODY'!==t&&('HTML'===t||r(e.firstElementChild)===e)}function s(e){return null===e.parentNode?e:s(e.parentNode)}function d(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return window.document.documentElement;var o=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=o?e:t,n=o?t:e,a=document.createRange();a.setStart(i,0),a.setEnd(n,0);var f=a.commonAncestorContainer;if(e!==f&&t!==f||i.contains(n))return p(f)?f:r(f);var l=s(e);return l.host?d(l.host,t):d(e,s(t).host)}function a(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:'top',o='top'===t?'scrollTop':'scrollLeft',i=e.nodeName;if('BODY'===i||'HTML'===i){var n=window.document.documentElement,r=window.document.scrollingElement||n;return r[o]}return e[o]}function f(e,t){var o=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=a(t,'top'),n=a(t,'left'),r=o?-1:1;return e.top+=i*r,e.bottom+=i*r,e.left+=n*r,e.right+=n*r,e}function l(e,t){var o='x'===t?'Left':'Top',i='Left'==o?'Right':'Bottom';return+e['border'+o+'Width'].split('px')[0]+ +e['border'+i+'Width'].split('px')[0]}function m(e,t,o,i){return _(t['offset'+e],o['client'+e],o['offset'+e],ie()?o['offset'+e]+i['margin'+('Height'===e?'Top':'Left')]+i['margin'+('Height'===e?'Bottom':'Right')]:0)}function h(){var e=window.document.body,t=window.document.documentElement,o=ie()&&window.getComputedStyle(t);return{height:m('Height',e,t,o),width:m('Width',e,t,o)}}function c(e){return se({},e,{right:e.left+e.width,bottom:e.top+e.height})}function g(e){var o={};if(ie())try{o=e.getBoundingClientRect();var i=a(e,'top'),n=a(e,'left');o.top+=i,o.left+=n,o.bottom+=i,o.right+=n}catch(e){}else o=e.getBoundingClientRect();var r={left:o.left,top:o.top,width:o.right-o.left,height:o.bottom-o.top},p='HTML'===e.nodeName?h():{},s=p.width||e.clientWidth||r.right-r.left,d=p.height||e.clientHeight||r.bottom-r.top,f=e.offsetWidth-s,m=e.offsetHeight-d;if(f||m){var g=t(e);f-=l(g,'x'),m-=l(g,'y'),r.width-=f,r.height-=m}return c(r)}function u(e,o){var i=ie(),r='HTML'===o.nodeName,p=g(e),s=g(o),d=n(e),a=t(o),l=+a.borderTopWidth.split('px')[0],m=+a.borderLeftWidth.split('px')[0],h=c({top:p.top-s.top-l,left:p.left-s.left-m,width:p.width,height:p.height});if(h.marginTop=0,h.marginLeft=0,!i&&r){var u=+a.marginTop.split('px')[0],b=+a.marginLeft.split('px')[0];h.top-=l-u,h.bottom-=l-u,h.left-=m-b,h.right-=m-b,h.marginTop=u,h.marginLeft=b}return(i?o.contains(d):o===d&&'BODY'!==d.nodeName)&&(h=f(h,o)),h}function b(e){var t=window.document.documentElement,o=u(e,t),i=_(t.clientWidth,window.innerWidth||0),n=_(t.clientHeight,window.innerHeight||0),r=a(t),p=a(t,'left'),s={top:r-o.top+o.marginTop,left:p-o.left+o.marginLeft,width:i,height:n};return c(s)}function y(e){var i=e.nodeName;return'BODY'===i||'HTML'===i?!1:'fixed'===t(e,'position')||y(o(e))}function w(e,t,i,r){var p={top:0,left:0},s=d(e,t);if('viewport'===r)p=b(s);else{var a;'scrollParent'===r?(a=n(o(e)),'BODY'===a.nodeName&&(a=window.document.documentElement)):'window'===r?a=window.document.documentElement:a=r;var f=u(a,s);if('HTML'===a.nodeName&&!y(s)){var l=h(),m=l.height,c=l.width;p.top+=f.top-f.marginTop,p.bottom=m+f.top,p.left+=f.left-f.marginLeft,p.right=c+f.left}else p=f}return p.left+=i,p.top+=i,p.right-=i,p.bottom-=i,p}function v(e){var t=e.width,o=e.height;return t*o}function E(e,t,o,i,n){var r=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf('auto'))return e;var p=w(o,i,r,n),s={top:{width:p.width,height:t.top-p.top},right:{width:p.right-t.right,height:p.height},bottom:{width:p.width,height:p.bottom-t.bottom},left:{width:t.left-p.left,height:p.height}},d=Object.keys(s).map(function(e){return se({key:e},s[e],{area:v(s[e])})}).sort(function(e,t){return t.area-e.area}),a=d.filter(function(e){var t=e.width,i=e.height;return t>=o.clientWidth&&i>=o.clientHeight}),f=0<a.length?a[0].key:d[0].key,l=e.split('-')[1];return f+(l?'-'+l:'')}function x(e,t,o){var i=d(t,o);return u(o,i)}function O(e){var t=window.getComputedStyle(e),o=parseFloat(t.marginTop)+parseFloat(t.marginBottom),i=parseFloat(t.marginLeft)+parseFloat(t.marginRight),n={width:e.offsetWidth+i,height:e.offsetHeight+o};return n}function L(e){var t={left:'right',right:'left',bottom:'top',top:'bottom'};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function S(e,t,o){o=o.split('-')[0];var i=O(e),n={width:i.width,height:i.height},r=-1!==['right','left'].indexOf(o),p=r?'top':'left',s=r?'left':'top',d=r?'height':'width',a=r?'width':'height';return n[p]=t[p]+t[d]/2-i[d]/2,n[s]=o===s?t[s]-i[a]:t[L(s)],n}function T(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function C(e,t,o){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===o});var i=T(e,function(e){return e[t]===o});return e.indexOf(i)}function N(t,o,i){var n=void 0===i?t:t.slice(0,C(t,'name',i));return n.forEach(function(t){t.function&&console.warn('`modifier.function` is deprecated, use `modifier.fn`!');var i=t.function||t.fn;t.enabled&&e(i)&&(o.offsets.popper=c(o.offsets.popper),o.offsets.reference=c(o.offsets.reference),o=i(o,t))}),o}function k(){if(!this.state.isDestroyed){var e={instance:this,styles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=x(this.state,this.popper,this.reference),e.placement=E(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.offsets.popper=S(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position='absolute',e=N(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function W(e,t){return e.some(function(e){var o=e.name,i=e.enabled;return i&&o===t})}function B(e){for(var t=[!1,'ms','Webkit','Moz','O'],o=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<t.length-1;n++){var i=t[n],r=i?''+i+o:e;if('undefined'!=typeof window.document.body.style[r])return r}return null}function D(){return this.state.isDestroyed=!0,W(this.modifiers,'applyStyle')&&(this.popper.removeAttribute('x-placement'),this.popper.style.left='',this.popper.style.position='',this.popper.style.top='',this.popper.style[B('transform')]=''),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function H(e,t,o,i){var r='BODY'===e.nodeName,p=r?window:e;p.addEventListener(t,o,{passive:!0}),r||H(n(p.parentNode),t,o,i),i.push(p)}function P(e,t,o,i){o.updateBound=i,window.addEventListener('resize',o.updateBound,{passive:!0});var r=n(e);return H(r,'scroll',o.updateBound,o.scrollParents),o.scrollElement=r,o.eventsEnabled=!0,o}function A(){this.state.eventsEnabled||(this.state=P(this.reference,this.options,this.state,this.scheduleUpdate))}function M(e,t){return window.removeEventListener('resize',t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener('scroll',t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function I(){this.state.eventsEnabled&&(window.cancelAnimationFrame(this.scheduleUpdate),this.state=M(this.reference,this.state))}function R(e){return''!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function U(e,t){Object.keys(t).forEach(function(o){var i='';-1!==['width','height','top','right','bottom','left'].indexOf(o)&&R(t[o])&&(i='px'),e.style[o]=t[o]+i})}function Y(e,t){Object.keys(t).forEach(function(o){var i=t[o];!1===i?e.removeAttribute(o):e.setAttribute(o,t[o])})}function F(e,t,o){var i=T(e,function(e){var o=e.name;return o===t}),n=!!i&&e.some(function(e){return e.name===o&&e.enabled&&e.order<i.order});if(!n){var r='`'+t+'`';console.warn('`'+o+'`'+' modifier is required by '+r+' modifier in order to work, be sure to include it before '+r+'!')}return n}function j(e){return'end'===e?'start':'start'===e?'end':e}function K(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],o=ae.indexOf(e),i=ae.slice(o+1).concat(ae.slice(0,o));return t?i.reverse():i}function q(e,t,o,i){var n=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+n[1],p=n[2];if(!r)return e;if(0===p.indexOf('%')){var s;switch(p){case'%p':s=o;break;case'%':case'%r':default:s=i;}var d=c(s);return d[t]/100*r}if('vh'===p||'vw'===p){var a;return a='vh'===p?_(document.documentElement.clientHeight,window.innerHeight||0):_(document.documentElement.clientWidth,window.innerWidth||0),a/100*r}return r}function G(e,t,o,i){var n=[0,0],r=-1!==['right','left'].indexOf(i),p=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=p.indexOf(T(p,function(e){return-1!==e.search(/,|\s/)}));p[s]&&-1===p[s].indexOf(',')&&console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.');var d=/\s*,\s*|\s+/,a=-1===s?[p]:[p.slice(0,s).concat([p[s].split(d)[0]]),[p[s].split(d)[1]].concat(p.slice(s+1))];return a=a.map(function(e,i){var n=(1===i?!r:r)?'height':'width',p=!1;return e.reduce(function(e,t){return''===e[e.length-1]&&-1!==['+','-'].indexOf(t)?(e[e.length-1]=t,p=!0,e):p?(e[e.length-1]+=t,p=!1,e):e.concat(t)},[]).map(function(e){return q(e,n,t,o)})}),a.forEach(function(e,t){e.forEach(function(o,i){R(o)&&(n[t]+=o*('-'===e[i-1]?-1:1))})}),n}for(var z=Math.min,V=Math.floor,_=Math.max,X=['native code','[object MutationObserverConstructor]'],Q=function(e){return X.some(function(t){return-1<(e||'').toString().indexOf(t)})},J='undefined'!=typeof window,Z=['Edge','Trident','Firefox'],$=0,ee=0;ee<Z.length;ee+=1)if(J&&0<=navigator.userAgent.indexOf(Z[ee])){$=1;break}var i,te=J&&Q(window.MutationObserver),oe=te?function(e){var t=!1,o=0,i=document.createElement('span'),n=new MutationObserver(function(){e(),t=!1});return n.observe(i,{attributes:!0}),function(){t||(t=!0,i.setAttribute('x-index',o),++o)}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},$))}},ie=function(){return void 0==i&&(i=-1!==navigator.appVersion.indexOf('MSIE 10')),i},ne=function(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')},re=function(){function e(e,t){for(var o,n=0;n<t.length;n++)o=t[n],o.enumerable=o.enumerable||!1,o.configurable=!0,'value'in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),pe=function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},se=Object.assign||function(e){for(var t,o=1;o<arguments.length;o++)for(var i in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},de=['auto-start','auto','auto-end','top-start','top','top-end','right-start','right','right-end','bottom-end','bottom','bottom-start','left-end','left','left-start'],ae=de.slice(3),fe={FLIP:'flip',CLOCKWISE:'clockwise',COUNTERCLOCKWISE:'counterclockwise'},le=function(){function t(o,i){var n=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};ne(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=oe(this.update.bind(this)),this.options=se({},t.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=o.jquery?o[0]:o,this.popper=i.jquery?i[0]:i,this.options.modifiers={},Object.keys(se({},t.Defaults.modifiers,r.modifiers)).forEach(function(e){n.options.modifiers[e]=se({},t.Defaults.modifiers[e]||{},r.modifiers?r.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return se({name:e},n.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(t){t.enabled&&e(t.onLoad)&&t.onLoad(n.reference,n.popper,n.options,t,n.state)}),this.update();var p=this.options.eventsEnabled;p&&this.enableEventListeners(),this.state.eventsEnabled=p}return re(t,[{key:'update',value:function(){return k.call(this)}},{key:'destroy',value:function(){return D.call(this)}},{key:'enableEventListeners',value:function(){return A.call(this)}},{key:'disableEventListeners',value:function(){return I.call(this)}}]),t}();return le.Utils=('undefined'==typeof window?global:window).PopperUtils,le.placements=de,le.Defaults={placement:'bottom',eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,o=t.split('-')[0],i=t.split('-')[1];if(i){var n=e.offsets,r=n.reference,p=n.popper,s=-1!==['bottom','top'].indexOf(o),d=s?'left':'top',a=s?'width':'height',f={start:pe({},d,r[d]),end:pe({},d,r[d]+r[a]-p[a])};e.offsets.popper=se({},p,f[i])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var o,i=t.offset,n=e.placement,r=e.offsets,p=r.popper,s=r.reference,d=n.split('-')[0];return o=R(+i)?[+i,0]:G(i,p,s,d),'left'===d?(p.top+=o[0],p.left-=o[1]):'right'===d?(p.top+=o[0],p.left+=o[1]):'top'===d?(p.left+=o[0],p.top-=o[1]):'bottom'===d&&(p.left+=o[0],p.top+=o[1]),e.popper=p,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var o=t.boundariesElement||r(e.instance.popper);e.instance.reference===o&&(o=r(o));var i=w(e.instance.popper,e.instance.reference,t.padding,o);t.boundaries=i;var n=t.priority,p=e.offsets.popper,s={primary:function(e){var o=p[e];return p[e]<i[e]&&!t.escapeWithReference&&(o=_(p[e],i[e])),pe({},e,o)},secondary:function(e){var o='right'===e?'left':'top',n=p[o];return p[e]>i[e]&&!t.escapeWithReference&&(n=z(p[o],i[e]-('right'===e?p.width:p.height))),pe({},o,n)}};return n.forEach(function(e){var t=-1===['left','top'].indexOf(e)?'secondary':'primary';p=se({},p,s[t](e))}),e.offsets.popper=p,e},priority:['left','right','top','bottom'],padding:5,boundariesElement:'scrollParent'},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,o=t.popper,i=t.reference,n=e.placement.split('-')[0],r=V,p=-1!==['top','bottom'].indexOf(n),s=p?'right':'bottom',d=p?'left':'top',a=p?'width':'height';return o[s]<r(i[d])&&(e.offsets.popper[d]=r(i[d])-o[a]),o[d]>r(i[s])&&(e.offsets.popper[d]=r(i[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){if(!F(e.instance.modifiers,'arrow','keepTogether'))return e;var o=t.element;if('string'==typeof o){if(o=e.instance.popper.querySelector(o),!o)return e;}else if(!e.instance.popper.contains(o))return console.warn('WARNING: `arrow.element` must be child of its popper element!'),e;var i=e.placement.split('-')[0],n=e.offsets,r=n.popper,p=n.reference,s=-1!==['left','right'].indexOf(i),d=s?'height':'width',a=s?'top':'left',f=s?'left':'top',l=s?'bottom':'right',m=O(o)[d];p[l]-m<r[a]&&(e.offsets.popper[a]-=r[a]-(p[l]-m)),p[a]+m>r[l]&&(e.offsets.popper[a]+=p[a]+m-r[l]);var h=p[a]+p[d]/2-m/2,g=h-c(e.offsets.popper)[a];return g=_(z(r[d]-m,g),0),e.arrowElement=o,e.offsets.arrow={},e.offsets.arrow[a]=Math.round(g),e.offsets.arrow[f]='',e},element:'[x-arrow]'},flip:{order:600,enabled:!0,fn:function(e,t){if(W(e.instance.modifiers,'inner'))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var o=w(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement),i=e.placement.split('-')[0],n=L(i),r=e.placement.split('-')[1]||'',p=[];switch(t.behavior){case fe.FLIP:p=[i,n];break;case fe.CLOCKWISE:p=K(i);break;case fe.COUNTERCLOCKWISE:p=K(i,!0);break;default:p=t.behavior;}return p.forEach(function(s,d){if(i!==s||p.length===d+1)return e;i=e.placement.split('-')[0],n=L(i);var a=e.offsets.popper,f=e.offsets.reference,l=V,m='left'===i&&l(a.right)>l(f.left)||'right'===i&&l(a.left)<l(f.right)||'top'===i&&l(a.bottom)>l(f.top)||'bottom'===i&&l(a.top)<l(f.bottom),h=l(a.left)<l(o.left),c=l(a.right)>l(o.right),g=l(a.top)<l(o.top),u=l(a.bottom)>l(o.bottom),b='left'===i&&h||'right'===i&&c||'top'===i&&g||'bottom'===i&&u,y=-1!==['top','bottom'].indexOf(i),w=!!t.flipVariations&&(y&&'start'===r&&h||y&&'end'===r&&c||!y&&'start'===r&&g||!y&&'end'===r&&u);(m||b||w)&&(e.flipped=!0,(m||b)&&(i=p[d+1]),w&&(r=j(r)),e.placement=i+(r?'-'+r:''),e.offsets.popper=se({},e.offsets.popper,S(e.instance.popper,e.offsets.reference,e.placement)),e=N(e.instance.modifiers,e,'flip'))}),e},behavior:'flip',padding:5,boundariesElement:'viewport'},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,o=t.split('-')[0],i=e.offsets,n=i.popper,r=i.reference,p=-1!==['left','right'].indexOf(o),s=-1===['top','left'].indexOf(o);return n[p?'left':'top']=r[t]-(s?n[p?'width':'height']:0),e.placement=L(t),e.offsets.popper=c(n),e}},hide:{order:800,enabled:!0,fn:function(e){if(!F(e.instance.modifiers,'hide','preventOverflow'))return e;var t=e.offsets.reference,o=T(e.instance.modifiers,function(e){return'preventOverflow'===e.name}).boundaries;if(t.bottom<o.top||t.left>o.right||t.top>o.bottom||t.right<o.left){if(!0===e.hide)return e;e.hide=!0,e.attributes['x-out-of-boundaries']=''}else{if(!1===e.hide)return e;e.hide=!1,e.attributes['x-out-of-boundaries']=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var o=t.x,i=t.y,n=e.offsets.popper,p=T(e.instance.modifiers,function(e){return'applyStyle'===e.name}).gpuAcceleration;void 0!==p&&console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!');var s,d,a=void 0===p?t.gpuAcceleration:p,f=r(e.instance.popper),l=g(f),m={position:n.position},h={left:V(n.left),top:V(n.top),bottom:V(n.bottom),right:V(n.right)},c='bottom'===o?'top':'bottom',u='right'===i?'left':'right',b=B('transform');if(d='bottom'==c?-l.height+h.bottom:h.top,s='right'==u?-l.width+h.right:h.left,a&&b)m[b]='translate3d('+s+'px, '+d+'px, 0)',m[c]=0,m[u]=0,m.willChange='transform';else{var y='bottom'==c?-1:1,w='right'==u?-1:1;m[c]=d*y,m[u]=s*w,m.willChange=c+', '+u}var v={"x-placement":e.placement};return e.attributes=se({},v,e.attributes),e.styles=se({},m,e.styles),e},gpuAcceleration:!0,x:'bottom',y:'right'},applyStyle:{order:900,enabled:!0,fn:function(e){return U(e.instance.popper,e.styles),Y(e.instance.popper,e.attributes),e.offsets.arrow&&U(e.arrowElement,e.offsets.arrow),e},onLoad:function(e,t,o,i,n){var r=x(n,t,e),p=E(o.placement,r,t,e,o.modifiers.flip.boundariesElement,o.modifiers.flip.padding);return t.setAttribute('x-placement',p),U(t,{position:'absolute'}),o},gpuAcceleration:void 0}}},le});
279 280 281 282} 283catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://labadibeachhotelgh.com/w
vendor: 61,463 bytes, lines 283-1318
283p-content/plugins/ht-mega-for-elementor/assets/js/popper.min.js\n- Error message: "+ e.message);} 284 285 286 var wcBlocksMiddlewareConfig = { 287 storeApiNonce: '048b8c78f0', 288 wcStoreApiNonceTimestamp: '1790786511' 289 }; 290 291if ("undefined" == typeof jQuery) throw new Error("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript."); 292! function(t) { 293 var e = jQuery.fn.jquery.split(" ")[0].split("."); 294 if (e[0] < 2 && e[1] < 9 || 1 == e[0] && 9 == e[1] && e[2] < 1 || e[0] >= 4) throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0") 295}(), 296function() { 297 function t(t, e) { 298 if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 299 return !e || "object" != typeof e && "function" != typeof e ? t : e 300 } 301 302 function e(t, e) { 303 if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); 304 t.prototype = Object.create(e && e.prototype, { 305 constructor: { 306 value: t, 307 enumerable: !1, 308 writable: !0, 309 configurable: !0 310 } 311 }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) 312 } 313 314 function n(t, e) { 315 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 316 } 317 var i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 318 return typeof t 319 } : function(t) { 320 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 321 }, 322 o = function() { 323 function t(t, e) { 324 for (var n = 0; n < e.length; n++) { 325 var i = e[n]; 326 i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(t, i.key, i) 327 } 328 } 329 return function(e, n, i) { 330 return n && t(e.prototype, n), i && t(e, i), e 331 } 332 }(), 333 r = function(t) { 334 function e(t) { 335 return {}.toString.call(t).match(/\s([a-zA-Z]+)/)[1].toLowerCase() 336 } 337 338 function n(t) { 339 return (t[0] || t).nodeType 340 } 341 342 function i() { 343 return { 344 bindType: s.end, 345 delegateType: s.end, 346 handle: function(e) { 347 if (t(e.target).is(this)) return e.handleObj.handler.apply(this, arguments) 348 } 349 } 350 } 351 352 function o() { 353 if (window.QUnit) return !1; 354 var t = document.createElement("bootstrap"); 355 for (var e in a) 356 if (void 0 !== t.style[e]) return { 357 end: a[e] 358 }; 359 return !1 360 } 361 362 function r(e) { 363 var n = this, 364 i = !1; 365 return t(this).one(l.TRANSITION_END, function() { 366 i = !0 367 }), setTimeout(function() { 368 i || l.triggerTransitionEnd(n) 369 }, e), this 370 } 371 var s = !1, 372 a = { 373 WebkitTransition: "webkitTransitionEnd", 374 MozTransition: "transitionend", 375 OTransition: "oTransitionEnd otransitionend", 376 transition: "transitionend" 377 }, 378 l = { 379 TRANSITION_END: "bsTransitionEnd", 380 getUID: function(t) { 381 do { 382 t += ~~(1e6 * Math.random()) 383 } while (document.getElementById(t)); 384 return t 385 }, 386 getSelectorFromElement: function(e) { 387 var n = e.getAttribute("data-target"); 388 n && "#" !== n || (n = e.getAttribute("href") || ""); 389 try { 390 return t(n).length > 0 ? n : null 391 } catch (t) { 392 return null 393 } 394 }, 395 reflow: function(t) { 396 return t.offsetHeight 397 }, 398 triggerTransitionEnd: function(e) { 399 t(e).trigger(s.end) 400 }, 401 supportsTransitionEnd: function() { 402 return Boolean(s) 403 }, 404 typeCheckConfig: function(t, i, o) { 405 for (var r in o) 406 if (o.hasOwnProperty(r)) { 407 var s = o[r], 408 a = i[r], 409 l = a && n(a) ? "element" : e(a); 410 if (!new RegExp(s).test(l)) throw new Error(t.toUpperCase() + ': Option "' + r + '" provided type "' + l + '" but expected type "' + s + '".') 411 } 412 } 413 }; 414 return s = o(), t.fn.emulateTransitionEnd = r, l.supportsTransitionEnd() && (t.event.special[l.TRANSITION_END] = i()), l 415 }(jQuery), 416 s = (function(t) { 417 var e = "htb-alert", 418 i = t.fn[e], 419 s = { 420 DISMISS: '[data-dismiss="alert"]' 421 }, 422 a = { 423 CLOSE: "htb-close.htbbs.htb-alert", 424 CLOSED: "htb-closed.htbbs.htb-alert", 425 CLICK_DATA_API: "click.htbbs.htb-alert.data-api" 426 }, 427 l = { 428 ALERT: "htb-alert", 429 FADE: "htb-fade", 430 SHOW: "htb-show" 431 }, 432 h = function() { 433 function e(t) { 434 n(this, e), this._element = t 435 } 436 return e.prototype.close = function(t) { 437 t = t || this._element; 438 var e = this._getRootElement(t); 439 this._triggerCloseEvent(e).isDefaultPrevented() || this._removeElement(e) 440 }, e.prototype.dispose = function() { 441 t.removeData(this._element, "htbbs.htb-alert"), this._element = null 442 }, e.prototype._getRootElement = function(e) { 443 var n = r.getSelectorFromElement(e), 444 i = !1; 445 return n && (i = t(n)[0]), i || (i = t(e).closest("." + l.ALERT)[0]), i 446 }, e.prototype._triggerCloseEvent = function(e) { 447 var n = t.Event(a.CLOSE); 448 return t(e).trigger(n), n 449 }, e.prototype._removeElement = function(e) { 450 var n = this; 451 t(e).removeClass(l.SHOW), r.supportsTransitionEnd() && t(e).hasClass(l.FADE) ? t(e).one(r.TRANSITION_END, function(t) { 452 return n._destroyElement(e, t) 453 }).emulateTransitionEnd(150) : this._destroyElement(e) 454 }, e.prototype._destroyElement = function(e) { 455 t(e).detach().trigger(a.CLOSED).remove() 456 }, e._jQueryInterface = function(n) { 457 return this.each(function() { 458 var i = t(this), 459 o = i.data("htbbs.htb-alert"); 460 o || (o = new e(this), i.data("htbbs.htb-alert", o)), "htb-close" === n && o[n](this) 461 }) 462 }, e._handleDismiss = function(t) { 463 return function(e) { 464 e && e.preventDefault(), t.close(this) 465 } 466 }, o(e, null, [{ 467 key: "VERSION", 468 get: function() { 469 return "4.0.0-beta" 470 } 471 }]), e 472 }(); 473 t(document).on(a.CLICK_DATA_API, s.DISMISS, h._handleDismiss(new h)), t.fn[e] = h._jQueryInterface, t.fn[e].Constructor = h, t.fn[e].noConflict = function() { 474 return t.fn[e] = i, h._jQueryInterface 475 } 476 }(jQuery), function(t) { 477 var e = "htb-button", 478 i = t.fn[e], 479 r = { 480 ACTIVE: "htb-active", 481 BUTTON: "htb-btn", 482 FOCUS: "htb-focus" 483 }, 484 s = { 485 DATA_TOGGLE_CARROT: '[data-toggle^="button"]', 486 DATA_TOGGLE: '[data-toggle="buttons"]', 487 INPUT: "input", 488 ACTIVE: ".htb-active", 489 BUTTON: ".htb-btn" 490 }, 491 a = { 492 CLICK_DATA_API: "click.htbbs.htb-button.data-api", 493 FOCUS_BLUR_DATA_API: "htb-focus.htbbs.htb-button.data-api blur.htbbs.htb-button.data-api" 494 }, 495 l = function() { 496 function e(t) { 497 n(this, e), this._element = t 498 } 499 return e.prototype.toggle = function() { 500 var e = !0, 501 n = !0, 502 i = t(this._element).closest(s.DATA_TOGGLE)[0]; 503 if (i) { 504 var o = t(this._element).find(s.INPUT)[0]; 505 if (o) { 506 if ("radio" === o.type) 507 if (o.checked && t(this._element).hasClass(r.ACTIVE)) e = !1; 508 else { 509 var a = t(i).find(s.ACTIVE)[0]; 510 a && t(a).removeClass(r.ACTIVE) 511 } 512 if (e) { 513 if (o.hasAttribute("disabled") || i.hasAttribute("disabled") || o.classList.contains("disabled") || i.classList.contains("disabled")) return; 514 o.checked = !t(this._element).hasClass(r.ACTIVE), t(o).trigger("change") 515 } 516 o.focus(), n = !1 517 } 518 } 519 n && this._element.setAttribute("aria-pressed", !t(this._element).hasClass(r.ACTIVE)), e && t(this._element).toggleClass(r.ACTIVE) 520 }, e.prototype.dispose = function() { 521 t.removeData(this._element, "htbbs.htb-button"), this._element = null 522 }, e._jQueryInterface = function(n) { 523 return this.each(function() { 524 var i = t(this).data("htbbs.htb-button"); 525 i || (i = new e(this), t(this).data("htbbs.htb-button", i)), "toggle" === n && i[n]() 526 }) 527 }, o(e, null, [{ 528 key: "VERSION", 529 get: function() { 530 return "4.0.0-beta" 531 } 532 }]), e 533 }(); 534 t(document).on(a.CLICK_DATA_API, s.DATA_TOGGLE_CARROT, function(e) { 535 e.preventDefault(); 536 var n = e.target; 537 t(n).hasClass(r.BUTTON) || (n = t(n).closest(s.BUTTON)), l._jQueryInterface.call(t(n), "toggle") 538 }).on(a.FOCUS_BLUR_DATA_API, s.DATA_TOGGLE_CARROT, function(e) { 539 var n = t(e.target).closest(s.BUTTON)[0]; 540 t(n).toggleClass(r.FOCUS, /^focus(in)?$/.test(e.type)) 541 }), t.fn[e] = l._jQueryInterface, t.fn[e].Constructor = l, t.fn[e].noConflict = function() { 542 return t.fn[e] = i, l._jQueryInterface 543 } 544 }(jQuery), function(t) { 545 var e = "htb-collapse", 546 s = "htbbs.htb-collapse", 547 a = t.fn[e], 548 l = { 549 toggle: !0, 550 parent: "" 551 }, 552 h = { 553 toggle: "boolean", 554 parent: "string" 555 }, 556 c = { 557 SHOW: "show.htbbs.htb-collapse", 558 SHOWN: "shown.htbbs.htb-collapse", 559 HIDE: "hide.htbbs.htb-collapse", 560 HIDDEN: "hidden.htbbs.htb-collapse", 561 CLICK_DATA_API: "click.htbbs.htb-collapse.data-api" 562 }, 563 u = { 564 SHOW: "htb-show", 565 COLLAPSE: "htb-collapse", 566 COLLAPSING: "htb-collapsing", 567 COLLAPSED: "htb-collapsed" 568 }, 569 d = { 570 WIDTH: "width", 571 HEIGHT: "height" 572 }, 573 f = { 574 ACTIVES: ".htb-show, .htb-collapsing", 575 DATA_TOGGLE: '[data-toggle="htbcollapse"]' 576 }, 577 p = function() { 578 function a(e, i) { 579 n(this, a), this._isTransitioning = !1, this._element = e, this._config = this._getConfig(i), this._triggerArray = t.makeArray(t('[data-toggle="collapse"][href="#' + e.id + '"],[data-toggle="collapse"][data-target="#' + e.id + '"]')); 580 for (var o = t(f.DATA_TOGGLE), s = 0; s < o.length; s++) { 581 var l = o[s], 582 h = r.getSelectorFromElement(l); 583 null !== h && t(h).filter(e).length > 0 && this._triggerArray.push(l) 584 } 585 this._parent = this._config.parent ? this._getParent() : null, this._config.parent || this._addAriaAndCollapsedClass(this._element, this._triggerArray), this._config.toggle && this.toggle() 586 } 587 return a.prototype.toggle = function() { 588 t(this._element).hasClass(u.SHOW) ? this.hide() : this.show() 589 }, a.prototype.show = function() { 590 var e = this; 591 if (!this._isTransitioning && !t(this._element).hasClass(u.SHOW)) { 592 var n = void 0, 593 i = void 0; 594 if (this._parent && ((n = t.makeArray(t(this._parent).children().children(f.ACTIVES))).length || (n = null)), !(n && (i = t(n).data(s)) && i._isTransitioning)) { 595 var o = t.Event(c.SHOW); 596 if (t(this._element).trigger(o), !o.isDefaultPrevented()) { 597 n && (a._jQueryInterface.call(t(n), "hide"), i || t(n).data(s, null)); 598 var l = this._getDimension(); 599 t(this._element).removeClass(u.COLLAPSE).addClass(u.COLLAPSING), this._element.style[l] = 0, this._triggerArray.length && t(this._triggerArray).removeClass(u.COLLAPSED).attr("aria-expanded", !0), this.setTransitioning(!0); 600 var h = function() { 601 t(e._element).removeClass(u.COLLAPSING).addClass(u.COLLAPSE).addClass(u.SHOW), e._element.style[l] = "", e.setTransitioning(!1), t(e._element).trigger(c.SHOWN) 602 }; 603 if (r.supportsTransitionEnd()) { 604 var d = "scroll" + (l[0].toUpperCase() + l.slice(1)); 605 t(this._element).one(r.TRANSITION_END, h).emulateTransitionEnd(600), this._element.style[l] = this._element[d] + "px" 606 } else h() 607 } 608 } 609 } 610 }, a.prototype.hide = function() { 611 var e = this; 612 if (!this._isTransitioning && t(this._element).hasClass(u.SHOW)) { 613 var n = t.Event(c.HIDE); 614 if (t(this._element).trigger(n), !n.isDefaultPrevented()) { 615 var i = this._getDimension(); 616 if (this._element.style[i] = this._element.getBoundingClientRect()[i] + "px", r.reflow(this._element), t(this._element).addClass(u.COLLAPSING).removeClass(u.COLLAPSE).removeClass(u.SHOW), this._triggerArray.length) 617 for (var o = 0; o < this._triggerArray.length; o++) { 618 var s = this._triggerArray[o], 619 a = r.getSelectorFromElement(s); 620 null !== a && (t(a).hasClass(u.SHOW) || t(s).addClass(u.COLLAPSED).attr("aria-expanded", !1)) 621 } 622 this.setTransitioning(!0); 623 var l = function() { 624 e.setTransitioning(!1), t(e._element).removeClass(u.COLLAPSING).addClass(u.COLLAPSE).trigger(c.HIDDEN) 625 }; 626 this._element.style[i] = "", r.supportsTransitionEnd() ? t(this._element).one(r.TRANSITION_END, l).emulateTransitionEnd(600) : l() 627 } 628 } 629 }, a.prototype.setTransitioning = function(t) { 630 this._isTransitioning = t 631 }, a.prototype.dispose = function() { 632 t.removeData(this._element, s), this._config = null, this._parent = null, this._element = null, this._triggerArray = null, this._isTransitioning = null 633 }, a.prototype._getConfig = function(n) { 634 return n = t.extend({}, l, n), n.toggle = Boolean(n.toggle), r.typeCheckConfig(e, n, h), n 635 }, a.prototype._getDimension = function() { 636 return t(this._element).hasClass(d.WIDTH) ? d.WIDTH : d.HEIGHT 637 }, a.prototype._getParent = function() { 638 var e = this, 639 n = t(this._config.parent)[0], 640 i = '[data-toggle="collapse"][data-parent="' + this._config.parent + '"]'; 641 return t(n).find(i).each(function(t, n) { 642 e._addAriaAndCollapsedClass(a._getTargetFromElement(n), [n]) 643 }), n 644 }, a.prototype._addAriaAndCollapsedClass = function(e, n) { 645 if (e) { 646 var i = t(e).hasClass(u.SHOW); 647 n.length && t(n).toggleClass(u.COLLAPSED, !i).attr("aria-expanded", i) 648 } 649 }, a._getTargetFromElement = function(e) { 650 var n = r.getSelectorFromElement(e); 651 return n ? t(n)[0] : null 652 }, a._jQueryInterface = function(e) { 653 return this.each(function() { 654 var n = t(this), 655 o = n.data(s), 656 r = t.extend({}, l, n.data(), "object" === (void 0 === e ? "undefined" : i(e)) && e); 657 if (!o && r.toggle && /show|hide/.test(e) && (r.toggle = !1), o || (o = new a(this, r), n.data(s, o)), "string" == typeof e) { 658 if (void 0 === o[e]) throw new Error('No method named "' + e + '"'); 659 o[e]() 660 } 661 }) 662 }, o(a, null, [{ 663 key: "VERSION", 664 get: function() { 665 return "4.0.0-beta" 666 } 667 }, { 668 key: "Default", 669 get: function() { 670 return l 671 } 672 }]), a 673 }(); 674 t(document).on(c.CLICK_DATA_API, f.DATA_TOGGLE, function(e) { 675 /input|textarea/i.test(e.target.tagName) || e.preventDefault(); 676 var n = t(this), 677 i = r.getSelectorFromElement(this); 678 t(i).each(function() { 679 var e = t(this), 680 i = e.data(s) ? "toggle" : n.data(); 681 p._jQueryInterface.call(e, i) 682 }) 683 }), t.fn[e] = p._jQueryInterface, t.fn[e].Constructor = p, t.fn[e].noConflict = function() { 684 return t.fn[e] = a, p._jQueryInterface 685 } 686 }(jQuery), function(t) { 687 var e = "htb-modal", 688 s = ".htbbs.htb-modal", 689 a = t.fn[e], 690 l = { 691 backdrop: !0, 692 keyboard: !0, 693 focus: !0, 694 show: !0 695 }, 696 h = { 697 backdrop: "(boolean|string)", 698 keyboard: "boolean", 699 focus: "boolean", 700 show: "boolean" 701 }, 702 c = { 703 HIDE: "hide.htbbs.htb-modal", 704 HIDDEN: "hidden.htbbs.htb-modal", 705 SHOW: "show.htbbs.htb-modal", 706 SHOWN: "shown.htbbs.htb-modal", 707 FOCUSIN: "focusin.htbbs.htb-modal", 708 RESIZE: "resize.htbbs.htb-modal", 709 CLICK_DISMISS: "click.dismiss.htbbs.htb-modal", 710 KEYDOWN_DISMISS: "keydown.dismiss.htbbs.htb-modal", 711 MOUSEUP_DISMISS: "mouseup.dismiss.htbbs.htb-modal", 712 MOUSEDOWN_DISMISS: "mousedown.dismiss.htbbs.htb-modal", 713 CLICK_DATA_API: "click.htbbs.htb-modal.data-api" 714 }, 715 u = { 716 SCROLLBAR_MEASURER: "htb-modal-scrollbar-measure", 717 BACKDROP: "htb-modal-backdrop", 718 OPEN: "htb-modal-open", 719 FADE: "htb-fade", 720 SHOW: "htb-show" 721 }, 722 d = { 723 DIALOG: ".htb-modal-dialog", 724 DATA_TOGGLE: '[data-toggle="htbmodal"]', 725 DATA_DISMISS: '[data-dismiss="modal"]', 726 FIXED_CONTENT: ".htb-fixed-top, .htb-fixed-bottom, .htb-is-fixed, .htb-sticky-top", 727 NAVBAR_TOGGLER: ".htb-navbar-toggler" 728 }, 729 f = function() { 730 function a(e, i) { 731 n(this, a), this._config = this._getConfig(i), this._element = e, this._dialog = t(e).find(d.DIALOG)[0], this._backdrop = null, this._isShown = !1, this._isBodyOverflowing = !1, this._ignoreBackdropClick = !1, this._originalBodyPadding = 0, this._scrollbarWidth = 0 732 } 733 return a.prototype.toggle = function(t) { 734 return this._isShown ? this.hide() : this.show(t) 735 }, a.prototype.show = function(e) { 736 var n = this; 737 if (!this._isTransitioning) { 738 r.supportsTransitionEnd() && t(this._element).hasClass(u.FADE) && (this._isTransitioning = !0); 739 var i = t.Event(c.SHOW, { 740 relatedTarget: e 741 }); 742 t(this._element).trigger(i), this._isShown || i.isDefaultPrevented() || (this._isShown = !0, this._checkScrollbar(), this._setScrollbar(), t(document.body).addClass(u.OPEN), this._setEscapeEvent(), this._setResizeEvent(), t(this._element).on(c.CLICK_DISMISS, d.DATA_DISMISS, function(t) { 743 return n.hide(t) 744 }), t(this._dialog).on(c.MOUSEDOWN_DISMISS, function() { 745 t(n._element).one(c.MOUSEUP_DISMISS, function(e) { 746 t(e.target).is(n._element) && (n._ignoreBackdropClick = !0) 747 }) 748 }), this._showBackdrop(function() { 749 return n._showElement(e) 750 })) 751 } 752 }, a.prototype.hide = function(e) { 753 var n = this; 754 if (e && e.preventDefault(), !this._isTransitioning && this._isShown) { 755 var i = r.supportsTransitionEnd() && t(this._element).hasClass(u.FADE); 756 i && (this._isTransitioning = !0); 757 var o = t.Event(c.HIDE); 758 t(this._element).trigger(o), this._isShown && !o.isDefaultPrevented() && (this._isShown = !1, this._setEscapeEvent(), this._setResizeEvent(), t(document).off(c.FOCUSIN), t(this._element).removeClass(u.SHOW), t(this._element).off(c.CLICK_DISMISS), t(this._dialog).off(c.MOUSEDOWN_DISMISS), i ? t(this._element).one(r.TRANSITION_END, function(t) { 759 return n._hideModal(t) 760 }).emulateTransitionEnd(300) : this._hideModal()) 761 } 762 }, a.prototype.dispose = function() { 763 t.removeData(this._element, "htbbs.htb-modal"), t(window, document, this._element, this._backdrop).off(s), this._config = null, this._element = null, this._dialog = null, this._backdrop = null, this._isShown = null, this._isBodyOverflowing = null, this._ignoreBackdropClick = null, this._scrollbarWidth = null 764 }, a.prototype.handleUpdate = function() { 765 this._adjustDialog() 766 }, a.prototype._getConfig = function(n) { 767 return n = t.extend({}, l, n), r.typeCheckConfig(e, n, h), n 768 }, a.prototype._showElement = function(e) { 769 var n = this, 770 i = r.supportsTransitionEnd() && t(this._element).hasClass(u.FADE); 771 this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE || document.body.appendChild(this._element), this._element.style.display = "block", this._element.removeAttribute("aria-hidden"), this._element.scrollTop = 0, i && r.reflow(this._element), t(this._element).addClass(u.SHOW), this._config.focus && this._enforceFocus(); 772 var o = t.Event(c.SHOWN, { 773 relatedTarget: e 774 }), 775 s = function() { 776 n._config.focus && n._element.focus(), n._isTransitioning = !1, t(n._element).trigger(o) 777 }; 778 i ? t(this._dialog).one(r.TRANSITION_END, s).emulateTransitionEnd(300) : s() 779 }, a.prototype._enforceFocus = function() { 780 var e = this; 781 t(document).off(c.FOCUSIN).on(c.FOCUSIN, function(n) { 782 document === n.target || e._element === n.target || t(e._element).has(n.target).length || e._element.focus() 783 }) 784 }, a.prototype._setEscapeEvent = function() { 785 var e = this; 786 this._isShown && this._config.keyboard ? t(this._element).on(c.KEYDOWN_DISMISS, function(t) { 787 27 === t.which && (t.preventDefault(), e.hide()) 788 }) : this._isShown || t(this._element).off(c.KEYDOWN_DISMISS) 789 }, a.prototype._setResizeEvent = function() { 790 var e = this; 791 this._isShown ? t(window).on(c.RESIZE, function(t) { 792 return e.handleUpdate(t) 793 }) : t(window).off(c.RESIZE) 794 }, a.prototype._hideModal = function() { 795 var e = this; 796 this._element.style.display = "none", this._element.setAttribute("aria-hidden", !0), this._isTransitioning = !1, this._showBackdrop(function() { 797 t(document.body).removeClass(u.OPEN), e._resetAdjustments(), e._resetScrollbar(), t(e._element).trigger(c.HIDDEN) 798 }) 799 }, a.prototype._removeBackdrop = function() { 800 this._backdrop && (t(this._backdrop).remove(), this._backdrop = null) 801 }, a.prototype._showBackdrop = function(e) { 802 var n = this, 803 i = t(this._element).hasClass(u.FADE) ? u.FADE : ""; 804 if (this._isShown && this._config.backdrop) { 805 var o = r.supportsTransitionEnd() && i; 806 if (this._backdrop = document.createElement("div"), this._backdrop.className = u.BACKDROP, i && t(this._backdrop).addClass(i), t(this._backdrop).appendTo(document.body), t(this._element).on(c.CLICK_DISMISS, function(t) { 807 n._ignoreBackdropClick ? n._ignoreBackdropClick = !1 : t.target === t.currentTarget && ("static" === n._config.backdrop ? n._element.focus() : n.hide()) 808 }), o && r.reflow(this._backdrop), t(this._backdrop).addClass(u.SHOW), !e) return; 809 if (!o) return void e(); 810 t(this._backdrop).one(r.TRANSITION_END, e).emulateTransitionEnd(150) 811 } else if (!this._isShown && this._backdrop) { 812 t(this._backdrop).removeClass(u.SHOW); 813 var s = function() { 814 n._removeBackdrop(), e && e() 815 }; 816 r.supportsTransitionEnd() && t(this._element).hasClass(u.FADE) ? t(this._backdrop).one(r.TRANSITION_END, s).emulateTransitionEnd(150) : s() 817 } else e && e() 818 }, a.prototype._adjustDialog = function() { 819 var t = this._element.scrollHeight > document.documentElement.clientHeight; 820 !this._isBodyOverflowing && t && (this._element.style.paddingLeft = this._scrollbarWidth + "px"), this._isBodyOverflowing && !t && (this._element.style.paddingRight = this._scrollbarWidth + "px") 821 }, a.prototype._resetAdjustments = function() { 822 this._element.style.paddingLeft = "", this._element.style.paddingRight = "" 823 }, a.prototype._checkScrollbar = function() { 824 this._isBodyOverflowing = document.body.clientWidth < window.innerWidth, this._scrollbarWidth = this._getScrollbarWidth() 825 }, a.prototype._setScrollbar = function() { 826 var e = this; 827 if (this._isBodyOverflowing) { 828 t(d.FIXED_CONTENT).each(function(n, i) { 829 var o = t(i)[0].style.paddingRight, 830 r = t(i).css("padding-right"); 831 t(i).data("padding-right", o).css("padding-right", parseFloat(r) + e._scrollbarWidth + "px") 832 }), t(d.NAVBAR_TOGGLER).each(function(n, i) { 833 var o = t(i)[0].style.marginRight, 834 r = t(i).css("margin-right"); 835 t(i).data("margin-right", o).css("margin-right", parseFloat(r) + e._scrollbarWidth + "px") 836 }); 837 var n = document.body.style.paddingRight, 838 i = t("body").css("padding-right"); 839 t("body").data("padding-right", n).css("padding-right", parseFloat(i) + this._scrollbarWidth + "px") 840 } 841 }, a.prototype._resetScrollbar = function() { 842 t(d.FIXED_CONTENT).each(function(e, n) { 843 var i = t(n).data("padding-right"); 844 void 0 !== i && t(n).css("padding-right", i).removeData("padding-right") 845 }), t(d.NAVBAR_TOGGLER).each(function(e, n) { 846 var i = t(n).data("margin-right"); 847 void 0 !== i && t(n).css("margin-right", i).removeData("margin-right") 848 }); 849 var e = t("body").data("padding-right"); 850 void 0 !== e && t("body").css("padding-right", e).removeData("padding-right") 851 }, a.prototype._getScrollbarWidth = function() { 852 var t = document.createElement("div"); 853 t.className = u.SCROLLBAR_MEASURER, document.body.appendChild(t); 854 var e = t.getBoundingClientRect().width - t.clientWidth; 855 return document.body.removeChild(t), e 856 }, a._jQueryInterface = function(e, n) { 857 return this.each(function() { 858 var o = t(this).data("bs.modal"), 859 r = t.extend({}, a.Default, t(this).data(), "object" === (void 0 === e ? "undefined" : i(e)) && e); 860 if (o || (o = new a(this, r), t(this).data("bs.modal", o)), "string" == typeof e) { 861 if (void 0 === o[e]) throw new Error('No method named "' + e + '"'); 862 o[e](n) 863 } else r.show && o.show(n) 864 }) 865 }, o(a, null, [{ 866 key: "VERSION", 867 get: function() { 868 return "4.0.0-beta" 869 } 870 }, { 871 key: "Default", 872 get: function() { 873 return l 874 } 875 }]), a 876 }(); 877 t(document).on(c.CLICK_DATA_API, d.DATA_TOGGLE, function(e) { 878 var n = this, 879 i = void 0, 880 o = r.getSelectorFromElement(this); 881 o && (i = t(o)[0]); 882 var s = t(i).data("htbbs.htb-modal") ? "toggle" : t.extend({}, t(i).data(), t(this).data()); 883 "A" !== this.tagName && "AREA" !== this.tagName || e.preventDefault(); 884 var a = t(i).one(c.SHOW, function(e) { 885 e.isDefaultPrevented() || a.one(c.HIDDEN, function() { 886 t(n).is(":visible") && n.focus() 887 }) 888 }); 889 f._jQueryInterface.call(t(i), s, this) 890 }), t.fn[e] = f._jQueryInterface, t.fn[e].Constructor = f, t.fn[e].noConflict = function() { 891 return t.fn[e] = a, f._jQueryInterface 892 } 893 }(jQuery), function(t) { 894 var e = t.fn.tab, 895 i = { 896 HIDE: "hide.htbbs.htb-tab", 897 HIDDEN: "hidden.htbbs.htb-tab", 898 SHOW: "show.htbbs.htb-tab", 899 SHOWN: "shown.htbbs.htb-tab", 900 CLICK_DATA_API: "click.htbbs.htb-tab.data-api" 901 }, 902 s = { 903 DROPDOWN_MENU: "htb-dropdown-menu", 904 ACTIVE: "htb-active", 905 DISABLED: "disabled", 906 FADE: "htb-fade", 907 SHOW: "htb-show" 908 }, 909 a = { 910 DROPDOWN: ".htb-dropdown", 911 NAV_LIST_GROUP: ".htb-nav, .htb-list-group", 912 ACTIVE: ".htb-active", 913 DATA_TOGGLE: '[data-toggle="htbtab"]', 914 DROPDOWN_TOGGLE: ".htb-dropdown-toggle", 915 DROPDOWN_ACTIVE_CHILD: "> .htb-dropdown-menu .htb-active" 916 }, 917 l = function() { 918 function e(t) { 919 n(this, e), this._element = t 920 } 921 return e.prototype.show = function() { 922 var e = this; 923 if (!(this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && t(this._element).hasClass(s.ACTIVE) || t(this._element).hasClass(s.DISABLED))) { 924 var n = void 0, 925 o = void 0, 926 l = t(this._element).closest(a.NAV_LIST_GROUP)[0], 927 h = r.getSelectorFromElement(this._element); 928 l && (o = t.makeArray(t(l).find(a.ACTIVE)), o = o[o.length - 1]); 929 var c = t.Event(i.HIDE, { 930 relatedTarget: this._element 931 }), 932 u = t.Event(i.SHOW, { 933 relatedTarget: o 934 }); 935 if (o && t(o).trigger(c), t(this._element).trigger(u), !u.isDefaultPrevented() && !c.isDefaultPrevented()) { 936 h && (n = t(h)[0]), this._activate(this._element, l); 937 var d = function() { 938 var n = t.Event(i.HIDDEN, { 939 relatedTarget: e._element 940 }), 941 r = t.Event(i.SHOWN, { 942 relatedTarget: o 943 }); 944 t(o).trigger(n), t(e._element).trigger(r) 945 }; 946 n ? this._activate(n, n.parentNode, d) : d() 947 } 948 } 949 }, e.prototype.dispose = function() { 950 t.removeData(this._element, "bs.tab"), this._element = null 951 }, e.prototype._activate = function(e, n, i) { 952 var o = this, 953 l = t(n).find(a.ACTIVE)[0], 954 h = i && r.supportsTransitionEnd() && l && t(l).hasClass(s.FADE), 955 c = function() { 956 return o._transitionComplete(e, l, h, i) 957 }; 958 l && h ? t(l).one(r.TRANSITION_END, c).emulateTransitionEnd(150) : c(), l && t(l).removeClass(s.SHOW) 959 }, e.prototype._transitionComplete = function(e, n, i, o) { 960 if (n) { 961 t(n).removeClass(s.ACTIVE); 962 var l = t(n.parentNode).find(a.DROPDOWN_ACTIVE_CHILD)[0]; 963 l && t(l).removeClass(s.ACTIVE), n.setAttribute("aria-expanded", !1) 964 } 965 if (t(e).addClass(s.ACTIVE), e.setAttribute("aria-expanded", !0), i ? (r.reflow(e), t(e).addClass(s.SHOW)) : t(e).removeClass(s.FADE), e.parentNode && t(e.parentNode).hasClass(s.DROPDOWN_MENU)) { 966 var h = t(e).closest(a.DROPDOWN)[0]; 967 h && t(h).find(a.DROPDOWN_TOGGLE).addClass(s.ACTIVE), e.setAttribute("aria-expanded", !0) 968 } 969 o && o() 970 }, e._jQueryInterface = function(n) { 971 return this.each(function() { 972 var i = t(this), 973 o = i.data("htbbs.htb-tab"); 974 if (o || (o = new e(this), i.data("htbbs.htb-tab", o)), "string" == typeof n) { 975 if (void 0 === o[n]) throw new Error('No method named "' + n + '"'); 976 o[n]() 977 } 978 }) 979 }, o(e, null, [{ 980 key: "VERSION", 981 get: function() { 982 return "4.0.0-beta" 983 } 984 }]), e 985 }(); 986 t(document).on(i.CLICK_DATA_API, a.DATA_TOGGLE, function(e) { 987 e.preventDefault(), l._jQueryInterface.call(t(this), "show") 988 }), t.fn.tab = l._jQueryInterface, t.fn.tab.Constructor = l, t.fn.tab.noConflict = function() { 989 return t.fn.tab = e, l._jQueryInterface 990 } 991 }(jQuery), function(t) { 992 if ("undefined" == typeof Popper) throw new Error("Bootstrap tooltips require Popper.js (https://popper.js.org)"); 993 var e = "htbtooltip", 994 s = ".htbbs.htb-tooltip", 995 a = t.fn[e], 996 l = new RegExp("(^|\\s)bs-tooltip\\S+", "g"), 997 h = { 998 animation: "boolean", 999 template: "string", 1000 title: "(string|element|function)", 1001 trigger: "string", 1002 delay: "(number|object)", 1003 html: "boolean", 1004 selector: "(string|boolean)", 1005 placement: "(string|function)", 1006 offset: "(number|string)", 1007 container: "(string|element|boolean)", 1008 fallbackPlacement: "(string|array)" 1009 }, 1010 c = { 1011 AUTO: "auto", 1012 TOP: "top", 1013 RIGHT: "right", 1014 BOTTOM: "bottom", 1015 LEFT: "left" 1016 }, 1017 u = { 1018 animation: !0, 1019 template: '<div class="htb-tooltip" role="tooltip"><div class="htb-arrow"></div><div class="htb-tooltip-inner"></div></div>', 1020 trigger: "hover focus", 1021 title: "", 1022 delay: 0, 1023 html: !1, 1024 selector: !1, 1025 placement: "top", 1026 offset: 0, 1027 container: !1, 1028 fallbackPlacement: "flip" 1029 }, 1030 d = { 1031 SHOW: "show", 1032 OUT: "out" 1033 }, 1034 f = { 1035 HIDE: "hide" + s, 1036 HIDDEN: "hidden" + s, 1037 SHOW: "show" + s, 1038 SHOWN: "shown" + s, 1039 INSERTED: "inserted" + s, 1040 CLICK: "click" + s, 1041 FOCUSIN: "focusin" + s, 1042 FOCUSOUT: "focusout" + s, 1043 MOUSEENTER: "mouseenter" + s, 1044 MOUSELEAVE: "mouseleave" + s 1045 }, 1046 p = { 1047 FADE: "htb-fade", 1048 SHOW: "htb-show" 1049 }, 1050 _ = { 1051 TOOLTIP: ".htb-tooltip", 1052 TOOLTIP_INNER: ".htb-tooltip-inner", 1053 ARROW: ".htb-arrow" 1054 }, 1055 g = { 1056 HOVER: "hover", 1057 FOCUS: "focus", 1058 CLICK: "click", 1059 MANUAL: "manual" 1060 }, 1061 m = function() { 1062 function a(t, e) { 1063 n(this, a), this._isEnabled = !0, this._timeout = 0, this._hoverState = "", this._activeTrigger = {}, this._popper = null, this.element = t, this.config = this._getConfig(e), this.tip = null, this._setListeners() 1064 } 1065 return a.prototype.enable = function() { 1066 this._isEnabled = !0 1067 }, a.prototype.disable = function() { 1068 this._isEnabled = !1 1069 }, a.prototype.toggleEnabled = function() { 1070 this._isEnabled = !this._isEnabled 1071 }, a.prototype.toggle = function(e) { 1072 if (e) { 1073 var n = this.constructor.DATA_KEY, 1074 i = t(e.currentTarget).data(n); 1075 i || (i = new this.constructor(e.currentTarget, this._getDelegateConfig()), t(e.currentTarget).data(n, i)), i._activeTrigger.click = !i._activeTrigger.click, i._isWithActiveTrigger() ? i._enter(null, i) : i._leave(null, i) 1076 } else { 1077 if (t(this.getTipElement()).hasClass(p.SHOW)) return void this._leave(null, this); 1078 this._enter(null, this) 1079 } 1080 }, a.prototype.dispose = function() { 1081 clearTimeout(this._timeout), t.removeData(this.element, this.constructor.DATA_KEY), t(this.element).off(this.constructor.EVENT_KEY), t(this.element).closest(".htb-modal").off("hide.htbbs.htb-modal"), this.tip && t(this.tip).remove(), this._isEnabled = null, this._timeout = null, this._hoverState = null, this._activeTrigger = null, null !== this._popper && this._popper.destroy(), this._popper = null, this.element = null, this.config = null, this.tip = null 1082 }, a.prototype.show = function() { 1083 var e = this; 1084 if ("none" === t(this.element).css("display")) throw new Error("Please use show on visible elements"); 1085 var n = t.Event(this.constructor.Event.SHOW); 1086 if (this.isWithContent() && this._isEnabled) { 1087 t(this.element).trigger(n); 1088 var i = t.contains(this.element.ownerDocument.documentElement, this.element); 1089 if (n.isDefaultPrevented() || !i) return; 1090 var o = this.getTipElement(), 1091 s = r.getUID(this.constructor.NAME); 1092 o.setAttribute("id", s), this.element.setAttribute("aria-describedby", s), this.setContent(), this.config.animation && t(o).addClass(p.FADE); 1093 var l = "function" == typeof this.config.placement ? this.config.placement.call(this, o, this.element) : this.config.placement, 1094 h = this._getAttachment(l); 1095 this.addAttachmentClass(h); 1096 var c = !1 === this.config.container ? document.body : t(this.config.container); 1097 t(o).data(this.constructor.DATA_KEY, this), t.contains(this.element.ownerDocument.documentElement, this.tip) || t(o).appendTo(c), t(this.element).trigger(this.constructor.Event.INSERTED), this._popper = new Popper(this.element, o, { 1098 placement: h, 1099 modifiers: { 1100 offset: { 1101 offset: this.config.offset 1102 }, 1103 flip: { 1104 behavior: this.config.fallbackPlacement 1105 }, 1106 arrow: { 1107 element: _.ARROW 1108 } 1109 }, 1110 onCreate: function(t) { 1111 t.originalPlacement !== t.placement && e._handlePopperPlacementChange(t) 1112 }, 1113 onUpdate: function(t) { 1114 e._handlePopperPlacementChange(t) 1115 } 1116 }), t(o).addClass(p.SHOW), "ontouchstart" in document.documentElement && t("body").children().on("mouseover", null, t.noop); 1117 var u = function() { 1118 e.config.animation && e._fixTransition(); 1119 var n = e._hoverState; 1120 e._hoverState = null, t(e.element).trigger(e.constructor.Event.SHOWN), n === d.OUT && e._leave(null, e) 1121 }; 1122 r.supportsTransitionEnd() && t(this.tip).hasClass(p.FADE) ? t(this.tip).one(r.TRANSITION_END, u).emulateTransitionEnd(a._TRANSITION_DURATION) : u() 1123 } 1124 }, a.prototype.hide = function(e) { 1125 var n = this, 1126 i = this.getTipElement(), 1127 o = t.Event(this.constructor.Event.HIDE), 1128 s = function() { 1129 n._hoverState !== d.SHOW && i.parentNode && i.parentNode.removeChild(i), n._cleanTipClass(), n.element.removeAttribute("aria-describedby"), t(n.element).trigger(n.constructor.Event.HIDDEN), null !== n._popper && n._popper.destroy(), e && e() 1130 }; 1131 t(this.element).trigger(o), o.isDefaultPrevented() || (t(i).removeClass(p.SHOW), "ontouchstart" in document.documentElement && t("body").children().off("mouseover", null, t.noop), this._activeTrigger[g.CLICK] = !1, this._activeTrigger[g.FOCUS] = !1, this._activeTrigger[g.HOVER] = !1, r.supportsTransitionEnd() && t(this.tip).hasClass(p.FADE) ? t(i).one(r.TRANSITION_END, s).emulateTransitionEnd(150) : s(), this._hoverState = "") 1132 }, a.prototype.update = function() { 1133 null !== this._popper && this._popper.scheduleUpdate() 1134 }, a.prototype.isWithContent = function() { 1135 return Boolean(this.getTitle()) 1136 }, a.prototype.addAttachmentClass = function(e) { 1137 t(this.getTipElement()).addClass("bs-tooltip-" + e) 1138 }, a.prototype.getTipElement = function() { 1139 return this.tip = this.tip || t(this.config.template)[0] 1140 }, a.prototype.setContent = function() { 1141 var e = t(this.getTipElement()); 1142 this.setElementContent(e.find(_.TOOLTIP_INNER), this.getTitle()), e.removeClass(p.FADE + " " + p.SHOW) 1143 }, a.prototype.setElementContent = function(e, n) { 1144 var o = this.config.html; 1145 "object" === (void 0 === n ? "undefined" : i(n)) && (n.nodeType || n.jquery) ? o ? t(n).parent().is(e) || e.empty().append(n) : e.text(t(n).text()): e[o ? "html" : "text"](n) 1146 }, a.prototype.getTitle = function() { 1147 var t = this.element.getAttribute("data-original-title"); 1148 return t || (t = "function" == typeof this.config.title ? this.config.title.call(this.element) : this.config.title), t 1149 }, a.prototype._getAttachment = function(t) { 1150 return c[t.toUpperCase()] 1151 }, a.prototype._setListeners = function() { 1152 var e = this; 1153 this.config.trigger.split(" ").forEach(function(n) { 1154 if ("click" === n) t(e.element).on(e.constructor.Event.CLICK, e.config.selector, function(t) { 1155 return e.toggle(t) 1156 }); 1157 else if (n !== g.MANUAL) { 1158 var i = n === g.HOVER ? e.constructor.Event.MOUSEENTER : e.constructor.Event.FOCUSIN, 1159 o = n === g.HOVER ? e.constructor.Event.MOUSELEAVE : e.constructor.Event.FOCUSOUT; 1160 t(e.element).on(i, e.config.selector, function(t) { 1161 return e._enter(t) 1162 }).on(o, e.config.selector, function(t) { 1163 return e._leave(t) 1164 }) 1165 } 1166 t(e.element).closest(".htb-modal").on("hide.htbbs.htb-modal", function() { 1167 return e.hide() 1168 }) 1169 }), this.config.selector ? this.config = t.extend({}, this.config, { 1170 trigger: "manual", 1171 selector: "" 1172 }) : this._fixTitle() 1173 }, a.prototype._fixTitle = function() { 1174 var t = i(this.element.getAttribute("data-original-title")); 1175 (this.element.getAttribute("title") || "string" !== t) && (this.element.setAttribute("data-original-title", this.element.getAttribute("title") || ""), this.element.setAttribute("title", "")) 1176 }, a.prototype._enter = function(e, n) { 1177 var i = this.constructor.DATA_KEY; 1178 (n = n || t(e.currentTarget).data(i)) || (n = new this.constructor(e.currentTarget, this._getDelegateConfig()), t(e.currentTarget).data(i, n)), e && (n._activeTrigger["focusin" === e.type ? g.FOCUS : g.HOVER] = !0), t(n.getTipElement()).hasClass(p.SHOW) || n._hoverState === d.SHOW ? n._hoverState = d.SHOW : (clearTimeout(n._timeout), n._hoverState = d.SHOW, n.config.delay && n.config.delay.show ? n._timeout = setTimeout(function() { 1179 n._hoverState === d.SHOW && n.show() 1180 }, n.config.delay.show) : n.show()) 1181 }, a.prototype._leave = function(e, n) { 1182 var i = this.constructor.DATA_KEY; 1183 (n = n || t(e.currentTarget).data(i)) || (n = new this.constructor(e.currentTarget, this._getDelegateConfig()), t(e.currentTarget).data(i, n)), e && (n._activeTrigger["focusout" === e.type ? g.FOCUS : g.HOVER] = !1), n._isWithActiveTrigger() || (clearTimeout(n._timeout), n._hoverState = d.OUT, n.config.delay && n.config.delay.hide ? n._timeout = setTimeout(function() { 1184 n._hoverState === d.OUT && n.hide() 1185 }, n.config.delay.hide) : n.hide()) 1186 }, a.prototype._isWithActiveTrigger = function() { 1187 for (var t in this._activeTrigger) 1188 if (this._activeTrigger[t]) return !0; 1189 return !1 1190 }, a.prototype._getConfig = function(n) { 1191 return (n = t.extend({}, this.constructor.Default, t(this.element).data(), n)).delay && "number" == typeof n.delay && (n.delay = { 1192 show: n.delay, 1193 hide: n.delay 1194 }), n.title && "number" == typeof n.title && (n.title = n.title.toString()), n.content && "number" == typeof n.content && (n.content = n.content.toString()), r.typeCheckConfig(e, n, this.constructor.DefaultType), n 1195 }, a.prototype._getDelegateConfig = function() { 1196 var t = {}; 1197 if (this.config) 1198 for (var e in this.config) this.constructor.Default[e] !== this.config[e] && (t[e] = this.config[e]); 1199 return t 1200 }, a.prototype._cleanTipClass = function() { 1201 var e = t(this.getTipElement()), 1202 n = e.attr("class").match(l); 1203 null !== n && n.length > 0 && e.removeClass(n.join("")) 1204 }, a.prototype._handlePopperPlacementChange = function(t) { 1205 this._cleanTipClass(), this.addAttachmentClass(this._getAttachment(t.placement)) 1206 }, a.prototype._fixTransition = function() { 1207 var e = this.getTipElement(), 1208 n = this.config.animation; 1209 null === e.getAttribute("x-placement") && (t(e).removeClass(p.FADE), this.config.animation = !1, this.hide(), this.show(), this.config.animation = n) 1210 }, a._jQueryInterface = function(e) { 1211 return this.each(function() { 1212 var n = t(this).data("htbbs.tooltip"), 1213 o = "object" === (void 0 === e ? "undefined" : i(e)) && e; 1214 if ((n || !/dispose|hide/.test(e)) && (n || (n = new a(this, o), t(this).data("htbbs.tooltip", n)), "string" == typeof e)) { 1215 if (void 0 === n[e]) throw new Error('No method named "' + e + '"'); 1216 n[e]() 1217 } 1218 }) 1219 }, o(a, null, [{ 1220 key: "VERSION", 1221 get: function() { 1222 return "4.0.0-beta" 1223 } 1224 }, { 1225 key: "Default", 1226 get: function() { 1227 return u 1228 } 1229 }, { 1230 key: "NAME", 1231 get: function() { 1232 return e 1233 } 1234 }, { 1235 key: "DATA_KEY", 1236 get: function() { 1237 return "htbbs.tooltip" 1238 } 1239 }, { 1240 key: "Event", 1241 get: function() { 1242 return f 1243 } 1244 }, { 1245 key: "EVENT_KEY", 1246 get: function() { 1247 return s 1248 } 1249 }, { 1250 key: "DefaultType", 1251 get: function() { 1252 return h 1253 } 1254 }]), a 1255 }(); 1256 return t.fn[e] = m._jQueryInterface, t.fn[e].Constructor = m, t.fn[e].noConflict = function() { 1257 return t.fn[e] = a, m._jQueryInterface 1258 }, m 1259 }(jQuery)); 1260 ! function(r) { 1261 var a = "htbpopover", 1262 l = ".htbbs.htb-popover", 1263 h = r.fn[a], 1264 c = new RegExp("(^|\\s)htb-bs-popover\\S+", "g"), 1265 u = r.extend({}, s.Default, { 1266 placement: "right", 1267 trigger: "click", 1268 content: "", 1269 template: '<div class="htb-popover" role="tooltip"><div class="htb-arrow"></div><h3 class="htb-popover-header"></h3><div class="htb-popover-body"></div></div>' 1270 }), 1271 d = r.extend({}, s.DefaultType, { 1272 content: "(string|element|function)" 1273 }), 1274 f = { 1275 FADE: "htb-fade", 1276 SHOW: "htb-show" 1277 }, 1278 p = { 1279 TITLE: ".htb-popover-header", 1280 CONTENT: ".htb-popover-body" 1281 }, 1282 _ = { 1283 HIDE: "hide" + l, 1284 HIDDEN: "hidden" + l, 1285 SHOW: "show" + l, 1286 SHOWN: "shown" + l, 1287 INSERTED: "inserted" + l, 1288 CLICK: "click" + l, 1289 FOCUSIN: "focusin" + l, 1290 FOCUSOUT: "focusout" + l, 1291 MOUSEENTER: "mouseenter" + l, 1292 MOUSELEAVE: "mouseleave" + l 1293 }, 1294 g = function(s) { 1295 function h() { 1296 return n(this, h), t(this, s.apply(this, arguments)) 1297 } 1298 return e(h, s), h.prototype.isWithContent = function() { 1299 return this.getTitle() || this._getContent() 1300 }, h.prototype.addAttachmentClass = function(t) { 1301 r(this.getTipElement()).addClass("htb-bs-popover-" + t) 1302 }, h.prototype.getTipElement = function() { 1303 return this.tip = this.tip || r(this.config.template)[0] 1304 }, h.prototype.setContent = function() { 1305 var t = r(this.getTipElement()); 1306 this.setElementContent(t.find(p.TITLE), this.getTitle()), this.setElementContent(t.find(p.CONTENT), this._getContent()), t.removeClass(f.FADE + " " + f.SHOW) 1307 }, h.prototype._getContent = function() { 1308 return this.element.getAttribute("data-content") || ("function" == typeof this.config.content ? this.config.content.call(this.element) : this.config.content) 1309 }, h.prototype._cleanTipClass = function() { 1310 var t = r(this.getTipElement()), 1311 e = t.attr("class").match(c); 1312 null !== e && e.length > 0 && t.removeClass(e.join("")) 1313 }, h._jQueryInterface = function(t) { 1314 return this.each(function() { 1315 var e = r(this).data("htbbs.popover"), 1316 n = "object" === (void 0 === t ? "undefined" : i(t)) ? t : null; 1317 if ((e || !/destroy|hide/.test(t)) && (e || (e = new h(this, n), r(this).data("htbbs.popover", e)), "string" == typeof t)) { 1318 if (void 0 === e[t]) throw new Error('No method n
1318amed "' + t + '"'); 1319 e[t]() 1320 } 1321 }) 1322 }, o(h, null, [{ 1323 key: "VERSION", 1324 get: function() { 1325 return "4.0.0-beta" 1326 } 1327 }, { 1328 key: "Default", 1329 get: function() { 1330 return u 1331 } 1332 }, { 1333 key: "NAME", 1334 get: function() { 1335 return a 1336 } 1337 }, { 1338 key: "DATA_KEY", 1339 get: function() { 1340 return "htbbs.popover" 1341 } 1342 }, { 1343 key: "Event", 1344 get: function() { 1345 return _ 1346 } 1347 }, { 1348 key: "EVENT_KEY", 1349 get: function() { 1350 return l 1351 } 1352 }, { 1353 key: "DefaultType", 1354 get: function() { 1355 return d 1356 } 1357 }]), h 1358 }(s); 1359 r.fn[a] = g._jQueryInterface, r.fn[a].Constructor = g, r.fn[a].noConflict = function() { 1360 return r.fn[a] = h, g._jQueryInterface 1361 } 1362 }(jQuery) 1363}(); 1364 1365 1366 1367} 1368catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://labadibeachhotelgh.com/wp-content/plugins/ht-mega-for-elementor/assets/js/htbbootstrap.js\n- Error message: "+ e.message);} 1369 1370 1371 var wcBlocksMiddlewareConfig = { 1372 storeApiNonce: '048b8c78f0', 1373 wcStoreApiNonceTimestamp: '1790786511' 1374 }; 1375 1376/*! 1377Waypoints - 4.0.1 1378Copyright © 2011-2016 Caleb Troughton 1379Licensed under the MIT license. 1380https://github.com/imakewebthings/waypoints/blob/master/licenses.txt 1381*/ 1382;!function(){"use strict";function t(o){if(!o)throw new Error("No options passed to Waypoint constructor");if(!o.element)throw new Error("No element option passed to Waypoint constructor");if(!o.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=t.Adapter.extend({},t.defaults,o),this.element=this.options.element,this.adapter=new t.Adapter(this.element),this.callback=o.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),i[this.key]=this,e+=1}var e=0,i={};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 i[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 o in i)e.push(i[o]);for(var n=0,r=e.length;r>n;n++)e[n][t]()},t.destroyAll=function(){t.invokeAll("destroy")},t.disableAll=function(){t.invokeAll("disable")},t.enableAll=function(){t.Context.refreshAll();for(var e in i)i[e].enabled=!0;return this},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()}
vendor: 4,878 bytes, line 1382
1382,"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=n.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+i,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,o[t.waypointContextKey]=this,i+=1,n.windowContext||(n.windowContext=!0,n.windowContext=new e(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var i=0,o={},n=window.Waypoint,r=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),i=this.element==this.element.window;t&&e&&!i&&(this.adapter.off(".waypoints"),delete o[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,n.requestAnimationFrame(t))})},e.prototype.createThrottledScrollHandler=function(){function t(){e.handleScroll(),e.didScroll=!1}var e=this;this.adapter.on("scroll.waypoints",function(){(!e.didScroll||n.isTouch)&&(e.didScroll=!0,n.requestAnimationFrame(t))})},e.prototype.handleResize=function(){n.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 i in e){var o=e[i],n=o.newScroll>o.oldScroll,r=n?o.forward:o.backward;for(var s in this.waypoints[i]){var a=this.waypoints[i][s];if(null!==a.triggerPoint){var l=o.oldScroll<a.triggerPoint,h=o.newScroll>=a.triggerPoint,p=l&&h,u=!l&&!h;(p||u)&&(a.queueTrigger(r),t[a.group.id]=a.group)}}}for(var c in t)t[c].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.innerHeight=function(){return this.element==this.element.window?n.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?n.viewportWidth():this.adapter.innerWidth()},e.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var o=0,n=t.length;n>o;o++)t[o].destroy()},e.prototype.refresh=function(){var t,e=this.element==this.element.window,i=e?void 0:this.adapter.offset(),o={};this.handleScroll(),t={horizontal:{contextOffset:e?0:i.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:i.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};for(var r in t){var s=t[r];for(var a in this.waypoints[r]){var l,h,p,u,c,d=this.waypoints[r][a],f=d.options.offset,w=d.triggerPoint,y=0,g=null==w;d.element!==d.element.window&&(y=d.adapter.offset()[s.offsetProp]),"function"==typeof f?f=f.apply(d):"string"==typeof f&&(f=parseFloat(f),d.options.offset.indexOf("%")>-1&&(f=Math.ceil(s.contextDimension*f/100))),l=s.contextScroll-s.contextOffset,d.triggerPoint=Math.floor(y+l-f),h=w<s.oldScroll,p=d.triggerPoint>=s.oldScroll,u=h&&p,c=!h&&!p,!g&&u?(d.queueTrigger(s.backward),o[d.group.id]=d.group):!g&&c?(d.queueTrigger(s.forward),o[d.group.id]=d.group):g&&s.oldScroll>=d.triggerPoint&&(d.queueTrigger(s.forward),o[d.group.id]=d.group)}}return n.requestAnimationFrame(function(){for(var t in o)o[t].flushTriggers()}),this},e.findOrCreateByElement=function(t){return e.findByElement(t)||new e(t)},e.refreshAll=function(){for(var t in o)o[t].refresh()},e.findByElement=function(t){return o[t.waypointContextKey]},window.onload=function(){r&&r(),e.refreshAll()},n.requestAnimationFrame=function(e){var i=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t;i.call(window,e)},n.Context=e}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}function i(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),o[this.axis][this.name]=this}var o={vertical:{},horizontal:{}},n=window.Waypoint;i.prototype.add=function(t){this.waypoints.push(t)},i.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],r
1382ight:[]}},i.prototype.flushTriggers=function(){for(var i in this.triggerQueues){var o=this.triggerQueues[i],n="up"===i||"left"===i;o.sort(n?e:t);for(var r=0,s=o.length;s>r;r+=1){var a=o[r];(a.options.continuous||r===o.length-1)&&a.trigger([i])}}this.clearTriggerQueues()},i.prototype.next=function(e){this.waypoints.sort(t);var i=n.Adapter.inArray(e,this.waypoints),o=i===this.waypoints.length-1;return o?null:this.waypoints[i+1]},i.prototype.previous=function(e){this.waypoints.sort(t);var i=n.Adapter.inArray(e,this.waypoints);return i?this.waypoints[i-1]:null},i.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},i.prototype.remove=function(t){var e=n.Adapter.inArray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},i.prototype.first=function(){return this.waypoints[0]},i.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},i.findOrCreate=function(t){return o[t.axis][t.name]||new i(t)},n.Group=i}(),function(){"use strict";function t(t){this.$element=e(t)}var e=window.jQuery,i=window.Waypoint;e.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(e,i){t.prototype[i]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[i].apply(this.$element,t)}}),e.each(["extend","inArray","isEmptyObject"],function(i,o){t[o]=e[o]}),i.adapters.push({name:"jquery",Adapter:t}),i.Adapter=t}(),function(){"use strict";function t(t){return function(){var i=[],o=arguments[0];return t.isFunction(arguments[0])&&(o=t.extend({},arguments[1]),o.handler=arguments[0]),this.each(function(){var n=t.extend({},o,{element:this});"string"==typeof n.context&&(n.context=t(this).closest(n.context)[0]),i.push(new e(n))}),i}}var e=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=t(window.Zepto))}(); 1383 1384 1385 1386} 1387catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://labadibeachhotelgh.com/wp-content/plugins/ht-mega-for-elementor/assets/js/waypoints.js\n- Error message: "+ e.message);} 1388 1389 1390 var wcBlocksMiddlewareConfig = { 1391 storeApiNonce: '048b8c78f0', 1392 wcStoreApiNonceTimestamp: '1790786511' 1393 }; 1394 1395/*! 1396 * jQuery Magnify Plugin v2.3.3 by T. H. Doan (https://thdoan.github.io/magnify/) 1397 * Based on http://thecodeplayer.com/walkthrough/magnifying-glass-for-images-using-jquery-and-css3 1398 * 1399 * jQuery Magnify by T. H. Doan is licensed under the MIT License. 1400 * Read a copy of the license in the LICENSE file or at https://choosealicense.com/licenses/mit/ 1401 */ 1402 1403(function($) { 1404 $.fn.magnify = function(oOptions) { 1405 // Default options 1406 oOptions = $.extend({ 1407 'src': '', 1408 'speed': 100, 1409 'timeout': -1, 1410 'touchBottomOffset': 0, 1411 'finalWidth': null, 1412 'finalHeight': null, 1413 'magnifiedWidth': null, 1414 'magnifiedHeight': null, 1415 'limitBounds': false, 1416 'mobileCloseEvent': 'touchstart', 1417 'afterLoad': function(){} 1418 }, oOptions); 1419 1420 var $that = this, // Preserve scope 1421 $html = $('html'), 1422 1423 // Initiate 1424 init = function(el) { 1425 var $image = $(el), 1426 $anchor = $image.closest('a'), 1427 oDataAttr = {}; 1428 1429 // Get data attributes 1430 for (var i in oOptions) { 1431 oDataAttr[i] = $image.attr('data-magnify-' + i.toLowerCase()); 1432 } 1433 1434 // Disable zooming if no valid large image source 1435 var sZoomSrc = oDataAttr['src'] || oOptions['src'] || $anchor.attr('href') || ''; 1436 if (!sZoomSrc) return; 1437 1438 var $container, 1439 $lens, 1440 nImageWidth, 1441 nImageHeight, 1442 nMagnifiedWidth, 1443 nMagnifiedHeight, 1444 nLensWidth, 1445 nLensHeight, 1446 nBoundX = 0, 1447 nBoundY = 0, 1448 nPosX, nPosY, // Absolute cursor position 1449 nX, nY, // Relative cursor position 1450 oContainerOffset, // Relative to document 1451 oImageOffset, // Relative to container 1452 // Get true offsets 1453 getOffset = function() { 1454 var o = $container.offset(); 1455 // Store offsets from container border to image inside 1456 // NOTE: .offset() does NOT take into consideration image border and padding. 1457 oImageOffset = { 1458 'top': ($image.offset().top-o.top) + parseInt($image.css('border-top-width')) + parseInt($image.css('padding-top')), 1459 'left': ($image.offset().left-o.left) + parseInt($image.css('border-left-width')) + parseInt($image.css('padding-left')) 1460 }; 1461 o.top += oImageOffset['top']; 1462 o.left += oImageOffset['left']; 1463 return o; 1464 }, 1465 // Hide the lens 1466 hideLens = function() { 1467 if ($lens.is(':visible')) $lens.fadeOut(oOptions['speed'], function() { 1468 $html.removeClass('magnifying').trigger('magnifyend'); // Reset overflow-x 1469 }); 1470 }, 1471 moveLens = function(e) { 1472 // Reinitialize if image initially hidden 1473 if (!nImageHeight) { 1474 refresh(); 1475 return; 1476 } 1477 if (e) { 1478 e.preventDefault(); 1479 // Save last coordinates in case we need to call this function directly (required when 1480 // updating magnifiedWidth/magnifiedHeight while the lens is visible). 1481 nPosX = e.pageX || e.originalEvent.touches[0].pageX; 1482 nPosY = e.pageY || e.originalEvent.touches[0].pageY; 1483 $image.data('lastPos', { 1484 'x': nPosX, 1485 'y': nPosY 1486 }); 1487 } else { 1488 nPosX = $image.data('lastPos').x; 1489 nPosY = $image.data('lastPos').y; 1490 } 1491 // x/y coordinates of the mouse pointer or touch point. This is the position of 1492 // .magnify relative to the document. 1493 // 1494 // We deduct the positions of .magnify from the mouse or touch positions relative to 1495 // the document to get the mouse or touch positions relative to the container. 1496 nX = nPosX - oContainerOffset['left'], 1497 nY = (nPosY - oContainerOffset['top']) - oOptions['touchBottomOffset']; 1498 // Toggle magnifying lens 1499 if (!$lens.is(':animated')) { 1500 if (nX>nBoundX && nX<nImageWidth-nBoundX && nY>nBoundY && nY<nImageHeight-nBoundY) { 1501 if ($lens.is(':hidden')) { 1502 $html.addClass('magnifying').trigger('magnifystart'); // Hide overflow-x while zooming 1503 $lens.fadeIn(oOptions['speed']); 1504 } 1505 } else { 1506 hideLens(); 1507 } 1508 } 1509 if ($lens.is(':visible')) { 1510 // Move the magnifying lens with the mouse 1511 var sBgPos = ''; 1512 if (nMagnifiedWidth && nMagnifiedHeight) { 1513 // Change the background position of .magnify-lens according to the position of 1514 // the mouse over the .magnify-image image. This allows us to get the ratio of 1515 // the pixel under the mouse pointer with respect to the image and use that to 1516 // position the large image inside the magnifying lens. 1517 var nRatioX = -Math.round(nX/nImageWidth*nMagnifiedWidth-nLensWidth/2), 1518 nRatioY = -Math.round(nY/nImageHeight*nMagnifiedHeight-nLensHeight/2); 1519 if (oOptions['limitBounds']) { 1520 // Enforce bounds to ensure only image is visible in lens 1521 var nBoundRight = -Math.round((nImageWidth-nBoundX)/nImageWidth*nMagnifiedWidth-nLensWidth/2), 1522 nBoundBottom = -Math.round((nImageHeight-nBoundY)/nImageHeight*nMagnifiedHeight-nLensHeight/2); 1523 // Left and right edges 1524 if (nRatioX>0) nRatioX = 0; 1525 else if (nRatioX<nBoundRight) nRatioX = nBoundRight; 1526 // Top and bottom edges 1527 if (nRatioY>0) nRatioY = 0; 1528 else if (nRatioY<nBoundBottom) nRatioY = nBoundBottom; 1529 } 1530 sBgPos = nRatioX + 'px ' + nRatioY + 'px'; 1531 } 1532 // Now the lens moves with the mouse. The logic is to deduct half of the lens's
vendor: 5,463 bytes, lines 1533-1628
1533 // width and height from the mouse coordinates to place it with its center at the 1534 // mouse coordinates. If you hover on the image now, you should see the magnifying 1535 // lens in action. 1536 $lens.css({ 1537 'top': Math.round(nY-nLensHeight/2) + oImageOffset['top'] + 'px', 1538 'left': Math.round(nX-nLensWidth/2) + oImageOffset['left'] + 'px', 1539 'background-position': sBgPos 1540 }); 1541 } 1542 }; 1543 1544 // Data attributes have precedence over options object 1545 if (!isNaN(+oDataAttr['speed'])) oOptions['speed'] = +oDataAttr['speed']; 1546 if (!isNaN(+oDataAttr['timeout'])) oOptions['timeout'] = +oDataAttr['timeout']; 1547 if (!isNaN(+oDataAttr['finalWidth'])) oOptions['finalWidth'] = +oDataAttr['finalWidth']; 1548 if (!isNaN(+oDataAttr['finalHeight'])) oOptions['finalHeight'] = +oDataAttr['finalHeight']; 1549 if (!isNaN(+oDataAttr['magnifiedWidth'])) oOptions['magnifiedWidth'] = +oDataAttr['magnifiedWidth']; 1550 if (!isNaN(+oDataAttr['magnifiedHeight'])) oOptions['magnifiedHeight'] = +oDataAttr['magnifiedHeight']; 1551 if (oDataAttr['limitBounds']==='true') oOptions['limitBounds'] = true; 1552 if (typeof window[oDataAttr['afterLoad']]==='function') oOptions.afterLoad = window[oDataAttr['afterLoad']]; 1553 1554 // Implement touch point bottom offset only on mobile devices 1555 if (/\b(Android|BlackBerry|IEMobile|iPad|iPhone|Mobile|Opera Mini)\b/.test(navigator.userAgent)) { 1556 if (!isNaN(+oDataAttr['touchBottomOffset'])) oOptions['touchBottomOffset'] = +oDataAttr['touchBottomOffset']; 1557 } else { 1558 oOptions['touchBottomOffset'] = 0; 1559 } 1560 1561 // Save any inline styles for resetting 1562 $image.data('originalStyle', $image.attr('style')); 1563 1564 // Activate magnification: 1565 // 1. Try to get large image dimensions 1566 // 2. Proceed only if able to get large image dimensions OK 1567 1568 // [1] Calculate the native (magnified) image dimensions. The zoomed version is only shown 1569 // after the native dimensions are available. To get the actual dimensions we have to create 1570 // this image object. 1571 var elZoomImage = new Image(); 1572 $(elZoomImage).on({ 1573 'load': function() { 1574 // [2] Got image dimensions OK. 1575 1576 // Fix overlap bug at the edges during magnification 1577 $image.css('display', 'block'); 1578 // Create container div if necessary 1579 if (!$image.parent('.magnify').length) { 1580 $image.wrap('<div class="magnify"></div>'); 1581 } 1582 $container = $image.parent('.magnify'); 1583 // Create the magnifying lens div if necessary 1584 if ($image.prev('.magnify-lens').length) { 1585 $container.children('.magnify-lens').css('background-image', 'url(\'' + sZoomSrc + '\')'); 1586 } else { 1587 $image.before('<div class="magnify-lens loading" style="background:url(\'' + sZoomSrc + '\') 0 0 no-repeat"></div>'); 1588 } 1589 $lens = $container.children('.magnify-lens'); 1590 // Remove the "Loading..." text 1591 $lens.removeClass('loading'); 1592 // Cache dimensions and offsets for improved performance 1593 // NOTE: This code is inside the load() function, which is important. The width and 1594 // height of the object would return 0 if accessed before the image is fully loaded. 1595 nImageWidth = oOptions['finalWidth'] || $image.width(); 1596 nImageHeight = oOptions['finalHeight'] || $image.height(); 1597 nMagnifiedWidth = oOptions['magnifiedWidth'] || elZoomImage.width; 1598 nMagnifiedHeight = oOptions['magnifiedHeight'] || elZoomImage.height; 1599 nLensWidth = $lens.width(); 1600 nLensHeight = $lens.height(); 1601 oContainerOffset = getOffset(); // Required by refresh() 1602 // Set zoom boundaries 1603 if (oOptions['limitBounds']) { 1604 nBoundX = (nLensWidth/2) / (nMagnifiedWidth/nImageWidth); 1605 nBoundY = (nLensHeight/2) / (nMagnifiedHeight/nImageHeight); 1606 } 1607 // Enforce non-native large image size? 1608 if (nMagnifiedWidth!==elZoomImage.width || nMagnifiedHeight!==elZoomImage.height) { 1609 $lens.css('background-size', nMagnifiedWidth + 'px ' + nMagnifiedHeight + 'px'); 1610 } 1611 // Store zoom dimensions for mobile plugin 1612 $image.data('zoomSize', { 1613 'width': nMagnifiedWidth, 1614 'height': nMagnifiedHeight 1615 }); 1616 // Store mobile close event for mobile plugin 1617 $container.data('mobileCloseEvent', oDataAttr['mobileCloseEvent'] || oOptions['mobileCloseEvent']); 1618 // Clean up 1619 elZoomImage = null; 1620 // Execute callback 1621 oOptions.afterLoad(); 1622 // Simulate a lens move to update positioning if magnifiedWidth/magnifiedHeight is 1623 // updated while the lens is visible 1624 if ($lens.is(':visible')) moveLens(); 1625 // Handle mouse movements 1626 $container.off().on({ 1627 'mousemove touchmove': moveLens, 1628 'mouseenter': function() {
1629 // Need to update offsets here to support accordions 1630 oContainerOffset = getOffset(); 1631 }, 1632 'mouseleave': hideLens 1633 }); 1634 1635 // Prevent magnifying lens from getting "stuck" 1636 if (oOptions['timeout']>=0) { 1637 $container.on('touchend', function() { 1638 setTimeout(hideLens, oOptions['timeout']); 1639 }); 1640 } 1641 // Ensure lens is closed when tapping outside of it 1642 $('body').not($container).on('touchstart', hideLens); 1643 1644 // Support image map click-throughs while zooming 1645 var sUsemap = $image.attr('usemap'); 1646 if (sUsemap) { 1647 var $map = $('map[name=' + sUsemap.slice(1) + ']'); 1648 // Image map needs to be on the same DOM level as image source 1649 $image.after($map); 1650 $container.click(function(e) { 1651 // Trigger click on image below lens at current cursor position 1652 if (e.clientX || e.clientY) { 1653 $lens.hide(); 1654 var elPoint = document.elementFromPoint( 1655 e.clientX || e.originalEvent.touches[0].clientX, 1656 e.clientY || e.originalEvent.touches[0].clientY 1657 ); 1658 if (elPoint.nodeName==='AREA') { 1659 elPoint.click(); 1660 } else { 1661 // Workaround for buggy implementation of elementFromPoint() 1662 // See https://bugzilla.mozilla.org/show_bug.cgi?id=1227469 1663 $('area', $map).each(function() { 1664 var a = $(this).attr('coords').split(','); 1665 if (nX>=a[0] && nX<=a[2] && nY>=a[1] && nY<=a[3]) { 1666 this.click(); 1667 return false; 1668 } 1669 }); 1670 } 1671 } 1672 }); 1673 } 1674 1675 if ($anchor.length) { 1676 // Make parent anchor inline-block to have correct dimensions 1677 $anchor.css('display', 'inline-block'); 1678 // Disable parent anchor if it's sourcing the large image 1679 if ($anchor.attr('href') && !(oDataAttr['src'] || oOptions['src'])) { 1680 $anchor.click(function(e) { 1681 e.preventDefault(); 1682 }); 1683 } 1684 } 1685 1686 }, 1687 'error': function() { 1688 // Clean up 1689 elZoomImage = null; 1690 } 1691 }); 1692 1693 elZoomImage.src = sZoomSrc; 1694 }, // END init() 1695 1696 // Simple debounce 1697 nTimer = 0, 1698 refresh = function() { 1699 clearTimeout(nTimer); 1700 nTimer = setTimeout(function() { 1701 $that.destroy(); 1702 $that.magnify(oOptions); 1703 }, 100); 1704 }; 1705 1706 /** 1707 * Public Methods 1708 */ 1709 1710 // Turn off zoom and reset to original state 1711 this.destroy = function() { 1712 this.each(function() { 1713 var $this = $(this), 1714 $lens = $this.prev('div.magnify-lens'), 1715 sStyle = $this.data('originalStyle'); 1716 if ($this.parent('div.magnify').length && $lens.length) { 1717 if (sStyle) $this.attr('style', sStyle); 1718 else $this.removeAttr('style'); 1719 $this.unwrap(); 1720 $lens.remove(); 1721 } 1722 }); 1723 // Unregister event handler 1724 $(window).off('resize', refresh); 1725 return $that; 1726 } 1727 1728 // Handle window resizing 1729 $(window).resize(refresh); 1730 1731 return this.each(function() { 1732 // Initiate magnification powers 1733 init(this); 1734 }); 1735 1736 }; 1737 }(jQuery)); 1738 1739 1740 1741} 1742catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://labadibeachhotelgh.com/wp-content/plugins/ht-mega-for-elementor/assets/js/magnifier.js\n- Error message: "+ e.message);} 1743 1744 1745 var wcBlocksMiddlewareConfig = { 1746 storeApiNonce: '048b8c78f0', 1747 wcStoreApiNonceTimestamp: '1790786511' 1748 }; 1749 1750!function(e){"use strict";let t=HTMEGAF.buttion_area_text_next,n=HTMEGAF.buttion_area_text_prev;var a=function(e,a){var o=e.find(".htmega-testimonial-activation").eq(0);if(o.length>0&&(o[0].style.display="block"),o.length>0){var s=o.data("settings"),i=s.arrows,r=s.arrow_prev_txt,l=s.arrow_next_txt,d=parseInt(s.testimonial_style_ck)||1,c=s.dots,p=s.autoplay,m=parseInt(s.autoplay_speed)||3e3,u=parseInt(s.animation_speed)||300,h=s.pause_on_hover,g=s.center_mode,f=(f=parseInt(s.center_padding)||0).toString(),v=parseInt(s.display_columns)||1,y=parseInt(s.scroll_columns)||1,_=parseInt(s.tablet_width)||800,b=parseInt(s.tablet_display_columns)||1,w=parseInt(s.tablet_scroll_columns)||1,k=parseInt(s.mobile_width)||480,x=parseInt(s.mobile_display_columns)||1,S=parseInt(s.mobile_scroll_columns)||1;if(5==d||11==d){var I=e.find(".htmega-testimonial-activation .htmega-testimonial-for").eq(0);I.length>0&&(I[0].style.display="block");var T=e.find(".htmega-testimonial-activation .htmega-testimonal-nav").eq(0);T.length>0&&(T[0].style.display="block"),I.not(".slick-initialized").slick({slidesToShow:1,slidesToScroll:y,arrows:i,prevArrow:'<button aria-label="'+n+'" type="button" class="slick-prev">'+r+"</button>",nextArrow:'<button aria-label="'+t+'" type="button" class="slick-next">'+l+"</button>",dots:c,fade:!0,asNavFor:".htmega-testimonal-nav"}),T.not(".slick-initialized").slick({slidesToShow:v,slidesToScroll:y,asNavFor:".htmega-testimonial-for",dots:!1,arrows:!1,centerMode:g,focusOnSelect:!0,centerPadding:f+"px"})}else o.not(".slick-initialized").slick({arrows:i,prevArrow:'<button aria-label="'+n+'" type="button" class="slick-prev">'+r+"</button>",nextArrow:'<button aria-label="'+t+'" type="button" class="slick-next">'+l+"</button>",dots:c,infinite:!0,autoplay:p,autoplaySpeed:m,speed:u,fade:!1,pauseOnHover:h,slidesToShow:v,slidesToScroll:y,centerMode:g,centerPadding:f+"px",responsive:[{breakpoint:_,settings:{slidesToShow:b,slidesToScroll:w}},{breakpoint:k,settings:{slidesToShow:x,slidesToScroll:S}}]})}},o=function(e,a){var o=e.find(".htmega-carousel-activation").eq(0);if(o.length>0&&o[0]&&(o[0].style.display="block"),o.length>0){var s=o.data("settings"),i=(s.sectionid,s.arrows),r=s.arrow_prev_txt,l=s.arrow_next_txt,d=s.dots,c=s.autoplay,p=parseInt(s.autoplay_speed)||3e3,m=parseInt(s.animation_speed)||300,u=s.pause_on_hover,h=s.center_mode,g=!!s.vertical_mode&&s.vertical_mode,f=s.slloop,v=s.center_padding?parseInt(s.center_padding):0,y=!!s.variable_width,_=parseInt(s.display_columns)||1,b=parseInt(s.scroll_columns)||1,w=parseInt(s.tablet_width)||800,k=parseInt(s.tablet_display_columns)||1,x=parseInt(s.tablet_scroll_columns)||1,S=parseInt(s.mobile_width)||480,I=parseInt(s.mobile_display_columns)||1,T=parseInt(s.mobile_scroll_columns)||1;if(4==(parseInt(s.carousel_style_ck)||1)?o.not(".slick-initialized").slick({arrows:i,prevArrow:'<button class="htmega-carosul-prev">'+r+"</button>",nextArrow:'<button class="htmega-carosul-next">'+l+"</button>",dots:d,customPaging:function(e,t){var n=e.$slides.eq(t).find(".htmega-data-title").data("title"),a=e.$slides.eq(t).find(".htmega-data-title").data("thumbnail");return a?'<img src="'+a+'" alt="'+n+'">':"<h6>"+n+"</h6>"},infinite:!0,autoplay:c,autoplaySpeed:p,speed:m,fade:!1,pauseOnHover:u,slidesToShow:_,slidesToScroll:b,centerMode:h,centerPadding:v+"px",vertical:g,rtl:elementorFrontendConfig.is_rtl,responsive:[{breakpoint:w,settings:{slidesToShow:k,slidesToScroll:x}},{breakpoint:S,settings:{slidesToShow:I,slidesToScroll:T}}]}):o.not(".slick-initialized").slick({arrows:i,prevArrow:'<button aria-label="'+n+'" class="htmega-carosul-prev">'+r+"</button>",nextArrow:'<button aria-label="'+t+'" class="htmega-carosul-next">'+l+"</button>",dots:d,infinite:!0,autoplay:c,autoplaySpeed:p,speed:m,infinite:f,fade:!1,pauseOnHover:u,slidesToShow:_,slidesToScroll:b,centerMode:h,centerPadding:v+"px",variableWidth:y,vertical:g,rtl:elementorFrontendConfig.is_rtl,responsive:[{breakpoint:w,settings:{slidesToShow:k,slidesToScroll:x}},{breakpoint:S,settings:{slidesToShow:I,slidesToScroll:T}}]}),s.equal_height_column&&s.sectionid&&s.equal_height_column_class){var A=-1;a("."+s.sectionid+" "+s.equal_height_column_class).each(function(){a("."+s.sectionid+" "+s.equal_height_column_class).outerHeight()>A&&(A=a("."+s.sectionid+" "+s.equal_height_column_class).outerHeight())}),a("."+s.sectionid+" "+s.equal_height_column_class).each(function(){a(this).outerHeight()<A&&a(this).css("height",A+"px")})}}},s=function(e,a){var o=e.find(".htmega-thumbgallery-for").eq(0),s=e.find(".htmega-thumbgallery-nav").eq(0);if(o[0].style.display="block",s[0].style.display="block",o.length>0){var i=o.data("settings"),r=i.arrows,l=i.arrow_prev_txt,d=i.arrow_next_txt,c=i.dots,p=i.autoplay,m=parseInt(i.autoplay_speed)||3e3,u=parseInt(i.animation_speed)||300,h=i.pause_on_hover,g=i.center_mode,f=(f=parseInt(i.center_padding)||0).toString(),v=parseInt(i.display_columns)||1,y=parseInt(i.scroll_columns)||1,_=parseInt(i.tablet_width)||800,b=parseInt(i.tablet_display_columns)||1,w=parseInt(i.tablet_scroll_columns)||1,k=parseInt(i.mobile_width)||480,x=parseInt(i.mobile_display_columns)||1,S=parseInt(i.mobile_scroll_columns)||1,I=s.data("navsettings"),T=I.navarrows,A=I.navarrow_prev_txt,F=I.navarrow_next_txt,q=I.navdots,$=I.navvertical,C=I.navautoplay,H=parseInt(I.navautoplay_speed)||3e3,M=(parseInt(I.navanimation_speed),I.navpause_on_hover,I.navcenter_mode),O=(O=parseInt(I.navcenter_padding)||0).toString(),P=parseInt(I.navdisplay_columns)||1,z=parseInt(I.navscroll_columns)||1,L=parseInt(I.navtablet_width)||800,D=parseInt(I.navtablet_display_columns)||1,E=parseInt(I.navtablet_scroll_columns)||1,B=parseInt(I.navmobile_width)||480,V=parseInt(I.navmobile_display_columns)||1,j=parseInt(I.navmobile_scroll_columns)||1;o.not(".slick-initialized").slick({arrows:r,prevArrow:'<button aria-label="'+n+'" class="htmega-carosul-prev">'+l+"</button>",nextArrow:'<button aria-label="'+t+'" class="htmega-carosul-next">'+d+"</button>",asNavFor:s,dots:c,infinite:!0,autoplay:p,autoplaySpeed:m,speed:u,fade:!1,pauseOnHover:h,slidesToShow:v,slidesToScroll:y,centerMode:g,centerPadding:f+"px",rtl:elementorFrontendConfig.is_rtl,responsive:[{breakpoint:_,settings:{slidesToShow:b,slidesToScroll:w}},{breakpoint:k,settings:{slidesToShow:x,slidesToScroll:S}}]}),s.not(".slick-initialized").slick({slidesToShow:P,slidesToScroll:z,asNavFor:o,dots:q,autoplay:C,autoplaySpeed:
1750H,centerMode:M,centerPadding:O+"px",rtl:elementorFrontendConfig.is_rtl,responsive:[{breakpoint:L,settings:{slidesToShow:D,slidesToScroll:E}},{breakpoint:B,settings:{slidesToShow:V,slidesToScroll:j}}],infinite:!0,focusOnSelect:!0,vertical:$,arrows:T,prevArrow:'<button aria-label="'+n+'" class="htmega-carosul-prev">'+A+"</button>",nextArrow:'<button aria-label="'+t+'" class="htmega-carosul-next">'+F+"</button>",draggable:!0,verticalSwiping:!0})}},i=function(e,t){var n=e.find(".htmega-google-map").eq(0);if(n.length>0){var a=n.data("mapmarkers"),o=n.data("mapoptions"),s=n.data("mapstyle");a&&Array.isArray(a)&&(a=a.map(function(e){return e.baloon_text=DOMPurify.sanitize(e.baloon_text),e}));var i={markers:a};n.mapmarker({zoom:o.zoom,center:o.center,styles:s,markers:i})}},r=function(e,t){var n=e.find("#accordion-4").eq(0),a=e.find("#va-accordion").eq(0);if(n.length>0&&t("#accordion-4 > li").hover(function(){var e=t(this);e.stop().animate({width:"430px"},500),t(".heading",e).stop(!0,!0).fadeOut(),t(".bgDescription",e).stop(!0,!0).slideDown(500),t(".description",e).stop(!0,!0).fadeIn()},function(){var e=t(this);e.stop().animate({width:"130px"},1e3),t(".heading",e).stop(!0,!0).fadeIn(),t(".description",e).stop(!0,!0).fadeOut(500),t(".bgDescription",e).stop(!0,!0).slideUp(700)}),a.length>0){var o=a.data("accordionoptions");a.vaccordion({accordionH:o.accordionheight,expandedHeight:o.expandedheight,visibleSlices:o.visibleitem,animSpeed:500,animEasing:"easeInOutBack",animOpacity:1})}},l=function(e,t){e.find(".radial-progress").eq(0).length>0&&t(".radial-progress").waypoint(function(){t(".radial-progress").easyPieChart({lineWidth:10,trackColor:!1,scaleLength:0,rotate:0,barColor:"#1cb9da",trackColor:"#dcd9d9",lineCap:"rott",size:130})},{triggerOnce:!0,offset:"bottom-in-view"})};function d(t,n,a){var o=["Days","Hours","Mins","Secs"],s="00:00:00:00",i="00:00:00:00",r=/([0-9]{2})/gi;function l(e){var t=e.match(r),n={};return o.forEach(function(e,a){n[e]=t[a]}),n}var d=l(s);o.forEach(function(n,o){t.append(function(t,n,o){return"yes"==a.htmegaday&&"days"==t.toLowerCase()?`<div class="htmega-time htmega-days">\n <div class="htmega-time-inner">\n <span class="ht-count htmega-curr htmega-top">${n}</span>\n <span class="ht-count htmega-next htmega-top">${o}</span>\n <span class="ht-count htmega-next htmega-bottom">${o}</span>\n <span class="ht-count htmega-curr htmega-bottom">${n}</span>\n </div>\n <span class="htmega-label">${"yes"==a.lavelhide?"":e("<p>").text(a.htmegadaytxt).prop("outerHTML")}</span>\n </div>`:"yes"==a.htmegahours&&"hours"==t.toLowerCase()?`<div class="htmega-time htmega-hours">\n <div class="htmega-time-inner">\n <span class="ht-count htmega-curr htmega-top">${n}</span>\n <span class="ht-count htmega-next htmega-top">${o}</span>\n <span class="ht-count htmega-next htmega-bottom">${o}</span>\n <span class="ht-count htmega-curr htmega-bottom">${n}</span>\n </div>\n <span class="htmega-label">${"yes"==a.lavelhide?"":e("<p>").text(a.htmegahourtxt).prop("outerHTML")}</span>\n </div>`:"yes"==a.htmegaminiute&&"mins"==t.toLowerCase()?`<div class="htmega-time htmega-mins">\n <div class="htmega-time-inner">\n <span class="ht-count htmega-curr htmega-top">${n}</span>\n <span class="ht-count htmega-next htmega-top">${o}</span>\n <span class="ht-count htmega-next htmega-bottom">${o}</span>\n <span class="ht-count htmega-curr htmega-bottom">${n}</span>\n </div>\n <span class="htmega-label">${"yes"==a.lavelhide?"":e("<p>").text(a.htmegaminutestxt).prop("outerHTML")}</span>\n </div>`:"yes"==a.htmegasecond&&"secs"==t.toLowerCase()?`<div class="htmega-time htmega-secs">\n <div class="htmega-time-inner">
1750\n <span class="ht-count htmega-curr htmega-top">${n}</span>\n <span class="ht-count htmega-next htmega-top">${o}</span>\n <span class="ht-count htmega-next htmega-bottom">${o}</span>\n <span class="ht-count htmega-curr htmega-bottom">${n}</span>\n </div>\n <span class="htmega-label">${"yes"==a.lavelhide?"":e("<p>").text(a.htmegasecondstxt).prop("outerHTML")}</span>\n </div>`:void 0}(n,d[n],d[n]))}),t.countdown(n,function(e){var n,a=e.strftime("%D:%H:%M:%S");a!==i&&(s=i,i=a,function(e,t){var n=[];return o.forEach(function(a){e[a]!==t[a]&&n.push(a)}),n}((n={curr:l(s),next:l(i)}).curr,n.next).forEach(function(e){var a=".%s".replace(/%s/,`htmega-${e.toLowerCase()}`),o=t.find(a);o.removeClass("htmega-flip"),o.find(".htmega-curr").text(n.curr[e]),o.find(".htmega-next").text(n.next[e]),setTimeout(function(){o.addClass("htmega-flip")})}))})}var c=function(e,t){var n=e.find("[data-countdown]").eq(0);n.length>0&&n.each(function(){var e=t(this),n=e.data("countdown");"flip"===n.style?d(e,n.htmegadate,n):e.countdown(n.htmegadate,function(a){var o,s,i,r,l;"yes"==n.lavelhide?(s='<span class="ht-count days"><span class="count-inner"><span class="time-count">%-D</span> </span></span>',i='<span class="ht-count hour"><span class="count-inner"><span class="time-count">%-H</span> </span></span>',r='<span class="ht-count minutes"><span class="count-inner"><span class="time-count">%M</span> </span></span>',l='<span class="ht-count second"><span class="count-inner"><span class="time-count">%S</span> </span></span>'):(s='<span class="ht-count days"><span class="count-inner"><span class="time-count">%-D</span>'+t("<p>").text(n.htmegadaytxt).prop("outerHTML")+"</span></span>",i='<span class="ht-count hour"><span class="count-inner"><span class="time-count">%-H</span>'+t("<p>").text(n.htmegahourtxt).prop("outerHTML")+"</span></span>",r='<span class="ht-count minutes"><span class="count-inner"><span class="time-count">%M</span>'+t("<p>").text(n.htmegaminutestxt).prop("outerHTML")+"</span></span>",l='<span class="ht-count second"><span class="count-inner"><span class="time-count">%S</span>'+t("<p>").text(n.htmegasecondstxt).prop("outerHTML")+"</span></span>"),o=s+i+r+l,"yes"!=n.htmegaday&&(o=i+r+l),"yes"!=n.htmegahours&&(o=s+r+l),"yes"!=n.htmegaminiute&&(o=s+i+l),"yes"!=n.htmegasecond&&(o=s+i+r),e.html(a.strftime(o))})})},p=function(e,t){var n=e.find(".plus_click").eq(0);n.length>0&&n.on("click",function(e){e.preventDefault(),t(this).parent(".htmega-team-click-action").toggleClass("visible"),t(this).toggleClass("team-minus")})},m=function(e,t){var n=e.find(".htmega-newstricker").eq(0);if(n[0].parentNode.style.display="flex",n.length>0){var a=n.data("newstrickeropt");n.newsTicker({row_height:a.rowheight,max_rows:a.maxrows,speed:a.speed,duration:a.duration,autostart:a.autostart,direction:a.direction,pauseOnHover:a.pauseonhover,prevButton:t(".news-ticker-prev"),nextButton:t(".news-ticker-next")})}},u=function(e,t){var n=e.find(".image-popup-vertical-fit").eq(0);if(n.length>0){var a=n.data("popupoption");n.magnificPopup({type:a.datatype,closeOnContentClick:!0,mainClass:"mfp-img-mobile",image:{verticalFit:!0,titleSrc:"This is title"}})}},h=function(e,t){"self"==e.find(".htmega-player-container").eq(0).data("videotype").videocontainer?e.find(".htmega-video-player").eq(0).YTPlayer():e.find(".magnify-video-active").eq(0).magnificPopup({type:"iframe"})},g=function(e,t){t('[data-toggle="tooltip"]').htbtooltip({animation:!1})},f=function(e,t){t('[data-toggle="popover"]').htbpopover(),t('[data-toggle="popover"].show').htbpopover("show"),t("body").on("click",function(e){"popover"!==t(e.target).data("toggle")&&0===t(e.target).parents(".popover.in").length&&t('[data-toggle="popover"]').htbpopover("hide")})},v=function(e,t){var n=e.find(".htmega_notify_area").eq(0),a=n.data("notifyopt");n.length>0&&t(a.notify_btn_class).on("click",function(){t.notify({},{type:a.type,element:a.notify_class,delay:a.delay,timer:1e3,newest_on_top:!0,mouse_over:null,animate:{enter:"animated "+a.enter,exit:"animated "+a.exit},placement:{from:a.from,align:a.align},offset:a.offset,spacing:10,z_index:99999,template:'<div class="htmega-alert-wrap-'+a.wrapid+" "+a.width+' alert alert-{0}"><span data-notify="dismiss" class="htmega-close"><i class="fas fa-times"></i></span>'+a.icon+'<span class="notify-message-content">'+DOMPurify.sanitize(a.notifymessage)+"</span></div>"})})},y=function(e,t){var n=e.find(".htmega-counter-number").eq(0);new Waypoint({element:n[0],handler:function(e){"down"===e&&t(n).numerator({easing:"swing",duration:2e3,toValue:parseFloat(n[0].dataset.toValue)}),this.destroy()},offset:"90%"})},_=function(e,t){var n=e.find(".htmega-masonry-activation").eq(0);n.length>0&&n.imagesLoaded(function(){n[0].style.display="block",t(".masonry-wrap").isotope({itemSelector:".masonary-item",percentPosition:!0,transitionDuration:"0.7s",masonry:{columnWidth:".masonary-sizer"}})})},b=function(e,t){var n=e.find(".swiper-container").eq(0),a=n.data("settings"),o=parseInt(a.tablet_width),s=parseInt(a.mobile_width),i=new Swiper(n[0],{direction:a.direction,slidesPerView:a.slideitem,initialSlide:a.initialslide,spaceBetween:0,simulateTouch:a.simulateTouch,mousewheel:{releaseOnEdges:!0},speed:a.speed,pagination:{el:".swiper-pagination",clickable:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},keyboard:{enabled:a.keyboardscroll,onlyInViewport:!1},breakpoints:{[o]:{direction:a.tablet_direction},[s]:{direction:a.mobile_direction}}});0==a.mousewheel&&i.mousewheel.disable(),1==a.slide_custom_menu&&t('a[href^="#htmega-scroll-slide"]').on("click",function(e){e.preventDefault();var n=t(this).attr("href"),a=parseInt(n.replace("#htmega-scroll-slide-",""),0);n!==a&&a>0&&i.slideTo(a-1)})},w=function(e,t){var n=e.find(".ht-post-grid-tab").eq(0),a=n.data("postgridtab");n.length>0&&(t(".post-gridthumb-"+a.wrapid).each(function(){t(this).on("click",function(e){e.preventDefault(),t(this).next(".post-gridcontent-"+a.wrapid).slideToggle().siblings(".post-gridcontent-"+a.wrapid).slideUp(),t(this).next(".post-gridcontent-"+a.wrapid).toggleClass("is-visible").siblings(".post-gridcontent-").removeClass("is-visible")})}),t(".post-gridclose-"+a.wrapid).on("click",function(){t(this).parent(".post-gridcontent-"+a.wrapid).slideUp()}))},k=function(e,t){var n=function(){return"function"==typeof t.fn.magnify&&(e.find(".magnifier-thumb-wrapper img.zoom").each(function(){var e=t(this);e.parent("div.magnify").length&&"function"==typeof e.destroy&&e.destroy(),e.magnify()}),!0)};if(!n())var a=0,o=window.setInterval(function(){a+=1,(n()||a>50)&&window.clearInterval(o)},50)},x=function(e,t){"function"==typeof window.BeerSlider&&("function"!=typeof t.fn.BeerSlider&&(t.fn.BeerSlider=function(e){return e=e||{},this.each(function(){t(this).find(".beer-range").length||new window.BeerSlider(this,e)})}),e.find(".beer-slider").each(function(){var e=t(this);e.find(".beer-range").length||e.BeerSlider({start:e.data("start")})}))},S=function(){T(e(".htmega-tab-nav"))},I=function(){T(e(".htmega-switcher-nav"))};function T(t){t.on("click","a",function(t){if(t.preventDefault(),e(".slick-slider").length>0){var n=e(this).attr("href");e(n).find(".slick-slider").slick("refresh")}})}var A=function(e,t){var n=e.find(".htmega-audio-player-wrapper").eq(0);if(n.length>0){n[0].style.display="flex";var a=n.data("audio-settings");if(n.find(".htmega-audio-player").mediaelementplayer({shimScriptAccess:"always",alwaysShowControls:!0,features:a.features,hideVolumeOnTouchDevices:!0,startVolume:parseFloat(a.startVolume),audioVolume:a.audioVolume,autoRewind:!0,enableAutosize:!0,stretching:"auto",classPrefix:"mejs-",enableKeyboard:!0,pauseOtherPlayers:!0,duration:-1,success:function(e,n,o){e.setCurrentTime(parseFloat(a.restrictTime)),e.addEventListener("progress",function(){const n=e.duration,a=t(e).siblings(".mejs__time-total").find(".mejs__duration");a.length>0&&a.text(e.formatTime(n))}),e&&e.load()}}),a?.playerIcons){let e=n.find(".mejs-playpause-button button"),t=n.find(".mejs-volume-button button");e.html(`<i aria-hidden="true" class="htmega-audio-play ${a.playerIcons.play}"></i><i aria-hidden="true" class="htmega-audio-pause ${a.playerIcons.pause}"></i><i aria-hidden="true" class="htmega-audio-replay ${a.playerIcons.replay}"></i>`),t.html(`<i aria-hidden="true" class="htmega-audio-unmute ${a.playerIcons.unmute}"></i><i aria-hidden="true" class="htmega-audio-mute ${a.playerIcons.mute}"></i>`)}}};e(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/htmega-tab-addons.default",S),elementorFrontend.hooks.addAction("frontend/element_ready/htmega-google-map-addons.default",i),elementorFrontend.hooks.addAction("frontend/element_ready/htmega-accordion-addons.default",r),elementorFrontend.hooks.addAction("frontend/element_ready/htmega-progressbar-addons.default",l),elementorFrontend.hooks.addAction("frontend/element_ready/htmega-countdown-addons.default",c),elementorFrontend.hooks.addAction("frontend/element_ready/htmega-team-member-addons.default",p),elementorFrontend.hooks.addAction("frontend/element_ready/htmega-testimonial-addons.default",a),elementorFrontend.hooks.addAction("frontend/element_ready/htmega-newtsicker-addons.default",m),elementorFrontend.hooks.addAction("frontend/element_ready/htmega-magnific-popup-addons.default",u),elementorFrontend.hooks.addAction("frontend/element_ready/htmega-videoplayer-addons.default",h),elementorFrontend.hooks.addAction("frontend/element_ready/htmega-instagram-addons.default",o),elementorFrontend.hooks.addAction("frontend/element_ready/htmega-tooltip-addons.default",g),elementorFrontend.hooks.addAction("frontend/element_ready/htmega-popover-addons.default",f),elementorFrontend.hooks.addAction("frontend/element_ready/htmega-notify-addons.default",v),elementorFrontend.hooks.addAction("frontend/element_ready/htmega-counter-addons.default",y),elementorFrontend.hooks.addAction("frontend/element_ready/htmega-postslider-addons.default",o),elementorFrontend.hooks.addAction("frontend/element_ready/htmega-thumbgallery-addons.default",s),elementorFrontend.hooks.addAction("frontend/element_ready/htmega-imagemasonryd-addons.default",_),elementorFrontend.hooks.addAction("frontend/element_ready/htmega-scrollnavigation-addons.default",b),elementorFrontend.hooks.addAction("frontend/element_ready/htmega-twitterfeed-addons.default",o),elementorFrontend.hooks.addAction("frontend/element_ready/htmega-carousel-addons.default",o),elementorFrontend.hooks.addAction("frontend/element_ready/htmega-postcarousel-addons.default",o),elementorFrontend.hooks.addAction("frontend/element_ready/htmega-postgridtab-addons.default",w),elementorFrontend.hooks.addAction("frontend/element_ready/htmega-imagemagnifier-addons.default",k),elementorFrontend.hooks.addAction("frontend/element_ready/htmega-imagecomparison-addons.default",x),elementorFrontend.hooks.addAction("frontend/element_ready/htmega-panelslider-addons.default",o),elementorFrontend.hooks.addAction("frontend/element_ready/htmega-switcher-addons.default",I),elementorFrontend.hooks.addAction("frontend/element_ready/htmega-audio-player-addons.default",A)})}(jQuery); 1751 1752 1753 1754} 1755catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://labadibeachhotelgh.com/w
vendor: 1,909 bytes, lines 1755-1763
1755p-content/plugins/ht-mega-for-elementor/assets/js/htmega-widgets-active.min.js\n- Error message: "+ e.message);} 1756 1757 1758 var wcBlocksMiddlewareConfig = { 1759 storeApiNonce: '048b8c78f0', 1760 wcStoreApiNonceTimestamp: '1790786511' 1761 }; 1762 1763!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";var H;function _(){return H.apply(null,arguments)}function y(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function F(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function c(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function L(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(c(e,t))return;return 1}function g(e){return void 0===e}function w(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function V(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function G(e,t){for(var n=[],s=e.length,i=0;i<s;++i)n.push(t(e[i],i));return n}function E(e,t){for(var n in t)c(t,n)&&(e[n]=t[n]);return c(t,"toString")&&(e.toString=t.toString),c(t,"valueOf")&&(e.valueOf=t.valueOf),e}function l(e,t,n,s){return Wt(e,t,n,s,!0).utc()}function p(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function A(e){var t,n,s=e._d&&!isNaN(e._d.getTime());return s&&(t=p(e),n=j.call(t.parsedDateParts,function(e){return null!=e}),s=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||(t.meridiem,n)
vendor: 32,731 bytes, line 1763
1763),e._strict)&&(s=s&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e)?s:(e._isValid=s,e._isValid)}function I(e){var t=l(NaN);return null!=e?E(p(t),e):p(t).userInvalidated=!0,t}var j=Array.prototype.some||function(e){for(var t=Object(this),n=t.length>>>0,s=0;s<n;s++)if(s in t&&e.call(this,t[s],s,t))return!0;return!1},Z=_.momentProperties=[],z=!1;function q(e,t){var n,s,i,r=Z.length;if(g(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),g(t._i)||(e._i=t._i),g(t._f)||(e._f=t._f),g(t._l)||(e._l=t._l),g(t._strict)||(e._strict=t._strict),g(t._tzm)||(e._tzm=t._tzm),g(t._isUTC)||(e._isUTC=t._isUTC),g(t._offset)||(e._offset=t._offset),g(t._pf)||(e._pf=p(t)),g(t._locale)||(e._locale=t._locale),0<r)for(n=0;n<r;n++)g(i=t[s=Z[n]])||(e[s]=i);return e}function $(e){q(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===z&&(z=!0,_.updateOffset(this),z=!1)}function k(e){return e instanceof $||null!=e&&null!=e._isAMomentObject}function B(e){!1===_.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function e(r,a){var o=!0;return E(function(){if(null!=_.deprecationHandler&&_.deprecationHandler(null,r),o){for(var e,t,n=[],s=arguments.length,i=0;i<s;i++){if(e="","object"==typeof arguments[i]){for(t in e+="\n["+i+"] ",arguments[0])c(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[i];n.push(e)}B(r+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),o=!1}return a.apply(this,arguments)},a)}var J={};function Q(e,t){null!=_.deprecationHandler&&_.deprecationHandler(e,t),J[e]||(B(t),J[e]=!0)}function a(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function X(e,t){var n,s=E({},e);for(n in t)c(t,n)&&(F(e[n])&&F(t[n])?(s[n]={},E(s[n],e[n]),E(s[n],t[n])):null!=t[n]?s[n]=t[n]:delete s[n]);for(n in e)c(e,n)&&!c(t,n)&&F(e[n])&&(s[n]=E({},s[n]));return s}function K(e){null!=e&&this.set(e)}_.suppressDeprecationWarnings=!1,_.deprecationHandler=null;var ee=Object.keys||function(e){var t,n=[];for(t in e)c(e,t)&&n.push(t);return n};function r(e,t,n){var s=""+Math.abs(e);return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,t-s.length)).toString().substr(1)+s}var te=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ne=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,se={},ie={};function s(e,t,n,s){var i="string"==typeof s?function(){return this[s]()}:s;e&&(ie[e]=i),t&&(ie[t[0]]=function(){return r(i.apply(this,arguments),t[1],t[2])}),n&&(ie[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function re(e,t){return e.isValid()?(t=ae(t,e.localeData()),se[t]=se[t]||function(s){for(var e,i=s.match(te),t=0,r=i.length;t<r;t++)ie[i[t]]?i[t]=ie[i[t]]:i[t]=(e=i[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",n=0;n<r;n++)t+=a(i[n])?i[n].call(e,s):i[n];return t}}(t),se[t](e)):e.localeData().invalidDate()}function ae(e,t){var n=5;function s(e){return t.longDateFormat(e)||e}for(ne.lastIndex=0;0<=n&&ne.test(e);)e=e.replace(ne,s),ne.lastIndex=0,--n;return e}var oe={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function o(e){return"string"==typeof e?oe[e]||oe[e.toLowerCase()]:void 0}function ue(e){var t,n,s={};for(n in e)c(e,n)&&(t=o(n))&&(s[t]=e[n]);return s}var le={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};var de=/\d/,t=/\d\d/,he=/\d{3}/,ce=/\d{4}/,fe=/[+-]?\d{6}/,n=/\d\d?/,me=/\d\d\d\d?/,_e=/\d\d\d\d\d\d?/,ye=/\d{1,3}/,ge=/\d{1,4}/,we=/[+-]?\d{1,6}/,pe=/\d+/,ke=/[+-]?\d+/,Me=/Z|[+-]\d\d:?\d\d/gi,ve=/Z|[+-]\d\d(?::?\d\d)?/gi,i=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,u=/^[1-9]\d?/,d=/^([1-9]\d|\d)/;function h(e,n,s){Ye[e]=a(n)?n:function(e,t){return e&&s?s:n}}function De(e,t){return c(Ye,e)?Ye[e](t._strict,t._locale):new RegExp(f(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,s,i){return t||n||s||i})))}function f(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function m(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function M(e){var e=+e,t=0;return t=0!=e&&isFinite(e)?m(e):t}var Ye={},Se={};function v(e,n){var t,s,i=n;for("string"==typeof e&&(e=[e]),w(n)&&(i=function(e,t){t[n]=M(e)}),s=e.length,t=0;t<s;t++)Se[e[t]]=i}function Oe(e,i){v(e,function(e,t,n,s){n._w=n._w||{},i(e,n._w,n,s)})}function be(e){return e%4==0&&e%100!=0||e%400==0}var D=0,Y=1,S=2,O=3,b=4,T=5,Te=6,xe=7,Ne=8;function We(e){return be(e)?366:365}s("Y",0,0,function(){var e=this.year();return e<=9999?r(e,4):"+"+e}),s(0,["YY",2],0,function(){return this.year()%100}),s(0,["YYYY",4],0,"year"),s(0,["YYYYY",5],0,"year"),s(0,["YYYYYY",6,!0],0,"year"),h("Y",ke),h("YY",n,t),h("YYYY",ge,ce),h("YYYYY",we,fe),h("YYYYYY",we,fe),v(["YYYYY","YYYYYY"],D),v("YYYY",function(e,t){t[D]=2===e.length?_.parseTwoDigitYear(e):M(e)}),v("YY",function(e,t){t[D]=_.parseTwoDigitYear(e)}),v("Y",function(e,t){t[D]=parseInt(e,10)}),_.parseTwoDigitYear=function(e){return M(e)+(68<M(e)?1900:2e3)};var x,Pe=Re("FullYear",!0);function Re(t,n){return function(e){return null!=e?(Ue(this,t,e),_.updateOffset(this,n),this):Ce(this,t)}}function Ce(e,t){if(!e.isValid())return NaN;var n=e._d,s=e._isUTC;switch(t){case"Milliseconds":return s?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return s?n.getUTCSeconds():n.getSeconds();case"Minutes":return s?n.getUTCMinutes():n.getMinutes();case"Hours":return s?n.getUTCHours():n.getHours();case"Date":return s?n.getUTCDate():n.getDate();case"Day":return s?n.getUTCDay():n.getDay();case"Month":return s?n.getUTCMonth():n.getMonth();case"FullYear":return s?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Ue(e,t,n){var s,i,r;if(e.isValid()&&!isNaN(n)){switch(s=e._d,i=e._isUTC,t){case"Milliseconds":return i?s.setUTCMilliseconds(n):s.setMilliseconds(n);case"Seconds":return i?s.setUTCSeconds(n):s.setSeconds(n);case"Minutes":return i?s.setUTCMinutes(n):s.setMinutes(n);case"Hours":return i?s.setUTCHours(n):s.setHours(n);case"Date":return i?s.setUTCDate(n):s.setDate(n);case"FullYear":break;default:return}t=n,r=e.month(),e=29!==(e=e.date())||1!==r||be(t)?e:28,i?s.setUTCFullYear(t,r,e):s.setFullYear(t,r,e)}}function He(e,t){var n;return isNaN(e)||isNaN(t)?NaN:(n=(t%(n=12)+n)%n,e+=(t-n)/12,1==n?be(e)?29:28:31-n%7%2)}x=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},s("M",["MM",2],"Mo",function(){return this.month()+1}),s("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),s("MMMM",0,0,function(e){return this.localeData().months(this,e)}),h("M",n,u),h("MM",n,t),h("MMM",function(e,t){return t.monthsShortRegex(e)}),h("MMMM",function(e,t){return t.monthsRegex(e)}),v(["M","MM"],function(e,t){t[Y]=M(e)-1}),v(["MMM","MMMM"],function(e,t,n,s){s=n._locale.monthsParse(e,s,n._strict);null!=s?t[Y]=s:p(n).invalidMonth=e});var Fe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Le="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ve=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ge=i,Ee=i;function Ae(e,t){if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=M(t);else if(!w(t=e.localeData().monthsParse(t)))return;var n=(n=e.date())<29?n:Math.min(n,He(e.year(),t));e._isUTC?e._d.setUTCMonth(t,n):e._d.setMonth(t,n)}}function Ie(e){return null!=e?(Ae(this,e),_.updateOffset(this,!0),this):Ce(this,"Month")}function je(){function e(e,t){return t.length-e.length}for(var t,n,s=[],i=[],r=[],a=0;a<12;a++)n=l([2e3,a]),t=f(this.monthsShort(n,"")),n=f(this.months(n,"")),s.push(t),i.push(n),r.push(n),r.push(t);s.sort(e),i.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Ze(e,t,n,s,i,r,a){var o;return e<100&&0<=e?(o=new Date(e+400,t,n,s,i,r,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,s,i,r,a),o}function ze(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function qe(e,t,n){n=7+t-n;return n-(7+ze(e,0,n).getUTCDay()-t)%7-1}function $e(e,t,n,s,i){var r,t=1+7*(t-1)+(7+n-s)%7+qe(e,s,i),n=t<=0?We(r=e-1)+t:t>We(e)?(r=e+1,t-We(e)):(r=e,t);return{year:r,dayOfYear:n}}function Be(e,t,n){var s,i,r=qe(e.year(),t,n),r=Math.floor((e.dayOfYear()-r-1)/7)+1;return r<1?s=r+N(i=e.year()-1,t,n):r>N(e.year(),t,n)?(s=r-N(e.year(),t,n),i=e.year()+1):(i=e.year(),s=r),{week:s,year:i}}function N(e,t,n){var s=qe(e,t,n),t=qe(e+1,t,n);return(We(e)-s+t)/7}s("w",["ww",2],"wo","week"),s("W",["WW",2],"Wo","isoWeek"),h("w",n,u),h("ww",n,t),h("W",n,u),h("WW",n,t),Oe(["w","ww","W","WW"],function(e,t,n,s){t[s.substr(0,1)]=M(e)});function Je(e,t){return e.slice(t,7).concat(e.slice(0,t))}s("d",0,"do","day"),s("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),s("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),s("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),s("e",0,0,"weekday"),s("E",0,0,"isoWeekday"),h("d",n),h("e",n),h("E",n),h("dd",function(e,t){return t.weekdaysMinRegex(e)}),h("ddd",function(e,t){return t.weekdaysShortRegex(e)}),h("dddd",function(e,t){return t.weekdaysRegex(e)}),Oe(["dd","ddd","dddd"],function(e,t,n,s){s=n._locale.weekdaysParse(e,s,n._strict);null!=s?t.d=s:p(n).invalidWeekday=e}),Oe(["d","e","E"],function(e,t,n,s){t[s]=M(e)});var Qe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ke="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),et=i,tt=i,nt=i;function st(){function e(e,t){return t.length-e.length}for(var t,n,s,i=[],r=[],a=[],o=[],u=0;u<7;u++)s=l([2e3,1]).day(u),t=f(this.weekdaysMin(s,"")),n=f(this.weekdaysShort(s,"")),s=f(this.weekdays(s,"")),i.push(t),r.push(n),a.push(s),o.push(t),o.push(n),o.push(s);i.sort(e),r.sort(e),a.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function it(){return this.hours()%12||12}function rt(e,t){s(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function at(e,t){return t._meridiemParse}s("H",["HH",2],0,"hour"),s("h",["hh",2],0,it),s("k",["kk",2],0,function(){return this.hours()||24}),s("hmm",0,0,function(){return""+it.apply(this)+r(this.minutes(),2)}),s("hmmss",0,0,function(){return""+it.apply(this)+r(this.minutes(),2)+r(this.seconds(),2)}),s("Hmm",0,0,function(){return""+this.hours()+r(this.minutes(),2)}),s("Hmmss",0,0,function(){return""+this.hours()+r(this.minutes(),2)+r(this.seconds(),2)}),rt("a",!0),rt("A",!1),h("a",at),h("A",at),h("H",n,d),h("h",n,u),h("k",n,u),h("HH",n,t),h("hh",n,t),h("kk",n,t),h("hmm",me),h("hmmss",_e),h("Hmm",me),h("Hmmss",_e),v(["H","HH"],O),v(["k","kk"],function(e,t,n){e=M(e);t[O]=24===e?0:e}),v(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),v(["h","hh"],function(e,t,n){t[O]=M(e),p(n).bigHour=!0}),v("hmm",function(e,t,n){var s=e.length-2;t[O]=M(e.substr(0,s)),t[b]=M(e.substr(s)),p(n).bigHour=!0}),v("hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[O]=M(e.substr(0,s)),t[b]=M(e.substr(s,2)),t[T]=M(e.substr(i)),p(n).bigHour=!0}),v("Hmm",function(e,t,n){var s=e.length-2;t[O]=M(e.substr(0,s)),t[b]=M(e.substr(s))}),v("Hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[O]=M(e.substr(0,s)),t[b]=M(e.substr(s,2)),t[T]=M(e.substr(i))});i=Re("Hours",!0);var ot,ut={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Fe,monthsShort:Le,week:{dow:0,doy:6},weekdays:Qe,weekdaysMin:Ke,weekdaysShort:Xe,meridiemParse:/[ap]\.?m?\.?/i},W={},lt={};function dt(e){return e&&e.toLowerCase().replace("_","-")}function ht(e){for(var t,n,s,i,r=0;r<e.length;){for(t=(i=dt(e[r]).split("-")).length,n=(n=dt(e[r+1]))?n.split("-"):null;0<t;){if(s=ct(i.slice(0,t).join("-")))return s;if(n&&n.length>=t&&function(e,t){for(var n=Math.min(e.length,t.length),s=0;s<n;s+=1)if(e[s]!==t[s])return s;return n}(i,n)>=t-1)break;t--}r++}return ot}function ct(t){var e,n;if(void 0===W[t]&&"undefined"!=typeof module&&module&&module.exports&&(n=t)&&n.match("^[^/\\\\]*$"))try{e=ot._abbr,require("./locale/"+t),ft(e)}catch(e){W[t]=null}return W[t]}function ft(e,t){return e&&((t=g(t)?P(e):mt(e,t))?ot=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ot._abbr}function mt(e,t){if(null===t)return delete W[e],null;var n,s=ut;if(t.abbr=e,null!=W[e])Q("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=W[e]._config;else if(null!=t.parentLocale)if(null!=W[t.parentLocale])s=W[t.parentLocale]._config;else{if(null==(n=ct(t.parentLocale)))return lt[t.parentLocale]||(lt[t.parentLocale]=[]),lt[t.parentLocale].push({name:e,config:t}),null;s=n._config}return W[e]=new K(X(s,t)),lt[e]&<[e].forEach(function(e){mt(e.name,e.config)}),ft(e),W[e]}function P(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return ot;if(!y(e)){if(t=ct(e))return t;e=[e]}return ht(e)}function _t(e){var t=e._a;return t&&-2===p(e).overflow&&(t=t[Y]<0||11<t[Y]?Y:t[S]<1||t[S]>He(t[D],t[Y])?S:t[O]<0||24<t[O]||24===t[O]&&(0!==t[b]||0!==t[T]||0!==t[Te])?O:t[b]<0||59<t[b]?b:t[T]<0||59<t[T]?T:t[Te]<0||999<t[Te]?Te:-1,p(e)._overflowDayOfYear&&(t<D||S<t)&&(t=S),p(e)._overflowWeeks&&-1===t&&(t=xe),p(e)._overflowWeekday&&-1===t&&(t=Ne),p(e).overflow=t),e}var yt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wt=/Z|[+-]\d\d(?::?\d\d)?/,pt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],kt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Mt=/^\/?Date\((-?\d+)/i,vt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Dt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Yt(e){var t,n,s,i,r,a,o=e._i,u=yt.exec(o)||gt.exec(o),o=pt.length,l=kt.length;if(u){for(p(e).iso=!0,t=0,n=o;t<n;t++)if(pt[t][1].exec(u[1])){i=pt[t][0],s=!1!==pt[t][2];break}if(null==i)e._isValid=!1;else{if(u[3]){for(t=0,n=l;t<n;t++)if(kt[t][1].exec(u[3])){r=(u[2]||" ")+kt[t][0];break}if(null==r)return void(e._isValid=!1)}if(s||null==r){if(u[4]){if(!wt.exec(u[4]))return void(e._isValid=!1);a="Z"}e._f=i+(r||"")+(a||""),xt(e)}else e._isValid=!1}}else e._isValid=!1}function St(e,t,n,s,i,r){e=[function(e){e=parseInt(e,10);{if(e<=49)return 2e3+e;if(e<=999)return 1900+e}return e}(e),Le.indexOf(t),parseInt(n,10),parseInt(s,10),parseInt(i,10)];return r&&e.push(parseInt(r,10)),e}function Ot(e){var t,n,s=vt.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));s?(t=St(s[4],s[3],s[2],s[5],s[6],s[7]),function(e,t,n){if(!e||Xe.indexOf(e)===new Date(t[0],t[1],t[2]).getDay())return 1;p(n).weekdayMismatch=!0,n._isValid=!1}(s[1],t,e)&&(e._a=t,e._tzm=(t=s[8],n=s[9],s=s[10],t?Dt[t]:n?0:60*(((t=parseInt(s,10))-(n=t%100))/100)+n),e._d=ze.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0)):e._isValid=!1}function bt(e,t,n){return null!=e?e:null!=t?t:n}function Tt(e){var t,n,s,i,r,a,o,u,l,d,h,c=[];if(!e._d){for(s=e,i=new Date(_.now()),n=s._useUTC?[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()]:[i.getFullYear(),i.getMonth(),i.getDate()],e._w&&null==e._a[S]&&null==e._a[Y]&&(null!=(i=(s=e)._w).GG||null!=i.W||null!=i.E?(u=1,l=4,r=bt(i.GG,s._a[D],Be(R(),1,4).year),a=bt(i.W,1),((o=bt(i.E,1))<1||7<o)&&(d=!0)):(u=s._locale._week.dow,l=s._locale._week.doy,h=Be(R(),u,l),r=bt(i.gg,s._a[D],h.year),a=bt(i.w,h.week),null!=i.d?((o=i.d)<0||6<o)&&(d=!0):null!=i.e?(o=i.e+u,(i.e<0||6<i.e)&&(d=!0)):o=u),a<1||a>N(r,u,l)?p(s)._overflowWeeks=!0:null!=d?p(s)._overflowWeekday=!0:(h=$e(r,a,o,u,l),s._a[D]=h.year,s._dayOfYear=h.dayOfYear)),null!=e._dayOfYear&&(i=bt(e._a[D],n[D]),(e._dayOfYear>We(i)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),d=ze(i,0,e._dayOfYear),e._a[Y]=d.getUTCMonth(),e._a[S]=d.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=c[t]=n[t];for(;t<7;t++)e._a[t]=c[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[O]&&0===e._a[b]&&0===e._a[T]&&0===e._a[Te]&&(e._nextDay=!0,e._a[O]=0),e._d=(e._useUTC?ze:Ze).apply(null,c),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[O]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(p(e).weekdayMismatch=!0)}}function xt(e){if(e._f===_.ISO_8601)Yt(e);else if(e._f===_.RFC_2822)Ot(e);else{e._a=[],p(e).empty=!0;for(var t,n,s,i,r,a=""+e._i,o=a.length,u=0,l=ae(e._f,e._locale).match(te)||[],d=l.length,h=0;h<d;h++)n=l[h],(t=(a.match(De(n,e))||[])[0])&&(0<(s=a.substr(0,a.indexOf(t))).length&&p(e).unusedInput.push(s),a=a.slice(a.indexOf(t)+t.length),u+=t.length),ie[n]?(t?p(e).empty=!1:p(e).unusedTokens.push(n),s=n,r=e,null!=(i=t)&&c(Se,s)&&Se[s](i,r._a,r,s)):e._strict&&!t&&p(e).unusedTokens.push(n);p(e).charsLeftOver=o-u,0<a.length&&p(e).unusedInput.push(a),e._a[O]<=12&&!0===p(e).bigHour&&0<e._a[O]&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[O]=function(e,t,n){if(null==n)return t;return null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((e=e.isPM(n))&&t<12&&(t+=12),t=e||12!==t?t:0):t}(e._locale,e._a[O],e._meridiem),null!==(o=p(e).era)&&(e._a[D]=e._locale.erasConvertYear(o,e._a[D])),Tt(e),_t(e)}}function Nt(e){var t,n,s,i=e._i,r=e._f;if(e._locale=e._locale||P(e._l),null===i||void 0===r&&""===i)return I({nullInput:!0});if("string"==typeof i&&(e._i=i=e._locale.preparse(i)),k(i))return new $(_t(i));if(V(i))e._d=i;else if(y(r)){var a,o,u,l,d,h,c=e,f=!1,m=c._f.length;if(0===m)p(c).invalidFormat=!0,c._d=new Date(NaN);else{for(l=0;l<m;l++)d=0,h=!1,a=q({},c),null!=c._useUTC&&(a._useUTC=c._useUTC),a._f=c._f[l],xt(a),A(a)&&(h=!0),d=(d+=p(a).charsLeftOver)+10*p(a).unusedTokens.length,p(a).score=d,f?d<u&&(u=d,o=a):(null==u||d<u||h)&&(u=d,o=a,h)&&(f=!0);E(c,o||a)}}else if(r)xt(e);else if(g(r=(i=e)._i))i._d=new Date(_.now());else V(r)?i._d=new Date(r.valueOf()):"string"==typeof r?(n=i,null!==(t=Mt.exec(n._i))?n._d=new Date(+t[1]):(Yt(n),!1===n._isValid&&(delete n._isValid,Ot(n),!1===n._isValid)&&(delete n._isValid,n._strict?n._isValid=!1:_.createFromInputFallback(n)))):y(r)?(i._a=G(r.slice(0),function(e){return parseInt(e,10)}),Tt(i)):F(r)?(t=i)._d||(s=void 0===(n=ue(t._i)).day?n.date:n.day,t._a=G([n.year,n.month,s,n.hour,n.minute,n.second,n.millisecond],function(e){return e&&parseInt(e,10)}),Tt(t)):w(r)?i._d=new Date(r):_.createFromInputFallback(i);return A(e)||(e._d=null),e}function Wt(e,t,n,s,i){var r={};return!0!==t&&!1!==t||(s=t,t=void 0),!0!==n&&!1!==n||(s=n,n=void 0),(F(e)&&L(e)||y(e)&&0===e.length)&&(e=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=i,r._l=n,r._i=e,r._f=t,r._strict=s,(i=new $(_t(Nt(i=r))))._nextDay&&(i.add(1,"d"),i._nextDay=void 0),i}function R(e,t,n,s){return Wt(e,t,n,s,!1)}_.createFromInputFallback=e("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),_.ISO_8601=function(){},_.RFC_2822=function(){};me=e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=R.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:I()}),_e=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=R.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:I()});function Pt(e,t){var n,s;if(!(t=1===t.length&&y(t[0])?t[0]:t).length)return R();for(n=t[0],s=1;s<t.length;++s)t[s].isValid()&&!t[s][e](n)||(n=t[s]);return n}var Rt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ct(e){var e=ue(e),t=e.year||0,n=e.quarter||0,s=e.month||0,i=e.week||e.isoWeek||0,r=e.day||0,a=e.hour||0,o=e.minute||0,u=e.second||0,l=e.millisecond||0;this._isValid=function(e){var t,n,s=!1,i=Rt.length;for(t in e)if(c(e,t)&&(-1===x.call(Rt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[Rt[n]]){if(s)return!1;parseFloat(e[Rt[n]])!==M(e[Rt[n]])&&(s=!0)}return!0}(e),this._milliseconds=+l+1e3*u+6e4*o+1e3*a*60*60,this._days=+r+7*i,this._months=+s+3*n+12*t,this._data={},this._locale=P(),this._bubble()}function Ut(e){return e instanceof Ct}function Ht(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ft(e,n){s(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+r(~~(e/60),2)+n+r(~~e%60,2)})}Ft("Z",":"),Ft("ZZ",""),h("Z",ve),h("ZZ",ve),v(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Vt(ve,e)});var Lt=/([\+\-]|\d\d)/gi;function Vt(e,t){var t=(t||"").match(e);return null===t?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Lt)||["-",0,0])[1]+M(e[2]))?0:"+"===e[0]?t:-t}function Gt(e,t){var n;return t._isUTC?(t=t.clone(),n=(k(e)||V(e)?e:R(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+n),_.updateOffset(t,!1),t):R(e).local()}function Et(e){return-Math.round(e._d.getTimezoneOffset())}function At(){return!!this.isValid()&&this._isUTC&&0===this._offset}_.updateOffset=function(){};var It=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,jt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function C(e,t){var n,s=e;return Ut(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:w(e)||!isNaN(+e)?(s={},t?s[t]=+e:s.milliseconds=+e):(t=It.exec(e))?(n="-"===t[1]?-1:1,s={y:0,d:M(t[S])*n,h:M(t[O])*n,m:M(t[b])*n,s:M(t[T])*n,ms:M(Ht(1e3*t[Te]))*n}):(t=jt.exec(e))?(n="-"===t[1]?-1:1,s={y:Zt(t[2],n),M:Zt(t[3],n),w:Zt(t[4],n),d:Zt(t[5],n),h:Zt(t[6],n),m:Zt(t[7],n),s:Zt(t[8],n)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(t=function(e,t){var n;if(!e.isValid()||!t.isValid())return{milliseconds:0,months:0};t=Gt(t,e),e.isBefore(t)?n=zt(e,t):((n=zt(t,e)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(R(s.from),R(s.to)),(s={}).ms=t.milliseconds,s.M=t.months),n=new Ct(s),Ut(e)&&c(e,"_locale")&&(n._locale=e._locale),Ut(e)&&c(e,"_isValid")&&(n._isValid=e._isValid),n}function Zt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function zt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function qt(s,i){return function(e,t){var n;return null===t||isNaN(+t)||(Q(i,"moment()."+i+"(period, number) is deprecated. Please use moment()."+i+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=e,e=t,t=n),$t(this,C(e,t),s),this}}function $t(e,t,n,s){var i=t._milliseconds,r=Ht(t._days),t=Ht(t._months);e.isValid()&&(s=null==s||s,t&&Ae(e,Ce(e,"Month")+t*n),r&&Ue(e,"Date",Ce(e,"Date")+r*n),i&&e._d.setTime(e._d.valueOf()+i*n),s)&&_.updateOffset(e,r||t)}C.fn=Ct.prototype,C.invalid=function(){return C(NaN)};Fe=qt(1,"add"),Qe=qt(-1,"subtract");function Bt(e){return"string"==typeof e||e instanceof String}function Jt(e){return k(e)||V(e)||Bt(e)||w(e)||function(t){var e=y(t),n=!1;e&&(n=0===t.filter(function(e){return!w(e)&&Bt(t)}).length);return e&&n}(e)||function(e){var t,n,s=F(e)&&!L(e),i=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a=r.length;for(t=0;t<a;t+=1)n=r[t],i=i||c(e,n);return s&&i}(e)||null==e}function Qt(e,t){var n,s;return e.date()<t.date()?-Qt(t,e):-((n=12*(t.year()-e.year())+(t.month()-e.month()))+(t-(s=e.clone().add(n,"months"))<0?(t-s)/(s-e.clone().add(n-1,"months")):(t-s)/(e.clone().add(1+n,"months")-s)))||0}function Xt(e){return void 0===e?this._locale._abbr:(null!=(e=P(e))&&(this._locale=e),this)}_.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",_.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";Ke=e("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function Kt(){return this._locale}var en=126227808e5;function tn(e,t){return(e%t+t)%t}function nn(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-en:new Date(e,t,n).valueOf()}function sn(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-en:Date.UTC(e,t,n)}function rn(e,t){return t.erasAbbrRegex(e)}function an(){for(var e,t,n,s=[],i=[],r=[],a=[],o=this.eras(),u=0,l=o.length;u<l;++u)e=f(o[u].name),t=f(o[u].abbr),n=f(o[u].narrow),i.push(e),s.push(t),r.push(n),a.push(e),a.push(t),a.push(n);this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+i.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function on(e,t){s(0,[e,e.length],0,t)}function un(e,t,n,s,i){var r;return null==e?Be(this,s,i).year:(r=N(e,s,i),function(e,t,n,s,i){e=$e(e,t,n,s,i),t=ze(e.year,0,e.dayOfYear);return this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t=r<t?r:t,n,s,i))}s("N",0,0,"eraAbbr"),s("NN",0,0,"eraAbbr"),s("NNN",0,0,"eraAbbr"),s("NNNN",0,0,"eraName"),s("NNNNN",0,0,"eraNarrow"),s("y",["y",1],"yo","eraYear"),s("y",["yy",2],0,"eraYear"),s("y",["yyy",3],0,"eraYear"),s("y",["yyyy",4],0,"eraYear"),h("N",rn),h("NN",rn),h("NNN",rn),h("NNNN",function(e,t){return t.erasNameRegex(e)}),h("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),v(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,s){s=n._locale.erasParse(e,s,n._strict);s?p(n).era=s:p(n).invalidEra=e}),h("y",pe),h("yy",pe),h("yyy",pe),h("yyyy",pe),h("yo",function(e,t){return t._eraYearOrdinalRegex||pe}),v(["y","yy","yyy","yyyy"],D),v(["yo"],function(e,t,n,s){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[D]=n._locale.eraYearOrdinalParse(e,i):t[D]=parseInt(e,10)}),s(0,["gg",2],0,function(){return this.weekYear()%100}),s(0,["GG",2],0,function(){return this.isoWeekYear()%100}),on("gggg","weekYear"),on("ggggg","weekYear"),on("GGGG","isoWeekYear"),on("GGGGG","isoWeekYear"),h("G",ke),h("g",ke),h("GG",n,t),h("gg",n,t),h("GGGG",ge,ce),h("gggg",ge,ce),h("GGGGG",we,fe),h("ggggg",we,fe),Oe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,s){t[s.substr(0,2)]=M(e)}),Oe(["gg","GG"],function(e,t,n,s){t[s]=_.parseTwoDigitYear(e)}),s("Q",0,"Qo","quarter"),h("Q",de),v("Q",function(e,t){t[Y]=3*(M(e)-1)}),s("D",["DD",2],"Do","date"),h("D",n,u),h("DD",n,t),h("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),v(["D","DD"],S),v("Do",function(e,t){t[S]=M(e.match(n)[0])});ge=Re("Date",!0);s("DDD",["DDDD",3],"DDDo","dayOfYear"),h("DDD",ye),h("DDDD",he),v(["DDD","DDDD"],function(e,t,n){n._dayOfYear=M(e)}),s("m",["mm",2],0,"minute"),h("m",n,d),h("mm",n,t),v(["m","mm"],b);var ln,ce=Re("Minutes",!1),we=(s("s",["ss",2],0,"second"),h("s",n,d),h("ss",n,t),v(["s","ss"],T),Re("Seconds",!1));for(s("S",0,0,function(){return~~(this.millisecond()/100)}),s(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),s(0,["SSS",3],0,"millisecond"),s(0,["SSSS",4],0,function(){return 10*this.millisecond()}),s(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),s(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),s(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),s(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),s(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),h("S",ye,de),h("SS",ye,t),h("SSS",ye,he),ln="SSSS";ln.length<=9;ln+="S")h(ln,pe);function dn(e,t){t[Te]=M(1e3*("0."+e))}for(ln="S";ln.length<=9;ln+="S")v(ln,dn);fe=Re("Milliseconds",!1),s("z",0,0,"zoneAbbr"),s("zz",0,0,"zoneName");u=$.prototype;function hn(e){return e}u.add=Fe,u.calendar=function(e,t){1===arguments.length&&(arguments[0]?Jt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=F(e)&&!L(e),n=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i=0;i<s.length;i+=1)n=n||c(e,s[i]);return t&&n}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var e=e||R(),n=Gt(e,this).startOf("day"),n=_.calendarFormat(this,n)||"sameElse",t=t&&(a(t[n])?t[n].call(this,e):t[n]);return this.format(t||this.localeData().calendar(n,this,R(e)))},u.clone=function(){return new $(this)},u.diff=function(e,t,n){var s,i,r;if(!this.isValid())return NaN;if(!(s=Gt(e,this)).isValid())return NaN;switch(i=6e4*(s.utcOffset()-this.utcOffset()),t=o(t)){case"year":r=Qt(this,s)/12;break;case"month":r=Qt(this,s);break;case"quarter":r=Qt(this,s)/3;break;case"second":r=(this-s)/1e3;break;case"minute":r=(this-s)/6e4;break;case"hour":r=(this-s)/36e5;break;case"day":r=(this-s-i)/864e5;break;case"week":r=(this-s-i)/6048e5;break;default:r=this-s}return n?r:m(r)},u.endOf=function(e){var t,n;if(void 0!==(e=o(e))&&"millisecond"!==e&&this.isValid()){switch(n=this._isUTC?sn:nn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-tn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-tn(t,1e3)-1
vendor: 20,089 bytes, line 1763
1763}this._d.setTime(t),_.updateOffset(this,!0)}return this},u.format=function(e){return e=e||(this.isUtc()?_.defaultFormatUtc:_.defaultFormat),e=re(this,e),this.localeData().postformat(e)},u.from=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||R(e).isValid())?C({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},u.fromNow=function(e){return this.from(R(),e)},u.to=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||R(e).isValid())?C({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},u.toNow=function(e){return this.to(R(),e)},u.get=function(e){return a(this[e=o(e)])?this[e]():this},u.invalidAt=function(){return p(this).overflow},u.isAfter=function(e,t){return e=k(e)?e:R(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=o(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},u.isBefore=function(e,t){return e=k(e)?e:R(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=o(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},u.isBetween=function(e,t,n,s){return e=k(e)?e:R(e),t=k(t)?t:R(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(s=s||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===s[1]?this.isBefore(t,n):!this.isAfter(t,n))},u.isSame=function(e,t){var e=k(e)?e:R(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=o(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},u.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},u.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},u.isValid=function(){return A(this)},u.lang=Ke,u.locale=Xt,u.localeData=Kt,u.max=_e,u.min=me,u.parsingFlags=function(){return E({},p(this))},u.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t,n=[];for(t in e)c(e,t)&&n.push({unit:t,priority:le[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}(e=ue(e)),s=n.length,i=0;i<s;i++)this[n[i].unit](e[n[i].unit]);else if(a(this[e=o(e)]))return this[e](t);return this},u.startOf=function(e){var t,n;if(void 0!==(e=o(e))&&"millisecond"!==e&&this.isValid()){switch(n=this._isUTC?sn:nn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=tn(t,6e4);break;case"second":t=this._d.valueOf(),t-=tn(t,1e3)}this._d.setTime(t),_.updateOffset(this,!0)}return this},u.subtract=Qe,u.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},u.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},u.toDate=function(){return new Date(this.valueOf())},u.toISOString=function(e){var t;return this.isValid()?(t=(e=!0!==e)?this.clone().utc():this).year()<0||9999<t.year()?re(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):a(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",re(t,"Z")):re(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ"):null},u.inspect=function(){var e,t,n;return this.isValid()?(t="moment",e="",this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z"),t="["+t+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+n+"-MM-DD[T]HH:mm:ss.SSS"+(e+'[")]'))):"moment.invalid(/* "+this._i+" */)"},"undefined"!=typeof Symbol&&null!=Symbol.for&&(u[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),u.toJSON=function(){return this.isValid()?this.toISOString():null},u.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},u.unix=function(){return Math.floor(this.valueOf()/1e3)},u.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},u.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},u.eraName=function(){for(var e,t=this.localeData().eras(),n=0,s=t.length;n<s;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].name;if(t[n].until<=e&&e<=t[n].since)return t[n].name}return""},u.eraNarrow=function(){for(var e,t=this.localeData().eras(),n=0,s=t.length;n<s;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].narrow;if(t[n].until<=e&&e<=t[n].since)return t[n].narrow}return""},u.eraAbbr=function(){for(var e,t=this.localeData().eras(),n=0,s=t.length;n<s;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].abbr;if(t[n].until<=e&&e<=t[n].since)return t[n].abbr}return""},u.eraYear=function(){for(var e,t,n=this.localeData().eras(),s=0,i=n.length;s<i;++s)if(e=n[s].since<=n[s].until?1:-1,t=this.clone().startOf("day").valueOf(),n[s].since<=t&&t<=n[s].until||n[s].until<=t&&t<=n[s].since)return(this.year()-_(n[s].since).year())*e+n[s].offset;return this.year()},u.year=Pe,u.isLeapYear=function(){return be(this.year())},u.weekYear=function(e){return un.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},u.isoWeekYear=function(e){return un.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},u.quarter=u.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},u.month=Ie,u.daysInMonth=function(){return He(this.year(),this.month())},u.week=u.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},u.isoWeek=u.isoWeeks=function(e){var t=Be(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},u.weeksInYear=function(){var e=this.localeData()._week;return N(this.year(),e.dow,e.doy)},u.weeksInWeekYear=function(){var e=this.localeData()._week;return N(this.weekYear(),e.dow,e.doy)},u.isoWeeksInYear=function(){return N(this.year(),1,4)},u.isoWeeksInISOWeekYear=function(){return N(this.isoWeekYear(),1,4)},u.date=ge,u.day=u.days=function(e){var t,n,s;return this.isValid()?(t=Ce(this,"Day"),null!=e?(n=e,s=this.localeData(),e="string"!=typeof n?n:isNaN(n)?"number"==typeof(n=s.weekdaysParse(n))?n:null:parseInt(n,10),this.add(e-t,"d")):t):null!=e?this:NaN},u.weekday=function(e){var t;return this.isValid()?(t=(this.day()+7-this.localeData()._week.dow)%7,null==e?t:this.add(e-t,"d")):null!=e?this:NaN},u.isoWeekday=function(e){var t,n;return this.isValid()?null!=e?(t=e,n=this.localeData(),n="string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?n:n-7)):this.day()||7:null!=e?this:NaN},u.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},u.hour=u.hours=i,u.minute=u.minutes=ce,u.second=u.seconds=we,u.millisecond=u.milliseconds=fe,u.utcOffset=function(e,t,n){var s,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?i:Et(this);if("string"==typeof e){if(null===(e=Vt(ve,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(s=Et(this)),this._offset=e,this._isUTC=!0,null!=s&&this.add(s,"m"),i!==e&&(!t||this._changeInProgress?$t(this,C(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,_.updateOffset(this,!0),this._changeInProgress=null)),this},u.utc=function(e){return this.utcOffset(0,e)},u.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e)&&this.subtract(Et(this),"m"),this},u.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Vt(Me,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},u.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?R(e).utcOffset():0,(this.utcOffset()-e)%60==0)},u.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},u.isLocal=function(){return!!this.isValid()&&!this._isUTC},u.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},u.isUtc=At,u.isUTC=At,u.zoneAbbr=function(){return this._isUTC?"UTC":""},u.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},u.dates=e("dates accessor is deprecated. Use date instead.",ge),u.months=e("months accessor is deprecated. Use month instead",Ie),u.years=e("years accessor is deprecated. Use year instead",Pe),u.zone=e("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),u.isDSTShifted=e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var e,t;return g(this._isDSTShifted)&&(q(e={},this),(e=Nt(e))._a?(t=(e._isUTC?l:R)(e._a),this._isDSTShifted=this.isValid()&&0<function(e,t,n){for(var s=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),r=0,a=0;a<s;a++)(n&&e[a]!==t[a]||!n&&M(e[a])!==M(t[a]))&&r++;return r+i}(e._a,t.toArray())):this._isDSTShifted=!1),this._isDSTShifted});d=K.prototype;function cn(e,t,n,s){var i=P(),s=l().set(s,t);return i[n](s,e)}function fn(e,t,n){if(w(e)&&(t=e,e=void 0),e=e||"",null!=t)return cn(e,t,n,"month");for(var s=[],i=0;i<12;i++)s[i]=cn(e,i,n,"month");return s}function mn(e,t,n,s){t=("boolean"==typeof e?w(t)&&(n=t,t=void 0):(t=e,e=!1,w(n=t)&&(n=t,t=void 0)),t||"");var i,r=P(),a=e?r._week.dow:0,o=[];if(null!=n)return cn(t,(n+a)%7,s,"day");for(i=0;i<7;i++)o[i]=cn(t,(i+a)%7,s,"day");return o}d.calendar=function(e,t,n){return a(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,n):e},d.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(te).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},d.invalidDate=function(){return this._invalidDate},d.ordinal=function(e){return this._ordinal.replace("%d",e)},d.preparse=hn,d.postformat=hn,d.relativeTime=function(e,t,n,s){var i=this._relativeTime[n];return a(i)?i(e,t,n,s):i.replace(/%d/i,e)},d.pastFuture=function(e,t){return a(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},d.set=function(e){var t,n;for(n in e)c(e,n)&&(a(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},d.eras=function(e,t){for(var n,s=this._eras||P("en")._eras,i=0,r=s.length;i<r;++i)switch("string"==typeof s[i].since&&(n=_(s[i].since).startOf("day"),s[i].since=n.valueOf()),typeof s[i].until){case"undefined":s[i].until=1/0;break;case"string":n=_(s[i].until).startOf("day").valueOf(),s[i].until=n.valueOf()}return s},d.erasParse=function(e,t,n){var s,i,r,a,o,u=this.eras();for(e=e.toUpperCase(),s=0,i=u.length;s<i;++s)if(r=u[s].name.toUpperCase(),a=u[s].abbr.toUpperCase(),o=u[s].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return u[s];break;case"NNNN":if(r===e)return u[s];break;case"NNNNN":if(o===e)return u[s]}else if(0<=[r,a,o].indexOf(e))return u[s]},d.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?_(e.since).year():_(e.since).year()+(t-e.offset)*n},d.erasAbbrRegex=function(e){return c(this,"_erasAbbrRegex")||an.call(this),e?this._erasAbbrRegex:this._erasRegex},d.erasNameRegex=function(e){return c(this,"_erasNameRegex")||an.call(this),e?this._erasNameRegex:this._erasRegex},d.erasNarrowRegex=function(e){return c(this,"_erasNarrowRegex")||an.call(this),e?this._erasNarrowRegex:this._erasRegex},d.months=function(e,t){return e?(y(this._months)?this._months:this._months[(this._months.isFormat||Ve).test(t)?"format":"standalone"])[e.month()]:y(this._months)?this._months:this._months.standalone},d.monthsShort=function(e,t){return e?(y(this._monthsShort)?this._monthsShort:this._monthsShort[Ve.test(t)?"format":"standalone"])[e.month()]:y(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},d.monthsParse=function(e,t,n){var s,i;if(this._monthsParseExact)return function(e,t,n){var s,i,r,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)r=l([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=x.call(this._shortMonthsParse,e))?i:null:-1!==(i=x.call(this._longMonthsParse,e))?i:null:"MMM"===t?-1!==(i=x.call(this._shortMonthsParse,e))||-1!==(i=x.call(this._longMonthsParse,e))?i:null:-1!==(i=x.call(this._longMonthsParse,e))||-1!==(i=x.call(this._shortMonthsParse,e))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(i=l([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[s]||(i="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[s]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[s].test(e))return s;if(n&&"MMM"===t&&this._shortMonthsParse[s].test(e))return s;if(!n&&this._monthsParse[s].test(e))return s}},d.monthsRegex=function(e){return this._monthsParseExact?(c(this,"_monthsRegex")||je.call(this),e?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=Ee),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},d.monthsShortRegex=function(e){return this._monthsParseExact?(c(this,"_monthsRegex")||je.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=Ge),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},d.week=function(e){return Be(e,this._week.dow,this._week.doy).week},d.firstDayOfYear=function(){return this._week.doy},d.firstDayOfWeek=function(){return this._week.dow},d.weekdays=function(e,t){return t=y(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?Je(t,this._week.dow):e?t[e.day()]:t},d.weekdaysMin=function(e){return!0===e?Je(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},d.weekdaysShort=function(e){return!0===e?Je(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},d.weekdaysParse=function(e,t,n){var s,i;if(this._weekdaysParseExact)return function(e,t,n){var s,i,r,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)r=l([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=x.call(this._weekdaysParse,e))?i:null:"ddd"===t?-1!==(i=x.call(this._shortWeekdaysParse,e))?i:null:-1!==(i=x.call(this._minWeekdaysParse,e))?i:null:"dddd"===t?-1!==(i=x.call(this._weekdaysParse,e))||-1!==(i=x.call(this._shortWeekdaysParse,e))||-1!==(i=x.call(this._minWeekdaysParse,e))?i:null:"ddd"===t?-1!==(i=x.call(this._shortWeekdaysParse,e))||-1!==(i=x.call(this._weekdaysParse,e))||-1!==(i=x.call(this._minWeekdaysParse,e))?i:null:-1!==(i=x.call(this._minWeekdaysParse,e))||-1!==(i=x.call(this._weekdaysParse,e))||-1!==(i=x.call(this._shortWeekdaysParse,e))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(i=l([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(i="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[s]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[s].test(e))return s;if(n&&"ddd"===t&&this._shortWeekdaysParse[s].test(e))return s;if(n&&"dd"===t&&this._minWeekdaysParse[s].test(e))return s;if(!n&&this._weekdaysParse[s].test(e))return s}},d.weekdaysRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||st.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=et),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},d.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||st.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=tt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},d.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||st.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=nt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},d.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},d.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},ft("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===M(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),_.lang=e("moment.lang is deprecated. Use moment.locale instead.",ft),_.langData=e("moment.langData is deprecated. Use moment.localeData instead.",P);var _n=Math.abs;function yn(e,t,n,s){t=C(t,n);return e._milliseconds+=s*t._milliseconds,e._days+=s*t._days,e._months+=s*t._months,e._bubble()}function gn(e){return e<0?Math.floor(e):Math.ceil(e)}function wn(e){return 4800*e/146097}function pn(e){return 146097*e/4800}function kn(e){return function(){return this.as(e)}}de=kn("ms"),t=kn("s"),ye=kn("m"),he=kn("h"),Fe=kn("d"),_e=kn("w"),me=kn("M"),Qe=kn("Q"),i=kn("y"),ce=de;function Mn(e){return function(){return this.isValid()?this._data[e]:NaN}}var we=Mn("milliseconds"),fe=Mn("seconds"),ge=Mn("minutes"),Pe=Mn("hours"),d=Mn("days"),vn=Mn("months"),Dn=Mn("years");var Yn=Math.round,Sn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function On(e,t,n,s){var i=C(e).abs(),r=Yn(i.as("s")),a=Yn(i.as("m")),o=Yn(i.as("h")),u=Yn(i.as("d")),l=Yn(i.as("M")),d=Yn(i.as("w")),i=Yn(i.as("y")),r=(r<=n.ss?["s",r]:r<n.s&&["ss",r])||(a<=1?["m"]:a<n.m&&["mm",a])||(o<=1?["h"]:o<n.h&&["hh",o])||(u<=1?["d"]:u<n.d&&["dd",u]);return(r=(r=null!=n.w?r||(d<=1?["w"]:d<n.w&&["ww",d]):r)||(l<=1?["M"]:l<n.M&&["MM",l])||(i<=1?["y"]:["yy",i]))[2]=t,r[3]=0<+e,r[4]=s,function(e,t,n,s,i){return i.relativeTime(t||1,!!n,e,s)}.apply(null,r)}var bn=Math.abs;function Tn(e){return(0<e)-(e<0)||+e}function xn(){var e,t,n,s,i,r,a,o,u,l,d;return this.isValid()?(e=bn(this._milliseconds)/1e3,t=bn(this._days),n=bn(this._months),(o=this.asSeconds())?(s=m(e/60),i=m(s/60),e%=60,s%=60,r=m(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",u=Tn(this._months)!==Tn(o)?"-":"",l=Tn(this._days)!==Tn(o)?"-":"",d=Tn(this._milliseconds)!==Tn(o)?"-":"",(o
vendor: 4,631 bytes, lines 1763-1766
1763<0?"-":"")+"P"+(r?u+r+"Y":"")+(n?u+n+"M":"")+(t?l+t+"D":"")+(i||s||e?"T":"")+(i?d+i+"H":"")+(s?d+s+"M":"")+(e?d+a+"S":"")):"P0D"):this.localeData().invalidDate()}var U=Ct.prototype;return U.isValid=function(){return this._isValid},U.abs=function(){var e=this._data;return this._milliseconds=_n(this._milliseconds),this._days=_n(this._days),this._months=_n(this._months),e.milliseconds=_n(e.milliseconds),e.seconds=_n(e.seconds),e.minutes=_n(e.minutes),e.hours=_n(e.hours),e.months=_n(e.months),e.years=_n(e.years),this},U.add=function(e,t){return yn(this,e,t,1)},U.subtract=function(e,t){return yn(this,e,t,-1)},U.as=function(e){if(!this.isValid())return NaN;var t,n,s=this._milliseconds;if("month"===(e=o(e))||"quarter"===e||"year"===e)switch(t=this._days+s/864e5,n=this._months+wn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(pn(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return 24*t+s/36e5;case"minute":return 1440*t+s/6e4;case"second":return 86400*t+s/1e3;case"millisecond":return Math.floor(864e5*t)+s;default:throw new Error("Unknown unit "+e)}},U.asMilliseconds=de,U.asSeconds=t,U.asMinutes=ye,U.asHours=he,U.asDays=Fe,U.asWeeks=_e,U.asMonths=me,U.asQuarters=Qe,U.asYears=i,U.valueOf=ce,U._bubble=function(){var e=this._milliseconds,t=this._days,n=this._months,s=this._data;return 0<=e&&0<=t&&0<=n||e<=0&&t<=0&&n<=0||(e+=864e5*gn(pn(n)+t),n=t=0),s.milliseconds=e%1e3,e=m(e/1e3),s.seconds=e%60,e=m(e/60),s.minutes=e%60,e=m(e/60),s.hours=e%24,t+=m(e/24),n+=e=m(wn(t)),t-=gn(pn(e)),e=m(n/12),n%=12,s.days=t,s.months=n,s.years=e,this},U.clone=function(){return C(this)},U.get=function(e){return e=o(e),this.isValid()?this[e+"s"]():NaN},U.milliseconds=we,U.seconds=fe,U.minutes=ge,U.hours=Pe,U.days=d,U.weeks=function(){return m(this.days()/7)},U.months=vn,U.years=Dn,U.humanize=function(e,t){var n,s;return this.isValid()?(n=!1,s=Sn,"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(n=e),"object"==typeof t&&(s=Object.assign({},Sn,t),null!=t.s)&&null==t.ss&&(s.ss=t.s-1),e=this.localeData(),t=On(this,!n,s,e),n&&(t=e.pastFuture(+this,t)),e.postformat(t)):this.localeData().invalidDate()},U.toISOString=xn,U.toString=xn,U.toJSON=xn,U.locale=Xt,U.localeData=Kt,U.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",xn),U.lang=Ke,s("X",0,0,"unix"),s("x",0,0,"valueOf"),h("x",ke),h("X",/[+-]?\d+(\.\d{1,3})?/),v("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),v("x",function(e,t,n){n._d=new Date(M(e))}),_.version="2.30.1",H=R,_.fn=u,_.min=function(){return Pt("isBefore",[].slice.call(arguments,0))},_.max=function(){return Pt("isAfter",[].slice.call(arguments,0))},_.now=function(){return Date.now?Date.now():+new Date},_.utc=l,_.unix=function(e){return R(1e3*e)},_.months=function(e,t){return fn(e,t,"months")},_.isDate=V,_.locale=ft,_.invalid=I,_.duration=C,_.isMoment=k,_.weekdays=function(e,t,n){return mn(e,t,n,"weekdays")},_.parseZone=function(){return R.apply(null,arguments).parseZone()},_.localeData=P,_.isDuration=Ut,_.monthsShort=function(e,t){return fn(e,t,"monthsShort")},_.weekdaysMin=function(e,t,n){return mn(e,t,n,"weekdaysMin")},_.defineLocale=mt,_.updateLocale=function(e,t){var n,s;return null!=t?(s=ut,null!=W[e]&&null!=W[e].parentLocale?W[e].set(X(W[e]._config,t)):(t=X(s=null!=(n=ct(e))?n._config:s,t),null==n&&(t.abbr=e),(s=new K(t)).parentLocale=W[e],W[e]=s),ft(e)):null!=W[e]&&(null!=W[e].parentLocale?(W[e]=W[e].parentLocale,e===ft()&&ft(e)):null!=W[e]&&delete W[e]),W[e]},_.locales=function(){return ee(W)},_.weekdaysShort=function(e,t,n){return mn(e,t,n,"weekdaysShort")},_.normalizeUnits=o,_.relativeTimeRounding=function(e){return void 0===e?Yn:"function"==typeof e&&(Yn=e,!0)},_.relativeTimeThreshold=function(e,t){return void 0!==Sn[e]&&(void 0===t?Sn[e]:(Sn[e]=t,"s"===e&&(Sn.ss=t-1),!0))},_.calendarFormat=function(e,t){return(e=e.diff(t,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},_.prototype=u,_.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},_}); 1764 1765 1766moment.updateLocale( 'en_US', {"months":["January","February","March","April","May","June","July","August","September","October","November","December"],"monthsShort":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"weekdays":["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
vendor: 5,285 bytes, lines 1766-1783
1766ay","Saturday"],"weekdaysShort":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"week":{"dow":1},"longDateFormat":{"LT":"g:i a","LTS":null,"L":null,"LL":"F j, Y","LLL":"F j, Y g:i a","LLLL":null}} ); 1767 1768} 1769catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://labadibeachhotelgh.com/wp-includes/js/dist/vendor/moment.min.js\n- Error message: "+ e.message);} 1770 1771 1772 var wcBlocksMiddlewareConfig = { 1773 storeApiNonce: '048b8c78f0', 1774 wcStoreApiNonceTimestamp: '1790786511' 1775 }; 1776 1777/** 1778 * Minified by jsDelivr using Terser v5.19.2. 1779 * Original file: /npm/[email protected]/base64.js 1780 * 1781 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files 1782 */ 1783!function(t,n){var r,e;"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(r=t.Base64,(e=n()).noConflict=function(){return t.Base64=r,e},t.Meteor&&(Base64=e),t.Base64=e)}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:this,(function(){"use strict";var t,n="3.7.6",r=n,e="function"==typeof atob,o="function"==typeof btoa,u="function"==typeof Buffer,i="function"==typeof TextDecoder?new TextDecoder:void 0,f="function"==typeof TextEncoder?new TextEncoder:void 0,c=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),a=(t={},c.forEach((function(n,r){return t[n]=r})),t),d=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,s=String.fromCharCode.bind(String),l="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):function(t){return new Uint8Array(Array.prototype.slice.call(t,0))},h=function(t){return t.replace(/=/g,"").replace(/[+\/]/g,(function(t){return"+"==t?"-":"_"}))},p=function(t){return t.replace(/[^A-Za-z0-9\+\/]/g,"")},y=function(t){for(var n,r,e,o,u="",i=t.length%3,f=0;f<t.length;){if((r=t.charCodeAt(f++))>255||(e=t.charCodeAt(f++))>255||(o=t.charCodeAt(f++))>255)throw new TypeError("invalid character found");u+=c[(n=r<<16|e<<8|o)>>18&63]+c[n>>12&63]+c[n>>6&63]+c[63&n]}return i?u.slice(0,i-3)+"===".substring(i):u},A=o?function(t){return btoa(t)}:u?function(t){return Buffer.from(t,"binary").toString("base64")}:y,b=u?function(t){return Buffer.from(t).toString("base64")}:function(t){for(var n=[],r=0,e=t.length;r<e;r+=4096)n.push(s.apply(null,t.subarray(r,r+4096)));return A(n.join(""))},g=function(t,n){return void 0===n&&(n=!1),n?h(b(t)):b(t)},B=function(t){if(t.length<2)return(n=t.charCodeAt(0))<128?t:n<2048?s(192|n>>>6)+s(128|63&n):s(224|n>>>12&15)+s(128|n>>>6&63)+s(128|63&n);var n=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320);return s(240|n>>>18&7)+s(128|n>>>12&63)+s(128|n>>>6&63)+s(128|63&n)},x=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,C=function(t){return t.replace(x,B)},m=u?function(t){return Buffer.from(t,"utf8").toString("base64")}:f?function(t){return b(f.encode(t))}:function(t){return A(C(t))},v=function(t,n){return void 0===n&&(n=!1),n?h(m(t)):m(t)},U=function(t){return v(t,!0)},F=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,w=function(t){switch(t.length){case 4:var n=((7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3))-65536;return s(55296+(n>>>10))+s(56320+(1023&n));case 3:return s((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return s((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},S=function(t){return t.replace(F,w)},E=function(t){if(t=t.replace(/\s+/g,""),!d.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(3&t.length));for(var n,r,e,o="",u=0;u<t.length;)n=a[t.charAt(u++)]<<18|a[t.charAt(u++)]<<12|(r=a[t.charAt(u++)])<<6|(e=a[t.charAt(u++)]),o+=64===r?s(n>>16&255):64===e?s(n>>16&255,n>>8&255):s(n>>16&255,n>>8&255,255&n);return o},D=e?function(t){return atob(p(t))}:u?function(t){return Buffer.from(t,"base64").toString("binary")}:E,R=u?function(t){return l(Buffer.from(t,"base64"))}:function(t){return l(D(t).split("").map((function(t){return t.charCodeAt(0)})))},z=function(t){return R(Z(t))},T=u?function(t){return Buffer.from(t,"base64").toString("utf8")}:i?function(t){return i.decode(R(t))}:function(t){return S(D(t))},Z=function(t){return p(t.replace(/[-_]/g,(function(t){return"-"==t?"+":"/"})))},j=function(t){return T(Z(t))},I=function(t){return{value:t,enumerable:!1,writable:!0,configurable:!0}},O=function(){var t=function(t,n){return Object.defineProperty(String.prototype,t,I(n))};t("fromBase64",(function(){return j(this)})),t("toBase64",(function(t){return v(this,t)})),t("toBase64URI",(function(){return v(this,!0)})),t("toBase64URL",(function(){return v(this,!0)})),t("toUint8Array",(function(){return z(this)}))},P=function(){var t=function(t,n){return Object.defineProperty(Uint8Array.prototype,t,I(n))};t("toBase64",(function(t){return g(this,t)})),t("toBase64URI",(function(){return g(this,!0)})),t("toBase64URL",(function(){return g(this,!0)}))},L={version:n,VERSION:r,atob:D,atobPolyfill:E,btoa:A,btoaPolyfill:y,fromBase64:j,toBase64:v,encode:v,encodeURI:U,encodeURL:U,utob:C,btou:S,decode:j,isValid:function(t){if("string"!=typeof t)return!1;var n=t.replace(/\s+/g,"").replace(/={0,2}$/,"");
1783return!/[^\s0-9a-zA-Z\+/]/.test(n)||!/[^\s0-9a-zA-Z\-_]/.test(n)},fromUint8Array:g,toUint8Array:z,extendString:O,extendUint8Array:P,extendBuiltins:function(){O(),P()},Base64:{}};return Object.keys(L).forEach((function(t){return L.Base64[t]=L[t]})),L})); 1784 1785 1786moment.updateLocale( 'en_US', {"months":["January","February","March","April","May","June","July","August","September","October","November","December"],"monthsShort":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"weekdays":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"weekdaysShort":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"week":{"dow":1},"longDateFormat":{"LT":"g:i a","LTS":null,"L":null,"LL":"F j, Y","LLL":"F j, Y g:i a","LLLL":null}} ); 1787 1788} 1789catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://labadibeachhotelgh.com/wp-content/plugins/cozystay-core/assets/libs/base64/base64.min.js\n- Error message: "+ e.message);} 1790 1791 1792 var wcBlocksMiddlewareConfig = { 1793 storeApiNonce: '048b8c78f0', 1794 wcStoreApiNonceTimestamp: '1790786511' 1795 }; 1796 1797!function(u,t){"use strict";var c,o="YYYY-MM-DD",h=86400,d=loftoceanRoomReservationUtilsData.i18nText;function m(t){return void 0===t||t.getTime||(t=new Date),Math.floor(t.getTime()/h/1e3)*h}c=m(""),t.loftoceanRoomReservationUtils=function(t){this.setData(t),this.setDisabledDates()},t.loftoceanDatePickerValidate={instance:!1,defaultDates:!1,checkDefaultDates:function(t,a){if(!1!==this.defaultDates)return this.defaultDates;for(var e=0,i=0,n=t.clone(),s=null;e++<365;){var r=this.checkDate(n,{startDate:null,endDate:null});if(!r[0]||r[1]&&r[1].split(" ").includes("checkin-unavailable"))n.add("1","day");else{i=0,s=n.clone().add("1","day");for(var l={startDate:n,endDate:null};i++<365;){var u=this.checkDate(s,l);if(!(!u[0]||u[1]&&u[1].split(" ").includes("checkout-unavailable")))return this.defaultDates={checkin:n,checkout:s},this.defaultDates;s.add("1","day")}n.add("1","day")}}return this.defaultDates={checkin:t,checkout:a},this.defaultDates},checkDate:function(t,a){if(0==this.instance&&(this.instance=new loftoceanRoomReservationUtils({unavailableDates:loftoceanRoomReservationUtilsData.allRoomsUnavailableDates,priceList:{}})),t=t.format(o),void 0===a||null===a.startDate&&null!==a.endDate)return[!0,"",""];var e=void 0!==a&&null!==a.startDate&&null===a.endDate,i=new Date(t),n="day"+i.getDay(),s=m(i),r=[],l=[],t=!1,i=this.instance.getMatchedBookingRule(s),t=e&&this.instance.getMatchedBookingRule(m(new Date(a.startDate.format(o))));return!1!==i&&(i.checkin&&i.checkin.length&&i.checkin.includes(n)&&(r.push("no-checkin","checkin-unavailable"),l.push(d.noCheckin)),e?i.checkout&&i.checkout.length&&i.checkout.includes(n)&&(r.push("no-checkout","checkout-unavailable"),l.push(d.noCheckout)):i.in_advance&&((i=i.in_advance).min&&(s-c)/h<i.min&&r.push("disabled","checkin-unavailable"),i.max&&(s-c)/h>i.max&&(r.push("checkin-unavailable"),void 0!==a&&null!==a.startDate&&null===a.endDate||r.push("disabled")))),!1!==t&&e&&t.stay_length&&(e=m(new Date(a.startDate.format(o))),a="day"+a.startDate.day(),e<s&&(t=t.stay_length,e=(s-e)/h,t[a]&&(t[a].min&&e<t[a].min&&(r.push("minimal-stay-unavailable","checkout-unavailable"),l.push(t[a].min+d.minimum)),t[a].max&&e>t[a].max&&(r.push("off","disabled","maximal-stay-unavailable","checkout-unavailable"),l.push(t[a].max+d.maximum))))),[!0,r.length?r.join(" "):"",l.length?l.join(", "):""]}},loftoceanRoomReservationUtils.prototype={data:{},disabledStartDates:[],disabledEndDates:[],setData:function(t){this.data=t},checkTaxes:function(t,a){var e;this.data.isTaxEnabled&&(this.data.taxIncluded?(e=this.calculateIncludedTax(t),a.tax=this.checkOutputNumberFormat(e.totalTax),a.taxDetails=e.taxDetails):(e=this.calculateExcludeTax(t),a.tax=this.checkOutputNumberFormat(e.totalTax),a.taxDetails=e.taxDetails,a.beforeTax=a.totalPrice,a.totalPrice=this.checkOutputNumberFormat(add(a.totalOriginalPrice,e.totalTax),!0)))},calculateIncludedTax:function(t){var a,e=this.add(this.data.currencySettings.precision,2),i=this.data.taxRate,n=[],s=t;if(i.reversed_compound_rates&&i.reversed_compound_rates.length)for(var r=0;r<i.reversed_compound_rates.length;r++)a=s,s=this.multiplication(s,100/(100+i.reversed_compound_rates[r].rate)),s=Number(s).toFixed(e),n.unshift({tax:this.checkOutputNumberFormat(this.subtraction(a,s)),label:i.reversed_compound_rates[r].label});if(i.regular_rates&&i.regular_rates.length){for(var l=100,r=0;r<i.regular_rates.length;r++)l=this.add(l,i.regular_rates[r].rate);for(s=this.multiplication(s,100/l),s=Number(s).toFixed(e),--r;0<=r;r--)n.push({tax:this.checkOutputNumberFormat(this.multiplication(s,i.regular_rates[r].rate/100)),label:i.regular_rates[r].label})}return{totalTax:this.subtraction(t,s),taxDetails:n}},calculateExcludeTax:function(t){var a=this.data.taxRate,e=t,i=0,n=[];if(a.regular_rates&&a.regular_rates.length){for(var s,r=0;r<a.regular_rates.length;r++)s=this.multiplication(t,a.regular_rates[r].rate/100),n.push({tax:this.checkOutputNumberFormat(s),label:a.regular_rates[r].label}),i=this.add(i,s);e=this.add(t,i)}if(a.compound_rates&&a.compound_rates.length)for(var l,r=0;r<a.compound_rates.length;r++)l=this.multiplication(e,a.compound_rates[r].rate/100),i=this.add(i,l),e=this.add(e,l),n.push({tax:this.checkOutputNumberFormat(l),label:a.compound_rates[r].label});return{totalTax:i,taxDetails:n}},checkOutputNumberFormat:function(t,a){var e=0,i=0,n="";t=void 0!==t&&isNumber(t)?t:0;try{e=(""+t).split(".")[1].length}catch(t){e=0}if(t=Number(t).toFixed(e?Math.max(0,this.data.currencySettings.precision):0),t=(""+t).split("."),n=Number(t[0]),this.data.currencySettings.thousandSeparator&&1e3
1797<(i=Number(t[0]))){for(n=(i+"").substr(-3),i=Math.floor(i/1e3);1e3<i;)n=(i+"").substr(-3)+this.data.currencySettings.thousandSeparator+n,i=Math.floor(i/1e3);0<i&&(n=i+this.data.currencySettings.thousandSeparator+n)}return 1<t.length&&0<Number(t[1])&&this.data.currencySettings.precision&&this.data.currencySettings.decimalSeparator&&(n+=this.data.currencySettings.decimalSeparator+t[1]),a?n:this.data.currency.left+n+this.data.currency.right},add:function(t,a){var e,i,n;try{e=(""+t).split(".")[1].length}catch(t){e=0}try{i=(""+a).split(".")[1].length}catch(t){i=0}return n=Math.max(e,i),((t*Math.pow(10,n)+a*Math.pow(10,n))/Math.pow(10,n)).toFixed(n)},subtraction:function(t,a){return this.add(t,-a)},multiplication:function(t,a){var e,i;try{e=(""+t).split(".")[1].length}catch(t){e=0}try{i=(""+a).split(".")[1].length}catch(t){i=0}return(t*Math.pow(10,e)*(a*Math.pow(10,i))/Math.pow(10,e+i)).toFixed(e+i)},setDisabledDates:function(){var e=this;u.each(this.data.priceList,function(t,a){("unavailable"==a.status||a.available_number<1)&&(e.disabledStartDates.push(a.start),e.disabledEndDates.push(a.end))})},showCheckinDates:function(a){if(a=a.format(o),this.disabledStartDates.includes(a))return[!1,"",""];var t=new Date(a),e="day"+t.getDay(),i=m(t),n=[],s=[],a=this.getMatchedBookingRule(i);if(!1!==a&&(a.in_advance&&((t=a.in_advance).min&&(i-c)/h<t.min&&n.push("disabled","checkin-unavailable"),t.max&&(i-c)/h>t.max&&n.push("checkin-unavailable")),a.checkin.length)){let t=a.checkin;t.includes(e)&&(n.push("no-checkin","checkin-unavailable"),s.push(d.noCheckin))}return[!0,n.length?n.join(" "):"",s.length?s.join(", "):""]},showCheckoutDates:function(t,a){if(t=t.format(o),this.disabledEndDates.includes(t)||!moment(a).isValid())return[!1,"",""];if(!moment(t).isAfter(a))return[!1,"",""];var e=a.clone(),i=moment(t);for(e.add("1","day");e.isBefore(i);){if(this.disabledStartDates.includes(e.format(o)))return[!1,"",""];e.add("1","day")}var n=new Date(t),s="day"+n.getDay(),r=m(n),l=[],u=[],c=m(new Date(a.format(o))),t=this.getMatchedBookingRule(c),n=this.getMatchedBookingRule(r);if(!1!==n&&n.checkout.length){let t=n.checkout;t.includes(s)&&(l.push("no-checkout","checkout-unavailable"),u.push(d.noCheckout))}return!1!==t&&t.stay_length&&(a="day"+a.day(),c<r&&(t=t.stay_length,c=(r-c)/h,t[a]&&(t[a].min&&c<t[a].min&&(l.push("minimal-stay-unavailable","checkout-unavailable"),u.push(t[a].min+d.minimum)),t[a].max&&c>t[a].max&&(l.push("off","disabled","maximal-stay-unavailable","checkout-unavailable"),u.push(t[a].max+d.maximum))))),[!0,l.length?l.join(" "):"",u.length?u.join(", "):""]},getEnabledExtraServiceList:function(s,r){if(this.data.hasCustomExtraServices){var l=[];return s=m(new Date(s)),r=m(new Date(r)),this.data.extraServices.forEach(function(a){if(""!==a.effective_time&&a.custom_effective_time_slots.length){var e=!0,i="activated"==a.effective_time;for(let t=0;t<a.custom_effective_time_slots.length;t++){var n=a.custom_effective_time_slots[t];if((!n.start_timestamp||n.start_timestamp<=s)&&(!n.end_timstamp||n.end_timstamp>=r)){i?l.push(u.extend({},a)):e=!1;break}}!i&&e&&l.push(u.extend({},a))}else l.push(u.extend({},a))}),l}return!1},getRoomLimitation:function(t,a){for(var e=!1,t=m(new Date(t)),i=m(new Date(a)),n=this.data.priceList,s=t;s<i;s+=h)n[s]&&"available"==n[s].status&&n[s].available_number&&(!1===e||Number(n[s].available_number)<e)&&(e=Number(n[s].available_number));return e},getMatchedBookingRule:function(c){if(this.data.unavailableDates&&this.data.unavailableDates.length){var o=-1,h=NaN,d=NaN;return this.data.unavailableDates.forEach(function(t,a){var e,i,n="custom"==t.type,s=n?parseInt(t.start,10):NaN,r=n?parseInt(t.end,10):NaN,l=isNaN(s),u=isNaN(r);(!n||(l||s<=c)&&(u||c<=r))&&(o<0?(o=a,h=s,d=r):!n||l&&u||h+"-"+d==s+"-"+r||(e=isNaN(h),i=isNaN(d),t=!l&&(e||h<=s),n=!u&&(i||r<d),(e&&i&&(!l||!u)||l&&e&&!i&&n||u&&i&&!e&&t||t&&n)&&(o=a,h=s,d=r)))}),-1<o&&this.data.unavailableDates[o]}return!1}}}(jQuery,window); 1798 1799 1800moment.updateLocale( 'en_US', {"months":["January","February","March","April","May","June","July","August","September","October","November","December"],"monthsShort":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"weekdays":["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1800ay","Saturday"],"weekdaysShort":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"week":{"dow":1},"longDateFormat":{"LT":"g:i a","LTS":null,"L":null,"LL":"F j, Y","LLL":"F j, Y g:i a","LLLL":null}} ); 1801 1802} 1803catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://labadibeachhotelgh.com/wp-content/plugins/cozystay-core/assets/scripts/common/room-reservation-utils.min.js\n- Error message: "+ e.message);} 1804 1805 1806 var wcBlocksMiddlewareConfig = { 1807 storeApiNonce: '048b8c78f0', 1808 wcStoreApiNonceTimestamp: '1790786511' 1809 }; 1810 1811!function(t,a){var e,s;"function"==typeof define&&define.amd?define(["moment","jquery"],function(t,e){return e.fn||(e.fn={}),"function"!=typeof t&&t.hasOwnProperty("default")&&(t=t.default),a(t,e)}):"object"==typeof module&&module.exports?((e="undefined"!=typeof window?window.jQuery:void 0)||(e=require("jquery")).fn||(e.fn={}),s="undefined"!=typeof window&&void 0!==window.moment?window.moment:require("moment"),module.exports=a(s,e)):t.daterangepicker=a(t.moment,t.jQuery)}("undefined"!=typeof window?window:this,function(L,N){function s(t,e,a){var s,i,n,o;if(this.parentEl="body",this.element=N(t),this.startDate=L().startOf("day"),this.endDate=L().endOf("day"),this.minDate=!1,this.maxDate=!1,this.maxSpan=!1,this.autoApply=!1,this.singleDatePicker=!1,this.showDropdowns=!1,this.minYear=L().subtract(100,"year").format("YYYY"),this.maxYear=L().add(100,"year").format("YYYY"),this.showWeekNumbers=!1,this.showISOWeekNumbers=!1,this.showCustomRangeLabel=!0,this.timePicker=!1,this.timePicker24Hour=!1,this.timePickerIncrement=1,this.timePickerSeconds=!1,this.linkedCalendars=!0,this.autoUpdateInput=!0,this.alwaysShowCalendars=!1,this.popupSingle=!1,this.disableButtons=!1,this.ranges={},this.opens="right",this.element.hasClass("pull-right")&&(this.opens="left"),this.drops="down",this.element.hasClass("dropup")&&(this.drops="up"),this.buttonClasses="btn btn-sm",this.applyButtonClasses="btn-primary",this.cancelButtonClasses="btn-default",this.locale={direction:N("body").hasClass("rtl")?"rtl":"ltr",format:L.localeData().longDateFormat("L"),separator:" - ",applyLabel:"Apply",cancelLabel:"Cancel",weekLabel:"W",customRangeLabel:"Custom Range",daysOfWeek:L.weekdaysShort(),monthNames:L.monthsShort(),firstDay:parseInt(datepickerSettings.weekStartsOn,10)},this.callback=function(){},this.beforeShowDay=function(){return[!0,"",""]},this.isShowing=!1,this.leftCalendar={},this.rightCalendar={},"object"==typeof e&&null!==e||(e={}),"string"==typeof(e=N.extend(this.element.data(),e)).template||e.template instanceof N||(e.template='<div class="daterangepicker"><div class="ranges"></div><div class="drp-calendar left"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-calendar right"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-buttons"><span class="drp-selected"></span><button class="cancelBtn" type="button"></button><button class="applyBtn" disabled="disabled" type="button"></button> </div></div>'),this.parentEl=e.parentEl&&N(e.parentEl).length?N(e.parentEl):N(this.parentEl),this.container=N(e.template).appendTo(this.parentEl),"object"==typeof e.locale&&("string"==typeof e.locale.direction&&(this.locale.direction=e.locale.direction),"string"==typeof e.locale.format&&(this.locale.format=e.locale.format),"string"==typeof e.locale.separator&&(this.locale.separator=e.locale.separator),"object"==typeof e.locale.daysOfWeek&&(this.locale.daysOfWeek=e.locale.daysOfWeek.slice()),"object"==typeof e.locale.monthNames&&(this.locale.monthNames=e.locale.monthNames.slice()),"number"==typeof e.locale.firstDay&&(this.locale.firstDay=e.locale.firstDay),"string"==typeof e.locale.applyLabel&&(this.locale.applyLabel=e.locale.applyLabel),"string"==typeof e.locale.cancelLabel&&(this.locale.cancelLabel=e.locale.cancelLabel),"string"==typeof e.locale.weekLabel&&(this.locale.weekLabel=e.locale.weekLabel),"string"==typeof e.locale.customRangeLabel&&((h=document.createElement("textarea")).innerHTML=e.locale.customRangeLabel,l=h.value,this.locale.customRangeLabel=l)),this.container.addClass(this.locale.direction),"string"==typeof e.startDate&&(this.startDate=L(e.startDate,this.locale.format)),"string"==typeof e.endDate&&(this.endDate=L(e.endDate,this.locale.format)),"string"==typeof e.minDate&&(this.minDate=L(e.minDate,this.locale.format)),"string"==typeof e.maxDate&&(this.maxDate=L(e.maxDate,this.locale.format)),"object"==typeof e.startDate&&(this.startDate=L(e.startDate)),"object"==typeof e.endDate&&(this.endDate=L(e.endDate)),"object"==typeof e.minDate&&(this.minDate=L(e.minDate)),"object"==typeof e.maxDate&&(this.maxDate=L(e.maxDate)),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),"string"==typeof e.applyButtonClasse
1811s&&(this.applyButtonClasses=e.applyButtonClasses),"string"==typeof e.applyClass&&(this.applyButtonClasses=e.applyClass),"string"==typeof e.cancelButtonClasses&&(this.cancelButtonClasses=e.cancelButtonClasses),"string"==typeof e.cancelClass&&(this.cancelButtonClasses=e.cancelClass),"object"==typeof e.maxSpan&&(this.maxSpan=e.maxSpan),"object"==typeof e.dateLimit&&(this.maxSpan=e.dateLimit),"string"==typeof e.opens&&(this.opens=e.opens),"string"==typeof e.drops&&(this.drops=e.drops),"boolean"==typeof e.showWeekNumbers&&(this.showWeekNumbers=e.showWeekNumbers),"boolean"==typeof e.showISOWeekNumbers&&(this.showISOWeekNumbers=e.showISOWeekNumbers),"boolean"==typeof e.disableButtons&&(this.disableButtons=e.disableButtons),"string"==typeof e.buttonClasses&&(this.buttonClasses=e.buttonClasses),"object"==typeof e.buttonClasses&&(this.buttonClasses=e.buttonClasses.join(" ")),"boolean"==typeof e.showDropdowns&&(this.showDropdowns=e.showDropdowns),"number"==typeof e.minYear&&(this.minYear=e.minYear),"number"==typeof e.maxYear&&(this.maxYear=e.maxYear),"boolean"==typeof e.showCustomRangeLabel&&(this.showCustomRangeLabel=e.showCustomRangeLabel),"boolean"==typeof e.singleDatePicker&&(this.singleDatePicker=e.singleDatePicker,this.singleDatePicker&&(this.endDate=this.startDate.clone())),"boolean"==typeof e.timePicker&&(this.timePicker=e.timePicker),"boolean"==typeof e.timePickerSeconds&&(this.timePickerSeconds=e.timePickerSeconds),"number"==typeof e.timePickerIncrement&&(this.timePickerIncrement=e.timePickerIncrement),"boolean"==typeof e.timePicker24Hour&&(this.timePicker24Hour=e.timePicker24Hour),"boolean"==typeof e.autoApply&&(this.autoApply=e.autoApply),"boolean"==typeof e.autoUpdateInput&&(this.autoUpdateInput=e.autoUpdateInput),"boolean"==typeof e.linkedCalendars&&(this.linkedCalendars=e.linkedCalendars),"function"==typeof e.isInvalidDate&&(this.isInvalidDate=e.isInvalidDate),"function"==typeof e.isCustomDate&&(this.isCustomDate=e.isCustomDate),"boolean"==typeof e.alwaysShowCalendars&&(this.alwaysShowCalendars=e.alwaysShowCalendars),0!=this.locale.firstDay)for(var r=this.locale.firstDay;0<r;)this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift()),r--;if(void 0===e.startDate&&void 0===e.endDate&&N(this.element).is(":text")&&(o=s=null,2==(t=(n=N(this.element).val()).split(this.locale.separator)).length?(o=L(t[0],this.locale.format),s=L(t[1],this.locale.format)):this.singleDatePicker&&""!==n&&(o=L(n,this.locale.format),s=L(n,this.locale.format)),null!==o&&null!==s&&(this.setStartDate(o),this.setEndDate(s))),"object"==typeof e.ranges){for(i in e.ranges){o="string"==typeof e.ranges[i][0]?L(e.ranges[i][0],this.locale.format):L(e.ranges[i][0]),s="string"==typeof e.ranges[i][1]?L(e.ranges[i][1],this.locale.format):L(e.ranges[i][1]),this.minDate&&o.isBefore(this.minDate)&&(o=this.minDate.clone());var h,l,c=this.maxDate;this.maxSpan&&c&&o.clone().add(this.maxSpan).isAfter(c)&&(c=o.clone().add(this.maxSpan)),c&&s.isAfter(c)&&(s=c.clone()),this.minDate&&s.isBefore(this.minDate,this.timepicker?"minute":"day")||c&&o.isAfter(c,this.timepicker?"minute":"day")||((h=document.createElement("textarea")).innerHTML=i,l=h.value,this.ranges[l]=[o,s])}var d="<ul>";for(i in this.ranges)d+='<li data-range-key="'+i+'">'+i+"</li>";this.showCustomRangeLabel&&(d+='<li data-range-key="'+this.locale.customRangeLabel+'">'+this.locale.customRangeLabel+"</li>"),d+="</ul>",this.container.find(".ranges").prepend(d)}"function"==typeof a&&(this.callback=a),"function"==typeof e.beforeShowDay&&(this.beforeShowDay=e.beforeShowDay),"boolean"==typeof e.popupSingle&&e.popupSingle&&(this.popupSingle=e.popupSingle),this.timePicker||(this.startDate=this.startDate.startOf("day"),this.endDate=this.endDate.endOf("day"),this.container.find(".calendar-time").hide()),this.timePicker&&this.autoApply&&(this.autoApply=!1),this.autoApply&&this.container.addClass("auto-apply"),"object"==typeof e.ranges&&this.container.addClass("show-ranges"),this.singleDatePicker&&(this.container.addClass("single"),this.container.find(".drp-calendar.left").addClass("single"),this.container.find(".drp-calendar.left").show(),this.container.find(".drp-calendar.right").hide(),!this.timePicker&&this.autoApply&&this.container.addClass("auto-apply")),(void 0===e.ranges&&!this.singleDatePicker||this.alwaysShowCalendars)&&this.container.addClass("show-calendar"),this.container.addClass("opens"+this.opens),this.container.find(".applyBtn, .cancelBtn").addClass(this.buttonClasse
1811s),this.applyButtonClasses.length&&this.container.find(".applyBtn").addClass(this.applyButtonClasses),this.cancelButtonClasses.length&&this.container.find(".cancelBtn").addClass(this.cancelButtonClasses),this.container.find(".applyBtn").html(this.locale.applyLabel),this.container.find(".cancelBtn").html(this.locale.cancelLabel),this.disableButtons&&this.container.find(".drp-buttons").addClass("hide"),this.container.find(".drp-calendar").on("click.daterangepicker",".prev",N.proxy(this.clickPrev,this)).on("click.daterangepicker",".next",N.proxy(this.clickNext,this)).on("mousedown.daterangepicker","td.available",N.proxy(this.clickDate,this)).on("mouseenter.daterangepicker","td.available",N.proxy(this.hoverDate,this)).on("change.daterangepicker","select.yearselect",N.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.monthselect",N.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.hourselect,select.minuteselect,select.secondselect,select.ampmselect",N.proxy(this.timeChanged,this)),this.container.find(".ranges").on("click.daterangepicker","li",N.proxy(this.clickRange,this)),this.container.find(".drp-buttons").on("click.daterangepicker","button.applyBtn",N.proxy(this.clickApply,this)).on("click.daterangepicker","button.cancelBtn",N.proxy(this.clickCancel,this)),this.element.is("input")||this.element.is("button")?this.element.on({"click.daterangepicker":N.proxy(this.show,this),"focus.daterangepicker":N.proxy(this.show,this),"keyup.daterangepicker":N.proxy(this.elementChanged,this),"keydown.daterangepicker":N.proxy(this.keydown,this)}):(this.element.on("click.daterangepicker",N.proxy(this.toggle,this)),this.element.on("keydown.daterangepicker",N.proxy(this.toggle,this))),this.updateElement()}return s.prototype={constructor:s,setStartDate:function(t){"string"==typeof t&&(this.startDate=L(t,this.locale.format)),"object"==typeof t&&(this.startDate=L(t)),this.timePicker||(this.startDate=this.startDate.startOf("day")),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.maxDate&&this.startDate.isAfter(this.maxDate)&&(this.startDate=this.maxDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.floor(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.isShowing||this.updateElement(),this.updateMonthsInView()},setEndDate:function(t){"string"==typeof t&&(this.endDate=L(t,this.locale.format)),"object"==typeof t&&(this.endDate=L(t)),this.timePicker||(this.endDate=this.endDate.endOf("day")),this.timePicker&&this.timePickerIncrement&&this.endDate.minute(Math.round(this.endDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.endDate.isBefore(this.startDate)&&(this.endDate=this.startDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),this.maxSpan&&this.startDate.clone().add(this.maxSpan).isBefore(this.endDate)&&(this.endDate=this.startDate.clone().add(this.maxSpan)),this.previousRightTime=this.endDate.clone(),this.isShowing||this.updateElement(),this.updateMonthsInView()},isInvalidDate:function(){return!1},isCustomDate:function(){return!1},updateView:function(){this.timePicker&&(this.renderTimePicker("left"),this.renderTimePicker("right"),this.endDate?this.container.find(".right .calendar-time select").prop("disabled",!1).removeClass("disabled"):this.container.find(".right .calendar-time select").prop("disabled",!0).addClass("disabled")),this.updateMonthsInView(),this.updateCalendars(),this.updateFormInputs()},updateMonthsInView:function(){if(this.endDate){if(!this.singleDatePicker&&this.leftCalendar.month&&this.rightCalendar.month&&(this.startDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.startDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM"))&&(this.endDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.endDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM")))return;this.leftCalendar.month=this.startDate.clone().date(2),this.linkedCalendars||this.endDate.month()==this.startDate.month()&&this.endDate.year()==this.startDate.year()?this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"):this.rightCalendar.month=this.endDate.clone().date(2)}else this.leftCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&this.rightCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&(this.leftCalendar.month=this.startDate.clone().date(2),this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"));this.maxDate&&this.linkedCalendars&&!this.singleDatePicker&&this.rightCalendar.month>this.maxDate&&(this.rightCalendar.month=this.maxDate.clone().date(2),this.leftCalendar.month=this.maxDate.clone().date(2).subtract(1,"month"))},updateCalendars:function(){var t,e,a,s;this.timePicker&&(this.endDate?(e=parseInt(this.container.find(".left .hourselect").val(),10),a=parseInt(this.container.find(".left .minuteselect").val(),10),isNaN(a)&&(a=parseInt(this.container.find(".left .minuteselect option:last").val(),10)),t=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0,this.timePicker24Hour||("PM"===(s=this.container.find(".left .ampmselect").val())&&e<12&&(e+=12),"AM"===s&&12===e&&(e=0))):(e=parseInt(this.container.find(".right .hourselect").val(),10),a=parseInt(this.container.find(".right .minuteselect").val(),10),isNaN(a)&&(a=parseInt(this.container.find(".right .minuteselect option:last").val(),10)),t=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0,this.timePicker24Hour||("PM"===(s=this.container.find(".right .ampmselect").val())&&e<12&&(e+=12),"AM"===s&&12===e&&(e=0))),this.leftCalendar.month.hour(e).minute(a).second(t),this.rightCalendar.month.hour(e).minute(a).second(t)),this.renderCalendar("left"),this.renderCalendar("right"),this.container.find(".ranges li").removeClass("active"),null!=this.endDate&&this.calculateChosenLabel()}
1811,renderCalendar:function(t){var e="left"==t?this.leftCalendar:this.rightCalendar,a=e.month.month(),s=e.month.year(),i=e.month.hour(),n=e.month.minute(),o=e.month.second(),r=L([s,a]).daysInMonth(),h=L([s,a,1]),l=L([s,a,r]),c=L(h).subtract(1,"month").month(),s=L(h).subtract(1,"month").year(),a=L([s,c]).daysInMonth(),r=h.day();(e=[]).firstDay=h,e.lastDay=l;for(var d=0;d<6;d++)e[d]=[];l=a-r+this.locale.firstDay+1;a<l&&(l-=7),r==this.locale.firstDay&&(l=a-6);for(var m=L([s,c,l,12,n,o]),d=0,p=0,f=0;d<42;d++,p++,m=L(m).add(24,"hour"))0<d&&p%7==0&&(p=0,f++),e[f][p]=m.clone().hour(i).minute(n).second(o),m.hour(12),this.minDate&&e[f][p].format("YYYY-MM-DD")==this.minDate.format("YYYY-MM-DD")&&e[f][p].isBefore(this.minDate)&&"left"==t&&(e[f][p]=this.minDate.clone()),this.maxDate&&e[f][p].format("YYYY-MM-DD")==this.maxDate.format("YYYY-MM-DD")&&e[f][p].isAfter(this.maxDate)&&"right"==t&&(e[f][p]=this.maxDate.clone());"left"==t?this.leftCalendar.calendar=e:this.rightCalendar.calendar=e;var u="left"==t?this.minDate:this.startDate,D=this.maxDate,g=("left"==t?this.startDate:this.endDate,this.locale.direction,'<table class="table-condensed">');g+="<thead>",g+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(g+="<th></th>"),u&&!u.isBefore(e.firstDay)||this.linkedCalendars&&"left"!=t?g+="<th></th>":g+='<th class="prev available drp-month-button"><span></span></th>';c=this.locale.monthNames[e[1][1].month()]+e[1][1].format(" YYYY");if(this.showDropdowns){for(var y=e[1][1].month(),k=e[1][1].year(),b=D&&D.year()||this.maxYear,l=u&&u.year()||this.minYear,C=k==l,v=k==b,Y='<select class="monthselect">',w=0;w<12;w++)(!C||u&&w>=u.month())&&(!v||D&&w<=D.month())?Y+="<option value='"+w+"'"+(w===y?" selected='selected'":"")+">"+this.locale.monthNames[w]+"</option>":Y+="<option value='"+w+"'"+(w===y?" selected='selected'":"")+" disabled='disabled'>"+this.locale.monthNames[w]+"</option>";Y+="</select>";for(var P='<select class="yearselect">',x=l;x<=b;x++)P+='<option value="'+x+'"'+(x===k?' selected="selected"':"")+">"+x+"</option>";c=Y+(P+="</select>")}g+='<th colspan="5" class="month">'+c+"</th>",D&&!D.isAfter(e.lastDay)||this.linkedCalendars&&"right"!=t&&!this.singleDatePicker&&!this.popupSingle?g+="<th></th>":g+='<th class="next available drp-month-button"><span></span></th>',g+="</tr>",g+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(g+='<th class="week">'+this.locale.weekLabel+"</th>"),N.each(this.locale.daysOfWeek,function(t,e){g+="<th>"+e+"</th>"}),g+="</tr>",g+="</thead>",g+="<tbody>",null==this.endDate&&this.maxSpan&&(c=this.startDate.clone().add(this.maxSpan).endOf("day"),D&&!c.isBefore(D)||(D=c));for(f=0;f<6;f++){g+="<tr>",this.showWeekNumbers?g+='<td class="week">'+e[f][0].week()+"</td>":this.showISOWeekNumbers&&(g+='<td class="week">'+e[f][0].isoWeek()+"</td>");for(p=0;p<7;p++){var M="",S=[],I=this.beforeShowDay?this.beforeShowDay(e[f][p],this):[!0,"",""];I[0]||S.push("disabled"),I[1]&&I[1].split(" ").forEach(function(t){S.includes(t)||S.push(t)}),I[2]&&(S.push("daterangepicker-has-tooltip"),M='<span class="day-tooltip hide">'+I[2]+"</span>"),e[f][p].isSame(new Date,"day")&&S.push("today"),5<e[f][p].isoWeekday()&&S.push("weekend"),e[f][p].month()!=e[1][1].month()&&S.push("off","ends"),this.minDate&&e[f][p].isBefore(this.minDate,"day")&&S.push("off","disabled"),D&&e[f][p].isAfter(D,"day")&&S.push("off","disabled"),this.startDate&&!this.endDate&&e[f][p].isBefore(this.startDate,"day")&&S.push("off","disabled"),this.isInvalidDate(e[f][p])&&S.push("off","disabled"),null!==this.startDate&&e[f][p].format("YYYY-MM-DD")==this.startDate.format("YYYY-MM-DD")&&(S.includes("off")||S.push("start-date","active")),null!=this.endDate&&e[f][p].format("YYYY-MM-DD")==this.endDate.format("YYYY-MM-DD")&&(S.includes("off")||S.push("end-date","active")),null!=this.endDate&&e[f][p]>this.startDate&&e[f][p]<this.endDate&&(S.includes("off")||S.push("in-range"));I=this.isCustomDate(e[f][p]);!1!==I&&("string"==typeof I?S.push(I):Array.prototype.push.apply(S,I));for(var B="",A=!1,d=0;d<S.length;d++)B+=S[d]+" ","disabled"==S[d]&&(A=!0);A||(B+="available"),g+='<td class="'+B.replace(/^\s+|\s+$/g,"")+'" data-date="'+e[f][p].format("YYYY-MM-DD")+'" data-title="r'+f+"c"+p+'">'+e[f][p].date()+M+"</td>"}g+="</tr>"}g+="</tbody>",g+="</table>",this.container.find(".drp-calendar."+t+" .calendar-table").html(g)},renderTimePicker:function(t){if("right"!=t||this.endDate){var e,a,s,i=this.maxDate;!this.maxSpan||this.maxDate&&!this.startDate.clone().add(this.maxSpan).isBefore(this.maxDate)||(i=this.startDate.clone().add(this.maxSpan)),"left"==t?(a=this.startDate.clone(),s=this.minDate):"right"==t&&(a=this.endDate.clone(),s=this.startDate,""!=(n=this.container.find(".drp-calendar.right .calendar-time")).html()&&(a.hour(isNaN(a.hour())?n.find(".hourselect option:selected").val():a.hour()),a.minute(isNaN(a.minute())?n.find(".minuteselect option:selected").val():a.minute()),a.second(isNaN(a.second())?n.find(".secondselect option:selected").val():a.second()),this.timePicker24Hour||("PM"===(d=n.find(".ampmselect option:selected").val())&&a.hour()<12&&a.hour(a.hour()+12),"AM"===d&&12===a.hour()&&a.hour(0))),a.isBefore(this.startDate)&&(a=this.startDate.clone()),i&&a.isAfter(i)&&(a=i.clone())),e='<select class="hourselect">';
1811for(var n=this.timePicker24Hour?0:1,o=this.timePicker24Hour?23:12,r=n;r<=o;r++){var h=r;this.timePicker24Hour||(h=12<=a.hour()?12==r?12:r+12:12==r?0:r);var l=a.clone().hour(h),c=!1;s&&l.minute(59).isBefore(s)&&(c=!0),i&&l.minute(0).isAfter(i)&&(c=!0),h!=a.hour()||c?e+=c?'<option value="'+r+'" disabled="disabled" class="disabled">'+r+"</option>":'<option value="'+r+'">'+r+"</option>":e+='<option value="'+r+'" selected="selected">'+r+"</option>"}e+="</select> ",e+=': <select class="minuteselect">';for(var d,r=0;r<60;r+=this.timePickerIncrement){var m=r<10?"0"+r:r,l=a.clone().minute(r),c=!1;s&&l.second(59).isBefore(s)&&(c=!0),i&&l.second(0).isAfter(i)&&(c=!0),a.minute()!=r||c?e+=c?'<option value="'+r+'" disabled="disabled" class="disabled">'+m+"</option>":'<option value="'+r+'">'+m+"</option>":e+='<option value="'+r+'" selected="selected">'+m+"</option>"}if(e+="</select> ",this.timePickerSeconds){e+=': <select class="secondselect">';for(r=0;r<60;r++){m=r<10?"0"+r:r,l=a.clone().second(r),c=!1;s&&l.isBefore(s)&&(c=!0),i&&l.isAfter(i)&&(c=!0),a.second()!=r||c?e+=c?'<option value="'+r+'" disabled="disabled" class="disabled">'+m+"</option>":'<option value="'+r+'">'+m+"</option>":e+='<option value="'+r+'" selected="selected">'+m+"</option>"}e+="</select> "}this.timePicker24Hour||(e+='<select class="ampmselect">',n=d="",s&&a.clone().hour(12).minute(0).second(0).isBefore(s)&&(d=' disabled="disabled" class="disabled"'),i&&a.clone().hour(0).minute(0).second(0).isAfter(i)&&(n=' disabled="disabled" class="disabled"'),12<=a.hour()?e+='<option value="AM"'+d+'>AM</option><option value="PM" selected="selected"'+n+">PM</option>":e+='<option value="AM" selected="selected"'+d+'>AM</option><option value="PM"'+n+">PM</option>",e+="</select>"),this.container.find(".drp-calendar."+t+" .calendar-time").html(e)}},updateFormInputs:function(){this.singleDatePicker||this.endDate&&(this.startDate.isBefore(this.endDate)||this.startDate.isSame(this.endDate))?this.container.find("button.applyBtn").prop("disabled",!1):this.container.find("button.applyBtn").prop("disabled",!0)},move:function(){var t,e={top:0,left:0},a=this.drops,s=N(window).width();switch(this.parentEl.is("body")||(e={top:this.parentEl.offset().top-this.parentEl.scrollTop(),left:this.parentEl.offset().left-this.parentEl.scrollLeft()},s=this.parentEl[0].clientWidth+this.parentEl.offset().left),a){case"auto":(t=this.element.offset().top+this.element.outerHeight()-e.top)+this.container.outerHeight()>=this.parentEl[0].scrollHeight&&(t=this.element.offset().top-this.container.outerHeight()-e.top,a="up");break;case"up":t=this.element.offset().top-this.container.outerHeight()-e.top;break;default:t=this.element.offset().top+this.element.outerHeight()-e.top}this.container.css({top:0,left:0,right:"auto"});var i,n=this.container.outerWidth();this.container.toggleClass("drop-up","up"==a),"left"==this.opens?n+(s=s-this.element.offset().left-this.element.outerWidth())>N(window).width()?this.container.css({top:t,right:"auto",left:9}):this.container.css({top:t,right:s,left:"auto"}):"center"==this.opens?(i=this.element.offset().left-e.left+this.element.outerWidth()/2-n/2)<0?this.container.css({top:t,right:"auto",left:9}):i+n>N(window).width()?this.container.css({top:t,left:"auto",right:0}):this.container.css({top:t,left:i,right:"auto"}):(i=this.element.offset().left-e.left)+n>N(window).width()?this.container.css({top:t,left:"auto",right:0}):this.container.css({top:t,left:i,right:"auto"})},show:function(t){this.isShowing||(this._outsideClickProxy=N.proxy(function(t){this.outsideClick(t)},this),N(document).on("mousedown.daterangepicker",this._outsideClickProxy).on("touchend.daterangepicker",this._outsideClickProxy).on("click.daterangepicker","[data-toggle=dropdown]",this._outsideClickProxy).on("focusin.daterangepicker",this._outsideClickProxy),N(window).on("resize.daterangepicker",N.proxy(function(t){this.move(t)},this)),this.oldStartDate=this.startDate.clone(),this.oldEndDate=this.endDate.clone(),this.previousRightTime=this.endDate.clone(),this.updateView(),this.container.show(),this.move(),this.element.trigger("show.daterangepicker",this),this.isShowing=!0)},hide:function(t){this.isShowing&&(this.endDate||(this.startDate=this.oldStartDate.clone(),this.endDate=this.oldEndDate.clone()),this.startDate.isSame(this.oldStartDate)&&this.endDate.isSame(this.oldEndDate)||this.callback(this.startDate.clone(),this.endDate.clone(),this.chosenLabel),this.updateElement(),N(document).off(".daterangepicker"),N(window).off(".daterangepicker"),this.container.hide(),this.element.trigger("hide.daterangepicker",this),this.isShowing=!1)},toggle:function(t){this.isShowing?this.hide():this.show()},outsideClick:function(t){var e=N(t.target);"focusin"==t.type||e.closest(this.element).length||e.closest(this.container).length||e.closest(".calendar-table").length||(this.hide(),this.element.trigger("outsideClick.daterangepicker",this))},showCalendars:function(){this.container.addClass("show-calendar"),this.move(),this.element.trigger("showCalendar.daterangepicker",this)},hideCalendars:function(){this.container.removeClass("show-calendar"),this.element.trigger("hideCalendar.daterangepicker",this)},clickRange:function(t){t=t.target.getAttribute("data-range-key");(this.chosenLabel=t)==this.locale.customRangeLabel?this.showCalendars():(t=this.ranges[t],this.startDate=t[0],this.endDate=t[1],this.timePicker||(this.startDate.startOf("day"),this.endDate.endOf("day")),this.alwaysShowCalendars||this.hideCalendars(),this.clickApply())},clickPrev:function(t){N(t.target).parents(".drp-calendar").hasClass("left")?(this.leftCalendar.month.subtract(1,"month"),this.linkedCalendars&&this.rightCalendar.month.subtract(1,"month")):this.rightCalendar.month.subtract(1,"month"),this.updateCalendars()},clickNext:function(t){N(t.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar.month.add(1,"month"):(this.rightCalendar.month.add(1,"month"),this.linkedCalendars&&this.leftCalendar.month.add(1,"month")),this.updateCalendars()},hoverDate:function(t){var e,a,i,n,o,r;N(t.target).hasClass("available")&&(e=(a=N(t.target).attr("data-title")).substr(1,1),a=a.substr(3,1),i=(N(t.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar:this.rightCalendar).calendar[e][a],n=this.leftCalendar,o=this.rightCalendar,r=this.startDate,this.endDate||this.container.find(".drp-calendar tbody td").each(function(t,e){var a,s;N(e).hasClass("week")||(a=(s=N(e).attr("data-title")).substr(1,1),s=s.substr(3,1),(s=(N(e).parents(".drp-calendar").hasClass("left")?n:o).calendar[a][s]).isAfter(r)&&s.isBefore(i)||s.isSame(i,"day")?-1===N(e).attr("class").indexOf("off")&&N(e).addClass("in-range"):N(e).removeClass("in-range"))}))},clickDate:function(t){var e=N(t.target);if("TD"!==e.prop("tagName")&&(e=e.closest("td")),e.hasClass("available")){var a,s,i,n,o=e.attr("data-title"),r=o.substr(1,1),o=o.substr(3,1),o=(e.parents(".drp-calendar").hasClass("left")?this.leftCalendar:this.rightCalendar).calendar[r][o];if(this.endDate||o.isBefore(this.startDate,"day")){if(e.hasClass("no-checkin")||e.hasClass("checkin-unavailable"))return;this.timePicker&&(a=parseInt(this.container.find(".left .hourselect").val(),10),this.timePicker24Hour||("PM"===(s=this.container.find(".left .ampmselect").val())&&a<12&&(a+=12),"AM"===s&&12===a&&(a=0)),i=parseInt(this.container.find(".left .minuteselect").val(),10),isNaN(i)&&(i=parseInt(this.container.find(".left .minuteselect option:last").val(),10)),n=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0,o=o.clone().hour(a).minute(i).second(n)),this.endDate=null,this.setStartDate(o.clone()),this.element.trigger("setStartDate.daterangepicker",this)}else{if(e.hasClass("no-checkout")||e.hasClass("minimal-stay-unavailable")||e.hasClass("maximal-stay-unavailable")||e.hasClass("checkout-unavailable")||!o.isAfter(this.startDate))return;this.timePicker&&(a=parseInt(this.container.find(".right .hourselect").val(),10),this.timePicker24Hour||("PM"===(s=this.container.find(".right .ampmselect").val())&&a<12&&(a+=12),"AM"===s&&12===a&&(a=0)),i=parseInt(this.container.find(".right .minuteselect").val(),10),isNaN(i)&&(i=parseInt(this.container.find(".right .minuteselect option:last").val(),10)),n=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0,o=o.clone().hour(a).minute(i).second(n)),this.setEndDate(o.clone()),this.autoApply&&(this.calculateChosenLabel(),this.clickApply())}this.singleDatePicker&&(this.setEndDate(this.startDate),!this.timePicker&&this.autoApply&&this.clickApply()),this.updateView(),t.stopPropagation()}},calculateChosenLabel:function(){var t,e=!0,a=0;for(t in this.ranges){if(this.timePicker){var s=this.timePickerSeconds?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD HH:mm";if(this.startDate.format(s)==this.ranges[t][0].format(s)&&this.endDate.format(s)==this.ranges[t][1].format(s)){e=!1,this.chosenLabel=this.container.find(".ranges li:eq("+a+")").addClass("active").attr("data-range-key");break}}else if(this.startDate.format("YYYY-MM-DD")==this.ranges[t][0].format("YYYY-MM-DD")&&this.endDate.format("YYYY-MM-DD")==this.ranges[t][1].format("YYYY-MM-DD")){e=!1,this.chosenLabel=this.container.find(".ranges li:eq("+a+")").addClass("active").attr("data-range-key");break}a++}e&&(this.showCustomRangeLabel?this.chosenLabel=this.container.find(".ranges li:last").addClass("active").attr("data-range-key"):this.chosenLabel=null,this.showCalendars())},clickApply:function(t){this.hide(),this.element.trigger("apply.daterangepicker",this)},clickCancel:function(t){this.startDate=this.oldStartDate,this.endDate=this.oldEndDate,this.hide(),this.element.trigger("cancel.daterangepicker",this)},monthOrYearChanged:function(t){var e=N(t.target).closest(".drp-calendar").hasClass("left"),a=e?"left"
1811:"right",t=this.container.find(".drp-calendar."+a),a=parseInt(t.find(".monthselect").val(),10),t=t.find(".yearselect").val();e||(t<this.startDate.year()||t==this.startDate.year()&&a<this.startDate.month())&&(a=this.startDate.month(),t=this.startDate.year()),this.minDate&&(t<this.minDate.year()||t==this.minDate.year()&&a<this.minDate.month())&&(a=this.minDate.month(),t=this.minDate.year()),this.maxDate&&(t>this.maxDate.year()||t==this.maxDate.year()&&a>this.maxDate.month())&&(a=this.maxDate.month(),t=this.maxDate.year()),e?(this.leftCalendar.month.month(a).year(t),this.linkedCalendars&&(this.rightCalendar.month=this.leftCalendar.month.clone().add(1,"month"))):(this.rightCalendar.month.month(a).year(t),this.linkedCalendars&&(this.leftCalendar.month=this.rightCalendar.month.clone().subtract(1,"month"))),this.updateCalendars()},timeChanged:function(t){var e=N(t.target).closest(".drp-calendar"),a=e.hasClass("left"),s=parseInt(e.find(".hourselect").val(),10),i=parseInt(e.find(".minuteselect").val(),10);isNaN(i)&&(i=parseInt(e.find(".minuteselect option:last").val(),10));var n,t=this.timePickerSeconds?parseInt(e.find(".secondselect").val(),10):0;this.timePicker24Hour||("PM"===(e=e.find(".ampmselect").val())&&s<12&&(s+=12),"AM"===e&&12===s&&(s=0)),a?((n=this.startDate.clone()).hour(s),n.minute(i),n.second(t),this.setStartDate(n),this.singleDatePicker?this.endDate=this.startDate.clone():this.endDate&&this.endDate.format("YYYY-MM-DD")==n.format("YYYY-MM-DD")&&this.endDate.isBefore(n)&&this.setEndDate(n.clone())):this.endDate&&((n=this.endDate.clone()).hour(s),n.minute(i),n.second(t),this.setEndDate(n)),this.updateCalendars(),this.updateFormInputs(),this.renderTimePicker("left"),this.renderTimePicker("right")},elementChanged:function(){var t,e,a;this.element.is("input")&&this.element.val().length&&(a=e=null,2===(t=this.element.val().split(this.locale.separator)).length&&(e=L(t[0],this.locale.format),a=L(t[1],this.locale.format)),!this.singleDatePicker&&null!==e&&null!==a||(a=e=L(this.element.val(),this.locale.format)),e.isValid()&&a.isValid()&&(this.setStartDate(e),this.setEndDate(a),this.updateView()))},keydown:function(t){9!==t.keyCode&&13!==t.keyCode||this.hide(),27===t.keyCode&&(t.preventDefault(),t.stopPropagation(),this.hide())},updateElement:function(){var t;this.element.is("input")&&this.autoUpdateInput&&(t=this.startDate.format(this.locale.format),this.singleDatePicker||(t+=this.locale.separator+this.endDate.format(this.locale.format)),t!==this.element.val()&&this.element.val(t).trigger("change"))},remove:function(){this.container.remove(),this.element.off(".daterangepicker"),this.element.removeData()}},N.fn.daterangepicker=function(t,e){var a=N.extend(!0,{},N.fn.daterangepicker.defaultOptions,t);return this.each(function(){var t=N(this);t.data("daterangepicker")&&t.data("daterangepicker").remove(),t.data("daterangepicker",new s(t,a,e))}),this},s}); 1812 1813 1814moment.updateLocale( 'en_US', {"months":["January","February","March","April","May","June","July","August","September","October","November","December"],"monthsShort":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"weekdays":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"weekdaysShort":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"week":{"dow":1},"longDateFormat":{"LT":"g:i a","LTS":null,"L":null,"LL":"F j, Y","LLL":"F j, Y g:i a","LLLL":null}} ); 1815 1816} 1817catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://labadibeachhotelgh.com/wp-content/plugins/cozystay-core/assets/libs/daterangepicker/daterangepicker.min.js\n- Error message: "+ e.message);} 1818 1819 1820 var wcBlocksMiddlewareConfig = { 1821 storeApiNonce: '048b8c78f0', 1822 wcStoreApiNonceTimestamp: '1790786511' 1823 }; 1824 1825!function(y){"use strict";var a="devicePixelRatio"in window&&2<=parseInt(window.devicePixelRatio,10),e=y("body"),s=a?"data-loftocean-retina-image":"data-loftocean-normal-image",w=e.hasClass("rtl"),i=!1,n=!1,t=(y("head"),0);y.fn.loftoceanImageLoading=function(){var a=y(this).add(y(this).find("[data-loftocean-image=1]")).filter("[data-loftocean-image=1]"),e=y(this).add(y(this).find('img[data-loftocean-loading-image="on"]')).filter('img[data-loftocean-loading-image="on"]');return loftoceanImageLoad.lazyLoadEnabled?(a.length&&(i=i&&i.length?i.add(a):a),e.length&&(n=n&&n.length?n.add(e):e),y(window).trigger("startLazyLoad.loftocean")):(a.length&&a.each(function(){var a,e,t=y(this);t.attr("data-loftocean-image")&&(a=t.prop("tagName"),e=t.attr(s),y(new Image).on("load",function(){t.css("transition","none"),"IMG"==a?t.attr("src",e).removeAttr("style"):t.css({"background-image":"url("+e+")",filter:""}),t.css("transition",""),t.removeAttr("data-loftocean-retina-image").removeAttr("data-loftocean-normal-image").removeAttr("data-loftocean-image")}).attr("src",e))}),e.length&&e.each(function(){y(this).attr("data-loftocean-loading-image")&&(y(this).data("srcset")&&y(this).attr("srcset",y(this).data("srcset")).removeAttr("data-srcset"),y(this).data("loftocean-lazy-load-sizes")&&y(this).attr("sizes",y(this).data("loftocean-lazy-load-sizes")).removeAttr("data-loftocean-lazy-load-sizes"),y(this).data("src")&&y(this).attr("src",y(this).data("src")).removeAttr("data-src"),y(this).removeAttr("data-loftocean-loading-image").css({filter:"",opacity:""}))})),this},loftoceanImageLoad.lazyLoadEnabled&&(y(window).on("startLazyLoad.loftocean",function(a){var t=y(window).scrollTop()+y(window).height(),o=y();i&&i.length&&(i.each(function(){var a=y(this),e=a.attr(s);e&&parseInt(a.offset().top-t,10)<100&&(y(new Image).on("load",function(){a.css("transition","none"),a.css({"background-image":"url("+e+")",filter:""}),a.css("transition",""),a.removeAttr("data-loftocean-retina-image").removeAttr("data-loftocean-normal-image").removeAttr("data-loftocean-image")}).attr("src",e),o=o.add(a))}),o.length&&(i=i.not(o))),n&&n.length&&(o=y(),n.each(function(){y(this).attr("data-loftocean-loading-image")&&parseInt(y(this).offset().top-t,10)<100&&(y(this).data("srcset")&&y(this).attr("srcset",y(this).data("srcset")).removeAttr("data-srcset"),y(this).data("loftocean-lazy-load-sizes")&&y(this).attr("sizes",y(this).data("loftocean-lazy-load-sizes")).removeAttr("data-loftocean-lazy-load-sizes"),y(this).data("src")&&y(this).attr("src",y(this).data("src")).removeAttr("data-src"),y(this).removeAttr("data-loftocean-loading-image").css({filter:"",opacity:""}),o=o.add(y(this)))}),o.length&&(n=n.not(o)))}).on("scroll",function(a){var e=y(this).scrollTop();t<e&&y(this).trigger("startLazyLoad.loftocean"),t=e}).on("load",function(a){y(this).trigger("startLazyLoad.loftocean")}),y("body *").on("scroll",function(){y(window).trigger("startLazyLoad.loftocean")})),document.addEventListener("DOMContentLoaded",function(){y("body").loftoceanImageLoading(),y("body").on("click","#page .loftocean-gallery-zoom",function(a){a.preventDefault();var e=y("body"),t=y(this).parent(),a=t.children(".image-gallery").first();e.hasClass("gallery-zoom")?(e.removeClass("gallery-zoom"),t.removeClass("fullscreen")):(e.addClass("gallery-zoom"),t.addClass("fullscreen")),a.slick("slickSetOption","speed",500,!0)}).on("click",".post-content-gallery.justified-gallery-initialized .gallery-item, .portfolio-gallery.gallery-justified .gallery-item",function(a){a.preventDefault();
1825var e,t,o=y(this).closest(".justified-gallery-initialized").data("gallery-id");o&&y(".loftocean-popup-sliders ."+o).length&&(e=y("body"),t=y(this).index(),o=(a=y(".loftocean-popup-sliders ."+o)).children(".image-gallery").first(),e.hasClass("gallery-zoom")||(e.addClass("gallery-zoom"),a.addClass("fullscreen").removeClass("hide"),o.slick("slickGoTo",t).slick("slickSetOption","speed",500,!0)))}).on("click",".loftocean-popup-sliders .loftocean-popup-gallery-close",function(a){a.preventDefault();var e=y("body"),a=y(this).parent();e.hasClass("gallery-zoom")&&(e.removeClass("gallery-zoom"),a.removeClass("fullscreen").addClass("hide"))}).on("click","#secondary .cs-form-wrap .has-dropdown",function(a){a.preventDefault(),a.stopImmediatePropagation();a=y(this).siblings(".csf-dropdown");a.length&&(a.hasClass("is-open")?(a.removeClass("is-open"),a.closest(".cs-form-field").length&&a.closest(".cs-form-field").removeClass("loftocean-highlighted")):(y(".csf-dropdown").removeClass("is-open"),y(".csf-dropdown").closest(".cs-form-field").length&&y(".csf-dropdown").closest(".cs-form-field").removeClass("loftocean-highlighted"),a.addClass("is-open"),a.closest(".cs-form-field").length&&a.closest(".cs-form-field").addClass("loftocean-highlighted")))}).on("click","#secondary .cs-form-wrap .minus",function(a){if(a.preventDefault(),"on"==y(this).data("disabled")||y(this).hasClass("disabled"))return"";var e=y(this),t=e.parent().data("label"),o=e.parents(".field-wrap").first().find(".field-input-wrap input"),s=loftoceanImageLoad.reservation[t],i=e.siblings("input").first(),n=parseInt(i.val(),10),l=i.data("min"),r=!!s&&new RegExp("\\d+ ("+loftoceanImageLoad.reservation[t].plural+"|"+loftoceanImageLoad.reservation[t].single+")","ig");if(!i.length||!o.length)return"";a=o.val()||"",l=void 0===l||isNaN(l)||l<1?0:l,n=isNaN(n)?1:n;n=Math.max(n<1?0:n-1,l),i.val(n),a=o.hasClass("separated-guests")?n:(i=s&&void 0!==loftoceanImageLoad.reservation[t].usePluralIfZero&&loftoceanImageLoad.reservation[t].usePluralIfZero,s&&r.test(a)?0===n?a.replace(r,n+" "+loftoceanImageLoad.reservation[t][i?"plural":"single"]):a.replace(r,n+" "+loftoceanImageLoad.reservation[t][n<2?"single":"plural"]):(r=n,s?(r+=0===n?" "+loftoceanImageLoad.reservation[t][i?"plural":"single"]:" "+loftoceanImageLoad.reservation[t][n<2?"single":"plural"],a?"adult"==t?r+", "+a:a+", "+r:r):r)),o.val(a),e.siblings(".plus").removeClass("disabled").data("disabled","").removeAttr("disabled"),l===n&&e.data("disabled","on").addClass("disabled").attr("disabled","disabled"),e.siblings("input").trigger("loftocean.number.changed",[!1,e])}).on("click","#secondary .cs-form-wrap .plus",function(a){if(a.preventDefault(),"on"==y(this).data("disabled")||y(this).hasClass("disabled"))return"";var e=y(this),t=e.parent().data("label"),o=e.parents(".field-wrap").first().find(".field-input-wrap input"),s=loftoceanImageLoad.reservation[t],i=e.siblings("input").first(),n=parseInt(i.val(),10),l=i.data("max")||Number.MAX_SAFE_INTEGER,r=!!s&&new RegExp("\\d+ ("+loftoceanImageLoad.reservation[t].plural+"|"+loftoceanImageLoad.reservation[t].single+")","ig");if(!i.length||!o.length)return"";a=o.val()||"";n=(n=isNaN(n)?1:n)<1?1:n+1,void 0===l||isNaN(l)||(n=Math.min(l,n)),i.val(n),a=o.hasClass("separated-guests")?n:s&&r.test(a)?a.replace(r,n+" "+loftoceanImageLoad.reservation[t][n<2?"single":"plural"]):(r=n,s?(r+=" "+loftoceanImageLoad.reservation[t][n<2?"single":"plural"],a?"adult"==t?r+", "+a:a+", "+r:r):r),o.val(a),e.siblings(".minus").removeClass("disabled").removeAttr("disabled").data("disabled",""),e.siblings("input").trigger("loftocean.number.changed",[!0,e])}).on("mouseenter",".daterangepicker-has-tooltip",function(){var a=y(this).find(".day-tooltip");a.length&&a.removeClass("hide")}).on("mouseleave",".daterangepicker-has-tooltip",function(){var a=y(this).find(".day-tooltip");a.length&&a.addClass("hide")}).on("click",function(a){var e=y(a.target),a=y(".csf-dropdown.is-open");!a.length||e.is(".cs-has-dropdown, .has-dropdown")||e.parents(".cs-has-dropdown, .has-dropdown").length||(a.removeClass("is-open"),a.closest(".cs-form-field").length&&a.closest(".cs-form-field").removeClass("loftocean-highlighted"))});var s,i,n,l,r,d,c,f,g,h,t,o,p=y("body.rooms-search-results #secondary .cs-form-wrap");p.length&&(s=p.data("date-format")?p.data("date-format"):"YYYY-MM-DD",v={},i=p.data("display-date-format")?p.data("display-date-format"):"YYYY-MM-DD",n=p.find(".field-input-wrap.checkin-date input.check-in-date"),l=n.closest(".cs-form-field.cs-check-in"),r=p.find(".field-input-wrap.checkout-date input"),d=r.closest(".cs-form-field.cs-check-out"),c=p.find(".cs-form-field-group.date-group"),f=c.length,g=f?n.siblings("span.input"):"",h=f?r.siblings("span.input"):"",t=p.find(".date-range-picker"),o=d.length?d.outerHeight(!0):0,n.val(moment(n.data("value")).format(i)),r.val(moment(r.data("value")).format(i)),f&&(g.text(moment(n.data("value")).format(i)),h.text(moment(r.data("value")).format(i))),v={minDate:moment().format(s),startDate:n.data("value"),endDate:r.data("value"),locale:{format:s},autoApply:!0},"undefined"!=typeof loftoceanDatePickerValidate&&"undefined"!=typeof loftoceanRoomReservationUtilsData&&void 0!==loftoceanRoomReservationUtilsData.allRoomsUnavailableDates&&loftoceanRoomReservationUtilsData.allRoomsUnavailableDates.length&&(v.beforeShowDay=function(a,e){return loftoceanDatePickerValidate.checkDate(a,e)}),t.daterangepicker(v).on("apply.daterangepicker",function(a,e){var t=e.startDate.format(s),o=e.endDate.format(s);y(this).val(t+" - "+o),n.val(e.startDate.format(i)).data("value",t),r.val(e.endDate.format(i)).data("value",o),f?(g.text(e.startDate.format(i)),h.text(e.endDate.format(i)).css("opacity",""),c.removeClass("loftocean-highlighted")):(l.removeClass("loftocean-highlighted"),d.removeClass("loftocean-highlighted"),e.container.css({transform:"",transition:""}))}).on("show.daterangepicker",function(a,e){e.popupSingle=!1,e.container.removeClass("single").find(".drp-calendar.right").show(),e.container.outerWidth(!0)<558?(e.popupSingle=!0,e.container.addClass("single").find(".drp-calendar.right").hide()):(e.popupSingle=!1,e.container.removeClass("single").find(".drp-calendar.right").show()),e.renderCalendar("left"),f?c.addClass("loftocean-highlighted"):(l.addClass("loftocean-highlighted"),d.removeClass("loftocean-highlighted"))}).on("setStartDate.daterangepicker",function(a,e){f?(g.text(e.startDate.format(i)),h.css("opacity",0)
1825):(n.val(e.startDate.format(i)),r.val(""),l.removeClass("loftocean-highlighted"),d.addClass("loftocean-highlighted"),e.container.css({transform:"translateY("+o+"px)",transition:"0.15s"}))}).on("outsideClick.daterangepicker",function(a,e){e.oldStartDate&&(f?(g.text(e.oldStartDate.format(i)),h.text(e.oldEndDate.format(i)).css("opacity","")):(n.val(e.oldStartDate.format(i)),r.val(e.oldEndDate.format(i)))),f?c.removeClass("loftocean-highlighted"):(l.removeClass("loftocean-highlighted"),d.removeClass("loftocean-highlighted"),e.container.css({transform:"",transition:""}))}),p.find(".checkin-date, .checkout-date, .cs-form-field-group.date-group .cs-form-field-group-inner").on("click",function(a){var e=t.data("daterangepicker");e.setStartDate(n.data("value")),e.setEndDate(r.data("value")),e.show()})),(p=y("body.rooms-search-results #secondary .cs-reservation-form .cs-form-wrap")).length&&p.submit(function(a){["checkin-date","checkout-date"].forEach(function(a){var e;p.find(".field-input-wrap."+a+" input").length&&(e=a.split("-")[0],a=p.find(".field-input-wrap."+a+" input").last(),(p.children('input[type="hidden"][name="'+e+'"]').length?p.children('input[type="hidden"][name="'+e+'"]'):y("<input>",{type:"hidden",name:e}).appendTo(p)).val(a.data("value")))});var e="roomSearchNonce",t=p.serializeArray();(p.children('input[type="hidden"][name="'+e+'"]').length?p.children('input[type="hidden"][name="'+e+'"]'):y("<input>",{type:"hidden",name:e}).appendTo(p)).val(btoa(JSON.stringify(t)))});var e,a=y(".posts.layout-carousel .posts-wrapper");a.length&&(e=[{breakpoint:1200,settings:{slidesToShow:3}},{breakpoint:800,settings:{slidesToShow:2}},{breakpoint:480,settings:{slidesToShow:1}}],a.each(function(){var a=y(this).parent().find(".post").length,a=Math.min(Math.max(parseInt(a,10),1),4);y(this).on("init",function(a){y.fn.loftoceanImageLoading&&y(this).loftoceanImageLoading()}).slick({dots:!1,arrows:!0,infinite:!0,fade:!1,speed:700,autoplay:!0,autoplaySpeed:5e3,pauseOnHover:!0,rtl:w,slidesToShow:a,slidesToScroll:1,swipeToSlide:!0,responsive:e.slice(-a)})}));var m=y(".room-top-section .cs-gallery.gallery-carousel.variable-width .cs-gallery-wrap");m.length&&m.each(function(){y(this).on("init",function(a){y(this).find(".hide").removeClass("hide")}).slick({dots:!0,arrows:!0,rtl:w,slidesToShow:1,infinite:!0,speed:500,centerMode:!0,variableWidth:!0})});var u=y(".room-top-section .cs-gallery.gallery-mosaic .cs-gallery-item > a");u.length&&(new SimpleLightbox(".room-top-section .cs-gallery.gallery-mosaic .cs-gallery-item > a",{}),y(".room-top-section .cs-gallery-view-all").on("click",function(a){a.preventDefault(),u.eq(0).find("img").trigger("click")}));var v=y("body.single-room .similar-rooms .cs-rooms.cs-rooms-carousel");v.length&&(a=v.hasClass("column-3")?3:2,v.find(".cs-room-item").length,m={rtl:w,dots:!1,arrows:!1,slidesToShow:a,slidesToScroll:1,infinite:v.hasClass("loop-slider"),speed:500,autoplay:!1,responsive:[{breakpoint:768,settings:{slidesToShow:1,dots:!0}}]},"3"==a&&m.responsive.push({breakpoint:1024,settings:{slidesToShow:2,dots:!0}}),v.append(y("<div>",{class:"slider-arrows"})),m.appendArrows=v.children(".slider-arrows"),m.arrows=!0,v.find(".cs-rooms-wrapper").on("init",function(a){y(this).find(".hide").removeClass("hide"),y.fn.loftoceanImageLoading&&y(this).loftoceanImageLoading()}).slick(m)),y(window).on("resize",function(a){var e=y("input.date-range-picker");e.length&&e.each(function(){var a=y(this).data("daterangepicker");void 0!==a&&"none"!=a.container.css("display")&&y(this).trigger("show.daterangepicker",a)})})})}(jQuery); 1826 1827 1828moment.updateLocale( 'en_US', {"months":["January","February","March","April","May","June","July","August","September","October","November","December"],"monthsShort":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"weekdays":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"weekdaysShort":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"week":{"dow":1},"longDateFormat":{"LT":"g:i a","LTS":null,"L":null,"LL":"F j, Y","LLL":"F j, Y g:i a","LLLL":null}} ); 1829 1830} 1831catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://labadibeachhotelgh.com/w
vendor: 17,158 bytes, lines 1831-1840
1831p-content/plugins/cozystay-core/assets/scripts/front/front-media.min.js\n- Error message: "+ e.message);} 1832 1833 1834 var wcBlocksMiddlewareConfig = { 1835 storeApiNonce: '048b8c78f0', 1836 wcStoreApiNonceTimestamp: '1790786511' 1837 }; 1838 1839/*! This file is auto-generated */ 1840!function(n,t){var r,e;"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("underscore",t):(n="undefined"!=typeof globalThis?globalThis:n||self,r=n._,(e=n._=t()).noConflict=function(){return n._=r,e})}(this,function(){var n="1.13.7",t="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},e=Array.prototype,V=Object.prototype,F="undefined"!=typeof Symbol?Symbol.prototype:null,P=e.push,f=e.slice,s=V.toString,q=V.hasOwnProperty,r="undefined"!=typeof ArrayBuffer,u="undefined"!=typeof DataView,U=Array.isArray,W=Object.keys,z=Object.create,L=r&&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),t=Array(n),r=0;r<n;r++)t[r]=arguments[r+o];switch(o){case 0:return u.call(this,t);case 1:return u.call(this,arguments[0],t);case 2:return u.call(this,arguments[0],arguments[1],t)}for(var e=Array(o+1),r=0;r<o;r++)e[r]=arguments[r];return e[o]=t,u.apply(this,e)}}function o(n){var t=typeof n;return"function"==t||"object"==t&&!!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 t="[object "+n+"]";return function(n){return s.call(n)===t}}var X=i("String"),Y=i("Number"),Z=i("Date"),nn=i("RegExp"),tn=i("Error"),rn=i("Symbol"),en=i("ArrayBuffer"),a=i("Function"),t=t.document&&t.document.childNodes,p=a="function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof t?function(n){return"function"==typeof n||!1}:a,t=i("Object"),un=u&&(!/\[native code\]/.test(String(DataView))||t(new DataView(new ArrayBuffer(8)))),a="undefined"!=typeof Map&&t(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,t){return null!=n&&q.call(n,t)}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(t){return function(n){n=t(n);return"number"==typeof n&&0<=n&&n<=G}}function sn(t){return function(n){return null==n?void 0:n[t]}}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=r?function(n){return L?L(n)&&!h(n):pn(n)&&hn.test(s.call(n))}:cn(!1),g=sn("length");function yn(n,t){t=function(t){for(var r={},n=t.length,e=0;e<n;++e)r[t[e]]=!0;return{contains:function(n){return!0===r[n]},push:function(n){return r[n]=!0,t.push(n)}}}(t);var r=J.length,e=n.constructor,u=p(e)&&e.prototype||V,o="constructor";for(y(n,o)&&!t.contains(o)&&t.push(o);r--;)(o=J[r])in n&&n[o]!==u[o]&&!t.contains(o)&&t.push(o)}function b(n){if(!o(n))return[];if(W)return W(n);var t,r=[];for(t in n)y(n,t)&&r.push(t);return K&&yn(n,r),r}function dn(n,t){var r=b(t),e=r.length;if(null==n)return!e;for(var u=Object(n),o=0;o<e;o++){var i=r[o];if(t[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,t,r,e){var u;return n===t?0!==n||1/n==1/t:null!=n&&null!=t&&(n!=n?t!=t:("function"==(u=typeof n)||"object"==u||"object"==typeof t)&&function n(t,r,e,u){t instanceof m&&(t=t._wrapped);r instanceof m&&(r=r._wrapped);var o=s.call(t);if(o!==s.call(r))return!1;if(un&&"[object Object]"==o&&h(t)){if(!h(r))return!1;o=bn}switch(o){case"[object RegExp]":case"[object String]":return""+t==""+r;case"[object Number]":return+t!=+t?+r!=+r:0==+t?1/+t==1/r:+t==+r;case"[object Date]":case"[object Boolean]":return+t==+r;case"[object Symbol]":return F.valueOf.call(t)===F.valueOf.call(r);case"[object ArrayBuffer]":case bn:return n(gn(t),gn(r),e,u)}o="[object Array]"===o;if(!o&&vn(t)){var i=d(t);if(i!==d(r))return!1;if(t.buffer===r.buffer&&t.byteOffset===r.byteOffset)return!0;o=!0}if(!o){if("object"!=typeof t||"object"!=typeof r)return!1;var i=t.constructor,a=r.constructor;if(i!==a&&!(p(i)&&i instanceof i&&p(a)&&a instanceof a)&&"constructor"in t&&"constructor"in r)return!1}e=e||[];u=u||[];var f=e.length;for(;f--;)if(e[f]===t)return u[f]===r;e.push(t);u.push(r);if(o){if((f=t.length)!==r.length)return!1;for(;f--;)if(!mn(t[f],r[f],e,u))return!1}else{var c,l=b(t);if(f=l.length,b(r).length!==f)return!1;for(;f--;)if(c=l[f],!y(r,c)||!mn(t[c],r[c],e,u))return!1}e.pop();u.pop();return!0}(n,t,r,e))}function c(n){if(!o(n))return[];var t,r=[];for(t in n)r.push(t);return K&&yn(n,r),r}function jn(e){var u=g(e);return function(n){if(null==n)return!1;var t=c(n);if(g(t))return!1;for(var r=0;r<u;r++)if(!p(n[e[r]]))return!1;return e!==_n||!p(n[wn])}}var wn="forEach",t=["clear","delete"],u=["get","has","set"],U=t.concat(wn,u),_n=t.concat(u),r=["add"].concat(t,wn,"has"),u=a?jn(U):i("Map"),t=a?jn(_n):i("WeakMap"),U=a?jn(r):i("Set"),a=i("WeakSet");function j(n){for(var t=b(n),r=t.length,e=Array(r),u=0;u<r;u++)e[u]=n[t[u]];return e}function An(n){for(var t={},r=b(n),e=0,u=r.length;e<u;e++)t[n[r[e]]]=r[e];return t}function xn(n){var t,r=[];for(t in n)p(n[t])&&r.push(t);return r.sort()}function Sn(f,c){return function(n){var t=arguments.length;if(c&&(n=Object(n)),!(t<2||null==n))for(var r=1;r<t;r++)for(var e=arguments[r],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),w=Sn(b),Mn=Sn(c,!0);function En(n){var t;return o(n)?z?z(n):((t=function(){}).prototype=n,n=new t,t.prototype=null,n):{}}function Bn(n){return v(n)?n:[n]}function _(n){return m.toPath(n)}function Nn(n,t){for(var r=t.length,e=0;e<r;e++){if(null==n)return;n=n[t[e]]}return r?n:void 0}function In(n,t,r){n=Nn(n,_(t));return H(n)?r:n}function Tn(n){return n}function A(t){return t=w({},t),function(n){return dn(n,t)}}function kn(t){return t=_(t),function(n){return Nn(n,t)}}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,t,r){return u.call(o,n,t,r)};case 4:return function(n,t,r,e){return u.call(o,n,t,r,e)}}return function(){return u.apply(o,arguments)}}function Dn(n,t,r){return null==n?Tn:p(n)?x(n,t,r):(o(n)&&!v(n)?A:kn)(n)}function Rn(n,t){return Dn(n,t,1/0)}function S(n,t,r){return m.iteratee!==Rn?m.iteratee(n,t):Dn(n,t,r)}function Vn(){}function Fn(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))}m.toPath=Bn,m.iteratee=Rn;var O=Date.now||function(){return(new Date).getTime()};function Pn(t){function r(n){return t[n]}var n="(?:"+b(t).join("|")+")",e=RegExp(n),u=RegExp(n,"g");return function(n){return e.test(n=null==n?"":""+n)?n.replace(u,r):n}}var r={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},qn=Pn(r),r=Pn(An(r)),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,t,r,e,u){return e instanceof t?(e=En(n.prototype),o(t=n.apply(e,u))?t:e):n.apply(r,u)}var M=l(function(u,o){function i(){for(var n=0,t=o.length,r=Array(t),e=0;e<t;e++)r[e]=o[e]===a?arguments[n++]:o[e];for(;n<arguments.length;)r.push(arguments[n++]);return Jn(u,i,this,this,r)}var a=M.placeholder;return i}),Gn=(M.placeholder=m,l(function(t,r,e){var u;if(p(t))return u=l(function(n){return Jn(t,u,r,this,e.concat(n))});throw new TypeError("Bind must be called on a function")})),E=ln(g);function B(n,t,r,e){if(e=e||[],t||0===t){if(t<=0)return e.concat(n)}else t=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<t)B(a,t-1,r,e),u=e.length;else for(var f=0,c=a.length;f<c;)e[u++]=a[f++];else r||(e[u++]=a)}return e}var Hn=l(function(n,t){var r=(t=B(t,!1,!1)).length;if(r<1)throw new Error("bindAll must be passed function names");for(;r--;){var e=t[r];n[e]=Gn(n[e],n)}return n});var Qn=l(function(n,t,r){return setTimeout(function(){return n.apply(null,r)},t)}),Xn=M(Qn,m,1);function Yn(n){return function(){return!n.apply(this,arguments)}}function Zn(n,t){var r;return function(){return 0<--n&&(r=t.apply(this,arguments)),n<=1&&(t=null),r}}var nt=M(Zn,2);function tt(n,t,r){t=S(t,r);for(var e,u=b(n),o=0,i=u.length;o<i;o++)if(t(n[e=u[o]],e,n))return e}function rt(o){return function(n,t,r){t=S(t,r);for(var e=g(n),u=0<o?0:e-1;0<=u&&u<e;u+=o)if(t(n[u],u,n))return u;return-1}}var et=rt(1),ut=rt(-1);function ot(n,t,r,e){for(var u=(r=S(r,e,1))(t),o=0,i=g(n);o<i;){var a=Math.floor((o+i)/2);r(n[a])<u?o=a+1:i=a}return o}function it(o,i,a){return function(n,t,r){var e=0,u=g(n);if("number"==typeof r)0<o?e=0<=r?r:Math.max(r+u,e):u=0<=r?Math.min(r+1,u):r+u+1;else if(a&&r&&u)return n[r=a(n,t)]===t?r:-1;if(t!=t)return 0<=(r=i(f.call(n,e,u),fn))?r+e:-1;for(r=0<o?e:u-1;0<=r&&r<u;r+=o)if(n[r]===t)return r;return-1}}var at=it(1,et,ot),ft=it(-1,ut);function ct(n,t,r){t=(E(n)?et:tt)(n,t,r);if(void 0!==t&&-1!==t)return n[t]}function N(n,t,r){if(t=x(t,r),E(n))for(u=0,o=n.length;u<o;u++)t(n[u],u,n);else for(var e=b(n),u=0,o=e.length;u<o;u++)t(n[e[u]],e[u],n);return n}function I(n,t,r){t=S(t,r);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]=t(n[a],a,n)}return o}function lt(f){return function(n,t,r,e){var u=3<=arguments.length;return function(n,t,r,e){var u=!E(n)&&b(n),o=(u||n).length,i=0<f?0:o-1;for(e||(r=n[u?u[i]:i],i+=f);0<=i&&i<o;i+=f){var a=u?u[i]:i;r=t(r,n[a],a,n)}return r}(n,x(t,e,4),r,u)}}var st=lt(1),pt=lt(-1);function T(n,e,t){var u=[];return e=S(e,t),N(n,function(n,t,r){e(n,t,r)&&u.push(n)}),u}function ht(n,t,r){t=S(t,r);for(var e=!E(n)&&b(n),u=(e||n).length,o=0;o<u;o++){var i=e?e[o]:o;if(!t(n[i],i,n))return!1}return!0}function vt(n,t,r){t=S(t,r);for(var e=!E(n)&&b(n),u=(e||n).length,o=0;o<u;o++){var i=e?e[o]:o;if(t(n[i],i,n))return!0}return!1}function k(n,t,r,e){return E(n)||(n=j(n)),0<=at(n,t,r="number"==typeof r&&!e?r:0)}var yt=l(function(n,r,e){var u,o;return p(r)?o=r:(r=_(r),u=r.slice(0,-1),r=r[r.length-1]),I(n,function(n){var t=o;if(!t){if(null==(n=u&&u.length?Nn(n,u):n))return;t=n[r]}return null==t?t:t.apply(n,e)})});function dt(n,t){return I(n,kn(t))}function gt(n,e,t){var r,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!=(r=n[a])&&o<r&&(o=r);else e=S(e,t),N(n,function(n,t,r){u=e(n,t,r),(i<u||u===-1/0&&o===-1/0)&&(o=n,i=u)});return o}var bt=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function mt(n){return n?v(n)?f.call(n):X(n)?n.match(bt):E(n)?I(n,Tn):j(n):[]}function jt(n,t,r){if(null==t||r)return(n=E(n)?n:j(n))[Fn(n.length-1)];for(var e=mt(n),r=g(e),u=(t=Math.max(Math.min(t,r),0),r-1),o=0;o<t;o++){var i=Fn(o,u),a=e[o];e[o]=e[i],e[i]=a}return e.slice(0,t)}function D(o,t){return function(r,e,n){var u=t?[[],[]]:{};return e=S(e,n),N(r,function(n,t){t=e(n,t,r);o(u,n,t)}),u}}var wt=D(function(n,t,r){y(n,r)?n[r].push(t):n[r]=[t]}),_t=D(function(n,t,r){n[r]=t}),At=D(function(n,t,r){y(n,r)?n[r]++:n[r]=1}),xt=D(function(n,t,r){n[r?0:1].push(t)},!0);function St(n,t,r){return t in r}var Ot=l(function(n,t){var r={},e=t[0];if(null!=n){p(e)?(1<t.length&&(e=x(e,t[1])),t=c(n)):(e=St,t=B(t,!1,!1),n=Object(n));for(var u=0,o=t.length;u<o;u++){var i=t[u],a=n[i];e(a,i,n)&&(r[i]=a)}}return r}),Mt=l(function(n,r){var t,e=r[0];return p(e)?(e=Yn(e),1<r.length&&(t=r[1])):(r=I(B(r,!1,!1),String),e=function(n,t){return!k(r,t)}),Ot(n,e,t)});function Et(n,t,r){return f.call(n,0,Math.max(0,n.length-(null==t||r?1:t)))}function Bt(n,t,r){return null==n||n.length<1?null==t||r?void 0:[]:null==t||r?n[0]:Et(n,n.length-t)}function R(n,t,r){return f.call(n,null==t||r?1:t)}var Nt=l(function(n,t){return t=B(t,!0,!0),T(n,function(n){return!k(t,n)})}),It=l(function(n,t){return Nt(n,t)});function Tt(n,t,r,e){Q(t)||(e=r,r=t,t=!1),null!=r&&(r=S(r,e));for(var u=[],o=[],i=0,a=g(n);i<a;i++){var f=n[i],c=r?r(f,i,n):f;t&&!r?(i&&o===c||u.push(f),o=c):r?k(o,c)||(o.push(c),u.push(f)):k(u,f)||u.push(f)}return u}var kt=l(function(n){return Tt(B(n,!0,!0))});function Dt(n){for(var t=n&>(n,g).length||0,r=Array(t),e=0;e<t;e++)r[e]=dt(n,e);return r}var Rt=l(Dt);function Vt(n,t){return n._chain?m(t).chain():t}function Ft(r){return N(xn(r),function(n){var t=m[n]=r[n];m.prototype[n]=function(){var n=[this._wrapped];return P.apply(n,arguments),Vt(this,t.apply(m,n))}}),m}N(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var r=e[t];m.prototype[t]=function(){var n=this._wrapped;return null!=n&&(r.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0]),Vt(this,n)}}),N(["concat","join","slice"],function(n){var t=e[n];m.prototype[n]=function(){var n=this._wrapped;return Vt(this,n=null!=n?t.apply(n,arguments):n)}});n=Ft({__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:tn,isSymbol:rn,isArrayBuffer:en,isDataView:h,isArray:v,isFunction:p,isArguments:an,isFinite:function(n){return!rn(n)&&C(n)&&!isNaN(parseFloat(n))},isNaN:fn,isTypedArray:vn,isEmpty:function(n){var t;return null==n||("number"==typeof(t=g(n))&&(v(n)||X(n)||an(n))?0===t:0===g(b(n)))},isMatch:dn,isEqual:function(n,t){return mn(n,t)},isMap:u,isWeakMap:t,isSet:U,isWeakSet:a,keys:b,allKeys:c,values:j,pairs:function(n){for(var t=b(n),r=t.length,e=Array(r),u=0;u<r;u++)e[u]=[t[u],n[t[u]]];return e},invert:An,functions:xn,methods:xn,extend:On,extendOwn:w,assign:w,defaults:Mn,create:function(n,t){return n=En(n),t&&w(n,t),n},clone:function(n){return o(n)?v(n)?n.slice():On({},n):n},tap:function(n,t){return t(n),n},get:In,has:function(n,t){for(var r=(t=_(t)).length,e=0;e<r;e++){var u=t[e];if(!y(n,u))return!1;n=n[u]}return!!r},mapObject:function(n,t,r){t=S(t,r);for(var e=b(n),u=e.length,o={},i=0;i<u;i++){var a=e[i];o[a]=t(n[a],a,n)}return o},identity:Tn,constant:cn,noop:Vn,toPath:Bn,property:kn,propertyOf:function(t){return null==t?Vn:function(n){return In(t,n)}},matcher:A,matches:A,times:function(n,t,r){var e=Array(Math.max(0,n));t=x(t,r,1);for(var u=0;u<n;u++)e[u]=t(u);return e},random:Fn,now:O,escape:qn,unescape:r,templateSettings:Un,template:function(o,n,t){n=Mn({},n=!n&&t?t:n,m.templateSettings);var r,t=RegExp([(n.escape||Wn).source,(n.interpolate||Wn).source,(n.evaluate||Wn).source].join("|")+"|$","g"),i=0,a="__p+='";if(o.replace(t,function(n,t,r,e,u){return a+=o.slice(i,u).replace(Ln,$n),i=u+n.length,t?a+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":r?a+="'+\n((__t=("+r+"))==null?'':__t)+\n'":e&&(a+="';\n"+e+"\n__p+='"),n}),a+="';\n",t=n.variable){if(!Cn.test(t))throw new Error("variable is not a bare identifier: "+t)}else a="with(obj||{}){\n"+a+"}\n",t="obj";a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{r=new Function(t,"_",a)}catch(n){throw n.source=a,n}function e(n){return r.call(this,n,m)}return e.source="function("+t+"){\n"+a+"}",e},result:function(n,t,r){var e=(t=_(t)).length;if(!e)return p(r)?r.call(n):r;for(var u=0;u<e;u++){var o=null==n?void 0:n[t[u]];void 0===o&&(o=r,u=e),n=p(o)?o.call(n):o}return n},uniqueId:function(n){var t=++Kn+"";return n?n+t:t},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 t=o.cache,r=""+(u?u.apply(this,arguments):n);return y(t,r)||(t[r]=e.apply(this,arguments)),t[r]}return o.cache={},o},delay:Qn,defer:Xn,throttle:function(r,e,u){function o(){l=!1===u.leading?0:O(),i=null,c=r.apply(a,f),i||(a=f=null)}function n(){var n=O(),t=(l||!1!==u.leading||(l=n),e-(n-l));return a=this,f=arguments,t<=0||e<t?(i&&(clearTimeout(i),i=null),l=n,c=r.apply(a,f),i||(a=f=null)):i||!1===u.trailing||(i=setTimeout(o,t)),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(t,r,e){function u(){var n=O()-i;n<r?o=setTimeout(u,r-n):(o=null,e||(f=t.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,r),e&&(f=t.apply(c,a))),f});return n.cancel=function(){clearTimeout(o),o=a=c=null},n},wrap:function(n,t){return M(t,n)},negate:Yn,compose:function(){var r=arguments,e=r.length-1;return function(){for(var n=e,t=r[e].apply(this,arguments);n--;)t=r[n].call(this,t);return t}},after:function(n,t){return function(){if(--n<1)return t.apply(this,arguments)}},before:Zn,once:nt,findKey:tt,findIndex:et,findLastIndex:ut,sortedIndex:ot,
1840indexOf:at,lastIndexOf:ft,find:ct,detect:ct,findWhere:function(n,t){return ct(n,A(t))},each:N,forEach:N,map:I,collect:I,reduce:st,foldl:st,inject:st,reduceRight:pt,foldr:pt,filter:T,select:T,reject:function(n,t,r){return T(n,Yn(S(t)),r)},every:ht,all:ht,some:vt,any:vt,contains:k,includes:k,include:k,invoke:yt,pluck:dt,where:function(n,t){return T(n,A(t))},max:gt,min:function(n,e,t){var r,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!=(r=n[a])&&r<o&&(o=r);else e=S(e,t),N(n,function(n,t,r){((u=e(n,t,r))<i||u===1/0&&o===1/0)&&(o=n,i=u)});return o},shuffle:function(n){return jt(n,1/0)},sample:jt,sortBy:function(n,e,t){var u=0;return e=S(e,t),dt(I(n,function(n,t,r){return{value:n,index:u++,criteria:e(n,t,r)}}).sort(function(n,t){var r=n.criteria,e=t.criteria;if(r!==e){if(e<r||void 0===r)return 1;if(r<e||void 0===e)return-1}return n.index-t.index}),"value")},groupBy:wt,indexBy:_t,countBy:At,partition:xt,toArray:mt,size:function(n){return null==n?0:(E(n)?n:b(n)).length},pick:Ot,omit:Mt,first:Bt,head:Bt,take:Bt,initial:Et,last:function(n,t,r){return null==n||n.length<1?null==t||r?void 0:[]:null==t||r?n[n.length-1]:R(n,Math.max(0,n.length-t))},rest:R,tail:R,drop:R,compact:function(n){return T(n,Boolean)},flatten:function(n,t){return B(n,t,!1)},without:It,uniq:Tt,unique:Tt,union:kt,intersection:function(n){for(var t=[],r=arguments.length,e=0,u=g(n);e<u;e++){var o=n[e];if(!k(t,o)){for(var i=1;i<r&&k(arguments[i],o);i++);i===r&&t.push(o)}}return t},difference:Nt,unzip:Dt,transpose:Dt,zip:Rt,object:function(n,t){for(var r={},e=0,u=g(n);e<u;e++)t?r[n[e]]=t[e]:r[n[e][0]]=n[e][1];return r},range:function(n,t,r){null==t&&(t=n||0,n=0),r=r||(t<n?-1:1);for(var e=Math.max(Math.ceil((t-n)/r),0),u=Array(e),o=0;o<e;o++,n+=r)u[o]=n;return u},chunk:function(n,t){if(null==t||t<1)return[];for(var r=[],e=0,u=n.length;e<u;)r.push(f.call(n,e,e+=t));return r},mixin:Ft,default:m});return n._=n}); 1841 1842 1843moment.updateLocale( 'en_US', {"months":["January","February","March","April","May","June","July","August","September","October","November","December"],"monthsShort":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"weekdays":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"weekdaysShort":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"week":{"dow":1},"longDateFormat":{"LT":"g:i a","LTS":null,"L":null,"LL":"F j, Y","LLL":"F j, Y g:i a","LLLL":null}} ); 1844 1845} 1846catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://labadibeachhotelgh.com/wp-includes/js/underscore.min.js\n- Error message: "+ e.message);} 1847 1848 1849 var wcBlocksMiddlewareConfig = { 1850 storeApiNonce: '048b8c78f0', 1851 wcStoreApiNonceTimestamp: '1790786511' 1852 }; 1853 1854/*! This file is auto-generated */ 1855!function(n){var s="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global;if("function"==typeof define&&define.amd)define(["underscore","jquery","exports"],function(t,e,i){s.Backbone=n(s,i,t,e)});else if("undefined"!=typeof exports){var t,e=require("underscore");try{t=require("jquery")}catch(t){}n(s,exports,e,t)}else s.Backbone=n(s,{},s._,s.jQuery||s.Zepto||s.ender||s.$)}(function(t,h,b,e){function a(t,e,i,n,s){var r,o=0;if(i&&"object"==typeof i){void 0!==n&&"context"in s&&void 0===s.context&&(s.context=n);for(r=b.keys(i);o<r.length;o++)e=a(t,e,r[o],i[r[o]],s)}else if(i&&l.test(i))for(r=i.split(l);o<r.length;o++)e=t(e,r[o],n,s);else e=t(e,i,n,s);return e}function x(t,e,i){i=Math.min(Math.max(i,0),t.length);for(var n=Array(t.length-i),s=e.length,r=0;r<n.length;r++)n[r]=t[r+i];for(r=0;r<s;r++)t[r+i]=e[r];for(r=0;r<n.length;r++)t[r+s+i]=n[r]}function s(i,n,t,s){b.each(t,function(t,e){n[e]&&(i.prototype[e]=function(n,t,s,r){switch(t){case 1:return function(){return n[s](this[r])};case 2:return function(t){return n[s](this[r],t)};case 3:return function(t,e){return n[s](this[r],T(t,this),e)};case 4:return function(t,e,i){return n[s](this[r],T(t,this),e,i)};default:return function(){var t=u.call(arguments);return t.unshift(this[r]),n[s].apply(n,t)}}}(n,t,e,s))})}var o,i=t.Backbone,u=Array.prototype.slice,e=(h.VERSION="1.6.0",h.$=e,h.noConflict=function(){return t.Backbone=i,this},h.emulateHTTP=!1,h.emulateJSON=!1,h.Events={}
vendor: 4,258 bytes, line 1855
1855),l=/\s+/,n=(e.on=function(t,e,i){return this._events=a(n,this._events||{},t,e,{context:i,ctx:this,listening:o}),o&&(((this._listeners||(this._listeners={}))[o.id]=o).interop=!1),this},e.listenTo=function(t,e,i){if(t){var n=t._listenId||(t._listenId=b.uniqueId("l")),s=this._listeningTo||(this._listeningTo={}),r=o=s[n],s=(r||(this._listenId||(this._listenId=b.uniqueId("l")),r=o=s[n]=new g(this,t)),c(t,e,i,this));if(o=void 0,s)throw s;r.interop&&r.on(e,i)}return this},function(t,e,i,n){var s,r;return i&&(e=t[e]||(t[e]=[]),s=n.context,r=n.ctx,(n=n.listening)&&n.count++,e.push({callback:i,context:s,ctx:s||r,listening:n})),t}),c=function(t,e,i,n){try{t.on(e,i,n)}catch(t){return t}},r=(e.off=function(t,e,i){return this._events&&(this._events=a(r,this._events,t,e,{context:i,listeners:this._listeners})),this},e.stopListening=function(t,e,i){var n=this._listeningTo;if(n){for(var s=t?[t._listenId]:b.keys(n),r=0;r<s.length;r++){var o=n[s[r]];if(!o)break;o.obj.off(e,i,this),o.interop&&o.off(e,i)}b.isEmpty(n)&&(this._listeningTo=void 0)}return this},function(t,e,i,n){if(t){var s,r=n.context,o=n.listeners,h=0;if(e||r||i){for(s=e?[e]:b.keys(t);h<s.length;h++){var a=t[e=s[h]];if(!a)break;for(var u=[],l=0;l<a.length;l++){var c=a[l];i&&i!==c.callback&&i!==c.callback._callback||r&&r!==c.context?u.push(c):(c=c.listening)&&c.off(e,i)}u.length?t[e]=u:delete t[e]}return t}for(s=b.keys(o);h<s.length;h++)o[s[h]].cleanup()}}),d=(e.once=function(t,e,i){var n=a(d,{},t,e,this.off.bind(this));return this.on(n,e="string"==typeof t&&null==i?void 0:e,i)},e.listenToOnce=function(t,e,i){e=a(d,{},e,i,this.stopListening.bind(this,t));return this.listenTo(t,e)},function(t,e,i,n){var s;return i&&((s=t[e]=b.once(function(){n(e,s),i.apply(this,arguments)}))._callback=i),t}),f=(e.trigger=function(t){if(this._events){for(var e=Math.max(0,arguments.length-1),i=Array(e),n=0;n<e;n++)i[n]=arguments[n+1];a(f,this._events,t,void 0,i)}return this},function(t,e,i,n){var s,r;return t&&(s=t[e],r=t.all,s&&(r=r&&r.slice()),s&&p(s,n),r)&&p(r,[e].concat(n)),t}),p=function(t,e){var i,n=-1,s=t.length,r=e[0],o=e[1],h=e[2];switch(e.length){case 0:for(;++n<s;)(i=t[n]).callback.call(i.ctx);return;case 1:for(;++n<s;)(i=t[n]).callback.call(i.ctx,r);return;case 2:for(;++n<s;)(i=t[n]).callback.call(i.ctx,r,o);return;case 3:for(;++n<s;)(i=t[n]).callback.call(i.ctx,r,o,h);return;default:for(;++n<s;)(i=t[n]).callback.apply(i.ctx,e);return}},g=function(t,e){this.id=t._listenId,this.listener=t,this.obj=e,this.interop=!0,this.count=0,this._events=void 0},v=(g.prototype.on=e.on,g.prototype.off=function(t,e){t=this.interop?(this._events=a(r,this._events,t,e,{context:void 0,listeners:void 0}),!this._events):(this.count--,0===this.count);t&&this.cleanup()},g.prototype.cleanup=function(){delete this.listener._listeningTo[this.obj._listenId],this.interop||delete this.obj._listeners[this.id]},e.bind=e.on,e.unbind=e.off,b.extend(h,e),h.Model=function(t,e){var i=t||{},n=(e=e||{},this.preinitialize.apply(this,arguments),this.cid=b.uniqueId(this.cidPrefix),this.attributes={},e.collection&&(this.collection=e.collection),e.parse&&(i=this.parse(i,e)||{}),b.result(this,"defaults")),i=b.defaults(b.extend({},n,i),n);this.set(i,e),this.changed={},this.initialize.apply(this,arguments)}),m=(b.extend(v.prototype,e,{changed:null,validationError:null,idAttribute:"id",cidPrefix:"c",preinitialize:function(){},initialize:function(){},toJSON:function(t){return b.clone(this.attributes)},sync:function(){return h.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return b.escape(this.get(t))},has:function(t){return null!=this.get(t)},matches:function(t){return!!b.iteratee(t,this)(this.attributes)},set:function(t,e,i){if(null!=t){var n;if("object"==typeof t?(n=t,i=e):(n={})[t]=e,!this._validate(n,i=i||{}))return!1;var s,r,o=i.unset,t=i.silent,h=[],a=this._changing,u=(this._changing=!0,a||(this._previousAttributes=b.clone(this.attributes),this.changed={}),this.attributes),l=this.changed,c=this._previousAttributes;for(s in n)e=n[s],b.isEqual(u[s],e)||h.push(s),b.isEqual(c[s],e)?delete l[s]:l[s]=e,o?delete u[s]:u[s]=e;if(this.idAttribute in n&&(r=this.id,this.id=this.get(this.idAttribute),this.trigger("changeId",this,r,i)),!t){h.length&&(this._pe
1855nding=i);for(var d=0;d<h.length;d++)this.trigger("change:"+h[d],this,u[h[d]],i)}if(!a){if(!t)for(;this._pending;)i=this._pending,this._pending=!1,this.trigger("change",this,i);this._pending=!1,this._changing=!1}}return this},unset:function(t,e){return this.set(t,void 0,b.extend({},e,{unset:!0}))},clear:function(t){var e,i={};for(e in this.attributes)i[e]=void 0;return this.set(i,b.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!b.isEmpty(this.changed):b.has(this.changed,t)},changedAttributes:function(t){if(!t)return!!this.hasChanged()&&b.clone(this.changed);var e,i,n=this._changing?this._previousAttributes:this.attributes,s={};for(i in t){var r=t[i];b.isEqual(n[i],r)||(s[i]=r,e=!0)}return!!e&&s},previous:function(t){return null!=t&&this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return b.clone(this._previousAttributes)},fetch:function(i){i=b.extend({parse:!0},i);var n=this,s=i.success;return i.success=function(t){var e=i.parse?n.parse(t,i):t;if(!n.set(e,i))return!1;s&&s.call(i.context,n,t,i),n.trigger("sync",n,t,i)},N(this,i),this.sync("read",this,i)},save:function(t,e,i){null==t||"object"==typeof t?(n=t,i=e):(n={})[t]=e;var n,s=(i=b.extend({validate:!0,parse:!0},i)).wait;if(n&&!s){if(!this.set(n,i))return!1}else if(!this._validate(n,i))return!1;var r=this,o=i.success,h=this.attributes,t=(i.success=function(t){r.attributes=h;var e=i.parse?r.parse(t,i):t;if((e=s?b.extend({},n,e):e)&&!r.set(e,i))return!1;o&&o.call(i.context,r,t,i),r.trigger("sync",r,t,i)},N(this,i),n&&s&&(this.attributes=b.extend({},h,n)),this.isNew()?"create":i.patch?"patch":"update"),e=("patch"!=t||i.attrs||(i.attrs=n),this.sync(t,this,i));return this.attributes=h,e},destroy:function(e){e=e?b.clone(e):{};function i(){n.stopListening(),n.trigger("destroy",n,n.collection,e)}var n=this,s=e.success,r=e.wait,t=!(e.success=function(t){r&&i(),s&&s.call(e.context,n,t,e),n.isNew()||n.trigger("sync",n,t,e)});return this.isNew()?b.defer(e.success):(N(this,e),t=this.sync("delete",this,e)),r||i(),t},url:function(){var t,e=b.result(this,"urlRoot")||b.result(this.collection,"url")||M();return this.isNew()?e:(t=this.get(this.idAttribute),e.replace(/[^\/]$/,"$&/")+encodeURIComponent(t))},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},b.extend({},t,{validate:!0}))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=b.extend({},this.attributes,t);t=this.validationError=this.validate(t,e)||null;return!t||(this.trigger("invalid",this,t,b.extend(e,{validationError:t})),!1)}}),h.Collection=function(t,e){e=e||{},this.preinitialize.apply(this,arguments),e.model&&(this.model=e.model),void 0!==e.comparator&&(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&&this.reset(t,b.extend({silent:!0},e))}),w={add:!0,remove:!0,merge:!0},_={add:!0,remove:!1},y=(b.extend(m.prototype,e,{model:v,preinitialize:function(){},initialize:function(){},toJSON:function(e){return this.map(function(t){return t.toJSON(e)})},sync:function(){return h.sync.apply(this,arguments)},add:function(t,e){return this.set(t,b.extend({merge:!1},e,_))},remove:function(t,e){e=b.extend({},e);var i=!b.isArray(t),t=(t=i?[t]:t.slice(),this._removeModels(t,e));return!e.silent&&t.length&&(e.changes={added:[],merged:[],removed:t},this.trigger("update",this,e)),i?t[0]:t},set:function(t,e){if(null!=t){(e=b.extend({},w,e)).parse&&!this._isModel(t)&&(t=this.parse(t,e)||[]);for(var i=!b.isArray(t),n=(t=i?[t]:t.slice(),e.at),s=((n=(n=null!=n?+n:n)>this.length?this.length:n)<0&&(n+=this.length+1),[]),r=[],o=[],h=[],a={},u=e.add,l=e.merge,c=e.remove,d=!1,f=this.comparator&&null==n&&!1!==e.sort,p=b.isString(this.comparator)?this.comparator:null,g=0;g<t.length;g++){var v,m=t[g],_=this.get(m);_?(l&&m!==_&&(v=this._isModel(m)?m.attributes:m,e.parse&&(v=_.parse(v,e)),_.set(v,e),o.push(_),f)&&!d&&(d=_.hasChanged(p)),a[_.cid]||(a[_.cid]=!0,s.push(_)),t[g]=_):u&&(m=t[g]=this._prepareModel(m,e))&&(r.push(m),this._addReference(m,e),a[m.cid]=!0,s.push(m))}if(c){for(g=0;g<this.length;g++)a[(m=this.models[g]).cid]||h.push(m);h.length&&this._removeModels(h,e)}var y=!1;if(s.length&&(!f&&u&&c)?(y=this.length!==s.length||b.some(this.models,function(t,e){return t!==s[e]}),this.models.length=0,x(this.models,s,0),this.length=this.models.length):r.length&&(f&&(d=!0),x(this.models,r,null==n?this.length:n),this.length=this.models.length),d&&this.sort({silent:!0}),!e.silent){for(g=0;g<r.length;g++)null!=n&&(e.index=n+g),(m=r[g]).trigger("add",m,this,e);(d||y)&&this.trigger("sort",this,e),(r.length||h.length||o.length)&&(e.changes={added:r,removed:h,merged:o},this.trigger("update",this,e))}return i?t[0]:t}},reset:function(t,e){e=e?b.clone(e):{};for(var i=0;i<this.models.length;i++)this._removeReference(this.models[i],e);return e.previousModels=this.models,this._reset(),t=this.add(t,b.extend({silent:!0},e)),e.silent||this.trigger("reset",this,e),t},push:function(t,e){return this.add(t,b.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t)},unshift:function(t,e){return this.add(t,b.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t)},slice:function(){return u.apply(this.models,arguments)},get:function(t){if(null!=t)return this._byId[t]||this._byId[this.modelId(this._isModel(t)?t.attributes:t,t.idAttribute)]||t.cid&&this._byId[t.cid]},has:function(t){return null!=this.get(t)},at:function(t){return t<0&&(t+=this.length),this.models[t]},where:function(t,e){return this[e?"find":"filter"](t)},findWhere:function(t){return this.where(t,!0)},sort:function(t){var e=this.comparator;if(!e)throw new Error("Cannot sort a set without a comparator");t=t||{};var i=e.length;return b.isFunction(e)&&(e=e.bind(this)),1===i||b.isString(e)?this.models=this.sortBy(e):this.models.sort(e),t.silent||this.trigger("sort",this,t),this},pluck:function(t){return this.map(t+"")},fetch:function(i){var n=(i=b.extend({parse:!0},i)).success,s=this;return i.success=function(t){var e=i.reset?"reset":"set";s[e](t,i),n&&n.call(i.context,s,t,i),s.trigger("sync",s,t,i)},N(this,i),this.sync("read",this,i)},create:function(t,e){var n=(e=e?b.clone(e):{}).wait;if(!(t=this._prepareModel(t,e)))return!1;n||this.add(t,e);var s=this,r=e.success;
1855return e.success=function(t,e,i){n&&(t.off("error",s._forwardPristineError,s),s.add(t,i)),r&&r.call(i.context,t,e,i)},n&&t.once("error",this._forwardPristineError,this),t.save(null,e),t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(t,e){return t[e||this.model.prototype.idAttribute||"id"]},values:function(){return new E(this,S)},keys:function(){return new E(this,I)},entries:function(){return new E(this,k)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){return this._isModel(t)?(t.collection||(t.collection=this),t):(t=((e=e?b.clone(e):{}).collection=this).model.prototype?new this.model(t,e):this.model(t,e)).validationError?(this.trigger("invalid",this,t.validationError,e),!1):t},_removeModels:function(t,e){for(var i=[],n=0;n<t.length;n++){var s,r,o=this.get(t[n]);o&&(s=this.indexOf(o),this.models.splice(s,1),this.length--,delete this._byId[o.cid],null!=(r=this.modelId(o.attributes,o.idAttribute))&&delete this._byId[r],e.silent||(e.index=s,o.trigger("remove",o,this,e)),i.push(o),this._removeReference(o,e))}return 0<t.length&&!e.silent&&delete e.index,i},_isModel:function(t){return t instanceof v},_addReference:function(t,e){this._byId[t.cid]=t;var i=this.modelId(t.attributes,t.idAttribute);null!=i&&(this._byId[i]=t),t.on("all",this._onModelEvent,this)},_removeReference:function(t,e){delete this._byId[t.cid];var i=this.modelId(t.attributes,t.idAttribute);null!=i&&delete this._byId[i],this===t.collection&&delete t.collection,t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,i,n){if(e){if(("add"===t||"remove"===t)&&i!==this)return;var s,r;"destroy"===t&&this.remove(e,n),"changeId"===t&&(s=this.modelId(e.previousAttributes(),e.idAttribute),r=this.modelId(e.attributes,e.idAttribute),null!=s&&delete this._byId[s],null!=r)&&(this._byId[r]=e)}this.trigger.apply(this,arguments)},_forwardPristineError:function(t,e,i){this.has(t)||this._onModelEvent("error",t,e,i)}}),"function"==typeof Symbol&&Symbol.iterator),E=(y&&(m.prototype[y]=m.prototype.values),function(t,e){this._collection=t,this._kind=e,this._index=0}),S=1,I=2,k=3,y=(y&&(E.prototype[y]=function(){return this}),E.prototype.next=function(){if(this._collection){var t,e;if(this._index<this._collection.length)return t=this._collection.at(this._index),this._index++,{value:this._kind===S?t:(e=this._collection.modelId(t.attributes,t.idAttribute),this._kind===I?e:[e,t]),done:!1};this._collection=void 0}return{value:void 0,done:!0}},h.View=function(t){this.cid=b.uniqueId("view"),this.preinitialize.apply(this,arguments),b.extend(this,b.pick(t,P)),this._ensureElement(),this.initialize.apply(this,arguments)}),A=/^(\S+)\s*(.*)$/,P=["model","collection","el","id","attributes","className","tagName","events"],T=(b.extend(y.prototype,e,{tagName:"div",$:function(t){return this.$el.find(t)},preinitialize:function(){},initialize:function(){},render:function(){return this},remove:function(){return this._removeElement(),this.stopListening(),this},_removeElement:function(){this.$el.remove()},setElement:function(t){return this.undelegateEvents(),this._setElement(t),this.delegateEvents(),this},_setElement:function(t){this.$el=t instanceof h.$?t:h.$(t),this.el=this.$el[0]},delegateEvents:function(t){if(t=t||b.result(this,"events"))for(var e in this.undelegateEvents(),t){var i=t[e];(i=b.isFunction(i)?i:this[i])&&(e=e.match(A),this.delegate(e[1],e[2],i.bind(this)))}return this},delegate:function(t,e,i){return this.$el.on(t+".delegateEvents"+this.cid,e,i),this},undelegateEvents:function(){return this.$el&&this.$el.off(".delegateEvents"+this.cid),this},undelegate:function(t,e,i){return this.$el.off(t+".delegateEvents"+this.cid,e,i),this},_createElement:function(t){return document.createElement(t)},_ensureElement:function(){var t;this.el?this.setElement(b.result(this,"el")):(t=b.extend({},b.result(this,"attributes")),this.id&&(t.id=b.result(this,"id")),this.className&&(t.class=b.result(this,"className")),this.setElement(this._createElement(b.result(this,"tagName"))),this._setAttributes(t))},_setAttributes:function(t){this.$el.attr(t)}}),function(e,t){return b.isFunction(e)?e:b.isObject(e)&&!t._isModel(e)?H(e):b.isString(e)?function(t){return t.get(e)}:e}),H=function(t){var e=b.matches(t);return function(t){return e(t.attributes)}}
1855,$=(b.each([[m,{forEach:3,each:3,map:3,collect:3,reduce:0,foldl:0,inject:0,reduceRight:0,foldr:0,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:3,includes:3,contains:3,invoke:0,max:3,min:3,toArray:1,size:1,first:3,head:3,take:3,initial:3,rest:3,tail:3,drop:3,last:3,without:0,difference:0,indexOf:3,shuffle:1,lastIndexOf:3,isEmpty:1,chain:1,sample:3,partition:3,groupBy:3,countBy:3,sortBy:3,indexBy:3,findIndex:3,findLastIndex:3},"models"],[v,{keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1},"attributes"]],function(t){var i=t[0],e=t[1],n=t[2];i.mixin=function(t){var e=b.reduce(b.functions(t),function(t,e){return t[e]=0,t},{});s(i,t,e,n)},s(i,b,e,n)}),h.sync=function(t,e,n){var i,s=$[t],r=(b.defaults(n=n||{},{emulateHTTP:h.emulateHTTP,emulateJSON:h.emulateJSON}),{type:s,dataType:"json"}),o=(n.url||(r.url=b.result(e,"url")||M()),null!=n.data||!e||"create"!==t&&"update"!==t&&"patch"!==t||(r.contentType="application/json",r.data=JSON.stringify(n.attrs||e.toJSON(n))),n.emulateJSON&&(r.contentType="application/x-www-form-urlencoded",r.data=r.data?{model:r.data}:{}),!n.emulateHTTP||"PUT"!==s&&"DELETE"!==s&&"PATCH"!==s||(r.type="POST",n.emulateJSON&&(r.data._method=s),i=n.beforeSend,n.beforeSend=function(t){if(t.setRequestHeader("X-HTTP-Method-Override",s),i)return i.apply(this,arguments)}),"GET"===r.type||n.emulateJSON||(r.processData=!1),n.error),t=(n.error=function(t,e,i){n.textStatus=e,n.errorThrown=i,o&&o.call(n.context,t,e,i)},n.xhr=h.ajax(b.extend(r,n)));return e.trigger("request",e,t,n),t},{create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"}),C=(h.ajax=function(){return h.$.ajax.apply(h.$,arguments)},h.Router=function(t){t=t||{},this.preinitialize.apply(this,arguments),t.routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)}),j=/\((.*?)\)/g,O=/(\(\?)?:\w+/g,U=/\*\w+/g,z=/[\-{}\[\]+?.,\\\^$|#\s]/g,R=(b.extend(C.prototype,e,{preinitialize:function(){},initialize:function(){},route:function(e,i,n){b.isRegExp(e)||(e=this._routeToRegExp(e)),b.isFunction(i)&&(n=i,i=""),n=n||this[i];var s=this;return h.history.route(e,function(t){t=s._extractParameters(e,t);!1!==s.execute(n,t,i)&&(s.trigger.apply(s,["route:"+i].concat(t)),s.trigger("route",i,t),h.history.trigger("route",s,i,t))}),this},execute:function(t,e,i){t&&t.apply(this,e)},navigate:function(t,e){return h.history.navigate(t,e),this},_bindRoutes:function(){if(this.routes){this.routes=b.result(this,"routes");for(var t,e=b.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(z,"\\$&").replace(j,"(?:$1)?").replace(O,function(t,e){return e?t:"([^/?]+)"}).replace(U,"([^?]*?)"),new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var i=t.exec(e).slice(1);return b.map(i,function(t,e){return e===i.length-1?t||null:t?decodeURIComponent(t):null})}}),h.History=function(){this.handlers=[],this.checkUrl=this.checkUrl.bind(this),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)}),q=/^[#\/]|\s+$/g,F=/^\/+|\/+$/g,B=/#.*$/,M=(R.started=!1,b.extend(R.prototype,e,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root&&!this.getSearch()},matchRoot:function(){return this.decodeFragment(this.location.pathname).slice(0,this.root.length-1)+"/"===this.root},decodeFragment:function(t){return decodeURI(t.replace(/%25/g,"%2525"))},getSearch:function(){var t=this.location.href.replace(/#.*/,"").match(/\?.+/);return t?t[0]:""},getHash:function(t){t=(t||this).location.href.match(/#(.*)$/);return t?t[1]:""},getPath:function(){var t=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return"/"===t.charAt(0)?t.slice(1):t},getFragment:function(t){return(t=null==t?this._usePushState||!this._wantsHashChange?this.getPath():this.getHash():t).replace(q,"")},start:function(t){if(R.started)throw new Error("Backbone.history has already been started");if(R.started=!0,this.options=b.extend({root:"/"},this.options,t),this.root=this.options.root,this._trailingSlash=this.options.trailingSlash,this._wantsHashChange=!1!==this.options.hashChange,this._hasHashChange="onhashchange"in window&&(void 0===document.documentMode||7<document.documentMode),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||
1855!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(F,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot())return t=this.root.slice(0,-1)||"/",this.location.replace(t+"#"+this.getPath()),!0;this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}this._hasHashChange||!this._wantsHashChange||this._usePushState||(this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1,(t=(t=document.body).insertBefore(this.iframe,t.firstChild).contentWindow).document.open(),t.document.close(),t.location.hash="#"+this.fragment);t=window.addEventListener||function(t,e){return attachEvent("on"+t,e)};if(this._usePushState?t("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?t("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var t=window.removeEventListener||function(t,e){return detachEvent("on"+t,e)};this._usePushState?t("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&t("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),R.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();if((e=e===this.fragment&&this.iframe?this.getHash(this.iframe.contentWindow):e)===this.fragment)return!this.matchRoot()&&this.notfound();this.iframe&&this.navigate(e),this.loadUrl()},loadUrl:function(e){return this.matchRoot()&&(e=this.fragment=this.getFragment(e),b.some(this.handlers,function(t){if(t.route.test(e))return t.callback(e),!0}))||this.notfound()},notfound:function(){return this.trigger("notfound"),!1},navigate:function(t,e){if(!R.started)return!1;e&&!0!==e||(e={trigger:!!e}),t=this.getFragment(t||"");var i=this.root,i=(i=this._trailingSlash||""!==t&&"?"!==t.charAt(0)?i:i.slice(0,-1)||"/")+t,n=(t=t.replace(B,""),this.decodeFragment(t));if(this.fragment!==n){if(this.fragment=n,this._usePushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,i);else{if(!this._wantsHashChange)return this.location.assign(i);this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getHash(this.iframe.contentWindow)&&(n=this.iframe.contentWindow,e.replace||(n.document.open(),n.document.close()),this._updateHash(n.location,t,e.replace))}return e.trigger?this.loadUrl(t):void 0}},_updateHash:function(t,e,i){i?(i=t.href.replace(/(javascript:|#).*$/,""),t.replace(i+"#"+e)):t.hash="#"+e}}),h.history=new R,v.extend=m.extend=C.extend=y.extend=R.extend=function(t,e){var i=this,n=t&&b.has(t,"constructor")?t.constructor:function(){return i.apply(this,arguments)};return b.extend(n,i,e),n.prototype=b.create(i.prototype,t),(n.prototype.constructor=n).__super__=i.prototype,n},function(){throw new Error('A "url" property or function must be specified')}),N=function(e,i){var n=i.error;i.error=function(t){n&&n.call(i.context,e,t,i),e.trigger("error",e,t,i)}};return h._debug=function(){return{root:t,_:b}},h}); 1856 1857 1858moment.updateLocale( 'en_US', {"months":["January","February","March","April","May","June","July","August","September","October","November","December"],"monthsShort":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"weekdays":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"weekdaysShort":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"week":{"dow":1},"longDateFormat":{"LT":"g:i a","LTS":null,"L":null,"LL":"F j, Y","LLL":"F j, Y g:i a","LLLL":null}} ); 1859 1860} 1861catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://labadibeachhotelgh.com/wp-includes/js/backbone.min.js\n- Error message: "+ e.message);} 1862 1863 1864 var wcBlocksMiddlewareConfig = { 1865 storeApiNonce: '048b8c78f0', 1866 wcStoreApiNonceTimestamp: '1790786511' 1867 }; 1868 1869/*! This file is auto-generated */ 1870!function(e){"use strict";e.wp=e.wp||{},wp.api=wp.api||new function(){this.models={},this.collections={},this.views={}},wp.api.versionString=wp.api.versionString||"wp/v2/",!_.isFunction(_.includes)&&_.isFunction(_.contains)&&(_.includes=_.contains)}(window),function(e){"use strict";var t,i;e.wp=e.wp||{},wp.api=wp.api||{},wp.api.utils=wp.api.utils||{},wp.api.getModelByRoute=function(t){return _.find(wp.api.models,function(e){return e.prototype.route&&t===e.prototype.route.index})},wp.api.getCollectionByRoute=function(t){return _.find(wp.api.collections,function(e){return e.prototype.route&&t===e.prototype.route.index})},Date.prototype.toISOString||(t=function(e){return i=1===(i=String(e)).length?"0"+i:i},Date.prototype.toISOString=function(){return this.getUTCFullYear()+"-"+t(this.getUTCMonth()+1)+"-"+t(this.getUTCDate())+"T"+t(this.getUTCHours())+":"+t(this.getUTCMinutes())+":"+t(this.getUTCSeconds())+"."+String((this.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}),wp.api.utils.parseISO8601=function(e){var t,i,n,o,s=0,a=[1,4,5,6,7,10,11];if(i=/^(\d{4}|[+\-]\d{6})(?:-(\d{2})(?:-(\d{2}))?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/.exec(e)){for(n=0;o=a[n];++n)i[o]=+i[o]||0;i[2]=(+i[2]||1)-1,i[3]=+i[3]||1,"Z"!==i[8]&&void 0!==i[9]&&(s=60*i[10]+i[11],"+"===i[9])&&(s=0-s),t=Date.UTC(i[1],i[2],i[3],i[4],i[5]+s,i[6],i[7])}else t=Date.parse?Date.parse(e):NaN;return t},wp.api.utils.getRootUrl=function(){return e.location.origin?e.location.origin+"/":e.location.protocol+"//"+e.location.host+"/"},wp.api.utils.capitalize=function(e){return _.isUndefined(e)?e:e.charAt(0).toUpperCase()+e.slice(1)},wp.api.utils.capitalizeAndCamelCaseDashes=function(e){return _.isUndefined(e)?e:(e=wp.api.utils.capitalize(e),wp.api.utils.camelCaseDashes(e))},wp.api.utils.camelCaseDashes=function(e){return e.replace(/-([a-z])/g,function(e){return e[1].toUpperCase()})},wp.api.utils.extractRoutePart=function(e,t,i,n){return t=t||1,i=i||wp.api.versionString,i=(e=0===e.indexOf("/"+i)?e.substr(i.length+1):e).split("/"),n&&(i=i.reverse()),_.isUndefined(i[--t])?"":i[t]},wp.api.utils.extractParentName=function(e){var t=e.lastIndexOf("_id>[\\d]+)/");
1870return t<0?"":((e=(e=e.substr(0,t-1)).split("/")).pop(),e.pop())},wp.api.utils.decorateFromRoute=function(e,t){_.each(e,function(e){_.includes(e.methods,"POST")||_.includes(e.methods,"PUT")?_.isEmpty(e.args)||(_.isEmpty(t.prototype.args)?t.prototype.args=e.args:t.prototype.args=_.extend(t.prototype.args,e.args)):_.includes(e.methods,"GET")&&!_.isEmpty(e.args)&&(_.isEmpty(t.prototype.options)?t.prototype.options=e.args:t.prototype.options=_.extend(t.prototype.options,e.args))})},wp.api.utils.addMixinsAndHelpers=function(t,e,i){function n(e,t,i,n,o){var s,a=jQuery.Deferred(),e=e.get("_embedded")||{};return _.isNumber(t)&&0!==t?(s=(s=e[n]?_.findWhere(e[n],{id:t}):s)||{id:t},(e=new wp.api.models[i](s)).get(o)?a.resolve(e):e.fetch({success:function(e){a.resolve(e)},error:function(e,t){a.reject(t)}}),a.promise()):(a.reject(),a)}function p(e,t){_.each(e.models,function(e){e.set("parent_post",t)})}var o=!1,s=["date","modified","date_gmt","modified_gmt"],a={setDate:function(e,t){t=t||"date";if(_.indexOf(s,t)<0)return!1;this.set(t,e.toISOString())},getDate:function(e){var e=e||"date",t=this.get(e);return!(_.indexOf(s,e)<0||_.isNull(t))&&new Date(wp.api.utils.parseISO8601(t))}},r={getMeta:function(e){return this.get("meta")[e]},getMetas:function(){return this.get("meta")},setMetas:function(e){var t=this.get("meta");_.extend(t,e),this.set("meta",t)},setMeta:function(e,t){var i=this.get("meta");i[e]=t,this.set("meta",i)}},c={getRevisions:function(){return e=this,t="PostRevisions",s=o="",a=jQuery.Deferred(),r=e.get("id"),e=e.get("_embedded")||{},_.isNumber(r)&&0!==r?(_.isUndefined(i)||_.isUndefined(e[i])?o={parent:r}:s=_.isUndefined(n)?e[i]:e[i][n],e=new wp.api.collections[t](s,o),_.isUndefined(e.models[0])?e.fetch({success:function(e){p(e,r),a.resolve(e)},error:function(e,t){a.reject(t)}}):(p(e,r),a.resolve(e)),a.promise()):(a.reject(),a);var e,t,i,n,o,s,a,r}},d={getTags:function(){var e=this.get("tags"),t=new wp.api.collections.Tags;return _.isEmpty(e)?jQuery.Deferred().resolve([]):t.fetch({data:{include:e}})},setTags:function(e){var i,n=this,o=[];if(_.isString(e))return!1;_.isArray(e)?(new wp.api.collections.Tags).fetch({data:{per_page:100},success:function(t){_.each(e,function(e){(i=new wp.api.models.Tag(t.findWhere({slug:e}))).set("parent_post",n.get("id")),o.push(i)}),e=new wp.api.collections.Tags(o),n.setTagsWithCollection(e)}}):this.setTagsWithCollection(e)},setTagsWithCollection:function(e){return this.set("tags",e.pluck("id")),this.save()}},l={getCategories:function(){var e=this.get("categories"),t=new wp.api.collections.Categories;return _.isEmpty(e)?jQuery.Deferred().resolve([]):t.fetch({data:{include:e}})},setCategories:function(e){var i,n=this,o=[];if(_.isString(e))return!1;_.isArray(e)?(new wp.api.collections.Categories).fetch({data:{per_page:100},success:function(t){_.each(e,function(e){(i=new wp.api.models.Category(t.findWhere({slug:e}))).set("parent_post",n.get("id")),o.push(i)}),e=new wp.api.collections.Categories(o),n.setCategoriesWithCollection(e)}}):this.setCategoriesWithCollection(e)},setCategoriesWithCollection:function(e){return this.set("categories",e.pluck("id")),this.save()}},u={getAuthorUser:function(){return n(this,this.get("author"),"User","author","name")}},g={getFeaturedMedia:function(){return n(this,this.get("featured_media"),"Media","wp:featuredmedia","source_url")}};return t=_.isUndefined(t.prototype.args)||(_.each(s,function(e){_.isUndefined(t.prototype.args[e])||(o=!0)}),o&&(t=t.extend(a)),_.isUndefined(t.prototype.args.author)||(t=t.extend(u)),_.isUndefined(t.prototype.args.featured_media)||(t=t.extend(g)),_.isUndefined(t.prototype.args.categories)||(t=t.extend(l)),_.isUndefined(t.prototype.args.meta)||(t=t.extend(r)),_.isUndefined(t.prototype.args.tags)||(t=t.extend(d)),_.isUndefined(i.collections[e+"Revisions"]))?t:t.extend(c)}}(window),function(){"use strict";var i=window.wpApiSettings||{},e=["Comment","Media","Comment","Post","Page","Status","Taxonomy","Type"];wp.api.WPApiBaseModel=Backbone.Model.extend({initialize:function(){-1===_.indexOf(e,this.name)&&(this.requireForceForDelete=!0)},sync:function(e,t,i){var n;return i=i||{},_.isNull(t.get("date_gmt"))&&t.unset("date_gmt"),_.isEmpty(t.get("slug"))&&t.unset("slug"),_.isFunction(t.nonce)&&!_.isEmpty(t.nonce())&&(n=i.beforeSend,i.beforeSend=function(e){if(e.setRequestHeader("X-WP-Nonce",t.nonce()),n)return n.apply(this,arguments)},i.complete=function(e){e=e.getResponseHeader("X-WP-Nonce");e&&_.isFunction(t.nonce)&&t.nonce()!==e&&t.endpointModel.set("nonce",e)}),this.requireForceForDelete&&"delete"===e&&(t.url=t.url()+"?force=true"),Backbone.sync(e,t,i)},save:function(e,t){return!(!_.includes(this.methods,"PUT")&&!_.includes(this.methods,"POST"))&&Backbone.Model.prototype.save.call(this,e,t)},destroy:function(e){return!!_.includes(this.methods,"DELETE")&&Backbone.Model.prototype.destroy.call(this,e)}}),wp.api.models.Schema=wp.api.WPApiBaseModel.extend({defaults:{_links:{},namespace:null,routes:{}}
1870,initialize:function(e,t){t=t||{},wp.api.WPApiBaseModel.prototype.initialize.call(this,e,t),this.apiRoot=t.apiRoot||i.root,this.versionString=t.versionString||i.versionString},url:function(){return this.apiRoot+this.versionString}})}(),function(){"use strict";window.wpApiSettings;wp.api.WPApiBaseCollection=Backbone.Collection.extend({initialize:function(e,t){this.state={data:{},currentPage:null,totalPages:null,totalObjects:null},_.isUndefined(t)?this.parent="":this.parent=t.parent},sync:function(e,t,i){var n,o,s=this;return i=i||{},_.isFunction(t.nonce)&&!_.isEmpty(t.nonce())&&(n=i.beforeSend,i.beforeSend=function(e){if(e.setRequestHeader("X-WP-Nonce",t.nonce()),n)return n.apply(s,arguments)},i.complete=function(e){e=e.getResponseHeader("X-WP-Nonce");e&&_.isFunction(t.nonce)&&t.nonce()!==e&&t.endpointModel.set("nonce",e)}),"read"===e&&(i.data?(s.state.data=_.clone(i.data),delete s.state.data.page):s.state.data=i.data={},void 0===i.data.page?(s.state.currentPage=null,s.state.totalPages=null,s.state.totalObjects=null):s.state.currentPage=i.data.page-1,o=i.success,i.success=function(e,t,i){if(_.isUndefined(i)||(s.state.totalPages=parseInt(i.getResponseHeader("x-wp-totalpages"),10),s.state.totalObjects=parseInt(i.getResponseHeader("x-wp-total"),10)),null===s.state.currentPage?s.state.currentPage=1:s.state.currentPage++,o)return o.apply(this,arguments)}),Backbone.sync(e,t,i)},more:function(e){if((e=e||{}).data=e.data||{},_.extend(e.data,this.state.data),void 0===e.data.page){if(!this.hasMore())return!1;null===this.state.currentPage||this.state.currentPage<=1?e.data.page=2:e.data.page=this.state.currentPage+1}return this.fetch(e)},hasMore:function(){return null===this.state.totalPages||null===this.state.totalObjects||null===this.state.currentPage?null:this.state.currentPage<this.state.totalPages}})}(),function(){"use strict";var o,s={},c=window.wpApiSettings||{};window.wp=window.wp||{},wp.api=wp.api||{},_.isEmpty(c)&&(c.root=window.location.origin+"/wp-json/"),o=Backbone.Model.extend({defaults:{apiRoot:c.root,versionString:wp.api.versionString,nonce:null,schema:null,models:{},collections:{}},initialize:function(){var e,t=this;Backbone.Model.prototype.initialize.apply(t,arguments),e=jQuery.Deferred(),t.schemaConstructed=e.promise(),t.schemaModel=new wp.api.models.Schema(null,{apiRoot:t.get("apiRoot"),versionString:t.get("versionString"),nonce:t.get("nonce")}),t.schemaModel.once("change",function(){t.constructFromSchema(),e.resolve(t)}),t.get("schema")?t.schemaModel.set(t.schemaModel.parse(t.get("schema"))):!_.isUndefined(sessionStorage)&&(_.isUndefined(c.cacheSchema)||c.cacheSchema)&&sessionStorage.getItem("wp-api-schema-model"+t.get("apiRoot")+t.get("versionString"))?t.schemaModel.set(t.schemaModel.parse(JSON.parse(sessionStorage.getItem("wp-api-schema-model"+t.get("apiRoot")+t.get("versionString"))))):t.schemaModel.fetch({success:function(e){if(!_.isUndefined(sessionStorage)&&(_.isUndefined(c.cacheSchema)||c.cacheSchema))try{sessionStorage.setItem("wp-api-schema-model"+t.get("apiRoot")+t.get("versionString"),JSON.stringify(e))}catch(e){}},error:function(e){window.console.log(e)}})},constructFromSchema:function(){var s=this,a=c.mapping||{models:{Categories:"Category",Comments:"Comment",Pages:"Page",PagesMeta:"PageMeta",PagesRevisions:"PageRevision",Posts:"Post",PostsCategories:"PostCategory",PostsRevisions:"PostRevision",PostsTags:"PostTag",Schema:"Schema",Statuses:"Status",Tags:"Tag",Taxonomies:"Taxonomy",Types:"Type",Users:"User"},collections:{PagesMeta:"PageMeta",PagesRevisions:"PageRevisions",PostsCategories:"PostCategories",PostsMeta:"PostMeta",PostsRevisions:"PostRevisions",PostsTags:"PostTags"}},e=s.get("modelEndpoints"),i=new RegExp("(?:.*[+)]|/("+e.join("|")+"))$"),n=[],o=[],r=s.get("apiRoot").replace(wp.api.utils.getRootUrl(),""),p={models:{},collections:{}};_.each(s.schemaModel.get("routes"),function(e,t){t!==s.get(" versionString")&&t!==r&&t!=="/"+s.get("versionString").slice(0,-1)&&(i.test(t)?n:o).push({index:t,route:e})}),_.each(n,function(e){var t,i=wp.api.utils.extractRoutePart(e.index,2,s.get("versionString"),!0),n=wp.api.utils.extractRoutePart(e.index,1,s.get("versionString"),!1),o=wp.api.utils.extractRoutePart(e.index,1,s.get("versionString"),!0);n===s.get("versionString")&&(n=""),"me"===o&&(i="me"),""!==n&&n!==i?(t=wp.api.utils.capitalizeAndCamelCaseDashes(n)+wp.api.utils.capitalizeAndCamelCaseDashes(i),t=a.models[t]||t,p.models[t]=wp.api.WPApiBaseModel.extend({url:function(){var e=s.get("apiRoot")+s.get("versionString")+n+"/"+(_.isUndefined(this.get("parent"))||0===this.get("parent")?_.isUndefined(this.get("parent_post"))?"":this.get("parent_post")+"/":this.get("parent")+"/")+i;return _.isUndefined(this.get("id"))||(e+="/"+this.get("id")),e},nonce:function(){return s.get("nonce")},endpointModel:s,route:e,name:t,methods:e.route.methods,endpoints:e.route.endpoints})):(t=wp.api.utils.capitalizeAndCamelCaseDashes(i),t=a.models[t]||t,p.models[t]=wp.api.WPApiBaseModel.extend({url:function(){var e=s.get("apiRoot")+s.get("versionString")+("me"===i?"users/me":i);return _.isUndefined(this.get("id"))||(e+="/"+this.get("id")),e},nonce:function(){return s.get("nonce")},endpointModel:s,route:e,name:t,methods:e.route.methods,endpoints:e.route.endpoints})),wp.api.utils.decorateFromRoute(e.route.endpoints,p.models[t],s.get("versionString"))}),_.each(o,function(e){var t,i,n=e.index.slice(e.index.lastIndexOf("/")+1),o=wp.api.utils.extractRoutePart(e.index,1,s.get("versionString"),!1);""!==o&&o!==n&&s.get("versionString")!==o?(t=wp.api.utils.capitalizeAndCamelCaseDashes(o)+wp.api.utils.capitalizeAndCamelCaseDashes(n),i=a.models[t]||t,t=a.collections[t]||t,p.collections[t]=w
1870p.api.WPApiBaseCollection.extend({url:function(){return s.get("apiRoot")+s.get("versionString")+o+"/"+(_.isUndefined(this.parent)||""===this.parent?_.isUndefined(this.get("parent_post"))?"":this.get("parent_post")+"/":this.parent+"/")+n},model:function(e,t){return new p.models[i](e,t)},nonce:function(){return s.get("nonce")},endpointModel:s,name:t,route:e,methods:e.route.methods})):(t=wp.api.utils.capitalizeAndCamelCaseDashes(n),i=a.models[t]||t,t=a.collections[t]||t,p.collections[t]=wp.api.WPApiBaseCollection.extend({url:function(){return s.get("apiRoot")+s.get("versionString")+n},model:function(e,t){return new p.models[i](e,t)},nonce:function(){return s.get("nonce")},endpointModel:s,name:t,route:e,methods:e.route.methods})),wp.api.utils.decorateFromRoute(e.route.endpoints,p.collections[t])}),_.each(p.models,function(e,t){p.models[t]=wp.api.utils.addMixinsAndHelpers(e,t,p)}),s.set("models",p.models),s.set("collections",p.collections)}}),wp.api.endpoints=new Backbone.Collection,wp.api.init=function(e){var t,i,n={};return e=e||{},n.nonce=_.isString(e.nonce)?e.nonce:c.nonce||"",n.apiRoot=e.apiRoot||c.root||"/wp-json",n.versionString=e.versionString||c.versionString||"wp/v2/",n.schema=e.schema||null,n.modelEndpoints=e.modelEndpoints||["me","settings"],n.schema||n.apiRoot!==c.root||n.versionString!==c.versionString||(n.schema=c.schema),s[n.apiRoot+n.versionString]||(e=(e=wp.api.endpoints.findWhere({apiRoot:n.apiRoot,versionString:n.versionString}))||new o(n),i=(t=jQuery.Deferred()).promise(),e.schemaConstructed.done(function(e){wp.api.endpoints.add(e),wp.api.models=_.extend(wp.api.models,e.get("models")),wp.api.collections=_.extend(wp.api.collections,e.get("collections")),t.resolve(e)}),s[n.apiRoot+n.versionString]=i),s[n.apiRoot+n.versionString]},wp.api.loadPromise=wp.api.init()}(); 1871 1872 1873moment.updateLocale( 'en_US', {"months":["January","February","March","April","May","June","July","August","September","October","November","December"],"monthsShort":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"weekdays":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"weekdaysShort":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"week":{"dow":1},"longDateFormat":{"LT":"g:i a","LTS":null,"L":null,"LL":"F j, Y","LLL":"F j, Y g:i a","LLLL":null}} ); 1874 1875} 1876catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://labadibeachhotelgh.com/wp-includes/js/wp-api.min.js\n- Error message: "+ e.message);} 1877 1878 1879 var wcBlocksMiddlewareConfig = { 1880 storeApiNonce: '048b8c78f0', 1881 wcStoreApiNonceTimestamp: '1790786511' 1882 }; 1883 1884!function(n){"use strict";function s(t){return(t=parseInt(t,10))<1?0:1e6<=t?(t=Math.floor(t/1e5)/10)+"M":1e3<=t?(t=Math.floor(t/100)/10)+"K":t}function l(t,a){var i;t&&t.length&&(i=t.attr("data-post-id"),t=t.data("like-count"),(i=n(".post-like[data-post-id="+i+"]"))&&i.length&&(t=a?parseInt(t,10)+1:t-1,i.data("like-count",Math.max(0,t)),i.find(".count").text(s(t)),i.find(".label").length&&(i=(a=i.find(".label")).first().parent(),a.text(1<t?i.data("plural-label"):i.data("single-label")))))}var c={likes:!1,itemName:"loftocean/liked",init:function(){var t;!n(".post-like").length||(t=c.getItem(c.itemName))&&(c.likes=JSON.parse(t),c.hasLikes()&&n(document).ready(function(){c.addLikedClass()})),n(document).on("loftcean/moreContent/loaded",function(){c.addLikedClass()})},addLikedClass:function(){c.hasLikes()&&c.likes.forEach(function(t){t=n(".post-like[data-post-id="+t+"]");t.length&&t.addClass("liked")})},set:function(t){c.hasLikes()?-1===c.likes.indexOf(t)&&(c.likes.push(t),c.save()):(c.likes=[t],c.save())},isLiked:function(t){return!!c.hasLikes()&&-1!==c.likes.indexOf(t)},remove:function(t){!c.hasLikes()||-1!==(t=c.likes.indexOf(t))&&(c.likes.splice(t,1),c.save())},save:function(){try{window.localStorage.setItem(c.itemName,JSON.stringify(c.likes))}catch(t){}},hasLikes:function(){return c.likes&&Array.isArray(c.likes)},getItem:function(t){try{return localStorage.getItem(t)}catch(t){return null}}};c.init(),n(document).ready(function(){var e,o,t,a,i;n(".post-like").length&&n("body").on("click",".post-like",function(t){t.preventDefault();var a,i,e,o=n(this);return o.data("animating")||(a=o.attr("data-post-id"),(i=n(".post-like[data-post-id="+a+"]")).data("animating",!0),o.hasClass("liked")?(e={action:loftoceanSocialAjax.like.action,post_id:a,unliked:!0},n.post(loftoceanSocialAjax.url,e).done(function(){c.remove(a),0<o.data("like-count")&&(l(o,!1),i.removeClass("liked")),i.data("animating",!1)})):a&&!c.isLiked(a)?(e={action:loftoceanSocialAjax.like.action,post_id:a},i.addClass("liked clicking"),n.post(loftoceanSocialAjax.url,e).done(function(){c.set(a),l(o,!0),i.data("animating",!1),i.removeClass("clicking")})):i.data("animating",!1)),!1}),n(".post-list-social-icon-list a.popup-window, .article-share a.popup-window, .tweet-it, .social-share-icons > a").length&&n("body").on("click",".post-list-social-icon-list a.popup-window, .article-share a.popup-window, .tweet-it, .social-share-icons > a",function(t){t.preventDefault();var i=n(this),t=i.attr("data-props")?i.attr("data-props"):"width=555,height=401";return window.open(i.attr("href"),i.attr("title"),t),i.data("social-type")&&i.data("post-id")&&(t={action:loftoceanSocialAjax.social.action,post_id:i.data("post-id"),social:i.data("social-type")},n.post(loftoceanSocialAjax.url,t).done(function(){var t=(i.data("raw-counter")||0)+1,a='.loftocean-social-share-icon[data-social-type="'+i.data("social-type")+'"]';n(a).data("raw-counter",t).find("span.counter").text(s(t))})),!1}),wpApiSettings&&wpApiSettings.root&&loftoceanSocialAjax&&loftoceanSocialAjax.loadPostMetasDynamically&&(e=n(".loftocean-view-meta"),o=n(".loftocean-like-meta"),(t=n("<div>",{class:"temp-div"}).add(e).add(o).not(".temp-div")).length&&(a=[],i=loftoceanSocialAjax.currentPostID,t.each(function(){n(this).data("post-id")&&!a.includes(n(this).data("post-id"))&&a.push(n(this).data("post-id"))}),i&&!a.includes(parseInt(i,10))&&a.push(i),a.length&&(i=wpApiSettings.root+"loftocean/v1/get-post-metas/"+a.join(",")+"/"+(i||0),n.get(i).done(function(a,t,i){200==i.status&&200==a.status&&(a=a.data,e.each(function(){var t=n(this).data("post-id");a[t]&&a[t]["loftocean-view-count"]&&(t=a[t]["loftocean-view-count"],n(this).find(".count").length&&n(this).find(".count").text(t.format))}),o.each(function(){var t=n(this).data("post-id");a[t]&&a[t]["loftocean-like-count"]&&(t=a[t]["loftocean-like-count"],n(this).data("like-count",Math.max(0,t.raw)),n(this).find(".count").length&&n(this).find(".count").text(t.format))}))}))))})}(jQuery); 1885 1886 1887moment.updateLocale( 'en_US', {"months":["January","February","March","April","May","June","July","August","September","October","November","December"],"monthsShort":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"weekdays":["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1887ay","Saturday"],"weekdaysShort":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"week":{"dow":1},"longDateFormat":{"LT":"g:i a","LTS":null,"L":null,"LL":"F j, Y","LLL":"F j, Y g:i a","LLLL":null}} ); 1888 1889} 1890catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://labadibeachhotelgh.com/wp-content/plugins/cozystay-core/assets/scripts/front/post-metas.min.js\n- Error message: "+ e.message);} 1891 1892 1893 var wcBlocksMiddlewareConfig = { 1894 storeApiNonce: '048b8c78f0', 1895 wcStoreApiNonceTimestamp: '1790786511' 1896 }; 1897 1898/*! 1899 SerializeJSON jQuery plugin. 1900 https://github.com/marioizquierdo/jquery.serializeJSON 1901 version 2.9.0 (Jan, 2018) 1902 1903 Copyright (c) 2012-2018 Mario Izquierdo 1904 Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) 1905 and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. 1906 */ 1907!function (e) { 1908 if ("function" == typeof define && define.amd) 1909 define(["jquery"], e); 1910 else if ("object" == typeof exports) { 1911 var n = require("jquery"); 1912 module.exports = e(n) 1913 } else 1914 e(window.jQuery || window.Zepto || window.$) 1915}(function (e) { 1916 "use strict"; 1917 e.fn.serializeJSON = function (n) { 1918 var r, s, t, i, a, u, l, o, p, c, d, f, y; 1919 return r = e.serializeJSON, 1920 s = this, 1921 t = r.setupOpts(n), 1922 i = s.serializeArray(), 1923 r.readCheckboxUncheckedValues(i, t, s), 1924 a = {}, 1925 e.each(i, function (e, n) { 1926 u = n.name, l = n.value, 1927 p = r.extractTypeAndNameWithNoType(u), 1928 c = p.nameWithNoType, 1929 (d = p.type) || (d = r.attrFromInputWithName(s, u, "data-value-type")), r.validateType(u, d, t), 1930 "skip" !== d && (f = r.splitInputNameIntoKeysArray(c), o = r.parseValue(l, u, d, t), 1931 (y = !o && r.shouldSkipFalsy(s, u, c, d, t)) || r.deepSet(a, f, o, t)) 1932 }), a 1933 }, e.serializeJSON = { 1934 defaultOptions: { 1935 checkboxUncheckedValue: void 0, 1936 parseNumbers: !1, 1937 parseBooleans: !1, 1938 parseNulls: !1, 1939 parseAll: !1, 1940 parseWithFunction: null, 1941 skipFalsyValuesForTypes: [], 1942 skipFalsyValuesForFields: [], 1943 customTypes: {}, 1944 defaultTypes: { 1945 string: function (e) { 1946 return String(e) 1947 }, 1948 number: function (e) { 1949 return Number(e) 1950 }, 1951 boolean: function (e) { 1952 return -1 === ["false", "null", "undefined", "", "0"].indexOf(e) 1953 }, 1954 null: function (e) { 1955 return -1 === ["false", "null", "undefined", "", "0"].indexOf(e) ? e : null 1956 }, 1957 array: function (e) { 1958 return JSON.parse(e) 1959 }, 1960 object: function (e) { 1961 return JSON.parse(e) 1962 }, 1963 auto: function (n) { 1964 return e.serializeJSON.parseValue(n, null, null, { 1965 parseNumbers: !0, 1966 parseBooleans: !0, 1967 parseNulls: !0 1968 }) 1969 }, 1970 skip: null 1971 }, 1972 useIntKeysAsArrayIndex: !1 1973 }, 1974 setupOpts: function (n) { 1975 var r, s, t, i, a, u; 1976 u = e.serializeJSON, null == n && (n = {}), t = u.defaultOptions || {}, s = ["checkboxUncheckedValue", "parseNumbers", "parseBooleans", "parseNulls", "parseAll", "parseWithFunction", "skipFalsyValuesForTypes", "skipFalsyValuesForFields", "customTypes", "defaultTypes", "useIntKeysAsArrayIndex"]; 1977 for (r in n) 1978 if (-1 === s.indexOf(r)) 1979 throw new Error("serializeJSON ERROR: invalid option '" + r + "'. Please use one of " + s.join(", ")); 1980 return i = function (e) { 1981 return !1 !== n[e] && "" !== n[e] && (n[e] || t[e]) 1982 }, a = i("parseAll"), { 1983 checkboxUncheckedValue: i("checkboxUncheckedValue"), 1984 parseNumbers: a || i("parseNumbers"), 1985 parseBooleans: a || i("parseBooleans"), 1986 parseNulls: a || i("parseNulls"), 1987 parseWithFunction: i("parseWithFunction"), 1988 skipFalsyValuesForTypes: i("skipFalsyValuesForTypes"), 1989 skipFalsyValuesForFields: i("skipFalsyValuesForFields"), 1990 typeFunctions: e.extend({}, i("defaultTypes"), i("customTypes")), 1991 useIntKeysAsArrayIndex: i("useIntKeysAsArrayIndex") 1992 } 1993 }, 1994 parseValue: function (n, r, s, t) { 1995 var i, a; 1996 return i = e.serializeJSON, a = n, t.typeFunctions && s && t.typeFunctions[s] ? a = t.typeFunctions[s](n) : t.parseNumbers && i.isNumeric(n) ? a = Number(n) : !t.parseBooleans || "true" !== n && "false" !== n ? t.parseNulls && "null" == n ? a = null : t.typeFunctions && t.typeFunctions.string && (a = t.typeFunctions.string(n)) : a = "true" === n, t.parseWithFunction && !s && (a = t.parseWithFunction(a, r)), a 1997 }, 1998 isObject: function (e) { 1999 return e === Object(e) 2000 }, 2001 isUndefined: function (e) { 2002 return void 0 === e 2003 }, 2004 isValidArrayIndex: function (e) { 2005 return /^[0-9]+$/.test(String(e)) 2006 }, 2007 isNumeric: function (e) { 2008 return e - parseFloat(e) >= 0 2009 }, 2010 optionKeys: function (e) { 2011 if (Object.keys) 2012 return Object.keys(e); 2013 var n, r = []; 2014 for (n in e) 2015 r.push(n); 2016 return r 2017 }, 2018 readCheckboxUncheckedValues: function (n, r, s) { 2019 var t, i, a; 2020 null == r && (r = {}), e.serializeJSON, t = "input[type=checkbox][name]:not(:checked):not([disabled])", s.find(t).add(s.filter(t)).each(function (s, t) { 2021 if (i = e(t), null == (a = i.attr("data-unchecked-value")) && (a = r.checkboxUncheckedValue), null != a) { 2022 if (t.name && -1 !== t.name.indexOf("[]["))
2023 throw new Error("serializeJSON ERROR: checkbox unchecked values are not supported on nested arrays of objects like '" + t.name + "'. See https://github.com/marioizquierdo/jquery.serializeJSON/issues/67"); 2024 n.push({ 2025 name: t.name, 2026 value: a 2027 }) 2028 } 2029 }) 2030 }, 2031 extractTypeAndNameWithNoType: function (e) { 2032 var n; 2033 2034 return (n = e.match(/(.*):([^:]+)$/)) ? { 2035 nameWithNoType: n[1], 2036 type: n[2] 2037 } : { 2038 nameWithNoType: e, 2039 type: null 2040 } 2041 }, 2042 shouldSkipFalsy: function (n, r, s, t, i) { 2043 var a = e.serializeJSON.attrFromInputWithName(n, r, "data-skip-falsy"); 2044 if (null != a) 2045 return "false" !== a; 2046 var u = i.skipFalsyValuesForFields; 2047 if (u && (-1 !== u.indexOf(s) || -1 !== u.indexOf(r))) 2048 return !0; 2049 var l = i.skipFalsyValuesForTypes; 2050 return null == t && (t = "string"), !(!l || -1 === l.indexOf(t)) 2051 }, 2052 attrFromInputWithName: function (e, n, r) { 2053 var s, t; 2054 return s = n.replace(/(:|\.|\[|\]|\s)/g, "\\$1"), t = '[name="' + s + '"]', e.find(t).add(e.filter(t)).attr(r) 2055 }, 2056 validateType: function (n, r, s) { 2057 var t, i; 2058 if (i = e.serializeJSON, t = i.optionKeys(s ? s.typeFunctions : i.defaultOptions.defaultTypes), r && -1 === t.indexOf(r)) 2059 throw new Error("serializeJSON ERROR: Invalid type " + r + " found in input name '" + n + "', please use one of " + t.join(", ")); 2060 return !0 2061 }, 2062 splitInputNameIntoKeysArray: function (n) { 2063// var r; 2064// return e.serializeJSON, r = n.split("["), "" === (r = e.map(r, function (e) { 2065// return e.replace(/\]/g, "") 2066// }))[0] && r.shift(), r 2067 var keys, f; 2068 f = e.serializeJSON; 2069 keys = n.split('[').join('saarsa').split('saarsa'); // split string into array 2070 keys = e.map(keys, function (key) { 2071 return key.replace(/\]/g, ''); 2072 }); // remove closing brackets 2073 if (keys[0] === '') { 2074 keys.shift(); 2075 } // ensure no opening bracket ("[foo][inn]" should be same as "foo[inn]") 2076 return keys; 2077 }, 2078 deepSet: function (n, r, s, t) { 2079 var i, a, u, l, o, p; 2080 if (null == t && (t = {}), (p = e.serializeJSON).isUndefined(n)) 2081 throw new Error("ArgumentError: param 'o' expected to be an object or array, found undefined"); 2082 if (!r || 0 === r.length) 2083 throw new Error("ArgumentError: param 'keys' expected to be an array with least one element"); 2084 i = r[0], 1 === r.length ? "" === i ? n.push(s) : n[i] = s : (a = r[1], "" === i && (o = n[l = n.length - 1], i = p.isObject(o) && (p.isUndefined(o[a]) || r.length > 2) ? l : l + 1), "" === a ? !p.isUndefined(n[i]) && e.isArray(n[i]) || (n[i] = []) : t.useIntKeysAsArrayIndex && p.isValidArrayIndex(a) ? !p.isUndefined(n[i]) && e.isArray(n[i]) || (n[i] = []) : !p.isUndefined(n[i]) && p.isObject(n[i]) || (n[i] = {}), u = r.slice(1), p.deepSet(n[i], u, s, t)) 2085 } 2086 } 2087}); 2088 2089 2090moment.updateLocale( 'en_US', {"months":["January","February","March","April","May","June","July","August","September","October","November","December"],"monthsShort":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"weekdays":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"weekdaysShort":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"week":{"dow":1},"longDateFormat":{"LT":"g:i a","LTS":null,"L":null,"LL":"F j, Y","LLL":"F j, Y g:i a","LLLL":null}} ); 2091 2092} 2093catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://labadibeachhotelgh.com/wp-content/plugins/product-layouts/assets/lib/serializejson/jquery.serializejson.min.js\n- Error message: "+ e.message);} 2094 2095 2096 var wcBlocksMiddlewareConfig = { 2097 storeApiNonce: '048b8c78f0', 2098 wcStoreApiNonceTimestamp: '1790786511' 2099 }; 2100 2101;(function ($) { 2102 2103 $('.wpte-product-add-cart-icon').each(function () { 2104 // Cart Icons 2105 2106 var icon_id = $(this).attr('dataid'), 2107 cart_icon = $('#' + icon_id).attr('add_cart'), 2108 view_cart = $('#' + icon_id).attr('view_cart'), 2109 groupde_icon = $('#' + icon_id).attr('groupde_icon'), 2110 external_icon = $('#' + icon_id).attr('external_icon'), 2111 variable_icon = $('#' + icon_id).attr('variable_icon'); 2112 2113 $("#" + icon_id + " .ajax_add_to_cart").html(`<i class='${cart_icon}'></i>`); 2114 $("#" + icon_id + " .product_type_simple").html(`<i class='${cart_icon}'></i>`); 2115 $("#" + icon_id + " .product_type_grouped").html(`<i class='${groupde_icon}'></i>`); 2116 $("#" + icon_id + " .product_type_external").html(`<i class='${external_icon}'></i>`); 2117 $("#" + icon_id + " .product_type_variable").html(`<i class='${variable_icon}'></i>`); 2118 2119 $( document.body ).on( 'wc_cart_button_updated', function(){ 2120 $("#" + icon_id + " .added_to_cart").html(`<i class='${view_cart}'></i>`); 2121 $("#" + icon_id + " .added_to_cart").parent().siblings('.wpte-product-tooltip').text('View Cart'); 2122 }); 2123 2124 }); 2125 2126 $('.wpte-product-add-cart-text').each(function () { 2127 var text_id = $(this).attr('dataid'), 2128 cart_text = $('#' + text_id).attr('add_cart_text'), 2129 view_cart_text = $('#' + text_id).attr('view_cart_text'), 2130 groupde_text = $('#' + text_id).attr('groupde_text'), 2131 external_text = $('#' + text_id).attr('external_text'), 2132 variable_text = $('#' + text_id).attr('variable_text'); 2133 2134 $("#" + text_id + " .ajax_add_to_cart").html(`${cart_text}`); 2135 $("#" + text_id + " .product_type_simple").html(`${cart_text}`); 2136 $("#" + text_id + " .product_type_grouped").html(`${groupde_text}`); 2137 $("#" + text_id + " .product_type_external").html(`${external_text}`); 2138 $("#" + text_id + " .product_type_variable").html(`${variable_text}`); 2139 2140 $( document.body ).on( 'wc_cart_button_updated', function(){ 2141 $("#" + text_id + " .added_to_cart").html(`${view_cart_text}`); 2142 $("#" + text_id + " .added_to_cart").parent().siblings('.wpte-product-tooltip').text('View Cart'); 2143 }); 2144 2145 }); 2146 2147 $('.wpte-product-add-cart-icon-text').each(function () { 2148 var icon_text_id = $(this).attr('dataid'), 2149 cart_icon = $('#' + icon_text_id).attr('add_cart'), 2150 view_cart = $('#' + icon_text_id).attr('view_cart'), 2151 groupde_icon = $('#' + icon_text_id).attr('groupde_icon'), 2152 external_icon = $('#' + icon_text_id).attr('external_icon'), 2153 variable_icon = $('#' + icon_text_id).attr('variable_icon'); 2154 cart_text = $('#' + icon_text_id).attr('add_cart_text'), 2155 view_cart_text = $('#' + icon_text_id).attr('view_cart_text'), 2156 groupde_text = $('#' + icon_text_id).attr('groupde_text'), 2157 external_text = $('#' + icon_text_id).attr('external_text'), 2158 variable_text = $('#' + icon_text_id).attr('variable_text'); 2159 2160 $("#" + icon_text_id + " .ajax_add_to_cart").html(`<i class='${cart_icon}'></i><span class='wpte-cart-text'>${cart_text}</span>`); 2161 $("#" + icon_text_id + " .product_type_simple").html(`<i class='${cart_icon}'></i><span class='wpte-cart-text'>${cart_text}</span>`); 2162 $("#" + icon_text_id + " .product_type_grouped").html(`<i class='${groupde_icon}'></i><span class='wpte-groupde-text'>${groupde_text}</span>`); 2163 $("#" + icon_text_id + " .product_type_external").html(`<i class='${external_icon}'></i><span class='wpte-external-text'>${external_text}</span>`); 2164 $("#" + icon_text_id + " .product_type_variable").html(`<i class='${variable_icon}'></i><span class='wpte-variable-text'>${variable_text}</span>`); 2165 2166 $( document.body ).on( 'wc_cart_button_updated', function(){ 2167 $("#" + icon_text_id + " .added_to_cart").html(`<i class='${view_cart}'></i><span class='wpte-view-cart-text'>${view_cart_text}</span>`); 2168 $("#" + icon_text_id + " .added_to_cart").parent().siblings('.wpte-product-tooltip').text('View Cart'); 2169 }); 2170 2171 }); 2172 2173 // Tooltip 2174 2175 $( document.body ).on( 'wc_cart_button_updated', function(){ 2176 $('.wpte-product-tooltip').each(function(){ 2177 $(this).parent().addClass('wpte-product-tooltip-area'); 2178 }); 2179 }); 2180 2181 $('.wpte-product-tooltip').each(function(){ 2182 $(this).parent().addClass('wpte-product-tooltip-area'); 2183 }); 2184 2185 // Wish List Icon 2186 $(document).on('click', '.tinvwl_add_to_wishlist_button', function(){ 2187 2188 var This = this, 2189 addedCart = (typeof( $(This).attr('addedicon')) != "undefined" && $(This).attr('addedicon') !== null) ? `<i class="${$(This).attr('addedicon')}"></i>` : '', 2190 addedText = (typeof( $(This).attr('addedtext')) != "undefined" && $(This).attr('addedtext') !== null) ? $(This).attr('addedtext') : '', 2191 id = $(This).attr('id'); 2192 2193 $(document).ajaxComplete(function () { 2194 $(This).removeClass('inited-add-wishlist'); 2195 if ( addedCart && addedText ) { 2196 $("#" + id + ' .wpte-product-wishlist-icon').html(addedCart); 2197 $("#" + id + ' .wpte-product-wishlist-text').html(addedText); 2198 } else { 2199 if ( addedCart ) { 2200 $("#" + id + ' .wpte-product-wishlist-icon').html(addedCart); 2201 } 2202 if ( addedText ) { 2203 $("#" + id + ' .wpte-product-wishlist-text').html(addedText); 2204 } 2205 } 2206 }) 2207 }); 2208 2209 $('.tinvwl_add_to_wishlist_button').each(function(){ 2210 2211 var This = this, 2212 addedCart = (typeof( $(This).attr('addedicon')) != "undefined" && $(This).attr('addedicon') !== null) ? `<i class="${$(This).attr('addedicon')}"></i>` : '', 2213 addedText = (typeof( $(This).attr('addedtext')) != "undefined" && $(This).attr('addedtext') !== null) ? $(This).attr('addedtext') : '', 2214 id = $(This).attr('id'); 2215 2216 if ( $("#" + id).hasClass('tinvwl-product-in-list') ) { 2217 if ( addedCart && addedText ) { 2218 $("#" + id + ' .wpte-product-wishlist-icon').html(addedCart); 2219 $("#" + id + ' .wpte-product-wishlist-text').html(addedText); 2220 } else { 2221 if ( addedCart ) { 2222 $("#" + id + ' .wpte-product-wishlist-icon').html(addedCart); 2223 } 2224 if ( addedText ) { 2225 $("#" + id + ' .wpte-product-wishlist-text').html(addedText); 2226 } 2227 } 2228 } 2229 2230 }); 2231 2232 // Change Quantity input value to cart button quantity 2233 $('.quantity .input-text').on('change', function(){ 2234 var id = $(this).attr('name'); 2235 $('[data-product_id='+id+']').attr('data-quantity', $(this).val()); 2236 }); 2237 2238 2239 /** 2240 * Product Icon or Text Onload 2241 */ 2242 function cart_icon_text_onload() { 2243 2244 if ( $(".wpte-product-add-cart-icon").hasClass('wpte-cart-icon') ) { 2245 var cart_icon = $(".wpte-product-add-cart-icon").attr('add_cart'), 2246 groupde_icon = $(".wpte-product-add-cart-icon").attr('groupde_icon'), 2247 external_icon = $(".wpte-product-add-cart-icon").attr('external_icon'), 2248 variable_icon = $(".wpte-product-add-cart-icon").attr('variable_icon'); 2249 2250 $(".wpte-product-add-cart-icon .ajax_add_to_cart").html(`<i class='${cart_icon}'></i>`); 2251 $(".wpte-product-add-cart-icon .product_type_simple").html(`<i class='${cart_icon}'></i>`); 2252 $(".wpte-product-add-cart-icon .product_type_grouped").html(`<i class='${groupde_icon}'></i>`); 2253 $(".wpte-product-add-cart-icon .product_type_external").html(`<i class='${external_icon}'></i>`); 2254 $(".wpte-product-add-cart-icon .product_type_variable").html(`<i class='${variable_icon}'></i>`); 2255 2256 } else if ( $('.wpte-product-add-cart-text').hasClass('wpte-cart-text') ) { 2257 2258 var cart_text = $('.wpte-product-add-cart-text').attr('add_cart_text'), 2259 groupde_text = $('.wpte-product-add-cart-text').attr('groupde_text'), 2260 external_text = $('.wpte-product-add-cart-text').attr('external_text'), 2261 variable_text = $('.wpte-product-add-cart-text').attr('variable_text'); 2262 2263 $(".wpte-product-add-cart-text .ajax_add_to_cart").html(`${cart_text}`); 2264 $(".wpte-product-add-cart-text .product_type_simple").html(`${cart_text}`); 2265 $(".wpte-product-add-cart-text .product_type_grouped").html(`${groupde_text}`); 2266 $(".wpte-product-add-cart-text .product_type_external").html(`${external_text}`); 2267 $(".wpte-product-add-cart-text .product_type_variable").html(`${variable_text}`); 2268 2269 } else { 2270 2271 var cart_icon = $(".wpte-product-add-cart-icon-text").attr('add_cart'), 2272 groupde_icon = $(".wpte-product-add-cart-icon-text").attr('groupde_icon'), 2273 external_icon = $(".wpte-product-add-cart-icon-text").attr('external_icon'), 2274 variable_icon = $(".wpte-product-add-cart-icon-text").attr('variable_icon'); 2275 cart_text = $(".wpte-product-add-cart-icon-text").attr('add_cart_text'), 2276 view_cart_text = $(".wpte-product-add-cart-icon-text").attr('view_cart_text'), 2277 groupde_text = $(".wpte-product-add-cart-icon-text").attr('groupde_text'), 2278 external_text = $(".wpte-product-add-cart-icon-text").attr('external_text'), 2279 variable_text = $(".wpte-product-add-cart-icon-text").attr('variable_text'); 2280 2281 $(".wpte-product-add-cart-icon-text .ajax_add_to_cart").html(`<i class='${cart_icon}'></i><span class='wpte-cart-text'>${cart_text}</span>`); 2282 $(".wpte-product-add-cart-icon-text .product_type_simple").html(`<i class='${cart_icon}'></i><span class='wpte-cart-text'>${cart_text}</span>`); 2283 $(".wpte-product-add-cart-icon-text .product_type_grouped").html(`<i class='${groupde_icon}'></i><span class='wpte-groupde-text'>${groupde_text}</span>`); 2284 $(".wpte-product-add-cart-icon-text .product_type_external").html(`<i class='${external_icon}'></i><span class='wpte-external-text'>${external_text}</span>`); 2285 $(".wpte-product-add-cart-icon-text .product_type_variable").html(`<i class='${variable_icon}'></i><span class='wpte-variable-text'>${variable_text}</span>`); 2286 } 2287 2288 } 2289 2290 // Product Tabs 2291 $(document).on('click', '.wpte-product-layouts-tabs li', function(){ 2292 //var id = $(this).attr('id'); 2293 var catid = $(this).attr('catid'), 2294 layoutid = $(this).attr('layoutid'); 2295 This = $(this); 2296 2297 $.ajax({ 2298 type: 'POST', 2299 url : wpteGlobal.ajaxUrl, 2300 data: { 2301 action : "wpte_load_product_based_on_category", 2302 _nonce : wpteGlobal.wpte_nonce, 2303 catid : catid, 2304 layoutid: layoutid, 2305 }, 2306 beforeSend: function () { 2307 This.parent().siblings().find('.wpte-product-load').addClass('wpte-loading'); 2308 }, 2309 success: function (response) { 2310 This.parent().find('li').removeClass('wpte-tab-active'); 2311 This.addClass('wpte-tab-active'); 2312 This.parent().siblings().find('.wpte-product-load').removeClass('wpte-loading'); 2313 if ( response ) { 2314 This.parent().siblings().find('.wpte-product-load').html(response.data.data); 2315 cart_icon_text_onload(); 2316 } else { 2317 This.parent().siblings().find('.wpte-product-load').html("No product found!") 2318 } 2319 2320 }, 2321 error: function (data) { 2322 This.parent().siblings().find('.wpte-product-load').removeClass('wpte-loading'); 2323 } 2324 }); 2325 }); 2326 2327
2327 // Pagination 2328 $(document).on('click', '.wpte-product-paginations .wpte-product-layout-pagination li', function(){ 2329 var page_id = $(this).attr('data-id'), 2330 layoutid = $(this).attr('layoutid'), 2331 This = $(this); 2332 2333 var dataid = []; 2334 var data = {}; 2335 2336 $('.wpte-product-filter-form').each(function() { 2337 var daid = $(this).attr('dataid'); 2338 var formId = $(this).attr('classid'); 2339 dataid.push(daid); 2340 data[formId] = $('.' + formId).serializeJSON(); 2341 }); 2342 2343 $.ajax({ 2344 type: 'POST', 2345 url : wpteGlobal.ajaxUrl, 2346 data: { 2347 action : "wpte_product_pagination", 2348 _nonce : wpteGlobal.wpte_nonce, 2349 page_id : page_id, 2350 layoutid: layoutid, 2351 id : dataid, 2352 data : data, 2353 }, 2354 beforeSend: function () { 2355 This.parent().parent().parent('.wpte-product-load').addClass('wpte-loading'); 2356 }, 2357 success: function (response) { 2358 This.parent().parent().parent('.wpte-product-load').removeClass('wpte-loading'); 2359 if ( response ) { 2360 var post_data = response.data.data; 2361 var pagination = `<div class="wpte-product-paginations">${response.data.pagination}</div>`; 2362 This.parent().parent().parent('.wpte-product-load').html( post_data + pagination ); 2363 cart_icon_text_onload(); 2364 } else { 2365 This.parent().parent().parent('.wpte-product-load').html("No product found!") 2366 } 2367 }, 2368 error: function (data) { 2369 This.parent().parent().parent('.wpte-product-load').removeClass('wpte-loading'); 2370 } 2371 }); 2372 2373 }); 2374 2375 // Load More 2376 $(document).on('click', '.wpte-product-layout-load-more-button', function(){ 2377 var post_per_page = $(this).attr('post-per-page'), 2378 add_page = $(this).attr('add-page'), 2379 layoutid = $(this).attr('layoutid'), 2380 This = $(this), 2381 add_page = parseInt( add_page ) + parseInt( post_per_page ); 2382 2383 var dataid = []; 2384 var data = {}; 2385 2386 $('.wpte-product-filter-form').each(function() { 2387 var daid = $(this).attr('dataid'); 2388 var formId = $(this).attr('classid'); 2389 dataid.push(daid); 2390 data[formId] = $('.' + formId).serializeJSON(); 2391 }); 2392 2393 $.ajax({ 2394 type: 'POST', 2395 url : wpteGlobal.ajaxUrl, 2396 data: { 2397 action : "wpte_product_load_more", 2398 _nonce : wpteGlobal.wpte_nonce, 2399 add_page: add_page, 2400 layoutid: layoutid, 2401 id : dataid, 2402 data : data, 2403 }, 2404 beforeSend: function () { 2405 This.parent().parent('.wpte-product-load').addClass('wpte-loading'); 2406 var text = This.html(); 2407 This.addClass('loading'); 2408 This.html(text + '<i class="wpte-icon icon-loading-2"></i>'); 2409 }, 2410 success: function (response) { 2411 This.parent().parent('.wpte-product-load').removeClass('wpte-loading'); 2412 if ( response ) { 2413 var post_data = response.data.data; 2414 var load_more = `<div class="wpte-product-load-more">${response.data.load_more}</div>`; 2415 This.parent().parent('.wpte-product-load').html( post_data + load_more ); 2416 cart_icon_text_onload(); 2417 } else { 2418 This.parent().parent('.wpte-product-load').html("No product found!") 2419 } 2420 }, 2421 error: function (data) { 2422 This.parent().parent('.wpte-product-load').removeClass('wpte-loading'); 2423 } 2424 }); 2425 2426 }); 2427 2428 // Product Filter 2429 $('.wpte-product-filter-form').on('change', 'input:radio, input:checkbox', function(){ 2430 var dataid = [], 2431 This = $(this), 2432 data = {}, 2433 layoutid = $(this).attr('layoutid'), 2434 wpte_attribute = []; 2435 2436 $('.wpte-product-filter-form').each(function() { 2437 var daid = $(this).attr('dataid'); 2438 var formId = $(this).attr('classid'); 2439 wpte_attribute[daid] = $(this).find('.wpte-filter-attribute').attr('wpte_attribute'); 2440 dataid.push(daid); 2441 data[formId] = $('.' + formId).serializeJSON(); 2442 }); 2443 2444 wpte_attribute = 'undefined' != wpte_attribute ? wpte_attribute : []; 2445 2446 $.ajax({ 2447 type: 'POST', 2448 url: wpteGlobal.ajaxUrl, 2449 data: { 2450 action: "wpte_load_filter_product", 2451 _nonce: wpteGlobal.wpte_nonce, 2452 id: dataid, 2453 layoutid: layoutid, 2454 data: data, 2455 wpte_attribute: wpte_attribute, 2456 }, 2457 beforeSend: function () { 2458 $('#wpte-product-layout-wrapper-'+layoutid).find('.wpte-product-load').addClass('wpte-loading'); 2459 }, 2460 success: function (response) { 2461 2462 $('#wpte-product-layout-wrapper-'+layoutid).find('.wpte-product-load').removeClass('wpte-loading'); 2463 if ( response.data.data ) { 2464 $('#wpte-product-layout-wrapper-'+layoutid).find('.wpte-product-load').html(response.data.data + response.data.pagination); 2465 //$('#wpte-product-filter-form-'+dataid).parents().siblings('.wpte-product-load').find('.wpte-product-filter-wrapper').remove(); 2466 cart_icon_text_onload(); 2467 } else { 2468 $('#wpte-product-layout-wrapper-'+layoutid).find('.wpte-product-load').html("<h2>No product found!</h2>") 2469 } 2470 2471 }, 2472 error: function (data) { 2473 $('#wpte-product-layout-wrapper-'+layoutid).find(".wpte-product-load").removeClass('wpte-loading'); 2474 } 2475 }); 2476 }); 2477 2478})(jQuery); 2479 2480 2481moment.updateLocale( 'en_US', {"months":["January","February","March","April","May","June","July","August","September","October","November","December"],"monthsShort":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"weekdays":["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
2481ay","Saturday"],"weekdaysShort":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"week":{"dow":1},"longDateFormat":{"LT":"g:i a","LTS":null,"L":null,"LL":"F j, Y","LLL":"F j, Y g:i a","LLLL":null}} ); 2482 2483} 2484catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://labadibeachhotelgh.com/wp-content/plugins/product-layouts/assets/global/js/wpte-global.js\n- Error message: "+ e.message);} 2485 2486 2487 var wcBlocksMiddlewareConfig = { 2488 storeApiNonce: '048b8c78f0', 2489 wcStoreApiNonceTimestamp: '1790786511' 2490 }; 2491 2492;(function($){ 2493 2494 function wpte_compare_popup(This, product_id, is_retry) { 2495 $.ajax({ 2496 type: 'POST', 2497 url: wpteGlobal.ajaxUrl, 2498 data: { 2499 action: "wpte_product_compare_popup", 2500 _nonce: wpteGlobal.wpte_nonce, 2501 product_id: product_id, 2502 }, 2503 beforeSend: function () { 2504 This.addClass('loading'); 2505 }, 2506 success: function (response) { 2507 if ( response && ! response.success && response.data && response.data.nonce_expired && ! is_retry ) { 2508 wpteGlobal.wpte_nonce = response.data.new_nonce; 2509 wpte_compare_popup(This, product_id, true); 2510 return; 2511 } 2512 if ( response.data.data ) { 2513 var icon = (typeof(This.attr('compare_added_icon')) != "undefined" && This.attr('compare_added_icon') !== null) ? `<i class="${This.attr('compare_added_icon')}"></i>` : '', 2514 ctext = (typeof(This.attr('compare_added_text')) != "undefined" && This.attr('compare_added_text') !== null) ? This.attr('compare_added_text') : ''; 2515 $('.wpte-popup-display').addClass('wpte-popup-display-block'); 2516 $('.wpte-popup-display-block').append(response.data.data); 2517 This.html( icon + ctext ); 2518 This.removeClass('loading'); 2519 } else if ( response.data.iderror ) { 2520 console.log( response.data.iderror ); 2521 } else { 2522 console.log( response.data.error ); 2523 } 2524 }, 2525 complete : function() { 2526 2527 }, 2528 error: function (data) { 2529 alert(wpteGlobal.error); 2530 } 2531 }); 2532 } 2533 2534 $(document).on('click', '.wpte-product-layouts-compare a', function(){ 2535 wpte_compare_popup( $(this), $(this).attr('product_id'), false ); 2536 }); 2537 2538 /** 2539 * Keep the modal coherent after a column is removed: refresh the product 2540 * count in the header and swap in the empty state once nothing is left. 2541 */ 2542 function wpte_compare_refresh(context) { 2543 var $box = (context || $(document)).find('#wpte-product-compare-box'), 2544 $count = $box.find('.wpte-compare-table-count'), 2545 $table = $box.find('.wpte-compare-table'), 2546 $empty = $box.find('.wpte-compare-empty'), 2547 remaining = $table.find('.wpte-compare-head-row .wpte-compare-product-col:visible').length; 2548 2549 if ( $count.length ) { 2550 if ( remaining === 0 ) { 2551 $count.text( $count.attr('data-empty') || '' ); 2552 } else { 2553 var template = remaining === 1 ? $count.attr('data-singular') : $count.attr('data-plural'); 2554 $count.text( (template || '%s').replace('%s', remaining) ); 2555 } 2556 } 2557 2558 if ( remaining === 0 ) { 2559 $table.hide(); 2560 $empty.show(); 2561 } 2562 } 2563 2564 function wpte_compare_remove(product_id, is_retry) { 2565 $.ajax({ 2566 type: 'POST', 2567 url: wpteGlobal.ajaxUrl, 2568 data: { 2569 action: "wpte_compare_product_remove", 2570 _nonce: wpteGlobal.wpte_nonce, 2571 product_id: product_id, 2572 }, 2573 beforeSend: function () { 2574 $('.wpte-remove-'+product_id).css('opacity', '0.6'); 2575 }, 2576 success: function (response) { 2577 if ( response && ! response.success && response.data && response.data.nonce_expired && ! is_retry ) { 2578 wpteGlobal.wpte_nonce = response.data.new_nonce; 2579 wpte_compare_remove(product_id, true); 2580 return; 2581 } 2582 $('.wpte-remove-'+product_id).hide(); 2583 wpte_compare_refresh(); 2584 }, 2585 complete : function() { 2586 2587 }, 2588 error: function (data) { 2589 alert(wpteGlobal.error); 2590 } 2591 }); 2592 } 2593 2594 $(document).on('click', '.wpte-compare-product-remove', function(){ 2595 wpte_compare_remove( $(this).attr('product_id'), false ); 2596 }); 2597 2598})(jQuery); 2599 2600 2601moment.updateLocale( 'en_US', {"months":["January","February","March","April","May","June","July","August","September","October","November","December"],"monthsShort":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"weekdays":["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
2601ay","Saturday"],"weekdaysShort":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"week":{"dow":1},"longDateFormat":{"LT":"g:i a","LTS":null,"L":null,"LL":"F j, Y","LLL":"F j, Y g:i a","LLLL":null}} ); 2602 2603} 2604catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://labadibeachhotelgh.com/wp-content/plugins/product-layouts/assets/global/js/wpte-product-compare.js\n- Error message: "+ e.message);} 2605 2606 2607 var wcBlocksMiddlewareConfig = { 2608 storeApiNonce: '048b8c78f0', 2609 wcStoreApiNonceTimestamp: '1790786511' 2610 }; 2611 2612;(function($){ 2613 2614 function Quick_view_popup(product_id, This, is_retry){ 2615 $.ajax({ 2616 type: 'POST', 2617 url: wpteGlobal.ajaxUrl, 2618 data: { 2619 action: "wpte_quick_view_popup", 2620 _nonce: wpteGlobal.wpte_nonce, 2621 product_id: product_id, 2622 }, 2623 beforeSend: function () { 2624 This.addClass('loading'); 2625 }, 2626 success: function (response) { 2627 if ( response && ! response.success && response.data && response.data.nonce_expired && ! is_retry ) { 2628 wpteGlobal.wpte_nonce = response.data.new_nonce; 2629 Quick_view_popup(product_id, This, true); 2630 return; 2631 } 2632 $('.wpte-popup-display').addClass('wpte-popup-display-block'); 2633 $('.wpte-popup-display-block').append(response.data.data); 2634 $('.wpte-quick-view-wrapper .woocommerce div.product .wpte_quick_view_product_addtocart_button_container form.cart div.quantity').append(`<div class='wpte-quick-view-quantity-minus'>-</div><div class='wpte-quick-view-quantity-plus'>+</div>`); 2635 $('.wpte_quick_view_product_addtocart_button_container .variations_form').each(function(){ 2636 $( this ).wc_variation_form(); 2637 }) 2638 setTimeout( function() { 2639 $( '.wpte-quick-view-image-area .woocommerce-product-gallery' ).each( function() { 2640 $( this ).wc_product_gallery(); 2641 } ); 2642 $('.wpte-product-layouts-wish-list .tinvwl_add_to_wishlist_button').removeClass('disabled-add-wishlist'); 2643 }, 100 ); 2644 This.removeClass('loading'); 2645 2646 }, 2647 complete : function() { 2648 2649 }, 2650 error: function (data) { 2651 alert(wpteGlobal.error); 2652 } 2653 }); 2654 } 2655 2656 $(document).on('click', '.wpte-product-layouts-quick-view a', function(e){ 2657 e.preventDefault(), e.stopPropagation(); 2658 var product_id = $(this).attr('productid'), 2659 This = $(this); 2660 Quick_view_popup(product_id, This, false); 2661 }); 2662 2663 $(document).on('click', 'body', function(e){ 2664 if ( $(e.target).hasClass("wpte-product-popup-bg") ){ 2665 $('.wpte-popup-display-block').html(''); 2666 $('.wpte-popup-display').removeClass('wpte-popup-display-block'); 2667 } 2668 2669 }); 2670 2671 $(document).on('click', '.wpte-product-popup-close', function(e){ 2672 $('.wpte-popup-display-block').html(''); 2673 $('.wpte-popup-display').removeClass('wpte-popup-display-block'); 2674 }); 2675 2676 $(document).on('click', '.wpte-quick-view-quantity-plus', function(){ 2677 var quantity_number = $('.wpte-quick-view-wrapper .woocommerce div.product .wpte_quick_view_product_addtocart_button_container form.cart div.quantity .qty').val(), 2678 quantity_max = $('.wpte-quick-view-wrapper .wpte_quick_view_product_addtocart_button_container form.cart .quantity .qty').attr('max'); 2679 // console.log($('.quantity .input-text').attr('min')); 2680 if ( quantity_number < quantity_max || !quantity_max ) { 2681 quantity_number++ ; 2682 $('.wpte-quick-view-wrapper .woocommerce div.product .wpte_quick_view_product_addtocart_button_container form.cart div.quantity .qty').val(quantity_number); 2683 } 2684 2685 }); 2686 2687 $(document).on('click', '.wpte-quick-view-quantity-minus', function(){ 2688 var quantity_number = $('.wpte-quick-view-wrapper .woocommerce div.product .wpte_quick_view_product_addtocart_button_container form.cart div.quantity .qty').val(), 2689 quantity_min = $('.wpte-quick-view-wrapper .woocommerce div.product .wpte_quick_view_product_addtocart_button_container form.cart div.quantity .qty').attr('min'); 2690 if ( quantity_number > quantity_min ) { 2691 quantity_number-- ; 2692 $('.wpte-quick-view-wrapper .woocommerce div.product .wpte_quick_view_product_addtocart_button_container form.cart div.quantity .qty').val(quantity_number); 2693 } 2694 }); 2695 2696 function quick_view_add_to_cart(o, p, c, is_retry) { 2697 $.ajax({ 2698 type: 'POST', 2699 url: wpteGlobal.ajaxUrl, 2700 data: { 2701 action: "wpte_quick_view_add_to_cart", 2702 product_data: p, 2703 _nonce: wpteGlobal.wpte_nonce, 2704 cart_item_data: c.serializeArray() 2705 }, 2706 beforeSend: function () { 2707 2708 }, 2709 success: function (e) { 2710 if ( e && ! e.success && e.data && e.data.nonce_expired && ! is_retry ) { 2711 wpteGlobal.wpte_nonce = e.data.new_nonce; 2712 quick_view_add_to_cart(o, p, c, true); 2713 return; 2714 } 2715 if ( e.data.notices ) { 2716 $('.wpte-popup-display').attr('id', 'wpte-popup-display-notice'); 2717 $('#wpte-popup-display-notice').prepend(e.data.notices); 2718 $('#wpte-popup-display-notice ul').prepend('<span class="wpte-quick-view-alert-close">Ã</span>'); 2719 setTimeout( function() { 2720 $('#wpte-popup-display-notice ul').hide(); 2721 o.removeClass("wpte-addtocart-loading") 2722 }, 5000 ); 2723 2724 } else { 2725 e.success && ($(document.body).trigger("wc_fragment_refresh"), 2726 o.removeClass("wpte-addtocart-loading"), 2727 o.addClass("wpte-addtocart-added")); 2728 } 2729 2730 }, 2731 complete : function() { 2732 2733 }, 2734 error: function (data) { 2735 o.removeClass("wpte-addtocart-loading"); 2736 alert(wpteGlobal.error); 2737 } 2738 }); 2739 } 2740 2741 $(document).on("click", "#wpte-quick-view-box .single_add_to_cart_button", function (e) { 2742 e.preventDefault(), e.stopImmediatePropagation(); 2743 var o = $(this), 2744 r = $(this).val(), 2745 a = o.closest("form.cart").find('input[name="variation_id"]').val() || "", 2746 n = o.closest("form.cart").find('input[name="quantity"]').val(), 2747 i = o.closest("form.cart.grouped_form"), 2748 c = o.closest("form.cart"), 2749 p = []; 2750 (i = i.serializeArray()), 2751 c.hasClass("variations_form") && (r = c.find('input[name="product_id"]').val()), 2752 i.length > 0
2753 ? i.forEach(function (e, t) { 2754 var o = parseInt(e.name.replace(/[^\d.]/g, ""), 10); 2755 e.name.indexOf("quantity[") >= 0 && "" != e.value && o > 0 && (p[p.length] = { product_id: o, quantity: e.value, variation_id: 0 }); 2756 }) 2757 : (p[0] = { product_id: r, quantity: n, variation_id: a }), 2758 o.removeClass("wpte-addtocart-added"), 2759 o.addClass("wpte-addtocart-loading"), 2760 quick_view_add_to_cart(o, p, c, false); 2761 }); 2762 2763 $(document).on('click', '.wpte-quick-view-alert-close', function(){ 2764 $('.woocommerce-error').hide(); 2765 $('#wpte-quick-view-box .single_add_to_cart_button').removeClass('wpte-addtocart-loading'); 2766 }); 2767})(jQuery); 2768 2769 2770moment.updateLocale( 'en_US', {"months":["January","February","March","April","May","June","July","August","September","October","November","December"],"monthsShort":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"weekdays":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"weekdaysShort":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"week":{"dow":1},"longDateFormat":{"LT":"g:i a","LTS":null,"L":null,"LL":"F j, Y","LLL":"F j, Y g:i a","LLLL":null}} ); 2771 2772} 2773catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://labadibeachhotelgh.com/wp-content/plugins/product-layouts/assets/global/js/wpte-quickview.js\n- Error message: "+ e.message);} 2774 2775 2776 var wcBlocksMiddlewareConfig = { 2777 storeApiNonce: '048b8c78f0', 2778 wcStoreApiNonceTimestamp: '1790786511' 2779 }; 2780 2781(()=>{"use strict";var e,r,_,t,a,n={},i={};function __webpack_require__(e){var r=i[e];if(void 0!==r)return r.exports;var _=i[e]={exports:{}};return n[e].call(_.exports,_,_.exports,__webpack_require__),_.exports}__webpack_require__.m=n,e=[],__webpack_require__.O=(r,_,t,a)=>{if(!_){var n=1/0;for(b=0;b<e.length;b++){for(var[_,t,a]=e[b],i=!0,c=0;c<_.length;c++)(!1&a||n>=a)&&Object.keys(__webpack_require__.O).every(e=>__webpack_require__.O[e](_[c]))?_.splice(c--,1):(i=!1,a<n&&(n=a));if(i){e.splice(b--,1);var o=t();void 0!==o&&(r=o)}}return r}a=a||0;for(var b=e.length;b>0&&e[b-1][2]>a;b--)e[b]=e[b-1];e[b]=[_,t,a]},_=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,__webpack_require__.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var a=Object.create(null);__webpack_require__.r(a);var n={};r=r||[null,_({}),_([]),_(_)];for(var i=2&t&&e;("object"==typeof i||"function"==typeof i)&&!~r.indexOf(i);i=_(i))Object.getOwnPropertyNames(i).forEach(r=>n[r]=()=>e[r]);return n.default=()=>e,__webpack_require__.d(a,n),a},__webpack_require__.d=(e,r)=>{for(var _ in r)__webpack_require__.o(r,_)&&!__webpack_require__.o(e,_)&&Object.defineProperty(e,_,{enumerable:!0,get:r[_]})},__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce((r,_)=>(__webpack_require__.f[_](e,r),r),[])),__webpack_require__.u=e=>786===e?"397f2d183c19202777d6.bundle.min.js":216===e?"lightbox.570c05c5a283cfb6b223.bundle.min.js":30===e?"text-path.a67c1f3a78d208bc7e1b.bundle.min.js":131===e?"accordion.8b0db5058afeb74622f5.bundle.min.js":707===e?"alert.42cc1d522ef5c60bf874.bundle.min.js":457===e?"counter.12335f45aaa79d244f24.bundle.min.js":234===e?"progress.0ea083b809812c0e3aa1.bundle.min.js":575===e?"tabs.18344b05d8d1ea0702bc.bundle.min.js":775===e?"toggle.2a177a3ef4785d3dfbc5.bundle.min.js":180===e?"video.86d44e46e43d0807e708.bundle.min.js":177===e?"image-carousel.6167d20b95b33386757b.bundle.min.js":212===e?"text-editor.45609661e409413f1cef.bundle.min.js":211===e?"wp-audio.c9624cb6e5dc9de86abd.bundle.min.js":215===e?"nested-tabs.a2401356d329f179475e.bundle.min.js":915===e?"nested-accordion.294d40984397351fd0f5.bundle.min.js":1===e?"contact-buttons.e98d0220ce8c38404e7e.bundle.min.js":336===e?"floating-bars.740d06d17cea5cebdb61.bundle.min.js":557===e?"shared-frontend-handlers.03caa53373b56d3bab67.bundle.min.js":396===e?"shared-editor-handlers.cacdcbed391abf4b48b0.bundle.min.js":768===e?"container-editor-handlers.a2e8e48d28c5544fb183.bundle.min.js":77===e?"section-frontend-handlers.d85ab872da118940910d.bundle.min.js":220===e?"section-editor-handlers.53ffedef32043348b99b.bundle.min.js":304===e?"nested-title-keyboard-handler.2a67d3cc630e11815acc.bundle.min.js":void 0,__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}
vendor: 5,238 bytes, lines 2781-2795
2781}(),__webpack_require__.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t={},a="elementorFrontend:",__webpack_require__.l=(e,r,_,n)=>{if(t[e])t[e].push(r);else{var i,c;if(void 0!==_)for(var o=document.getElementsByTagName("script"),b=0;b<o.length;b++){var u=o[b];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==a+_){i=u;break}}i||(c=!0,(i=document.createElement("script")).charset="utf-8",__webpack_require__.nc&&i.setAttribute("nonce",__webpack_require__.nc),i.setAttribute("data-webpack",a+_),i.src=e),t[e]=[r];var onScriptComplete=(r,_)=>{i.onerror=i.onload=null,clearTimeout(d);var a=t[e];if(delete t[e],i.parentNode&&i.parentNode.removeChild(i),a&&a.forEach(e=>e(_)),r)return r(_)},d=setTimeout(onScriptComplete.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=onScriptComplete.bind(null,i.onerror),i.onload=onScriptComplete.bind(null,i.onload),c&&document.head.appendChild(i)}},__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var r=__webpack_require__.g.document;if(!e&&r&&(r.currentScript&&"SCRIPT"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var _=r.getElementsByTagName("script");if(_.length)for(var t=_.length-1;t>-1&&(!e||!/^http(s?):/.test(e));)e=_[t--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=e})(),(()=>{var e={76:0};__webpack_require__.f.j=(r,_)=>{var t=__webpack_require__.o(e,r)?e[r]:void 0;if(0!==t)if(t)_.push(t[2]);else if(76!=r){var a=new Promise((_,a)=>t=e[r]=[_,a]);_.push(t[2]=a);var n=__webpack_require__.p+__webpack_require__.u(r),i=new Error;__webpack_require__.l(n,_=>{if(__webpack_require__.o(e,r)&&(0!==(t=e[r])&&(e[r]=void 0),t)){var a=_&&("load"===_.type?"missing":_.type),n=_&&_.target&&_.target.src;i.message="Loading chunk "+r+" failed.\n("+a+": "+n+")",i.name="ChunkLoadError",i.type=a,i.request=n,t[1](i)}},"chunk-"+r,r)}else e[r]=0},__webpack_require__.O.j=r=>0===e[r];var webpackJsonpCallback=(r,_)=>{var t,a,[n,i,c]=_,o=0;if(n.some(r=>0!==e[r])){for(t in i)__webpack_require__.o(i,t)&&(__webpack_require__.m[t]=i[t]);if(c)var b=c(__webpack_require__)}for(r&&r(_);o<n.length;o++)a=n[o],__webpack_require__.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return __webpack_require__.O(b)},r=self.webpackChunkelementorFrontend=self.webpackChunkelementorFrontend||[];r.forEach(webpackJsonpCallback.bind(null,0)),r.push=webpackJsonpCallback.bind(null,r.push.bind(r))})()})(); 2782 2783 2784moment.updateLocale( 'en_US', {"months":["January","February","March","April","May","June","July","August","September","October","November","December"],"monthsShort":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"weekdays":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"weekdaysShort":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"week":{"dow":1},"longDateFormat":{"LT":"g:i a","LTS":null,"L":null,"LL":"F j, Y","LLL":"F j, Y g:i a","LLLL":null}} ); 2785 2786} 2787catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://labadibeachhotelgh.com/wp-content/plugins/elementor/assets/js/webpack.runtime.min.js\n- Error message: "+ e.message);} 2788 2789 2790 var wcBlocksMiddlewareConfig = { 2791 storeApiNonce: '048b8c78f0', 2792 wcStoreApiNonceTimestamp: '1790786511' 2793 }; 2794 2795(self.webpackChunkelementorFrontend=self.webpackChunkelementorFrontend||[]).push([[941],{1:(e,t,r)=>{"use strict";var n=r(5578),i=r(7255),s=r(5755),o=r(1866),a=r(6029),c=r(5022),l=n.Symbol,u=i("wks"),p=c?l.for||l:l&&l.withoutSetter||o;e.exports=function(e){return s(u,e)||(u[e]=a&&s(l,e)?l[e]:p("Symbol."+e)),u[e]}},41:e=>{"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},169:(e,t,r)=>{"use strict";var n=r(4762),i=r(8473),s=r(1483),o=r(5755),a=r(382),c=r(2048).CONFIGURABLE,l=r(7268),u=r(4483),p=u.enforce,d=u.get,h=String,f=Object.defineProperty,g=n("".slice),m=n("".replace),v=n([].join),y=a&&!i(function(){return 8!==f(function(){},"length",{value:8}).length}),w=String(String).split("String"),b=e.exports=function(e,t,r){"Symbol("===g(h(t),0,7)&&(t="["+m(h(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!o(e,"name")||c&&e.name!==t)&&(a?f(e,"name",{value:t,configurable:!0}):e.name=t),y&&r&&o(r,"arity")&&e.length!==r.arity&&f(e,"length",{value:r.arity});try{r&&o(r,"constructor")&&r.constructor?a&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=p(e);return o(n,"source")||(n.source=v(w,"string"==typeof t?t:"")),e};Function.prototype.toString=b(function toString(){return s(this)&&d(this).source||l(this)},"toString")},274:(e,t,r)=>{"use strict";var n=r(8473);e.exports=!n(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},348:(e,t,r)=>{"use strict";var n=r(1807),i=r(1483),s=r(1704),o=TypeError;e.exports=function(e,t){var r,a;if("string"===t&&i(r=e.toString)&&!s(a=n(r,e)))return a;
2795if(i(r=e.valueOf)&&!s(a=n(r,e)))return a;if("string"!==t&&i(r=e.toString)&&!s(a=n(r,e)))return a;throw new o("Can't convert object to primitive value")}},382:(e,t,r)=>{"use strict";var n=r(8473);e.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},641:(e,t,r)=>{"use strict";r(5724),r(4846),r(7458),r(9655);const Module=function(){const e=jQuery,t=arguments,r=this,n={};let i;this.getItems=function(e,t){if(t){const r=t.split("."),n=r.splice(0,1);if(!r.length)return e[n];if(!e[n])return;return this.getItems(e[n],r.join("."))}return e},this.getSettings=function(e){return this.getItems(i,e)},this.setSettings=function(t,n,s){if(s||(s=i),"object"==typeof t)return e.extend(s,t),r;const o=t.split("."),a=o.splice(0,1);return o.length?(s[a]||(s[a]={}),r.setSettings(o.join("."),n,s[a])):(s[a]=n,r)},this.getErrorMessage=function(e,t){let r;if("forceMethodImplementation"===e)r=`The method '${t}' must to be implemented in the inheritor child.`;else r="An error occurs";return r},this.forceMethodImplementation=function(e){throw new Error(this.getErrorMessage("forceMethodImplementation",e))},this.on=function(t,i){if("object"==typeof t)return e.each(t,function(e){r.on(e,this)}),r;return t.split(" ").forEach(function(e){n[e]||(n[e]=[]),n[e].push(i)}),r},this.off=function(e,t){if(!n[e])return r;if(!t)return delete n[e],r;const i=n[e].indexOf(t);return-1!==i&&(delete n[e][i],n[e]=n[e].filter(e=>e)),r},this.trigger=function(t){const i="on"+t[0].toUpperCase()+t.slice(1),s=Array.prototype.slice.call(arguments,1);r[i]&&r[i].apply(r,s);const o=n[t];return o?(e.each(o,function(e,t){t.apply(r,s)}),r):r},r.__construct.apply(r,t),e.each(r,function(e){const t=r[e];"function"==typeof t&&(r[e]=function(){return t.apply(r,arguments)})}),function(){i=r.getDefaultSettings();const n=t[0];n&&e.extend(!0,i,n)}(),r.trigger("init")};Module.prototype.__construct=function(){},Module.prototype.getDefaultSettings=function(){return{}},Module.prototype.getConstructorID=function(){return this.constructor.name},Module.extend=function(e){const t=jQuery,r=this,child=function(){return r.apply(this,arguments)};return t.extend(child,r),(child.prototype=Object.create(t.extend({},r.prototype,e))).constructor=child,child.__super__=r.prototype,child},e.exports=Module},670:(e,t,r)=>{"use strict";var n=r(382),i=r(5835),s=r(7738);e.exports=function(e,t,r){n?i.f(e,t,s(0,r)):e[t]=r}},751:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(5724),r(4846),r(9655);class InstanceType{static[Symbol.hasInstance](e){let t=super[Symbol.hasInstance](e);if(e&&!e.constructor.getInstanceType)return t;if(e&&(e.instanceTypes||(e.instanceTypes=[]),t||this.getInstanceType()===e.constructor.getInstanceType()&&(t=!0),t)){const t=this.getInstanceType===InstanceType.getInstanceType?"BaseInstanceType":this.getInstanceType();-1===e.instanceTypes.indexOf(t)&&e.instanceTypes.push(t)}return!t&&e&&(t=e.instanceTypes&&Array.isArray(e.instanceTypes)&&-1!==e.instanceTypes.indexOf(this.getInstanceType())),t}static getInstanceType(){elementorModules.ForceMethodImplementation()}constructor(){let e=new.target;const t=[];for(;e.__proto__&&e.__proto__.name;)t.push(e.__proto__),e=e.__proto__;t.reverse().forEach(e=>this instanceof e)}}t.default=InstanceType},1091:e=>{"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},1265:(e,t,r)=>{"use strict";var n=r(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(641)),s=n(r(2425)),o=n(r(2946)),a=n(r(3980)),c=n(r(2970)),l=n(r(8685)),u=r(9031),p=r(1462);const d={Module:i.default,ViewModule:s.default,ArgsObject:o.default,ForceMethodImplementation:l.default,utils:{Masonry:a.default,Scroll:c.default},importExport:{createGetInitialState:u.createGetInitialState,customizationDialogsRegistry:p.customizationDialogsRegistry}};window.elementorModules?Object.assign(window.elementorModules,d):window.elementorModules=d;t.default=window.elementorModules},1278:(e,t,r)=>{"use strict";var n=r(4762),i=n({}.toString),s=n("".slice);e.exports=function(e){return s(i(e),8,-1)}},1409:(e,t,r)=>{"use strict";var n=r(5578),i=r(1483);e.exports=function(e,t){return arguments.length<2?(r=n[e],i(r)?r:void 0):n[e]&&n[e][t];var r}},1423:(e,t,r)=>{"use strict";var n=r(1409),i=r(1483),s=r(4815),o=r(5022),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return i(t)&&s(t.prototype,a(e))}},1462:(e,t,r)=>{"use strict";
vendor: 4,950 bytes, line 2795
2795Object.defineProperty(t,"__esModule",{value:!0}),t.customizationDialogsRegistry=void 0;var n=r(7958);t.customizationDialogsRegistry=new n.BaseRegistry},1483:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},1506:(e,t,r)=>{"use strict";var n=r(2914),i=r(1807),s=r(2293),o=r(8761),a=r(5299),c=r(6960),l=r(4815),u=r(4887),p=r(6665),d=r(6721),h=TypeError,Result=function(e,t){this.stopped=e,this.result=t},f=Result.prototype;e.exports=function(e,t,r){var g,m,v,y,w,b,S,x=r&&r.that,E=!(!r||!r.AS_ENTRIES),I=!(!r||!r.IS_RECORD),_=!(!r||!r.IS_ITERATOR),C=!(!r||!r.INTERRUPTED),O=n(t,x),stop=function(e){return g&&d(g,"normal"),new Result(!0,e)},callFn=function(e){return E?(s(e),C?O(e[0],e[1],stop):O(e[0],e[1])):C?O(e,stop):O(e)};if(I)g=e.iterator;else if(_)g=e;else{if(!(m=p(e)))throw new h(o(e)+" is not iterable");if(a(m)){for(v=0,y=c(e);y>v;v++)if((w=callFn(e[v]))&&l(f,w))return w;return new Result(!1)}g=u(e,m)}for(b=I?e.next:g.next;!(S=i(b,g)).done;){try{w=callFn(S.value)}catch(e){d(g,"throw",e)}if("object"==typeof w&&w&&l(f,w))return w}return new Result(!1)}},1507:e=>{"use strict";e.exports={}},1703:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function trunc(e){var n=+e;return(n>0?r:t)(n)}},1704:(e,t,r)=>{"use strict";var n=r(1483);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},1799:(e,t,r)=>{"use strict";var n=r(382),i=r(8473),s=r(3145);e.exports=!n&&!i(function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a})},1807:(e,t,r)=>{"use strict";var n=r(274),i=Function.prototype.call;e.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},1831:(e,t,r)=>{"use strict";var n=r(9557),i=r(5578),s=r(2095),o="__core-js_shared__",a=e.exports=i[o]||s(o,{});(a.versions||(a.versions=[])).push({version:"3.46.0",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE",source:"https://github.com/zloirock/core-js"})},1851:(e,t,r)=>{"use strict";var n,i,s,o=r(8473),a=r(1483),c=r(1704),l=r(5290),u=r(3181),p=r(7914),d=r(1),h=r(9557),f=d("iterator"),g=!1;[].keys&&("next"in(s=[].keys())?(i=u(u(s)))!==Object.prototype&&(n=i):g=!0),!c(n)||o(function(){var e={};return n[f].call(e)!==e})?n={}:h&&(n=l(n)),a(n[f])||p(n,f,function(){return this}),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:g}},1866:(e,t,r)=>{"use strict";var n=r(4762),i=0,s=Math.random(),o=n(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++i+s,36)}},1975:(e,t,r)=>{"use strict";var n=r(8612),i=r(1807),s=r(8120),o=r(2293),a=r(41),c=r(8660),l=r(8901),u=r(9557),p=r(6721),d=r(7486),h=r(5267),f=!u&&!d("filter",function(){}),g=!u&&!f&&h("filter",TypeError),m=u||f||g,v=c(function(){for(var e,t,r=this.iterator,n=this.predicate,s=this.next;;){if(e=o(i(s,r)),this.done=!!e.done)return;if(t=e.value,l(r,n,[t,this.counter++],!0))return t}});n({target:"Iterator",proto:!0,real:!0,forced:m},{filter:function filter(e){o(this);try{s(e)}catch(e){p(this,"throw",e)}return g?i(g,this,e):new v(a(this),{predicate:e})}})},1983:(e,t,r)=>{"use strict";var n=r(6721);e.exports=function(e,t,r){for(var i=e.length-1;i>=0;i--)if(void 0!==e[i])try{r=n(e[i].iterator,t,r)}catch(e){t="throw",r=e}if("throw"===t)throw r;return r}},2048:(e,t,r)=>{"use strict";var n=r(382),i=r(5755),s=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,a=i(s,"name"),c=a&&"something"===function something(){}.name,l=a&&(!n||n&&o(s,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:l}},2095:(e,t,r)=>{"use strict";var n=r(5578),i=Object.defineProperty;e.exports=function(e,t){try{i(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},2121:(e,t,r)=>{"use strict";var n=r(4762),i=r(8473),s=r(1278),o=Object,a=n("".split);e.exports=i(function(){return!o("z").propertyIsEnumerable(0)})?function(e){return"String"===s(e)?a(e,""):o(e)}:o},2278:(e,t,r)=>{"use strict";var n=r(6742),i=r(4741).concat("length","prototype");t.f=Object.getOwnPropertyNames||function getOwnPropertyNames(e){return n(e,i)}},2293:(e,t,r)=>{"use strict";var n=r(1704),i=String,s=TypeError;e.exports=function(e){if(n(e))return e;throw new s(i(e)+" is not an object")}},2313:(e,t,r)=>{"use strict";var n=r(7914);e.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}},2347:(e,t,r)=>{"use strict";var n=r(3312),i=Object;e.exports=function(e){return i(n(e))}},2355:(e,t,r)=>{"use strict";var n=r(1807),i=r(1704),s=r(1423),o=r(2564),a=r(348),c=r(1),l=TypeError,u=c("toPrimitive");e.exports=function(e,t){if(!i(e)||s(e))return e;var r,c=o(e,u);if(c){if(void 0===t&&(t="default"),r=n(c,e,t),!i(r)||s(r))return r;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},2425:(e,t,r)=>{"use strict";var n=r(6784);
2795Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(641));t.default=i.default.extend({elements:null,getDefaultElements:()=>({}),bindEvents(){},onInit(){this.initElements(),this.bindEvents()},initElements(){this.elements=this.getDefaultElements()}})},2564:(e,t,r)=>{"use strict";var n=r(8120),i=r(5983);e.exports=function(e,t){var r=e[t];return i(r)?void 0:n(r)}},2811:(e,t,r)=>{"use strict";var n=r(1409);e.exports=n("document","documentElement")},2890:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(4846),r(6211);class _default extends elementorModules.ViewModule{getDefaultSettings(){return{selectors:{elements:".elementor-element",nestedDocumentElements:".elementor .elementor-element"},classes:{editMode:"elementor-edit-mode"}}}getDefaultElements(){const e=this.getSettings("selectors");return{$elements:this.$element.find(e.elements).not(this.$element.find(e.nestedDocumentElements))}}getDocumentSettings(e){let t;if(this.isEdit){t={};const e=elementor.settings.page.model;jQuery.each(e.getActiveControls(),r=>{t[r]=e.attributes[r]})}else t=this.$element.data("elementor-settings")||{};return this.getItems(t,e)}runElementsHandlers(){this.elements.$elements.each((e,t)=>setTimeout(()=>elementorFrontend.elementsHandler.runReadyTrigger(t)))}onInit(){this.$element=this.getSettings("$element"),super.onInit(),this.isEdit=this.$element.hasClass(this.getSettings("classes.editMode")),this.isEdit?elementor.on("document:loaded",()=>{elementor.settings.page.model.on("change",this.onSettingsChange.bind(this))}):this.runElementsHandlers()}onSettingsChange(){}}t.default=_default},2914:(e,t,r)=>{"use strict";var n=r(3786),i=r(8120),s=r(274),o=n(n.bind);e.exports=function(e,t){return i(e),void 0===t?e:s?o(e,t):function(){return e.apply(t,arguments)}}},2946:(e,t,r)=>{"use strict";var n=r(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(751)),s=n(r(5213));class ArgsObject extends i.default{static getInstanceType(){return"ArgsObject"}constructor(e){super(),this.args=e}requireArgument(e,t=this.args){if(!Object.prototype.hasOwnProperty.call(t,e))throw Error(`${e} is required.`)}requireArgumentType(e,t,r=this.args){if(this.requireArgument(e,r),typeof r[e]!==t)throw Error(`${e} invalid type: ${t}.`)}requireArgumentInstance(e,t,r=this.args){if(this.requireArgument(e,r),!(r[e]instanceof t||(0,s.default)(r[e],t)))throw Error(`${e} invalid instance.`)}requireArgumentConstructor(e,t,r=this.args){if(this.requireArgument(e,r),r[e].constructor.toString()!==t.prototype.constructor.toString())throw Error(`${e} invalid constructor type.`)}}t.default=ArgsObject},2970:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(5724);t.default=class Scroll{static scrollObserver(e){let t=0;const r={root:e.root||null,rootMargin:e.offset||"0px",threshold:((e=0)=>{const t=[];if(e>0&&e<=100){const r=100/e;for(let e=0;e<=100;e+=r)t.push(e/100)}else t.push(0);return t})(e.sensitivity)};return new IntersectionObserver(function handleIntersect(r){const n=r[0].boundingClientRect.y,i=r[0].isIntersecting,s=n<t?"down":"up",o=Math.abs(parseFloat((100*r[0].intersectionRatio).toFixed(2)));e.callback({sensitivity:e.sensitivity,isInViewport:i,scrollPercentage:o,intersectionScrollDirection:s}),t=n},r)}static getElementViewportPercentage(e,t={}){const r=e[0].getBoundingClientRect(),n=t.start||0,i=t.end||0,s=window.innerHeight*n/100,o=window.innerHeight*i/100,a=r.top-window.innerHeight,c=0-a+s,l=r.top+s+e.height()-a+o,u=Math.max(0,Math.min(c/l,1));return parseFloat((100*u).toFixed(2))}static getPageScrollPercentage(e={},t){const r=e.start||0,n=e.end||0,i=t||document.documentElement.scrollHeight-document.documentElement.clientHeight,s=i*r/100,o=i+s+i*n/100;return(document.documentElement.scrollTop+document.body.scrollTop+s)/o*100}}},3005:(e,t,r)=>{"use strict";var n=r(1703);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},3145:(e,t,r)=>{"use strict";var n=r(5578),i=r(1704),s=n.document,o=i(s)&&i(s.createElement);e.exports=function(e){return o?s.createElement(e):{}}},3181:(e,t,r)=>{"use strict";var n=r(5755),i=r(1483),s=r(2347),o=r(5409),a=r(9441),c=o("IE_PROTO"),l=Object,u=l.prototype;e.exports=a?l.getPrototypeOf:function(e){var t=s(e);if(n(t,c))return t[c];var r=t.constructor;return i(r)&&t instanceof r?r.prototype:t instanceof l?u:null}},3242:(e,t,r)=>{"use strict";var n=r(8612),i=r(1807),s=r(1506),o=r(8120),a=r(2293),c=r(41),l=r(6721),u=r(5267)("find",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:u},{find:function find(e){a(this);try{o(e)}catch(e){l(this,"throw",e)}if(u)return i(u,this,e);var t=c(this),r=0;return s(t,function(t,n){if(e(t,r++))return n(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},3312:(e,t,r)=>{"use strict";var n=r(5983),i=TypeError;e.exports=function(e){if(n(e))throw new i("Can't call method on "+e);return e}},3392:(e,t,r)=>{"use strict";var n=r(3005),i=Math.max,s=Math.min;e.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):s(r,t)}},3617:(e,t,r)=>{"use strict";var n=r(8612),i=r(5578),s=r(6021),o=r(2293),a=r(1483),c=r(3181),l=r(3864),u=r(670),p=r(8473),d=r(5755),h=r(1),f=r(1851).IteratorPrototype,g=r(382),m=r(95
279557),v="constructor",y="Iterator",w=h("toStringTag"),b=TypeError,S=i[y],x=m||!a(S)||S.prototype!==f||!p(function(){S({})}),E=function Iterator(){if(s(this,f),c(this)===f)throw new b("Abstract class Iterator not directly constructable")},defineIteratorPrototypeAccessor=function(e,t){g?l(f,e,{configurable:!0,get:function(){return t},set:function(t){if(o(this),this===f)throw new b("You can't redefine this property");d(this,e)?this[e]=t:u(this,e,t)}}):f[e]=t};d(f,w)||defineIteratorPrototypeAccessor(w,y),!x&&d(f,v)&&f[v]!==Object||defineIteratorPrototypeAccessor(v,E),E.prototype=f,n({global:!0,constructor:!0,forced:x},{Iterator:E})},3658:(e,t,r)=>{"use strict";var n=r(6742),i=r(4741);e.exports=Object.keys||function keys(e){return n(e,i)}},3786:(e,t,r)=>{"use strict";var n=r(1278),i=r(4762);e.exports=function(e){if("Function"===n(e))return i(e)}},3815:(e,t,r)=>{"use strict";var n=r(2355),i=r(1423);e.exports=function(e){var t=n(e,"string");return i(t)?t:t+""}},3864:(e,t,r)=>{"use strict";var n=r(169),i=r(5835);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),i.f(e,t,r)}},3896:(e,t,r)=>{"use strict";var n=r(382),i=r(8473);e.exports=n&&i(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},3980:(e,t,r)=>{"use strict";var n=r(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(5724);var i=n(r(2425));t.default=i.default.extend({getDefaultSettings:()=>({container:null,items:null,columnsCount:3,verticalSpaceBetween:30}),getDefaultElements(){return{$container:jQuery(this.getSettings("container")),$items:jQuery(this.getSettings("items"))}},run(){var e=[],t=this.elements.$container.position().top,r=this.getSettings(),n=r.columnsCount;t+=parseInt(this.elements.$container.css("margin-top"),10),this.elements.$items.each(function(i){var s=Math.floor(i/n),o=jQuery(this),a=o[0].getBoundingClientRect().height+r.verticalSpaceBetween;if(s){var c=o.position(),l=i%n,u=c.top-t-e[l];u-=parseInt(o.css("margin-top"),10),u*=-1,o.css("margin-top",u+"px"),e[l]+=a}else e.push(a)})}})},3991:(e,t,r)=>{"use strict";var n=r(8612),i=r(1807),s=r(8120),o=r(2293),a=r(41),c=r(8660),l=r(8901),u=r(6721),p=r(7486),d=r(5267),h=r(9557),f=!h&&!p("map",function(){}),g=!h&&!f&&d("map",TypeError),m=h||f||g,v=c(function(){var e=this.iterator,t=o(i(this.next,e));if(!(this.done=!!t.done))return l(e,this.mapper,[t.value,this.counter++],!0)});n({target:"Iterator",proto:!0,real:!0,forced:m},{map:function map(e){o(this);try{s(e)}catch(e){u(this,"throw",e)}return g?i(g,this,e):new v(a(this),{mapper:e})}})},4338:(e,t,r)=>{"use strict";var n={};n[r(1)("toStringTag")]="z",e.exports="[object z]"===String(n)},4347:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},4364:(e,t,r)=>{"use strict";r(3991)},4483:(e,t,r)=>{"use strict";var n,i,s,o=r(4644),a=r(5578),c=r(1704),l=r(9037),u=r(5755),p=r(1831),d=r(5409),h=r(1507),f="Object already initialized",g=a.TypeError,m=a.WeakMap;if(o||p.state){var v=p.state||(p.state=new m);v.get=v.get,v.has=v.has,v.set=v.set,n=function(e,t){if(v.has(e))throw new g(f);return t.facade=e,v.set(e,t),t},i=function(e){return v.get(e)||{}},s=function(e){return v.has(e)}}else{var y=d("state");h[y]=!0,n=function(e,t){if(u(e,y))throw new g(f);return t.facade=e,l(e,y,t),t},i=function(e){return u(e,y)?e[y]:{}},s=function(e){return u(e,y)}}e.exports={set:n,get:i,has:s,enforce:function(e){return s(e)?i(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=i(t)).type!==e)throw new g("Incompatible receiver, "+e+" required");return r}}}},4644:(e,t,r)=>{"use strict";var n=r(5578),i=r(1483),s=n.WeakMap;e.exports=i(s)&&/native code/.test(String(s))},4741:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},4762:(e,t,r)=>{"use strict";var n=r(274),i=Function.prototype,s=i.call,o=n&&i.bind.bind(s,s);e.exports=n?o:function(e){return function(){return s.apply(e,arguments)}}},4815:(e,t,r)=>{"use strict";var n=r(4762);e.exports=n({}.isPrototypeOf)},4846:(e,t,r)=>{"use strict";r(3617)},4887:(e,t,r)=>{"use strict";
2795var n=r(1807),i=r(8120),s=r(2293),o=r(8761),a=r(6665),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?a(e):t;if(i(r))return s(n(r,e));throw new c(o(e)+" is not iterable")}},4914:(e,t,r)=>{"use strict";var n=r(1278);e.exports=Array.isArray||function isArray(e){return"Array"===n(e)}},4946:(e,t,r)=>{"use strict";var n=r(6784),i=n(r(1265)),s=n(r(2890)),o=n(r(7955)),a=n(r(8140)),c=n(r(7224)),l=n(r(5633)),u=n(r(9603));i.default.frontend={Document:s.default,tools:{StretchElement:o.default},handlers:{Base:c.default,StretchedElement:a.default,SwiperBase:l.default,CarouselBase:u.default}}},4961:(e,t,r)=>{"use strict";var n=r(382),i=r(1807),s=r(7611),o=r(7738),a=r(5599),c=r(3815),l=r(5755),u=r(1799),p=Object.getOwnPropertyDescriptor;t.f=n?p:function getOwnPropertyDescriptor(e,t){if(e=a(e),t=c(t),u)try{return p(e,t)}catch(e){}if(l(e,t))return o(!i(s.f,e,t),e[t])}},5022:(e,t,r)=>{"use strict";var n=r(6029);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5213:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=(e,t)=>{t=Array.isArray(t)?t:[t];for(const r of t)if(e.constructor.name===r.prototype[Symbol.toStringTag])return!0;return!1}},5247:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},5267:(e,t,r)=>{"use strict";var n=r(5578);e.exports=function(e,t){var r=n.Iterator,i=r&&r.prototype,s=i&&i[e],o=!1;if(s)try{s.call({next:function(){return{done:!0}},return:function(){o=!0}},-1)}catch(e){e instanceof t||(o=!1)}if(!o)return s}},5290:(e,t,r)=>{"use strict";var n,i=r(2293),s=r(5799),o=r(4741),a=r(1507),c=r(2811),l=r(3145),u=r(5409),p="prototype",d="script",h=u("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return"<"+d+">"+e+"</"+d+">"},NullProtoObjectViaActiveX=function(e){e.write(scriptTag("")),e.close();var t=e.parentWindow.Object;return e=null,t},NullProtoObject=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;NullProtoObject="undefined"!=typeof document?document.domain&&n?NullProtoObjectViaActiveX(n):(t=l("iframe"),r="java"+d+":",t.style.display="none",c.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(scriptTag("document.F=Object")),e.close(),e.F):NullProtoObjectViaActiveX(n);for(var i=o.length;i--;)delete NullProtoObject[p][o[i]];return NullProtoObject()};a[h]=!0,e.exports=Object.create||function create(e,t){var r;return null!==e?(EmptyConstructor[p]=i(e),r=new EmptyConstructor,EmptyConstructor[p]=null,r[h]=e):r=NullProtoObject(),void 0===t?r:s.f(r,t)}},5299:(e,t,r)=>{"use strict";var n=r(1),i=r(6775),s=n("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||o[s]===e)}},5409:(e,t,r)=>{"use strict";var n=r(7255),i=r(1866),s=n("keys");e.exports=function(e){return s[e]||(s[e]=i(e))}},5578:function(e,t,r){"use strict";var check=function(e){return e&&e.Math===Math&&e};e.exports=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof r.g&&r.g)||check("object"==typeof this&&this)||function(){return this}()||Function("return this")()},5599:(e,t,r)=>{"use strict";var n=r(2121),i=r(3312);e.exports=function(e){return n(i(e))}},5633:(e,t,r)=>{"use strict";var n=r(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(7224));class SwiperHandlerBase extends i.default{getInitialSlide(){const e=this.getEditSettings();return e.activeItemIndex?e.activeItemIndex-1:0}getSlidesCount(){return this.elements.$slides.length}togglePauseOnHover(e){e?this.elements.$swiperContainer.on({mouseenter:()=>{this.swiper.autoplay.stop()},mouseleave:()=>{this.swiper.autoplay.start()}}):this.elements.$swiperContainer.off("mouseenter mouseleave")}handleKenBurns(){const e=this.getSettings();this.$activeImageBg&&this.$activeImageBg.removeClass(e.classes.kenBurnsActive),this.activeItemIndex=this.swiper?this.swiper.activeIndex:this.getInitialSlide(),this.swiper?this.$activeImageBg=jQuery(this.swiper.slides[this.activeItemIndex]).children("."+e.classes.slideBackground):this.$activeImageBg=jQuery(this.elements.$slides[0]).children("."+e.classes.slideBackgroun
vendor: 4,331 bytes, line 2795
2795d),this.$activeImageBg.addClass(e.classes.kenBurnsActive)}}t.default=SwiperHandlerBase},5724:(e,t,r)=>{"use strict";var n=r(8612),i=r(2347),s=r(6960),o=r(9273),a=r(1091);n({target:"Array",proto:!0,arity:1,forced:r(8473)(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function push(e){var t=i(this),r=s(t),n=arguments.length;a(r+n);for(var c=0;c<n;c++)t[r]=arguments[c],r++;return o(t,r),r}})},5755:(e,t,r)=>{"use strict";var n=r(4762),i=r(2347),s=n({}.hasOwnProperty);e.exports=Object.hasOwn||function hasOwn(e,t){return s(i(e),t)}},5799:(e,t,r)=>{"use strict";var n=r(382),i=r(3896),s=r(5835),o=r(2293),a=r(5599),c=r(3658);t.f=n&&!i?Object.defineProperties:function defineProperties(e,t){o(e);for(var r,n=a(t),i=c(t),l=i.length,u=0;l>u;)s.f(e,r=i[u++],n[r]);return e}},5835:(e,t,r)=>{"use strict";var n=r(382),i=r(1799),s=r(3896),o=r(2293),a=r(3815),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p="enumerable",d="configurable",h="writable";t.f=n?s?function defineProperty(e,t,r){if(o(e),t=a(t),o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&h in r&&!r[h]){var n=u(e,t);n&&n[h]&&(e[t]=r.value,r={configurable:d in r?r[d]:n[d],enumerable:p in r?r[p]:n[p],writable:!1})}return l(e,t,r)}:l:function defineProperty(e,t,r){if(o(e),t=a(t),o(r),i)try{return l(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},5983:e=>{"use strict";e.exports=function(e){return null==e}},6021:(e,t,r)=>{"use strict";var n=r(4815),i=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw new i("Incorrect invocation")}},6029:(e,t,r)=>{"use strict";var n=r(6477),i=r(8473),s=r(5578).String;e.exports=!!Object.getOwnPropertySymbols&&!i(function(){var e=Symbol("symbol detection");return!s(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},6145:(e,t,r)=>{"use strict";var n=r(4338),i=r(1483),s=r(1278),o=r(1)("toStringTag"),a=Object,c="Arguments"===s(function(){return arguments}());e.exports=n?s:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?r:c?s(t):"Object"===(n=s(t))&&i(t.callee)?"Arguments":n}},6211:(e,t,r)=>{"use strict";r(3242)},6477:(e,t,r)=>{"use strict";var n,i,s=r(5578),o=r(9461),a=s.process,c=s.Deno,l=a&&a.versions||c&&c.version,u=l&&l.v8;u&&(i=(n=u.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(i=+n[1]),e.exports=i},6651:(e,t,r)=>{"use strict";var n=r(5599),i=r(3392),s=r(6960),createMethod=function(e){return function(t,r,o){var a=n(t),c=s(a);if(0===c)return!e&&-1;var l,u=i(o,c);if(e&&r!=r){for(;c>u;)if((l=a[u++])!=l)return!0}else for(;c>u;u++)if((e||u in a)&&a[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:createMethod(!0),indexOf:createMethod(!1)}},6665:(e,t,r)=>{"use strict";var n=r(6145),i=r(2564),s=r(5983),o=r(6775),a=r(1)("iterator");e.exports=function(e){if(!s(e))return i(e,a)||i(e,"@@iterator")||o[n(e)]}},6721:(e,t,r)=>{"use strict";var n=r(1807),i=r(2293),s=r(2564);e.exports=function(e,t,r){var o,a;i(e);try{if(!(o=s(e,"return"))){if("throw"===t)throw r;return r}o=n(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw r;if(a)throw o;return i(o),r}},6726:(e,t,r)=>{"use strict";var n=r(5755),i=r(9497),s=r(4961),o=r(5835);e.exports=function(e,t,r){for(var a=i(t),c=o.f,l=s.f,u=0;u<a.length;u++){var p=a[u];n(e,p)||r&&n(r,p)||c(e,p,l(t,p))}}},6742:(e,t,r)=>{"use strict";var n=r(4762),i=r(5755),s=r(5599),o=r(6651).indexOf,a=r(1507),c=n([].push);e.exports=function(e,t){var r,n=s(e),l=0,u=[];for(r in n)!i(a,r)&&i(n,r)&&c(u,r);for(;t.length>l;)i(n,r=t[l++])&&(~o(u,r)||c(u,r));return u}},6775:e=>{"use strict";e.exports={}},6784:e=>{e.exports=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},6960:(e,t,r)=>{"use strict";var n=r(8324);e.exports=function(e){return n(e.length)}},7224:(e,t,r)=>{"use strict";r(5724),r(4846),r(7458),r(6211),r(9655),e.exports=elementorModules.ViewModule.extend({$element:null,editorListeners:null,onElementChange:null,onEditSettingsChange:null,onPageSettingsChange:null,isEdit:null,__c
2795onstruct(e){this.isActive(e)&&(this.$element=e.$element,this.isEdit=this.$element.hasClass("elementor-element-edit-mode"),this.isEdit&&this.addEditorListeners())},isActive:()=>!0,isElementInTheCurrentDocument(){return!!elementorFrontend.isEditMode()&&elementor.documents.currentDocument.id.toString()===this.$element[0].closest(".elementor").dataset.elementorId},findElement(e){var t=this.$element;return t.find(e).filter(function(){return jQuery(this).parent().closest(".elementor-element").is(t)})},getUniqueHandlerID(e,t){return e||(e=this.getModelCID()),t||(t=this.$element),e+t.attr("data-element_type")+this.getConstructorID()},initEditorListeners(){var e=this;if(e.editorListeners=[{event:"element:destroy",to:elementor.channels.data,callback(t){t.cid===e.getModelCID()&&e.onDestroy()}}],e.onElementChange){const t=e.getWidgetType()||e.getElementType();let r="change";"global"!==t&&(r+=":"+t),e.editorListeners.push({event:r,to:elementor.channels.editor,callback(t,r){e.getUniqueHandlerID(r.model.cid,r.$el)===e.getUniqueHandlerID()&&e.onElementChange(t.model.get("name"),t,r)}})}e.onEditSettingsChange&&e.editorListeners.push({event:"change:editSettings",to:elementor.channels.editor,callback(t,r){if(r.model.cid!==e.getModelCID())return;const n=Object.keys(t.changed)[0];e.onEditSettingsChange(n,t.changed[n])}}),["page"].forEach(function(t){var r="on"+t[0].toUpperCase()+t.slice(1)+"SettingsChange";e[r]&&e.editorListeners.push({event:"change",to:elementor.settings[t].model,callback(t){e[r](t.changed)}})})},getEditorListeners(){return this.editorListeners||this.initEditorListeners(),this.editorListeners},addEditorListeners(){var e=this.getUniqueHandlerID();this.getEditorListeners().forEach(function(t){elementorFrontend.addListenerOnce(e,t.event,t.callback,t.to)})},removeEditorListeners(){var e=this.getUniqueHandlerID();this.getEditorListeners().forEach(function(t){elementorFrontend.removeListeners(e,t.event,null,t.to)})},getElementType(){return this.$element.data("element_type")},getWidgetType(){const e=this.$element.data("widget_type");if(e)return e.split(".")[0]},getID(){return this.$element.data("id")},getModelCID(){return this.$element.data("model-cid")},getElementSettings(e){let t={};const r=this.getModelCID();if(this.isEdit&&r){const e=elementorFrontend.config.elements.data[r],n=e.attributes;let i=n.widgetType||n.elType;n.isInner&&(i="inner-"+i);let s=elementorFrontend.config.elements.keys[i];s||(s=elementorFrontend.config.elements.keys[i]=[],jQuery.each(e.controls,(e,t)=>{(t.frontend_available||t.editor_available)&&s.push(e)})),jQuery.each(e.getActiveControls(),function(e){if(-1!==s.indexOf(e)){let r=n[e];r.toJSON&&(r=r.toJSON()),t[e]=r}})}else t=this.$element.data("settings")||{};return this.getItems(t,e)},getEditSettings(e){var t={};return this.isEdit&&(t=elementorFrontend.config.elements.editSettings[this.getModelCID()].attributes),this.getItems(t,e)},getCurrentDeviceSetting(e){return elementorFrontend.getCurrentDeviceSetting(this.getElementSettings(),e)},onInit(){this.isActive(this.getSettings())&&elementorModules.ViewModule.prototype.onInit.apply(this,arguments)},onDestroy(){this.isEdit&&this.removeEditorListeners(),this.unbindEvents&&this.unbindEvents()}})},7255:(e,t,r)=>{"use strict";var n=r(1831);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},7268:(e,t,r)=>{"use strict";var n=r(4762),i=r(1483),s=r(1831),o=n(Function.toString);i(s.inspectSource)||(s.inspectSource=function(e){return o(e)}),e.exports=s.inspectSource},7458:(e,t,r)=>{"use strict";r(1975)},7486:e=>{"use strict";e.exports=function(e,t){var r="function"==typeof Iterator&&Iterator.prototype[e];if(r)try{r.call({next:null},t).next()}catch(e){return!0}}},7611:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);t.f=i?function propertyIsEnumerable(e){var t=n(this,e);return!!t&&t.enumerable}:r},7738:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7914:(e,t,r)=>{"use strict";var n=r(1483),i=r(5835),s=r(169),o=r(2095);e.exports=function(e,t,r,a){a||(a={});var c=a.enumerable,l=void 0!==a.name?a.name:t;if(n(r)&&s(r,l,a),a.global)c?e[t]=r:o(t,r);else{try{a.unsafe?e[t]&&(c=!0):delete e[t]}catch(e){}
2795c?e[t]=r:i.f(e,t,{value:r,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},7955:e=>{"use strict";e.exports=elementorModules.ViewModule.extend({getDefaultSettings:()=>({element:null,direction:elementorFrontend.config.is_rtl?"right":"left",selectors:{container:window},considerScrollbar:!1,cssOutput:"inline"}),getDefaultElements(){return{$element:jQuery(this.getSettings("element"))}},stretch(){const e=this.getSettings();let t;try{t=jQuery(e.selectors.container)}catch(e){}t&&t.length||(t=jQuery(this.getDefaultSettings().selectors.container)),this.reset();var r=this.elements.$element,n=t.innerWidth(),i=r.offset().left,s="fixed"===r.css("position"),o=s?0:i,a=window===t[0];if(!a){var c=t.offset().left;s&&(o=c),i>c&&(o=i-c)}if(e.considerScrollbar&&a){o-=window.innerWidth-n}s||(elementorFrontend.config.is_rtl&&(o=n-(r.outerWidth()+o)),o=-o),e.margin&&(o+=e.margin);var l={};let u=n;e.margin&&(u-=2*e.margin),l.width=u+"px",l[e.direction]=o+"px","variables"!==e.cssOutput?r.css(l):this.applyCssVariables(r,l)},reset(){const e={},t=this.getSettings(),r=this.elements.$element;"variables"!==t.cssOutput?(e.width="",e[t.direction]="",r.css(e)):this.resetCssVariables(r)},applyCssVariables(e,t){e.css("--stretch-width",t.width),t.left?e.css("--stretch-left",t.left):e.css("--stretch-right",t.right)},resetCssVariables(e){e.css({"--stretch-width":"","--stretch-left":"","--stretch-right":""})}})},7958:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseRegistry=void 0,r(4846),r(7458),r(9655),r(4364);t.BaseRegistry=class BaseRegistry{constructor(){this.sections=new Map}register(e){if(!e.key||!e.title)throw new Error("Template type must have key and title");const t=this.get(e.key)||this.formatSection(e);if(e.children)if(t.children){const r=new Map(t.children.map(e=>[e.key,e]));e.children.forEach(e=>{const t=this.formatSection(e);r.set(e.key,t)}),t.children=Array.from(r.values())}else t.children=e.children.map(e=>this.formatSection(e));this.sections.set(e.key,t)}formatSection({children:e,...t}){return{key:t.key,title:t.title,description:t.description||"",useParentDefault:!1!==t.useParentDefault,getInitialState:t.getInitialState||null,component:t.component||null,order:t.order||10,isAvailable:t.isAvailable||(()=>!0),...t}}getAll(){return Array.from(this.sections.values()).filter(e=>e.isAvailable()).map(e=>e.children?{...e,children:[...e.children].sort((e,t)=>e.order-t.order)}:e).sort((e,t)=>e.order-t.order)}get(e){return this.sections.get(e)}}},8120:(e,t,r)=>{"use strict";var n=r(1483),i=r(8761),s=TypeError;e.exports=function(e){if(n(e))return e;throw new s(i(e)+" is not a function")}},8140:(e,t,r)=>{"use strict";var n=r(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(4846),r(6211);var i=n(r(7224));class StretchedElement extends i.default{getStretchedClass(){return"e-stretched"}getStretchSettingName(){return"stretch_element"}getStretchActiveValue(){return"yes"}bindEvents(){const e=this.getUniqueHandlerID();elementorFrontend.addListenerOnce(e,"resize",this.stretch),elementorFrontend.addListenerOnce(e,"sticky:stick",this.stretch,this.$element),elementorFrontend.addListenerOnce(e,"sticky:unstick",this.stretch,this.$element),elementorFrontend.isEditMode()&&(this.onKitChangeStretchContainerChange=this.onKitChangeStretchContainerChange.bind(this),elementor.channels.editor.on("kit:change:stretchContainer",this.onKitChangeStretchContainerChange))}unbindEvents(){elementorFrontend.removeListeners(this.getUniqueHandlerID(),"resize",this.stretch),elementorFrontend.isEditMode()&&elementor.channels.editor.off("kit:change:stretchContainer",this.onKitChangeStretchContainerChange)}isActive(e){return elementorFrontend.isEditMode()||e.$element.hasClass(this.getStretchedClass())}getStretchElementForConfig(e=null){return e?this.$element.find(e):this.$element}getStretchElementConfig(){return{element:this.getStretchElementForConfig(),selectors:{container:this.getStretchContainer()},considerScrollbar:elementorFrontend.isEditMode()&&elementorFrontend.config.is_rtl}}initStretch(){this.stretch=this.stretch.bind(this),this.stretchElement=new elementorModules.frontend.tools.StretchElement(this.getStretchElementConfig())}getStretchContainer(){return elementorFrontend.getKitSettings("stretched_section_container")||window}isStretchSettingEnabled(){return this.getElementSettings(this.getStretchSettingName())===this.getStretchActiveValue()}stretch(){this.isStretchSettingEnabled()&&this.stretchElement.stretch()}onInit(...e){this.isActive(this.getSettings())&&(this.initStretch(),super.onInit(...e),this.stretch())}
2795onElementChange(e){this.getStretchSettingName()===e&&(this.isStretchSettingEnabled()?this.stretch():this.stretchElement.reset())}onKitChangeStretchContainerChange(){this.stretchElement.setSettings("selectors.container",this.getStretchContainer()),this.stretch()}}t.default=StretchedElement},8324:(e,t,r)=>{"use strict";var n=r(3005),i=Math.min;e.exports=function(e){var t=n(e);return t>0?i(t,9007199254740991):0}},8473:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},8612:(e,t,r)=>{"use strict";var n=r(5578),i=r(4961).f,s=r(9037),o=r(7914),a=r(2095),c=r(6726),l=r(8730);e.exports=function(e,t){var r,u,p,d,h,f=e.target,g=e.global,m=e.stat;if(r=g?n:m?n[f]||a(f,{}):n[f]&&n[f].prototype)for(u in t){if(d=t[u],p=e.dontCallGetSet?(h=i(r,u))&&h.value:r[u],!l(g?u:f+(m?".":"#")+u,e.forced)&&void 0!==p){if(typeof d==typeof p)continue;c(d,p)}(e.sham||p&&p.sham)&&s(d,"sham",!0),o(r,u,d,e)}}},8660:(e,t,r)=>{"use strict";var n=r(1807),i=r(5290),s=r(9037),o=r(2313),a=r(1),c=r(4483),l=r(2564),u=r(1851).IteratorPrototype,p=r(5247),d=r(6721),h=r(1983),f=a("toStringTag"),g="IteratorHelper",m="WrapForValidIterator",v="normal",y="throw",w=c.set,createIteratorProxyPrototype=function(e){var t=c.getterFor(e?m:g);return o(i(u),{next:function next(){var r=t(this);if(e)return r.nextHandler();if(r.done)return p(void 0,!0);try{var n=r.nextHandler();return r.returnHandlerResult?n:p(n,r.done)}catch(e){throw r.done=!0,e}},return:function(){var r=t(this),i=r.iterator;if(r.done=!0,e){var s=l(i,"return");return s?n(s,i):p(void 0,!0)}if(r.inner)try{d(r.inner.iterator,v)}catch(e){return d(i,y,e)}if(r.openIters)try{h(r.openIters,v)}catch(e){return d(i,y,e)}return i&&d(i,v),p(void 0,!0)}})},b=createIteratorProxyPrototype(!0),S=createIteratorProxyPrototype(!1);s(S,f,"Iterator Helper"),e.exports=function(e,t,r){var n=function Iterator(n,i){i?(i.iterator=n.iterator,i.next=n.next):i=n,i.type=t?m:g,i.returnHandlerResult=!!r,i.nextHandler=e,i.counter=0,i.done=!1,w(this,i)};return n.prototype=t?b:S,n}},8685:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ForceMethodImplementation=void 0;
2795class ForceMethodImplementation extends Error{constructor(e={},t={}){super(`${e.isStatic?"static ":""}${e.fullName}() should be implemented, please provide '${e.functionName||e.fullName}' functionality.`,t),Object.keys(t).length&&console.error(t),Error.captureStackTrace(this,ForceMethodImplementation)}}t.ForceMethodImplementation=ForceMethodImplementation;t.default=e=>{const t=Error().stack.split("\n")[2].trim(),r=t.startsWith("at new")?"constructor":t.split(" ")[1],n={};if(n.functionName=r,n.fullName=r,n.functionName.includes(".")){const e=n.functionName.split(".");n.className=e[0],n.functionName=e[1]}else n.isStatic=!0;throw new ForceMethodImplementation(n,e)}},8730:(e,t,r)=>{"use strict";var n=r(8473),i=r(1483),s=/#|\.prototype\./,isForced=function(e,t){var r=a[o(e)];return r===l||r!==c&&(i(t)?n(t):!!t)},o=isForced.normalize=function(e){return String(e).replace(s,".").toLowerCase()},a=isForced.data={},c=isForced.NATIVE="N",l=isForced.POLYFILL="P";e.exports=isForced},8761:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},8901:(e,t,r)=>{"use strict";var n=r(2293),i=r(6721);e.exports=function(e,t,r,s){try{return s?t(n(r)[0],r[1]):t(r)}catch(t){i(e,"throw",t)}}},9031:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createGetInitialState=function createGetInitialState(e,t={}){return(r,n)=>{let i=n;if(r.hasOwnProperty("uploadedData")){i=!1;const t=r.uploadedData.manifest.templates,n=elementorAppConfig?.["import-export-customization"]?.exportGroups||{};for(const r in t){if(n[t[r].doc_type]===e){i=!0;break}}}return{enabled:i,...t}}}},9037:(e,t,r)=>{"use strict";var n=r(382),i=r(5835),s=r(7738);e.exports=n?function(e,t,r){return i.f(e,t,s(1,r))}:function(e,t,r){return e[t]=r,e}},9273:(e,t,r)=>{"use strict";var n=r(382),i=r(4914),s=TypeError,o=Object.getOwnPropertyDescriptor,a=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=a?function(e,t){if(i(e)&&!o(e,"length").writable)throw new s("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},9441:(e,t,r)=>{"use strict";var n=r(8473);e.exports=!n(function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype})},9461:(e,t,r)=>{"use strict";var n=r(5578).navigator,i=n&&n.userAgent;e.exports=i?String(i):""},9497:(e,t,r)=>{"use strict";var n=r(1409),i=r(4762),s=r(2278),o=r(4347),a=r(2293),c=i([].concat);e.exports=n("Reflect","ownKeys")||function ownKeys(e){var t=s.f(a(e)),r=o.f;return r?c(t,r(e)):t}},9557:e=>{"use strict";e.exports=!1},9603:(e,t,r)=>{"use strict";var n=r(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(4846),r(6211),r(9655);var i=n(r(5633));class CarouselHandlerBase extends i.default{getDefaultSettings(){return{selectors:{carousel:".swiper",swiperWrapper:".swiper-wrapper",slideContent:".swiper-slide",swiperArrow:".elementor-swiper-button",paginationWrapper:".swiper-pagination",paginationBullet:".swiper-pagination-bullet",paginationBulletWrapper:".swiper-pagination-bullets"}}}getDefaultElements(){const e=this.getSettings("selectors"),t={$swiperContainer:this.$element.find(e.carousel),$swiperWrapper:this.$element.find(e.swiperWrapper),$swiperArrows:this.$element.find(e.swiperArrow),$paginationWrapper:this.$element.find(e.paginationWrapper),$paginationBullets:this.$element.find(e.paginationBullet),$paginationBulletWrapper:this.$element.find(e.paginationBulletWrapper)};return t.$slides=t.$swiperContainer.find(e.slideContent),t}getSwiperSettings(){const e=this.getElementSettings(),t=+e.slides_to_show||3,r=1===t,n=elementorFrontend.config.responsive.activeBreakpoints,i={mobile:1,tablet:r?1:2},s={slidesPerView:t,loop:"yes"===e.infinite,speed:e.speed,handleElementorBreakpoints:!0,breakpoints:{}};let o=t;Object.keys(n).reverse().forEach(t=>{const r=i[t]?i[t]:o;s.breakpoints[n[t].value]={slidesPerView:+e["slides_to_show_"+t]||r,slidesPerGroup:+e["slides_to_scroll_"+t]||1},e.image_spacing_custom&&(s.breakpoints[n[t].value].spaceBetween=this.getSpaceBetween(t)),o=+e["slides_to_show_"+t]||r}),"yes"===e.autoplay&&(s.autoplay={delay:e.autoplay_speed,disableOnInteraction:"yes"===e.pause_on_interaction}),r?(s.effect=e.effect,"fade"===e.effect&&(s.fadeEffect={crossFade:!0})):s.slidesPerGroup=+e.slides_to_scroll||1,e.image_spacing_custom&&(s.spaceBetween=this.getSpaceBetween());const a="arrows"===e.navigation||"both"===e.navigation,c="dots"===e.navigation||"both"===e.navigation||e.pagination;return a&&(s.navigation={prevEl:".elementor-swiper-button-prev",nextEl:".elementor-swiper-button-next"}),c&&(s.pagination={el:`.elementor-element-${this.getID()} .swiper-pagination`,type:e.pagination?e.pagination:"bullets",clickable:!0,renderBullet:(e,t)=>`<span class="${t}" role="button" tabindex="0" data-bullet-index="${e}" aria-label="${elementorFrontend.config.i18n.a11yCarouselPaginationBulletMessage} ${e+1}"></span>`}),"yes"===e.lazyload&&(s.lazy={loadPrevNext:!0,loadPrevNextAmount:1}),s.a11y={enabled:!0,prevSlideMessage:elementorFrontend.config.i18n.a11yCarouselPrevSlideMessage,nextSlideMessage:elementorFrontend.config.i18n.a11yCarouselNextSlideMessage,firstSlideMessage:elementorFrontend.config.i18n.a11yCarouselFirstSlideMessage,lastSlideMessage:elementorFrontend.config.i18n.a11yCarouselLastSlideMessage},s.on={slideChange:()=>{this.a11ySetPaginationTabindex(),this.handleElementHandlers(),this.a11ySetSlideAriaHidden()},init:()=>{this.a11ySetPaginationTabindex(),this.a11ySetSlideAriaHidden("initialisation")}},this.applyOffsetSettings(e,s,t),s}getOffsetWidth(){const e=elementorFrontend.getCurrentDeviceMode();return elementorFrontend.utils.controls.getResponsiveControlValue(this.getElementSettings(),"offset_width","size",e)||0}applyOffsetSettings(e,t,r){const n=e.offset_sides;if(!(elementorFrontend.isEditMode()&&"NestedCarousel"===this.constructor.name)&&n&&"none"!==n)switch(n){case"right":this.forceSliderToShowNextSlideWhenOnLast(t,r),this.addClassToSwiperContainer("offset-right");break;case"left":this.addClassToSwiperContainer("offset-left");break;case"both":this.forceSliderToShowNextSlideWhenOnLast(t,r),this.addClassToSwiperContainer("offset-both")}}forceSliderToShowNextSlideWhenOnLast(e,t){e.slidesPerView=t+.001}addClassToSwiperContainer(e){this.getDefaultElements().$swiperContainer[0].classList.add(e)}async onInit(...e){if(super.onInit(...e),!this.elements.$swiperContainer.length||2>this.elements.$slides.length)return;await this.initSwiper();"yes"===this.getElementSettings().pause_on_hover&&this.togglePauseOnHover(!0)}async initSwiper(){const e=elementorFrontend.utils.swiper;
2795this.swiper=await new e(this.elements.$swiperContainer,this.getSwiperSettings()),this.elements.$swiperContainer.data("swiper",this.swiper)}bindEvents(){this.elements.$swiperArrows.on("keydown",this.onDirectionArrowKeydown.bind(this)),this.elements.$paginationWrapper.on("keydown",".swiper-pagination-bullet",this.onDirectionArrowKeydown.bind(this)),this.elements.$swiperContainer.on("keydown",".swiper-slide",this.onDirectionArrowKeydown.bind(this)),this.$element.find(":focusable").on("focus",this.onFocusDisableAutoplay.bind(this)),elementorFrontend.elements.$window.on("resize",this.getSwiperSettings.bind(this))}unbindEvents(){this.elements.$swiperArrows.off(),this.elements.$paginationWrapper.off(),this.elements.$swiperContainer.off(),this.$element.find(":focusable").off(),elementorFrontend.elements.$window.off("resize")}onDirectionArrowKeydown(e){const t=elementorFrontend.config.is_rtl,r=e.originalEvent.code,n=t?"ArrowLeft":"ArrowRight";if(!(-1!==["ArrowLeft","ArrowRight"].indexOf(r)))return!0;(t?"ArrowRight":"ArrowLeft")===r?this.swiper.slidePrev():n===r&&this.swiper.slideNext()}onFocusDisableAutoplay(){this.swiper.autoplay.stop()}updateSwiperOption(e){const t=this.getElementSettings()[e],r=this.swiper.params;switch(e){case"autoplay_speed":r.autoplay.delay=t;break;case"speed":r.speed=t}this.swiper.update()}getChangeableProperties(){return{pause_on_hover:"pauseOnHover",autoplay_speed:"delay",speed:"speed",arrows_position:"arrows_position"}}onElementChange(e){if(0===e.indexOf("image_spacing_custom"))return void this.updateSpaceBetween(e);if(this.getChangeableProperties()[e])if("pause_on_hover"===e){const e=this.getElementSettings("pause_on_hover");this.togglePauseOnHover("yes"===e)}else this.updateSwiperOption(e)}onEditSettingsChange(e){"activeItemIndex"===e&&this.swiper.slideToLoop(this.getEditSettings("activeItemIndex")-1)}getSpaceBetween(e=null){const t=elementorFrontend.utils.controls.getResponsiveControlValue(this.getElementSettings(),"image_spacing_custom","size",e);return Number(t)||0}updateSpaceBetween(e){const t=e.match("image_spacing_custom_(.*)"),r=t?t[1]:"desktop",n=this.getSpaceBetween(r);"desktop"!==r&&(this.swiper.params.breakpoints[elementorFrontend.config.responsive.activeBreakpoints[r].value].spaceBetween=n),this.swiper.params.spaceBetween=n,this.swiper.update()}getPaginationBullets(e="array"){const t=this.$element.find(this.getSettings("selectors").paginationBullet);return"array"===e?Array.from(t):t}a11ySetPaginationTabindex(){const e=this.swiper?.params?.pagination.bulletClass,t=this.swiper?.params?.pagination.bulletActiveClass;this.getPaginationBullets().forEach(e=>{e.classList?.contains(t)||e.removeAttribute("tabindex")});const r="ArrowLeft"===event?.code||"ArrowRight"===event?.code;event?.target?.classList?.contains(e)&&r&&this.$element.find(`.${t}`).trigger("focus")}getSwiperWrapperTranformXValue(){let e=this.elements.$swiperWrapper[0]?.style.transform;return e=e.replace("translate3d(",""),e=e.split(","),e=parseInt(e[0].replace("px","")),e||0}a11ySetSlideAriaHidden(e=""){if("number"!=typeof("initialisation"===e?0:this.swiper?.activeIndex))return;const t=this.getSwiperWrapperTranformXValue(),r=this.elements.$swiperWrapper[0].clientWidth;this.elements.$swiperContainer.find(this.getSettings("selectors").slideContent).each((e,n)=>{0<=n.offsetLeft+t&&r>n.offsetLeft+t?(n.removeAttribute("aria-hidden"),n.removeAttribute("inert")):(n.setAttribute("aria-hidden",!0),n.setAttribute("inert",""))})}handleElementHandlers(){}}
2795t.default=CarouselHandlerBase},9655:(e,t,r)=>{"use strict";r(9930)},9930:(e,t,r)=>{"use strict";var n=r(8612),i=r(1807),s=r(1506),o=r(8120),a=r(2293),c=r(41),l=r(6721),u=r(5267)("forEach",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:u},{forEach:function forEach(e){a(this);try{o(e)}catch(e){l(this,"throw",e)}if(u)return i(u,this,e);var t=c(this),r=0;s(t,function(t){e(t,r++)},{IS_RECORD:!0})}})}},e=>{var t;t=4946,e(e.s=t)}]); 2796 2797 2798moment.updateLocale( 'en_US', {"months":["January","February","March","April","May","June","July","August","September","October","November","December"],"monthsShort":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"weekdays":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"weekdaysShort":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"week":{"dow":1},"longDateFormat":{"LT":"g:i a","LTS":null,"L":null,"LL":"F j, Y","LLL":"F j, Y g:i a","LLLL":null}} ); 2799 2800} 2801catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://labadibeachhotelgh.com/wp-content/plugins/elementor/assets/js/frontend-modules.min.js\n- Error message: "+ e.message);} 2802 2803 2804 var wcBlocksMiddlewareConfig = { 2805 storeApiNonce: '048b8c78f0', 2806 wcStoreApiNonceTimestamp: '1790786511' 2807 }; 2808 2809/*! jQuery UI - v1.13.3 - 2024-04-26 2810* https://jqueryui.com 2811* Includes: widget.js, position.js, data.js, disable-selection.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js, focusable.js, form-reset-mixin.js, jquery-patch.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/draggable.js, widgets/droppable.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/resizable.js, widgets/selectable.js, widgets/selectmenu.js, widgets/slider.js, widgets/sortable.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js 2812* Copyright jQuery Foundation and other contributors; Licensed MIT */ 2813!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(x){"use strict";var t,e,i,n,W,C,o,s,r,l,a,h,u;function E(t,e,i){return[parseFloat(t[0])*(a.test(t[0])?e/100:1),parseFloat(t[1])*(a.test(t[1])?i/100:1)]}function L(t,e){return parseInt(x.css(t,e),10)||0}function N(t){return null!=t&&t===t.window}x.ui=x.ui||{},x.ui.version="1.13.3", 2814/*! 2815 * jQuery UI :data 1.13.3 2816 * https://jqueryui.com 2817 * 2818 * Copyright OpenJS Foundation and other contributors 2819 * Released under the MIT license. 2820 * https://jquery.org/license 2821 */ 2822x.extend(x.expr.pseudos,{data:x.expr.createPseudo?x.expr.createPseudo(function(e){return function(t){return!!x.data(t,e)}}):function(t,e,i){return!!x.data(t,i[3])}}), 2823/*! 2824 * jQuery UI Disable Selection 1.13.3 2825 * https://jqueryui.com 2826 * 2827 * Copyright OpenJS Foundation and other contributors 2828 * Released under the MIT license. 2829 * https://jquery.org/license 2830 */ 2831x.fn.extend({disableSelection:(t="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}}), 2832/*! 2833 * jQuery UI Focusable 1.13.3 2834 * https://jqueryui.com 2835 * 2836 * Copyright OpenJS Foundation and other contributors 2837 * Released under the MIT license. 2838 * https://jquery.org/license 2839 */ 2840x.ui.focusable=function(t,e){var i,n,o,s=t.nodeName.toLowerCase();return"area"===s?(o=(i=t.parentNode).name,!(!t.href||!o||"map"!==i.nodeName.toLowerCase())&&0<(i=x("img[usemap='#"+o+"']")).length&&i.is(":visible")):(/^(input|select|textarea|button|object)$/.test(s)?(n=!t.disabled)&&(o=x(t).closest("fieldset")[0])&&(n=!o.disabled):n="a"===s&&t.href||e,n&&x(t).is(":visible")&&function(t){var e=t.css("visibility");for(;"inherit"===e;)t=t.parent(),e=t.css("visibility");return"visible"===e}(x(t)))},x.extend(x.expr.pseudos,{focusable:function(t){return x.ui.focusable(t,null!=x.attr(t,"tabindex"))}}),x.fn._form=function(){return"string"==typeof this[0].form?this.closest("form"):x(this[0].form)}, 2841/*! 2842 * jQuery UI Form Reset Mixin 1.13.3 2843 * https://jqueryui.com 2844 * 2845 * Copyright OpenJS Foundation and other contributors 2846 * Released under the MIT license. 2847 * https://jquery.org/license 2848 */ 2849x.ui.formResetMixin={_formResetHandler:function(){var e=x(this);setTimeout(function(){var t=e.data("ui-form-reset-instances");x.each(t,function(){this.refresh()})})},_bindFormResetHandler:function(){var t;this.form=this.element._form(),this.form.length&&((t=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t))},_unbindFormResetHandler:function(){var t;this.form.length&&((t=this.form.data("ui-form-reset-instances")).splice(
vendor: 18,244 bytes, lines 2849-2930
2849x.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}},x.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()), 2850/*! 2851 * jQuery UI Support for jQuery core 1.8.x and newer 1.13.3 2852 * https://jqueryui.com 2853 * 2854 * Copyright OpenJS Foundation and other contributors 2855 * Released under the MIT license. 2856 * https://jquery.org/license 2857 * 2858 */ 2859x.expr.pseudos||(x.expr.pseudos=x.expr[":"]),x.uniqueSort||(x.uniqueSort=x.unique),x.escapeSelector||(e=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,i=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},x.escapeSelector=function(t){return(t+"").replace(e,i)}),x.fn.even&&x.fn.odd||x.fn.extend({even:function(){return this.filter(function(t){return t%2==0})},odd:function(){return this.filter(function(t){return t%2==1})}}), 2860/*! 2861 * jQuery UI Keycode 1.13.3 2862 * https://jqueryui.com 2863 * 2864 * Copyright OpenJS Foundation and other contributors 2865 * Released under the MIT license. 2866 * https://jquery.org/license 2867 */ 2868x.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}, 2869/*! 2870 * jQuery UI Labels 1.13.3 2871 * https://jqueryui.com 2872 * 2873 * Copyright OpenJS Foundation and other contributors 2874 * Released under the MIT license. 2875 * https://jquery.org/license 2876 */ 2877x.fn.labels=function(){var t,e,i;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(e=this.eq(0).parents("label"),(t=this.attr("id"))&&(i=(i=this.eq(0).parents().last()).add((i.length?i:this).siblings()),t="label[for='"+x.escapeSelector(t)+"']",e=e.add(i.find(t).addBack(t))),this.pushStack(e)):this.pushStack([])},x.ui.plugin={add:function(t,e,i){var n,o=x.ui[t].prototype;for(n in i)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([e,i[n]])},call:function(t,e,i,n){var o,s=t.plugins[e];if(s&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(o=0;o<s.length;o++)t.options[s[o][0]]&&s[o][1].apply(t.element,i)}}, 2878/*! 2879 * jQuery UI Position 1.13.3 2880 * https://jqueryui.com 2881 * 2882 * Copyright OpenJS Foundation and other contributors 2883 * Released under the MIT license. 2884 * https://jquery.org/license 2885 * 2886 * https://api.jqueryui.com/position/ 2887 */ 2888W=Math.max,C=Math.abs,o=/left|center|right/,s=/top|center|bottom/,r=/[\+\-]\d+(\.[\d]+)?%?/,l=/^\w+/,a=/%$/,h=x.fn.position,x.position={scrollbarWidth:function(){var t,e,i;return void 0!==n?n:(i=(e=x("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>")).children()[0],x("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),n=t-i)},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.width<t.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight?x.position.scrollbarWidth():0,height:e?x.position.scrollbarWidth():0}},getWithinInfo:function(t){var e=x(t||window),i=N(e[0]),n=!!e[0]&&9===e[0].nodeType;return{element:e,isWindow:i,isDocument:n,offset:!i&&!n?x(t).offset():{left:0,top:0},scrollLeft:e.scrollLeft(),scrollTop:e.scrollTop(),width:e.outerWidth(),height:e.outerHeight()}}},x.fn.position=function(f){var c,d,p,g,m,v,y,w,b,_,t,e;return f&&f.of?(v="string"==typeof(f=x.extend({},f)).of?x(document).find(f.of):x(f.of),y=x.position.getWithinInfo(f.within),w=x.position.getScrollInfo(y),b=(f.collision||"flip").split(" "),_={},e=9===(e=(t=v)[0]).nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:N(e)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:e.preventDefault?{width:0,height:0,offset:{top:e.pageY,left:e.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()},v[0].preventDefault&&(f.at="left top"),d=e.width,p=e.height,m=x.extend({},g=e.offset),x.each(["my","at"],function(){var t,e,i=(f[this]||"").split(" ");(i=1===i.length?o.test(i[0])?i.concat(["center"]):s.test(i[0])?["center"].concat(i):["center","center"]:i)[0]=o.test(i[0])?i[0]:"center",i[1]=s.test(i[1])?i[1]:"center",t=r.exec(i[0]),e=r.exec(i[1]),_[this]=[t?t[0]:0,e?e[0]:0],f[this]=[l.exec(i[0])[0],l.exec(i[1])[0]]}),1===b.length&&(b[1]=b[0]),"right"===f.at[0]?m.left+=d:"center"===f.at[0]&&(m.left+=d/2),"bottom"===f.at[1]?m.top+=p:"center"===f.at[1]&&(m.top+=p/2),c=E(_.at,d,p),m.left+=c[0],m.top+=c[1],this.each(function(){var i,t,r=x(this),l=r.outerWidth(),a=r.outerHeight(),e=L(this,"marginLeft"),n=L(this,"marginTop"),o=l+e+L(this,"marginRight")+w.width,s=a+n+L(this,"marginBottom")+w.height,h=x.extend({},m),u=E(_.my,r.outerWidth(),r.outerHeight());"right"===f.my[0]?h.left-=l:"center"===f.my[0]&&(h.left-=l/2),"bottom"===f.my[1]?h.top-=a:"center"===f.my[1]&&(h.top-=a/2),h.left+=u[0],h.top+=u[1],i={marginLeft:e,marginTop:n},x.each(["left","top"],function(t,e){x.ui.position[b[t]]&&x.ui.position[b[t]][e](h,{targetWidth:d,targetHeight:p,elemWidth:l,elemHeight:a,collisionPosition:i,collisionWidth:o,collisionHeight:s,offset:[c[0]+u[0],c[1]+u[1]],my:f.my,at:f.at,within:y,elem:r})}),f.using&&(t=function(t){var e=g.left-h.left,i=e+d-l,n=g.top-h.top,o=n+p-a,s={target:{element:v,left:g.left,top:g.top,width:d,height:p},element:{element:r,left:h.left,top:h.top,width:l,height:a},horizontal:i<0?"left":0<e?"right":"center",vertical:o<0?"top":0<n?"bottom":"middle"};d<l&&C(e+i)<d&&(s.horizontal="center"),p<a&&C(n+o)<p&&(s.vertical="middle"),W(C(e),C(i))>W(C(n),C(o))?s.important="horizontal":s.important="vertical",f.using.call(this,t,s)}),r.offset(x.extend(h,{using:t}))})):h.apply(this,arguments)},x.ui.position={fit:{left:function(t,e){var i,n=e.within,o=n.isWindow?n.scrollLeft:n.offset.left,n=n.width,s=t.left-e.collisionPosition.marginLeft,r=o-s,l=s+e.collisionWidth-n-o;n<e.collisionWidth?0<r&&l<=0?(i=t.left+r+e.collisionWidth-n-o,t.left+=r-i):t.left=!(0<l&&r<=0)&&l<r?o+n-e.collisionWidth:o:0<r?t.left+=r:0<l?t.left-=l:t.left=W(t.left-s,t.left)},top:function(t,e){var i,n=e.within,n=n.isWindow?n.scrollTop:n.offset.top,o=e.within.height,s=t.top-e.collisionPosition.marginTop,r=n-s,l=s+e.collisionHeight-o-n;o<e.collisionHeight?0<r&&l<=0?(i=t.top+r+e.collisionHeight-o-n,t.top+=r-i):t.top=!(0<l&&r<=0)&&l<r?n+o-e.collisionHeight:n:0<r?t.top+=r:0<l?t.top-=l:t.top=W(t.top-s,t.top)}},flip:{left:function(t,e){var i=e.within,n=i.offset.left+i.scrollLeft,o=i.width,i=i.isWindow?i.scrollLeft:i.offset.left,s=t.left-e.collisionPosition.marginLeft,r=s-i,s=s+e.collisionWidth-o-i,l="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,a="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,h=-2*e.offset[0];r<0?((o=t.left+l+a+h+e.collisionWidth-o-n)<0||o<C(r))&&(t.left+=l+a+h):0<s&&(0<(n=t.left-e.collisionPosition.marginLeft+l+a+h-i)||C(n)<s)&&(t.left+=l+a+h)},top:function(t,e){var i=e.within,n=i.offset.top+i.scrollTop,o=i.height,i=i.isWindow?i.scrollTop:i.offset.top,s=t.top-e.collisionPosition.marginTop,r=s-i,s=s+e.collisionHeight-o-i,l="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,a="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,h=-2*e.offset[1];r<0?((o=t.top+l+a+h+e.collisionHeight-o-n)<0||o<C(r))&&(t.top+=l+a+h):0<s&&(0<(n=t.top-e.collisionPosition.marginTop+l+a+h-i)||C(n)<s)&&(t.top+=l+a+h)}},flipfit:{left:function(){x.ui.position.flip.left.apply(this,arguments),x.ui.position.fit.left.apply(this,arguments)},top:function(){x.ui.position.flip.top.apply(this,arguments),x.ui.position.fit.top.apply(this,arguments)}}},x.ui.safeActiveElement=function(e){var i;try{i=e.activeElement}catch(t){i=e.body}return i=(i=i||e.body).nodeName?i:e.body},x.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&x(t).trigger("blur")}, 2889/*! 2890 * jQuery UI Scroll Parent 1.13.3 2891 * https://jqueryui.com 2892 * 2893 * Copyright OpenJS Foundation and other contributors 2894 * Released under the MIT license. 2895 * https://jquery.org/license 2896 */ 2897x.fn.scrollParent=function(t){var e=this.css("position"),i="absolute"===e,n=t?/(auto|scroll|hidden)/:/(auto|scroll)/,t=this.parents().filter(function(){var t=x(this);return(!i||"static"!==t.css("position"))&&n.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&t.length?t:x(this[0].ownerDocument||document)}, 2898/*! 2899 * jQuery UI Tabbable 1.13.3 2900 * https://jqueryui.com 2901 * 2902 * Copyright OpenJS Foundation and other contributors 2903 * Released under the MIT license. 2904 * https://jquery.org/license 2905 */ 2906x.extend(x.expr.pseudos,{tabbable:function(t){var e=x.attr(t,"tabindex"),i=null!=e;return(!i||0<=e)&&x.ui.focusable(t,i)}}), 2907/*! 2908 * jQuery UI Unique ID 1.13.3 2909 * https://jqueryui.com 2910 * 2911 * Copyright OpenJS Foundation and other contributors 2912 * Released under the MIT license. 2913 * https://jquery.org/license 2914 */ 2915x.fn.extend({uniqueId:(u=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++u)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&x(this).removeAttr("id")})}}); 2916/*! 2917 * jQuery UI Widget 1.13.3 2918 * https://jqueryui.com 2919 * 2920 * Copyright OpenJS Foundation and other contributors 2921 * Released under the MIT license. 2922 * https://jquery.org/license 2923 */ 2924var f,c=0,d=Array.prototype.hasOwnProperty,p=Array.prototype.slice;x.cleanData=(f=x.cleanData,function(t){for(var e,i,n=0;null!=(i=t[n]);n++)(e=x._data(i,"events"))&&e.remove&&x(i).triggerHandler("remove");f(t)}),x.widget=function(t,i,e){var n,o,s,r={},l=t.split(".")[0],a=l+"-"+(t=t.split(".")[1]);return e||(e=i,i=x.Widget),Array.isArray(e)&&(e=x.extend.apply(null,[{}].concat(e))),x.expr.pseudos[a.toLowerCase()]=function(t){return!!x.data(t,a)},x[l]=x[l]||{},n=x[l][t],o=x[l][t]=function(t,e){if(!this||!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},x.extend(o,n,{version:e.version,_proto:x.extend({},e),_childConstructors:[]}),(s=new i).options=x.widget.extend({},s.options),x.each(e,function(e,n){function o(){return i.prototype[e].apply(this,arguments)}function s(t){return i.prototype[e].apply(this,t)}r[e]="function"!=typeof n?n:function(){var t,e=this._super,i=this._superApply;return this._super=o,this._superApply=s,t=n.apply(this,arguments),this._super=e,this._superApply=i,t}}),o.prototype=x.widget.extend(s,{widgetEventPrefix:n&&s.widgetEventPrefix||t},r,{constructor:o,namespace:l,widgetName:t,widgetFullName:a}),n?(x.each(n._childConstructors,function(t,e){var i=e.prototype;x.widget(i.namespace+"."+i.widgetName,o,e._proto)}),delete n._childConstructors):i._childConstructors.push(o),x.widget.bridge(t,o),o},x.widget.extend=function(t){for(var e,i,n=p.call(arguments,1),o=0,s=n.length;o<s;o++)for(e in n[o])i=n[o][e],d.call(n[o],e)&&void 0!==i&&(x.isPlainObject(i)?t[e]=x.isPlainObject(t[e])?x.widget.extend({},t[e],i):x.widget.extend({},i):t[e]=i);return t},x.widget.bridge=function(s,e){var r=e.prototype.widgetFullName||s;x.fn[s]=function(i){var t="string"==typeof i,n=p.call(arguments,1),o=this;return t?this.length||"instance"!==i?this.each(function(){var t,e=x.data(this,r);return"instance"===i?(o=e,!1):e?"function"!=typeof e[i]||"_"===i.charAt(0)?x.error("no such method '"+i+"' for "+s+" widget instance"):(t=e[i].apply(e,n))!==e&&void 0!==t?(o=t&&t.jquery?o.pushStack(t.get()):t,!1):void 0:x.error("cannot call methods on "+s+" prior to initialization; attempted to call method '"+i+"'")}):o=void 0:(n.length&&(i=x.widget.extend.apply(null,[i].concat(n))),this.each(function(){var t=x.data(this,r);t?(t.option(i||{}),t._init&&t._init()):x.data(this,r,new e(i,this))})),o}},x.Widget=function(){},x.Widget._childConstructors=[],x.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=x(e||this.defaultElement||this)[0],this.element=x(e),this.uuid=c++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=x(),this.hoverable=x(),this.focusable=x(),this.classesElementLookup={},e!==this&&(x.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=x(e.style?e.ownerDocument:e.document||e),this.window=x(this.document[0].defaultView||this.document[0].parentWindow)),this.options=x.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:x.noop,_create:x.noop,_init:x.noop,destroy:function(){var i=this;this._destroy(),x.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:x.noop,widget:function(){return this.element},option:function(t,e){var i,n,o,s=t;if(0===arguments.length)return x.widget.extend({},this.options);if("string"==typeof t)if(s={},t=(i=t.split(".")).shift(),i.length){for(n=s[t]=x.widget.extend({},this.options[t]),o=0;o<i.length-1;o++)n[i[o]]=n[i[o]]||{},n=n[i[o]];if(t=i.pop(),1===arguments.length)return void 0===n[t]?null:n[t];n[t]=e}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];s[t]=e}return this._setOptions(s),this},_setOptions:function(t){for(var e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(t){var e,i,n;for(e in t)n=this.classesElementLookup[e],t[e]!==this.options.classes[e]&&n&&n.length&&(i=x(n.get()),this._removeClass(n,e),i.addClass(this._classes({element:i,keys:e,classes:t,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(o){var s=[],r=this;function t(t,e){for(var i,n=0;n<t.length;n++)i=r.classesElementLookup[t[n]]||x(),i=o.add?(function(){var i=[];o.element.each(function(t,e){x.map(r.classesElementLookup,function(t){return t}).some(function(t){return t.is(e)})||i.push(e)}),r._on(x(i),{remove:"_untrackClassesElement"})}(),x(x.uniqueSort(i.get().concat(o.element.get())))):x(i.not(o.element).get()),r.classesElementLookup[t[n]]=i,s.push(t[n]),e&&o.classes[t[n]]&&s.push(o.classes[t[n]])}return(o=x.extend({element:this.element,classes:this.options.classes||{}},o)).keys&&t(o.keys.match(/\S+/g)||[],!0),o.extra&&t(o.extra.match(/\S+/g)||[]),s.join(" ")},_untrackClassesElement:function(i){var n=this;x.each(n.classesElementLookup,function(t,e){-1!==x.inArray(i.target,e)&&(n.classesElementLookup[t]=x(e.not(i.target).get()))}),this._off(x(i.target))},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,n){var o="string"==typeof t||null===t,e={extra:o?e:i,keys:o?t:e,element:o?this.element:t,add:n="boolean"==typeof n?n:i};return e.element.toggleClass(this._classes(e),n),this},_on:function(o,s,t){var r,l=this;"boolean"!=typeof o&&(t=s,s=o,o=!1),t?(s=r=x(s),this.bindings=this.bindings.add(s)):(t=s,s=this.element,r=this.widget()),x.each(t,function(t,e){function i(){if(o||!0!==l.options.disabled&&!x(this).hasClass("ui-state-disabled"))return("string"==typeof e?l[e]:e).apply(l,arguments)}"string"!=typeof e&&(i.guid=e.guid=e.guid||i.guid||x.guid++);var t=t.match(/^([\w:-]*)\s*(.*)$/),n=t[1]+l.eventNamespace,t=t[2];t?r.on(n,t,i):s.on(n,i)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(e),this.bindings=x(this.bindings.not(t).get()),this.focusable=x(this.focusable.not(t).get()),this.hoverable=x(this.hoverable.not(t).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(x(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(x(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,i){var n,o,s=this.options[t];if(i=i||{},(e=x.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],o=e.originalEvent)for(n in o)n in e||(e[n]=o[n]);return this.element.trigger(e,i),!("function"==typeof s&&!1===s.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},x.each({show:"fadeIn",hide:"fadeOut"},function(s,r){x.Widget.prototype["_"+s]=function(e,t,i){var n,o=(t="string"==typeof t?{effect:t}:t)?!0!==t&&"number"!=typeof t&&t.effect||r:s;"number"==typeof(t=t||{})?t={duration:t}:!0===t&&(t={}),n=!x.isEmptyObject(t),t.complete=i,t.delay&&e.delay(t.delay),n&&x.effects&&x.effects.effect[o]?e[s](t):o!==s&&e[o]?e[o](t.duration,t.easing,i):e.queue(function(t){x(this)[s](),i&&i.call(e[0]),t()})}})}); 2925 2926 2927moment.updateLocale( 'en_US', {"months":["January","February","March","April","May","June","July","August","September","October","November","December"],"monthsShort":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"weekdays":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"weekdaysShort":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"week":{"dow":1},"longDateFormat":{"LT":"g:i a","LTS":null,"L":null,"LL":"F j, Y","LLL":"F j, Y g:i a","LLLL":null}} ); 2928 2929} 2930catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://labadibeachhotelgh.com/wp-includes/js/jquery/ui/core.min.js\n- Error message: "+ e.message);}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.