@builder.io/sdk-react 1.0.9 → 1.0.11
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/blocks-exports.cjs +4 -4
- package/lib/browser/blocks-exports.mjs +8 -8
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{server-entry-8963a18d.cjs → server-entry-4829e1ce.cjs} +1 -1
- package/lib/browser/{server-entry-35420922.js → server-entry-acc5a9c8.js} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{blocks-eb3b51df.js → blocks-244199ab.js} +2 -2
- package/lib/edge/{blocks-ae8d5f0a.cjs → blocks-a05f6af2.cjs} +1 -1
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-d952e733.js → button-73916377.js} +2 -2
- package/lib/edge/{button-303bf32d.cjs → button-8cd5d71a.cjs} +1 -1
- package/lib/edge/{columns-3e4596a3.cjs → columns-88c9df52.cjs} +1 -1
- package/lib/edge/{columns-679c2245.js → columns-c7d9b9f1.js} +3 -3
- package/lib/edge/{content-variants-bc628eb0.cjs → content-variants-1a65d814.cjs} +1 -1
- package/lib/edge/{content-variants-8b979471.js → content-variants-d5455178.js} +8 -8
- package/lib/edge/{form-fef4dd60.cjs → form-713c6da6.cjs} +1 -1
- package/lib/edge/{form-8445728b.js → form-ad532981.js} +3 -3
- package/lib/edge/{get-class-prop-name-ad9e2b37.js → get-class-prop-name-1178de8b.js} +1 -1
- package/lib/edge/{get-class-prop-name-6661da29.cjs → get-class-prop-name-c082f4f3.cjs} +1 -1
- package/lib/edge/{image-2b155268.js → image-2cc909d9.js} +15 -15
- package/lib/edge/{image-e822db93.cjs → image-7e1361ce.cjs} +4 -4
- package/lib/edge/{img-f759d321.js → img-749d10ed.js} +1 -1
- package/lib/edge/{img-59efac9f.cjs → img-f61f7931.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-02447045.cjs → input-184da708.cjs} +1 -1
- package/lib/edge/{input-fbc2acef.js → input-ccec5aae.js} +1 -1
- package/lib/edge/{select-858c9ac7.js → select-50a6db92.js} +1 -1
- package/lib/edge/{select-e2cf6258.cjs → select-a5fc0333.cjs} +1 -1
- package/lib/edge/{server-entry-0f0a9f05.cjs → server-entry-178f215d.cjs} +1 -1
- package/lib/edge/{server-entry-2bef2c7d.js → server-entry-1cbf5bef.js} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-7ac303b1.cjs → slot-d3ff8e4d.cjs} +1 -1
- package/lib/edge/{slot-789fd553.js → slot-dad01f2d.js} +3 -3
- package/lib/edge/{symbol-c0b989d2.cjs → symbol-31283b30.cjs} +1 -1
- package/lib/edge/{symbol-006b34cf.js → symbol-b6db0014.js} +2 -2
- package/lib/node/blocks-exports.cjs +4 -4
- package/lib/node/blocks-exports.mjs +8 -8
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +1 -1
- package/lib/node/{server-entry-c4c0b43f.js → server-entry-09a75819.js} +1 -1
- package/lib/node/{server-entry-27c64972.cjs → server-entry-856d379b.cjs} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),m=require("./server-entry-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),m=require("./server-entry-4829e1ce.cjs"),u=require("react"),Pe=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),Be=e=>typeof e=="string"&&Pe.has(e.toLowerCase());function G(e){return o.jsx(o.Fragment,{children:Be(e.TagName)?o.jsx(o.Fragment,{children:o.jsx(e.TagName,{...e.attributes,...e.actionAttributes})}):o.jsx(o.Fragment,{children:typeof e.TagName=="string"?o.jsx(o.Fragment,{children:o.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children})}):o.jsx(o.Fragment,{children:o.jsx(e.TagName,{...e.attributes,...e.actionAttributes,children:e.children})})})})}const O=()=>{switch(m.TARGET){case"react":case"reactNative":case"rsc":return"className";case"svelte":case"vue":case"solid":case"qwik":return"class"}};function de(e){return o.jsx(G,{attributes:{...e.attributes,[O()]:`${e.link?"":"builder-button"} ${e.attributes[O()]||""}`,...e.link?{href:e.link,target:e.openLinkInNewTab?"_blank":void 0,role:"link"}:{role:"button"}},TagName:e.link?e.builderLinkComponent||"a":"button",actionAttributes:{},children:e.text})}const Q=u.createContext({content:null,context:{},localState:void 0,rootSetState(){},rootState:{},apiKey:null,apiVersion:void 0,componentInfos:{},inheritedStyles:{},BlocksWrapper:"div",BlocksWrapperProps:{}}),ue=u.createContext({registeredComponents:{}});function Ve(e){var t;return{...(t=e.component)==null?void 0:t.options,...e.options,builderBlock:e}}const Ae=({builder:e,context:t,event:n,state:i})=>Object.entries({state:i,Builder:e,builder:e,context:t,event:n}),We=()=>({isEditing:m.isEditing(),isBrowser:m.isBrowser(),isServer:!m.isBrowser(),getUserAttributes:()=>m.getUserAttributes()}),Ne=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e,ne=({code:e,builder:t,context:n,event:i,localState:a,rootSetState:r,rootState:s})=>{const l=Ae({builder:t,context:n,event:i,state:me({rootState:s,localState:a,rootSetState:r})});return new Function(...l.map(([c])=>c),e)(...l.map(([,c])=>c))};function me({rootState:e,localState:t,rootSetState:n}){return new Proxy(e,{get:(i,a)=>{if(t&&a in t)return t[a];const r=i[a];return typeof r=="object"?me({rootState:r,localState:void 0,rootSetState:n?s=>{i[a]=s,n(i)}:void 0}):r},set:(i,a,r)=>{if(t&&a in t)throw new Error("Writing to local state is not allowed as it is read-only.");return i[a]=r,n==null||n(i),!0}})}function $e(){var e;return typeof process!="undefined"&&m.checkIsDefined((e=process==null?void 0:process.versions)==null?void 0:e.node)}const De=()=>{var i;if(!$e())return!1;const e=process.arch==="arm64",t=process.version.startsWith("v20"),n=(i=process.env.NODE_OPTIONS)==null?void 0:i.includes("--no-node-snapshot");return e&&t&&!n?(m.logger.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},Le=e=>(m.isBrowser()||De(),ne(e));function M({code:e,context:t,localState:n,rootState:i,rootSetState:a,event:r,isExpression:s=!0}){if(e===""){m.logger.warn("Skipping evaluation of empty code block.");return}const l={code:Ne(e,{isExpression:s}),builder:We(),context:t,event:r,rootSetState:a,rootState:i,localState:n};try{return Le(l)}catch(c){m.logger.error("Failed code evaluation: "+c.message,{code:e});return}}const fe=(e,t,n)=>{if(Object(e)!==e)return e;const i=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return i.slice(0,-1).reduce((a,r,s)=>Object(a[r])===a[r]?a[r]:a[r]=Math.abs(Number(i[s+1]))>>0===+i[s+1]?[]:{},e)[i[i.length-1]]=n,e};const Oe=({block:e,context:t,localState:n,rootState:i,rootSetState:a})=>{if(!e.bindings)return e;const r=m.fastClone(e),s={...r,properties:{...r.properties},actions:{...r.actions}};for(const l in e.bindings){const c=e.bindings[l],d=M({code:c,localState:n,rootState:i,rootSetState:a,context:t});fe(s,l,d)}return s};function K({block:e,context:t,shouldEvaluateBindings:n,localState:i,rootState:a,rootSetState:r}){const s=e;return n?Oe({block:s,localState:i,rootState:a,rootSetState:r,context:t}):s}function Me(e,t,n={}){let i,a,r,s=null,l=0;const c=function(){l=n.leading===!1?0:Date.now(),s=null,r=e.apply(i,a),s||(i=a=null)};return function(){const d=Date.now();!l&&n.leading===!1&&(l=d);const f=t-(d-l);return i=this,a=arguments,f<=0||f>t?(s&&(clearTimeout(s),s=null),l=d,r=e.apply(i,a),s||(i=a=null)):!s&&n.trailing!==!1&&(s=setTimeout(c,f)),r}}function $(e,...t){const n=Object(e);for(let i=1;i<arguments.length;i++){const a=arguments[i];if(a!=null)for(const r in a)Object.prototype.hasOwnProperty.call(a,r)&&(n[r]=a[r])}return n}const X=e=>e?e.replace(/([A-Z])/g,t=>`-${t[0].toLowerCase()}`):"";function Ue(e){for(const t of e)switch(t.trigger){case"pageLoad":ge(t);break;case"hover":_e(t);break;case"scrollInView":Ke(t);break}}function Z(e){console.warn(`Cannot animate element: element with ID ${e} not found!`)}function ee(e,t){const n=He(e),i=getComputedStyle(t),a=e.steps[0].styles,r=e.steps[e.steps.length-1].styles,s=[a,r];for(const l of s)for(const c of n)c in l||(l[c]=i[c])}function He(e){const t=[];for(const n of e.steps)for(const i in n.styles)t.indexOf(i)===-1&&t.push(i);return t}function ge(e){const t=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));if(!t.length){Z(e.elementId||e.id||"");return}Array.from(t).forEach(n=>{ee(e,n),n.style.transition="none",n.style.transitionDelay="0",$(n.style,e.steps[0].styles),setTimeout(()=>{n.style.transition=`all ${e.duration}s ${X(e.easing)}`,e.delay&&(n.style.transitionDelay=e.delay+"s"),$(n.style,e.steps[1].styles),setTimeout(()=>{n.style.transition="",n.style.transitionDelay=""},(e.delay||0)*1e3+e.duration*1e3+100)})})}function _e(e){const t=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));if(!t.length){Z(e.elementId||e.id||"");return}Array.from(t).forEach(n=>{ee(e,n);const i=e.steps[0].styles,a=e.steps[1].styles;function r(){$(n.style,i)}function s(){$(n.style,a)}r(),n.addEventListener("mouseenter",s),n.addEventListener("mouseleave",r),setTimeout(()=>{n.style.transition=`all ${e.duration}s ${X(e.easing)}`,e.delay&&(n.style.transitionDelay=e.delay+"s")})})}function Ke(e){const t=Array.prototype.slice.call(document.getElementsByClassName(e.elementId||e.id||""));if(!t.length){Z(e.elementId||e.id||"");return}Array.from(t).forEach(n=>{ee(e,n);let i=!1,a=!1;function r(){!i&&l(n)?(i=!0,a=!0,setTimeout(()=>{$(n.style,e.steps[1].styles),e.repeat||document.removeEventListener("scroll",s),setTimeout(()=>{a=!1,e.repeat||(n.style.transition="",n.style.transitionDelay="")},(e.duration+(e.delay||0))*1e3+100)})):e.repeat&&i&&!a&&!l(n)&&(i=!1,$(n.style,e.steps[0].styles))}const s=Me(r,200,{leading:!1});function l(f){const p=f.getBoundingClientRect(),v=window.innerHeight,b=(e.thresholdPercent||0)/100*v;return p.bottom>b&&p.top<v-b}const c=e.steps[0].styles;function d(){$(n.style,c)}d(),setTimeout(()=>{n.style.transition=`all ${e.duration}s ${X(e.easing)}`,e.delay&&(n.style.transitionDelay=e.delay+"s")}),document.addEventListener("scroll",s,{capture:!0,passive:!0}),r()})}const qe=({block:e,context:t,registeredComponents:n})=>{var r;const i=(r=K({block:e,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context,shouldEvaluateBindings:!1}).component)==null?void 0:r.name;if(!i)return null;const a=n[i];if(a)return a;console.warn(`
|
|
2
2
|
Could not find a registered component named "${i}".
|
|
3
3
|
If you registered it, is the file that registered it imported by the file that needs to render it?`)},ze=({block:e,context:t})=>{const{repeat:n,...i}=e;if(!(n!=null&&n.collection))return;const a=M({code:n.collection,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context});if(!Array.isArray(a))return;const r=n.collection.split(".").pop(),s=n.itemName||(r?r+"Item":"item");return a.map((c,d)=>({context:{...t,localState:{...t.localState,$index:d,$item:c,[s]:c,[`$${s}Index`]:d}},block:i}))},he={small:{min:320,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},ie=(e,t=he)=>`@media (max-width: ${t[e].max}px)`,be=({small:e,medium:t})=>{const n=m.fastClone(he);if(!e||!t)return n;const i=Math.floor(e/2);n.small={max:e,min:i,default:i+1};const a=n.small.max+1;n.medium={max:t,min:a,default:a+1};const r=n.medium.max+1;return n.large={max:2e3,min:r,default:r+1},n},Je=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),xe=e=>Object.entries(e).map(([n,i])=>{if(typeof i=="string")return`${Je(n)}: ${i};`}).filter(m.checkIsDefined),Ye=e=>xe(e).join(`
|
|
4
4
|
`),z=({mediaQuery:e,className:t,styles:n})=>{const i=`.${t} {
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
`}return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:`builder-columns ${e.builderBlock.id}-breakpoints div-f5024694`,style:g(),children:[o.jsx(o.Fragment,{children:o.jsx(q,{styles:j()})}),(P=e.columns)==null?void 0:P.map((S,T)=>o.jsx(G,{TagName:S.link?e.builderLinkComponent||"a":"div",actionAttributes:{},attributes:{...S.link?{href:S.link}:{},[O()]:"builder-column",style:pe(b(T))},children:o.jsx(D,{path:`component.options.columns.${T}.blocks`,parent:e.builderBlock.id,styleProp:{flexGrow:"1"},context:e.builderContext,registeredComponents:e.builderComponents,linkComponent:e.builderLinkComponent,blocks:S.blocks})},T))]}),o.jsx("style",{children:`.div-f5024694 {
|
|
37
37
|
display: flex;
|
|
38
38
|
line-height: normal;
|
|
39
|
-
}`})]})}function ve(e){return o.jsx("span",{children:e.children})}function ae(e){return e.replace(/http(s)?:/,"")}function ct(e="",t,n){const i=new RegExp("([?&])"+t+"=.*?(&|$)","i"),a=e.indexOf("?")!==-1?"&":"?";return e.match(i)?e.replace(i,"$1"+t+"="+encodeURIComponent(n)+"$2"):e+a+t+"="+encodeURIComponent(n)}function dt(e,t){if(!e||!(e!=null&&e.match(/cdn\.shopify\.com/))||!t)return e;if(t==="master")return ae(e);const n=e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);if(n){const i=e.split(n[0]),a=n[3],r=t.match("x")?t:`${t}x`;return ae(`${i[0]}_${r}${a}`)}return null}function J(e){if(!e)return e;const t=[100,200,400,800,1200,1600,2e3];if(e.match(/builder\.io/)){let n=e;const i=Number(e.split("?width=")[1]);return isNaN(i)||(n=`${n} ${i}w`),t.filter(a=>a!==i).map(a=>`${ct(e,"width",a)} ${a}w`).concat([n]).join(", ")}return e.match(/cdn\.shopify\.com/)?t.map(n=>[dt(e,`${n}x${n}`),n]).filter(([n])=>!!n).map(([n,i])=>`${n} ${i}w`).concat([e]).join(", "):e}function ke(e){var a,r,s,l;function t(){var f;const d=e.image||e.src;if(!d||!(d.match(/builder\.io/)||d.match(/cdn\.shopify\.com/)))return e.srcset;if(e.srcset&&((f=e.image)!=null&&f.includes("builder.io/api/v1/image"))){if(!e.srcset.includes(e.image.split("?")[0]))return console.debug("Removed given srcset"),J(d)}else if(e.image&&!e.srcset)return J(d);return J(d)}function n(){var c;return(c=t==null?void 0:t())!=null&&c.match(/builder\.io/)&&!e.noWebp?t().replace(/\?/g,"?format=webp&"):""}function i(){const c={position:"absolute",height:"100%",width:"100%",left:"0px",top:"0px"};return e.aspectRatio?c:void 0}return o.jsxs(o.Fragment,{children:[o.jsxs(o.Fragment,{children:[o.jsxs("picture",{children:[n()?o.jsx(o.Fragment,{children:o.jsx("source",{type:"image/webp",srcSet:n()})}):null,o.jsx("img",{loading:"lazy",alt:e.altText,role:e.altText?"presentation"
|
|
39
|
+
}`})]})}function ve(e){return o.jsx("span",{children:e.children})}function ae(e){return e.replace(/http(s)?:/,"")}function ct(e="",t,n){const i=new RegExp("([?&])"+t+"=.*?(&|$)","i"),a=e.indexOf("?")!==-1?"&":"?";return e.match(i)?e.replace(i,"$1"+t+"="+encodeURIComponent(n)+"$2"):e+a+t+"="+encodeURIComponent(n)}function dt(e,t){if(!e||!(e!=null&&e.match(/cdn\.shopify\.com/))||!t)return e;if(t==="master")return ae(e);const n=e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);if(n){const i=e.split(n[0]),a=n[3],r=t.match("x")?t:`${t}x`;return ae(`${i[0]}_${r}${a}`)}return null}function J(e){if(!e)return e;const t=[100,200,400,800,1200,1600,2e3];if(e.match(/builder\.io/)){let n=e;const i=Number(e.split("?width=")[1]);return isNaN(i)||(n=`${n} ${i}w`),t.filter(a=>a!==i).map(a=>`${ct(e,"width",a)} ${a}w`).concat([n]).join(", ")}return e.match(/cdn\.shopify\.com/)?t.map(n=>[dt(e,`${n}x${n}`),n]).filter(([n])=>!!n).map(([n,i])=>`${n} ${i}w`).concat([e]).join(", "):e}function ke(e){var a,r,s,l;function t(){var f;const d=e.image||e.src;if(!d||!(d.match(/builder\.io/)||d.match(/cdn\.shopify\.com/)))return e.srcset;if(e.srcset&&((f=e.image)!=null&&f.includes("builder.io/api/v1/image"))){if(!e.srcset.includes(e.image.split("?")[0]))return console.debug("Removed given srcset"),J(d)}else if(e.image&&!e.srcset)return J(d);return J(d)}function n(){var c;return(c=t==null?void 0:t())!=null&&c.match(/builder\.io/)&&!e.noWebp?t().replace(/\?/g,"?format=webp&"):""}function i(){const c={position:"absolute",height:"100%",width:"100%",left:"0px",top:"0px"};return e.aspectRatio?c:void 0}return o.jsxs(o.Fragment,{children:[o.jsxs(o.Fragment,{children:[o.jsxs("picture",{children:[n()?o.jsx(o.Fragment,{children:o.jsx("source",{type:"image/webp",srcSet:n()})}):null,o.jsx("img",{loading:"lazy",alt:e.altText,role:e.altText?void 0:"presentation",style:{objectPosition:e.backgroundPosition||"center",objectFit:e.backgroundSize||"cover",...i()},className:"builder-image"+(e.className?" "+e.className:"")+" img-0614da04",src:e.image,srcSet:t(),sizes:e.sizes})]}),e.aspectRatio&&!((r=(a=e.builderBlock)==null?void 0:a.children)!=null&&r.length&&e.fitContent)?o.jsx(o.Fragment,{children:o.jsx("div",{className:"builder-image-sizer div-0614da04",style:{paddingTop:e.aspectRatio*100+"%"}})}):null,(l=(s=e.builderBlock)==null?void 0:s.children)!=null&&l.length&&e.fitContent?o.jsx(o.Fragment,{children:e.children}):null,!e.fitContent&&e.children?o.jsx(o.Fragment,{children:o.jsx("div",{className:"div-0614da04-2",children:e.children})}):null]}),o.jsx("style",{children:`.img-0614da04 {
|
|
40
40
|
opacity: 1;
|
|
41
41
|
transition: opacity 0.2s ease-in-out;
|
|
42
|
-
}.div-
|
|
42
|
+
}.div-0614da04 {
|
|
43
43
|
width: 100%;
|
|
44
44
|
pointer-events: none;
|
|
45
45
|
font-size: 0;
|
|
46
|
-
}.div-
|
|
46
|
+
}.div-0614da04-2 {
|
|
47
47
|
display: flex;
|
|
48
48
|
flex-direction: column;
|
|
49
49
|
align-items: stretch;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as l, Fragment as m, jsxs as N } from "react/jsx-runtime";
|
|
3
|
-
import { TARGET as z, isEditing as M, isBrowser as H, getUserAttributes as De, checkIsDefined as Q, logger as _, fastClone as ae, registerInsertMenu as Me, setupBrowserForEditing as Oe, createRegisterComponentMessage as je, getDefaultCanTrack as X, _track as fe, isPreviewing as Ue, fetchOneEntry as we, createEditorListener as He, fetch as _e, serializeComponentInfo as he, handleABTestingSync as Ke } from "./server-entry-
|
|
3
|
+
import { TARGET as z, isEditing as M, isBrowser as H, getUserAttributes as De, checkIsDefined as Q, logger as _, fastClone as ae, registerInsertMenu as Me, setupBrowserForEditing as Oe, createRegisterComponentMessage as je, getDefaultCanTrack as X, _track as fe, isPreviewing as Ue, fetchOneEntry as we, createEditorListener as He, fetch as _e, serializeComponentInfo as he, handleABTestingSync as Ke } from "./server-entry-acc5a9c8.js";
|
|
4
4
|
import { createContext as Ie, useState as x, useEffect as W, useContext as ge, useRef as ee, createElement as re } from "react";
|
|
5
5
|
const qe = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ze = (e) => typeof e == "string" && qe.has(e.toLowerCase());
|
|
6
6
|
function le(e) {
|
|
@@ -1147,13 +1147,13 @@ function Pt(e) {
|
|
|
1147
1147
|
{
|
|
1148
1148
|
loading: "lazy",
|
|
1149
1149
|
alt: e.altText,
|
|
1150
|
-
role: e.altText ? "presentation"
|
|
1150
|
+
role: e.altText ? void 0 : "presentation",
|
|
1151
1151
|
style: {
|
|
1152
1152
|
objectPosition: e.backgroundPosition || "center",
|
|
1153
1153
|
objectFit: e.backgroundSize || "cover",
|
|
1154
1154
|
...i()
|
|
1155
1155
|
},
|
|
1156
|
-
className: "builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
1156
|
+
className: "builder-image" + (e.className ? " " + e.className : "") + " img-0614da04",
|
|
1157
1157
|
src: e.image,
|
|
1158
1158
|
srcSet: t(),
|
|
1159
1159
|
sizes: e.sizes
|
|
@@ -1163,23 +1163,23 @@ function Pt(e) {
|
|
|
1163
1163
|
e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ l(m, { children: /* @__PURE__ */ l(
|
|
1164
1164
|
"div",
|
|
1165
1165
|
{
|
|
1166
|
-
className: "builder-image-sizer div-
|
|
1166
|
+
className: "builder-image-sizer div-0614da04",
|
|
1167
1167
|
style: {
|
|
1168
1168
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1169
1169
|
}
|
|
1170
1170
|
}
|
|
1171
1171
|
) }) : null,
|
|
1172
1172
|
(s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(m, { children: e.children }) : null,
|
|
1173
|
-
!e.fitContent && e.children ? /* @__PURE__ */ l(m, { children: /* @__PURE__ */ l("div", { className: "div-
|
|
1173
|
+
!e.fitContent && e.children ? /* @__PURE__ */ l(m, { children: /* @__PURE__ */ l("div", { className: "div-0614da04-2", children: e.children }) }) : null
|
|
1174
1174
|
] }),
|
|
1175
|
-
/* @__PURE__ */ l("style", { children: `.img-
|
|
1175
|
+
/* @__PURE__ */ l("style", { children: `.img-0614da04 {
|
|
1176
1176
|
opacity: 1;
|
|
1177
1177
|
transition: opacity 0.2s ease-in-out;
|
|
1178
|
-
}.div-
|
|
1178
|
+
}.div-0614da04 {
|
|
1179
1179
|
width: 100%;
|
|
1180
1180
|
pointer-events: none;
|
|
1181
1181
|
font-size: 0;
|
|
1182
|
-
}.div-
|
|
1182
|
+
}.div-0614da04-2 {
|
|
1183
1183
|
display: flex;
|
|
1184
1184
|
flex-direction: column;
|
|
1185
1185
|
align-items: stretch;
|
package/lib/browser/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./blocks-exports.cjs"),e=require("./server-entry-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./blocks-exports.cjs"),e=require("./server-entry-4829e1ce.cjs");require("react/jsx-runtime");require("react");exports.Blocks=t.Blocks;exports.Button=t.Button;exports.Columns=t.Columns;exports.Content=t.Content;exports.Fragment=t.Fragment;exports.Image=t.Image;exports.Section=t.Section;exports.Symbol=t.Symbol;exports.Text=t.Text;exports.Video=t.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.setEditorSettings=e.setEditorSettings;exports.subscribeToEditor=e.subscribeToEditor;exports.track=e.track;
|
package/lib/browser/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Blocks as i, Button as s, Columns as n, Content as c, Fragment as m, Image as g, Section as a, Symbol as p, Text as d, Video as l } from "./blocks-exports.mjs";
|
|
2
|
-
import { _processContentResult as f, createRegisterComponentMessage as E, fetchBuilderProps as h, fetchEntries as B, fetchOneEntry as C, getBuilderSearchParams as S, isEditing as b, isPreviewing as x, register as P, setEditorSettings as k, subscribeToEditor as y, track as R } from "./server-entry-
|
|
2
|
+
import { _processContentResult as f, createRegisterComponentMessage as E, fetchBuilderProps as h, fetchEntries as B, fetchOneEntry as C, getBuilderSearchParams as S, isEditing as b, isPreviewing as x, register as P, setEditorSettings as k, subscribeToEditor as y, track as R } from "./server-entry-acc5a9c8.js";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react";
|
|
5
5
|
export {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use strict";const b="react",I="[Builder.io]: ",d={log:(...e)=>console.log(I,...e),error:(...e)=>console.error(I,...e),warn:(...e)=>console.warn(I,...e),debug:(...e)=>console.debug(I,...e)};function c(){return typeof window!="undefined"&&typeof document!="undefined"}const ce=e=>{const t={};return e.forEach((n,r)=>{t[r]=n}),t},M=e=>e instanceof URLSearchParams?ce(e):e,F=e=>typeof e=="string"?e:e instanceof URLSearchParams?e.toString():new URLSearchParams(e).toString();function ue(){return c()&&window.self!==window.top}function k(e){return ue()&&F(e||window.location.search).indexOf("builder.frameEditing=")!==-1}const de=()=>{if(c()){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},le=()=>typeof navigator=="object"&&navigator.userAgent||"",N=()=>{const e=le(),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()||b==="reactNative"}},n=e.match(/Tablet|iPad/i),r=de();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"}},p=e=>e!=null,C=e=>JSON.parse(JSON.stringify(e)),fe=e=>{if(e==="localhost"||e==="127.0.0.1")return e;const t=e.split(".");return t.length>2?t.slice(1).join("."):e},D=({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){d.warn("[COOKIE] GET error: ",(r==null?void 0:r.message)||r);return}},j=async e=>D(e),ge=e=>e.map(([t,n])=>n?`${t}=${n}`:t).filter(p).join("; "),he=[["secure",""],["SameSite","None"]],pe=({name:e,value:t,expires:n})=>{const o=(c()?location.protocol==="https:":!0)?he:[[]],s=n?[["expires",n.toUTCString()]]:[[]],a=[[e,t],...s,["path","/"],["domain",fe(window.location.hostname)],...o];return ge(a)},K=async({name:e,value:t,expires:n,canTrack:r})=>{try{if(!r)return;const o=pe({name:e,value:t,expires:n});document.cookie=o}catch(o){d.warn("[COOKIE] SET error: ",(o==null?void 0:o.message)||o)}},me="builder.tests",P=e=>`${me}.${e}`,ye=({contentId:e})=>j({name:P(e),canTrack:!0}),we=({contentId:e})=>D({name:P(e),canTrack:!0}),Se=({contentId:e,value:t})=>K({name:P(e),value:t,canTrack:!0}),_=e=>p(e.id)&&p(e.variations)&&Object.keys(e.variations).length>0,be=({id:e,variations:t})=>{var o;let n=0;const r=Math.random();for(const s in t){const a=(o=t[s])==null?void 0:o.testRatio;if(n+=a,r<n)return s}return e},W=e=>{const t=be(e);return Se({contentId:e.id,value:t}).catch(n=>{d.error("could not store A/B test variation: ",n)}),t},$=({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":"")}},Ie=({item:e,canTrack:t})=>{if(!t)return e;if(!e)return;if(!_(e))return e;const n=we({contentId:e.id})||W({variations:e.variations,id:e.id}),r=$({item:e,testGroupId:n});return{...e,...r}},ve=async({item:e,canTrack:t})=>{if(!t||!_(e))return e;const r=await ye({contentId:e.id})||W({variations:e.variations,id:e.id}),o=$({item:e,testGroupId:r});return{...e,...o}},G=e=>p(e)?e:!0,Ee=e=>({type:"builder.registerComponent",data:z(e)}),ke=e=>{const t=e.toString().trim();return`return (${!t.startsWith("function")&&!t.startsWith("(")?"function ":""}${t}).apply(this, arguments)`},Ce=e=>typeof e=="function"?ke(e):C(e),z=({inputs:e,...t})=>({...C(t),inputs:e==null?void 0:e.map(n=>Object.entries(n).reduce((r,[o,s])=>({...r,[o]:Ce(s)}),{}))});function Pe(){return typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:globalThis}function Oe(){const e=Pe().fetch;if(typeof e=="undefined")throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
2
|
-
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 J=Oe();function v(e,t=null,n="."){return Object.keys(e).reduce((r,o)=>{const s=e[o],a=[t,o].filter(Boolean).join(n);return[typeof s=="object",s!==null,!(Array.isArray(s)&&s.length===0)].every(Boolean)?{...r,...v(s,a,n)}:{...r,[a]:s}},{})}const Te="v3",R="builder.",xe="options.",O=e=>{if(!e)return{};const t=M(e),n={};return Object.keys(t).forEach(r=>{if(r.startsWith(R)){const o=r.replace(R,"").replace(xe,"");n[o]=t[r]}}),n},Ae=()=>{if(!c())return{};const e=new URLSearchParams(window.location.search);return O(e)},B=e=>typeof e=="number"&&!isNaN(e)&&e>=0,T=e=>{const{limit:t=30,userAttributes:n,query:r,model:o,apiKey:s,enrich:a,locale:l,apiVersion:y=Te,fields:m,omit:E,offset:u,cacheSeconds:g,staleCacheSeconds:h,sort:w,includeUnpublished:x}=e;if(!s)throw new Error("Missing API key");if(!["v3"].includes(y))throw new Error(`Invalid apiVersion: expected 'v3', received '${y}'`);const ie=t!==1,i=new URL(`https://cdn.builder.io/api/${y}/content/${o}`);if(i.searchParams.set("apiKey",s),i.searchParams.set("limit",String(t)),i.searchParams.set("noTraverse",String(ie)),i.searchParams.set("includeRefs",String(!0)),l&&i.searchParams.set("locale",l),a&&i.searchParams.set("enrich",String(a)),i.searchParams.set("omit",E||"meta.componentsUsed"),m&&i.searchParams.set("fields",m),Number.isFinite(u)&&u>-1&&i.searchParams.set("offset",String(Math.floor(u))),typeof x=="boolean"&&i.searchParams.set("includeUnpublished",String(x)),g&&B(g)&&i.searchParams.set("cacheSeconds",String(g)),h&&B(h)&&i.searchParams.set("staleCacheSeconds",String(h)),w){const f=v({sort:w});for(const S in f)i.searchParams.set(S,JSON.stringify(f[S]))}const ae={...Ae(),...M(e.options||{})},A=v(ae);for(const f in A)i.searchParams.set(f,String(A[f]));if(n&&i.searchParams.set("userAttributes",JSON.stringify(n)),r){const f=v({query:r});for(const S in f)i.searchParams.set(S,JSON.stringify(f[S]))}return i},Re=e=>"results"in e;async function H(e){const t=await q({...e,limit:1});return t&&t[0]||null}const Be=async e=>{const t=T(e);return await(await J(t.href)).json()},X=async(e,t,n=T(e))=>{const r=G(e.canTrack);if(n.search.includes("preview="),!r||!(c()||b==="reactNative"))return t.results;try{const o=[];for(const s of t.results)o.push(await ve({item:s,canTrack:r}));t.results=o}catch(o){d.error("Could not process A/B tests. ",o)}return t.results};async function q(e){try{const t=T(e),n=await Be(e);return Re(n)?X(e,n):(d.error("Error fetching data. ",{url:t,content:n,options:e}),null)}catch(t){return d.error("Error fetching data. ",t),null}}function Le(e){if(!c())return!1;const t=F(e||window.location.search);return k(t)?!1:t.indexOf("builder.preview=")!==-1}function Ve(){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 Y(){return Ve().replace(/-/g,"")}const Q="builderSessionId",Ue=async({canTrack:e})=>{if(!e)return;const t=await j({name:Q,canTrack:e});if(p(t))return t;{const n=Me();return Fe({id:n,canTrack:e}),n}},Me=()=>Y(),Fe=({id:e,canTrack:t})=>K({name:Q,value:e,canTrack:t}),Z=()=>c()&&typeof localStorage!="undefined"?localStorage:void 0,Ne=({key:e,canTrack:t})=>{var n;try{return t?(n=Z())==null?void 0:n.getItem(e):void 0}catch(r){console.debug("[LocalStorage] GET error: ",r);return}},De=({key:e,canTrack:t,value:n})=>{var r;try{t&&((r=Z())==null||r.setItem(e,n))}catch(o){console.debug("[LocalStorage] SET error: ",o)}},ee="builderVisitorId",je=({canTrack:e})=>{if(!e)return;const t=Ne({key:ee,canTrack:e});if(p(t))return t;{const n=Ke();return _e({id:n,canTrack:e}),n}},Ke=()=>Y(),_e=({id:e,canTrack:t})=>De({key:ee,value:e,canTrack:t}),We=async({canTrack:e})=>{if(!e)return{visitorId:void 0,sessionId:void 0};const t=await Ue({canTrack:e}),n=je({canTrack:e});return{sessionId:t,visitorId:n}},$e=async({type:e,canTrack:t,apiKey:n,metadata:r,...o})=>({type:e,data:{...o,metadata:{url:location.href,...r},...await We({canTrack:t}),userAttributes:N(),ownerId:n}});async function te(e){if(!e.apiKey){d.error("Missing API key for track call. Please provide your API key.");return}if(e.canTrack&&!k()&&(c()||b==="reactNative"))return fetch("https://cdn.builder.io/api/v1/track",{method:"POST",body:JSON.stringify({events:[await $e(e)]}),headers:{"content-type":"application/json"},mode:"cors"}).catch(t=>{console.error("Failed to track: ",t)})}const Ge=e=>te({...e,canTrack:!0}),ze=["*.beta.builder.io","beta.builder.io","builder.io","localhost","qa.builder.io"];function ne(e,t){const n=new URL(t.origin),r=n.hostname;return(e||ze).findIndex(o=>o.startsWith("*.")?r.endsWith(o.slice(1)):o===r)>-1}const Je="1.0.
|
|
2
|
+
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 J=Oe();function v(e,t=null,n="."){return Object.keys(e).reduce((r,o)=>{const s=e[o],a=[t,o].filter(Boolean).join(n);return[typeof s=="object",s!==null,!(Array.isArray(s)&&s.length===0)].every(Boolean)?{...r,...v(s,a,n)}:{...r,[a]:s}},{})}const Te="v3",R="builder.",xe="options.",O=e=>{if(!e)return{};const t=M(e),n={};return Object.keys(t).forEach(r=>{if(r.startsWith(R)){const o=r.replace(R,"").replace(xe,"");n[o]=t[r]}}),n},Ae=()=>{if(!c())return{};const e=new URLSearchParams(window.location.search);return O(e)},B=e=>typeof e=="number"&&!isNaN(e)&&e>=0,T=e=>{const{limit:t=30,userAttributes:n,query:r,model:o,apiKey:s,enrich:a,locale:l,apiVersion:y=Te,fields:m,omit:E,offset:u,cacheSeconds:g,staleCacheSeconds:h,sort:w,includeUnpublished:x}=e;if(!s)throw new Error("Missing API key");if(!["v3"].includes(y))throw new Error(`Invalid apiVersion: expected 'v3', received '${y}'`);const ie=t!==1,i=new URL(`https://cdn.builder.io/api/${y}/content/${o}`);if(i.searchParams.set("apiKey",s),i.searchParams.set("limit",String(t)),i.searchParams.set("noTraverse",String(ie)),i.searchParams.set("includeRefs",String(!0)),l&&i.searchParams.set("locale",l),a&&i.searchParams.set("enrich",String(a)),i.searchParams.set("omit",E||"meta.componentsUsed"),m&&i.searchParams.set("fields",m),Number.isFinite(u)&&u>-1&&i.searchParams.set("offset",String(Math.floor(u))),typeof x=="boolean"&&i.searchParams.set("includeUnpublished",String(x)),g&&B(g)&&i.searchParams.set("cacheSeconds",String(g)),h&&B(h)&&i.searchParams.set("staleCacheSeconds",String(h)),w){const f=v({sort:w});for(const S in f)i.searchParams.set(S,JSON.stringify(f[S]))}const ae={...Ae(),...M(e.options||{})},A=v(ae);for(const f in A)i.searchParams.set(f,String(A[f]));if(n&&i.searchParams.set("userAttributes",JSON.stringify(n)),r){const f=v({query:r});for(const S in f)i.searchParams.set(S,JSON.stringify(f[S]))}return i},Re=e=>"results"in e;async function H(e){const t=await q({...e,limit:1});return t&&t[0]||null}const Be=async e=>{const t=T(e);return await(await J(t.href)).json()},X=async(e,t,n=T(e))=>{const r=G(e.canTrack);if(n.search.includes("preview="),!r||!(c()||b==="reactNative"))return t.results;try{const o=[];for(const s of t.results)o.push(await ve({item:s,canTrack:r}));t.results=o}catch(o){d.error("Could not process A/B tests. ",o)}return t.results};async function q(e){try{const t=T(e),n=await Be(e);return Re(n)?X(e,n):(d.error("Error fetching data. ",{url:t,content:n,options:e}),null)}catch(t){return d.error("Error fetching data. ",t),null}}function Le(e){if(!c())return!1;const t=F(e||window.location.search);return k(t)?!1:t.indexOf("builder.preview=")!==-1}function Ve(){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 Y(){return Ve().replace(/-/g,"")}const Q="builderSessionId",Ue=async({canTrack:e})=>{if(!e)return;const t=await j({name:Q,canTrack:e});if(p(t))return t;{const n=Me();return Fe({id:n,canTrack:e}),n}},Me=()=>Y(),Fe=({id:e,canTrack:t})=>K({name:Q,value:e,canTrack:t}),Z=()=>c()&&typeof localStorage!="undefined"?localStorage:void 0,Ne=({key:e,canTrack:t})=>{var n;try{return t?(n=Z())==null?void 0:n.getItem(e):void 0}catch(r){console.debug("[LocalStorage] GET error: ",r);return}},De=({key:e,canTrack:t,value:n})=>{var r;try{t&&((r=Z())==null||r.setItem(e,n))}catch(o){console.debug("[LocalStorage] SET error: ",o)}},ee="builderVisitorId",je=({canTrack:e})=>{if(!e)return;const t=Ne({key:ee,canTrack:e});if(p(t))return t;{const n=Ke();return _e({id:n,canTrack:e}),n}},Ke=()=>Y(),_e=({id:e,canTrack:t})=>De({key:ee,value:e,canTrack:t}),We=async({canTrack:e})=>{if(!e)return{visitorId:void 0,sessionId:void 0};const t=await Ue({canTrack:e}),n=je({canTrack:e});return{sessionId:t,visitorId:n}},$e=async({type:e,canTrack:t,apiKey:n,metadata:r,...o})=>({type:e,data:{...o,metadata:{url:location.href,...r},...await We({canTrack:t}),userAttributes:N(),ownerId:n}});async function te(e){if(!e.apiKey){d.error("Missing API key for track call. Please provide your API key.");return}if(e.canTrack&&!k()&&(c()||b==="reactNative"))return fetch("https://cdn.builder.io/api/v1/track",{method:"POST",body:JSON.stringify({events:[await $e(e)]}),headers:{"content-type":"application/json"},mode:"cors"}).catch(t=>{console.error("Failed to track: ",t)})}const Ge=e=>te({...e,canTrack:!0}),ze=["*.beta.builder.io","beta.builder.io","builder.io","localhost","qa.builder.io"];function ne(e,t){const n=new URL(t.origin),r=n.hostname;return(e||ze).findIndex(o=>o.startsWith("*.")?r.endsWith(o.slice(1)):o===r)>-1}const Je="1.0.11",L={};function re(e,t){let n=L[e];if(n||(n=L[e]=[]),n.push(t),c()){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)}}}const He=()=>{re("insertMenu",{name:"_default",default:!0,items:[{name:"Box"},{name:"Text"},{name:"Image"},{name:"Columns"},{name:"Core:Section"},{name:"Core:Button"},{name:"Embed"},{name:"Custom Code"}]})};let V=!1;const oe=(e={})=>{var t,n;V||(V=!0,c()&&((t=window.parent)==null||t.postMessage({type:"builder.sdkInfo",data:{target:b,version:Je,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0}},"*"),(n=window.parent)==null||n.postMessage({type:"builder.updateContent",data:{options:e}},"*"),window.addEventListener("message",r=>{var s,a;if(!ne(e.trustedHosts,r))return;const{data:o}=r;if(o!=null&&o.type)switch(o.type){case"builder.evaluate":{const l=o.data.text,y=o.data.arguments||[],m=o.data.id,E=new Function(l);let u,g=null;try{u=E.apply(null,y)}catch(h){g=h}g?(s=window.parent)==null||s.postMessage({type:"builder.evaluateError",data:{id:m,error:g.message}},"*"):u&&typeof u.then=="function"?u.then(h=>{var w;(w=window.parent)==null||w.postMessage({type:"builder.evaluateResult",data:{id:m,result:h}},"*")}).catch(console.error):(a=window.parent)==null||a.postMessage({type:"builder.evaluateResult",data:{result:u,id:m}},"*");break}}})))},se=({model:e,trustedHosts:t,callbacks:n})=>r=>{if(!ne(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.contentUpdate":{const s=o.data,a=s.key||s.alias||s.entry||s.modelName,l=s.data;a===e&&n.contentUpdate(l);break}}},Xe=(e,t,n)=>{if(!c)return d.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."),()=>{};oe();const r=se({callbacks:{contentUpdate:t,animation:()=>{},configureSdk:()=>{}},model:e,trustedHosts:n==null?void 0:n.trustedHosts});return window.addEventListener("message",r),()=>{window.removeEventListener("message",r)}},U={};function qe(e){if(c()){Object.assign(U,e);const t={type:"builder.settingsChange",data:U};parent.postMessage(t,"*")}}const Ye=async e=>{var r,o,s;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:O(e.searchParams||((s=e.url)==null?void 0:s.searchParams)||e.options)};return{apiKey:n.apiKey,model:n.model,content:await H(n)}};exports.TARGET=b;exports._processContentResult=X;exports._track=te;exports.checkIsDefined=p;exports.createEditorListener=se;exports.createRegisterComponentMessage=Ee;exports.fastClone=C;exports.fetch=J;exports.fetchBuilderProps=Ye;exports.fetchEntries=q;exports.fetchOneEntry=H;exports.getBuilderSearchParams=O;exports.getDefaultCanTrack=G;exports.getUserAttributes=N;exports.handleABTestingSync=Ie;exports.isBrowser=c;exports.isEditing=k;exports.isPreviewing=Le;exports.logger=d;exports.register=re;exports.registerInsertMenu=He;exports.serializeComponentInfo=z;exports.setEditorSettings=qe;exports.setupBrowserForEditing=oe;exports.subscribeToEditor=Xe;exports.track=Ge;
|
|
@@ -476,7 +476,7 @@ function H(e, t) {
|
|
|
476
476
|
const n = new URL(t.origin), r = n.hostname;
|
|
477
477
|
return (e || je).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
|
|
478
478
|
}
|
|
479
|
-
const De = "1.0.
|
|
479
|
+
const De = "1.0.11", T = {};
|
|
480
480
|
function Ke(e, t) {
|
|
481
481
|
let n = T[e];
|
|
482
482
|
if (n || (n = T[e] = []), n.push(t), c()) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./server-entry-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./server-entry-4829e1ce.cjs");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.setEditorSettings=e.setEditorSettings;exports.subscribeToEditor=e.subscribeToEditor;exports.track=e.track;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _processContentResult as r, createRegisterComponentMessage as s, fetchBuilderProps as i, fetchEntries as n, fetchOneEntry as o, getBuilderSearchParams as c, isEditing as g, isPreviewing as a, register as d, setEditorSettings as E, subscribeToEditor as f, track as h } from "./server-entry-
|
|
1
|
+
import { _processContentResult as r, createRegisterComponentMessage as s, fetchBuilderProps as i, fetchEntries as n, fetchOneEntry as o, getBuilderSearchParams as c, isEditing as g, isPreviewing as a, register as d, setEditorSettings as E, subscribeToEditor as f, track as h } from "./server-entry-acc5a9c8.js";
|
|
2
2
|
export {
|
|
3
3
|
r as _processContentResult,
|
|
4
4
|
s as createRegisterComponentMessage,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as P, Fragment as K, jsxs as Rt } from "react/jsx-runtime";
|
|
2
2
|
import { createContext as $r, useState as _t, useEffect as wn, useContext as Rr } from "react";
|
|
3
|
-
import { isEditing as Mt, isBrowser as Bt, getUserAttributes as xn, logger as Ve, checkIsDefined as nt, fastClone as Gr, TARGET as Vr } from "./server-entry-
|
|
4
|
-
import { getClassPropName as kn } from "./get-class-prop-name-
|
|
3
|
+
import { isEditing as Mt, isBrowser as Bt, getUserAttributes as xn, logger as Ve, checkIsDefined as nt, fastClone as Gr, TARGET as Vr } from "./server-entry-1cbf5bef.js";
|
|
4
|
+
import { getClassPropName as kn } from "./get-class-prop-name-1178de8b.js";
|
|
5
5
|
import { DynamicRenderer as En } from "./dynamic-renderer-96ba4e48.js";
|
|
6
6
|
const Hr = $r({
|
|
7
7
|
content: null,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const w=require("react/jsx-runtime"),ce=require("react"),U=require("./server-entry-
|
|
1
|
+
"use strict";const w=require("react/jsx-runtime"),ce=require("react"),U=require("./server-entry-178f215d.cjs"),vn=require("./get-class-prop-name-c082f4f3.cjs"),mn=require("./dynamic-renderer-1c9f24c0.cjs"),Dt=ce.createContext({content:null,context:{},localState:void 0,rootSetState(){},rootState:{},apiKey:null,apiVersion:void 0,componentInfos:{},inheritedStyles:{},BlocksWrapper:"div",BlocksWrapperProps:{}}),Fr=ce.createContext({registeredComponents:{}});function xn(e){var t;return{...(t=e.component)==null?void 0:t.options,...e.options,builderBlock:e}}const _r=({builder:e,context:t,event:n,state:r})=>Object.entries({state:r,Builder:e,builder:e,context:t,event:n}),Sn=()=>({isEditing:U.isEditing(),isBrowser:U.isBrowser(),isServer:!U.isBrowser(),getUserAttributes:()=>U.getUserAttributes()}),wn=(e,{isExpression:t=!0})=>t&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e,kn=({code:e,builder:t,context:n,event:r,localState:o,rootSetState:s,rootState:a})=>{const f=_r({builder:t,context:n,event:r,state:Lr({rootState:a,localState:o,rootSetState:s})});return new Function(...f.map(([g])=>g),e)(...f.map(([,g])=>g))};function Lr({rootState:e,localState:t,rootSetState:n}){return new Proxy(e,{get:(r,o)=>{if(t&&o in t)return t[o];const s=r[o];return typeof s=="object"?Lr({rootState:s,localState:void 0,rootSetState:n?a=>{r[o]=a,n(r)}:void 0}):s},set:(r,o,s)=>{if(t&&o in t)throw new Error("Writing to local state is not allowed as it is read-only.");return r[o]=s,n==null||n(r),!0}})}const Ut=(e,t,n)=>{if(Object(e)!==e)return e;const r=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return r.slice(0,-1).reduce((o,s,a)=>Object(o[s])===o[s]?o[s]:o[s]=Math.abs(Number(r[a+1]))>>0===+r[a+1]?[]:{},e)[r[r.length-1]]=n,e};var P,En=function(e){function t(i){return 48>i?i===36:58>i?!0:65>i?!1:91>i?!0:97>i?i===95:123>i?!0:170<=i&&dn.test(String.fromCharCode(i))}function n(i){return 65>i?i===36:91>i?!0:97>i?i===95:123>i?!0:170<=i&&br.test(String.fromCharCode(i))}function r(i,l){for(var u=d,p=1,S=0;;){nt.lastIndex=S;var _=nt.exec(u);if(_&&_.index<i)++p,S=_.index+_[0].length;else break}throw u={line:p,ab:i-S},l+=" ("+u.line+":"+u.ab+")",l=new SyntaxError(l),l.j=i,l.X=u,l.o=c,l}function o(i){i=i.split(" ");for(var l=Object.create(null),u=0;u<i.length;u++)l[i[u]]=!0;return function(p){return l[p]||!1}}function s(){this.line=ge,this.ab=c-te}function a(i,l){xe=c,E.C&&(vt=new s),x=i,g(),K=l,Re=i.m}function f(){for(var i=c,l=E.va&&E.C&&new s,u=d.charCodeAt(c+=2);c<me&&u!==10&&u!==13&&u!==8232&&u!==8233;)++c,u=d.charCodeAt(c);E.va&&E.va(!1,d.slice(i+2,c),i,c,l,E.C&&new s)}function g(){for(;c<me;){var i=d.charCodeAt(c);if(i===32)++c;else if(i===13)++c,i=d.charCodeAt(c),i===10&&++c,E.C&&(++ge,te=c);else if(i===10||i===8232||i===8233)++c,E.C&&(++ge,te=c);else if(8<i&&14>i)++c;else if(i===47)if(i=d.charCodeAt(c+1),i===42){i=void 0;var l=E.va&&E.C&&new s,u=c,p=d.indexOf("*/",c+=2);if(p===-1&&r(c-2,"Unterminated comment"),c=p+2,E.C)for(nt.lastIndex=u;(i=nt.exec(d))&&i.index<c;)++ge,te=i.index+i[0].length;E.va&&E.va(!0,d.slice(u+2,p),u,c,l,E.C&&new s)}else if(i===47)f();else break;else if(i===160)++c;else if(5760<=i&&gn.test(String.fromCharCode(i)))++c;else break}}function b(i){switch(i){case 46:i=d.charCodeAt(c+1),48<=i&&57>=i?C(!0):(++c,a(wr));return;case 40:return++c,a(re);case 41:return++c,a(q);case 59:return++c,a(ne);case 44:return++c,a(ue);case 91:return++c,a(At);case 93:return++c,a(It);case 123:return++c,a(De);case 125:return++c,a(we);case 58:return++c,a(Ue);case 63:return++c,a(kr);case 48:if(i=d.charCodeAt(c+1),i===120||i===88){c+=2,i=T(16),i===null&&r(F+2,"Expected hexadecimal number"),n(d.charCodeAt(c))&&r(c,"Identifier directly after number"),a(Me,i);return}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return C(!1);case 34:case 39:c++;for(var l="";;){c>=me&&r(F,"Unterminated string constant");var u=d.charCodeAt(c);if(u===i){++c,a(Qe,l);break}if(u===92){u=d.charCodeAt(++c);var p=/^[0-7]+/.exec(d.slice(c,c+3));for(p&&(p=p[0]);p&&255<parseInt(p,8);)p=p.slice(0,-1);if(p==="0"&&(p=null),++c,p)X&&r(c-2,"Octal literal in strict mode"),l+=String.fromCharCode(parseInt(p,8)),c+=p.length-1;else switch(u){case 110:l+=`
|
|
2
2
|
`;break;case 114:l+="\r";break;case 120:l+=String.fromCharCode(N(2));break;case 117:l+=String.fromCharCode(N(4));break;case 85:l+=String.fromCharCode(N(8));break;case 116:l+=" ";break;case 98:l+="\b";break;case 118:l+="\v";break;case 102:l+="\f";break;case 48:l+="\0";break;case 13:d.charCodeAt(c)===10&&++c;case 10:E.C&&(te=c,++ge);break;default:l+=String.fromCharCode(u)}}else u!==13&&u!==10&&u!==8232&&u!==8233||r(F,"Unterminated string constant"),l+=String.fromCharCode(u),++c}return;case 47:i=d.charCodeAt(c+1),Re?(++c,J()):i===61?I(de,2):I(Er,1);return;case 37:case 42:d.charCodeAt(c+1)===61?I(de,2):I(fn,1);return;case 124:case 38:l=d.charCodeAt(c+1),l===i?I(i===124?Or:Ar,2):l===61?I(de,2):I(i===124?nn:sn,1);return;case 94:d.charCodeAt(c+1)===61?I(de,2):I(on,1);return;case 43:case 45:l=d.charCodeAt(c+1),l===i?l===45&&d.charCodeAt(c+2)===62&&rt.test(d.slice(le,c))?(c+=3,f(),g(),A()):I(rn,2):l===61?I(de,2):I(cn,1);return;case 60:case 62:l=d.charCodeAt(c+1),u=1,l===i?(u=i===62&&d.charCodeAt(c+2)===62?3:2,d.charCodeAt(c+u)===61?I(de,u+1):I(un,u)):l===33&&i===60&&d.charCodeAt(c+2)===45&&d.charCodeAt(c+3)===45?(c+=4,f(),g(),A()):(l===61&&(u=d.charCodeAt(c+2)===61?3:2),I(ln,u));return;case 61:case 33:d.charCodeAt(c+1)===61?I(an,d.charCodeAt(c+2)===61?3:2):I(i===61?Cr:jr,1);return;case 126:return I(jr,1)}return!1}function A(i){if(i?c=F+1:F=c,E.C&&(yt=new s),i)return J();if(c>=me)return a(St);if(i=d.charCodeAt(c),n(i)||i===92)return pe();if(b(i)===!1){if(i=String.fromCharCode(i),i==="\\"||br.test(i))return pe();r(c,"Unexpected character '"+i+"'")}}function I(i,l){var u=d.slice(c,c+l);c+=l,a(i,u)}function J(){for(var i,l,u=c;;){c>=me&&r(u,"Unterminated regexp");var p=d.charAt(c);if(rt.test(p)&&r(u,"Unterminated regexp"),i)i=!1;else{if(p==="[")l=!0;else if(p==="]"&&l)l=!1;else if(p==="/"&&!l)break;i=p==="\\"}++c}i=d.slice(u,c),++c,(l=Y())&&!/^[gmi]*$/.test(l)&&r(u,"Invalid regexp flag");try{var S=new RegExp(i,l)}catch(_){throw _ instanceof SyntaxError&&r(u,_.message),_}a(rr,S)}function T(i,l){for(var u=c,p=0,S=l===void 0?1/0:l,_=0;_<S;++_){var G=d.charCodeAt(c);if(G=97<=G?G-97+10:65<=G?G-65+10:48<=G&&57>=G?G-48:1/0,G>=i)break;++c,p=p*i+G}return c===u||l!==void 0&&c-u!==l?null:p}function C(i){var l=c,u=!1,p=d.charCodeAt(c)===48;i||T(10)!==null||r(l,"Invalid number"),d.charCodeAt(c)===46&&(++c,T(10),u=!0),i=d.charCodeAt(c),(i===69||i===101)&&(i=d.charCodeAt(++c),i!==43&&i!==45||++c,T(10)===null&&r(l,"Invalid number"),u=!0),n(d.charCodeAt(c))&&r(c,"Identifier directly after number"),i=d.slice(l,c);var S;u?S=parseFloat(i):p&&i.length!==1?/[89]/.test(i)||X?r(l,"Invalid number"):S=parseInt(i,8):S=parseInt(i,10),a(Me,S)}function N(i){return i=T(16,i),i===null&&r(F,"Bad character escape sequence"),i}function Y(){ke=!1;for(var i,l=!0,u=c;;){var p=d.charCodeAt(c);if(t(p))ke&&(i+=d.charAt(c)),++c;else if(p===92){ke||(i=d.slice(u,c)),ke=!0,d.charCodeAt(++c)!==117&&r(c,"Expecting Unicode escape sequence \\uXXXX"),++c,p=N(4);var S=String.fromCharCode(p);S||r(c-1,"Invalid Unicode escape"),(l?n(p):t(p))||r(c-4,"Invalid Unicode escape"),i+=S}else break;l=!1}return ke?i:d.slice(u,c)}function pe(){var i=Y(),l=Se;!ke&&hn(i)&&(l=tn[i]),a(l,i)}function j(){mt=F,le=xe,xt=vt,A()}function ve(i){if(X=i,c=F,E.C)for(;c<te;)te=d.lastIndexOf(`
|
|
3
3
|
`,te-2)+1,--ge;g(),A()}function Ie(){this.type=null,this.start=F,this.end=null}function be(){this.start=yt,this.end=null,dt&&(this.source=dt)}function B(){var i=new Ie;return E.C&&(i.X=new be),E.vb&&(i.sourceFile=E.vb),E.Xa&&(i.j=[F,0]),i}function Z(i){var l=new Ie;return l.start=i.start,E.C&&(l.X=new be,l.X.start=i.X.start),E.Xa&&(l.j=[i.j[0],0]),l}function k(i,l){return i.type=l,i.end=le,E.C&&(i.X.end=xt),E.Xa&&(i.j[1]=le),i}function lt(i){return i.type==="ExpressionStatement"&&i.la.type==="Literal"&&i.la.value==="use strict"}function R(i){return x===i?(j(),!0):!1}function Ze(){return!E.fc&&(x===St||x===we||rt.test(d.slice(le,F)))}function he(){R(ne)||Ze()||Q()}function M(i){x===i?j():Q()}function Q(){r(F,"Unexpected token")}function ze(i){i.type!=="Identifier"&&i.type!=="MemberExpression"&&r(i.start,"Assigning to rvalue"),X&&i.type==="Identifier"&&tt(i.name)&&r(i.start,"Assigning to "+i.name+" in strict mode")}function z(){(x===Er||x===de&&K==="/=")&&A(!0);var i=x,l=B();switch(i){case wt:case or:j();var u=i===wt;R(ne)||Ze()?l.label=null:x!==Se?Q():(l.label=ee(),he());for(var p=0;p<D.length;++p){var S=D[p];if((l.label===null||S.name===l.label.name)&&(S.kind!==null&&(u||S.kind==="loop")||l.label&&u))break}return p===D.length&&r(l.start,"Unsyntactic "+i.l),k(l,u?"BreakStatement":"ContinueStatement");case ir:return j(),he(),k(l,"DebuggerStatement");case ar:return j(),D.push(bt),l.body=z(),D.pop(),M(Ot),l.test=Te(),he(),k(l,"DoWhileStatement");case cr:return j(),D.push(bt),M(re),x===ne?ut(l,null):x===jt?(i=B(),j(),er(i,!0),k(i,"VariableDeclaration"),i.fa.length===1&&R(et)?Qt(l,i):ut(l,i)):(i=$(!1,!0),R(et)?(ze(i),Qt(l,i)):ut(l,i));case Et:return j(),ht(l,!0);case fr:return j(),l.test=Te(),l.da=z(),l.alternate=R(lr)?z():null,k(l,"IfStatement");case pr:return Be||E.Ib||r(F,"'return' outside of function"),j(),R(ne)||Ze()?l.K=null:(l.K=$(),he()),k(l,"ReturnStatement");case Ct:for(j(),l.Qb=Te(),l.tb=[],M(De),D.push(yn);x!==we;)x===kt||x===sr?(i=x===kt,p&&k(p,"SwitchCase"),l.tb.push(p=B()),p.da=[],j(),i?p.test=$():(u&&r(mt,"Multiple default clauses"),u=!0,p.test=null),M(Ue)):(p||Q(),p.da.push(z()));return p&&k(p,"SwitchCase"),j(),D.pop(),k(l,"SwitchStatement");case hr:return j(),rt.test(d.slice(le,F))&&r(le,"Illegal newline after throw"),l.K=$(),he(),k(l,"ThrowStatement");case gr:return j(),l.block=Pe(),l.Ea=null,x===nr&&(i=B(),j(),M(re),i.Ua=ee(),X&&tt(i.Ua.name)&&r(i.Ua.start,"Binding "+i.Ua.name+" in strict mode"),M(q),i.body=Pe(),l.Ea=k(i,"CatchClause")),l.fb=R(ur)?Pe():null,l.Ea||l.fb||r(l.start,"Missing catch or finally clause"),k(l,"TryStatement");case jt:return j(),er(l),he(),k(l,"VariableDeclaration");case Ot:return j(),l.test=Te(),D.push(bt),l.body=z(),D.pop(),k(l,"WhileStatement");case dr:return X&&r(F,"'with' in strict mode"),j(),l.object=Te(),l.body=z(),k(l,"WithStatement");case De:return Pe();case ne:return j(),k(l,"EmptyStatement");default:if(u=K,S=$(),i===Se&&S.type==="Identifier"&&R(Ue)){for(p=0;p<D.length;++p)D[p].name===u&&r(S.start,"Label '"+u+"' is already declared");return D.push({name:u,kind:x.W?"loop":x===Ct?"switch":null}),l.body=z(),D.pop(),l.label=S,k(l,"LabeledStatement")}return l.la=S,he(),k(l,"ExpressionStatement")}}function Te(){M(re);var i=$();return M(q),i}function Pe(i){var l=B(),u=!0,p=!1;for(l.body=[],M(De);!R(we);){var S=z();if(l.body.push(S),u&&i&<(S)){var _=p;ve(p=!0)}u=!1}return p&&!_&&ve(!1),k(l,"BlockStatement")}function ut(i,l){return i.ua=l,M(ne),i.test=x===ne?null:$(),M(ne),i.update=x===q?null:$(),M(q),i.body=z(),D.pop(),k(i,"ForStatement")}function Qt(i,l){return i.left=l,i.right=$(),M(q),i.body=z(),D.pop(),k(i,"ForInStatement")}function er(i,l){for(i.fa=[],i.kind="var";;){var u=B();if(u.id=ee(),X&&tt(u.id.name)&&r(u.id.start,"Binding "+u.id.name+" in strict mode"),u.ua=R(Cr)?$(!0,l):null,i.fa.push(k(u,"VariableDeclarator")),!R(ue))break}}function $(i,l){var u=ct(l);if(!i&&x===ue){for(i=Z(u),i.xb=[u];R(ue);)i.xb.push(ct(l));return k(i,"SequenceExpression")}return u}function ct(i){var l=ft(pt(),-1,i);if(R(kr)){var u=Z(l);u.test=l,u.da=$(!0),M(Ue),u.alternate=$(!0,i),l=k(u,"ConditionalExpression")}return x.Cb?(u=Z(l),u.operator=K,u.left=l,j(),u.right=ct(i),ze(l),k(u,"AssignmentExpression")):l}function ft(i,l,u){var p=x.L;if(p!==null&&(!u||x!==et)&&p>l){var S=Z(i);return S.left=i,S.operator=K,i=x,j(),S.right=ft(pt(),p,u),p=k(S,i===Or||i===Ar?"LogicalExpression":"BinaryExpression"),ft(p,l,u)}return i}function pt(){if(x.prefix){var i=B(),l=x.$b;return i.operator=K,Re=i.prefix=!0,j(),i.K=pt(),l?ze(i.K):X&&i.operator==="delete"&&i.K.type==="Identifier"&&r(i.start,"Deleting local variable in strict mode"),k(i,l?"UpdateExpression":"UnaryExpression")}for(l=Ne(qe());x.cc&&!Ze();)i=Z(l),i.operator=K,i.prefix=!1,i.K=l,ze(l),j(),l=k(i,"UpdateExpression");return l}function Ne(i,l){if(R(wr)){var u=Z(i);return u.object=i,u.Wa=ee(!0),u.bb=!1,Ne(k(u,"MemberExpression"),l)}return R(At)?(u=Z(i),u.object=i,u.Wa=$(),u.bb=!0,M(It),Ne(k(u,"MemberExpression"),l)):!l&&R(re)?(u=Z(i),u.callee=i,u.arguments=gt(q,!1),Ne(k(u,"CallExpression"),l)):i}function qe(){switch(x){case vr:var i=B();return j(),k(i,"ThisExpression");case Se:return ee();case Me:case Qe:case rr:return i=B(),i.value=K,i.raw=d.slice(F,xe),j(),k(i,"Literal");case mr:case xr:case Sr:return i=B(),i.value=x.$a,i.raw=x.l,j(),k(i,"Literal");case re:i=yt;var l=F;j();var u=$();return u.start=l,u.end=xe,E.C&&(u.X.start=i,u.X.end=vt),E.Xa&&(u.j=[l,xe]),M(q),u;case At:return i=B(),j(),i.elements=gt(It,!0,!0),k(i,"ArrayExpression");case De:for(i=B(),l=!0,u=!1,i.h=[],j();!R(we);){if(l)l=!1;else if(M(ue),E.sb&&R(we))break;var p={key:x===Me||x===Qe?qe():ee(!0)},S=!1;if(R(Ue)){p.value=$(!0);var _=p.kind="init"}else p.key.type!=="Identifier"||p.key.name!=="get"&&p.key.name!=="set"?Q():(S=u=!0,_=p.kind=p.key.name,p.key=x===Me||x===Qe?qe():ee(!0),x!==re&&Q(),p.value=ht(B(),!1));if(p.key.type==="Identifier"&&(X||u))for(var G=0;G<i.h.length;++G){var Ee=i.h[G];if(Ee.key.name===p.key.name){var Tt=_===Ee.kind||S&&Ee.kind==="init"||_==="init"&&(Ee.kind==="get"||Ee.kind==="set");Tt&&!X&&_==="init"&&Ee.kind==="init"&&(Tt=!1),Tt&&r(p.key.start,"Redefinition of property")}}i.h.push(p)}return k(i,"ObjectExpression");case Et:return i=B(),j(),ht(i,!1);case yr:return i=B(),j(),i.callee=Ne(qe(),!0),i.arguments=R(re)?gt(q,!1):en,k(i,"NewExpression")}Q()}function ht(i,l){x===Se?i.id=ee():l?Q():i.id=null,i.oa=[];var u=!0;for(M(re);!R(q);)u?u=!1:M(ue),i.oa.push(ee());u=Be;var p=D;if(Be=!0,D=[],i.body=Pe(!0),Be=u,D=p,X||i.body.body.length&<(i.body.body[0])){for(u=i.id?-1:0;u<i.oa.length;++u)if(p=0>u?i.id:i.oa[u],(Ir(p.name)||tt(p.name))&&r(p.start,"Defining '"+p.name+"' in strict mode"),0<=u)for(var S=0;S<u;++S)p.name===i.oa[S].name&&r(p.start,"Argument name clash in strict mode")}return k(i,l?"FunctionDeclaration":"FunctionExpression")}function gt(i,l,u){for(var p=[],S=!0;!R(i);){if(S)S=!1;else if(M(ue),l&&E.sb&&R(i))break;p.push(u&&x===ue?null:$(!0))}return p}function ee(i){var l=B();return i&&E.yb==="everywhere"&&(i=!1),x===Se?(!i&&(E.yb&&pn(K)||X&&Ir(K))&&d.slice(F,xe).indexOf("\\")===-1&&r(F,"The keyword '"+K+"' is reserved"),l.name=K):i&&x.l?l.name=x.l:Q(),Re=!1,j(),k(l,"Identifier")}e.version="0.5.0";var E,d="",me,dt;e.parse=function(i,l){d=String(i),me=d.length,E=l||{};for(var u in tr)Object.prototype.hasOwnProperty.call(E,u)||(E[u]=tr[u]);for(dt=E.sourceFile,ge=1,c=te=0,Re=!0,g(),u=E.dc,mt=le=c,E.C&&(xt=new s),Be=X=!1,D=[],A(),i=u||B(),l=!0,u||(i.body=[]);x!==St;)u=z(),i.body.push(u),l&<(u)&&ve(!0),l=!1;return k(i,"Program")};var tr={fc:!1,sb:!0,yb:!1,Ib:!1,C:!1,va:null,Xa:!1,dc:null,sourceFile:null,vb:null},c=0,F=0,xe=0,yt,vt,x,K,Re,ge,te,mt=0,le=0,xt,Be,D,X,en=[],Me={type:"num"},rr={type:"regexp"},Qe={type:"string"},Se={type:"name"},St={type:"eof"},wt={l:"break"},kt={l:"case",m:!0},nr={l:"catch"},or={l:"continue"},ir={l:"debugger"},sr={l:"default"},ar={l:"do",W:!0},lr={l:"else",m:!0},ur={l:"finally"},cr={l:"for",W:!0},Et={l:"function"},fr={l:"if"},pr={l:"return",m:!0},Ct={l:"switch"},hr={l:"throw",m:!0},gr={l:"try"},jt={l:"var"},Ot={l:"while",W:!0},dr={l:"with"},yr={l:"new",m:!0},vr={l:"this"},mr={l:"null",$a:null},xr={l:"true",$a:!0},Sr={l:"false",$a:!1},et={l:"in",L:7,m:!0},tn={break:wt,case:kt,catch:nr,continue:or,debugger:ir,default:sr,do:ar,else:lr,finally:ur,for:cr,function:Et,if:fr,return:pr,switch:Ct,throw:hr,try:gr,var:jt,while:Ot,with:dr,null:mr,true:xr,false:Sr,new:yr,in:et,instanceof:{l:"instanceof",L:7,m:!0},this:vr,typeof:{l:"typeof",prefix:!0,m:!0},void:{l:"void",prefix:!0,m:!0},delete:{l:"delete",prefix:!0,m:!0}},At={type:"[",m:!0},It={type:"]"},De={type:"{",m:!0},we={type:"}"},re={type:"(",m:!0},q={type:")"},ue={type:",",m:!0},ne={type:";",m:!0},Ue={type:":",m:!0},wr={type:"."},kr={type:"?",m:!0},Er={L:10,m:!0},Cr={Cb:!0,m:!0},de={Cb:!0,m:!0},rn={cc:!0,prefix:!0,$b:!0},jr={prefix:!0,m:!0},Or={L:1,m:!0},Ar={L:2,m:!0},nn={L:3,m:!0},on={L:4,m:!0},sn={L:5,m:!0},an={L:6,m:!0},ln={L:7,m:!0},un={L:8,m:!0},cn={L:9,prefix:!0,m:!0},fn={L:10,m:!0},pn=o("class enum extends super const export import"),Ir=o("implements interface let package private protected public static yield"),tt=o("eval arguments"),hn=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"),gn=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,br=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),dn=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"),rt=/[\n\r\u2028\u2029]/,nt=/\r\n|[\n\r\u2028\u2029]/g,ke,bt={kind:"loop"},yn={kind:"switch"}},Rt=Rt=typeof globalThis=="undefined"?void 0:globalThis;En(Rt.j||(Rt.j={}));function h(e,t){typeof e=="string"&&(e=je(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 s,a;for(a in this)typeof this[a]=="function"&&(s=a.match(e))&&(this.rb[s[1]]=this[a].bind(this));this.N=Mt(this,this.ra,null),this.Na=this.N.object,this.ra=je(this.ba.join(`
|
|
4
4
|
`),"polyfills"),this.ba=void 0,it(this.ra),s=new v(this.ra,this.N),s.done=!1,this.o=[s],this.Eb(),this.value=void 0,this.ra=r,s=new v(this.ra,this.N),s.done=!1,this.o.length=0,this.o[0]=s}var Tr={C:!0,kc:5},Ft={configurable:!0,enumerable:!0,writable:!1},y={configurable:!0,enumerable:!1,writable:!0},H={configurable:!0,enumerable:!1,writable:!1},Fe={configurable:!1,enumerable:!1,writable:!1},Pr={configurable:!1,enumerable:!0,writable:!0},Wr={STEP_ERROR:!0},Ae={SCOPE_REFERENCE:!0},He={VALUE_IN_DESCRIPTOR:!0},Ce={REGEXP_TIMEOUT:!0},Nr=[],ie=null,Ge=null,fe=typeof globalThis=="undefined"?void 0:globalThis,Cn=["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 _t(e){var t=e>>>0;return t===Number(e)?t:NaN}function Ve(e){var t=e>>>0;return String(t)===String(e)&&t!==4294967295?t:NaN}function it(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"&&it(o,t,n)}}h.prototype.REGEXP_MODE=2;h.prototype.REGEXP_THREAD_TIMEOUT=1e3;h.prototype.POLYFILL_TIMEOUT=1e3;P=h.prototype;P.P=!1;P.Ka=!1;P.Kb=0;P.ic=0;function je(e,t){var n={},r;for(r in Tr)n[r]=Tr[r];return n.sourceFile=t,fe.j.parse(e,n)}P.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=je(e,"appendCode"+this.Kb++)),!e||e.type!=="Program")throw Error("Expecting new AST to start with a Program node");Xe(this,e,t.scope),Array.prototype.push.apply(t.node.body,e.body),t.node.body.jb=null,t.done=!1};P.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&&Vr(this,n,n.interval);var r=new v(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=Ge;Ge=this;try{var s=this.rb[r.type](e,n,r)}catch(a){if(a!==Wr)throw this.value!==a&&(this.value=void 0),a}finally{Ge=o}if(s&&e.push(s),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};P.Eb=function(){for(;!this.za&&this.lb(););return this.za};function jn(e,t){e.g(t,"NaN",NaN,Fe),e.g(t,"Infinity",1/0,Fe),e.g(t,"undefined",void 0,Fe),e.g(t,"window",t,Ft),e.g(t,"this",t,Fe),e.g(t,"self",t),e.M=new O(null),e.Z=new O(e.M),On(e,t),An(e,t),t.xa=e.M,e.g(t,"constructor",e.v,y),In(e,t),bn(e,t),Tn(e,t),Pn(e,t),Nn(e,t),Rn(e,t),Bn(e,t),Mn(e,t),Dn(e,t);var n=e.i(function(){throw EvalError("Can't happen")},!1);n.eval=!0,e.g(t,"eval",n,y),e.g(t,"parseInt",e.i(parseInt,!1),y),e.g(t,"parseFloat",e.i(parseFloat,!1),y),e.g(t,"isNaN",e.i(isNaN,!1),y),e.g(t,"isFinite",e.i(isFinite,!1),y);for(var r=[[escape,"escape"],[unescape,"unescape"],[decodeURI,"decodeURI"],[decodeURIComponent,"decodeURIComponent"],[encodeURI,"encodeURI"],[encodeURIComponent,"encodeURIComponent"]],o=0;o<r.length;o++)n=function(s){return function(a){try{return s(a)}catch(f){m(e,e.Gb,f.message)}}}(r[o][0]),e.g(t,r[o][1],e.i(n,!1),y);n=function(s){return Rr(e,!1,arguments)},e.g(t,"setTimeout",e.i(n,!1),y),n=function(s){return Rr(e,!0,arguments)},e.g(t,"setInterval",e.i(n,!1),y),n=function(s){Br(e,s)},e.g(t,"clearTimeout",e.i(n,!1),y),n=function(s){Br(e,s)},e.g(t,"clearInterval",e.i(n,!1),y),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)}P.Wb=0;function On(e,t){var n=/^[A-Za-z_$][\w$]*$/,r=function(o){var s=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 f=0;f<a.length;f++){var g=a[f];n.test(g)||m(e,e.T,"Invalid function argument: "+g)}a=a.join(", ")}try{var b=je("(function("+a+") {"+s+"})","function"+e.Wb++)}catch(A){m(e,e.T,"Invalid code: "+A.message)}return b.body.length!==1&&m(e,e.T,"Invalid code in function body"),$t(e,b.body[0].la,e.N,"anonymous")};e.O=e.i(r,!0),e.g(t,"Function",e.O,y),e.g(e.O,"prototype",e.Z,y),e.g(e.Z,"constructor",e.O,y),e.Z.Ta=function(){},e.Z.Ta.id=e.Ya++,e.Z.Ab=!0,e.g(e.Z,"length",0,H),e.Z.H="Function",r=function(o,s){var a=e.o[e.o.length-1];a.U=this,a.B=o,a.F=[],s!=null&&(s instanceof O?a.F=$r(e,s):m(e,e.j,"CreateListFromArrayLike called on non-object")),a.eb=!1},L(e,e.O,"apply",r),r=function(o){var s=e.o[e.o.length-1];s.U=this,s.B=o,s.F=[];for(var a=1;a<arguments.length;a++)s.F.push(arguments[a]);s.eb=!1},L(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)},L(e,e.O,"toString",r),e.g(e.O,"toString",e.i(r,!1),y),r=function(){return this.valueOf()},L(e,e.O,"valueOf",r),e.g(e.O,"valueOf",e.i(r,!1),y)}function An(e,t){function n(o){o!=null||m(e,e.j,"Cannot convert '"+o+"' to object")}var r=function(o){if(o==null)return ae(e)?this:e.s(e.M);if(!(o instanceof O)){var s=e.s(se(e,o));return s.data=o,s}return o};e.v=e.i(r,!0),e.g(e.v,"prototype",e.M,y),e.g(e.M,"constructor",e.v,y),e.g(t,"Object",e.v,y),r=function(o){return n(o),oe(e,Object.getOwnPropertyNames(o instanceof O?o.h:o))},e.g(e.v,"getOwnPropertyNames",e.i(r,!1),y),r=function(o){return n(o),o instanceof O&&(o=o.h),oe(e,Object.keys(o))},e.g(e.v,"keys",e.i(r,!1),y),r=function(o){return o===null?e.s(null):(o instanceof O||m(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),y),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,s,a){return s=String(s),o instanceof O||m(e,e.j,"Object.defineProperty called on non-object: "+o),a instanceof O||m(e,e.j,"Property description must be an object"),!o.preventExtensions||s in o.h||m(e,e.j,"Can't define property '"+s+"', object is not extensible"),e.g(o,s,He,a.h),o},e.g(e.v,"defineProperty",e.i(r,!1),y),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,s){if(o instanceof O||m(e,e.j,"Object.getOwnPropertyDescriptor called on non-object: "+o),s=String(s),s in o.h){var a=Object.getOwnPropertyDescriptor(o.h,s),f=o.V[s];return o=o.Y[s],s=e.s(e.M),f||o?(e.g(s,"get",f),e.g(s,"set",o)):(e.g(s,"value",a.value),e.g(s,"writable",a.writable)),e.g(s,"configurable",a.configurable),e.g(s,"enumerable",a.enumerable),s}},e.g(e.v,"getOwnPropertyDescriptor",e.i(r,!1),y),r=function(o){return n(o),se(e,o)},e.g(e.v,"getPrototypeOf",e.i(r,!1),y),r=function(o){return!!o&&!o.preventExtensions},e.g(e.v,"isExtensible",e.i(r,!1),y),r=function(o){return o instanceof O&&(o.preventExtensions=!0),o},e.g(e.v,"preventExtensions",e.i(r,!1),y),L(e,e.v,"toString",O.prototype.toString),L(e,e.v,"toLocaleString",O.prototype.toString),L(e,e.v,"valueOf",O.prototype.valueOf),r=function(o){return n(this),this instanceof O?String(o)in this.h:this.hasOwnProperty(o)},L(e,e.v,"hasOwnProperty",r),r=function(o){return n(this),this instanceof O?Object.prototype.propertyIsEnumerable.call(this.h,o):this.propertyIsEnumerable(o)},L(e,e.v,"propertyIsEnumerable",r),r=function(o){for(;;){if(o=se(e,o),!o)return!1;if(o===this)return!0}},L(e,e.v,"isPrototypeOf",r)}function In(e,t){var n=function(r){var o=ae(e)?this:Oe(e),s=arguments[0];if(arguments.length===1&&typeof s=="number")isNaN(_t(s))&&m(e,e.ob,"Invalid array length: "+s),o.h.length=s;else{for(s=0;s<arguments.length;s++)o.h[s]=arguments[s];o.h.length=s}return o};e.qa=e.i(n,!0),e.La=e.qa.h.prototype,e.g(t,"Array",e.qa,y),n=function(r){return r&&r.H==="Array"},e.g(e.qa,"isArray",e.i(n,!1),y),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 bn(e,t){var n=function(r){return r=arguments.length?fe.String(r):"",ae(e)?(this.data=r,this):r};for(e.J=e.i(n,!0),e.g(t,"String",e.J,y),e.g(e.J,"fromCharCode",e.i(String.fromCharCode,!1),y),t="charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "),n=0;n<t.length;n++)L(e,e.J,t[n],String.prototype[t[n]]);n=function(r,o,s){o=e.R(o),s=e.R(s);try{return String(this).localeCompare(r,o,s)}catch(a){m(e,e.D,"localeCompare: "+a.message)}},L(e,e.J,"localeCompare",n),n=function(r,o,s){var a=String(this);if(o=o?Number(o):void 0,W(e,r,e.I)&&(r=r.data,Le(e,r,s),e.REGEXP_MODE===2)){if(ie)r=_e(e,"string.split(separator, limit)",{string:a,separator:r,limit:o},r,s),r!==Ce&&s(oe(e,r));else{var f=e.ha(),g=We(e,r,f,s);f.onmessage=function(b){clearTimeout(g),s(oe(e,b.data))},f.postMessage(["split",a,r,o])}return}r=a.split(r,o),s(oe(e,r))},$e(e,e.J,"split",n),n=function(r,o){var s=String(this);if(r=W(e,r,e.I)?r.data:new RegExp(r),Le(e,r,o),e.REGEXP_MODE===2)if(ie)r=_e(e,"string.match(regexp)",{string:s,regexp:r},r,o),r!==Ce&&o(r&&oe(e,r));else{var a=e.ha(),f=We(e,r,a,o);a.onmessage=function(g){clearTimeout(f),o(g.data&&oe(e,g.data))},a.postMessage(["match",s,r])}else r=s.match(r),o(r&&oe(e,r))},$e(e,e.J,"match",n),n=function(r,o){var s=String(this);if(W(e,r,e.I)?r=r.data:r=new RegExp(r),Le(e,r,o),e.REGEXP_MODE===2)if(ie)r=_e(e,"string.search(regexp)",{string:s,regexp:r},r,o),r!==Ce&&o(r);else{var a=e.ha(),f=We(e,r,a,o);a.onmessage=function(g){clearTimeout(f),o(g.data)},a.postMessage(["search",s,r])}else o(s.search(r))},$e(e,e.J,"search",n),n=function(r,o,s){var a=String(this);if(o=String(o),W(e,r,e.I)&&(r=r.data,Le(e,r,s),e.REGEXP_MODE===2)){if(ie)r=_e(e,"string.replace(substr, newSubstr)",{string:a,substr:r,newSubstr:o},r,s),r!==Ce&&s(r);else{var f=e.ha(),g=We(e,r,f,s);f.onmessage=function(b){clearTimeout(g),s(b.data)},f.postMessage(["replace",a,r,o])}return}s(a.replace(r,o))},$e(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 Tn(e,t){e.mb=e.i(function(n){return n=fe.Boolean(n),ae(e)?(this.data=n,this):n},!0),e.g(t,"Boolean",e.mb,y)}function Pn(e,t){var n=function(r){return r=arguments.length?fe.Number(r):0,ae(e)?(this.data=r,this):r};for(e.aa=e.i(n,!0),e.g(t,"Number",e.aa,y),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]],Fe);n=function(r){try{return Number(this).toExponential(r)}catch(o){m(e,e.D,o.message)}},L(e,e.aa,"toExponential",n),n=function(r){try{return Number(this).toFixed(r)}catch(o){m(e,e.D,o.message)}},L(e,e.aa,"toFixed",n),n=function(r){try{return Number(this).toPrecision(r)}catch(o){m(e,e.D,o.message)}},L(e,e.aa,"toPrecision",n),n=function(r){try{return Number(this).toString(r)}catch(o){m(e,e.D,o.message)}},L(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(s){m(e,e.D,"toLocaleString: "+s.message)}},L(e,e.aa,"toLocaleString",n)}function Nn(e,t){var n=function(o,s){if(!ae(e))return fe.Date();var a=[null].concat(Array.from(arguments));return this.data=new(Function.prototype.bind.apply(fe.Date,a)),this};e.$=e.i(n,!0),e.nb=e.$.h.prototype,e.g(t,"Date",e.$,y),e.g(e.$,"now",e.i(Date.now,!1),y),e.g(e.$,"parse",e.i(Date.parse,!1),y),e.g(e.$,"UTC",e.i(Date.UTC,!1),y),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(s){var a=this.data;a instanceof Date||m(e,e.j,o+" not called on a Date");for(var f=[],g=0;g<arguments.length;g++)f[g]=e.R(arguments[g]);return a[o].apply(a,f)}}(t[r]),L(e,e.$,t[r],n)}function Rn(e,t){var n=function(r,o){if(ae(e))var s=this;else{if(o===void 0&&W(e,r,e.I))return r;s=e.s(e.Ma)}r=r===void 0?"":String(r),o=o?String(o):"",/^[gmi]*$/.test(o)||m(e,e.T,"Invalid regexp flag: "+o);try{var a=new fe.RegExp(r,o)}catch(f){m(e,e.T,f.message)}return Lt(e,s,a),s};e.I=e.i(n,!0),e.Ma=e.I.h.prototype,e.g(t,"RegExp",e.I,y),e.g(e.I.h.prototype,"global",void 0,H),e.g(e.I.h.prototype,"ignoreCase",void 0,H),e.g(e.I.h.prototype,"multiline",void 0,H),e.g(e.I.h.prototype,"source","(?:)",H),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 s(A){if(A){var I=oe(e,A);return e.g(I,"index",A.index),e.g(I,"input",A.input),I}return null}var a=this.data;if(r=String(r),a.lastIndex=Number(e.G(this,"lastIndex")),Le(e,a,o),e.REGEXP_MODE===2)if(ie)r=_e(e,"regexp.exec(string)",{string:r,regexp:a},a,o),r!==Ce&&(e.g(this,"lastIndex",a.lastIndex),o(s(r)));else{var f=e.ha(),g=We(e,a,f,o),b=this;f.onmessage=function(A){clearTimeout(g),e.g(b,"lastIndex",A.data[1]),o(s(A.data[0]))},f.postMessage(["exec",a,a.lastIndex,r])}else r=a.exec(r),e.g(this,"lastIndex",a.lastIndex),o(s(r))},$e(e,e.I,"exec",n)}function Bn(e,t){function n(r){var o=e.i(function(s){var a=ae(e)?this:e.Aa(o);return Bt(e,a,s),a},!0);return e.g(o,"prototype",e.Aa(e.D),y),e.g(o.h.prototype,"name",r,y),e.g(t,r,o,y),o}e.D=e.i(function(r){var o=ae(e)?this:e.Aa(e.D);return Bt(e,o,r),o},!0),e.g(t,"Error",e.D,y),e.g(e.D.h.prototype,"message","",y),e.g(e.D.h.prototype,"name","Error",y),n("EvalError"),e.ob=n("RangeError"),e.pb=n("ReferenceError"),e.T=n("SyntaxError"),e.j=n("TypeError"),e.Gb=n("URIError")}function Mn(e,t){var n=e.s(e.M);e.g(t,"Math",n,y);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]],H);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),y)}function Dn(e,t){var n=e.s(e.M);e.g(t,"JSON",n,y),t=function(r){try{var o=JSON.parse(String(r))}catch(s){m(e,e.T,s.message)}return e.Ia(o)},e.g(n,"parse",e.i(t,!1)),t=function(r,o,s){o&&o.H==="Function"?m(e,e.j,"Function replacer on JSON.stringify not supported"):o&&o.H==="Array"?(o=$r(e,o),o=o.filter(function(f){return typeof f=="string"||typeof f=="number"})):o=null,typeof s!="string"&&typeof s!="number"&&(s=void 0),r=e.R(r);try{var a=JSON.stringify(r,o,s)}catch(f){m(e,e.j,f.message)}return a},e.g(n,"stringify",e.i(t,!1))}function W(e,t,n){if(t==null||!n)return!1;if(n=n.h.prototype,t===n)return!0;for(t=se(e,t);t;){if(t===n)return!0;t=t.xa}return!1}function Lt(e,t,n){t.data=new RegExp(n.source,n.flags),e.g(t,"lastIndex",n.lastIndex,y),e.g(t,"source",n.source,H),e.g(t,"global",n.global,H),e.g(t,"ignoreCase",n.ignoreCase,H),e.g(t,"multiline",n.multiline,H)}function Bt(e,t,n){n&&e.g(t,"message",String(n),y),n=[];for(var r=e.o.length-1;0<=r;r--){var o=e.o[r],s=o.node;s.type==="CallExpression"&&(o=o.U)&&n.length&&(n[n.length-1].Ob=e.G(o,"name")),!s.X||n.length&&s.type!=="CallExpression"||n.push({Nb:s.X})}for(r=String(e.G(t,"name")),s=String(e.G(t,"message")),s=r+": "+s+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");require("./server-entry-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");require("./server-entry-178f215d.cjs");const o=e.lazy(()=>Promise.resolve().then(()=>require("./button-8cd5d71a.cjs"))),t=e.lazy(()=>Promise.resolve().then(()=>require("./columns-88c9df52.cjs"))),s=e.lazy(()=>Promise.resolve().then(()=>require("./fragment-b6e3a326.cjs"))),n=e.lazy(()=>Promise.resolve().then(()=>require("./image-7e1361ce.cjs"))),i=e.lazy(()=>Promise.resolve().then(()=>require("./section-d655ea14.cjs"))),l=e.lazy(()=>Promise.resolve().then(()=>require("./symbol-31283b30.cjs"))),c=e.lazy(()=>Promise.resolve().then(()=>require("./text-e6dbb721.cjs"))),u=e.lazy(()=>Promise.resolve().then(()=>require("./video-64014cc4.cjs"))),a=e.lazy(()=>Promise.resolve().then(()=>require("./blocks-a05f6af2.cjs")).then(r=>r.blocks)),m=e.lazy(()=>Promise.resolve().then(()=>require("./content-variants-1a65d814.cjs")));exports.Blocks=a;exports.Button=o;exports.Columns=t;exports.Content=m;exports.Fragment=s;exports.Image=n;exports.Section=i;exports.Symbol=l;exports.Text=c;exports.Video=u;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { lazy as t } from "react";
|
|
3
|
-
import "./server-entry-
|
|
4
|
-
const m = t(() => import("./button-
|
|
3
|
+
import "./server-entry-1cbf5bef.js";
|
|
4
|
+
const m = t(() => import("./button-73916377.js")), i = t(() => import("./columns-c7d9b9f1.js")), c = t(() => import("./fragment-1492bc7f.js")), a = t(() => import("./image-2cc909d9.js")), r = t(() => import("./section-d83e2dd3.js")), e = t(() => import("./symbol-b6db0014.js")), p = t(() => import("./text-5915f038.js")), l = t(() => import("./video-d02ff89b.js")), b = t(() => import("./blocks-244199ab.js").then((o) => o.blocks)), u = t(() => import("./content-variants-d5455178.js"));
|
|
5
5
|
export {
|
|
6
6
|
b as Blocks,
|
|
7
7
|
m as Button,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { DynamicRenderer as i } from "./dynamic-renderer-96ba4e48.js";
|
|
3
|
-
import { getClassPropName as e } from "./get-class-prop-name-
|
|
4
|
-
import "./server-entry-
|
|
3
|
+
import { getClassPropName as e } from "./get-class-prop-name-1178de8b.js";
|
|
4
|
+
import "./server-entry-1cbf5bef.js";
|
|
5
5
|
function u(t) {
|
|
6
6
|
return /* @__PURE__ */ n(
|
|
7
7
|
i,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),i=require("./dynamic-renderer-1c9f24c0.cjs"),t=require("./get-class-prop-name-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),i=require("./dynamic-renderer-1c9f24c0.cjs"),t=require("./get-class-prop-name-c082f4f3.cjs");require("./server-entry-178f215d.cjs");function r(e){return n.jsx(i.DynamicRenderer,{attributes:{...e.attributes,[t.getClassPropName()]:`${e.link?"":"builder-button"} ${e.attributes[t.getClassPropName()]||""}`,...e.link?{href:e.link,target:e.openLinkInNewTab?"_blank":void 0,role:"link"}:{role:"button"}},TagName:e.link?e.builderLinkComponent||"a":"button",actionAttributes:{},children:e.text})}exports.default=r;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),s=require("react"),a=require("./blocks-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),s=require("react"),a=require("./blocks-a05f6af2.cjs"),w=require("./dynamic-renderer-1c9f24c0.cjs"),$=require("./get-class-prop-name-c082f4f3.cjs");require("./server-entry-178f215d.cjs");function j(e){var f;const[u,p]=s.useState(()=>typeof e.space=="number"?e.space||0:20),[o,B]=s.useState(()=>e.columns||[]),[d,q]=s.useState(()=>e.stackColumnsAt||"tablet");function S(t){var n;return((n=o[t])==null?void 0:n.width)||100/o.length}function y(t){const n=u*(o.length-1)/o.length;return`calc(${S(t)}% - ${n}px)`}function c({stackedStyle:t,desktopStyle:n}){return d==="tablet"?t:n}function m({stackedStyle:t,desktopStyle:n}){return d==="never"?n:t}const[b,z]=s.useState(()=>e.stackColumnsAt==="never"?"row":e.reverseColumnsWhenStacked?"column-reverse":"column");function x(){return{"--flex-dir":b,"--flex-dir-tablet":c({stackedStyle:b,desktopStyle:"row"})}}function C(t){const n=t===0?0:u,i=y(t),r=`${n}px`,g="100%",h=0;return{...{display:"flex",flexDirection:"column",alignItems:"stretch"},width:i,["marginLeft"]:r,"--column-width-mobile":m({stackedStyle:g,desktopStyle:i}),"--column-margin-left-mobile":m({stackedStyle:h,desktopStyle:r}),"--column-width-tablet":c({stackedStyle:g,desktopStyle:i}),"--column-margin-left-tablet":c({stackedStyle:h,desktopStyle:r})}}function k(t){var i,r;return a.getSizesForBreakpoints(((r=(i=e.builderContext.content)==null?void 0:i.meta)==null?void 0:r.breakpoints)||{})[t].max}function v(){return`
|
|
2
2
|
@media (max-width: ${k("medium")}px) {
|
|
3
3
|
.${e.builderBlock.id}-breakpoints {
|
|
4
4
|
flex-direction: var(--flex-dir-tablet);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as g, Fragment as y, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { useState as s } from "react";
|
|
3
|
-
import { InlinedStyles as w, mapStyleObjToStrIfNeeded as $, Blocks as B, getSizesForBreakpoints as z } from "./blocks-
|
|
3
|
+
import { InlinedStyles as w, mapStyleObjToStrIfNeeded as $, Blocks as B, getSizesForBreakpoints as z } from "./blocks-244199ab.js";
|
|
4
4
|
import { DynamicRenderer as L } from "./dynamic-renderer-96ba4e48.js";
|
|
5
|
-
import { getClassPropName as W } from "./get-class-prop-name-
|
|
6
|
-
import "./server-entry-
|
|
5
|
+
import { getClassPropName as W } from "./get-class-prop-name-1178de8b.js";
|
|
6
|
+
import "./server-entry-1cbf5bef.js";
|
|
7
7
|
function O(t) {
|
|
8
8
|
var f;
|
|
9
9
|
const [c, A] = s(
|