@builder.io/sdk-vue 5.4.1 → 5.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/{awaiter-B8s77WBH.js → awaiter-Y7PQyi6v.js} +1 -1
- package/lib/browser/{awaiter-4W3WT96K.cjs → awaiter-dHA6AJCX.cjs} +1 -1
- package/lib/browser/{block-wrapper-7JoIxDbQ.cjs → block-wrapper-qLLDWPpH.cjs} +1 -1
- package/lib/browser/{block-wrapper-kW5g4Okp.js → block-wrapper-tanzST5K.js} +3 -3
- package/lib/browser/{component-ref-4Utffff4.cjs → component-ref--8Xo0eru.cjs} +1 -1
- package/lib/browser/{component-ref-b7ywwGcW.js → component-ref-aA9EUnWU.js} +4 -4
- package/lib/browser/components/content-variants/inlined-fns.d.ts +1 -1
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{get-block-properties-89n-r4Af.cjs → get-block-properties--kuQ2jHl.cjs} +1 -1
- package/lib/browser/{get-block-properties-Y6tHbrsL.js → get-block-properties-Slh1yFIO.js} +1 -1
- package/lib/browser/{index-ikowBLdB.js → index-94HnK8k2.js} +16 -12
- package/lib/browser/{index-6jB0_2he.cjs → index-lIMMbjkW.cjs} +9 -9
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{live-edit-3wlrF5Sa.cjs → live-edit-IiNcdkxk.cjs} +1 -1
- package/lib/browser/{live-edit-OfF9nBpT.js → live-edit-xzOoYzhl.js} +1 -1
- package/lib/browser/{repeated-block-fVyfF5-2.js → repeated-block-2K9I8Wm-.js} +2 -2
- package/lib/browser/{repeated-block-mH_DZ94i.cjs → repeated-block-7wMvv6Dw.cjs} +1 -1
- package/lib/browser/{style-wrapper-8rqiq_70.js → style-wrapper-C7yRsoDq.js} +1 -1
- package/lib/browser/{style-wrapper-wQeSi9uI.cjs → style-wrapper-OlwFiSMB.cjs} +1 -1
- package/lib/edge/{awaiter--AIlZV5A.js → awaiter-74eowwGt.js} +1 -1
- package/lib/edge/{awaiter-o_usBqsR.cjs → awaiter-fRxc54AZ.cjs} +1 -1
- package/lib/{node/block-wrapper-nPZjqj5H.cjs → edge/block-wrapper-B5BJISjx.cjs} +1 -1
- package/lib/edge/{block-wrapper-C3hvVlZR.js → block-wrapper-DLiZnpc5.js} +3 -3
- package/lib/edge/{component-ref-RH-KNtol.cjs → component-ref-Kok-pAOt.cjs} +1 -1
- package/lib/edge/{component-ref-palC2iTk.js → component-ref-Po30Jz7c.js} +4 -4
- package/lib/edge/components/content-variants/inlined-fns.d.ts +1 -1
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/{get-block-properties-NK3aSNeI.cjs → get-block-properties-s0HfaFAz.cjs} +1 -1
- package/lib/edge/{get-block-properties-J0RzfSzL.js → get-block-properties-uEWmkpXU.js} +1 -1
- package/lib/edge/{index-Mb5Ji_3B.cjs → index-Nd4Mq5NZ.cjs} +5 -5
- package/lib/edge/{index-Rfy62Wro.js → index-oUrb-PAc.js} +16 -12
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/{node/live-edit-u-OEPKCw.js → edge/live-edit-fVd_ug7o.js} +1 -1
- package/lib/{node/live-edit-QgZv9WDZ.cjs → edge/live-edit-s44cI_k-.cjs} +1 -1
- package/lib/edge/{repeated-block-_kq2y3Kn.js → repeated-block-Ejv18P9i.js} +2 -2
- package/lib/edge/{repeated-block-tuEDHoSp.cjs → repeated-block-kYllzesL.cjs} +1 -1
- package/lib/edge/{style-wrapper-r8zHhlTM.cjs → style-wrapper-1RJACAmT.cjs} +1 -1
- package/lib/edge/{style-wrapper-OSOobwM9.js → style-wrapper-7J29CqBV.js} +1 -1
- package/lib/node/{awaiter-y38jjnBK.cjs → awaiter-HlIEMqL2.cjs} +1 -1
- package/lib/node/{awaiter-fR3-KaXu.js → awaiter-SBbqkqGS.js} +1 -1
- package/lib/{edge/block-wrapper-f0WB40t8.cjs → node/block-wrapper-CxABGooQ.cjs} +1 -1
- package/lib/node/{block-wrapper-ofgM0xH0.js → block-wrapper-RbIX1_FJ.js} +3 -3
- package/lib/node/{component-ref-COeITsvM.js → component-ref-36nEcDJg.js} +5 -5
- package/lib/node/{component-ref-WO74XtUa.cjs → component-ref-gZgBfl3C.cjs} +1 -1
- package/lib/node/components/content-variants/inlined-fns.d.ts +1 -1
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/{get-block-properties-UHO1OvdN.cjs → get-block-properties--P_kIEc4.cjs} +1 -1
- package/lib/node/{get-block-properties-JDRIQ736.js → get-block-properties-_gI9Xz9P.js} +2 -2
- package/lib/node/{index-TDsy_Sk9.cjs → index-jza5cPNQ.cjs} +13 -13
- package/lib/node/{index-_L3VFXAv.js → index-zO0b5of_.js} +16 -12
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +1 -1
- package/lib/{edge/live-edit-mAeB4Uu2.js → node/live-edit-5hkdZt2p.js} +1 -1
- package/lib/{edge/live-edit-FXVlWLQR.cjs → node/live-edit-Csjy-Smn.cjs} +1 -1
- package/lib/node/{repeated-block--LS-nlbL.cjs → repeated-block-BzgNegIW.cjs} +1 -1
- package/lib/node/{repeated-block-rhmN1ohE.js → repeated-block-s2MfIPGD.js} +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-MVlZh-76.cjs → should-force-browser-runtime-in-node-iaCUWBcy.cjs} +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-CwJRQBSu.js → should-force-browser-runtime-in-node-vgbSWZcY.js} +1 -1
- package/lib/node/{style-wrapper-qHENiLRx.js → style-wrapper-cn8kiAX7.js} +2 -2
- package/lib/node/{style-wrapper-oChSWVYu.cjs → style-wrapper-wvi8GKDA.cjs} +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const s=require("vue"),hi=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),gi=e=>typeof e=="string"&&hi.has(e.toLowerCase());function ne(e={},t,n){const r={};for(const o in e){if(!e[o]||n&&!o.startsWith(t))continue;const i=n?o.replace(t,""):o;r[i]=e[o]}return r}const yi=s.defineComponent({name:"dynamic-renderer",props:["TagName","attributes","actionAttributes"],data(){return{isEmptyElement:gi}}}),$=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};function bi(e,t,n,r,o,i){return e.isEmptyElement(e.TagName)?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(e.TagName),s.mergeProps({key:1},e.attributes,s.toHandlers(e.actionAttributes)),null,16)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[typeof e.TagName=="string"?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(e.TagName),s.mergeProps({key:0},e.attributes,s.toHandlers(e.actionAttributes)),{default:s.withCtx(()=>[s.renderSlot(e.$slots,"default")]),_:3},16)):(s.openBlock(),s.createBlock(s.resolveDynamicComponent(e.TagName),s.mergeProps({key:1},e.attributes,s.toHandlers(e.actionAttributes)),{default:s.withCtx(()=>[s.renderSlot(e.$slots,"default")]),_:3},16))],64))}const vn=$(yi,[["render",bi]]),vi=Object.freeze(Object.defineProperty({__proto__:null,default:vn},Symbol.toStringTag,{value:"Module"})),W="vue",ye=()=>{switch(W){case"react":case"reactNative":case"rsc":return"className";case"svelte":case"vue":case"solid":case"qwik":case"angular":return"class"}},ki=s.defineComponent({name:"builder-button",components:{DynamicRenderer:vn},props:["attributes","link","openLinkInNewTab","builderLinkComponent","text"],data(){return{filterAttrs:ne}},methods:{attrs(){return{...ne(this.attributes,"v-on:",!1),[ye()]:`${this.link?"":"builder-button"} ${this.attributes[ye()]||""}`,...this.link?{href:this.link,target:this.openLinkInNewTab?"_blank":void 0,role:"link"}:{role:"button"}}}}});function Si(e,t,n,r,o,i){const a=s.resolveComponent("DynamicRenderer");return s.openBlock(),s.createBlock(a,{attributes:e.attrs(),TagName:e.link?e.builderLinkComponent||"a":"button",actionAttributes:e.filterAttrs(e.attributes,"v-on:",!0)},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(e.text),1)]),_:1},8,["attributes","TagName","actionAttributes"])}const qr=$(ki,[["render",Si]]),Ci=Symbol(),Et={Builder:{content:null,context:{},localState:void 0,rootSetState(){},rootState:{},apiKey:null,apiVersion:void 0,componentInfos:{},inheritedStyles:{},BlocksWrapper:"div",BlocksWrapperProps:{},nonce:"",model:""},key:Ci},wi=Symbol(),Jr={Components:{registeredComponents:{}},key:wi},Xr=e=>{const t=new Map;return{get:n=>t.get(n),set:(n,r)=>{!t.has(n)&&t.size>=e&&t.delete(t.keys().next().value),t.set(n,r)}}},yt="[Builder.io]: ",ee={log:(...e)=>console.log(yt,...e),error:(...e)=>console.error(yt,...e),warn:(...e)=>console.warn(yt,...e),debug:(...e)=>console.debug(yt,...e)},Yr=(e,t,n)=>{const r=String.prototype.split.call(t,/[,[\].]+?/).filter(Boolean).reduce((o,i)=>o!=null?o[i]:o,e);return r===void 0||r===e?n:r};function D(){return typeof window<"u"&&typeof document<"u"}const Ei=e=>{const t={};return e.forEach((n,r)=>{t[r]=n}),t},Qr=e=>e instanceof URLSearchParams?Ei(e):e,Zr=e=>typeof e=="string"?e:e instanceof URLSearchParams?e.toString():new URLSearchParams(e).toString();function Ti(){return D()&&window.self!==window.top}function z(e){return Ti()&&Zr(e||window.location.search).indexOf("builder.frameEditing=")!==-1}const Ii=()=>{if(D()){const e=new URL(location.href);return e.pathname===""&&(e.pathname="/"),e}else return console.warn("Cannot get location for tracking in non-browser environment"),null},Ri=()=>typeof navigator=="object"&&navigator.userAgent||"",eo=()=>{const e=Ri(),t={Android(){return e.match(/Android/i)},BlackBerry(){return e.match(/BlackBerry/i)},iOS(){return e.match(/iPhone|iPod/i)},Opera(){return e.match(/Opera Mini/i)},Windows(){return e.match(/IEMobile/i)||e.match(/WPDesktop/i)},any(){return t.Android()||t.BlackBerry()||t.iOS()||t.Opera()||t.Windows()||W==="reactNative"}},n=e.match(/Tablet|iPad/i),r=Ii();return{urlPath:r==null?void 0:r.pathname,host:(r==null?void 0:r.host)||(r==null?void 0:r.hostname),device:n?"tablet":t.any()?"mobile":"desktop"}},to="5.4.1",no=()=>({"X-Builder-SDK":W,"X-Builder-SDK-GEN":"2","X-Builder-SDK-Version":to}),be=e=>e!=null,Ai=e=>{if(e==="localhost"||e==="127.0.0.1")return e;const t=e.split(".");return t.length>2?t.slice(1).join("."):e},At=({name:e,canTrack:t})=>{var n;try{return t?(n=document.cookie.split("; ").find(r=>r.startsWith(`${e}=`)))==null?void 0:n.split("=")[1]:void 0}catch(r){ee.warn("[COOKIE] GET error: ",(r==null?void 0:r.message)||r);return}},ro=async e=>At(e),Bi=e=>e.map(([t,n])=>n?`${t}=${n}`:t).filter(be).join("; "),Pi=[["secure",""],["SameSite","None"]],Oi=({name:e,value:t,expires:n})=>{const o=(D()?location.protocol==="https:":!0)?Pi:[[]],i=n?[["expires",n.toUTCString()]]:[[]],a=[[e,t],...i,["path","/"],["domain",Ai(window.location.hostname)],...o];return Bi(a)},kn=async({name:e,value:t,expires:n,canTrack:r})=>{try{if(!r)return;const o=Oi({name:e,value:t,expires:n});document.cookie=o}catch(o){ee.warn("[COOKIE] SET error: ",(o==null?void 0:o.message)||o)}};function xi(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}function oo(){return xi().replace(/-/g,"")}const io="builderSessionId",$i=async({canTrack:e})=>{if(!e)return;const t=await ro({name:io,canTrack:e});if(be(t))return t;{const n=Ni();return Vi({id:n,canTrack:e}),n}},Ni=()=>oo(),Vi=({id:e,canTrack:t})=>kn({name:io,value:e,canTrack:t}),so=()=>D()&&typeof localStorage<"u"?localStorage:void 0,ji=({key:e,canTrack:t})=>{var n;try{return t?(n=so())==null?void 0:n.getItem(e):void 0}catch(r){console.debug("[LocalStorage] GET error: ",r);return}},Di=({key:e,canTrack:t,value:n})=>{var r;try{t&&((r=so())==null||r.setItem(e,n))}catch(o){console.debug("[LocalStorage] SET error: ",o)}},ao="builderVisitorId",Ui=({canTrack:e})=>{if(!e)return;const t=ji({key:ao,canTrack:e});if(be(t))return t;{const n=Wi();return Fi({id:n,canTrack:e}),n}},Wi=()=>oo(),Fi=({id:e,canTrack:t})=>Di({key:ao,value:e,canTrack:t});function Sn(e){var t;typeof process<"u"&&((t=process.env)!=null&&t.DEBUG)&&String(process.env.DEBUG)=="true"&&ee.log(e)}const Li=async({canTrack:e})=>{if(!e)return{visitorId:void 0,sessionId:void 0};const t=await $i({canTrack:e}),n=Ui({canTrack:e});return{sessionId:t,visitorId:n}},Mi=async({type:e,canTrack:t,apiKey:n,metadata:r,...o})=>({type:e,data:{...o,metadata:{url:location.href,...r},...await Li({canTrack:t}),userAttributes:eo(),ownerId:n}});async function Tt({apiHost:e,...t}){if(!t.apiKey){ee.error("Missing API key for track call. Please provide your API key.");return}if(!t.canTrack||z()||!(D()||W==="reactNative"))return;const r=`${e||"https://cdn.builder.io"}/api/v1/track`;return Sn(r),fetch(r,{method:"POST",body:JSON.stringify({events:[await Mi(t)]}),headers:{"content-type":"application/json",...no()},mode:"cors"}).catch(o=>{console.error("Failed to track: ",o)})}const Hi=e=>Tt({...e,canTrack:!0}),lo=({builder:e,context:t,event:n,state:r})=>Object.entries({state:r,Builder:e,builder:e,context:t,event:n}),_i=e=>({isEditing:z(),isBrowser:D(),isServer:!D(),getUserAttributes:()=>eo(),trackConversion:(t,n)=>{!(e!=null&&e.apiKey)||(e==null?void 0:e.canTrack)===!1||Tt({type:"conversion",apiKey:e.apiKey,canTrack:e.canTrack??!0,contentId:e.contentId,variationId:e.variationId!==e.contentId?e.variationId:void 0,metadata:{...n||{},...t!==void 0?{amount:t}:{}}})}}),Ki=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e;function Cn({rootState:e,localState:t,rootSetState:n}){return new Proxy(e,{get:(r,o)=>{if(t&&o in t)return t[o];const i=r[o];return typeof i=="object"&&i!==null?Cn({rootState:i,localState:void 0,rootSetState:n?a=>{r[o]=a,n(r)}:void 0}):i},set:(r,o,i)=>{if(t&&o in t)throw new Error("Writing to local state is not allowed as it is read-only.");return r[o]=i,n==null||n(r),!0}})}const zi=5e3,vr=Xr(zi),Gi=(e,t)=>{let n=vr.get(t);return n||(n=new Function(...e,t),vr.set(t,n)),n},qi=({code:e,builder:t,context:n,event:r,localState:o,rootSetState:i,rootState:a})=>{const c=lo({builder:t,context:n,event:r,state:Cn({rootState:a,localState:o,rootSetState:i})});return Gi(c.map(([p])=>p),e)(...c.map(([,p])=>p))};var V,Ji=function(e){function t(l){return 48>l?l===36:58>l?!0:65>l?!1:91>l?!0:97>l?l===95:123>l?!0:170<=l&&mi.test(String.fromCharCode(l))}function n(l){return 65>l?l===36:91>l?!0:97>l?l===95:123>l?!0:170<=l&&br.test(String.fromCharCode(l))}function r(l,u){for(var d=S,h=1,P=0;;){gt.lastIndex=P;var _=gt.exec(d);if(_&&_.index<l)++h,P=_.index+_[0].length;else break}throw d={line:h,ab:l-P},u+=" ("+d.line+":"+d.ab+")",u=new SyntaxError(u),u.j=l,u.X=d,u.o=m,u}function o(l){l=l.split(" ");for(var u=Object.create(null),d=0;d<l.length;d++)u[l[d]]=!0;return function(h){return u[h]||!1}}function i(){this.line=Te,this.ab=m-pe}function a(l,u){Ae=m,O.C&&(Mt=new i),B=l,p(),ie=u,Me=l.m}function c(){for(var l=m,u=O.va&&O.C&&new i,d=S.charCodeAt(m+=2);m<Re&&d!==10&&d!==13&&d!==8232&&d!==8233;)++m,d=S.charCodeAt(m);O.va&&O.va(!1,S.slice(l+2,m),l,m,u,O.C&&new i)}function p(){for(;m<Re;){var l=S.charCodeAt(m);if(l===32)++m;else if(l===13)++m,l=S.charCodeAt(m),l===10&&++m,O.C&&(++Te,pe=m);else if(l===10||l===8232||l===8233)++m,O.C&&(++Te,pe=m);else if(8<l&&14>l)++m;else if(l===47)if(l=S.charCodeAt(m+1),l===42){l=void 0;var u=O.va&&O.C&&new i,d=m,h=S.indexOf("*/",m+=2);if(h===-1&&r(m-2,"Unterminated comment"),m=h+2,O.C)for(gt.lastIndex=d;(l=gt.exec(S))&&l.index<m;)++Te,pe=l.index+l[0].length;O.va&&O.va(!0,S.slice(d+2,h),d,m,u,O.C&&new i)}else if(l===47)c();else break;else if(l===160)++m;else if(5760<=l&&di.test(String.fromCharCode(l)))++m;else break}}function f(l){switch(l){case 46:l=S.charCodeAt(m+1),48<=l&&57>=l?E(!0):(++m,a(ur));return;case 40:return++m,a(de);case 41:return++m,a(le);case 59:return++m,a(me);case 44:return++m,a(Se);case 91:return++m,a(Qt);case 93:return++m,a(Zt);case 123:return++m,a(Ke);case 125:return++m,a(Pe);case 58:return++m,a(ze);case 63:return++m,a(pr);case 48:if(l=S.charCodeAt(m+1),l===120||l===88){m+=2,l=k(16),l===null&&r(H+2,"Expected hexadecimal number"),n(S.charCodeAt(m))&&r(m,"Identifier directly after number"),a(_e,l);return}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return E(!1);case 34:case 39:m++;for(var u="";;){m>=Re&&r(H,"Unterminated string constant");var d=S.charCodeAt(m);if(d===l){++m,a(dt,u);break}if(d===92){d=S.charCodeAt(++m);var h=/^[0-7]+/.exec(S.slice(m,m+3));for(h&&(h=h[0]);h&&255<parseInt(h,8);)h=h.slice(0,-1);if(h==="0"&&(h=null),++m,h)te&&r(m-2,"Octal literal in strict mode"),u+=String.fromCharCode(parseInt(h,8)),m+=h.length-1;else switch(d){case 110:u+=`
|
|
1
|
+
"use strict";const s=require("vue"),hi=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),gi=e=>typeof e=="string"&&hi.has(e.toLowerCase());function ne(e={},t,n){const r={};for(const o in e){if(!e[o]||n&&!o.startsWith(t))continue;const i=n?o.replace(t,""):o;r[i]=e[o]}return r}const yi=s.defineComponent({name:"dynamic-renderer",props:["TagName","attributes","actionAttributes"],data(){return{isEmptyElement:gi}}}),$=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};function bi(e,t,n,r,o,i){return e.isEmptyElement(e.TagName)?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(e.TagName),s.mergeProps({key:1},e.attributes,s.toHandlers(e.actionAttributes)),null,16)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[typeof e.TagName=="string"?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(e.TagName),s.mergeProps({key:0},e.attributes,s.toHandlers(e.actionAttributes)),{default:s.withCtx(()=>[s.renderSlot(e.$slots,"default")]),_:3},16)):(s.openBlock(),s.createBlock(s.resolveDynamicComponent(e.TagName),s.mergeProps({key:1},e.attributes,s.toHandlers(e.actionAttributes)),{default:s.withCtx(()=>[s.renderSlot(e.$slots,"default")]),_:3},16))],64))}const vn=$(yi,[["render",bi]]),vi=Object.freeze(Object.defineProperty({__proto__:null,default:vn},Symbol.toStringTag,{value:"Module"})),W="vue",ye=()=>{switch(W){case"react":case"reactNative":case"rsc":return"className";case"svelte":case"vue":case"solid":case"qwik":case"angular":return"class"}},ki=s.defineComponent({name:"builder-button",components:{DynamicRenderer:vn},props:["attributes","link","openLinkInNewTab","builderLinkComponent","text"],data(){return{filterAttrs:ne}},methods:{attrs(){return{...ne(this.attributes,"v-on:",!1),[ye()]:`${this.link?"":"builder-button"} ${this.attributes[ye()]||""}`,...this.link?{href:this.link,target:this.openLinkInNewTab?"_blank":void 0,role:"link"}:{role:"button"}}}}});function Si(e,t,n,r,o,i){const a=s.resolveComponent("DynamicRenderer");return s.openBlock(),s.createBlock(a,{attributes:e.attrs(),TagName:e.link?e.builderLinkComponent||"a":"button",actionAttributes:e.filterAttrs(e.attributes,"v-on:",!0)},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(e.text),1)]),_:1},8,["attributes","TagName","actionAttributes"])}const qr=$(ki,[["render",Si]]),Ci=Symbol(),Et={Builder:{content:null,context:{},localState:void 0,rootSetState(){},rootState:{},apiKey:null,apiVersion:void 0,componentInfos:{},inheritedStyles:{},BlocksWrapper:"div",BlocksWrapperProps:{},nonce:"",model:""},key:Ci},wi=Symbol(),Jr={Components:{registeredComponents:{}},key:wi},Xr=e=>{const t=new Map;return{get:n=>t.get(n),set:(n,r)=>{!t.has(n)&&t.size>=e&&t.delete(t.keys().next().value),t.set(n,r)}}},yt="[Builder.io]: ",ee={log:(...e)=>console.log(yt,...e),error:(...e)=>console.error(yt,...e),warn:(...e)=>console.warn(yt,...e),debug:(...e)=>console.debug(yt,...e)},Yr=(e,t,n)=>{const r=String.prototype.split.call(t,/[,[\].]+?/).filter(Boolean).reduce((o,i)=>o!=null?o[i]:o,e);return r===void 0||r===e?n:r};function D(){return typeof window<"u"&&typeof document<"u"}const Ei=e=>{const t={};return e.forEach((n,r)=>{t[r]=n}),t},Qr=e=>e instanceof URLSearchParams?Ei(e):e,Zr=e=>typeof e=="string"?e:e instanceof URLSearchParams?e.toString():new URLSearchParams(e).toString();function Ti(){return D()&&window.self!==window.top}function z(e){return Ti()&&Zr(e||window.location.search).indexOf("builder.frameEditing=")!==-1}const Ii=()=>{if(D()){const e=new URL(location.href);return e.pathname===""&&(e.pathname="/"),e}else return console.warn("Cannot get location for tracking in non-browser environment"),null},Ri=()=>typeof navigator=="object"&&navigator.userAgent||"",eo=()=>{const e=Ri(),t={Android(){return e.match(/Android/i)},BlackBerry(){return e.match(/BlackBerry/i)},iOS(){return e.match(/iPhone|iPod/i)},Opera(){return e.match(/Opera Mini/i)},Windows(){return e.match(/IEMobile/i)||e.match(/WPDesktop/i)},any(){return t.Android()||t.BlackBerry()||t.iOS()||t.Opera()||t.Windows()||W==="reactNative"}},n=e.match(/Tablet|iPad/i),r=Ii();return{urlPath:r==null?void 0:r.pathname,host:(r==null?void 0:r.host)||(r==null?void 0:r.hostname),device:n?"tablet":t.any()?"mobile":"desktop"}},to="5.4.2",no=()=>({"X-Builder-SDK":W,"X-Builder-SDK-GEN":"2","X-Builder-SDK-Version":to}),be=e=>e!=null,Ai=e=>{if(e==="localhost"||e==="127.0.0.1")return e;const t=e.split(".");return t.length>2?t.slice(1).join("."):e},At=({name:e,canTrack:t})=>{var n;try{return t?(n=document.cookie.split("; ").find(r=>r.startsWith(`${e}=`)))==null?void 0:n.split("=")[1]:void 0}catch(r){ee.warn("[COOKIE] GET error: ",(r==null?void 0:r.message)||r);return}},ro=async e=>At(e),Bi=e=>e.map(([t,n])=>n?`${t}=${n}`:t).filter(be).join("; "),Pi=[["secure",""],["SameSite","None"]],Oi=({name:e,value:t,expires:n})=>{const o=(D()?location.protocol==="https:":!0)?Pi:[[]],i=n?[["expires",n.toUTCString()]]:[[]],a=[[e,t],...i,["path","/"],["domain",Ai(window.location.hostname)],...o];return Bi(a)},kn=async({name:e,value:t,expires:n,canTrack:r})=>{try{if(!r)return;const o=Oi({name:e,value:t,expires:n});document.cookie=o}catch(o){ee.warn("[COOKIE] SET error: ",(o==null?void 0:o.message)||o)}};function xi(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}function oo(){return xi().replace(/-/g,"")}const io="builderSessionId",$i=async({canTrack:e})=>{if(!e)return;const t=await ro({name:io,canTrack:e});if(be(t))return t;{const n=Ni();return Vi({id:n,canTrack:e}),n}},Ni=()=>oo(),Vi=({id:e,canTrack:t})=>kn({name:io,value:e,canTrack:t}),so=()=>D()&&typeof localStorage<"u"?localStorage:void 0,ji=({key:e,canTrack:t})=>{var n;try{return t?(n=so())==null?void 0:n.getItem(e):void 0}catch(r){console.debug("[LocalStorage] GET error: ",r);return}},Di=({key:e,canTrack:t,value:n})=>{var r;try{t&&((r=so())==null||r.setItem(e,n))}catch(o){console.debug("[LocalStorage] SET error: ",o)}},ao="builderVisitorId",Ui=({canTrack:e})=>{if(!e)return;const t=ji({key:ao,canTrack:e});if(be(t))return t;{const n=Wi();return Fi({id:n,canTrack:e}),n}},Wi=()=>oo(),Fi=({id:e,canTrack:t})=>Di({key:ao,value:e,canTrack:t});function Sn(e){var t;typeof process<"u"&&((t=process.env)!=null&&t.DEBUG)&&String(process.env.DEBUG)=="true"&&ee.log(e)}const Li=async({canTrack:e})=>{if(!e)return{visitorId:void 0,sessionId:void 0};const t=await $i({canTrack:e}),n=Ui({canTrack:e});return{sessionId:t,visitorId:n}},Mi=async({type:e,canTrack:t,apiKey:n,metadata:r,...o})=>({type:e,data:{...o,metadata:{url:location.href,...r},...await Li({canTrack:t}),userAttributes:eo(),ownerId:n}});async function Tt({apiHost:e,...t}){if(!t.apiKey){ee.error("Missing API key for track call. Please provide your API key.");return}if(!t.canTrack||z()||!(D()||W==="reactNative"))return;const r=`${e||"https://cdn.builder.io"}/api/v1/track`;return Sn(r),fetch(r,{method:"POST",body:JSON.stringify({events:[await Mi(t)]}),headers:{"content-type":"application/json",...no()},mode:"cors"}).catch(o=>{console.error("Failed to track: ",o)})}const Hi=e=>Tt({...e,canTrack:!0}),lo=({builder:e,context:t,event:n,state:r})=>Object.entries({state:r,Builder:e,builder:e,context:t,event:n}),_i=e=>({isEditing:z(),isBrowser:D(),isServer:!D(),getUserAttributes:()=>eo(),trackConversion:(t,n)=>{!(e!=null&&e.apiKey)||(e==null?void 0:e.canTrack)===!1||Tt({type:"conversion",apiKey:e.apiKey,canTrack:e.canTrack??!0,contentId:e.contentId,variationId:e.variationId!==e.contentId?e.variationId:void 0,metadata:{...n||{},...t!==void 0?{amount:t}:{}}})}}),Ki=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e;function Cn({rootState:e,localState:t,rootSetState:n}){return new Proxy(e,{get:(r,o)=>{if(t&&o in t)return t[o];const i=r[o];return typeof i=="object"&&i!==null?Cn({rootState:i,localState:void 0,rootSetState:n?a=>{r[o]=a,n(r)}:void 0}):i},set:(r,o,i)=>{if(t&&o in t)throw new Error("Writing to local state is not allowed as it is read-only.");return r[o]=i,n==null||n(r),!0}})}const zi=5e3,vr=Xr(zi),Gi=(e,t)=>{let n=vr.get(t);return n||(n=new Function(...e,t),vr.set(t,n)),n},qi=({code:e,builder:t,context:n,event:r,localState:o,rootSetState:i,rootState:a})=>{const c=lo({builder:t,context:n,event:r,state:Cn({rootState:a,localState:o,rootSetState:i})});return Gi(c.map(([p])=>p),e)(...c.map(([,p])=>p))};var V,Ji=function(e){function t(l){return 48>l?l===36:58>l?!0:65>l?!1:91>l?!0:97>l?l===95:123>l?!0:170<=l&&mi.test(String.fromCharCode(l))}function n(l){return 65>l?l===36:91>l?!0:97>l?l===95:123>l?!0:170<=l&&br.test(String.fromCharCode(l))}function r(l,u){for(var d=S,h=1,P=0;;){gt.lastIndex=P;var _=gt.exec(d);if(_&&_.index<l)++h,P=_.index+_[0].length;else break}throw d={line:h,ab:l-P},u+=" ("+d.line+":"+d.ab+")",u=new SyntaxError(u),u.j=l,u.X=d,u.o=m,u}function o(l){l=l.split(" ");for(var u=Object.create(null),d=0;d<l.length;d++)u[l[d]]=!0;return function(h){return u[h]||!1}}function i(){this.line=Te,this.ab=m-pe}function a(l,u){Ae=m,O.C&&(Mt=new i),B=l,p(),ie=u,Me=l.m}function c(){for(var l=m,u=O.va&&O.C&&new i,d=S.charCodeAt(m+=2);m<Re&&d!==10&&d!==13&&d!==8232&&d!==8233;)++m,d=S.charCodeAt(m);O.va&&O.va(!1,S.slice(l+2,m),l,m,u,O.C&&new i)}function p(){for(;m<Re;){var l=S.charCodeAt(m);if(l===32)++m;else if(l===13)++m,l=S.charCodeAt(m),l===10&&++m,O.C&&(++Te,pe=m);else if(l===10||l===8232||l===8233)++m,O.C&&(++Te,pe=m);else if(8<l&&14>l)++m;else if(l===47)if(l=S.charCodeAt(m+1),l===42){l=void 0;var u=O.va&&O.C&&new i,d=m,h=S.indexOf("*/",m+=2);if(h===-1&&r(m-2,"Unterminated comment"),m=h+2,O.C)for(gt.lastIndex=d;(l=gt.exec(S))&&l.index<m;)++Te,pe=l.index+l[0].length;O.va&&O.va(!0,S.slice(d+2,h),d,m,u,O.C&&new i)}else if(l===47)c();else break;else if(l===160)++m;else if(5760<=l&&di.test(String.fromCharCode(l)))++m;else break}}function f(l){switch(l){case 46:l=S.charCodeAt(m+1),48<=l&&57>=l?E(!0):(++m,a(ur));return;case 40:return++m,a(de);case 41:return++m,a(le);case 59:return++m,a(me);case 44:return++m,a(Se);case 91:return++m,a(Qt);case 93:return++m,a(Zt);case 123:return++m,a(Ke);case 125:return++m,a(Pe);case 58:return++m,a(ze);case 63:return++m,a(pr);case 48:if(l=S.charCodeAt(m+1),l===120||l===88){m+=2,l=k(16),l===null&&r(H+2,"Expected hexadecimal number"),n(S.charCodeAt(m))&&r(m,"Identifier directly after number"),a(_e,l);return}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return E(!1);case 34:case 39:m++;for(var u="";;){m>=Re&&r(H,"Unterminated string constant");var d=S.charCodeAt(m);if(d===l){++m,a(dt,u);break}if(d===92){d=S.charCodeAt(++m);var h=/^[0-7]+/.exec(S.slice(m,m+3));for(h&&(h=h[0]);h&&255<parseInt(h,8);)h=h.slice(0,-1);if(h==="0"&&(h=null),++m,h)te&&r(m-2,"Octal literal in strict mode"),u+=String.fromCharCode(parseInt(h,8)),m+=h.length-1;else switch(d){case 110:u+=`
|
|
2
2
|
`;break;case 114:u+="\r";break;case 120:u+=String.fromCharCode(A(2));break;case 117:u+=String.fromCharCode(A(4));break;case 85:u+=String.fromCharCode(A(8));break;case 116:u+=" ";break;case 98:u+="\b";break;case 118:u+="\v";break;case 102:u+="\f";break;case 48:u+="\0";break;case 13:S.charCodeAt(m)===10&&++m;case 10:O.C&&(pe=m,++Te);break;default:u+=String.fromCharCode(d)}}else d!==13&&d!==10&&d!==8232&&d!==8233||r(H,"Unterminated string constant"),u+=String.fromCharCode(d),++m}return;case 47:l=S.charCodeAt(m+1),Me?(++m,g()):l===61?v(Ie,2):v(dr,1);return;case 37:case 42:S.charCodeAt(m+1)===61?v(Ie,2):v(ci,1);return;case 124:case 38:u=S.charCodeAt(m+1),u===l?v(l===124?hr:gr,2):u===61?v(Ie,2):v(l===124?ni:oi,1);return;case 94:S.charCodeAt(m+1)===61?v(Ie,2):v(ri,1);return;case 43:case 45:u=S.charCodeAt(m+1),u===l?u===45&&S.charCodeAt(m+2)===62&&ht.test(S.slice(ke,m))?(m+=3,c(),p(),y()):v(ti,2):u===61?v(Ie,2):v(li,1);return;case 60:case 62:u=S.charCodeAt(m+1),d=1,u===l?(d=l===62&&S.charCodeAt(m+2)===62?3:2,S.charCodeAt(m+d)===61?v(Ie,d+1):v(ai,d)):u===33&&l===60&&S.charCodeAt(m+2)===45&&S.charCodeAt(m+3)===45?(m+=4,c(),p(),y()):(u===61&&(d=S.charCodeAt(m+2)===61?3:2),v(si,d));return;case 61:case 33:S.charCodeAt(m+1)===61?v(ii,S.charCodeAt(m+2)===61?3:2):v(l===61?mr:fr,1);return;case 126:return v(fr,1)}return!1}function y(l){if(l?m=H+1:H=m,O.C&&(Lt=new i),l)return g();if(m>=Re)return a(Kt);if(l=S.charCodeAt(m),n(l)||l===92)return G();if(f(l)===!1){if(l=String.fromCharCode(l),l==="\\"||br.test(l))return G();r(m,"Unexpected character '"+l+"'")}}function v(l,u){var d=S.slice(m,m+u);m+=u,a(l,d)}function g(){for(var l,u,d=m;;){m>=Re&&r(d,"Unterminated regexp");var h=S.charAt(m);if(ht.test(h)&&r(d,"Unterminated regexp"),l)l=!1;else{if(h==="[")u=!0;else if(h==="]"&&u)u=!1;else if(h==="/"&&!u)break;l=h==="\\"}++m}l=S.slice(d,m),++m,(u=U())&&!/^[gmi]*$/.test(u)&&r(d,"Invalid regexp flag");try{var P=new RegExp(l,u)}catch(_){throw _ instanceof SyntaxError&&r(d,_.message),_}a(Kn,P)}function k(l,u){for(var d=m,h=0,P=u===void 0?1/0:u,_=0;_<P;++_){var Y=S.charCodeAt(m);if(Y=97<=Y?Y-97+10:65<=Y?Y-65+10:48<=Y&&57>=Y?Y-48:1/0,Y>=l)break;++m,h=h*l+Y}return m===d||u!==void 0&&m-d!==u?null:h}function E(l){var u=m,d=!1,h=S.charCodeAt(m)===48;l||k(10)!==null||r(u,"Invalid number"),S.charCodeAt(m)===46&&(++m,k(10),d=!0),l=S.charCodeAt(m),(l===69||l===101)&&(l=S.charCodeAt(++m),l!==43&&l!==45||++m,k(10)===null&&r(u,"Invalid number"),d=!0),n(S.charCodeAt(m))&&r(m,"Identifier directly after number"),l=S.slice(u,m);var P;d?P=parseFloat(l):h&&l.length!==1?/[89]/.test(l)||te?r(u,"Invalid number"):P=parseInt(l,8):P=parseInt(l,10),a(_e,P)}function A(l){return l=k(16,l),l===null&&r(H,"Bad character escape sequence"),l}function U(){Oe=!1;for(var l,u=!0,d=m;;){var h=S.charCodeAt(m);if(t(h))Oe&&(l+=S.charAt(m)),++m;else if(h===92){Oe||(l=S.slice(d,m)),Oe=!0,S.charCodeAt(++m)!==117&&r(m,"Expecting Unicode escape sequence \\uXXXX"),++m,h=A(4);var P=String.fromCharCode(h);P||r(m-1,"Invalid Unicode escape"),(u?n(h):t(h))||r(m-4,"Invalid Unicode escape"),l+=P}else break;u=!1}return Oe?l:S.slice(d,m)}function G(){var l=U(),u=Be;!Oe&&pi(l)&&(u=ei[l]),a(u,l)}function I(){Ht=H,ke=Ae,_t=Mt,y()}function re(l){if(te=l,m=H,O.C)for(;m<pe;)pe=S.lastIndexOf(`
|
|
3
3
|
`,pe-2)+1,--Te;p(),y()}function N(){this.type=null,this.start=H,this.end=null}function ae(){this.start=Lt,this.end=null,Ft&&(this.source=Ft)}function F(){var l=new N;return O.C&&(l.X=new ae),O.vb&&(l.sourceFile=O.vb),O.Xa&&(l.j=[H,0]),l}function X(l){var u=new N;return u.start=l.start,O.C&&(u.X=new ae,u.X.start=l.X.start),O.Xa&&(u.j=[l.j[0],0]),u}function w(l,u){return l.type=u,l.end=ke,O.C&&(l.X.end=_t),O.Xa&&(l.j[1]=ke),l}function oe(l){return l.type==="ExpressionStatement"&&l.la.type==="Literal"&&l.la.value==="use strict"}function j(l){return B===l?(I(),!0):!1}function ct(){return!O.fc&&(B===Kt||B===Pe||ht.test(S.slice(ke,H)))}function Ee(){j(me)||ct()||ce()}function L(l){B===l?I():ce()}function ce(){r(H,"Unexpected token")}function ut(l){l.type!=="Identifier"&&l.type!=="MemberExpression"&&r(l.start,"Assigning to rvalue"),te&&l.type==="Identifier"&&ft(l.name)&&r(l.start,"Assigning to "+l.name+" in strict mode")}function se(){(B===dr||B===Ie&&ie==="/=")&&y(!0);var l=B,u=F();switch(l){case zt:case Gn:I();var d=l===zt;j(me)||ct()?u.label=null:B!==Be?ce():(u.label=ue(),Ee());for(var h=0;h<M.length;++h){var P=M[h];if((u.label===null||P.name===u.label.name)&&(P.kind!==null&&(d||P.kind==="loop")||u.label&&d))break}return h===M.length&&r(u.start,"Unsyntactic "+l.l),w(u,d?"BreakStatement":"ContinueStatement");case qn:return I(),Ee(),w(u,"DebuggerStatement");case Xn:return I(),M.push(en),u.body=se(),M.pop(),L(Yt),u.test=We(),Ee(),w(u,"DoWhileStatement");case Zn:return I(),M.push(en),L(de),B===me?Nt(u,null):B===Xt?(l=F(),I(),Hn(l,!0),w(l,"VariableDeclaration"),l.fa.length===1&&j(mt)?Mn(u,l):Nt(u,l)):(l=J(!1,!0),j(mt)?(ut(l),Mn(u,l)):Nt(u,l));case qt:return I(),Ut(u,!0);case er:return I(),u.test=We(),u.da=se(),u.alternate=j(Yn)?se():null,w(u,"IfStatement");case tr:return He||O.Ib||r(H,"'return' outside of function"),I(),j(me)||ct()?u.K=null:(u.K=J(),Ee()),w(u,"ReturnStatement");case Jt:for(I(),u.Qb=We(),u.tb=[],L(Ke),M.push(fi);B!==Pe;)B===Gt||B===Jn?(l=B===Gt,h&&w(h,"SwitchCase"),u.tb.push(h=F()),h.da=[],I(),l?h.test=J():(d&&r(Ht,"Multiple default clauses"),d=!0,h.test=null),L(ze)):(h||ce(),h.da.push(se()));return h&&w(h,"SwitchCase"),I(),M.pop(),w(u,"SwitchStatement");case nr:return I(),ht.test(S.slice(ke,H))&&r(ke,"Illegal newline after throw"),u.K=J(),Ee(),w(u,"ThrowStatement");case rr:return I(),u.block=Fe(),u.Ea=null,B===zn&&(l=F(),I(),L(de),l.Ua=ue(),te&&ft(l.Ua.name)&&r(l.Ua.start,"Binding "+l.Ua.name+" in strict mode"),L(le),l.body=Fe(),u.Ea=w(l,"CatchClause")),u.fb=j(Qn)?Fe():null,u.Ea||u.fb||r(u.start,"Missing catch or finally clause"),w(u,"TryStatement");case Xt:return I(),Hn(u),Ee(),w(u,"VariableDeclaration");case Yt:return I(),u.test=We(),M.push(en),u.body=se(),M.pop(),w(u,"WhileStatement");case or:return te&&r(H,"'with' in strict mode"),I(),u.object=We(),u.body=se(),w(u,"WithStatement");case Ke:return Fe();case me:return I(),w(u,"EmptyStatement");default:if(d=ie,P=J(),l===Be&&P.type==="Identifier"&&j(ze)){for(h=0;h<M.length;++h)M[h].name===d&&r(P.start,"Label '"+d+"' is already declared");return M.push({name:d,kind:B.W?"loop":B===Jt?"switch":null}),u.body=se(),M.pop(),u.label=P,w(u,"LabeledStatement")}return u.la=P,Ee(),w(u,"ExpressionStatement")}}function We(){L(de);var l=J();return L(le),l}function Fe(l){var u=F(),d=!0,h=!1;for(u.body=[],L(Ke);!j(Pe);){var P=se();if(u.body.push(P),d&&l&&oe(P)){var _=h;re(h=!0)}d=!1}return h&&!_&&re(!1),w(u,"BlockStatement")}function Nt(l,u){return l.ua=u,L(me),l.test=B===me?null:J(),L(me),l.update=B===le?null:J(),L(le),l.body=se(),M.pop(),w(l,"ForStatement")}function Mn(l,u){return l.left=u,l.right=J(),L(le),l.body=se(),M.pop(),w(l,"ForInStatement")}function Hn(l,u){for(l.fa=[],l.kind="var";;){var d=F();if(d.id=ue(),te&&ft(d.id.name)&&r(d.id.start,"Binding "+d.id.name+" in strict mode"),d.ua=j(mr)?J(!0,u):null,l.fa.push(w(d,"VariableDeclarator")),!j(Se))break}}function J(l,u){var d=Vt(u);if(!l&&B===Se){for(l=X(d),l.xb=[d];j(Se);)l.xb.push(Vt(u));return w(l,"SequenceExpression")}return d}function Vt(l){var u=jt(Dt(),-1,l);if(j(pr)){var d=X(u);d.test=u,d.da=J(!0),L(ze),d.alternate=J(!0,l),u=w(d,"ConditionalExpression")}return B.Cb?(d=X(u),d.operator=ie,d.left=u,I(),d.right=Vt(l),ut(u),w(d,"AssignmentExpression")):u}function jt(l,u,d){var h=B.L;if(h!==null&&(!d||B!==mt)&&h>u){var P=X(l);return P.left=l,P.operator=ie,l=B,I(),P.right=jt(Dt(),h,d),h=w(P,l===hr||l===gr?"LogicalExpression":"BinaryExpression"),jt(h,u,d)}return l}function Dt(){if(B.prefix){var l=F(),u=B.$b;return l.operator=ie,Me=l.prefix=!0,I(),l.K=Dt(),u?ut(l.K):te&&l.operator==="delete"&&l.K.type==="Identifier"&&r(l.start,"Deleting local variable in strict mode"),w(l,u?"UpdateExpression":"UnaryExpression")}for(u=Le(pt());B.cc&&!ct();)l=X(u),l.operator=ie,l.prefix=!1,l.K=u,ut(u),I(),u=w(l,"UpdateExpression");return u}function Le(l,u){if(j(ur)){var d=X(l);return d.object=l,d.Wa=ue(!0),d.bb=!1,Le(w(d,"MemberExpression"),u)}return j(Qt)?(d=X(l),d.object=l,d.Wa=J(),d.bb=!0,L(Zt),Le(w(d,"MemberExpression"),u)):!u&&j(de)?(d=X(l),d.callee=l,d.arguments=Wt(le,!1),Le(w(d,"CallExpression"),u)):l}function pt(){switch(B){case sr:var l=F();return I(),w(l,"ThisExpression");case Be:return ue();case _e:case dt:case Kn:return l=F(),l.value=ie,l.raw=S.slice(H,Ae),I(),w(l,"Literal");case ar:case lr:case cr:return l=F(),l.value=B.$a,l.raw=B.l,I(),w(l,"Literal");case de:l=Lt;var u=H;I();var d=J();return d.start=u,d.end=Ae,O.C&&(d.X.start=l,d.X.end=Mt),O.Xa&&(d.j=[u,Ae]),L(le),d;case Qt:return l=F(),I(),l.elements=Wt(Zt,!0,!0),w(l,"ArrayExpression");case Ke:for(l=F(),u=!0,d=!1,l.h=[],I();!j(Pe);){if(u)u=!1;else if(L(Se),O.sb&&j(Pe))break;var h={key:B===_e||B===dt?pt():ue(!0)},P=!1;if(j(ze)){h.value=J(!0);var _=h.kind="init"}else h.key.type!=="Identifier"||h.key.name!=="get"&&h.key.name!=="set"?ce():(P=d=!0,_=h.kind=h.key.name,h.key=B===_e||B===dt?pt():ue(!0),B!==de&&ce(),h.value=Ut(F(),!1));if(h.key.type==="Identifier"&&(te||d))for(var Y=0;Y<l.h.length;++Y){var xe=l.h[Y];if(xe.key.name===h.key.name){var tn=_===xe.kind||P&&xe.kind==="init"||_==="init"&&(xe.kind==="get"||xe.kind==="set");tn&&!te&&_==="init"&&xe.kind==="init"&&(tn=!1),tn&&r(h.key.start,"Redefinition of property")}}l.h.push(h)}return w(l,"ObjectExpression");case qt:return l=F(),I(),Ut(l,!1);case ir:return l=F(),I(),l.callee=Le(pt(),!0),l.arguments=j(de)?Wt(le,!1):Zo,w(l,"NewExpression")}ce()}function Ut(l,u){B===Be?l.id=ue():u?ce():l.id=null,l.oa=[];var d=!0;for(L(de);!j(le);)d?d=!1:L(Se),l.oa.push(ue());d=He;var h=M;if(He=!0,M=[],l.body=Fe(!0),He=d,M=h,te||l.body.body.length&&oe(l.body.body[0])){for(d=l.id?-1:0;d<l.oa.length;++d)if(h=0>d?l.id:l.oa[d],(yr(h.name)||ft(h.name))&&r(h.start,"Defining '"+h.name+"' in strict mode"),0<=d)for(var P=0;P<d;++P)h.name===l.oa[P].name&&r(h.start,"Argument name clash in strict mode")}return w(l,u?"FunctionDeclaration":"FunctionExpression")}function Wt(l,u,d){for(var h=[],P=!0;!j(l);){if(P)P=!1;else if(L(Se),u&&O.sb&&j(l))break;h.push(d&&B===Se?null:J(!0))}return h}function ue(l){var u=F();return l&&O.yb==="everywhere"&&(l=!1),B===Be?(!l&&(O.yb&&ui(ie)||te&&yr(ie))&&S.slice(H,Ae).indexOf("\\")===-1&&r(H,"The keyword '"+ie+"' is reserved"),u.name=ie):l&&B.l?u.name=B.l:ce(),Me=!1,I(),w(u,"Identifier")}e.version="0.5.0";var O,S="",Re,Ft;e.parse=function(l,u){S=String(l),Re=S.length,O=u||{};for(var d in _n)Object.prototype.hasOwnProperty.call(O,d)||(O[d]=_n[d]);for(Ft=O.sourceFile,Te=1,m=pe=0,Me=!0,p(),d=O.dc,Ht=ke=m,O.C&&(_t=new i),He=te=!1,M=[],y(),l=d||F(),u=!0,d||(l.body=[]);B!==Kt;)d=se(),l.body.push(d),u&&oe(d)&&re(!0),u=!1;return w(l,"Program")};var _n={fc:!1,sb:!0,yb:!1,Ib:!1,C:!1,va:null,Xa:!1,dc:null,sourceFile:null,vb:null},m=0,H=0,Ae=0,Lt,Mt,B,ie,Me,Te,pe,Ht=0,ke=0,_t,He,M,te,Zo=[],_e={type:"num"},Kn={type:"regexp"},dt={type:"string"},Be={type:"name"},Kt={type:"eof"},zt={l:"break"},Gt={l:"case",m:!0},zn={l:"catch"},Gn={l:"continue"},qn={l:"debugger"},Jn={l:"default"},Xn={l:"do",W:!0},Yn={l:"else",m:!0},Qn={l:"finally"},Zn={l:"for",W:!0},qt={l:"function"},er={l:"if"},tr={l:"return",m:!0},Jt={l:"switch"},nr={l:"throw",m:!0},rr={l:"try"},Xt={l:"var"},Yt={l:"while",W:!0},or={l:"with"},ir={l:"new",m:!0},sr={l:"this"},ar={l:"null",$a:null},lr={l:"true",$a:!0},cr={l:"false",$a:!1},mt={l:"in",L:7,m:!0},ei={break:zt,case:Gt,catch:zn,continue:Gn,debugger:qn,default:Jn,do:Xn,else:Yn,finally:Qn,for:Zn,function:qt,if:er,return:tr,switch:Jt,throw:nr,try:rr,var:Xt,while:Yt,with:or,null:ar,true:lr,false:cr,new:ir,in:mt,instanceof:{l:"instanceof",L:7,m:!0},this:sr,typeof:{l:"typeof",prefix:!0,m:!0},void:{l:"void",prefix:!0,m:!0},delete:{l:"delete",prefix:!0,m:!0}},Qt={type:"[",m:!0},Zt={type:"]"},Ke={type:"{",m:!0},Pe={type:"}"},de={type:"(",m:!0},le={type:")"},Se={type:",",m:!0},me={type:";",m:!0},ze={type:":",m:!0},ur={type:"."},pr={type:"?",m:!0},dr={L:10,m:!0},mr={Cb:!0,m:!0},Ie={Cb:!0,m:!0},ti={cc:!0,prefix:!0,$b:!0},fr={prefix:!0,m:!0},hr={L:1,m:!0},gr={L:2,m:!0},ni={L:3,m:!0},ri={L:4,m:!0},oi={L:5,m:!0},ii={L:6,m:!0},si={L:7,m:!0},ai={L:8,m:!0},li={L:9,prefix:!0,m:!0},ci={L:10,m:!0},ui=o("class enum extends super const export import"),yr=o("implements interface let package private protected public static yield"),ft=o("eval arguments"),pi=o("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"),di=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,br=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),mi=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"),ht=/[\n\r\u2028\u2029]/,gt=/\r\n|[\n\r\u2028\u2029]/g,Oe,en={kind:"loop"},fi={kind:"switch"}},ln=ln=typeof globalThis>"u"?void 0:globalThis;Ji(ln.j||(ln.j={}));function b(e,t){typeof e=="string"&&(e=Ne(e,"code"));var n=e.constructor;this.ya=function(){return new n({options:{}})};var r=this.ya(),o;for(o in e)r[o]=o==="body"?e[o].slice():e[o];this.ra=r,this.ca=[],this.qb=t,this.za=!1,this.ba=[],this.Ya=0,this.rb=Object.create(null),e=/^step([A-Z]\w*)$/;var i,a;for(a in this)typeof this[a]=="function"&&(i=a.match(e))&&(this.rb[i[1]]=this[a].bind(this));this.N=un(this,this.ra,null),this.Na=this.N.object,this.ra=Ne(this.ba.join(`
|
|
4
4
|
`),"polyfills"),this.ba=void 0,Bt(this.ra),i=new T(this.ra,this.N),i.done=!1,this.o=[i],this.Eb(),this.value=void 0,this.ra=r,i=new T(this.ra,this.N),i.done=!1,this.o.length=0,this.o[0]=i}var kr={C:!0,kc:5},wn={configurable:!0,enumerable:!0,writable:!1},C={configurable:!0,enumerable:!1,writable:!0},Z={configurable:!0,enumerable:!1,writable:!1},Ge={configurable:!1,enumerable:!1,writable:!1},Sr={configurable:!1,enumerable:!0,writable:!0},co={STEP_ERROR:!0},De={SCOPE_REFERENCE:!0},nt={VALUE_IN_DESCRIPTOR:!0},$e={REGEXP_TIMEOUT:!0},Cr=[],he=null,Ze=null,Ce=typeof globalThis>"u"?void 0:globalThis,Xi=["onmessage = function(e) {","var result;","var data = e.data;","switch (data[0]) {","case 'split':","result = data[1].split(data[2], data[3]);","break;","case 'match':","result = data[1].match(data[2]);","break;","case 'search':","result = data[1].search(data[2]);","break;","case 'replace':","result = data[1].replace(data[2], data[3]);","break;","case 'exec':","var regexp = data[1];","regexp.lastIndex = data[2];","result = [regexp.exec(data[3]), data[1].lastIndex];","break;","default:","throw Error('Unknown RegExp operation: ' + data[0]);","}","postMessage(result);","close();","};"];function En(e){var t=e>>>0;return t===Number(e)?t:NaN}function et(e){var t=e>>>0;return String(t)===String(e)&&t!==4294967295?t:NaN}function Bt(e,t,n){t?e.start=t:delete e.start,n?e.end=n:delete e.end;for(var r in e)if(r!=="loc"&&e.hasOwnProperty(r)){var o=e[r];o&&typeof o=="object"&&Bt(o,t,n)}}b.prototype.REGEXP_MODE=2;b.prototype.REGEXP_THREAD_TIMEOUT=1e3;b.prototype.POLYFILL_TIMEOUT=1e3;V=b.prototype;V.P=!1;V.Ka=!1;V.Kb=0;V.ic=0;function Ne(e,t){var n={},r;for(r in kr)n[r]=kr[r];return n.sourceFile=t,Ce.j.parse(e,n)}V.Jb=function(e){var t=this.o[0];if(!t||t.node.type!=="Program")throw Error("Expecting original AST to start with a Program node");if(typeof e=="string"&&(e=Ne(e,"appendCode"+this.Kb++)),!e||e.type!=="Program")throw Error("Expecting new AST to start with a Program node");rt(this,e,t.scope),Array.prototype.push.apply(t.node.body,e.body),t.node.body.jb=null,t.done=!1};V.lb=function(){var e=this.o,t;do{var n=e[e.length-1];if(this.za)break;if(!n||n.node.type==="Program"&&n.done){if(!this.ca.length)return!1;if(n=this.ca[0],!n||n.time>Date.now())n=null;else{this.ca.shift(),0<=n.interval&&mo(this,n,n.interval);var r=new T(n.node,n.scope);n.zb&&(r.ia=2,r.B=this.Na,r.U=n.zb,r.Qa=!0,r.F=n.Lb),n=r}if(!n)break}r=n.node;var o=Ze;Ze=this;try{var i=this.rb[r.type](e,n,r)}catch(a){if(a!==co)throw this.value!==a&&(this.value=void 0),a}finally{Ze=o}if(i&&e.push(i),this.P)throw this.value=void 0,Error("Getter not supported in this context");if(this.Ka)throw this.value=void 0,Error("Setter not supported in this context");t||r.end||(t=Date.now()+this.POLYFILL_TIMEOUT)}while(!r.end&&t>Date.now());return!0};V.Eb=function(){for(;!this.za&&this.lb(););return this.za};function Yi(e,t){e.g(t,"NaN",NaN,Ge),e.g(t,"Infinity",1/0,Ge),e.g(t,"undefined",void 0,Ge),e.g(t,"window",t,wn),e.g(t,"this",t,Ge),e.g(t,"self",t),e.M=new x(null),e.Z=new x(e.M),Qi(e,t),Zi(e,t),t.xa=e.M,e.g(t,"constructor",e.v,C),es(e,t),ts(e,t),ns(e,t),rs(e,t),os(e,t),is(e,t),ss(e,t),as(e,t),ls(e,t);var n=e.i(function(){throw EvalError("Can't happen")},!1);n.eval=!0,e.g(t,"eval",n,C),e.g(t,"parseInt",e.i(parseInt,!1),C),e.g(t,"parseFloat",e.i(parseFloat,!1),C),e.g(t,"isNaN",e.i(isNaN,!1),C),e.g(t,"isFinite",e.i(isFinite,!1),C);for(var r=[[escape,"escape"],[unescape,"unescape"],[decodeURI,"decodeURI"],[decodeURIComponent,"decodeURIComponent"],[encodeURI,"encodeURI"],[encodeURIComponent,"encodeURIComponent"]],o=0;o<r.length;o++)n=function(i){return function(a){try{return i(a)}catch(c){R(e,e.Gb,c.message)}}}(r[o][0]),e.g(t,r[o][1],e.i(n,!1),C);n=function(i){return wr(e,!1,arguments)},e.g(t,"setTimeout",e.i(n,!1),C),n=function(i){return wr(e,!0,arguments)},e.g(t,"setInterval",e.i(n,!1),C),n=function(i){Er(e,i)},e.g(t,"clearTimeout",e.i(n,!1),C),n=function(i){Er(e,i)},e.g(t,"clearInterval",e.i(n,!1),C),e.OBJECT=e.v,e.OBJECT_PROTO=e.M,e.FUNCTION=e.O,e.FUNCTION_PROTO=e.Z,e.ARRAY=e.qa,e.ARRAY_PROTO=e.La,e.REGEXP=e.I,e.REGEXP_PROTO=e.Ma,e.DATE=e.$,e.DATE_PROTO=e.nb,e.qb&&e.qb(e,t)}V.Wb=0;function Qi(e,t){var n=/^[A-Za-z_$][\w$]*$/,r=function(o){var i=arguments.length?String(arguments[arguments.length-1]):"",a=Array.prototype.slice.call(arguments,0,-1).join(",").trim();if(a){a=a.split(/\s*,\s*/);for(var c=0;c<a.length;c++){var p=a[c];n.test(p)||R(e,e.T,"Invalid function argument: "+p)}a=a.join(", ")}try{var f=Ne("(function("+a+") {"+i+"})","function"+e.Wb++)}catch(y){R(e,e.T,"Invalid code: "+y.message)}return f.body.length!==1&&R(e,e.T,"Invalid code in function body"),Rn(e,f.body[0].la,e.N,"anonymous")};e.O=e.i(r,!0),e.g(t,"Function",e.O,C),e.g(e.O,"prototype",e.Z,C),e.g(e.Z,"constructor",e.O,C),e.Z.Ta=function(){},e.Z.Ta.id=e.Ya++,e.Z.Ab=!0,e.g(e.Z,"length",0,Z),e.Z.H="Function",r=function(o,i){var a=e.o[e.o.length-1];a.U=this,a.B=o,a.F=[],i!=null&&(i instanceof x?a.F=uo(e,i):R(e,e.j,"CreateListFromArrayLike called on non-object")),a.eb=!1},K(e,e.O,"apply",r),r=function(o){var i=e.o[e.o.length-1];i.U=this,i.B=o,i.F=[];for(var a=1;a<arguments.length;a++)i.F.push(arguments[a]);i.eb=!1},K(e,e.O,"call",r),e.ba.push("Object.defineProperty(Function.prototype, 'bind',","{configurable: true, writable: true, value:","function bind(oThis) {","if (typeof this !== 'function') {","throw TypeError('What is trying to be bound is not callable');","}","var aArgs = Array.prototype.slice.call(arguments, 1),","fToBind = this,","fNOP = function() {},","fBound = function() {","return fToBind.apply(this instanceof fNOP","? this",": oThis,","aArgs.concat(Array.prototype.slice.call(arguments)));","};","if (this.prototype) {","fNOP.prototype = this.prototype;","}","fBound.prototype = new fNOP();","return fBound;","}","});",""),r=function(){return String(this)},K(e,e.O,"toString",r),e.g(e.O,"toString",e.i(r,!1),C),r=function(){return this.valueOf()},K(e,e.O,"valueOf",r),e.g(e.O,"valueOf",e.i(r,!1),C)}function Zi(e,t){function n(o){o!=null||R(e,e.j,"Cannot convert '"+o+"' to object")}var r=function(o){if(o==null)return ve(e)?this:e.s(e.M);if(!(o instanceof x)){var i=e.s(ge(e,o));return i.data=o,i}return o};e.v=e.i(r,!0),e.g(e.v,"prototype",e.M,C),e.g(e.M,"constructor",e.v,C),e.g(t,"Object",e.v,C),r=function(o){return n(o),fe(e,Object.getOwnPropertyNames(o instanceof x?o.h:o))},e.g(e.v,"getOwnPropertyNames",e.i(r,!1),C),r=function(o){return n(o),o instanceof x&&(o=o.h),fe(e,Object.keys(o))},e.g(e.v,"keys",e.i(r,!1),C),r=function(o){return o===null?e.s(null):(o instanceof x||R(e,e.j,"Object prototype may only be an Object or null, not "+o),e.s(o))},e.g(e.v,"create",e.i(r,!1),C),e.ba.push("(function() {","var create_ = Object.create;","Object.create = function create(proto, props) {","var obj = create_(proto);","props && Object.defineProperties(obj, props);","return obj;","};","})();",""),r=function(o,i,a){return i=String(i),o instanceof x||R(e,e.j,"Object.defineProperty called on non-object: "+o),a instanceof x||R(e,e.j,"Property description must be an object"),!o.preventExtensions||i in o.h||R(e,e.j,"Can't define property '"+i+"', object is not extensible"),e.g(o,i,nt,a.h),o},e.g(e.v,"defineProperty",e.i(r,!1),C),e.ba.push("(function() {","var defineProperty_ = Object.defineProperty;","Object.defineProperty = function defineProperty(obj, prop, d1) {","var d2 = {};","if ('configurable' in d1) d2.configurable = d1.configurable;","if ('enumerable' in d1) d2.enumerable = d1.enumerable;","if ('writable' in d1) d2.writable = d1.writable;","if ('value' in d1) d2.value = d1.value;","if ('get' in d1) d2.get = d1.get;","if ('set' in d1) d2.set = d1.set;","return defineProperty_(obj, prop, d2);","};","})();","Object.defineProperty(Object, 'defineProperties',","{configurable: true, writable: true, value:","function defineProperties(obj, props) {","var keys = Object.keys(props);","for (var i = 0; i < keys.length; i++) {","Object.defineProperty(obj, keys[i], props[keys[i]]);","}","return obj;","}","});",""),r=function(o,i){if(o instanceof x||R(e,e.j,"Object.getOwnPropertyDescriptor called on non-object: "+o),i=String(i),i in o.h){var a=Object.getOwnPropertyDescriptor(o.h,i),c=o.V[i];return o=o.Y[i],i=e.s(e.M),c||o?(e.g(i,"get",c),e.g(i,"set",o)):(e.g(i,"value",a.value),e.g(i,"writable",a.writable)),e.g(i,"configurable",a.configurable),e.g(i,"enumerable",a.enumerable),i}},e.g(e.v,"getOwnPropertyDescriptor",e.i(r,!1),C),r=function(o){return n(o),ge(e,o)},e.g(e.v,"getPrototypeOf",e.i(r,!1),C),r=function(o){return!!o&&!o.preventExtensions},e.g(e.v,"isExtensible",e.i(r,!1),C),r=function(o){return o instanceof x&&(o.preventExtensions=!0),o},e.g(e.v,"preventExtensions",e.i(r,!1),C),K(e,e.v,"toString",x.prototype.toString),K(e,e.v,"toLocaleString",x.prototype.toString),K(e,e.v,"valueOf",x.prototype.valueOf),r=function(o){return n(this),this instanceof x?String(o)in this.h:this.hasOwnProperty(o)},K(e,e.v,"hasOwnProperty",r),r=function(o){return n(this),this instanceof x?Object.prototype.propertyIsEnumerable.call(this.h,o):this.propertyIsEnumerable(o)},K(e,e.v,"propertyIsEnumerable",r),r=function(o){for(;;){if(o=ge(e,o),!o)return!1;if(o===this)return!0}},K(e,e.v,"isPrototypeOf",r)}function es(e,t){var n=function(r){var o=ve(e)?this:Ve(e),i=arguments[0];if(arguments.length===1&&typeof i=="number")isNaN(En(i))&&R(e,e.ob,"Invalid array length: "+i),o.h.length=i;else{for(i=0;i<arguments.length;i++)o.h[i]=arguments[i];o.h.length=i}return o};e.qa=e.i(n,!0),e.La=e.qa.h.prototype,e.g(t,"Array",e.qa,C),n=function(r){return r&&r.H==="Array"},e.g(e.qa,"isArray",e.i(n,!1),C),e.g(e.La,"length",0,{configurable:!1,enumerable:!1,writable:!0}),e.La.H="Array",e.ba.push("(function() {","function createArrayMethod_(f) {","Object.defineProperty(Array.prototype, f.name,","{configurable: true, writable: true, value: f});","}","createArrayMethod_(","function pop() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 0) {","o.length = 0;","return undefined;","}","len--;","var x = o[len];","delete o[len];","o.length = len;","return x;","}",");","createArrayMethod_(","function push(var_args) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","for (var i = 0; i < arguments.length; i++) {","o[len] = arguments[i];","len++;","}","o.length = len;","return len;","}",");","createArrayMethod_(","function shift() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 0) {","o.length = 0;","return undefined;","}","var value = o[0];","for (var i = 0; i < len - 1; i++) {","if ((i + 1) in o) {","o[i] = o[i + 1];","} else {","delete o[i];","}","}","delete o[i];","o.length = len - 1;","return value;","}",");","createArrayMethod_(","function unshift(var_args) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 0) {","len = 0;","}","for (var i = len - 1; i >= 0; i--) {","if (i in o) {","o[i + arguments.length] = o[i];","} else {","delete o[i + arguments.length];","}","}","for (var i = 0; i < arguments.length; i++) {","o[i] = arguments[i];","}","return (o.length = len + arguments.length);","}",");","createArrayMethod_(","function reverse() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 2) {","return o;","}","for (var i = 0; i < len / 2 - 0.5; i++) {","var x = o[i];","var hasX = i in o;","if ((len - i - 1) in o) {","o[i] = o[len - i - 1];","} else {","delete o[i];","}","if (hasX) {","o[len - i - 1] = x;","} else {","delete o[len - i - 1];","}","}","return o;","}",");","createArrayMethod_(","function indexOf(searchElement, fromIndex) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var n = fromIndex | 0;","if (!len || n >= len) {","return -1;","}","var i = Math.max(n >= 0 ? n : len - Math.abs(n), 0);","while (i < len) {","if (i in o && o[i] === searchElement) {","return i;","}","i++;","}","return -1;","}",");","createArrayMethod_(","function lastIndexOf(searchElement, fromIndex) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len) {","return -1;","}","var n = len - 1;","if (arguments.length > 1) {","n = fromIndex | 0;","if (n) {","n = (n > 0 || -1) * Math.floor(Math.abs(n));","}","}","var i = n >= 0 ? Math.min(n, len - 1) : len - Math.abs(n);","while (i >= 0) {","if (i in o && o[i] === searchElement) {","return i;","}","i--;","}","return -1;","}",");","createArrayMethod_(","function slice(start, end) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","start |= 0;","start = (start >= 0) ? start : Math.max(0, len + start);","if (typeof end !== 'undefined') {","if (end !== Infinity) {","end |= 0;","}","if (end < 0) {","end = len + end;","} else {","end = Math.min(end, len);","}","} else {","end = len;","}","var size = end - start;","var cloned = new Array(size);","for (var i = 0; i < size; i++) {","if ((start + i) in o) {","cloned[i] = o[start + i];","}","}","return cloned;","}",");","createArrayMethod_(","function splice(start, deleteCount, var_args) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","start |= 0;","if (start < 0) {","start = Math.max(len + start, 0);","} else {","start = Math.min(start, len);","}","if (arguments.length < 1) {","deleteCount = len - start;","} else {","deleteCount |= 0;","deleteCount = Math.max(0, Math.min(deleteCount, len - start));","}","var removed = [];","for (var i = start; i < start + deleteCount; i++) {","if (i in o) {","removed.push(o[i]);","} else {","removed.length++;","}","if ((i + deleteCount) in o) {","o[i] = o[i + deleteCount];","} else {","delete o[i];","}","}","for (var i = start + deleteCount; i < len - deleteCount; i++) {","if ((i + deleteCount) in o) {","o[i] = o[i + deleteCount];","} else {","delete o[i];","}","}","for (var i = len - deleteCount; i < len; i++) {","delete o[i];","}","len -= deleteCount;","var arl = arguments.length - 2;","for (var i = len - 1; i >= start; i--) {","if (i in o) {","o[i + arl] = o[i];","} else {","delete o[i + arl];","}","}","len += arl;","for (var i = 2; i < arguments.length; i++) {","o[start + i - 2] = arguments[i];","}","o.length = len;","return removed;","}",");","createArrayMethod_(","function concat(var_args) {","if (!this) throw TypeError();","var o = Object(this);","var cloned = [];","for (var i = -1; i < arguments.length; i++) {","var value = (i === -1) ? o : arguments[i];","if (Array.isArray(value)) {","for (var j = 0, l = value.length; j < l; j++) {","if (j in value) {","cloned.push(value[j]);","} else {","cloned.length++;","}","}","} else {","cloned.push(value);","}","}","return cloned;","}",");","createArrayMethod_(","function join(opt_separator) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var sep = typeof opt_separator === 'undefined' ?","',' : ('' + opt_separator);","var str = '';","for (var i = 0; i < len; i++) {","if (i && sep) str += sep;","str += (o[i] === null || o[i] === undefined) ? '' : o[i];","}","return str;","}",");","createArrayMethod_(","function every(callbackfn, thisArg) {","if (!this || typeof callbackfn !== 'function') throw TypeError();","var t, k = 0;","var o = Object(this), len = o.length >>> 0;","if (arguments.length > 1) t = thisArg;","while (k < len) {","if (k in o && !callbackfn.call(t, o[k], k, o)) return false;","k++;","}","return true;","}",");","createArrayMethod_(","function filter(fun, var_args) {","if (this === void 0 || this === null || typeof fun !== 'function') throw TypeError();","var o = Object(this), len = o.length >>> 0;","var res = [];","var thisArg = arguments.length >= 2 ? arguments[1] : void 0;","for (var i = 0; i < len; i++) {","if (i in o) {","var val = o[i];","if (fun.call(thisArg, val, i, o)) res.push(val);","}","}","return res;","}",");","createArrayMethod_(","function forEach(callback, thisArg) {","if (!this || typeof callback !== 'function') throw TypeError();","var t, k = 0;","var o = Object(this), len = o.length >>> 0;","if (arguments.length > 1) t = thisArg;","while (k < len) {","if (k in o) callback.call(t, o[k], k, o);","k++;","}","}",");","createArrayMethod_(","function map(callback, thisArg) {","if (!this || typeof callback !== 'function') throw TypeError();","var t, k = 0;","var o = Object(this), len = o.length >>> 0;","if (arguments.length > 1) t = thisArg;","var a = new Array(len);","while (k < len) {","if (k in o) a[k] = callback.call(t, o[k], k, o);","k++;","}","return a;","}",");","createArrayMethod_(","function reduce(callback /*, initialValue*/) {","if (!this || typeof callback !== 'function') throw TypeError();","var o = Object(this), len = o.length >>> 0;","var k = 0, value;","if (arguments.length === 2) {","value = arguments[1];","} else {","while (k < len && !(k in o)) k++;","if (k >= len) {","throw TypeError('Reduce of empty array with no initial value');","}","value = o[k++];","}","for (; k < len; k++) {","if (k in o) value = callback(value, o[k], k, o);","}","return value;","}",");","createArrayMethod_(","function reduceRight(callback /*, initialValue*/) {","if (null === this || 'undefined' === typeof this || 'function' !== typeof callback) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var k = len - 1, value;","if (arguments.length >= 2) {","value = arguments[1];","} else {","while (k >= 0 && !(k in o)) k--;","if (k < 0) {","throw TypeError('Reduce of empty array with no initial value');","}","value = o[k--];","}","for (; k >= 0; k--) {","if (k in o) value = callback(value, o[k], k, o);","}","return value;","}",");","createArrayMethod_(","function some(fun/*, thisArg*/) {","if (!this || typeof fun !== 'function') throw TypeError();","var o = Object(this), len = o.length >>> 0;","var thisArg = arguments.length >= 2 ? arguments[1] : void 0;","for (var i = 0; i < len; i++) {","if (i in o && fun.call(thisArg, o[i], i, o)) return true;","}","return false;","}",");","createArrayMethod_(","function sort(opt_comp) {","if (!this) throw TypeError();","if (typeof opt_comp !== 'function') {","opt_comp = undefined;","}","for (var i = 0; i < this.length; i++) {","var changes = 0;","for (var j = 0; j < this.length - i - 1; j++) {","if (opt_comp ? (opt_comp(this[j], this[j + 1]) > 0) :","(String(this[j]) > String(this[j + 1]))) {","var swap = this[j];","var hasSwap = j in this;","if ((j + 1) in this) {","this[j] = this[j + 1];","} else {","delete this[j];","}","if (hasSwap) {","this[j + 1] = swap;","} else {","delete this[j + 1];","}","changes++;","}","}","if (!changes) break;","}","return this;","}",");","createArrayMethod_(","function toLocaleString() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var out = [];","for (var i = 0; i < len; i++) {","out[i] = (o[i] === null || o[i] === undefined) ? '' : o[i].toLocaleString();","}","return out.join(',');","}",");","})();","")}function ts(e,t){var n=function(r){return r=arguments.length?Ce.String(r):"",ve(e)?(this.data=r,this):r};for(e.J=e.i(n,!0),e.g(t,"String",e.J,C),e.g(e.J,"fromCharCode",e.i(String.fromCharCode,!1),C),t="charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "),n=0;n<t.length;n++)K(e,e.J,t[n],String.prototype[t[n]]);n=function(r,o,i){o=e.R(o),i=e.R(i);try{return String(this).localeCompare(r,o,i)}catch(a){R(e,e.D,"localeCompare: "+a.message)}},K(e,e.J,"localeCompare",n),n=function(r,o,i){var a=String(this);if(o=o?Number(o):void 0,q(e,r,e.I)&&(r=r.data,Je(e,r,i),e.REGEXP_MODE===2)){if(he)r=qe(e,"string.split(separator, limit)",{string:a,separator:r,limit:o},r,i),r!==$e&&i(fe(e,r));else{var c=e.ha(),p=Xe(e,r,c,i);c.onmessage=function(f){clearTimeout(p),i(fe(e,f.data))},c.postMessage(["split",a,r,o])}return}r=a.split(r,o),i(fe(e,r))},Ye(e,e.J,"split",n),n=function(r,o){var i=String(this);if(r=q(e,r,e.I)?r.data:new RegExp(r),Je(e,r,o),e.REGEXP_MODE===2)if(he)r=qe(e,"string.match(regexp)",{string:i,regexp:r},r,o),r!==$e&&o(r&&fe(e,r));else{var a=e.ha(),c=Xe(e,r,a,o);a.onmessage=function(p){clearTimeout(c),o(p.data&&fe(e,p.data))},a.postMessage(["match",i,r])}else r=i.match(r),o(r&&fe(e,r))},Ye(e,e.J,"match",n),n=function(r,o){var i=String(this);if(q(e,r,e.I)?r=r.data:r=new RegExp(r),Je(e,r,o),e.REGEXP_MODE===2)if(he)r=qe(e,"string.search(regexp)",{string:i,regexp:r},r,o),r!==$e&&o(r);else{var a=e.ha(),c=Xe(e,r,a,o);a.onmessage=function(p){clearTimeout(c),o(p.data)},a.postMessage(["search",i,r])}else o(i.search(r))},Ye(e,e.J,"search",n),n=function(r,o,i){var a=String(this);if(o=String(o),q(e,r,e.I)&&(r=r.data,Je(e,r,i),e.REGEXP_MODE===2)){if(he)r=qe(e,"string.replace(substr, newSubstr)",{string:a,substr:r,newSubstr:o},r,i),r!==$e&&i(r);else{var c=e.ha(),p=Xe(e,r,c,i);c.onmessage=function(f){clearTimeout(p),i(f.data)},c.postMessage(["replace",a,r,o])}return}i(a.replace(r,o))},Ye(e,e.J,"replace",n),e.ba.push("(function() {","var replace_ = String.prototype.replace;","String.prototype.replace = function replace(substr, newSubstr) {","if (typeof newSubstr !== 'function') {","return replace_.call(this, substr, newSubstr);","}","var str = this;","if (substr instanceof RegExp) {","var subs = [];","var m = substr.exec(str);","while (m) {","m.push(m.index, str);","var inject = newSubstr.apply(null, m);","subs.push([m.index, m[0].length, inject]);","m = substr.global ? substr.exec(str) : null;","}","for (var i = subs.length - 1; i >= 0; i--) {","str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);","}","} else {","var i = str.indexOf(substr);","if (i !== -1) {","var inject = newSubstr(str.substr(i, substr.length), i, str);","str = str.substring(0, i) + inject + str.substring(i + substr.length);","}","}","return str;","};","})();","")}function ns(e,t){e.mb=e.i(function(n){return n=Ce.Boolean(n),ve(e)?(this.data=n,this):n},!0),e.g(t,"Boolean",e.mb,C)}function rs(e,t){var n=function(r){return r=arguments.length?Ce.Number(r):0,ve(e)?(this.data=r,this):r};for(e.aa=e.i(n,!0),e.g(t,"Number",e.aa,C),t=["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"],n=0;n<t.length;n++)e.g(e.aa,t[n],Number[t[n]],Ge);n=function(r){try{return Number(this).toExponential(r)}catch(o){R(e,e.D,o.message)}},K(e,e.aa,"toExponential",n),n=function(r){try{return Number(this).toFixed(r)}catch(o){R(e,e.D,o.message)}},K(e,e.aa,"toFixed",n),n=function(r){try{return Number(this).toPrecision(r)}catch(o){R(e,e.D,o.message)}},K(e,e.aa,"toPrecision",n),n=function(r){try{return Number(this).toString(r)}catch(o){R(e,e.D,o.message)}},K(e,e.aa,"toString",n),n=function(r,o){r=r?e.R(r):void 0,o=o?e.R(o):void 0;try{return Number(this).toLocaleString(r,o)}catch(i){R(e,e.D,"toLocaleString: "+i.message)}},K(e,e.aa,"toLocaleString",n)}function os(e,t){var n=function(o,i){if(!ve(e))return Ce.Date();var a=[null].concat(Array.from(arguments));return this.data=new(Function.prototype.bind.apply(Ce.Date,a)),this};e.$=e.i(n,!0),e.nb=e.$.h.prototype,e.g(t,"Date",e.$,C),e.g(e.$,"now",e.i(Date.now,!1),C),e.g(e.$,"parse",e.i(Date.parse,!1),C),e.g(e.$,"UTC",e.i(Date.UTC,!1),C),t="getDate getDay getFullYear getHours getMilliseconds getMinutes getMonth getSeconds getTime getTimezoneOffset getUTCDate getUTCDay getUTCFullYear getUTCHours getUTCMilliseconds getUTCMinutes getUTCMonth getUTCSeconds getYear setDate setFullYear setHours setMilliseconds setMinutes setMonth setSeconds setTime setUTCDate setUTCFullYear setUTCHours setUTCMilliseconds setUTCMinutes setUTCMonth setUTCSeconds setYear toDateString toISOString toJSON toGMTString toLocaleDateString toLocaleString toLocaleTimeString toTimeString toUTCString".split(" ");for(var r=0;r<t.length;r++)n=function(o){return function(i){var a=this.data;a instanceof Date||R(e,e.j,o+" not called on a Date");for(var c=[],p=0;p<arguments.length;p++)c[p]=e.R(arguments[p]);return a[o].apply(a,c)}}(t[r]),K(e,e.$,t[r],n)}function is(e,t){var n=function(r,o){if(ve(e))var i=this;else{if(o===void 0&&q(e,r,e.I))return r;i=e.s(e.Ma)}r=r===void 0?"":String(r),o=o?String(o):"",/^[gmi]*$/.test(o)||R(e,e.T,"Invalid regexp flag: "+o);try{var a=new Ce.RegExp(r,o)}catch(c){R(e,e.T,c.message)}return Tn(e,i,a),i};e.I=e.i(n,!0),e.Ma=e.I.h.prototype,e.g(t,"RegExp",e.I,C),e.g(e.I.h.prototype,"global",void 0,Z),e.g(e.I.h.prototype,"ignoreCase",void 0,Z),e.g(e.I.h.prototype,"multiline",void 0,Z),e.g(e.I.h.prototype,"source","(?:)",Z),e.ba.push("Object.defineProperty(RegExp.prototype, 'test',","{configurable: true, writable: true, value:","function test(str) {","return !!this.exec(str);","}","});"),n=function(r,o){function i(y){if(y){var v=fe(e,y);return e.g(v,"index",y.index),e.g(v,"input",y.input),v}return null}var a=this.data;if(r=String(r),a.lastIndex=Number(e.G(this,"lastIndex")),Je(e,a,o),e.REGEXP_MODE===2)if(he)r=qe(e,"regexp.exec(string)",{string:r,regexp:a},a,o),r!==$e&&(e.g(this,"lastIndex",a.lastIndex),o(i(r)));else{var c=e.ha(),p=Xe(e,a,c,o),f=this;c.onmessage=function(y){clearTimeout(p),e.g(f,"lastIndex",y.data[1]),o(i(y.data[0]))},c.postMessage(["exec",a,a.lastIndex,r])}else r=a.exec(r),e.g(this,"lastIndex",a.lastIndex),o(i(r))},Ye(e,e.I,"exec",n)}function ss(e,t){function n(r){var o=e.i(function(i){var a=ve(e)?this:e.Aa(o);return cn(e,a,i),a},!0);return e.g(o,"prototype",e.Aa(e.D),C),e.g(o.h.prototype,"name",r,C),e.g(t,r,o,C),o}e.D=e.i(function(r){var o=ve(e)?this:e.Aa(e.D);return cn(e,o,r),o},!0),e.g(t,"Error",e.D,C),e.g(e.D.h.prototype,"message","",C),e.g(e.D.h.prototype,"name","Error",C),n("EvalError"),e.ob=n("RangeError"),e.pb=n("ReferenceError"),e.T=n("SyntaxError"),e.j=n("TypeError"),e.Gb=n("URIError")}function as(e,t){var n=e.s(e.M);e.g(t,"Math",n,C);var r="E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");for(t=0;t<r.length;t++)e.g(n,r[t],Math[r[t]],Z);for(r="abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "),t=0;t<r.length;t++)e.g(n,r[t],e.i(Math[r[t]],!1),C)}function ls(e,t){var n=e.s(e.M);e.g(t,"JSON",n,C),t=function(r){try{var o=JSON.parse(String(r))}catch(i){R(e,e.T,i.message)}return e.Ia(o)},e.g(n,"parse",e.i(t,!1)),t=function(r,o,i){o&&o.H==="Function"?R(e,e.j,"Function replacer on JSON.stringify not supported"):o&&o.H==="Array"?(o=uo(e,o),o=o.filter(function(c){return typeof c=="string"||typeof c=="number"})):o=null,typeof i!="string"&&typeof i!="number"&&(i=void 0),r=e.R(r);try{var a=JSON.stringify(r,o,i)}catch(c){R(e,e.j,c.message)}return a},e.g(n,"stringify",e.i(t,!1))}function q(e,t,n){if(t==null||!n)return!1;if(n=n.h.prototype,t===n)return!0;for(t=ge(e,t);t;){if(t===n)return!0;t=t.xa}return!1}function Tn(e,t,n){t.data=new RegExp(n.source,n.flags),e.g(t,"lastIndex",n.lastIndex,C),e.g(t,"source",n.source,Z),e.g(t,"global",n.global,Z),e.g(t,"ignoreCase",n.ignoreCase,Z),e.g(t,"multiline",n.multiline,Z)}function cn(e,t,n){n&&e.g(t,"message",String(n),C),n=[];for(var r=e.o.length-1;0<=r;r--){var o=e.o[r],i=o.node;i.type==="CallExpression"&&(o=o.U)&&n.length&&(n[n.length-1].Ob=e.G(o,"name")),!i.X||n.length&&i.type!=="CallExpression"||n.push({Nb:i.X})}for(r=String(e.G(t,"name")),i=String(e.G(t,"message")),i=r+": "+i+`
|
|
@@ -16,7 +16,7 @@ function theFunction() {
|
|
|
16
16
|
${y}
|
|
17
17
|
}
|
|
18
18
|
theFunction();
|
|
19
|
-
`,g=function(A,U){p.forEach(([G,I])=>{if(G==="state")A.setProperty(U,G,A.createConnectedObject(I),A.READONLY_DESCRIPTOR);else{const re=JSON.stringify(I);A.setProperty(U,Tr(G),re)}})},k=new b(v,g);return k.run(),k.pseudoToNative(k.value)};function fs(){var e;return typeof process<"u"&&be((e=process==null?void 0:process.versions)==null?void 0:e.node)}let Ir=!1;const hs=({shouldLogWarning:e})=>{var o;if(!fs())return!1;const t=process.arch==="arm64",n=process.version.startsWith("v20"),r=(o=process.env.NODE_OPTIONS)==null?void 0:o.includes("--no-node-snapshot");return t&&n&&!r?(e&&!Ir&&(Ir=!0,ee.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n ")),!0):!1},gs=e=>D()||hs({shouldLogWarning:!0})?qi(e):ms(e),ys=/^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/,bs=/(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/,vs=e=>{var t,n,r,o,i,a;return((r=(n=(t=ys.exec(e.trim()))==null?void 0:t.groups)==null?void 0:n.getPath)==null?void 0:r.slice(1))||((a=(i=(o=bs.exec(e.trim()))==null?void 0:o.groups)==null?void 0:i.getPath)==null?void 0:a.slice(1))},ks=5e3,Rr=Xr(ks),Ss=e=>{let t=Rr.get(e);return t===void 0&&(t=vs(e)||null,Rr.set(e,t)),t},Cs=(e,t,n)=>{const r=n.split(".")[0],o=t&&Object.prototype.hasOwnProperty.call(t,r)?t:e;return Yr(o,n)};function Ue({code:e,context:t,localState:n,rootState:r,rootSetState:o,event:i,isExpression:a=!0,trackingContext:c}){if(e.trim()==="")return;const p=Ss(e.trim());if(p)return Cs(r,n,p);const f={code:Ki(e,{isExpression:a}),builder:_i(c),context:t,event:i,rootSetState:o,rootState:r,localState:n};try{return gs(f)}catch(y){ee.error("Failed code evaluation: "+y.message,{code:e});return}}function ws(e,t){var n;return{...(n=e.component)==null?void 0:n.options,...e.options,...Es(e,t)}}const Es=(e,t)=>{var n,r;if(((n=e.component)==null?void 0:n.name)==="Text"&&((r=e.component.options)!=null&&r.text)&&typeof e.component.options.text=="string")return{...e.component.options,text:e.component.options.text.replace(/{{([^}]+)}}/g,(o,i)=>Ue({code:i,context:t,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState}))}};function ho(e){return e&&typeof e=="object"&&e["@type"]==="@builder.io/core:LocalizedValue"}const Ts=e=>{if(Array.isArray(e))return!0;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null};function kt(e,t,n){if(e===null||typeof e!="object")return e;if(ho(e))return kt(e[t]??void 0,t,n);if(!Ts(e))return e;if(n.has(e))return n.get(e);n.set(e,e);let r=null;if(Array.isArray(e))for(let i=0;i<e.length;i++){const a=kt(e[i],t,n);a!==e[i]&&(r||(r=e.slice()),r[i]=a)}else for(const i of Object.keys(e)){const a=kt(e[i],t,n);a!==e[i]&&(r||(r={...e}),r[i]=a)}const o=r??e;return n.set(e,o),o}function Is(e,t){var o;const n=(o=e.component)==null?void 0:o.options;if(!n||typeof n!="object"||ho(n))return e;const r=kt(n,t??"Default",new WeakMap);return r===n?e:(t||console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"),{...e,component:{...e.component,options:r}})}function st(e){const t=e||(D()?window.location.search:void 0);return t?Zr(t).indexOf("builder.preview=")!==-1:!1}const go=()=>z()||st(),yo=e=>e.toString().match(/[^.[\]]+/g),bo=e=>Math.abs(Number(e))>>0===+e,vo=e=>e.some((t,n)=>t==="__proto__"||n<e.length-1&&(t==="constructor"||t==="prototype")),ko=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0,Rs=(e,t,n)=>{if(Object(e)!==e)return e;const r=Array.isArray(t)?t:yo(t);return!r||vo(r)||(r.slice(0,-1).reduce((o,i,a)=>{const c=ko(o,i);return Object(c)===c?c:o[i]=bo(r[a+1])?[]:{}},e)[r[r.length-1]]=n),e},As=(e,t,n,r)=>{if(Object(e)!==e)return e;const o=yo(t);if(!o||vo(o))return e;r.add(e);let i=e;for(let a=0;a<o.length-1;a++){const c=o[a];let p=ko(i,c);Object(p)!==p?(p=bo(o[a+1])?[]:{},r.add(p),i[c]=p):typeof p=="object"&&!r.has(p)&&(p=Array.isArray(p)?p.slice():{...p},r.add(p),i[c]=p),i=p}return i[o[o.length-1]]=n,e};const Bs=({block:e,context:t,localState:n,rootState:r,rootSetState:o})=>{if(!e.bindings)return e;const i=new WeakSet,a={...e,properties:{...e.properties},actions:{...e.actions}};i.add(a.properties),i.add(a.actions);for(const c in e.bindings){const p=e.bindings[c],f=Ue({code:p,localState:n,rootState:r,rootSetState:o,context:t});As(a,c==="id"?"properties.id":c,f,i)}return a},Ar=new WeakMap,Ps=e=>{if(!e.bindings)return!1;for(const t in e.bindings)return!0;return!1};function So({block:e,context:t,localState:n,rootState:r,rootSetState:o}){const i=r.locale,a=!Ps(e)&&typeof e=="object"&&e!==null&&!go(),c=i??"";if(a){const f=Ar.get(e);if(f&&f.locale===c)return f.block}let p=e;return p=Bs({block:p,localState:n,rootState:r,rootSetState:o,context:t}),p=Is(p,i),a&&Ar.set(e,{locale:c,block:p}),p}const Co=e=>({type:"builder.registerComponent",data:Nn(e)}),Os=e=>{const t=e.toString().trim(),n=/^[a-zA-Z0-9_]+\s*=>/i.test(t);return`return (${!t.startsWith("function")&&!t.startsWith("async")&&!t.startsWith("(")&&!n?"function ":""}${t}).apply(this, arguments)`};function Nn(e){return JSON.parse(JSON.stringify(e,(t,n)=>typeof n=="function"?Os(n):n))}const Br={};function xs(e,t){e==="plugin"&&(t=Nn(t));let n=Br[e];if(n||(n=Br[e]=[]),n.push(t),D()){const r={type:"builder.register",data:{type:e,info:t}};try{parent.postMessage(r,"*"),parent!==window&&window.postMessage(r,"*")}catch(o){console.debug("Could not postmessage",o)}}}function $s(e){var t;if(D()){const n=JSON.parse(JSON.stringify(e));e.action&&(n.action=e.action.toString()),(t=window.parent)==null||t.postMessage({type:"builder.registerAction",data:n},"*")}}const Pr={};function Ns(e){if(D()){Object.assign(Pr,e);const t={type:"builder.settingsChange",data:Pr};parent.postMessage(t,"*")}}const Or="builder.",Vs="options.",Vn=e=>{if(!e)return{};const t=Qr(e),n={};return Object.keys(t).forEach(r=>{if(r.startsWith(Or)){const o=r.replace(Or,"").replace(Vs,"");n[o]=t[r]}}),n},js=()=>{if(!D())return{};const e=new URLSearchParams(window.location.search);return Vn(e)},Ds=["*.beta.builder.io","beta.builder.io","builder.io","localhost","qa.builder.io"];function wo(e,t){let n;try{n=new URL(t.origin)}catch{return!1}return n.protocol!=="http:"&&n.protocol!=="https:"?!1:(e||Ds).findIndex(r=>r.startsWith("*.")?n.hostname.endsWith(r.slice(1)):r===n.hostname)>-1}let xr=!1;const Eo=e=>{var t,n;xr||(xr=!0,D()&&((t=window.parent)==null||t.postMessage({type:"builder.sdkInfo",data:{target:W,version:to,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0,modelName:e.modelName,apiKey:e.apiKey,supportsXSmallBreakpoint:!0,blockLevelPersonalization:!0}},"*"),(n=window.parent)==null||n.postMessage({type:"builder.updateContent",data:{options:e}},"*"),window.addEventListener("message",r=>{var i,a;if(!wo(e.trustedHosts,r))return;const{data:o}=r;if(o!=null&&o.type)switch(o.type){case"builder.evaluate":{const c=o.data.text,p=o.data.arguments||[],f=o.data.id,y=new Function(c);let v,g=null;try{v=y.apply(null,p)}catch(k){g=k}g?(i=window.parent)==null||i.postMessage({type:"builder.evaluateError",data:{id:f,error:g.message}},"*"):v&&typeof v.then=="function"?v.then(k=>{var E;(E=window.parent)==null||E.postMessage({type:"builder.evaluateResult",data:{id:f,result:k}},"*")}).catch(console.error):(a=window.parent)==null||a.postMessage({type:"builder.evaluateResult",data:{result:v,id:f}},"*");break}}})))},To=({model:e,trustedHosts:t,callbacks:n})=>r=>{if(!wo(t,r))return;const{data:o}=r;if(o)switch(o.type){case"builder.configureSdk":{n.configureSdk(o.data);break}case"builder.triggerAnimation":{n.animation(o.data);break}case"builder.resetState":{const i=o.data,a=i.model,c=i==null?void 0:i.state,p=i.editType;a===e&&c&&n.stateUpdate(c,p);break}case"builder.contentUpdate":{const i=o.data,a=i.key||i.alias||i.entry||i.modelName,c=i.data,p=i.editType;a===e&&n.contentUpdate(c,p);break}}},Us=({model:e,apiKey:t,callback:n,trustedHosts:r})=>{if(!D)return ee.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."),()=>{};Eo({modelName:e,apiKey:t});const o=To({callbacks:{contentUpdate:n,animation:()=>{},configureSdk:()=>{},stateUpdate:()=>{}},model:e,trustedHosts:r});return window.addEventListener("message",o),()=>{window.removeEventListener("message",o)}},Ws="builder.tests",jn=e=>`${Ws}.${e}`,Fs=({contentId:e})=>ro({name:jn(e),canTrack:!0}),Ls=({contentId:e})=>At({name:jn(e),canTrack:!0}),Ms=({contentId:e,value:t})=>kn({name:jn(e),value:t,canTrack:!0}),Io=e=>be(e.id)&&be(e.variations)&&Object.keys(e.variations).length>0,Hs=({id:e,variations:t})=>{var o;let n=0;const r=Math.random();for(const i in t){const a=(o=t[i])==null?void 0:o.testRatio;if(n+=a,r<n)return i}return e},Ro=e=>{const t=Hs(e);return Ms({contentId:e.id,value:t}).catch(n=>{ee.error("could not store A/B test variation: ",n)}),t},Ao=({item:e,testGroupId:t})=>{const n=e.variations[t];return t===e.id||!n?{testVariationId:e.id,testVariationName:"Default"}:{data:n.data,testVariationId:n.id,testVariationName:n.name||(n.id===e.id?"Default":"")}},_s=({item:e,canTrack:t})=>{if(!t)return e;if(!e)return;if(!Io(e))return e;const n=Ls({contentId:e.id})||Ro({variations:e.variations,id:e.id}),r=Ao({item:e,testGroupId:n});return{...e,...r}},Ks=async({item:e,canTrack:t})=>{if(!t||!Io(e))return e;const r=await Fs({contentId:e.id})||Ro({variations:e.variations,id:e.id}),o=Ao({item:e,testGroupId:r});return{...e,...o}};const zs="builder.preview",Gs="BUILDER_STUDIO",$r="builder.userAttributes.",qs=e=>e==="true"?!0:e==="false"?!1:e,Nr=()=>{if(!D())return{};const e=new URLSearchParams(window.location.search);if(e.get(zs)!==Gs)return{};const t={};return e.forEach((n,r)=>{r.startsWith($r)&&(t[r.slice($r.length)]=qs(n))}),t},Vr="builder.userAttributes";function jr(){let e=!0;const t=new Set,n=()=>{const r=At({name:Vr,canTrack:e});return r?JSON.parse(r):{}};return{setUserAttributes(r){if(!D())return;const o={...n(),...r};kn({name:Vr,value:JSON.stringify(o),canTrack:e});const i=Nr();t.forEach(a=>a({...o,...i}))},getUserAttributes(){return D()?{...n(),...Nr()}:{}},subscribeOnUserAttributesChange(r,{fireImmediately:o}={}){return t.add(r),o&&r(this.getUserAttributes()),function(){t.delete(r)}},setCanTrack(r){e=r}}}let pn;D()&&W==="qwik"?(window.__BUILDER_USER_ATTRIBUTES_SERVICE__||(window.__BUILDER_USER_ATTRIBUTES_SERVICE__=jr()),pn=window.__BUILDER_USER_ATTRIBUTES_SERVICE__):pn=jr();const It=pn,Js=e=>{It.setUserAttributes(e)},je=e=>{const t=be(e)?e:!0;return It.setCanTrack(t),t};function Xs(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:globalThis}function Ys(){const e=Xs().fetch;if(typeof e>"u")throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
19
|
+
`,g=function(A,U){p.forEach(([G,I])=>{if(G==="state")A.setProperty(U,G,A.createConnectedObject(I),A.READONLY_DESCRIPTOR);else{const re=JSON.stringify(I);A.setProperty(U,Tr(G),re)}})},k=new b(v,g);return k.run(),k.pseudoToNative(k.value)};function fs(){var e;return typeof process<"u"&&be((e=process==null?void 0:process.versions)==null?void 0:e.node)}let Ir=!1;const hs=({shouldLogWarning:e})=>{var o;if(!fs())return!1;const t=process.arch==="arm64",n=process.version.startsWith("v20"),r=(o=process.env.NODE_OPTIONS)==null?void 0:o.includes("--no-node-snapshot");return t&&n&&!r?(e&&!Ir&&(Ir=!0,ee.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n ")),!0):!1},gs=e=>D()||hs({shouldLogWarning:!0})?qi(e):ms(e),ys=/^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/,bs=/(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/,vs=e=>{var t,n,r,o,i,a;return((r=(n=(t=ys.exec(e.trim()))==null?void 0:t.groups)==null?void 0:n.getPath)==null?void 0:r.slice(1))||((a=(i=(o=bs.exec(e.trim()))==null?void 0:o.groups)==null?void 0:i.getPath)==null?void 0:a.slice(1))},ks=5e3,Rr=Xr(ks),Ss=e=>{let t=Rr.get(e);return t===void 0&&(t=vs(e)||null,Rr.set(e,t)),t},Cs=(e,t,n)=>{const r=n.split(".")[0],o=t&&Object.prototype.hasOwnProperty.call(t,r)?t:e;return Yr(o,n)};function Ue({code:e,context:t,localState:n,rootState:r,rootSetState:o,event:i,isExpression:a=!0,trackingContext:c}){if(e.trim()==="")return;const p=Ss(e.trim());if(p)return Cs(r,n,p);const f={code:Ki(e,{isExpression:a}),builder:_i(c),context:t,event:i,rootSetState:o,rootState:r,localState:n};try{return gs(f)}catch(y){ee.error("Failed code evaluation: "+y.message,{code:e});return}}function ws(e,t){var n;return{...(n=e.component)==null?void 0:n.options,...e.options,...Es(e,t)}}const Es=(e,t)=>{var n,r;if(((n=e.component)==null?void 0:n.name)==="Text"&&((r=e.component.options)!=null&&r.text)&&typeof e.component.options.text=="string")return{...e.component.options,text:e.component.options.text.replace(/{{([^}]+)}}/g,(o,i)=>Ue({code:i,context:t,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState}))}};function ho(e){return e&&typeof e=="object"&&e["@type"]==="@builder.io/core:LocalizedValue"}const Ts=e=>{if(Array.isArray(e))return!0;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null};function kt(e,t,n){if(e===null||typeof e!="object")return e;if(ho(e))return kt(e[t]??void 0,t,n);if(!Ts(e))return e;if(n.has(e))return n.get(e);n.set(e,e);let r=null;if(Array.isArray(e))for(let i=0;i<e.length;i++){const a=kt(e[i],t,n);a!==e[i]&&(r||(r=e.slice()),r[i]=a)}else for(const i of Object.keys(e)){const a=kt(e[i],t,n);a!==e[i]&&(r||(r={...e}),r[i]=a)}const o=r??e;return n.set(e,o),o}function Is(e,t){var o;const n=(o=e.component)==null?void 0:o.options;if(!n||typeof n!="object"||ho(n))return e;const r=kt(n,t??"Default",new WeakMap);return r===n?e:(t||console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"),{...e,component:{...e.component,options:r}})}function st(e){const t=e||(D()?window.location.search:void 0);return t?Zr(t).indexOf("builder.preview=")!==-1:!1}const go=()=>z()||st(),yo=e=>e.toString().match(/[^.[\]]+/g),bo=e=>Math.abs(Number(e))>>0===+e,vo=e=>e.some((t,n)=>t==="__proto__"||n<e.length-1&&(t==="constructor"||t==="prototype")),ko=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0,Rs=(e,t,n)=>{if(Object(e)!==e)return e;const r=Array.isArray(t)?t:yo(t);return!r||vo(r)||(r.slice(0,-1).reduce((o,i,a)=>{const c=ko(o,i);return Object(c)===c?c:o[i]=bo(r[a+1])?[]:{}},e)[r[r.length-1]]=n),e},As=(e,t,n,r)=>{if(Object(e)!==e)return e;const o=yo(t);if(!o||vo(o))return e;r.add(e);let i=e;for(let a=0;a<o.length-1;a++){const c=o[a];let p=ko(i,c);Object(p)!==p?(p=bo(o[a+1])?[]:{},r.add(p),i[c]=p):typeof p=="object"&&!r.has(p)&&(p=Array.isArray(p)?p.slice():{...p},r.add(p),i[c]=p),i=p}return i[o[o.length-1]]=n,e};const Bs=({block:e,context:t,localState:n,rootState:r,rootSetState:o})=>{if(!e.bindings)return e;const i=new WeakSet,a={...e,properties:{...e.properties},actions:{...e.actions}};i.add(a.properties),i.add(a.actions);for(const c in e.bindings){const p=e.bindings[c],f=Ue({code:p,localState:n,rootState:r,rootSetState:o,context:t});As(a,c==="id"?"properties.id":c,f,i)}return a},Ar=new WeakMap,Ps=e=>{if(!e.bindings)return!1;for(const t in e.bindings)return!0;return!1};function So({block:e,context:t,localState:n,rootState:r,rootSetState:o}){const i=r.locale,a=!Ps(e)&&typeof e=="object"&&e!==null&&!go(),c=i??"";if(a){const f=Ar.get(e);if(f&&f.locale===c)return f.block}let p=e;return p=Bs({block:p,localState:n,rootState:r,rootSetState:o,context:t}),p=Is(p,i),a&&Ar.set(e,{locale:c,block:p}),p}const Co=e=>({type:"builder.registerComponent",data:Nn(e)}),Os=e=>{const t=e.toString().trim(),n=/^[a-zA-Z0-9_]+\s*=>/i.test(t);return`return (${!t.startsWith("function")&&!t.startsWith("async")&&!t.startsWith("(")&&!n?"function ":""}${t}).apply(this, arguments)`};function Nn(e){return JSON.parse(JSON.stringify(e,(t,n)=>typeof n=="function"?Os(n):n))}const Br={};function xs(e,t){e==="plugin"&&(t=Nn(t));let n=Br[e];if(n||(n=Br[e]=[]),n.push(t),D()){const r={type:"builder.register",data:{type:e,info:t}};try{parent.postMessage(r,"*"),parent!==window&&window.postMessage(r,"*")}catch(o){console.debug("Could not postmessage",o)}}}function $s(e){var t;if(D()){const n=JSON.parse(JSON.stringify(e));e.action&&(n.action=e.action.toString()),(t=window.parent)==null||t.postMessage({type:"builder.registerAction",data:n},"*")}}const Pr={};function Ns(e){if(D()){Object.assign(Pr,e);const t={type:"builder.settingsChange",data:Pr};parent.postMessage(t,"*")}}const Or="builder.",Vs="options.",Vn=e=>{if(!e)return{};const t=Qr(e),n={};return Object.keys(t).forEach(r=>{if(r.startsWith(Or)){const o=r.replace(Or,"").replace(Vs,"");n[o]=t[r]}}),n},js=()=>{if(!D())return{};const e=new URLSearchParams(window.location.search);return Vn(e)},Ds=["*.beta.builder.io","beta.builder.io","builder.io","localhost","qa.builder.io"];function wo(e,t){let n;try{n=new URL(t.origin)}catch{return!1}return n.protocol!=="http:"&&n.protocol!=="https:"?!1:(e||Ds).findIndex(r=>r.startsWith("*.")?n.hostname.endsWith(r.slice(1)):r===n.hostname)>-1}let xr=!1;const Eo=e=>{var t,n;xr||(xr=!0,D()&&((t=window.parent)==null||t.postMessage({type:"builder.sdkInfo",data:{target:W,version:to,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0,modelName:e.modelName,apiKey:e.apiKey,supportsXSmallBreakpoint:!0,blockLevelPersonalization:!0}},"*"),(n=window.parent)==null||n.postMessage({type:"builder.updateContent",data:{options:e}},"*"),window.addEventListener("message",r=>{var i,a;if(!wo(e.trustedHosts,r))return;const{data:o}=r;if(o!=null&&o.type)switch(o.type){case"builder.evaluate":{const c=o.data.text,p=o.data.arguments||[],f=o.data.id,y=new Function(c);let v,g=null;try{v=y.apply(null,p)}catch(k){g=k}g?(i=window.parent)==null||i.postMessage({type:"builder.evaluateError",data:{id:f,error:g.message}},"*"):v&&typeof v.then=="function"?v.then(k=>{var E;(E=window.parent)==null||E.postMessage({type:"builder.evaluateResult",data:{id:f,result:k}},"*")}).catch(console.error):(a=window.parent)==null||a.postMessage({type:"builder.evaluateResult",data:{result:v,id:f}},"*");break}}})))},To=({model:e,trustedHosts:t,callbacks:n})=>r=>{if(!wo(t,r))return;const{data:o}=r;if(o)switch(o.type){case"builder.configureSdk":{n.configureSdk(o.data);break}case"builder.triggerAnimation":{n.animation(o.data);break}case"builder.resetState":{const i=o.data,a=i.model,c=i==null?void 0:i.state,p=i.editType;a===e&&c&&n.stateUpdate(c,p);break}case"builder.contentUpdate":{const i=o.data,a=i.key||i.alias||i.entry||i.modelName,c=i.data,p=i.editType;a===e&&n.contentUpdate(c,p);break}}},Us=({model:e,apiKey:t,callback:n,trustedHosts:r})=>{if(!D)return ee.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."),()=>{};Eo({modelName:e,apiKey:t});const o=To({callbacks:{contentUpdate:n,animation:()=>{},configureSdk:()=>{},stateUpdate:()=>{}},model:e,trustedHosts:r});return window.addEventListener("message",o),()=>{window.removeEventListener("message",o)}},Ws="builder.tests",jn=e=>`${Ws}.${e}`,Fs=({contentId:e})=>ro({name:jn(e),canTrack:!0}),Ls=({contentId:e})=>At({name:jn(e),canTrack:!0}),Ms=({contentId:e,value:t})=>{const n=new Date;return n.setDate(n.getDate()+30),kn({name:jn(e),value:t,expires:n,canTrack:!0})},Io=e=>be(e.id)&&be(e.variations)&&Object.keys(e.variations).length>0,Hs=({id:e,variations:t})=>{var o;let n=0;const r=Math.random();for(const i in t){const a=(o=t[i])==null?void 0:o.testRatio;if(n+=a,r<n)return i}return e},Ro=e=>{const t=Hs(e);return Ms({contentId:e.id,value:t}).catch(n=>{ee.error("could not store A/B test variation: ",n)}),t},Ao=({item:e,testGroupId:t})=>{const n=e.variations[t];return t===e.id||!n?{testVariationId:e.id,testVariationName:"Default"}:{data:n.data,testVariationId:n.id,testVariationName:n.name||(n.id===e.id?"Default":"")}},_s=({item:e,canTrack:t})=>{if(!t)return e;if(!e)return;if(!Io(e))return e;const n=Ls({contentId:e.id})||Ro({variations:e.variations,id:e.id}),r=Ao({item:e,testGroupId:n});return{...e,...r}},Ks=async({item:e,canTrack:t})=>{if(!t||!Io(e))return e;const r=await Fs({contentId:e.id})||Ro({variations:e.variations,id:e.id}),o=Ao({item:e,testGroupId:r});return{...e,...o}};const zs="builder.preview",Gs="BUILDER_STUDIO",$r="builder.userAttributes.",qs=e=>e==="true"?!0:e==="false"?!1:e,Nr=()=>{if(!D())return{};const e=new URLSearchParams(window.location.search);if(e.get(zs)!==Gs)return{};const t={};return e.forEach((n,r)=>{r.startsWith($r)&&(t[r.slice($r.length)]=qs(n))}),t},Vr="builder.userAttributes";function jr(){let e=!0;const t=new Set,n=()=>{const r=At({name:Vr,canTrack:e});return r?JSON.parse(r):{}};return{setUserAttributes(r){if(!D())return;const o={...n(),...r};kn({name:Vr,value:JSON.stringify(o),canTrack:e});const i=Nr();t.forEach(a=>a({...o,...i}))},getUserAttributes(){return D()?{...n(),...Nr()}:{}},subscribeOnUserAttributesChange(r,{fireImmediately:o}={}){return t.add(r),o&&r(this.getUserAttributes()),function(){t.delete(r)}},setCanTrack(r){e=r}}}let pn;D()&&W==="qwik"?(window.__BUILDER_USER_ATTRIBUTES_SERVICE__||(window.__BUILDER_USER_ATTRIBUTES_SERVICE__=jr()),pn=window.__BUILDER_USER_ATTRIBUTES_SERVICE__):pn=jr();const It=pn,Js=e=>{It.setUserAttributes(e)},je=e=>{const t=be(e)?e:!0;return It.setCanTrack(t),t};function Xs(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:globalThis}function Ys(){const e=Xs().fetch;if(typeof e>"u")throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
20
20
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`),new Error("Builder SDK could not find a global `fetch` function");return e}const Qs=Ys();function dn(e,t=null,n="."){return Object.keys(e).reduce((r,o)=>{const i=e[o],a=[t,o].filter(Boolean).join(n);return[typeof i=="object",i!==null,!(Array.isArray(i)&&i.length===0)].every(Boolean)?{...r,...dn(i,a,n)}:{...r,[a]:i}},{})}function Bo(e,t,n={}){for(const r in e){const o=e[r],i=t?t+"."+r:r;o&&typeof o=="object"&&!Array.isArray(o)&&!Object.keys(o).find(a=>a.startsWith("$"))?Bo(o,i,n):n[i]=o}return n}function Zs(e){const t={};for(const n in e){const r=n.split(".");let o=t;for(let i=0;i<r.length;i++){const a=r[i];i===r.length-1?o[a]=e[n]:(o[a]=o[a]||{},o=o[a])}}return t}const ea="v3",Dr=e=>typeof e=="number"&&!isNaN(e)&&e>=0,Dn=e=>{const{limit:t=30,userAttributes:n,query:r,model:o,apiKey:i,enrich:a,enrichOptions:c,locale:p,apiVersion:f=ea,fields:y,omit:v,offset:g,cacheSeconds:k,staleCacheSeconds:E,sort:A,includeUnpublished:U,apiHost:G}=e;if(!i)throw new Error("Missing API key");if(!["v3"].includes(f))throw new Error(`Invalid apiVersion: expected 'v3', received '${f}'`);const I=t!==1,re=G||"https://cdn.builder.io",N=new URL(`${re}/api/${f}/content/${o}`);N.searchParams.set("apiKey",i),N.searchParams.set("limit",String(t)),N.searchParams.set("noTraverse",String(I)),N.searchParams.set("includeRefs",String(!0)),p&&N.searchParams.set("locale",p);let ae=n||{};if(a&&N.searchParams.set("enrich",String(a)),a&&c&&N.searchParams.set("enrichOptions",JSON.stringify(c)),N.searchParams.set("omit",v??"meta.componentsUsed"),y&&N.searchParams.set("fields",y),Number.isFinite(g)&&g>-1&&N.searchParams.set("offset",String(Math.floor(g))),typeof U=="boolean"&&N.searchParams.set("includeUnpublished",String(U)),k&&Dr(k)&&N.searchParams.set("cacheSeconds",String(k)),E&&Dr(E)&&N.searchParams.set("staleCacheSeconds",String(E)),A){const w=dn({sort:A});for(const oe in w)N.searchParams.set(oe,JSON.stringify(w[oe]))}const F={...js(),...Qr(e.options||{})};ae={...ae,...ra(F)};const X=dn(F);for(const w in X)w!=="apiKey"&&N.searchParams.set(w,String(X[w]));if(Object.keys(ae).length>0&&N.searchParams.set("userAttributes",JSON.stringify(ae)),r){const w=Bo({query:r});for(const oe in w)N.searchParams.set(oe,JSON.stringify(w[oe]))}return N},ta=e=>e==="true"?!0:e==="false"?!1:e,na=e=>{const t={};for(const n in e)n.startsWith("userAttributes.")&&(t[n]=ta(e[n]),delete e[n]);return t},ra=e=>{if(D()&&e.preview==="BUILDER_STUDIO"){e["userAttributes.urlPath"]=window.location.pathname,e["userAttributes.host"]=window.location.host;const t=na(e),{userAttributes:n}=Zs(t);return n}return{}},oa=e=>"results"in e;async function Ot(e){var r;const t=e.locale||((r=e.userAttributes)==null?void 0:r.locale);t&&(e.locale=t,e.userAttributes={locale:t,...e.userAttributes});const n=await Oo({...e,limit:1});return n&&n[0]||null}const ia=async e=>{var a;const t=Dn(e),n=e.fetch??Qs,r={...e.fetchOptions,headers:{...(a=e.fetchOptions)==null?void 0:a.headers,...no()}};return await(await n(t.href,r)).json()},Po=async(e,t,n=Dn(e))=>{const r=je(e.canTrack);if(n.search.includes("preview="),!r||!(D()||W==="reactNative"))return t.results;try{const o=[];for(const i of t.results)o.push(await Ks({item:i,canTrack:r}));t.results=o}catch(o){ee.error("Could not process A/B tests. ",o)}return t.results};async function Oo(e){const t=Dn(e),n=await ia(e);if(!oa(n))throw ee.error("Error fetching data. ",{url:t,content:n,options:e}),n;return Po(e,n)}const sa=async e=>{var r,o,i;const t=e.path||((r=e.url)==null?void 0:r.pathname)||((o=e.userAttributes)==null?void 0:o.urlPath),n={...e,apiKey:e.apiKey,model:e.model||"page",userAttributes:{...e.userAttributes,...t?{urlPath:t}:{}},options:Vn(e.searchParams||((i=e.url)==null?void 0:i.searchParams)||e.options)};return{apiKey:n.apiKey,model:n.model,content:await Ot(n)}},xt=e=>e?e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase():"";function aa(e,t,n={}){let r,o,i,a=null,c=0;const p=function(){c=n.leading===!1?0:Date.now(),a=null,i=e.apply(r,o),a||(r=o=null)};return function(){const f=Date.now();!c&&n.leading===!1&&(c=f);const y=t-(f-c);return r=this,o=arguments,y<=0||y>t?(a&&(clearTimeout(a),a=null),c=f,i=e.apply(r,o),a||(r=o=null)):!a&&n.trailing!==!1&&(a=setTimeout(p,y)),i}}function tt(e,...t){const n=Object(e);for(let r=1;r<arguments.length;r++){const o=arguments[r];if(o!=null)for(const i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n}function la(e){for(const t of e)switch(t.trigger){case"pageLoad":No(t);break;case"scrollInView":ua(t);break}}function xo(e){console.warn(`Cannot animate element: element with ID ${e} not found!`)}function $o(e,t){const n=ca(e),r=getComputedStyle(t),o=e.steps[0].styles,i=e.steps[e.steps.length-1].styles,a=[o,i];for(const c of a)for(const p of n)p in c||(c[p]=r[p])}function ca(e){const t=[];for(const n of e.steps)for(const r in n.styles)t.indexOf(r)===-1&&t.push(r);return t}function No(e){const t=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));if(!t.length){xo(e.elementId||e.id||"");return}Array.from(t).forEach(n=>{$o(e,n),n.style.transition="none",n.style.transitionDelay="0",tt(n.style,e.steps[0].styles),setTimeout(()=>{n.style.transition=`all ${e.duration}s ${xt(e.easing)}`,e.delay&&(n.style.transitionDelay=e.delay+"s"),tt(n.style,e.steps[1].styles),setTimeout(()=>{n.style.transition="",n.style.transitionDelay=""},(e.delay||0)*1e3+e.duration*1e3+100)})})}function ua(e){const t=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));if(!t.length){xo(e.elementId||e.id||"");return}Array.from(t).forEach(n=>{$o(e,n);let r=!1,o=!1;function i(){!r&&c(n)?(r=!0,o=!0,setTimeout(()=>{tt(n.style,e.steps[1].styles),e.repeat||document.removeEventListener("scroll",a),setTimeout(()=>{o=!1,e.repeat||(n.style.transition="",n.style.transitionDelay="")},(e.duration+(e.delay||0))*1e3+100)})):e.repeat&&r&&!o&&!c(n)&&(r=!1,tt(n.style,e.steps[0].styles))}const a=aa(i,200,{leading:!1});function c(y){const v=y.getBoundingClientRect(),g=window.innerHeight,E=(e.thresholdPercent||0)/100*g;return v.bottom>E&&v.top<g-E}const p=e.steps[0].styles;function f(){tt(n.style,p)}f(),setTimeout(()=>{n.style.transition=`all ${e.duration}s ${xt(e.easing)}`,e.delay&&(n.style.transitionDelay=e.delay+"s")}),document.addEventListener("scroll",a,{capture:!0,passive:!0}),i()})}const bt=(e,t)=>{const n=(e==null?void 0:e.objectPosition)||t;return n?{...e,"--builder-image-position":n}:e},pa=(e,t)=>t?{...e,large:bt(e==null?void 0:e.large,"initial"),medium:bt(e==null?void 0:e.medium),small:bt(e==null?void 0:e.small),xsmall:bt(e==null?void 0:e.xsmall)}:e,Vo=e=>Object.entries(e).map(([n,r])=>{if(typeof r=="string")return`${xt(n)}: ${r};`}).filter(be),da=e=>Vo(e).join(`
|
|
21
21
|
`),ma=({mediaQuery:e,className:t,styles:n})=>{const r=`.${t} {
|
|
22
22
|
${da(n)}
|
|
@@ -24,7 +24,7 @@ theFunction();
|
|
|
24
24
|
${r}
|
|
25
25
|
}`:r};function fa({style:e}){return e}const ha=({block:e,context:t})=>jo(fa({style:e.style||{},context:t,block:e}));function jo(e){switch(W){case"svelte":case"vue":case"solid":case"angular":return Vo(e).join(" ");case"qwik":case"reactNative":case"react":case"rsc":return e}}const Do=(e,t)=>e?t?e.models&&e.models.length>0&&!e.models.includes(t):!1:!0,ga=({block:e,registeredComponents:t,model:n})=>{var i;const r=(i=e.component)==null?void 0:i.name;if(!r)return null;const o=t[r];if(!o||Do(o,n)){console.warn(`
|
|
26
26
|
Could not find a registered component named "${r}".
|
|
27
|
-
If you registered it, is the file that registered it imported by the file that needs to render it?`);return}else return o},Ur=new WeakMap,ya=e=>{if(go()){const{repeat:n,...r}=e;return r}let t=Ur.get(e);if(!t){const{repeat:n,...r}=e;t=r,Ur.set(e,t)}return t},ba=({block:e,context:t})=>{const{repeat:n}=e;if(!(n!=null&&n.collection))return;const r=Ue({code:n.collection,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context});if(!Array.isArray(r))return;const o=n.collection.split(".").pop(),i=n.itemName||(o?o+"Item":"item"),a=ya(e);return r.map((p,f)=>({context:{...t,localState:{...t.localState,$index:f,$item:p,[i]:p,[`$${i}Index`]:f}},block:a}))},va=(e,t)=>{var n;return(n=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&n.builderLinkComponent?{builderLinkComponent:t}:{}},Wr=new WeakMap,ka=(e,t,n)=>{var r;if((r=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&r.builderComponents){let o=Wr.get(t);o||(o=new Map,Wr.set(t,o));let i=o.get(n);return i||(i=Object.fromEntries(Object.entries(t).filter(([a,c])=>!Do(c,n))),o.set(n,i)),{builderComponents:i}}return{}},Sa=(e,t)=>{var n;return(n=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&n.builderBlock?{builderBlock:t}:{}},Ca=(e,t)=>{var n;return(n=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&n.builderContext?{builderContext:t}:{}},wa=e=>e.toString(),Ea=()=>Promise.resolve().then(()=>Wa).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",e),e}),Ta=()=>Promise.resolve().then(()=>require("./block-wrapper-f0WB40t8.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",e),e}),Ia=()=>Promise.resolve().then(()=>require("./component-ref-RH-KNtol.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",e),e}),Ra=()=>Promise.resolve().then(()=>require("./repeated-block-tuEDHoSp.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",e),e}),Aa=()=>Promise.resolve().then(()=>require("./style-wrapper-r8zHhlTM.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component StyleWrapper at ./components/style-wrapper.vue",e),e}),Ba=s.defineComponent({name:"block",components:{StyleWrapper:s.defineAsyncComponent(Aa),RepeatedBlock:s.defineAsyncComponent(Ra),ComponentRef:s.defineAsyncComponent(Ia),BlockWrapper:s.defineAsyncComponent(Ta),DynamicDiv:s.defineAsyncComponent(Ea)},props:["block","context","registeredComponents","linkComponent"],data(){return{_processedBlock:{value:null,update:!1},_componentRefProps:{value:null,deps:[]},generateKey:wa}},mounted(){const e=this.processedBlock.id,t=this.processedBlock.animations;t&&e&&la(t.map(n=>({...n,elementId:e})))},updated(){},computed:{repeatItem(){return ba({block:this.block,context:this.context})},processedBlock(){var t;return(t=this.block.repeat)!=null&&t.collection?this.block:So({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context})},blockComponent(){return ga({block:this.processedBlock,registeredComponents:this.registeredComponents,model:this.context.model})},Tag(){var t;return this.block.tagName==="a"||((t=this.processedBlock.properties)==null?void 0:t.href)||this.processedBlock.href?this.linkComponent||"a":this.block.tagName||"div"},canShowBlock(){var n,r;if((n=this.block.repeat)!=null&&n.collection)return!!((r=this.repeatItem)!=null&&r.length);const e="hide"in this.processedBlock?this.processedBlock.hide:!1;return("show"in this.processedBlock?this.processedBlock.show:!0)&&!e},childrenWithoutParentComponent(){var t;return!((t=this.blockComponent)!=null&&t.component)&&!this.repeatItem?this.processedBlock.children??[]:[]},componentRefProps(){var t,n,r;return this.processedBlock,this.context,this.context.rootState,this.context.localState,this.registeredComponents,this.linkComponent,{blockChildren:this.processedBlock.children??[],componentRef:(t=this.blockComponent)==null?void 0:t.component,componentOptions:{...ws(this.processedBlock,this.context),...Sa(this.blockComponent,this.processedBlock),...Ca(this.blockComponent,this.context),...va(this.blockComponent,this.linkComponent),...ka(this.blockComponent,this.registeredComponents,this.context.model)},context:this.context,linkComponent:this.linkComponent,registeredComponents:this.registeredComponents,builderBlock:this.processedBlock,includeBlockProps:((n=this.blockComponent)==null?void 0:n.noWrap)===!0,isInteractive:!((r=this.blockComponent)!=null&&r.isRSC&&W==="rsc")}}}});function Pa(e,t,n,r,o,i){var v;const a=s.resolveComponent("StyleWrapper"),c=s.resolveComponent("ComponentRef"),p=s.resolveComponent("Block",!0),f=s.resolveComponent("BlockWrapper"),y=s.resolveComponent("RepeatedBlock");return e.canShowBlock?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createVNode(a,{block:e.processedBlock,context:e.context,id:e.block.id},null,8,["block","context","id"]),(v=e.blockComponent)!=null&&v.noWrap?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[e.repeatItem?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(e.repeatItem,(g,k)=>(s.openBlock(),s.createBlock(y,{key:e.generateKey(k),repeatContext:g.context,block:g.block,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},null,8,["repeatContext","block","registeredComponents","linkComponent"]))),128)):(s.openBlock(),s.createBlock(c,{key:0,componentRef:e.componentRefProps.componentRef,componentOptions:e.componentRefProps.componentOptions,blockChildren:e.componentRefProps.blockChildren,context:e.componentRefProps.context,registeredComponents:e.componentRefProps.registeredComponents,linkComponent:e.componentRefProps.linkComponent,builderBlock:e.componentRefProps.builderBlock,includeBlockProps:e.componentRefProps.includeBlockProps,isInteractive:e.componentRefProps.isInteractive},null,8,["componentRef","componentOptions","blockChildren","context","registeredComponents","linkComponent","builderBlock","includeBlockProps","isInteractive"]))],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[e.repeatItem?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(e.repeatItem,(g,k)=>(s.openBlock(),s.createBlock(y,{key:e.generateKey(k),repeatContext:g.context,block:g.block,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},null,8,["repeatContext","block","registeredComponents","linkComponent"]))),128)):(s.openBlock(),s.createBlock(f,{key:0,Wrapper:e.Tag,block:e.processedBlock,context:e.context},{default:s.withCtx(()=>[s.createVNode(c,{componentRef:e.componentRefProps.componentRef,componentOptions:e.componentRefProps.componentOptions,blockChildren:e.componentRefProps.blockChildren,context:e.componentRefProps.context,registeredComponents:e.componentRefProps.registeredComponents,linkComponent:e.componentRefProps.linkComponent,builderBlock:e.componentRefProps.builderBlock,includeBlockProps:e.componentRefProps.includeBlockProps,isInteractive:e.componentRefProps.isInteractive},null,8,["componentRef","componentOptions","blockChildren","context","registeredComponents","linkComponent","builderBlock","includeBlockProps","isInteractive"]),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.childrenWithoutParentComponent,(g,k)=>(s.openBlock(),s.createBlock(p,{key:g.id,block:g,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent,context:e.context},null,8,["block","registeredComponents","linkComponent","context"]))),128))]),_:1},8,["Wrapper","block","context"]))],64))],64)):s.createCommentVNode("",!0)}const Un=$(Ba,[["render",Pa]]),Oa=Object.freeze(Object.defineProperty({__proto__:null,default:Un},Symbol.toStringTag,{value:"Module"})),xa=s.defineComponent({name:"builder-blocks-wrapper",props:["blocks","classNameProp","path","parent","styleProp","BlocksWrapperProps","BlocksWrapper"],data(){return{shouldUpdate:!1}},mounted(){},watch:{onUpdateHook0:{handler(){},immediate:!0}},computed:{className(){var e;return["builder-blocks",(e=this.blocks)!=null&&e.length?"":"no-blocks",this.classNameProp].filter(Boolean).join(" ")},dataPath(){if(!this.path)return;const e="this.",t="component.options.";return this.path.startsWith(e)?this.path.replace(e,""):this.path.startsWith(t)?this.path:`${t}${this.path||""}`},onUpdateHook0(){return{0:this.blocks}}},methods:{onClick(){var e,t;z()&&!((e=this.blocks)!=null&&e.length)&&((t=window.parent)==null||t.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:this.parent,dataPath:this.dataPath}},"*"))},onMouseEnter(){var e,t;z()&&!((e=this.blocks)!=null&&e.length)&&((t=window.parent)==null||t.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:this.parent,dataPath:this.dataPath}},"*"))}}});function $a(e,t,n,r,o,i){return s.openBlock(),s.createBlock(s.resolveDynamicComponent(e.BlocksWrapper),s.mergeProps({ref:"blocksWrapperRef",class:e.className+" component-1zgn626bpbf","builder-path":e.dataPath,"builder-parent-id":e.parent,style:e.styleProp,onClick:a=>e.onClick(),onMouseEnter:a=>e.onMouseEnter(),onKeyPress:a=>e.onClick()},{...e.BlocksWrapperProps}),{default:s.withCtx(()=>[s.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},16,["class","builder-path","builder-parent-id","style","onClick","onMouseEnter","onKeyPress"])}const Na=$(xa,[["render",$a],["__scopeId","data-v-bab174f6"]]),Va=s.defineComponent({name:"builder-blocks",components:{BlocksWrapper:Na,Block:Un},props:["blocks","parent","path","styleProp","BlocksWrapperProps","context","className","linkComponent","registeredComponents"],inject:{builderContext:Et.key,componentsContext:Jr.key}});function ja(e,t,n,r,o,i){var p,f,y,v;const a=s.resolveComponent("Block"),c=s.resolveComponent("BlocksWrapper");return s.openBlock(),s.createBlock(c,{blocks:e.blocks,parent:e.parent,path:e.path,styleProp:e.styleProp,BlocksWrapperProps:e.BlocksWrapperProps||((p=e.context)==null?void 0:p.BlocksWrapperProps)||((f=e.builderContext)==null?void 0:f.BlocksWrapperProps),classNameProp:e.className,BlocksWrapper:((y=e.context)==null?void 0:y.BlocksWrapper)||((v=e.builderContext)==null?void 0:v.BlocksWrapper)},{default:s.withCtx(()=>[s.renderSlot(e.$slots,"default"),e.blocks?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(e.blocks,(g,k)=>{var E;return s.openBlock(),s.createBlock(a,{key:g.id,block:g,linkComponent:e.linkComponent,context:e.context||e.builderContext,registeredComponents:e.registeredComponents||((E=e.componentsContext)==null?void 0:E.registeredComponents)},null,8,["block","linkComponent","context","registeredComponents"])}),128)):s.createCommentVNode("",!0)]),_:3},8,["blocks","parent","path","styleProp","BlocksWrapperProps","classNameProp","BlocksWrapper"])}const we=$(Va,[["render",ja]]),Da=s.defineComponent({name:"dynamic-div",props:[]});function Ua(e,t,n,r,o,i){return s.openBlock(),s.createElementBlock("div",null,[s.renderSlot(e.$slots,"default")])}const at=$(Da,[["render",Ua]]),Wa=Object.freeze(Object.defineProperty({__proto__:null,default:at},Symbol.toStringTag,{value:"Module"})),lt=s.defineComponent({render(){return s.h("style",{innerHTML:this.styles,"data-id":this.id,nonce:this.nonce})},name:"inlined-styles",props:["styles","id","nonce"]}),Qe={xsmall:{min:0,default:160,max:320},small:{min:321,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},Fa=(e,t=Qe)=>`@media (max-width: ${t[e].max}px)`,Uo=e=>{const t={xsmall:{...Qe.xsmall},small:{...Qe.small},medium:{...Qe.medium},large:{...Qe.large}};if(!e)return t;const{xsmall:n,small:r,medium:o}=e;if(n){const p=Math.floor(n/2);t.xsmall={max:n,min:p,default:p+1}}if(!r||!o)return t;const i=n?t.xsmall.max+1:Math.floor(r/2);t.small={max:r,min:i,default:i+1};const a=t.small.max+1;t.medium={max:o,min:a,default:a+1};const c=t.medium.max+1;return t.large={max:2e3,min:c,default:c+1},t},La=e=>`builder-columns ${e}-breakpoints`,Ma=s.defineComponent({name:"builder-columns",components:{InlinedStyles:lt,DynamicRenderer:vn,Blocks:we,DynamicDiv:at},props:["space","columns","stackColumnsAt","builderLinkComponent","reverseColumnsWhenStacked","builderContext","builderBlock","builderComponents"],data(){return{TARGET:W,getColumnsClass:La}},computed:{gutterSize(){return typeof this.space=="number"?this.space||0:20},cols(){return this.columns||[]},stackAt(){return this.stackColumnsAt||"tablet"},flexDir(){return this.stackColumnsAt==="never"?"row":this.reverseColumnsWhenStacked?"column-reverse":"column"}},methods:{getTagName(e){return e.link?this.builderLinkComponent||"a":"div"},getWidth(e){var t;return((t=this.cols[e])==null?void 0:t.width)||100/this.cols.length},getColumnCssWidth(e){const t=this.getWidth(e),n=this.gutterSize*(this.cols.length-1)*(t/100);return`calc(${t}% - ${n}px)`},getTabletStyle({stackedStyle:e,desktopStyle:t}){return this.stackAt==="tablet"?e:t},getMobileStyle({stackedStyle:e,desktopStyle:t}){return this.stackAt==="never"?t:e},columnsCssVars(){return{"--flex-dir":this.flexDir,"--flex-dir-tablet":this.getTabletStyle({stackedStyle:this.flexDir,desktopStyle:"row"})}},columnCssVars(e){const t=e===0?0:this.gutterSize,n=this.getColumnCssWidth(e),r=`${t}px`,o="100%",i=0;return{...{display:"flex",flexDirection:"column",alignItems:"stretch"},width:n,["margin-left"]:r,"--column-width-mobile":this.getMobileStyle({stackedStyle:o,desktopStyle:n}),"--column-margin-left-mobile":this.getMobileStyle({stackedStyle:i,desktopStyle:r}),"--column-width-tablet":this.getTabletStyle({stackedStyle:o,desktopStyle:n}),"--column-margin-left-tablet":this.getTabletStyle({stackedStyle:i,desktopStyle:r})}},getWidthForBreakpointSize(e){var n,r;return Uo(((r=(n=this.builderContext.content)==null?void 0:n.meta)==null?void 0:r.breakpoints)||{})[e].max},columnsStyles(){const e=`.${this.builderBlock.id}-breakpoints > .builder-column`;return`
|
|
27
|
+
If you registered it, is the file that registered it imported by the file that needs to render it?`);return}else return o},Ur=new WeakMap,ya=e=>{if(go()){const{repeat:n,...r}=e;return r}let t=Ur.get(e);if(!t){const{repeat:n,...r}=e;t=r,Ur.set(e,t)}return t},ba=({block:e,context:t})=>{const{repeat:n}=e;if(!(n!=null&&n.collection))return;const r=Ue({code:n.collection,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context});if(!Array.isArray(r))return;const o=n.collection.split(".").pop(),i=n.itemName||(o?o+"Item":"item"),a=ya(e);return r.map((p,f)=>({context:{...t,localState:{...t.localState,$index:f,$item:p,[i]:p,[`$${i}Index`]:f}},block:a}))},va=(e,t)=>{var n;return(n=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&n.builderLinkComponent?{builderLinkComponent:t}:{}},Wr=new WeakMap,ka=(e,t,n)=>{var r;if((r=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&r.builderComponents){let o=Wr.get(t);o||(o=new Map,Wr.set(t,o));let i=o.get(n);return i||(i=Object.fromEntries(Object.entries(t).filter(([a,c])=>!Do(c,n))),o.set(n,i)),{builderComponents:i}}return{}},Sa=(e,t)=>{var n;return(n=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&n.builderBlock?{builderBlock:t}:{}},Ca=(e,t)=>{var n;return(n=e==null?void 0:e.shouldReceiveBuilderProps)!=null&&n.builderContext?{builderContext:t}:{}},wa=e=>e.toString(),Ea=()=>Promise.resolve().then(()=>Wa).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",e),e}),Ta=()=>Promise.resolve().then(()=>require("./block-wrapper-B5BJISjx.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",e),e}),Ia=()=>Promise.resolve().then(()=>require("./component-ref-Kok-pAOt.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",e),e}),Ra=()=>Promise.resolve().then(()=>require("./repeated-block-kYllzesL.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",e),e}),Aa=()=>Promise.resolve().then(()=>require("./style-wrapper-1RJACAmT.cjs")).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component StyleWrapper at ./components/style-wrapper.vue",e),e}),Ba=s.defineComponent({name:"block",components:{StyleWrapper:s.defineAsyncComponent(Aa),RepeatedBlock:s.defineAsyncComponent(Ra),ComponentRef:s.defineAsyncComponent(Ia),BlockWrapper:s.defineAsyncComponent(Ta),DynamicDiv:s.defineAsyncComponent(Ea)},props:["block","context","registeredComponents","linkComponent"],data(){return{_processedBlock:{value:null,update:!1},_componentRefProps:{value:null,deps:[]},generateKey:wa}},mounted(){const e=this.processedBlock.id,t=this.processedBlock.animations;t&&e&&la(t.map(n=>({...n,elementId:e})))},updated(){},computed:{repeatItem(){return ba({block:this.block,context:this.context})},processedBlock(){var t;return(t=this.block.repeat)!=null&&t.collection?this.block:So({block:this.block,localState:this.context.localState,rootState:this.context.rootState,rootSetState:this.context.rootSetState,context:this.context.context})},blockComponent(){return ga({block:this.processedBlock,registeredComponents:this.registeredComponents,model:this.context.model})},Tag(){var t;return this.block.tagName==="a"||((t=this.processedBlock.properties)==null?void 0:t.href)||this.processedBlock.href?this.linkComponent||"a":this.block.tagName||"div"},canShowBlock(){var n,r;if((n=this.block.repeat)!=null&&n.collection)return!!((r=this.repeatItem)!=null&&r.length);const e="hide"in this.processedBlock?this.processedBlock.hide:!1;return("show"in this.processedBlock?this.processedBlock.show:!0)&&!e},childrenWithoutParentComponent(){var t;return!((t=this.blockComponent)!=null&&t.component)&&!this.repeatItem?this.processedBlock.children??[]:[]},componentRefProps(){var t,n,r;return this.processedBlock,this.context,this.context.rootState,this.context.localState,this.registeredComponents,this.linkComponent,{blockChildren:this.processedBlock.children??[],componentRef:(t=this.blockComponent)==null?void 0:t.component,componentOptions:{...ws(this.processedBlock,this.context),...Sa(this.blockComponent,this.processedBlock),...Ca(this.blockComponent,this.context),...va(this.blockComponent,this.linkComponent),...ka(this.blockComponent,this.registeredComponents,this.context.model)},context:this.context,linkComponent:this.linkComponent,registeredComponents:this.registeredComponents,builderBlock:this.processedBlock,includeBlockProps:((n=this.blockComponent)==null?void 0:n.noWrap)===!0,isInteractive:!((r=this.blockComponent)!=null&&r.isRSC&&W==="rsc")}}}});function Pa(e,t,n,r,o,i){var v;const a=s.resolveComponent("StyleWrapper"),c=s.resolveComponent("ComponentRef"),p=s.resolveComponent("Block",!0),f=s.resolveComponent("BlockWrapper"),y=s.resolveComponent("RepeatedBlock");return e.canShowBlock?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createVNode(a,{block:e.processedBlock,context:e.context,id:e.block.id},null,8,["block","context","id"]),(v=e.blockComponent)!=null&&v.noWrap?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[e.repeatItem?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(e.repeatItem,(g,k)=>(s.openBlock(),s.createBlock(y,{key:e.generateKey(k),repeatContext:g.context,block:g.block,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},null,8,["repeatContext","block","registeredComponents","linkComponent"]))),128)):(s.openBlock(),s.createBlock(c,{key:0,componentRef:e.componentRefProps.componentRef,componentOptions:e.componentRefProps.componentOptions,blockChildren:e.componentRefProps.blockChildren,context:e.componentRefProps.context,registeredComponents:e.componentRefProps.registeredComponents,linkComponent:e.componentRefProps.linkComponent,builderBlock:e.componentRefProps.builderBlock,includeBlockProps:e.componentRefProps.includeBlockProps,isInteractive:e.componentRefProps.isInteractive},null,8,["componentRef","componentOptions","blockChildren","context","registeredComponents","linkComponent","builderBlock","includeBlockProps","isInteractive"]))],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[e.repeatItem?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(e.repeatItem,(g,k)=>(s.openBlock(),s.createBlock(y,{key:e.generateKey(k),repeatContext:g.context,block:g.block,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},null,8,["repeatContext","block","registeredComponents","linkComponent"]))),128)):(s.openBlock(),s.createBlock(f,{key:0,Wrapper:e.Tag,block:e.processedBlock,context:e.context},{default:s.withCtx(()=>[s.createVNode(c,{componentRef:e.componentRefProps.componentRef,componentOptions:e.componentRefProps.componentOptions,blockChildren:e.componentRefProps.blockChildren,context:e.componentRefProps.context,registeredComponents:e.componentRefProps.registeredComponents,linkComponent:e.componentRefProps.linkComponent,builderBlock:e.componentRefProps.builderBlock,includeBlockProps:e.componentRefProps.includeBlockProps,isInteractive:e.componentRefProps.isInteractive},null,8,["componentRef","componentOptions","blockChildren","context","registeredComponents","linkComponent","builderBlock","includeBlockProps","isInteractive"]),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.childrenWithoutParentComponent,(g,k)=>(s.openBlock(),s.createBlock(p,{key:g.id,block:g,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent,context:e.context},null,8,["block","registeredComponents","linkComponent","context"]))),128))]),_:1},8,["Wrapper","block","context"]))],64))],64)):s.createCommentVNode("",!0)}const Un=$(Ba,[["render",Pa]]),Oa=Object.freeze(Object.defineProperty({__proto__:null,default:Un},Symbol.toStringTag,{value:"Module"})),xa=s.defineComponent({name:"builder-blocks-wrapper",props:["blocks","classNameProp","path","parent","styleProp","BlocksWrapperProps","BlocksWrapper"],data(){return{shouldUpdate:!1}},mounted(){},watch:{onUpdateHook0:{handler(){},immediate:!0}},computed:{className(){var e;return["builder-blocks",(e=this.blocks)!=null&&e.length?"":"no-blocks",this.classNameProp].filter(Boolean).join(" ")},dataPath(){if(!this.path)return;const e="this.",t="component.options.";return this.path.startsWith(e)?this.path.replace(e,""):this.path.startsWith(t)?this.path:`${t}${this.path||""}`},onUpdateHook0(){return{0:this.blocks}}},methods:{onClick(){var e,t;z()&&!((e=this.blocks)!=null&&e.length)&&((t=window.parent)==null||t.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:this.parent,dataPath:this.dataPath}},"*"))},onMouseEnter(){var e,t;z()&&!((e=this.blocks)!=null&&e.length)&&((t=window.parent)==null||t.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:this.parent,dataPath:this.dataPath}},"*"))}}});function $a(e,t,n,r,o,i){return s.openBlock(),s.createBlock(s.resolveDynamicComponent(e.BlocksWrapper),s.mergeProps({ref:"blocksWrapperRef",class:e.className+" component-1zgn626bpbf","builder-path":e.dataPath,"builder-parent-id":e.parent,style:e.styleProp,onClick:a=>e.onClick(),onMouseEnter:a=>e.onMouseEnter(),onKeyPress:a=>e.onClick()},{...e.BlocksWrapperProps}),{default:s.withCtx(()=>[s.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},16,["class","builder-path","builder-parent-id","style","onClick","onMouseEnter","onKeyPress"])}const Na=$(xa,[["render",$a],["__scopeId","data-v-bab174f6"]]),Va=s.defineComponent({name:"builder-blocks",components:{BlocksWrapper:Na,Block:Un},props:["blocks","parent","path","styleProp","BlocksWrapperProps","context","className","linkComponent","registeredComponents"],inject:{builderContext:Et.key,componentsContext:Jr.key}});function ja(e,t,n,r,o,i){var p,f,y,v;const a=s.resolveComponent("Block"),c=s.resolveComponent("BlocksWrapper");return s.openBlock(),s.createBlock(c,{blocks:e.blocks,parent:e.parent,path:e.path,styleProp:e.styleProp,BlocksWrapperProps:e.BlocksWrapperProps||((p=e.context)==null?void 0:p.BlocksWrapperProps)||((f=e.builderContext)==null?void 0:f.BlocksWrapperProps),classNameProp:e.className,BlocksWrapper:((y=e.context)==null?void 0:y.BlocksWrapper)||((v=e.builderContext)==null?void 0:v.BlocksWrapper)},{default:s.withCtx(()=>[s.renderSlot(e.$slots,"default"),e.blocks?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(e.blocks,(g,k)=>{var E;return s.openBlock(),s.createBlock(a,{key:g.id,block:g,linkComponent:e.linkComponent,context:e.context||e.builderContext,registeredComponents:e.registeredComponents||((E=e.componentsContext)==null?void 0:E.registeredComponents)},null,8,["block","linkComponent","context","registeredComponents"])}),128)):s.createCommentVNode("",!0)]),_:3},8,["blocks","parent","path","styleProp","BlocksWrapperProps","classNameProp","BlocksWrapper"])}const we=$(Va,[["render",ja]]),Da=s.defineComponent({name:"dynamic-div",props:[]});function Ua(e,t,n,r,o,i){return s.openBlock(),s.createElementBlock("div",null,[s.renderSlot(e.$slots,"default")])}const at=$(Da,[["render",Ua]]),Wa=Object.freeze(Object.defineProperty({__proto__:null,default:at},Symbol.toStringTag,{value:"Module"})),lt=s.defineComponent({render(){return s.h("style",{innerHTML:this.styles,"data-id":this.id,nonce:this.nonce})},name:"inlined-styles",props:["styles","id","nonce"]}),Qe={xsmall:{min:0,default:160,max:320},small:{min:321,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},Fa=(e,t=Qe)=>`@media (max-width: ${t[e].max}px)`,Uo=e=>{const t={xsmall:{...Qe.xsmall},small:{...Qe.small},medium:{...Qe.medium},large:{...Qe.large}};if(!e)return t;const{xsmall:n,small:r,medium:o}=e;if(n){const p=Math.floor(n/2);t.xsmall={max:n,min:p,default:p+1}}if(!r||!o)return t;const i=n?t.xsmall.max+1:Math.floor(r/2);t.small={max:r,min:i,default:i+1};const a=t.small.max+1;t.medium={max:o,min:a,default:a+1};const c=t.medium.max+1;return t.large={max:2e3,min:c,default:c+1},t},La=e=>`builder-columns ${e}-breakpoints`,Ma=s.defineComponent({name:"builder-columns",components:{InlinedStyles:lt,DynamicRenderer:vn,Blocks:we,DynamicDiv:at},props:["space","columns","stackColumnsAt","builderLinkComponent","reverseColumnsWhenStacked","builderContext","builderBlock","builderComponents"],data(){return{TARGET:W,getColumnsClass:La}},computed:{gutterSize(){return typeof this.space=="number"?this.space||0:20},cols(){return this.columns||[]},stackAt(){return this.stackColumnsAt||"tablet"},flexDir(){return this.stackColumnsAt==="never"?"row":this.reverseColumnsWhenStacked?"column-reverse":"column"}},methods:{getTagName(e){return e.link?this.builderLinkComponent||"a":"div"},getWidth(e){var t;return((t=this.cols[e])==null?void 0:t.width)||100/this.cols.length},getColumnCssWidth(e){const t=this.getWidth(e),n=this.gutterSize*(this.cols.length-1)*(t/100);return`calc(${t}% - ${n}px)`},getTabletStyle({stackedStyle:e,desktopStyle:t}){return this.stackAt==="tablet"?e:t},getMobileStyle({stackedStyle:e,desktopStyle:t}){return this.stackAt==="never"?t:e},columnsCssVars(){return{"--flex-dir":this.flexDir,"--flex-dir-tablet":this.getTabletStyle({stackedStyle:this.flexDir,desktopStyle:"row"})}},columnCssVars(e){const t=e===0?0:this.gutterSize,n=this.getColumnCssWidth(e),r=`${t}px`,o="100%",i=0;return{...{display:"flex",flexDirection:"column",alignItems:"stretch"},width:n,["margin-left"]:r,"--column-width-mobile":this.getMobileStyle({stackedStyle:o,desktopStyle:n}),"--column-margin-left-mobile":this.getMobileStyle({stackedStyle:i,desktopStyle:r}),"--column-width-tablet":this.getTabletStyle({stackedStyle:o,desktopStyle:n}),"--column-margin-left-tablet":this.getTabletStyle({stackedStyle:i,desktopStyle:r})}},getWidthForBreakpointSize(e){var n,r;return Uo(((r=(n=this.builderContext.content)==null?void 0:n.meta)==null?void 0:r.breakpoints)||{})[e].max},columnsStyles(){const e=`.${this.builderBlock.id}-breakpoints > .builder-column`;return`
|
|
28
28
|
@media (max-width: ${this.getWidthForBreakpointSize("medium")}px) {
|
|
29
29
|
.${this.builderBlock.id}-breakpoints {
|
|
30
30
|
flex-direction: var(--flex-dir-tablet);
|
|
@@ -273,11 +273,11 @@ theFunction();
|
|
|
273
273
|
const testRatio = variant.testRatio;
|
|
274
274
|
n += testRatio;
|
|
275
275
|
if (random < n) {
|
|
276
|
-
setCookie(cookieName, variant.id);
|
|
276
|
+
setCookie(cookieName, variant.id, 30);
|
|
277
277
|
return variant.id;
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
|
-
setCookie(cookieName, contentId);
|
|
280
|
+
setCookie(cookieName, contentId, 30);
|
|
281
281
|
return contentId;
|
|
282
282
|
}
|
|
283
283
|
const winningVariantId = getAndSetVariantId();
|
|
@@ -181,7 +181,7 @@ const xi = () => {
|
|
|
181
181
|
host: (r == null ? void 0 : r.host) || (r == null ? void 0 : r.hostname),
|
|
182
182
|
device: n ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
183
183
|
};
|
|
184
|
-
}, bo = "5.4.
|
|
184
|
+
}, bo = "5.4.2", vo = () => ({
|
|
185
185
|
"X-Builder-SDK": z,
|
|
186
186
|
"X-Builder-SDK-GEN": "2",
|
|
187
187
|
"X-Builder-SDK-Version": bo
|
|
@@ -3380,11 +3380,15 @@ const Wo = (e) => {
|
|
|
3380
3380
|
}), Ks = ({
|
|
3381
3381
|
contentId: e,
|
|
3382
3382
|
value: t
|
|
3383
|
-
}) =>
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3383
|
+
}) => {
|
|
3384
|
+
const n = /* @__PURE__ */ new Date();
|
|
3385
|
+
return n.setDate(n.getDate() + 30), Dn({
|
|
3386
|
+
name: Yn(e),
|
|
3387
|
+
value: t,
|
|
3388
|
+
expires: n,
|
|
3389
|
+
canTrack: !0
|
|
3390
|
+
});
|
|
3391
|
+
}, Fo = (e) => Be(e.id) && Be(e.variations) && Object.keys(e.variations).length > 0, zs = ({
|
|
3388
3392
|
id: e,
|
|
3389
3393
|
variations: t
|
|
3390
3394
|
}) => {
|
|
@@ -3957,22 +3961,22 @@ const Xo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3957
3961
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
3958
3962
|
e
|
|
3959
3963
|
), e;
|
|
3960
|
-
}), Ta = () => import("./block-wrapper-
|
|
3964
|
+
}), Ta = () => import("./block-wrapper-DLiZnpc5.js").then((e) => e.default).catch((e) => {
|
|
3961
3965
|
throw console.error(
|
|
3962
3966
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
3963
3967
|
e
|
|
3964
3968
|
), e;
|
|
3965
|
-
}), Ia = () => import("./component-ref-
|
|
3969
|
+
}), Ia = () => import("./component-ref-Po30Jz7c.js").then((e) => e.default).catch((e) => {
|
|
3966
3970
|
throw console.error(
|
|
3967
3971
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
3968
3972
|
e
|
|
3969
3973
|
), e;
|
|
3970
|
-
}), Ra = () => import("./repeated-block-
|
|
3974
|
+
}), Ra = () => import("./repeated-block-Ejv18P9i.js").then((e) => e.default).catch((e) => {
|
|
3971
3975
|
throw console.error(
|
|
3972
3976
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
3973
3977
|
e
|
|
3974
3978
|
), e;
|
|
3975
|
-
}), Aa = () => import("./style-wrapper-
|
|
3979
|
+
}), Aa = () => import("./style-wrapper-7J29CqBV.js").then((e) => e.default).catch((e) => {
|
|
3976
3980
|
throw console.error(
|
|
3977
3981
|
"Error while attempting to dynamically import component StyleWrapper at ./components/style-wrapper.vue",
|
|
3978
3982
|
e
|
|
@@ -7512,11 +7516,11 @@ const io = () => Bt || (Bt = [{
|
|
|
7512
7516
|
const testRatio = variant.testRatio;
|
|
7513
7517
|
n += testRatio;
|
|
7514
7518
|
if (random < n) {
|
|
7515
|
-
setCookie(cookieName, variant.id);
|
|
7519
|
+
setCookie(cookieName, variant.id, 30);
|
|
7516
7520
|
return variant.id;
|
|
7517
7521
|
}
|
|
7518
7522
|
}
|
|
7519
|
-
setCookie(cookieName, contentId);
|
|
7523
|
+
setCookie(cookieName, contentId, 30);
|
|
7520
7524
|
return contentId;
|
|
7521
7525
|
}
|
|
7522
7526
|
const winningVariantId = getAndSetVariantId();
|
package/lib/edge/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-Nd4Mq5NZ.cjs");exports.Blocks=e.Blocks;exports.BuilderContext=e.BuilderContext;exports.BuilderScripts=e.builderScripts;exports.Button=e.Button;exports.Columns=e.Columns;exports.Content=e.ContentVariants;exports.Fragment=e.Fragment;exports.Image=e.Image;exports.Section=e.Section;exports.Symbol=e.Symbol;exports.Text=e.Text;exports.Video=e.Video;exports._processContentResult=e._processContentResult;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.fetchBuilderProps=e.fetchBuilderProps;exports.fetchEntries=e.fetchEntries;exports.fetchOneEntry=e.fetchOneEntry;exports.getBuilderSearchParams=e.getBuilderSearchParams;exports.isEditing=e.isEditing;exports.isPreviewing=e.isPreviewing;exports.register=e.register;exports.registerAction=e.registerAction;exports.setClientUserAttributes=e.setClientUserAttributes;exports.setEditorSettings=e.setEditorSettings;exports.subscribeToEditor=e.subscribeToEditor;exports.track=e.track;
|
package/lib/edge/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as t, b as a, r, n as i, C as n, s as o, F as c, I as g, S as u, o as l, p as d, V as m, H as C, v as p, G as B, J as E, K as S, A as b, i as f, u as h, x, y, t as A, z as P, E as k, D as v } from "./index-
|
|
1
|
+
import { q as t, b as a, r, n as i, C as n, s as o, F as c, I as g, S as u, o as l, p as d, V as m, H as C, v as p, G as B, J as E, K as S, A as b, i as f, u as h, x, y, t as A, z as P, E as k, D as v } from "./index-oUrb-PAc.js";
|
|
2
2
|
export {
|
|
3
3
|
t as Blocks,
|
|
4
4
|
a as BuilderContext,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as o, openBlock as r, createBlock as n, resolveDynamicComponent as i, mergeProps as s, withCtx as p, renderSlot as a } from "vue";
|
|
2
2
|
import { f as c } from "./find-block-3Ig0kVVe.js";
|
|
3
|
-
import { b as d, _ as l } from "./index-
|
|
3
|
+
import { b as d, _ as l } from "./index-oUrb-PAc.js";
|
|
4
4
|
const m = o({
|
|
5
5
|
name: "live-edit",
|
|
6
6
|
props: ["id", "attributes", "Wrapper"],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),r=require("./find-block-FREohLcp.cjs"),n=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),r=require("./find-block-FREohLcp.cjs"),n=require("./index-Nd4Mq5NZ.cjs"),i=t.defineComponent({name:"live-edit",props:["id","attributes","Wrapper"],inject:{context:n.BuilderContext.key},computed:{block(){return r.findBlockById(this.context.content,this.id)},options(){var e,o;return((o=(e=this.block)==null?void 0:e.component)==null?void 0:o.options)||{}}}});function s(e,o,p,u,d,a){return t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.Wrapper),t.mergeProps({attributes:e.attributes},e.options),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16,["attributes"])}const c=n._export_sfc(i,[["render",s]]);exports.default=c;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as t, defineAsyncComponent as n, resolveComponent as r, openBlock as p, createBlock as s } from "vue";
|
|
2
|
-
import { b as c, _ as i } from "./index-
|
|
3
|
-
const a = () => import("./index-
|
|
2
|
+
import { b as c, _ as i } from "./index-oUrb-PAc.js";
|
|
3
|
+
const a = () => import("./index-oUrb-PAc.js").then((e) => e.M).then((e) => e.default).catch((e) => {
|
|
4
4
|
throw console.error(
|
|
5
5
|
"Error while attempting to dynamically import component Block at ../block.vue",
|
|
6
6
|
e
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),t=require("./index-Nd4Mq5NZ.cjs"),r=()=>Promise.resolve().then(()=>require("./index-Nd4Mq5NZ.cjs")).then(e=>e.block).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component Block at ../block.vue",e),e}),c=o.defineComponent({name:"repeated-block",components:{Block:o.defineAsyncComponent(r)},props:["repeatContext","block","registeredComponents","linkComponent"],data(){return{store:this.repeatContext}},provide(){const e=this;return{[t.BuilderContext.key]:e.store}},watch:{onUpdateHook0:{handler(){this.store=this.repeatContext},immediate:!0}},computed:{onUpdateHook0(){return{0:this.repeatContext}}}});function s(e,p,l,a,d,m){const n=o.resolveComponent("Block");return o.openBlock(),o.createBlock(n,{block:e.block,context:e.store,registeredComponents:e.registeredComponents,linkComponent:e.linkComponent},null,8,["block","context","registeredComponents","linkComponent"])}const i=t._export_sfc(c,[["render",s]]);exports.default=i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),s=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),s=require("./index-Nd4Mq5NZ.cjs"),_=require("./find-block-FREohLcp.cjs"),P=o.defineComponent({name:"block-styles",components:{InlinedStyles:s._sfc_main},props:["block","context"],data(){return{TARGET:s.TARGET}},computed:{canShowBlock(){const e=this.block;return s.checkIsDefined(e.hide)?!e.hide:s.checkIsDefined(e.show)?e.show:!0},css(){var S,h,B,C,f,v;const e=this.block,t=s.getResponsiveStylesWithImagePosition(e.responsiveStyles,((S=e.component)==null?void 0:S.name)==="Image"),n=this.context.content,l=s.getSizesForBreakpoints(((h=n==null?void 0:n.meta)==null?void 0:h.breakpoints)||{}),k=!!((C=(B=n==null?void 0:n.meta)==null?void 0:B.breakpoints)!=null&&C.xsmall),a=t==null?void 0:t.large,c=t==null?void 0:t.medium,d=t==null?void 0:t.small,r=t==null?void 0:t.xsmall,m=e.id;if(!m)return"";const b=a?s.createCssClass({className:m,styles:a}):"",g=c?s.createCssClass({className:m,styles:c,mediaQuery:s.getMaxWidthQueryForSize("medium",l)}):"",x=d?s.createCssClass({className:m,styles:d,mediaQuery:s.getMaxWidthQueryForSize("small",l)}):"",p=r&&k?s.createCssClass({className:m,styles:r,mediaQuery:s.getMaxWidthQueryForSize("xsmall",l)}):"",i=e.animations&&e.animations.find(u=>u.trigger==="hover");let y="";if(i){const u=((v=(f=i.steps)==null?void 0:f[1])==null?void 0:v.styles)||{};y=s.createCssClass({className:`${m}:hover`,styles:{...u,transition:`all ${i.duration}s ${s.camelToKebabCase(i.easing)}`,transitionDelay:i.delay?`${i.delay}s`:"0s"}})||""}return[b,g,x,p,y].join(" ")}}});function E(e,t,n,l,k,a){const c=o.resolveComponent("InlinedStyles");return e.TARGET!=="reactNative"&&e.css&&e.canShowBlock?(o.openBlock(),o.createBlock(c,{key:0,id:"builderio-block",styles:e.css,nonce:e.context.nonce},null,8,["styles","nonce"])):o.createCommentVNode("",!0)}const I=s._export_sfc(P,[["render",E]]),Q=o.defineComponent({name:"live-edit-block-styles",components:{InlinedStyles:s._sfc_main},props:["contextProvider","id"],data(){return{TARGET:s.TARGET}},computed:{block(){return _.findBlockById(this.contextProvider.content,this.id)},processedBlock(){var n;const e=this.block;return e?(n=e.repeat)!=null&&n.collection?e:s.getProcessedBlock({block:e,localState:this.contextProvider.localState,rootState:this.contextProvider.rootState,rootSetState:this.contextProvider.rootSetState,context:this.contextProvider.context}):null},canShowBlock(){var e,t,n,l;return s.checkIsDefined((e=this.processedBlock)==null?void 0:e.hide)?!((t=this.processedBlock)!=null&&t.hide):s.checkIsDefined((n=this.processedBlock)==null?void 0:n.show)?(l=this.processedBlock)==null?void 0:l.show:!0},css(){var y,S,h,B,C,f,v,u,T;const e=s.getResponsiveStylesWithImagePosition((y=this.processedBlock)==null?void 0:y.responsiveStyles,((h=(S=this.processedBlock)==null?void 0:S.component)==null?void 0:h.name)==="Image"),t=this.contextProvider.content,n=s.getSizesForBreakpoints(((B=t==null?void 0:t.meta)==null?void 0:B.breakpoints)||{}),l=!!((f=(C=t==null?void 0:t.meta)==null?void 0:C.breakpoints)!=null&&f.xsmall),k=e==null?void 0:e.large,a=e==null?void 0:e.medium,c=e==null?void 0:e.small,d=e==null?void 0:e.xsmall,r=(v=this.processedBlock)==null?void 0:v.id;if(!r)return"";const m=k?s.createCssClass({className:r,styles:k}):"",b=a?s.createCssClass({className:r,styles:a,mediaQuery:s.getMaxWidthQueryForSize("medium",n)}):"",g=c?s.createCssClass({className:r,styles:c,mediaQuery:s.getMaxWidthQueryForSize("small",n)}):"",x=d&&l?s.createCssClass({className:r,styles:d,mediaQuery:s.getMaxWidthQueryForSize("xsmall",n)}):"",p=this.processedBlock.animations&&this.processedBlock.animations.find($=>$.trigger==="hover");let i="";if(p){const $=((T=(u=p.steps)==null?void 0:u[1])==null?void 0:T.styles)||{};i=s.createCssClass({className:`${r}:hover`,styles:{...$,transition:`all ${p.duration}s ${s.camelToKebabCase(p.easing)}`,transitionDelay:p.delay?`${p.delay}s`:"0s"}})||""}return[m,b,g,x,i].join(" ")}}});function A(e,t,n,l,k,a){const c=o.resolveComponent("InlinedStyles");return e.TARGET==="rsc"&&e.css&&e.canShowBlock?(o.openBlock(),o.createBlock(c,{key:0,id:"builderio-block",styles:e.css,nonce:e.contextProvider.nonce},null,8,["styles","nonce"])):o.createCommentVNode("",!0)}const R=s._export_sfc(Q,[["render",A]]),W=o.defineComponent({name:"style-wrapper",components:{BlockStyles:I,LiveEditBlockStyles:R},props:["block","context"],data(){return{isClientEditing:!1,isHydrated:!1,TARGET:s.TARGET}},inject:{contextProvider:s.BuilderContext.key},mounted(){}});function z(e,t,n,l,k,a){const c=o.resolveComponent("LiveEditBlockStyles"),d=o.resolveComponent("BlockStyles");return e.isHydrated?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[e.TARGET==="rsc"&&e.isClientEditing?(o.openBlock(),o.createBlock(c,{key:0,id:e.block.id,contextProvider:e.contextProvider},null,8,["id","contextProvider"])):(o.openBlock(),o.createBlock(d,{key:1,block:e.block,context:e.context},null,8,["block","context"]))],64)):(o.openBlock(),o.createBlock(d,{key:1,block:e.block,context:e.context},null,8,["block","context"]))}const w=s._export_sfc(W,[["render",z]]);exports.default=w;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as E, resolveComponent as x, openBlock as y, createBlock as g, createCommentVNode as N, createElementBlock as G, Fragment as H } from "vue";
|
|
2
|
-
import { c as R, T as w, d as C, f as W, h as j, j as l, k as u, l as z, _ as Q, m as U, b as D } from "./index-
|
|
2
|
+
import { c as R, T as w, d as C, f as W, h as j, j as l, k as u, l as z, _ as Q, m as U, b as D } from "./index-oUrb-PAc.js";
|
|
3
3
|
import { f as F } from "./find-block-3Ig0kVVe.js";
|
|
4
4
|
const L = E({
|
|
5
5
|
name: "block-styles",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-jza5cPNQ.cjs"),n=e.defineComponent({name:"awaiter",props:[],mounted(){}});function o(t,a,c,i,u,d){return e.renderSlot(t.$slots,"default")}const s=r._export_sfc(n,[["render",o]]);exports.default=s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),r=require("./get-block-properties
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),r=require("./get-block-properties--P_kIEc4.cjs"),a=require("./index-jza5cPNQ.cjs"),i=()=>Promise.resolve().then(()=>require("./index-jza5cPNQ.cjs")).then(e=>e.dynamicRenderer).then(e=>e.default).catch(e=>{throw console.error("Error while attempting to dynamically import component DynamicRenderer at ../../dynamic-renderer/dynamic-renderer.vue",e),e}),s=t.defineComponent({name:"block-wrapper",components:{DynamicRenderer:t.defineAsyncComponent(i)},props:["Wrapper","block","context"],data(){return{getBlockActions:r.getBlockActions,getBlockProperties:r.getBlockProperties}}});function l(e,d,m,u,k,y){var o,n;const c=t.resolveComponent("DynamicRenderer");return t.openBlock(),t.createBlock(c,{TagName:e.Wrapper,attributes:e.getBlockProperties({block:e.block,context:e.context}),actionAttributes:e.getBlockActions({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0,trackingContext:{apiKey:e.context.apiKey,canTrack:e.context.canTrack??!0,contentId:(o=e.context.content)==null?void 0:o.id,variationId:(n=e.context.content)==null?void 0:n.testVariationId}})},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["TagName","attributes","actionAttributes"])}const p=a._export_sfc(s,[["render",l]]);exports.default=p;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as r, defineAsyncComponent as a, resolveComponent as c, openBlock as i, createBlock as p, withCtx as s, renderSlot as l } from "vue";
|
|
2
|
-
import { g as m, a as d } from "./get-block-properties-
|
|
3
|
-
import { _ as k } from "./index-
|
|
4
|
-
const u = () => import("./index-
|
|
2
|
+
import { g as m, a as d } from "./get-block-properties-_gI9Xz9P.js";
|
|
3
|
+
import { _ as k } from "./index-zO0b5of_.js";
|
|
4
|
+
const u = () => import("./index-zO0b5of_.js").then((t) => t.G).then((t) => t.default).catch((t) => {
|
|
5
5
|
throw console.error(
|
|
6
6
|
"Error while attempting to dynamically import component DynamicRenderer at ../../dynamic-renderer/dynamic-renderer.vue",
|
|
7
7
|
t
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as h, defineAsyncComponent as u, resolveComponent as m, openBlock as o, createBlock as i, withCtx as p, renderSlot as d, createElementBlock as f, Fragment as b, resolveDynamicComponent as C, mergeProps as w, normalizeProps as W, renderList as y, createCommentVNode as B } from "vue";
|
|
2
|
-
import { _ as g, B as E, w as R } from "./index-
|
|
3
|
-
import { T as $, d as A } from "./should-force-browser-runtime-in-node-
|
|
4
|
-
import { a as v, g as S } from "./get-block-properties-
|
|
5
|
-
const T = () => import("./awaiter-
|
|
2
|
+
import { _ as g, B as E, w as R } from "./index-zO0b5of_.js";
|
|
3
|
+
import { T as $, d as A } from "./should-force-browser-runtime-in-node-vgbSWZcY.js";
|
|
4
|
+
import { a as v, g as S } from "./get-block-properties-_gI9Xz9P.js";
|
|
5
|
+
const T = () => import("./awaiter-SBbqkqGS.js").then((t) => t.default).catch((t) => {
|
|
6
6
|
throw console.error(
|
|
7
7
|
"Error while attempting to dynamically import component Awaiter at ../../awaiter.vue",
|
|
8
8
|
t
|
|
9
9
|
), t;
|
|
10
|
-
}), I = () => import("./live-edit-
|
|
10
|
+
}), I = () => import("./live-edit-5hkdZt2p.js").then((t) => t.default).catch((t) => {
|
|
11
11
|
throw console.error(
|
|
12
12
|
"Error while attempting to dynamically import component LiveEdit at ../../live-edit.vue",
|
|
13
13
|
t
|