@tech_carthagos/page-builder 1.0.71 → 1.0.73
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/dist/index.cjs.js +2 -2
- package/dist/index.es.js +10 -3
- package/dist/style.css +1 -1
- package/dist-types/ui/button.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -218,7 +218,7 @@
|
|
|
218
218
|
*
|
|
219
219
|
* This source code is licensed under the ISC license.
|
|
220
220
|
* See the LICENSE file in the root directory of this source tree.
|
|
221
|
-
*/const Jm=K("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function sl(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function ci(...t){return e=>{let r=!1;const n=t.map(o=>{const i=sl(o,e);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let o=0;o<n.length;o++){const i=n[o];typeof i=="function"?i():sl(t[o],null)}}}}function Te(...t){return v.useCallback(ci(...t),t)}var Zm=Symbol.for("react.lazy"),Po=v[" use ".trim().toString()];function Qm(t){return typeof t=="object"&&t!==null&&"then"in t}function Md(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===Zm&&"_payload"in t&&Qm(t._payload)}function eb(t){const e=rb(t),r=v.forwardRef((n,o)=>{let{children:i,...a}=n;Md(i)&&typeof Po=="function"&&(i=Po(i._payload));const s=v.Children.toArray(i),u=s.find(ob);if(u){const l=u.props.children,c=s.map(h=>h===u?v.Children.count(l)>1?v.Children.only(null):v.isValidElement(l)?l.props.children:null:h);return p.jsx(e,{...a,ref:o,children:v.isValidElement(l)?v.cloneElement(l,void 0,c):null})}return p.jsx(e,{...a,ref:o,children:i})});return r.displayName=`${t}.Slot`,r}var tb=eb("Slot");function rb(t){const e=v.forwardRef((r,n)=>{let{children:o,...i}=r;if(Md(o)&&typeof Po=="function"&&(o=Po(o._payload)),v.isValidElement(o)){const a=ab(o),s=ib(i,o.props);return o.type!==v.Fragment&&(s.ref=n?ci(n,a):a),v.cloneElement(o,s)}return v.Children.count(o)>1?v.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var nb=Symbol("radix.slottable");function ob(t){return v.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===nb}function ib(t,e){const r={...e};for(const n in e){const o=t[n],i=e[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{const u=i(...s);return o(...s),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...t,...r}}function ab(t){var n,o;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}const ul=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,ll=ct,$d=(t,e)=>r=>{var n;if((e==null?void 0:e.variants)==null)return ll(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:i}=e,a=Object.keys(o).map(l=>{const c=r==null?void 0:r[l],h=i==null?void 0:i[l];if(c===null)return null;const f=ul(c)||ul(h);return o[l][f]}),s=r&&Object.entries(r).reduce((l,c)=>{let[h,f]=c;return f===void 0||(l[h]=f),l},{}),u=e==null||(n=e.compoundVariants)===null||n===void 0?void 0:n.reduce((l,c)=>{let{class:h,className:f,...d}=c;return Object.entries(d).every(b=>{let[g,m]=b;return Array.isArray(m)?m.includes({...i,...s}[g]):{...i,...s}[g]===m})?[...l,h,f]:l},[]);return ll(t,a,u,r==null?void 0:r.class,r==null?void 0:r.className)},sb=$d("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 shadow-lg shadow-primary/25",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-transparent hover:bg-secondary hover:text-secondary-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-secondary hover:text-secondary-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",xl:"h-12 rounded-lg px-10 text-base",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),ot=v.forwardRef(({className:t,variant:e,size:r,asChild:n=!1,...o},i)=>{const a=n?tb:"button";return p.jsx(a,{className:Ne(sb({variant:e,size:r,className:t})),ref:i,...o})});ot.displayName="Button";function ub(...t){return Ad(ct(t))}function me(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(process.env.NODE_ENV!=="production"){var o=gb[t],i=o?typeof o=="function"?o.apply(null,r):o:"unknown error nr: "+t;throw Error("[Immer] "+i)}throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(a){return"'"+a+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function or(t){return!!t&&!!t[ne]}function dt(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var o=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===yb}(t)||Array.isArray(t)||!!t[yn]||!!(!((e=t.constructor)===null||e===void 0)&&e[yn])||di(t)||fi(t))}function ir(t,e,r){r===void 0&&(r=!1),qt(t)===0?(r?Object.keys:Hs)(t).forEach(function(n){r&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,o){return e(o,n,t)})}function qt(t){var e=t[ne];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:di(t)?2:fi(t)?3:0}function Sn(t,e){return qt(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function So(t,e){return qt(t)===2?t.get(e):t[e]}function Bd(t,e,r){var n=qt(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function lb(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function di(t){return mb&&t instanceof Map}function fi(t){return bb&&t instanceof Set}function Ce(t){return t.o||t.t}function Ls(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=vb(t);delete e[ne];for(var r=Hs(e),n=0;n<r.length;n++){var o=r[n],i=e[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function Ms(t,e){return e===void 0&&(e=!1),$s(t)||or(t)||!dt(t)||(qt(t)>1&&(t.set=t.add=t.clear=t.delete=cb),Object.freeze(t),e&&ir(t,function(r,n){return Ms(n,!0)},!0)),t}function cb(){me(2)}function $s(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function at(t){var e=Na[t];return e||me(18,t),e}function Fd(t,e){Na[t]||(Na[t]=e)}function _o(){return process.env.NODE_ENV==="production"||Rr||me(0),Rr}function ea(t,e){e&&(at("Patches"),t.u=[],t.s=[],t.v=e)}function ko(t){Ta(t),t.p.forEach(db),t.p=null}function Ta(t){t===Rr&&(Rr=t.l)}function cl(t){return Rr={p:[],l:Rr,h:t,m:!0,_:0}}function db(t){var e=t[ne];e.i===0||e.i===1?e.j():e.g=!0}function ta(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||at("ES5").S(e,t,n),n?(r[ne].P&&(ko(e),me(4)),dt(t)&&(t=Io(e,t),e.l||Do(e,t)),e.u&&at("Patches").M(r[ne].t,t,e.u,e.s)):t=Io(e,r,[]),ko(e),e.u&&e.v(e.u,e.s),t!==Fs?t:void 0}function Io(t,e,r){if($s(e))return e;var n=e[ne];if(!n)return ir(e,function(s,u){return dl(t,n,e,s,u,r)},!0),e;if(n.A!==t)return e;if(!n.P)return Do(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=Ls(n.k):n.o,i=o,a=!1;n.i===3&&(i=new Set(o),o.clear(),a=!0),ir(i,function(s,u){return dl(t,n,o,s,u,r,a)}),Do(t,o,!1),r&&t.u&&at("Patches").N(n,r,t.u,t.s)}return n.o}function dl(t,e,r,n,o,i,a){if(process.env.NODE_ENV!=="production"&&o===r&&me(5),or(o)){var s=Io(t,o,i&&e&&e.i!==3&&!Sn(e.R,n)?i.concat(n):void 0);if(Bd(r,n,s),!or(s))return;t.m=!1}else a&&r.add(o);if(dt(o)&&!$s(o)){if(!t.h.D&&t._<1)return;Io(t,o),e&&e.A.l||Do(t,o)}}function Do(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Ms(e,r)}function ra(t,e){var r=t[ne];return(r?Ce(r):t)[e]}function fl(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function Et(t){t.P||(t.P=!0,t.l&&Et(t.l))}function na(t){t.o||(t.o=Ls(t.t))}function En(t,e,r){var n=di(e)?at("MapSet").F(e,r):fi(e)?at("MapSet").T(e,r):t.O?function(o,i){var a=Array.isArray(o),s={i:a?1:0,A:i?i.A:_o(),P:!1,I:!1,R:{},l:i,t:o,k:null,o:null,j:null,C:!1},u=s,l=Aa;a&&(u=[s],l=hn);var c=Proxy.revocable(u,l),h=c.revoke,f=c.proxy;return s.k=f,s.j=h,f}(e,r):at("ES5").J(e,r);return(r?r.A:_o()).p.push(n),n}function fb(t){return or(t)||me(22,t),function e(r){if(!dt(r))return r;var n,o=r[ne],i=qt(r);if(o){if(!o.P&&(o.i<4||!at("ES5").K(o)))return o.t;o.I=!0,n=pl(r,i),o.I=!1}else n=pl(r,i);return ir(n,function(a,s){o&&So(o.t,a)===s||Bd(n,a,e(s))}),i===3?new Set(n):n}(t)}function pl(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Ls(t)}function pb(){function t(n){if(!dt(n))return n;if(Array.isArray(n))return n.map(t);if(di(n))return new Map(Array.from(n.entries()).map(function(a){return[a[0],t(a[1])]}));if(fi(n))return new Set(Array.from(n).map(t));var o=Object.create(Object.getPrototypeOf(n));for(var i in n)o[i]=t(n[i]);return Sn(n,yn)&&(o[yn]=n[yn]),o}function e(n){return or(n)?t(n):n}var r="add";Fd("Patches",{$:function(n,o){return o.forEach(function(i){for(var a=i.path,s=i.op,u=n,l=0;l<a.length-1;l++){var c=qt(u),h=a[l];typeof h!="string"&&typeof h!="number"&&(h=""+h),c!==0&&c!==1||h!=="__proto__"&&h!=="constructor"||me(24),typeof u=="function"&&h==="prototype"&&me(24),typeof(u=So(u,h))!="object"&&me(15,a.join("/"))}var f=qt(u),d=t(i.value),b=a[a.length-1];switch(s){case"replace":switch(f){case 2:return u.set(b,d);case 3:me(16);default:return u[b]=d}case r:switch(f){case 1:return b==="-"?u.push(d):u.splice(b,0,d);case 2:return u.set(b,d);case 3:return u.add(d);default:return u[b]=d}case"remove":switch(f){case 1:return u.splice(b,1);case 2:return u.delete(b);case 3:return u.delete(i.value);default:return delete u[b]}default:me(17,s)}}),n},N:function(n,o,i,a){switch(n.i){case 0:case 4:case 2:return function(s,u,l,c){var h=s.t,f=s.o;ir(s.R,function(d,b){var g=So(h,d),m=So(f,d),y=b?Sn(h,d)?"replace":r:"remove";if(g!==m||y!=="replace"){var x=u.concat(d);l.push(y==="remove"?{op:y,path:x}:{op:y,path:x,value:m}),c.push(y===r?{op:"remove",path:x}:y==="remove"?{op:r,path:x,value:e(g)}:{op:"replace",path:x,value:e(g)})}})}(n,o,i,a);case 5:case 1:return function(s,u,l,c){var h=s.t,f=s.R,d=s.o;if(d.length<h.length){var b=[d,h];h=b[0],d=b[1];var g=[c,l];l=g[0],c=g[1]}for(var m=0;m<h.length;m++)if(f[m]&&d[m]!==h[m]){var y=u.concat([m]);l.push({op:"replace",path:y,value:e(d[m])}),c.push({op:"replace",path:y,value:e(h[m])})}for(var x=h.length;x<d.length;x++){var S=u.concat([x]);l.push({op:r,path:S,value:e(d[x])})}h.length<d.length&&c.push({op:"replace",path:u.concat(["length"]),value:h.length})}(n,o,i,a);case 3:return function(s,u,l,c){var h=s.t,f=s.o,d=0;h.forEach(function(b){if(!f.has(b)){var g=u.concat([d]);l.push({op:"remove",path:g,value:b}),c.unshift({op:r,path:g,value:b})}d++}),d=0,f.forEach(function(b){if(!h.has(b)){var g=u.concat([d]);l.push({op:r,path:g,value:b}),c.unshift({op:"remove",path:g,value:b})}d++})}(n,o,i,a)}},M:function(n,o,i,a){i.push({op:"replace",path:[],value:o===Fs?void 0:o}),a.push({op:"replace",path:[],value:n})}})}function hb(){function t(s,u){function l(){this.constructor=s}o(s,u),s.prototype=(l.prototype=u.prototype,new l)}function e(s){s.o||(s.R=new Map,s.o=new Map(s.t))}function r(s){s.o||(s.o=new Set,s.t.forEach(function(u){if(dt(u)){var l=En(s.A.h,u,s);s.p.set(u,l),s.o.add(l)}else s.o.add(u)}))}function n(s){s.g&&me(3,JSON.stringify(Ce(s)))}var o=function(s,u){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var h in c)c.hasOwnProperty(h)&&(l[h]=c[h])})(s,u)},i=function(){function s(l,c){return this[ne]={i:2,l:c,A:c?c.A:_o(),P:!1,I:!1,o:void 0,R:void 0,t:l,k:this,C:!1,g:!1},this}t(s,Map);var u=s.prototype;return Object.defineProperty(u,"size",{get:function(){return Ce(this[ne]).size}}),u.has=function(l){return Ce(this[ne]).has(l)},u.set=function(l,c){var h=this[ne];return n(h),Ce(h).has(l)&&Ce(h).get(l)===c||(e(h),Et(h),h.R.set(l,!0),h.o.set(l,c),h.R.set(l,!0)),this},u.delete=function(l){if(!this.has(l))return!1;var c=this[ne];return n(c),e(c),Et(c),c.t.has(l)?c.R.set(l,!1):c.R.delete(l),c.o.delete(l),!0},u.clear=function(){var l=this[ne];n(l),Ce(l).size&&(e(l),Et(l),l.R=new Map,ir(l.t,function(c){l.R.set(c,!1)}),l.o.clear())},u.forEach=function(l,c){var h=this;Ce(this[ne]).forEach(function(f,d){l.call(c,h.get(d),d,h)})},u.get=function(l){var c=this[ne];n(c);var h=Ce(c).get(l);if(c.I||!dt(h)||h!==c.t.get(l))return h;var f=En(c.A.h,h,c);return e(c),c.o.set(l,f),f},u.keys=function(){return Ce(this[ne]).keys()},u.values=function(){var l,c=this,h=this.keys();return(l={})[oo]=function(){return c.values()},l.next=function(){var f=h.next();return f.done?f:{done:!1,value:c.get(f.value)}},l},u.entries=function(){var l,c=this,h=this.keys();return(l={})[oo]=function(){return c.entries()},l.next=function(){var f=h.next();if(f.done)return f;var d=c.get(f.value);return{done:!1,value:[f.value,d]}},l},u[oo]=function(){return this.entries()},s}(),a=function(){function s(l,c){return this[ne]={i:3,l:c,A:c?c.A:_o(),P:!1,I:!1,o:void 0,t:l,k:this,p:new Map,g:!1,C:!1},this}t(s,Set);var u=s.prototype;return Object.defineProperty(u,"size",{get:function(){return Ce(this[ne]).size}}),u.has=function(l){var c=this[ne];return n(c),c.o?!!c.o.has(l)||!(!c.p.has(l)||!c.o.has(c.p.get(l))):c.t.has(l)},u.add=function(l){var c=this[ne];return n(c),this.has(l)||(r(c),Et(c),c.o.add(l)),this},u.delete=function(l){if(!this.has(l))return!1;var c=this[ne];return n(c),r(c),Et(c),c.o.delete(l)||!!c.p.has(l)&&c.o.delete(c.p.get(l))},u.clear=function(){var l=this[ne];n(l),Ce(l).size&&(r(l),Et(l),l.o.clear())},u.values=function(){var l=this[ne];return n(l),r(l),l.o.values()},u.entries=function(){var l=this[ne];return n(l),r(l),l.o.entries()},u.keys=function(){return this.values()},u[oo]=function(){return this.values()},u.forEach=function(l,c){for(var h=this.values(),f=h.next();!f.done;)l.call(c,f.value,f.value,this),f=h.next()},s}();Fd("MapSet",{F:function(s,u){return new i(s,u)},T:function(s,u){return new a(s,u)}})}var hl,Rr,Bs=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",mb=typeof Map<"u",bb=typeof Set<"u",ml=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Fs=Bs?Symbol.for("immer-nothing"):((hl={})["immer-nothing"]=!0,hl),yn=Bs?Symbol.for("immer-draftable"):"__$immer_draftable",ne=Bs?Symbol.for("immer-state"):"__$immer_state",oo=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",gb={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(t){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+t},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(t){return"Cannot apply patch, path doesn't resolve: "+t},16:'Sets cannot have "replace" patches.',17:function(t){return"Unsupported patch operation: "+t},18:function(t){return"The plugin for '"+t+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+t+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(t){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+t+"'"},22:function(t){return"'current' expects a draft, got: "+t},23:function(t){return"'original' expects a draft, got: "+t},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},yb=""+Object.prototype.constructor,Hs=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,vb=Object.getOwnPropertyDescriptors||function(t){var e={};return Hs(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},Na={},Aa={get:function(t,e){if(e===ne)return t;var r=Ce(t);if(!Sn(r,e))return function(o,i,a){var s,u=fl(i,a);return u?"value"in u?u.value:(s=u.get)===null||s===void 0?void 0:s.call(o.k):void 0}(t,r,e);var n=r[e];return t.I||!dt(n)?n:n===ra(t.t,e)?(na(t),t.o[e]=En(t.A.h,n,t)):n},has:function(t,e){return e in Ce(t)},ownKeys:function(t){return Reflect.ownKeys(Ce(t))},set:function(t,e,r){var n=fl(Ce(t),e);if(n!=null&&n.set)return n.set.call(t.k,r),!0;if(!t.P){var o=ra(Ce(t),e),i=o==null?void 0:o[ne];if(i&&i.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(lb(r,o)&&(r!==void 0||Sn(t.t,e)))return!0;na(t),Et(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return ra(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,na(t),Et(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=Ce(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){me(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){me(12)}},hn={};ir(Aa,function(t,e){hn[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),hn.deleteProperty=function(t,e){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(e))&&me(13),hn.set.call(this,t,e,void 0)},hn.set=function(t,e,r){return process.env.NODE_ENV!=="production"&&e!=="length"&&isNaN(parseInt(e))&&me(14),Aa.set.call(this,t[0],e,r,t[0])};var xb=function(){function t(r){var n=this;this.O=ml,this.D=!0,this.produce=function(o,i,a){if(typeof o=="function"&&typeof i!="function"){var s=i;i=o;var u=n;return function(g){var m=this;g===void 0&&(g=s);for(var y=arguments.length,x=Array(y>1?y-1:0),S=1;S<y;S++)x[S-1]=arguments[S];return u.produce(g,function(E){var A;return(A=i).call.apply(A,[m,E].concat(x))})}}var l;if(typeof i!="function"&&me(6),a!==void 0&&typeof a!="function"&&me(7),dt(o)){var c=cl(n),h=En(n,o,void 0),f=!0;try{l=i(h),f=!1}finally{f?ko(c):Ta(c)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(g){return ea(c,a),ta(g,c)},function(g){throw ko(c),g}):(ea(c,a),ta(l,c))}if(!o||typeof o!="object"){if((l=i(o))===void 0&&(l=o),l===Fs&&(l=void 0),n.D&&Ms(l,!0),a){var d=[],b=[];at("Patches").M(o,l,d,b),a(d,b)}return l}me(21,o)},this.produceWithPatches=function(o,i){if(typeof o=="function")return function(l){for(var c=arguments.length,h=Array(c>1?c-1:0),f=1;f<c;f++)h[f-1]=arguments[f];return n.produceWithPatches(l,function(d){return o.apply(void 0,[d].concat(h))})};var a,s,u=n.produce(o,i,function(l,c){a=l,s=c});return typeof Promise<"u"&&u instanceof Promise?u.then(function(l){return[l,a,s]}):[u,a,s]},typeof(r==null?void 0:r.useProxies)=="boolean"&&this.setUseProxies(r.useProxies),typeof(r==null?void 0:r.autoFreeze)=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){dt(r)||me(8),or(r)&&(r=fb(r));var n=cl(this),o=En(this,r,void 0);return o[ne].C=!0,Ta(n),o},e.finishDraft=function(r,n){var o=r&&r[ne];process.env.NODE_ENV!=="production"&&(o&&o.C||me(9),o.I&&me(10));var i=o.A;return ea(i,n),ta(void 0,i)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!ml&&me(20),this.O=r},e.applyPatches=function(r,n){var o;for(o=n.length-1;o>=0;o--){var i=n[o];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}o>-1&&(n=n.slice(o+1));var a=at("Patches").$;return or(r)?a(r,n):this.produce(r,function(s){return a(s,n)})},t}(),$e=new xb,wb=$e.produce,bl=$e.produceWithPatches.bind($e);$e.setAutoFreeze.bind($e);$e.setUseProxies.bind($e);var gl=$e.applyPatches.bind($e);$e.createDraft.bind($e);$e.finishDraft.bind($e);var U=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pi(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Sb(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}),r}function Eb(){this.__data__=[],this.size=0}var Cb=Eb;function Tb(t,e){return t===e||t!==t&&e!==e}var Hd=Tb,Nb=Hd;function Ab(t,e){for(var r=t.length;r--;)if(Nb(t[r][0],e))return r;return-1}var hi=Ab,Ob=hi,jb=Array.prototype,Rb=jb.splice;function Pb(t){var e=this.__data__,r=Ob(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():Rb.call(e,r,1),--this.size,!0}var _b=Pb,kb=hi;function Ib(t){var e=this.__data__,r=kb(e,t);return r<0?void 0:e[r][1]}var Db=Ib,Lb=hi;function Mb(t){return Lb(this.__data__,t)>-1}var $b=Mb,Bb=hi;function Fb(t,e){var r=this.__data__,n=Bb(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}var Hb=Fb,qb=Cb,zb=_b,Ub=Db,Vb=$b,Wb=Hb;function Ur(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Ur.prototype.clear=qb;Ur.prototype.delete=zb;Ur.prototype.get=Ub;Ur.prototype.has=Vb;Ur.prototype.set=Wb;var mi=Ur,Gb=mi;function Yb(){this.__data__=new Gb,this.size=0}var Xb=Yb;function Kb(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}var Jb=Kb;function Zb(t){return this.__data__.get(t)}var Qb=Zb;function eg(t){return this.__data__.has(t)}var tg=eg,rg=typeof U=="object"&&U&&U.Object===Object&&U,qd=rg,ng=qd,og=typeof self=="object"&&self&&self.Object===Object&&self,ig=ng||og||Function("return this")(),pt=ig,ag=pt,sg=ag.Symbol,bi=sg,yl=bi,zd=Object.prototype,ug=zd.hasOwnProperty,lg=zd.toString,un=yl?yl.toStringTag:void 0;function cg(t){var e=ug.call(t,un),r=t[un];try{t[un]=void 0;var n=!0}catch{}var o=lg.call(t);return n&&(e?t[un]=r:delete t[un]),o}var dg=cg,fg=Object.prototype,pg=fg.toString;function hg(t){return pg.call(t)}var mg=hg,vl=bi,bg=dg,gg=mg,yg="[object Null]",vg="[object Undefined]",xl=vl?vl.toStringTag:void 0;function xg(t){return t==null?t===void 0?vg:yg:xl&&xl in Object(t)?bg(t):gg(t)}var gi=xg;function wg(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Ud=wg,Sg=gi,Eg=Ud,Cg="[object AsyncFunction]",Tg="[object Function]",Ng="[object GeneratorFunction]",Ag="[object Proxy]";function Og(t){if(!Eg(t))return!1;var e=Sg(t);return e==Tg||e==Ng||e==Cg||e==Ag}var qs=Og;const jg=pi(qs);var Rg=pt,Pg=Rg["__core-js_shared__"],_g=Pg,oa=_g,wl=function(){var t=/[^.]+$/.exec(oa&&oa.keys&&oa.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function kg(t){return!!wl&&wl in t}var Ig=kg,Dg=Function.prototype,Lg=Dg.toString;function Mg(t){if(t!=null){try{return Lg.call(t)}catch{}try{return t+""}catch{}}return""}var Vd=Mg,$g=qs,Bg=Ig,Fg=Ud,Hg=Vd,qg=/[\\^$.*+?()[\]{}|]/g,zg=/^\[object .+?Constructor\]$/,Ug=Function.prototype,Vg=Object.prototype,Wg=Ug.toString,Gg=Vg.hasOwnProperty,Yg=RegExp("^"+Wg.call(Gg).replace(qg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Xg(t){if(!Fg(t)||Bg(t))return!1;var e=$g(t)?Yg:zg;return e.test(Hg(t))}var Kg=Xg;function Jg(t,e){return t==null?void 0:t[e]}var Zg=Jg,Qg=Kg,e1=Zg;function t1(t,e){var r=e1(t,e);return Qg(r)?r:void 0}var dr=t1,r1=dr,n1=pt,o1=r1(n1,"Map"),zs=o1,i1=dr,a1=i1(Object,"create"),yi=a1,Sl=yi;function s1(){this.__data__=Sl?Sl(null):{},this.size=0}var u1=s1;function l1(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var c1=l1,d1=yi,f1="__lodash_hash_undefined__",p1=Object.prototype,h1=p1.hasOwnProperty;function m1(t){var e=this.__data__;if(d1){var r=e[t];return r===f1?void 0:r}return h1.call(e,t)?e[t]:void 0}var b1=m1,g1=yi,y1=Object.prototype,v1=y1.hasOwnProperty;function x1(t){var e=this.__data__;return g1?e[t]!==void 0:v1.call(e,t)}var w1=x1,S1=yi,E1="__lodash_hash_undefined__";function C1(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=S1&&e===void 0?E1:e,this}var T1=C1,N1=u1,A1=c1,O1=b1,j1=w1,R1=T1;function Vr(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Vr.prototype.clear=N1;Vr.prototype.delete=A1;Vr.prototype.get=O1;Vr.prototype.has=j1;Vr.prototype.set=R1;var P1=Vr,El=P1,_1=mi,k1=zs;function I1(){this.size=0,this.__data__={hash:new El,map:new(k1||_1),string:new El}}var D1=I1;function L1(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var M1=L1,$1=M1;function B1(t,e){var r=t.__data__;return $1(e)?r[typeof e=="string"?"string":"hash"]:r.map}var vi=B1,F1=vi;function H1(t){var e=F1(this,t).delete(t);return this.size-=e?1:0,e}var q1=H1,z1=vi;function U1(t){return z1(this,t).get(t)}var V1=U1,W1=vi;function G1(t){return W1(this,t).has(t)}var Y1=G1,X1=vi;function K1(t,e){var r=X1(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}var J1=K1,Z1=D1,Q1=q1,ey=V1,ty=Y1,ry=J1;function Wr(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Wr.prototype.clear=Z1;Wr.prototype.delete=Q1;Wr.prototype.get=ey;Wr.prototype.has=ty;Wr.prototype.set=ry;var Wd=Wr,ny=mi,oy=zs,iy=Wd,ay=200;function sy(t,e){var r=this.__data__;if(r instanceof ny){var n=r.__data__;if(!oy||n.length<ay-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new iy(n)}return r.set(t,e),this.size=r.size,this}var uy=sy,ly=mi,cy=Xb,dy=Jb,fy=Qb,py=tg,hy=uy;function Gr(t){var e=this.__data__=new ly(t);this.size=e.size}Gr.prototype.clear=cy;Gr.prototype.delete=dy;Gr.prototype.get=fy;Gr.prototype.has=py;Gr.prototype.set=hy;var my=Gr,by="__lodash_hash_undefined__";function gy(t){return this.__data__.set(t,by),this}var yy=gy;function vy(t){return this.__data__.has(t)}var xy=vy,wy=Wd,Sy=yy,Ey=xy;function Lo(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new wy;++e<r;)this.add(t[e])}Lo.prototype.add=Lo.prototype.push=Sy;Lo.prototype.has=Ey;var Cy=Lo;function Ty(t,e){for(var r=-1,n=t==null?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}var Ny=Ty;function Ay(t,e){return t.has(e)}var Oy=Ay,jy=Cy,Ry=Ny,Py=Oy,_y=1,ky=2;function Iy(t,e,r,n,o,i){var a=r&_y,s=t.length,u=e.length;if(s!=u&&!(a&&u>s))return!1;var l=i.get(t),c=i.get(e);if(l&&c)return l==e&&c==t;var h=-1,f=!0,d=r&ky?new jy:void 0;for(i.set(t,e),i.set(e,t);++h<s;){var b=t[h],g=e[h];if(n)var m=a?n(g,b,h,e,t,i):n(b,g,h,t,e,i);if(m!==void 0){if(m)continue;f=!1;break}if(d){if(!Ry(e,function(y,x){if(!Py(d,x)&&(b===y||o(b,y,r,n,i)))return d.push(x)})){f=!1;break}}else if(!(b===g||o(b,g,r,n,i))){f=!1;break}}return i.delete(t),i.delete(e),f}var Gd=Iy,Dy=pt,Ly=Dy.Uint8Array,My=Ly;function $y(t){var e=-1,r=Array(t.size);return t.forEach(function(n,o){r[++e]=[o,n]}),r}var By=$y;function Fy(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var Hy=Fy,Cl=bi,Tl=My,qy=Hd,zy=Gd,Uy=By,Vy=Hy,Wy=1,Gy=2,Yy="[object Boolean]",Xy="[object Date]",Ky="[object Error]",Jy="[object Map]",Zy="[object Number]",Qy="[object RegExp]",ev="[object Set]",tv="[object String]",rv="[object Symbol]",nv="[object ArrayBuffer]",ov="[object DataView]",Nl=Cl?Cl.prototype:void 0,ia=Nl?Nl.valueOf:void 0;function iv(t,e,r,n,o,i,a){switch(r){case ov:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case nv:return!(t.byteLength!=e.byteLength||!i(new Tl(t),new Tl(e)));case Yy:case Xy:case Zy:return qy(+t,+e);case Ky:return t.name==e.name&&t.message==e.message;case Qy:case tv:return t==e+"";case Jy:var s=Uy;case ev:var u=n&Wy;if(s||(s=Vy),t.size!=e.size&&!u)return!1;var l=a.get(t);if(l)return l==e;n|=Gy,a.set(t,e);var c=zy(s(t),s(e),n,o,i,a);return a.delete(t),c;case rv:if(ia)return ia.call(t)==ia.call(e)}return!1}var av=iv;function sv(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}var uv=sv,lv=Array.isArray,Us=lv,cv=uv,dv=Us;function fv(t,e,r){var n=e(t);return dv(t)?n:cv(n,r(t))}var pv=fv;function hv(t,e){for(var r=-1,n=t==null?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i}var mv=hv;function bv(){return[]}var gv=bv,yv=mv,vv=gv,xv=Object.prototype,wv=xv.propertyIsEnumerable,Al=Object.getOwnPropertySymbols,Sv=Al?function(t){return t==null?[]:(t=Object(t),yv(Al(t),function(e){return wv.call(t,e)}))}:vv,Ev=Sv;function Cv(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var Tv=Cv;function Nv(t){return t!=null&&typeof t=="object"}var xi=Nv,Av=gi,Ov=xi,jv="[object Arguments]";function Rv(t){return Ov(t)&&Av(t)==jv}var Pv=Rv,Ol=Pv,_v=xi,Yd=Object.prototype,kv=Yd.hasOwnProperty,Iv=Yd.propertyIsEnumerable,Dv=Ol(function(){return arguments}())?Ol:function(t){return _v(t)&&kv.call(t,"callee")&&!Iv.call(t,"callee")},Lv=Dv,Mo={exports:{}};function Mv(){return!1}var $v=Mv;Mo.exports;(function(t,e){var r=pt,n=$v,o=e&&!e.nodeType&&e,i=o&&!0&&t&&!t.nodeType&&t,a=i&&i.exports===o,s=a?r.Buffer:void 0,u=s?s.isBuffer:void 0,l=u||n;t.exports=l})(Mo,Mo.exports);var Xd=Mo.exports,Bv=9007199254740991,Fv=/^(?:0|[1-9]\d*)$/;function Hv(t,e){var r=typeof t;return e=e??Bv,!!e&&(r=="number"||r!="symbol"&&Fv.test(t))&&t>-1&&t%1==0&&t<e}var qv=Hv,zv=9007199254740991;function Uv(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=zv}var Kd=Uv,Vv=gi,Wv=Kd,Gv=xi,Yv="[object Arguments]",Xv="[object Array]",Kv="[object Boolean]",Jv="[object Date]",Zv="[object Error]",Qv="[object Function]",ex="[object Map]",tx="[object Number]",rx="[object Object]",nx="[object RegExp]",ox="[object Set]",ix="[object String]",ax="[object WeakMap]",sx="[object ArrayBuffer]",ux="[object DataView]",lx="[object Float32Array]",cx="[object Float64Array]",dx="[object Int8Array]",fx="[object Int16Array]",px="[object Int32Array]",hx="[object Uint8Array]",mx="[object Uint8ClampedArray]",bx="[object Uint16Array]",gx="[object Uint32Array]",ce={};ce[lx]=ce[cx]=ce[dx]=ce[fx]=ce[px]=ce[hx]=ce[mx]=ce[bx]=ce[gx]=!0;ce[Yv]=ce[Xv]=ce[sx]=ce[Kv]=ce[ux]=ce[Jv]=ce[Zv]=ce[Qv]=ce[ex]=ce[tx]=ce[rx]=ce[nx]=ce[ox]=ce[ix]=ce[ax]=!1;function yx(t){return Gv(t)&&Wv(t.length)&&!!ce[Vv(t)]}var vx=yx;function xx(t){return function(e){return t(e)}}var wx=xx,$o={exports:{}};$o.exports;(function(t,e){var r=qd,n=e&&!e.nodeType&&e,o=n&&!0&&t&&!t.nodeType&&t,i=o&&o.exports===n,a=i&&r.process,s=function(){try{var u=o&&o.require&&o.require("util").types;return u||a&&a.binding&&a.binding("util")}catch{}}();t.exports=s})($o,$o.exports);var Vs=$o.exports,Sx=vx,Ex=wx,jl=Vs,Rl=jl&&jl.isTypedArray,Cx=Rl?Ex(Rl):Sx,Jd=Cx,Tx=Tv,Nx=Lv,Ax=Us,Ox=Xd,jx=qv,Rx=Jd,Px=Object.prototype,_x=Px.hasOwnProperty;function kx(t,e){var r=Ax(t),n=!r&&Nx(t),o=!r&&!n&&Ox(t),i=!r&&!n&&!o&&Rx(t),a=r||n||o||i,s=a?Tx(t.length,String):[],u=s.length;for(var l in t)(e||_x.call(t,l))&&!(a&&(l=="length"||o&&(l=="offset"||l=="parent")||i&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||jx(l,u)))&&s.push(l);return s}var Ix=kx,Dx=Object.prototype;function Lx(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||Dx;return t===r}var Mx=Lx;function $x(t,e){return function(r){return t(e(r))}}var Bx=$x,Fx=Bx,Hx=Fx(Object.keys,Object),qx=Hx,zx=Mx,Ux=qx,Vx=Object.prototype,Wx=Vx.hasOwnProperty;function Gx(t){if(!zx(t))return Ux(t);var e=[];for(var r in Object(t))Wx.call(t,r)&&r!="constructor"&&e.push(r);return e}var Yx=Gx,Xx=qs,Kx=Kd;function Jx(t){return t!=null&&Kx(t.length)&&!Xx(t)}var Zx=Jx,Qx=Ix,e2=Yx,t2=Zx;function r2(t){return t2(t)?Qx(t):e2(t)}var n2=r2,o2=pv,i2=Ev,a2=n2;function s2(t){return o2(t,a2,i2)}var u2=s2,Pl=u2,l2=1,c2=Object.prototype,d2=c2.hasOwnProperty;function f2(t,e,r,n,o,i){var a=r&l2,s=Pl(t),u=s.length,l=Pl(e),c=l.length;if(u!=c&&!a)return!1;for(var h=u;h--;){var f=s[h];if(!(a?f in e:d2.call(e,f)))return!1}var d=i.get(t),b=i.get(e);if(d&&b)return d==e&&b==t;var g=!0;i.set(t,e),i.set(e,t);for(var m=a;++h<u;){f=s[h];var y=t[f],x=e[f];if(n)var S=a?n(x,y,f,e,t,i):n(y,x,f,t,e,i);if(!(S===void 0?y===x||o(y,x,r,n,i):S)){g=!1;break}m||(m=f=="constructor")}if(g&&!m){var E=t.constructor,A=e.constructor;E!=A&&"constructor"in t&&"constructor"in e&&!(typeof E=="function"&&E instanceof E&&typeof A=="function"&&A instanceof A)&&(g=!1)}return i.delete(t),i.delete(e),g}var p2=f2,h2=dr,m2=pt,b2=h2(m2,"DataView"),g2=b2,y2=dr,v2=pt,x2=y2(v2,"Promise"),w2=x2,S2=dr,E2=pt,C2=S2(E2,"Set"),T2=C2,N2=dr,A2=pt,O2=N2(A2,"WeakMap"),j2=O2,Oa=g2,ja=zs,Ra=w2,Pa=T2,_a=j2,Zd=gi,Yr=Vd,_l="[object Map]",R2="[object Object]",kl="[object Promise]",Il="[object Set]",Dl="[object WeakMap]",Ll="[object DataView]",P2=Yr(Oa),_2=Yr(ja),k2=Yr(Ra),I2=Yr(Pa),D2=Yr(_a),er=Zd;(Oa&&er(new Oa(new ArrayBuffer(1)))!=Ll||ja&&er(new ja)!=_l||Ra&&er(Ra.resolve())!=kl||Pa&&er(new Pa)!=Il||_a&&er(new _a)!=Dl)&&(er=function(t){var e=Zd(t),r=e==R2?t.constructor:void 0,n=r?Yr(r):"";if(n)switch(n){case P2:return Ll;case _2:return _l;case k2:return kl;case I2:return Il;case D2:return Dl}return e});var L2=er,aa=my,M2=Gd,$2=av,B2=p2,Ml=L2,$l=Us,Bl=Xd,F2=Jd,H2=1,Fl="[object Arguments]",Hl="[object Array]",io="[object Object]",q2=Object.prototype,ql=q2.hasOwnProperty;function z2(t,e,r,n,o,i){var a=$l(t),s=$l(e),u=a?Hl:Ml(t),l=s?Hl:Ml(e);u=u==Fl?io:u,l=l==Fl?io:l;var c=u==io,h=l==io,f=u==l;if(f&&Bl(t)){if(!Bl(e))return!1;a=!0,c=!1}if(f&&!c)return i||(i=new aa),a||F2(t)?M2(t,e,r,n,o,i):$2(t,e,u,r,n,o,i);if(!(r&H2)){var d=c&&ql.call(t,"__wrapped__"),b=h&&ql.call(e,"__wrapped__");if(d||b){var g=d?t.value():t,m=b?e.value():e;return i||(i=new aa),o(g,m,r,n,i)}}return f?(i||(i=new aa),B2(t,e,r,n,o,i)):!1}var U2=z2,V2=U2,zl=xi;function Qd(t,e,r,n,o){return t===e?!0:t==null||e==null||!zl(t)&&!zl(e)?t!==t&&e!==e:V2(t,e,r,n,Qd,o)}var W2=Qd,G2=W2;function Y2(t,e,r){r=typeof r=="function"?r:void 0;var n=r?r(t,e):void 0;return n===void 0?G2(t,e,void 0,r):!!n}var X2=Y2;const K2=pi(X2);var J2=function(e,r,n,o){var i=n?n.call(o,e,r):void 0;if(i!==void 0)return!!i;if(e===r)return!0;if(typeof e!="object"||!e||typeof r!="object"||!r)return!1;var a=Object.keys(e),s=Object.keys(r);if(a.length!==s.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(r),l=0;l<a.length;l++){var c=a[l];if(!u(c))return!1;var h=e[c],f=r[c];if(i=n?n.call(o,h,f,c):void 0,i===!1||i===void 0&&h!==f)return!1}return!0};const Z2=pi(J2);let Q2=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((e,r)=>(r&=63,r<36?e+=r.toString(36):r<62?e+=(r-26).toString(36).toUpperCase():r>62?e+="-":e+="_",e),"");var ew=process.env.NODE_ENV==="production",sa="Invariant failed";function ue(t,e){if(!t){if(ew)throw new Error(sa);var r=typeof e=="function"?e():e,n=r?"".concat(sa,": ").concat(r):sa;throw new Error(n)}}typeof window<"u"&&(window.__CRAFTJS__||(window.__CRAFTJS__={}),window.__CRAFTJS__["@craftjs/utils"]="0.2.5");var Nt="ROOT",ef="canvas-ROOT",tw="Parent id cannot be ommited",rw="Attempting to add a node with duplicated id",tf="Node does not exist, it may have been removed",nw='A <Element /> that is used inside a User Component must specify an `id` prop, eg: <Element id="text_element">...</Element> ',ow="Node cannot be dropped into target parent",iw="Target parent rejects incoming node",aw="Current parent rejects outgoing node",Ul="Cannot move node that is not a direct child of a Canvas node",sw="Cannot move node into a non-Canvas parent",Vl="A top-level Node cannot be moved",uw="Cannot move node into a descendant",Bo="The component type specified for this node (%node_type%) does not exist in the resolver",lw="The node has specified a canDrag() rule that prevents it from being dragged",cw="Invalid parameter Node Id specified",dw="Attempting to delete a top-level Node",fw=`Resolver in <Editor /> has to be an object. For (de)serialization Craft.js needs a list of all the User Components.
|
|
221
|
+
*/const Jm=K("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function sl(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function ci(...t){return e=>{let r=!1;const n=t.map(o=>{const i=sl(o,e);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let o=0;o<n.length;o++){const i=n[o];typeof i=="function"?i():sl(t[o],null)}}}}function Te(...t){return v.useCallback(ci(...t),t)}var Zm=Symbol.for("react.lazy"),Po=v[" use ".trim().toString()];function Qm(t){return typeof t=="object"&&t!==null&&"then"in t}function Md(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===Zm&&"_payload"in t&&Qm(t._payload)}function eb(t){const e=rb(t),r=v.forwardRef((n,o)=>{let{children:i,...a}=n;Md(i)&&typeof Po=="function"&&(i=Po(i._payload));const s=v.Children.toArray(i),u=s.find(ob);if(u){const l=u.props.children,c=s.map(h=>h===u?v.Children.count(l)>1?v.Children.only(null):v.isValidElement(l)?l.props.children:null:h);return p.jsx(e,{...a,ref:o,children:v.isValidElement(l)?v.cloneElement(l,void 0,c):null})}return p.jsx(e,{...a,ref:o,children:i})});return r.displayName=`${t}.Slot`,r}var tb=eb("Slot");function rb(t){const e=v.forwardRef((r,n)=>{let{children:o,...i}=r;if(Md(o)&&typeof Po=="function"&&(o=Po(o._payload)),v.isValidElement(o)){const a=ab(o),s=ib(i,o.props);return o.type!==v.Fragment&&(s.ref=n?ci(n,a):a),v.cloneElement(o,s)}return v.Children.count(o)>1?v.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var nb=Symbol("radix.slottable");function ob(t){return v.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===nb}function ib(t,e){const r={...e};for(const n in e){const o=t[n],i=e[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{const u=i(...s);return o(...s),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...t,...r}}function ab(t){var n,o;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}const ul=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,ll=ct,$d=(t,e)=>r=>{var n;if((e==null?void 0:e.variants)==null)return ll(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:i}=e,a=Object.keys(o).map(l=>{const c=r==null?void 0:r[l],h=i==null?void 0:i[l];if(c===null)return null;const f=ul(c)||ul(h);return o[l][f]}),s=r&&Object.entries(r).reduce((l,c)=>{let[h,f]=c;return f===void 0||(l[h]=f),l},{}),u=e==null||(n=e.compoundVariants)===null||n===void 0?void 0:n.reduce((l,c)=>{let{class:h,className:f,...d}=c;return Object.entries(d).every(b=>{let[g,m]=b;return Array.isArray(m)?m.includes({...i,...s}[g]):{...i,...s}[g]===m})?[...l,h,f]:l},[]);return ll(t,a,u,r==null?void 0:r.class,r==null?void 0:r.className)},sb=$d("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-black text-white shadow-lg shadow-primary/25",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-transparent hover:bg-secondary hover:text-secondary-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-secondary hover:text-secondary-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",xl:"h-12 rounded-lg px-10 text-base",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),ot=v.forwardRef(({className:t,variant:e,size:r,asChild:n=!1,...o},i)=>{const a=n?tb:"button";return p.jsx(a,{className:Ne(sb({variant:e,size:r,className:t})),ref:i,...o})});ot.displayName="Button";function ub(...t){return Ad(ct(t))}function me(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(process.env.NODE_ENV!=="production"){var o=gb[t],i=o?typeof o=="function"?o.apply(null,r):o:"unknown error nr: "+t;throw Error("[Immer] "+i)}throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(a){return"'"+a+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function or(t){return!!t&&!!t[ne]}function dt(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var o=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===yb}(t)||Array.isArray(t)||!!t[yn]||!!(!((e=t.constructor)===null||e===void 0)&&e[yn])||di(t)||fi(t))}function ir(t,e,r){r===void 0&&(r=!1),qt(t)===0?(r?Object.keys:Hs)(t).forEach(function(n){r&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,o){return e(o,n,t)})}function qt(t){var e=t[ne];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:di(t)?2:fi(t)?3:0}function Sn(t,e){return qt(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function So(t,e){return qt(t)===2?t.get(e):t[e]}function Bd(t,e,r){var n=qt(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function lb(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function di(t){return mb&&t instanceof Map}function fi(t){return bb&&t instanceof Set}function Ce(t){return t.o||t.t}function Ls(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=vb(t);delete e[ne];for(var r=Hs(e),n=0;n<r.length;n++){var o=r[n],i=e[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function Ms(t,e){return e===void 0&&(e=!1),$s(t)||or(t)||!dt(t)||(qt(t)>1&&(t.set=t.add=t.clear=t.delete=cb),Object.freeze(t),e&&ir(t,function(r,n){return Ms(n,!0)},!0)),t}function cb(){me(2)}function $s(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function at(t){var e=Na[t];return e||me(18,t),e}function Fd(t,e){Na[t]||(Na[t]=e)}function _o(){return process.env.NODE_ENV==="production"||Rr||me(0),Rr}function ea(t,e){e&&(at("Patches"),t.u=[],t.s=[],t.v=e)}function ko(t){Ta(t),t.p.forEach(db),t.p=null}function Ta(t){t===Rr&&(Rr=t.l)}function cl(t){return Rr={p:[],l:Rr,h:t,m:!0,_:0}}function db(t){var e=t[ne];e.i===0||e.i===1?e.j():e.g=!0}function ta(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||at("ES5").S(e,t,n),n?(r[ne].P&&(ko(e),me(4)),dt(t)&&(t=Io(e,t),e.l||Do(e,t)),e.u&&at("Patches").M(r[ne].t,t,e.u,e.s)):t=Io(e,r,[]),ko(e),e.u&&e.v(e.u,e.s),t!==Fs?t:void 0}function Io(t,e,r){if($s(e))return e;var n=e[ne];if(!n)return ir(e,function(s,u){return dl(t,n,e,s,u,r)},!0),e;if(n.A!==t)return e;if(!n.P)return Do(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=Ls(n.k):n.o,i=o,a=!1;n.i===3&&(i=new Set(o),o.clear(),a=!0),ir(i,function(s,u){return dl(t,n,o,s,u,r,a)}),Do(t,o,!1),r&&t.u&&at("Patches").N(n,r,t.u,t.s)}return n.o}function dl(t,e,r,n,o,i,a){if(process.env.NODE_ENV!=="production"&&o===r&&me(5),or(o)){var s=Io(t,o,i&&e&&e.i!==3&&!Sn(e.R,n)?i.concat(n):void 0);if(Bd(r,n,s),!or(s))return;t.m=!1}else a&&r.add(o);if(dt(o)&&!$s(o)){if(!t.h.D&&t._<1)return;Io(t,o),e&&e.A.l||Do(t,o)}}function Do(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Ms(e,r)}function ra(t,e){var r=t[ne];return(r?Ce(r):t)[e]}function fl(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function Et(t){t.P||(t.P=!0,t.l&&Et(t.l))}function na(t){t.o||(t.o=Ls(t.t))}function En(t,e,r){var n=di(e)?at("MapSet").F(e,r):fi(e)?at("MapSet").T(e,r):t.O?function(o,i){var a=Array.isArray(o),s={i:a?1:0,A:i?i.A:_o(),P:!1,I:!1,R:{},l:i,t:o,k:null,o:null,j:null,C:!1},u=s,l=Aa;a&&(u=[s],l=hn);var c=Proxy.revocable(u,l),h=c.revoke,f=c.proxy;return s.k=f,s.j=h,f}(e,r):at("ES5").J(e,r);return(r?r.A:_o()).p.push(n),n}function fb(t){return or(t)||me(22,t),function e(r){if(!dt(r))return r;var n,o=r[ne],i=qt(r);if(o){if(!o.P&&(o.i<4||!at("ES5").K(o)))return o.t;o.I=!0,n=pl(r,i),o.I=!1}else n=pl(r,i);return ir(n,function(a,s){o&&So(o.t,a)===s||Bd(n,a,e(s))}),i===3?new Set(n):n}(t)}function pl(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Ls(t)}function pb(){function t(n){if(!dt(n))return n;if(Array.isArray(n))return n.map(t);if(di(n))return new Map(Array.from(n.entries()).map(function(a){return[a[0],t(a[1])]}));if(fi(n))return new Set(Array.from(n).map(t));var o=Object.create(Object.getPrototypeOf(n));for(var i in n)o[i]=t(n[i]);return Sn(n,yn)&&(o[yn]=n[yn]),o}function e(n){return or(n)?t(n):n}var r="add";Fd("Patches",{$:function(n,o){return o.forEach(function(i){for(var a=i.path,s=i.op,u=n,l=0;l<a.length-1;l++){var c=qt(u),h=a[l];typeof h!="string"&&typeof h!="number"&&(h=""+h),c!==0&&c!==1||h!=="__proto__"&&h!=="constructor"||me(24),typeof u=="function"&&h==="prototype"&&me(24),typeof(u=So(u,h))!="object"&&me(15,a.join("/"))}var f=qt(u),d=t(i.value),b=a[a.length-1];switch(s){case"replace":switch(f){case 2:return u.set(b,d);case 3:me(16);default:return u[b]=d}case r:switch(f){case 1:return b==="-"?u.push(d):u.splice(b,0,d);case 2:return u.set(b,d);case 3:return u.add(d);default:return u[b]=d}case"remove":switch(f){case 1:return u.splice(b,1);case 2:return u.delete(b);case 3:return u.delete(i.value);default:return delete u[b]}default:me(17,s)}}),n},N:function(n,o,i,a){switch(n.i){case 0:case 4:case 2:return function(s,u,l,c){var h=s.t,f=s.o;ir(s.R,function(d,b){var g=So(h,d),m=So(f,d),y=b?Sn(h,d)?"replace":r:"remove";if(g!==m||y!=="replace"){var x=u.concat(d);l.push(y==="remove"?{op:y,path:x}:{op:y,path:x,value:m}),c.push(y===r?{op:"remove",path:x}:y==="remove"?{op:r,path:x,value:e(g)}:{op:"replace",path:x,value:e(g)})}})}(n,o,i,a);case 5:case 1:return function(s,u,l,c){var h=s.t,f=s.R,d=s.o;if(d.length<h.length){var b=[d,h];h=b[0],d=b[1];var g=[c,l];l=g[0],c=g[1]}for(var m=0;m<h.length;m++)if(f[m]&&d[m]!==h[m]){var y=u.concat([m]);l.push({op:"replace",path:y,value:e(d[m])}),c.push({op:"replace",path:y,value:e(h[m])})}for(var x=h.length;x<d.length;x++){var S=u.concat([x]);l.push({op:r,path:S,value:e(d[x])})}h.length<d.length&&c.push({op:"replace",path:u.concat(["length"]),value:h.length})}(n,o,i,a);case 3:return function(s,u,l,c){var h=s.t,f=s.o,d=0;h.forEach(function(b){if(!f.has(b)){var g=u.concat([d]);l.push({op:"remove",path:g,value:b}),c.unshift({op:r,path:g,value:b})}d++}),d=0,f.forEach(function(b){if(!h.has(b)){var g=u.concat([d]);l.push({op:r,path:g,value:b}),c.unshift({op:"remove",path:g,value:b})}d++})}(n,o,i,a)}},M:function(n,o,i,a){i.push({op:"replace",path:[],value:o===Fs?void 0:o}),a.push({op:"replace",path:[],value:n})}})}function hb(){function t(s,u){function l(){this.constructor=s}o(s,u),s.prototype=(l.prototype=u.prototype,new l)}function e(s){s.o||(s.R=new Map,s.o=new Map(s.t))}function r(s){s.o||(s.o=new Set,s.t.forEach(function(u){if(dt(u)){var l=En(s.A.h,u,s);s.p.set(u,l),s.o.add(l)}else s.o.add(u)}))}function n(s){s.g&&me(3,JSON.stringify(Ce(s)))}var o=function(s,u){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var h in c)c.hasOwnProperty(h)&&(l[h]=c[h])})(s,u)},i=function(){function s(l,c){return this[ne]={i:2,l:c,A:c?c.A:_o(),P:!1,I:!1,o:void 0,R:void 0,t:l,k:this,C:!1,g:!1},this}t(s,Map);var u=s.prototype;return Object.defineProperty(u,"size",{get:function(){return Ce(this[ne]).size}}),u.has=function(l){return Ce(this[ne]).has(l)},u.set=function(l,c){var h=this[ne];return n(h),Ce(h).has(l)&&Ce(h).get(l)===c||(e(h),Et(h),h.R.set(l,!0),h.o.set(l,c),h.R.set(l,!0)),this},u.delete=function(l){if(!this.has(l))return!1;var c=this[ne];return n(c),e(c),Et(c),c.t.has(l)?c.R.set(l,!1):c.R.delete(l),c.o.delete(l),!0},u.clear=function(){var l=this[ne];n(l),Ce(l).size&&(e(l),Et(l),l.R=new Map,ir(l.t,function(c){l.R.set(c,!1)}),l.o.clear())},u.forEach=function(l,c){var h=this;Ce(this[ne]).forEach(function(f,d){l.call(c,h.get(d),d,h)})},u.get=function(l){var c=this[ne];n(c);var h=Ce(c).get(l);if(c.I||!dt(h)||h!==c.t.get(l))return h;var f=En(c.A.h,h,c);return e(c),c.o.set(l,f),f},u.keys=function(){return Ce(this[ne]).keys()},u.values=function(){var l,c=this,h=this.keys();return(l={})[oo]=function(){return c.values()},l.next=function(){var f=h.next();return f.done?f:{done:!1,value:c.get(f.value)}},l},u.entries=function(){var l,c=this,h=this.keys();return(l={})[oo]=function(){return c.entries()},l.next=function(){var f=h.next();if(f.done)return f;var d=c.get(f.value);return{done:!1,value:[f.value,d]}},l},u[oo]=function(){return this.entries()},s}(),a=function(){function s(l,c){return this[ne]={i:3,l:c,A:c?c.A:_o(),P:!1,I:!1,o:void 0,t:l,k:this,p:new Map,g:!1,C:!1},this}t(s,Set);var u=s.prototype;return Object.defineProperty(u,"size",{get:function(){return Ce(this[ne]).size}}),u.has=function(l){var c=this[ne];return n(c),c.o?!!c.o.has(l)||!(!c.p.has(l)||!c.o.has(c.p.get(l))):c.t.has(l)},u.add=function(l){var c=this[ne];return n(c),this.has(l)||(r(c),Et(c),c.o.add(l)),this},u.delete=function(l){if(!this.has(l))return!1;var c=this[ne];return n(c),r(c),Et(c),c.o.delete(l)||!!c.p.has(l)&&c.o.delete(c.p.get(l))},u.clear=function(){var l=this[ne];n(l),Ce(l).size&&(r(l),Et(l),l.o.clear())},u.values=function(){var l=this[ne];return n(l),r(l),l.o.values()},u.entries=function(){var l=this[ne];return n(l),r(l),l.o.entries()},u.keys=function(){return this.values()},u[oo]=function(){return this.values()},u.forEach=function(l,c){for(var h=this.values(),f=h.next();!f.done;)l.call(c,f.value,f.value,this),f=h.next()},s}();Fd("MapSet",{F:function(s,u){return new i(s,u)},T:function(s,u){return new a(s,u)}})}var hl,Rr,Bs=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",mb=typeof Map<"u",bb=typeof Set<"u",ml=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Fs=Bs?Symbol.for("immer-nothing"):((hl={})["immer-nothing"]=!0,hl),yn=Bs?Symbol.for("immer-draftable"):"__$immer_draftable",ne=Bs?Symbol.for("immer-state"):"__$immer_state",oo=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",gb={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(t){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+t},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(t){return"Cannot apply patch, path doesn't resolve: "+t},16:'Sets cannot have "replace" patches.',17:function(t){return"Unsupported patch operation: "+t},18:function(t){return"The plugin for '"+t+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+t+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(t){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+t+"'"},22:function(t){return"'current' expects a draft, got: "+t},23:function(t){return"'original' expects a draft, got: "+t},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},yb=""+Object.prototype.constructor,Hs=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,vb=Object.getOwnPropertyDescriptors||function(t){var e={};return Hs(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},Na={},Aa={get:function(t,e){if(e===ne)return t;var r=Ce(t);if(!Sn(r,e))return function(o,i,a){var s,u=fl(i,a);return u?"value"in u?u.value:(s=u.get)===null||s===void 0?void 0:s.call(o.k):void 0}(t,r,e);var n=r[e];return t.I||!dt(n)?n:n===ra(t.t,e)?(na(t),t.o[e]=En(t.A.h,n,t)):n},has:function(t,e){return e in Ce(t)},ownKeys:function(t){return Reflect.ownKeys(Ce(t))},set:function(t,e,r){var n=fl(Ce(t),e);if(n!=null&&n.set)return n.set.call(t.k,r),!0;if(!t.P){var o=ra(Ce(t),e),i=o==null?void 0:o[ne];if(i&&i.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(lb(r,o)&&(r!==void 0||Sn(t.t,e)))return!0;na(t),Et(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return ra(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,na(t),Et(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=Ce(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){me(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){me(12)}},hn={};ir(Aa,function(t,e){hn[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),hn.deleteProperty=function(t,e){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(e))&&me(13),hn.set.call(this,t,e,void 0)},hn.set=function(t,e,r){return process.env.NODE_ENV!=="production"&&e!=="length"&&isNaN(parseInt(e))&&me(14),Aa.set.call(this,t[0],e,r,t[0])};var xb=function(){function t(r){var n=this;this.O=ml,this.D=!0,this.produce=function(o,i,a){if(typeof o=="function"&&typeof i!="function"){var s=i;i=o;var u=n;return function(g){var m=this;g===void 0&&(g=s);for(var y=arguments.length,x=Array(y>1?y-1:0),S=1;S<y;S++)x[S-1]=arguments[S];return u.produce(g,function(E){var A;return(A=i).call.apply(A,[m,E].concat(x))})}}var l;if(typeof i!="function"&&me(6),a!==void 0&&typeof a!="function"&&me(7),dt(o)){var c=cl(n),h=En(n,o,void 0),f=!0;try{l=i(h),f=!1}finally{f?ko(c):Ta(c)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(g){return ea(c,a),ta(g,c)},function(g){throw ko(c),g}):(ea(c,a),ta(l,c))}if(!o||typeof o!="object"){if((l=i(o))===void 0&&(l=o),l===Fs&&(l=void 0),n.D&&Ms(l,!0),a){var d=[],b=[];at("Patches").M(o,l,d,b),a(d,b)}return l}me(21,o)},this.produceWithPatches=function(o,i){if(typeof o=="function")return function(l){for(var c=arguments.length,h=Array(c>1?c-1:0),f=1;f<c;f++)h[f-1]=arguments[f];return n.produceWithPatches(l,function(d){return o.apply(void 0,[d].concat(h))})};var a,s,u=n.produce(o,i,function(l,c){a=l,s=c});return typeof Promise<"u"&&u instanceof Promise?u.then(function(l){return[l,a,s]}):[u,a,s]},typeof(r==null?void 0:r.useProxies)=="boolean"&&this.setUseProxies(r.useProxies),typeof(r==null?void 0:r.autoFreeze)=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){dt(r)||me(8),or(r)&&(r=fb(r));var n=cl(this),o=En(this,r,void 0);return o[ne].C=!0,Ta(n),o},e.finishDraft=function(r,n){var o=r&&r[ne];process.env.NODE_ENV!=="production"&&(o&&o.C||me(9),o.I&&me(10));var i=o.A;return ea(i,n),ta(void 0,i)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!ml&&me(20),this.O=r},e.applyPatches=function(r,n){var o;for(o=n.length-1;o>=0;o--){var i=n[o];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}o>-1&&(n=n.slice(o+1));var a=at("Patches").$;return or(r)?a(r,n):this.produce(r,function(s){return a(s,n)})},t}(),$e=new xb,wb=$e.produce,bl=$e.produceWithPatches.bind($e);$e.setAutoFreeze.bind($e);$e.setUseProxies.bind($e);var gl=$e.applyPatches.bind($e);$e.createDraft.bind($e);$e.finishDraft.bind($e);var U=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pi(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Sb(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}),r}function Eb(){this.__data__=[],this.size=0}var Cb=Eb;function Tb(t,e){return t===e||t!==t&&e!==e}var Hd=Tb,Nb=Hd;function Ab(t,e){for(var r=t.length;r--;)if(Nb(t[r][0],e))return r;return-1}var hi=Ab,Ob=hi,jb=Array.prototype,Rb=jb.splice;function Pb(t){var e=this.__data__,r=Ob(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():Rb.call(e,r,1),--this.size,!0}var _b=Pb,kb=hi;function Ib(t){var e=this.__data__,r=kb(e,t);return r<0?void 0:e[r][1]}var Db=Ib,Lb=hi;function Mb(t){return Lb(this.__data__,t)>-1}var $b=Mb,Bb=hi;function Fb(t,e){var r=this.__data__,n=Bb(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}var Hb=Fb,qb=Cb,zb=_b,Ub=Db,Vb=$b,Wb=Hb;function Ur(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Ur.prototype.clear=qb;Ur.prototype.delete=zb;Ur.prototype.get=Ub;Ur.prototype.has=Vb;Ur.prototype.set=Wb;var mi=Ur,Gb=mi;function Yb(){this.__data__=new Gb,this.size=0}var Xb=Yb;function Kb(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}var Jb=Kb;function Zb(t){return this.__data__.get(t)}var Qb=Zb;function eg(t){return this.__data__.has(t)}var tg=eg,rg=typeof U=="object"&&U&&U.Object===Object&&U,qd=rg,ng=qd,og=typeof self=="object"&&self&&self.Object===Object&&self,ig=ng||og||Function("return this")(),pt=ig,ag=pt,sg=ag.Symbol,bi=sg,yl=bi,zd=Object.prototype,ug=zd.hasOwnProperty,lg=zd.toString,un=yl?yl.toStringTag:void 0;function cg(t){var e=ug.call(t,un),r=t[un];try{t[un]=void 0;var n=!0}catch{}var o=lg.call(t);return n&&(e?t[un]=r:delete t[un]),o}var dg=cg,fg=Object.prototype,pg=fg.toString;function hg(t){return pg.call(t)}var mg=hg,vl=bi,bg=dg,gg=mg,yg="[object Null]",vg="[object Undefined]",xl=vl?vl.toStringTag:void 0;function xg(t){return t==null?t===void 0?vg:yg:xl&&xl in Object(t)?bg(t):gg(t)}var gi=xg;function wg(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Ud=wg,Sg=gi,Eg=Ud,Cg="[object AsyncFunction]",Tg="[object Function]",Ng="[object GeneratorFunction]",Ag="[object Proxy]";function Og(t){if(!Eg(t))return!1;var e=Sg(t);return e==Tg||e==Ng||e==Cg||e==Ag}var qs=Og;const jg=pi(qs);var Rg=pt,Pg=Rg["__core-js_shared__"],_g=Pg,oa=_g,wl=function(){var t=/[^.]+$/.exec(oa&&oa.keys&&oa.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function kg(t){return!!wl&&wl in t}var Ig=kg,Dg=Function.prototype,Lg=Dg.toString;function Mg(t){if(t!=null){try{return Lg.call(t)}catch{}try{return t+""}catch{}}return""}var Vd=Mg,$g=qs,Bg=Ig,Fg=Ud,Hg=Vd,qg=/[\\^$.*+?()[\]{}|]/g,zg=/^\[object .+?Constructor\]$/,Ug=Function.prototype,Vg=Object.prototype,Wg=Ug.toString,Gg=Vg.hasOwnProperty,Yg=RegExp("^"+Wg.call(Gg).replace(qg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Xg(t){if(!Fg(t)||Bg(t))return!1;var e=$g(t)?Yg:zg;return e.test(Hg(t))}var Kg=Xg;function Jg(t,e){return t==null?void 0:t[e]}var Zg=Jg,Qg=Kg,e1=Zg;function t1(t,e){var r=e1(t,e);return Qg(r)?r:void 0}var dr=t1,r1=dr,n1=pt,o1=r1(n1,"Map"),zs=o1,i1=dr,a1=i1(Object,"create"),yi=a1,Sl=yi;function s1(){this.__data__=Sl?Sl(null):{},this.size=0}var u1=s1;function l1(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var c1=l1,d1=yi,f1="__lodash_hash_undefined__",p1=Object.prototype,h1=p1.hasOwnProperty;function m1(t){var e=this.__data__;if(d1){var r=e[t];return r===f1?void 0:r}return h1.call(e,t)?e[t]:void 0}var b1=m1,g1=yi,y1=Object.prototype,v1=y1.hasOwnProperty;function x1(t){var e=this.__data__;return g1?e[t]!==void 0:v1.call(e,t)}var w1=x1,S1=yi,E1="__lodash_hash_undefined__";function C1(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=S1&&e===void 0?E1:e,this}var T1=C1,N1=u1,A1=c1,O1=b1,j1=w1,R1=T1;function Vr(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Vr.prototype.clear=N1;Vr.prototype.delete=A1;Vr.prototype.get=O1;Vr.prototype.has=j1;Vr.prototype.set=R1;var P1=Vr,El=P1,_1=mi,k1=zs;function I1(){this.size=0,this.__data__={hash:new El,map:new(k1||_1),string:new El}}var D1=I1;function L1(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var M1=L1,$1=M1;function B1(t,e){var r=t.__data__;return $1(e)?r[typeof e=="string"?"string":"hash"]:r.map}var vi=B1,F1=vi;function H1(t){var e=F1(this,t).delete(t);return this.size-=e?1:0,e}var q1=H1,z1=vi;function U1(t){return z1(this,t).get(t)}var V1=U1,W1=vi;function G1(t){return W1(this,t).has(t)}var Y1=G1,X1=vi;function K1(t,e){var r=X1(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}var J1=K1,Z1=D1,Q1=q1,ey=V1,ty=Y1,ry=J1;function Wr(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Wr.prototype.clear=Z1;Wr.prototype.delete=Q1;Wr.prototype.get=ey;Wr.prototype.has=ty;Wr.prototype.set=ry;var Wd=Wr,ny=mi,oy=zs,iy=Wd,ay=200;function sy(t,e){var r=this.__data__;if(r instanceof ny){var n=r.__data__;if(!oy||n.length<ay-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new iy(n)}return r.set(t,e),this.size=r.size,this}var uy=sy,ly=mi,cy=Xb,dy=Jb,fy=Qb,py=tg,hy=uy;function Gr(t){var e=this.__data__=new ly(t);this.size=e.size}Gr.prototype.clear=cy;Gr.prototype.delete=dy;Gr.prototype.get=fy;Gr.prototype.has=py;Gr.prototype.set=hy;var my=Gr,by="__lodash_hash_undefined__";function gy(t){return this.__data__.set(t,by),this}var yy=gy;function vy(t){return this.__data__.has(t)}var xy=vy,wy=Wd,Sy=yy,Ey=xy;function Lo(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new wy;++e<r;)this.add(t[e])}Lo.prototype.add=Lo.prototype.push=Sy;Lo.prototype.has=Ey;var Cy=Lo;function Ty(t,e){for(var r=-1,n=t==null?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}var Ny=Ty;function Ay(t,e){return t.has(e)}var Oy=Ay,jy=Cy,Ry=Ny,Py=Oy,_y=1,ky=2;function Iy(t,e,r,n,o,i){var a=r&_y,s=t.length,u=e.length;if(s!=u&&!(a&&u>s))return!1;var l=i.get(t),c=i.get(e);if(l&&c)return l==e&&c==t;var h=-1,f=!0,d=r&ky?new jy:void 0;for(i.set(t,e),i.set(e,t);++h<s;){var b=t[h],g=e[h];if(n)var m=a?n(g,b,h,e,t,i):n(b,g,h,t,e,i);if(m!==void 0){if(m)continue;f=!1;break}if(d){if(!Ry(e,function(y,x){if(!Py(d,x)&&(b===y||o(b,y,r,n,i)))return d.push(x)})){f=!1;break}}else if(!(b===g||o(b,g,r,n,i))){f=!1;break}}return i.delete(t),i.delete(e),f}var Gd=Iy,Dy=pt,Ly=Dy.Uint8Array,My=Ly;function $y(t){var e=-1,r=Array(t.size);return t.forEach(function(n,o){r[++e]=[o,n]}),r}var By=$y;function Fy(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var Hy=Fy,Cl=bi,Tl=My,qy=Hd,zy=Gd,Uy=By,Vy=Hy,Wy=1,Gy=2,Yy="[object Boolean]",Xy="[object Date]",Ky="[object Error]",Jy="[object Map]",Zy="[object Number]",Qy="[object RegExp]",ev="[object Set]",tv="[object String]",rv="[object Symbol]",nv="[object ArrayBuffer]",ov="[object DataView]",Nl=Cl?Cl.prototype:void 0,ia=Nl?Nl.valueOf:void 0;function iv(t,e,r,n,o,i,a){switch(r){case ov:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case nv:return!(t.byteLength!=e.byteLength||!i(new Tl(t),new Tl(e)));case Yy:case Xy:case Zy:return qy(+t,+e);case Ky:return t.name==e.name&&t.message==e.message;case Qy:case tv:return t==e+"";case Jy:var s=Uy;case ev:var u=n&Wy;if(s||(s=Vy),t.size!=e.size&&!u)return!1;var l=a.get(t);if(l)return l==e;n|=Gy,a.set(t,e);var c=zy(s(t),s(e),n,o,i,a);return a.delete(t),c;case rv:if(ia)return ia.call(t)==ia.call(e)}return!1}var av=iv;function sv(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}var uv=sv,lv=Array.isArray,Us=lv,cv=uv,dv=Us;function fv(t,e,r){var n=e(t);return dv(t)?n:cv(n,r(t))}var pv=fv;function hv(t,e){for(var r=-1,n=t==null?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i}var mv=hv;function bv(){return[]}var gv=bv,yv=mv,vv=gv,xv=Object.prototype,wv=xv.propertyIsEnumerable,Al=Object.getOwnPropertySymbols,Sv=Al?function(t){return t==null?[]:(t=Object(t),yv(Al(t),function(e){return wv.call(t,e)}))}:vv,Ev=Sv;function Cv(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var Tv=Cv;function Nv(t){return t!=null&&typeof t=="object"}var xi=Nv,Av=gi,Ov=xi,jv="[object Arguments]";function Rv(t){return Ov(t)&&Av(t)==jv}var Pv=Rv,Ol=Pv,_v=xi,Yd=Object.prototype,kv=Yd.hasOwnProperty,Iv=Yd.propertyIsEnumerable,Dv=Ol(function(){return arguments}())?Ol:function(t){return _v(t)&&kv.call(t,"callee")&&!Iv.call(t,"callee")},Lv=Dv,Mo={exports:{}};function Mv(){return!1}var $v=Mv;Mo.exports;(function(t,e){var r=pt,n=$v,o=e&&!e.nodeType&&e,i=o&&!0&&t&&!t.nodeType&&t,a=i&&i.exports===o,s=a?r.Buffer:void 0,u=s?s.isBuffer:void 0,l=u||n;t.exports=l})(Mo,Mo.exports);var Xd=Mo.exports,Bv=9007199254740991,Fv=/^(?:0|[1-9]\d*)$/;function Hv(t,e){var r=typeof t;return e=e??Bv,!!e&&(r=="number"||r!="symbol"&&Fv.test(t))&&t>-1&&t%1==0&&t<e}var qv=Hv,zv=9007199254740991;function Uv(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=zv}var Kd=Uv,Vv=gi,Wv=Kd,Gv=xi,Yv="[object Arguments]",Xv="[object Array]",Kv="[object Boolean]",Jv="[object Date]",Zv="[object Error]",Qv="[object Function]",ex="[object Map]",tx="[object Number]",rx="[object Object]",nx="[object RegExp]",ox="[object Set]",ix="[object String]",ax="[object WeakMap]",sx="[object ArrayBuffer]",ux="[object DataView]",lx="[object Float32Array]",cx="[object Float64Array]",dx="[object Int8Array]",fx="[object Int16Array]",px="[object Int32Array]",hx="[object Uint8Array]",mx="[object Uint8ClampedArray]",bx="[object Uint16Array]",gx="[object Uint32Array]",ce={};ce[lx]=ce[cx]=ce[dx]=ce[fx]=ce[px]=ce[hx]=ce[mx]=ce[bx]=ce[gx]=!0;ce[Yv]=ce[Xv]=ce[sx]=ce[Kv]=ce[ux]=ce[Jv]=ce[Zv]=ce[Qv]=ce[ex]=ce[tx]=ce[rx]=ce[nx]=ce[ox]=ce[ix]=ce[ax]=!1;function yx(t){return Gv(t)&&Wv(t.length)&&!!ce[Vv(t)]}var vx=yx;function xx(t){return function(e){return t(e)}}var wx=xx,$o={exports:{}};$o.exports;(function(t,e){var r=qd,n=e&&!e.nodeType&&e,o=n&&!0&&t&&!t.nodeType&&t,i=o&&o.exports===n,a=i&&r.process,s=function(){try{var u=o&&o.require&&o.require("util").types;return u||a&&a.binding&&a.binding("util")}catch{}}();t.exports=s})($o,$o.exports);var Vs=$o.exports,Sx=vx,Ex=wx,jl=Vs,Rl=jl&&jl.isTypedArray,Cx=Rl?Ex(Rl):Sx,Jd=Cx,Tx=Tv,Nx=Lv,Ax=Us,Ox=Xd,jx=qv,Rx=Jd,Px=Object.prototype,_x=Px.hasOwnProperty;function kx(t,e){var r=Ax(t),n=!r&&Nx(t),o=!r&&!n&&Ox(t),i=!r&&!n&&!o&&Rx(t),a=r||n||o||i,s=a?Tx(t.length,String):[],u=s.length;for(var l in t)(e||_x.call(t,l))&&!(a&&(l=="length"||o&&(l=="offset"||l=="parent")||i&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||jx(l,u)))&&s.push(l);return s}var Ix=kx,Dx=Object.prototype;function Lx(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||Dx;return t===r}var Mx=Lx;function $x(t,e){return function(r){return t(e(r))}}var Bx=$x,Fx=Bx,Hx=Fx(Object.keys,Object),qx=Hx,zx=Mx,Ux=qx,Vx=Object.prototype,Wx=Vx.hasOwnProperty;function Gx(t){if(!zx(t))return Ux(t);var e=[];for(var r in Object(t))Wx.call(t,r)&&r!="constructor"&&e.push(r);return e}var Yx=Gx,Xx=qs,Kx=Kd;function Jx(t){return t!=null&&Kx(t.length)&&!Xx(t)}var Zx=Jx,Qx=Ix,e2=Yx,t2=Zx;function r2(t){return t2(t)?Qx(t):e2(t)}var n2=r2,o2=pv,i2=Ev,a2=n2;function s2(t){return o2(t,a2,i2)}var u2=s2,Pl=u2,l2=1,c2=Object.prototype,d2=c2.hasOwnProperty;function f2(t,e,r,n,o,i){var a=r&l2,s=Pl(t),u=s.length,l=Pl(e),c=l.length;if(u!=c&&!a)return!1;for(var h=u;h--;){var f=s[h];if(!(a?f in e:d2.call(e,f)))return!1}var d=i.get(t),b=i.get(e);if(d&&b)return d==e&&b==t;var g=!0;i.set(t,e),i.set(e,t);for(var m=a;++h<u;){f=s[h];var y=t[f],x=e[f];if(n)var S=a?n(x,y,f,e,t,i):n(y,x,f,t,e,i);if(!(S===void 0?y===x||o(y,x,r,n,i):S)){g=!1;break}m||(m=f=="constructor")}if(g&&!m){var E=t.constructor,A=e.constructor;E!=A&&"constructor"in t&&"constructor"in e&&!(typeof E=="function"&&E instanceof E&&typeof A=="function"&&A instanceof A)&&(g=!1)}return i.delete(t),i.delete(e),g}var p2=f2,h2=dr,m2=pt,b2=h2(m2,"DataView"),g2=b2,y2=dr,v2=pt,x2=y2(v2,"Promise"),w2=x2,S2=dr,E2=pt,C2=S2(E2,"Set"),T2=C2,N2=dr,A2=pt,O2=N2(A2,"WeakMap"),j2=O2,Oa=g2,ja=zs,Ra=w2,Pa=T2,_a=j2,Zd=gi,Yr=Vd,_l="[object Map]",R2="[object Object]",kl="[object Promise]",Il="[object Set]",Dl="[object WeakMap]",Ll="[object DataView]",P2=Yr(Oa),_2=Yr(ja),k2=Yr(Ra),I2=Yr(Pa),D2=Yr(_a),er=Zd;(Oa&&er(new Oa(new ArrayBuffer(1)))!=Ll||ja&&er(new ja)!=_l||Ra&&er(Ra.resolve())!=kl||Pa&&er(new Pa)!=Il||_a&&er(new _a)!=Dl)&&(er=function(t){var e=Zd(t),r=e==R2?t.constructor:void 0,n=r?Yr(r):"";if(n)switch(n){case P2:return Ll;case _2:return _l;case k2:return kl;case I2:return Il;case D2:return Dl}return e});var L2=er,aa=my,M2=Gd,$2=av,B2=p2,Ml=L2,$l=Us,Bl=Xd,F2=Jd,H2=1,Fl="[object Arguments]",Hl="[object Array]",io="[object Object]",q2=Object.prototype,ql=q2.hasOwnProperty;function z2(t,e,r,n,o,i){var a=$l(t),s=$l(e),u=a?Hl:Ml(t),l=s?Hl:Ml(e);u=u==Fl?io:u,l=l==Fl?io:l;var c=u==io,h=l==io,f=u==l;if(f&&Bl(t)){if(!Bl(e))return!1;a=!0,c=!1}if(f&&!c)return i||(i=new aa),a||F2(t)?M2(t,e,r,n,o,i):$2(t,e,u,r,n,o,i);if(!(r&H2)){var d=c&&ql.call(t,"__wrapped__"),b=h&&ql.call(e,"__wrapped__");if(d||b){var g=d?t.value():t,m=b?e.value():e;return i||(i=new aa),o(g,m,r,n,i)}}return f?(i||(i=new aa),B2(t,e,r,n,o,i)):!1}var U2=z2,V2=U2,zl=xi;function Qd(t,e,r,n,o){return t===e?!0:t==null||e==null||!zl(t)&&!zl(e)?t!==t&&e!==e:V2(t,e,r,n,Qd,o)}var W2=Qd,G2=W2;function Y2(t,e,r){r=typeof r=="function"?r:void 0;var n=r?r(t,e):void 0;return n===void 0?G2(t,e,void 0,r):!!n}var X2=Y2;const K2=pi(X2);var J2=function(e,r,n,o){var i=n?n.call(o,e,r):void 0;if(i!==void 0)return!!i;if(e===r)return!0;if(typeof e!="object"||!e||typeof r!="object"||!r)return!1;var a=Object.keys(e),s=Object.keys(r);if(a.length!==s.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(r),l=0;l<a.length;l++){var c=a[l];if(!u(c))return!1;var h=e[c],f=r[c];if(i=n?n.call(o,h,f,c):void 0,i===!1||i===void 0&&h!==f)return!1}return!0};const Z2=pi(J2);let Q2=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((e,r)=>(r&=63,r<36?e+=r.toString(36):r<62?e+=(r-26).toString(36).toUpperCase():r>62?e+="-":e+="_",e),"");var ew=process.env.NODE_ENV==="production",sa="Invariant failed";function ue(t,e){if(!t){if(ew)throw new Error(sa);var r=typeof e=="function"?e():e,n=r?"".concat(sa,": ").concat(r):sa;throw new Error(n)}}typeof window<"u"&&(window.__CRAFTJS__||(window.__CRAFTJS__={}),window.__CRAFTJS__["@craftjs/utils"]="0.2.5");var Nt="ROOT",ef="canvas-ROOT",tw="Parent id cannot be ommited",rw="Attempting to add a node with duplicated id",tf="Node does not exist, it may have been removed",nw='A <Element /> that is used inside a User Component must specify an `id` prop, eg: <Element id="text_element">...</Element> ',ow="Node cannot be dropped into target parent",iw="Target parent rejects incoming node",aw="Current parent rejects outgoing node",Ul="Cannot move node that is not a direct child of a Canvas node",sw="Cannot move node into a non-Canvas parent",Vl="A top-level Node cannot be moved",uw="Cannot move node into a descendant",Bo="The component type specified for this node (%node_type%) does not exist in the resolver",lw="The node has specified a canDrag() rule that prevents it from being dragged",cw="Invalid parameter Node Id specified",dw="Attempting to delete a top-level Node",fw=`Resolver in <Editor /> has to be an object. For (de)serialization Craft.js needs a list of all the User Components.
|
|
222
222
|
|
|
223
223
|
More info: https://craft.js.org/r/docs/api/editor#props`,pw=`An Error occurred while deserializing components: Cannot find component <%displayName% /> in resolver map. Please check your resolver in <Editor />
|
|
224
224
|
|
|
@@ -276,7 +276,7 @@ vulnerable to XSS attacks. Please remove it from \`allowedTags\`.
|
|
|
276
276
|
Or, to disable this warning, add the \`allowVulnerableTags\` option
|
|
277
277
|
and ensure you are accounting for this risk.
|
|
278
278
|
|
|
279
|
-
`)});const s=e.nonTextTags||["script","style","textarea","option"];let u,l;e.allowedAttributes&&(u={},l={},Cr(e.allowedAttributes,function(N,O){u[O]=[];const P=[];N.forEach(function(D){typeof D=="string"&&D.indexOf("*")>=0?P.push(Wc(D).replace(/\\\*/g,".*")):u[O].push(D)}),P.length&&(l[O]=new RegExp("^("+P.join("|")+")$"))}));const c={},h={},f={};Cr(e.allowedClasses,function(N,O){if(u&&(St(u,O)||(u[O]=[]),u[O].push("class")),c[O]=N,Array.isArray(N)){const P=[];c[O]=[],f[O]=[],N.forEach(function(D){typeof D=="string"&&D.indexOf("*")>=0?P.push(Wc(D).replace(/\\\*/g,".*")):D instanceof RegExp?f[O].push(D):c[O].push(D)}),P.length&&(h[O]=new RegExp("^("+P.join("|")+")$"))}});const d={};let b;Cr(e.transformTags,function(N,O){let P;typeof N=="function"?P=N:typeof N=="string"&&(P=$n.simpleTransform(N)),O==="*"?b=P:d[O]=P});let g,m,y,x,S,E,A=!1;_();const R=new L5.Parser({onopentag:function(N,O){if(e.onOpenTag&&e.onOpenTag(N,O),e.enforceHtmlBoundary&&N==="html"&&_(),S){E++;return}const P=new i(N,O);m.push(P);let D=!1;const $=!!P.text;let z;if(St(d,N)&&(z=d[N](N,O),P.attribs=O=z.attribs,z.text!==void 0&&(P.innerText=z.text),N!==z.tagName&&(P.name=N=z.tagName,x[g]=z.tagName)),b&&(z=b(N,O),P.attribs=O=z.attribs,N!==z.tagName&&(P.name=N=z.tagName,x[g]=z.tagName)),(!a(N)||e.disallowedTagsMode==="recursiveEscape"&&!q5(y)||e.nestingLimit!=null&&g>=e.nestingLimit)&&(D=!0,y[g]=!0,(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&s.indexOf(N)!==-1&&(S=!0,E=1)),g++,D){if(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){if(P.innerText&&!$){const H=L(P.innerText);e.textFilter?n+=e.textFilter(H,N):n+=H,A=!0}return}o=n,n=""}n+="<"+N,N==="script"&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(P.innerText=""),D&&(e.disallowedTagsMode==="escape"||e.disallowedTagsMode==="recursiveEscape")&&e.preserveEscapedAttributes?Cr(O,function(H,F){n+=" "+F+'="'+L(H||"",!0)+'"'}):(!u||St(u,N)||u["*"])&&Cr(O,function(H,F){if(!V5.test(F)){delete P.attribs[F];return}if(H===""&&!e.allowedEmptyAttributes.includes(F)&&(e.nonBooleanAttributes.includes(F)||e.nonBooleanAttributes.includes("*"))){delete P.attribs[F];return}let he=!1;if(!u||St(u,N)&&u[N].indexOf(F)!==-1||u["*"]&&u["*"].indexOf(F)!==-1||St(l,N)&&l[N].test(F)||l["*"]&&l["*"].test(F))he=!0;else if(u&&u[N]){for(const J of u[N])if(M5(J)&&J.name&&J.name===F){he=!0;let q="";if(J.multiple===!0){const Re=H.split(" ");for(const Ee of Re)J.values.indexOf(Ee)!==-1&&(q===""?q=Ee:q+=" "+Ee)}else J.values.indexOf(H)>=0&&(q=H);H=q}}if(he){if(e.allowedSchemesAppliedToAttributes.indexOf(F)!==-1&&B(N,H)){delete P.attribs[F];return}if(N==="script"&&F==="src"){let J=!0;try{const q=M(H);if(e.allowedScriptHostnames||e.allowedScriptDomains){const Re=(e.allowedScriptHostnames||[]).find(function(xe){return xe===q.url.hostname}),Ee=(e.allowedScriptDomains||[]).find(function(xe){return q.url.hostname===xe||q.url.hostname.endsWith(`.${xe}`)});J=Re||Ee}}catch{J=!1}if(!J){delete P.attribs[F];return}}if(N==="iframe"&&F==="src"){let J=!0;try{const q=M(H);if(q.isRelativeUrl)J=St(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const Re=(e.allowedIframeHostnames||[]).find(function(xe){return xe===q.url.hostname}),Ee=(e.allowedIframeDomains||[]).find(function(xe){return q.url.hostname===xe||q.url.hostname.endsWith(`.${xe}`)});J=Re||Ee}}catch{J=!1}if(!J){delete P.attribs[F];return}}if(F==="srcset")try{let J=$5(H);if(J.forEach(function(q){B("srcset",q.url)&&(q.evil=!0)}),J=Yc(J,function(q){return!q.evil}),J.length)H=z5(Yc(J,function(q){return!q.evil})),P.attribs[F]=H;else{delete P.attribs[F];return}}catch{delete P.attribs[F];return}if(F==="class"){const J=c[N],q=c["*"],Re=h[N],Ee=f[N],xe=f["*"],tt=h["*"],yt=[Re,tt].concat(Ee,xe).filter(function(rt){return rt});if(J&&q?H=I(H,Gc(J,q),yt):H=I(H,J||q,yt),!H.length){delete P.attribs[F];return}}if(F==="style"){if(e.parseStyleAttributes)try{const J=B5(N+" {"+H+"}",{map:!1}),q=C(J,e.allowedStyles);if(H=T(q),H.length===0){delete P.attribs[F];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+N+" {"+H+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete P.attribs[F];return}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}n+=" "+F,H&&H.length?n+='="'+L(H,!0)+'"':e.allowedEmptyAttributes.includes(F)&&(n+='=""')}else delete P.attribs[F]}),e.selfClosing.indexOf(N)!==-1?n+=" />":(n+=">",P.innerText&&!$&&!e.textFilter&&(n+=L(P.innerText),A=!0)),D&&(n=o+L(n),o=""),P.openingTagLength=n.length-P.tagPosition},ontext:function(N){if(S)return;const O=m[m.length-1];let P;if(O&&(P=O.tag,N=O.innerText!==void 0?O.innerText:N),e.disallowedTagsMode==="completelyDiscard"&&!a(P))N="";else if((e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&(P==="script"||P==="style"))n+=N;else if(!A){const D=L(N,!1);e.textFilter?n+=e.textFilter(D,P):n+=D}if(m.length){const D=m[m.length-1];D.text+=N}},onclosetag:function(N,O){if(e.onCloseTag&&e.onCloseTag(N,O),S)if(E--,!E)S=!1;else return;const P=m.pop();if(!P)return;if(P.tag!==N){m.push(P);return}S=e.enforceHtmlBoundary?N==="html":!1,g--;const D=y[g];if(D){if(delete y[g],e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){P.updateParentNodeText();return}o=n,n=""}if(x[g]&&(N=x[g],delete x[g]),e.exclusiveFilter){const $=e.exclusiveFilter(P);if($==="excludeTag"){D&&(n=o,o=""),n=n.substring(0,P.tagPosition)+n.substring(P.tagPosition+P.openingTagLength);return}else if($){n=n.substring(0,P.tagPosition);return}}if(P.updateParentNodeMediaChildren(),P.updateParentNodeText(),e.selfClosing.indexOf(N)!==-1||O&&!a(N)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0){D&&(n=o,o="");return}n+="</"+N+">",D&&(n=o+L(n),o=""),A=!1}},e.parser);return R.write(t),R.end(),n;function _(){n="",g=0,m=[],y={},x={},S=!1,E=0}function L(N,O){return typeof N!="string"&&(N=N+""),e.parser.decodeEntities&&(N=N.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),O&&(N=N.replace(/"/g,"""))),N=N.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(/</g,"<").replace(/>/g,">"),O&&(N=N.replace(/"/g,""")),N}function B(N,O){for(O=O.replace(/[\x00-\x20]+/g,"");;){const $=O.indexOf("<!--");if($===-1)break;const z=O.indexOf("-->",$+4);if(z===-1)break;O=O.substring(0,$)+O.substring(z+3)}const P=O.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!P)return O.match(/^[/\\]{2}/)?!e.allowProtocolRelative:!1;const D=P[1].toLowerCase();return St(e.allowedSchemesByTag,N)?e.allowedSchemesByTag[N].indexOf(D)===-1:!e.allowedSchemes||e.allowedSchemes.indexOf(D)===-1}function M(N){if(N=N.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),N.startsWith("relative:"))throw new Error("relative: exploit attempt");let O="relative://relative-site";for(let $=0;$<100;$++)O+=`/${$}`;const P=new URL(N,O);return{isRelativeUrl:P&&P.hostname==="relative-site"&&P.protocol==="relative:",url:P}}function C(N,O){if(!O)return N;const P=N.nodes[0];let D;return O[P.selector]&&O["*"]?D=Gc(O[P.selector],O["*"]):D=O[P.selector]||O["*"],D&&(N.nodes[0].nodes=P.nodes.reduce(k(D),[])),N}function T(N){return N.nodes[0].nodes.reduce(function(O,P){return O.push(`${P.prop}:${P.value}${P.important?" !important":""}`),O},[]).join(";")}function k(N){return function(O,P){return St(N,P.prop)&&N[P.prop].some(function($){return $.test(P.value)})&&O.push(P),O}}function I(N,O,P){return O?(N=N.split(/\s+/),N.filter(function(D){return O.indexOf(D)!==-1||P.some(function($){return $.test(D)})}).join(" ")):N}}const W5={decodeEntities:!0};$n.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","menu","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0,preserveEscapedAttributes:!1};$n.simpleTransform=function(t,e,r){return r=r===void 0?!0:r,e=e||{},function(n,o){let i;if(r)for(i in e)o[i]=e[i];else o=e;return{tagName:t,attribs:o}}};const vp=pi(U5),G5=[{command:"bold",icon:Pm,label:"Bold"},{command:"italic",icon:$m,label:"Italic"},{command:"underline",icon:Ym,label:"Underline"},{command:"strikeThrough",icon:Wm,label:"Strikethrough"},{command:"insertUnorderedList",icon:Fm,label:"Bullet List"},{command:"insertOrderedList",icon:Bm,label:"Numbered List"}],Y5={allowedTags:["b","i","u","s","strong","em","ul","ol","li","br","p","a","span"],allowedAttributes:{a:["href","target"],span:["style"]},allowedStyles:{span:{"text-decoration":[/^line-through$/]}}},X5=({label:t,value:e,onChange:r})=>{const n=w.useRef(null),[o,i]=w.useState(!1),[a,s]=w.useState(""),u=w.useRef(null);w.useEffect(()=>{n.current&&n.current.innerHTML!==e&&(n.current.innerHTML=e||"")},[]);const l=m=>{var y;document.execCommand(m,!1,null),(y=n.current)==null||y.focus(),c()},c=()=>{if(n.current){const m=n.current.innerHTML,y=vp(m,Y5);r(y)}},h=()=>{const m=window.getSelection();m&&m.rangeCount>0&&(u.current=m.getRangeAt(0))},f=()=>{if(u.current){const m=window.getSelection();m==null||m.removeAllRanges(),m==null||m.addRange(u.current)}},d=()=>{h(),i(!0)},b=()=>{var m;if(a){f();let y=a.trim();y&&!y.match(/^https?:\/\//i)&&(y="https://"+y);try{new URL(y),document.execCommand("createLink",!1,y),c()}catch{}}i(!1),s(""),(m=n.current)==null||m.focus()},g=m=>{try{return document.queryCommandState(m)}catch{return!1}};return p.jsxs("div",{className:"space-y-1.5",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),p.jsx("div",{className:"flex items-center gap-0.5 p-1 bg-muted rounded-t border border-input border-b-0",children:p.jsxs(jn,{children:[G5.map(({command:m,icon:y,label:x})=>p.jsxs(Ir,{children:[p.jsx(Dr,{asChild:!0,children:p.jsx("button",{type:"button",onMouseDown:S=>{S.preventDefault(),l(m)},className:`p-1.5 rounded hover:bg-background transition-colors ${g(m)?"bg-background text-primary":"text-muted-foreground"}`,children:p.jsx(y,{className:"h-3.5 w-3.5"})})}),p.jsx(sr,{side:"top",children:p.jsx("p",{children:x})})]},m)),p.jsx("div",{className:"w-px h-4 bg-border mx-1"}),p.jsxs(Ir,{children:[p.jsx(Dr,{asChild:!0,children:p.jsx("button",{type:"button",onMouseDown:m=>{m.preventDefault(),d()},className:"p-1.5 rounded hover:bg-background transition-colors text-muted-foreground",children:p.jsx(Ps,{className:"h-3.5 w-3.5"})})}),p.jsx(sr,{side:"top",children:p.jsx("p",{children:"Insert Link"})})]})]})}),p.jsx("div",{ref:n,contentEditable:!0,onInput:c,onBlur:c,className:"min-h-[80px] max-h-[200px] overflow-y-auto p-2 text-xs rounded-b border border-input bg-background focus:outline-none focus:ring-1 focus:ring-ring prose prose-sm max-w-none [&_ul]:list-disc [&_ul]:pl-4 [&_ol]:list-decimal [&_ol]:pl-4 [&_a]:text-primary [&_a]:underline",style:{wordBreak:"break-word"}}),o&&p.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",children:p.jsxs("div",{className:"bg-background p-4 rounded-lg shadow-lg w-80 space-y-3",children:[p.jsx("h4",{className:"text-sm font-medium",children:"Insert Link"}),p.jsx("input",{type:"url",value:a,onChange:m=>s(m.target.value),placeholder:"https://example.com",className:"w-full px-3 py-2 text-sm rounded border border-input bg-background",autoFocus:!0,onKeyDown:m=>{m.key==="Enter"&&(m.preventDefault(),b()),m.key==="Escape"&&(i(!1),s(""))}}),p.jsxs("div",{className:"flex justify-end gap-2",children:[p.jsx("button",{onClick:()=>{i(!1),s("")},className:"px-3 py-1.5 text-xs rounded border border-input hover:bg-muted",children:"Cancel"}),p.jsx("button",{onClick:b,className:"px-3 py-1.5 text-xs rounded bg-primary text-primary-foreground hover:bg-primary/90",children:"Insert"})]})]})})]})},K5={allowedTags:["b","i","u","s","strong","em","ul","ol","li","br","p","a","span"],allowedAttributes:{a:["href","target"],span:["style"]},allowedStyles:{span:{"text-decoration":[/^line-through$/]}}},Ru=({text:t="",html:e,fontSize:r={desktop:16},fontWeight:n="400",fontFamily:o="inherit",lineHeight:i={desktop:150},letterSpacing:a={desktop:0},textAlign:s="left",color:u="#000000",margin:l={top:0,right:0,bottom:0,left:0},textDecoration:c="none",textTransform:h="none",opacity:f=100})=>{const d=Ae(),b=Bn();let g,m,y;try{const{connectors:L,events:B}=se(M=>({events:M.events}));g=L.connect,m=L.drag,y=B.selected}catch{}const x=Ko(t,b),S=typeof ee(l,d)=="object"?`${ee(l,d).top}px ${ee(l,d).right}px ${ee(l,d).bottom}px ${ee(l,d).left}px`:`${ee(l,d)}px`,E=Tt(r,d,16),A=Tt(i,d,150)/100,R=Tt(a,d,0),_=/<[^>]+>/.test(x);return p.jsx("div",{ref:L=>L&&g&&m&&g(m(L)),className:`cursor-move ${y?"outline outline-blue-500":""}`,style:{fontSize:`${E}px`,fontWeight:n,fontFamily:o,lineHeight:A,letterSpacing:`${R}px`,textAlign:s,color:u,margin:S,textDecoration:c,textTransform:h,opacity:f/100},children:e||_?p.jsx("div",{dangerouslySetInnerHTML:{__html:vp(Ko(e||x,b),K5)},className:"[&_ul]:list-disc [&_ul]:pl-4 [&_ol]:list-decimal [&_ol]:pl-4 [&_a]:text-primary [&_a]:underline"}):x})},J5=()=>{const{actions:{setProp:t},props:e}=se(n=>({props:n.data.props})),r=typeof e.margin=="object"&&!("desktop"in e.margin)?e.margin:{top:0,right:0,bottom:0,left:0};return p.jsxs("div",{className:"space-y-3",children:[p.jsx(G,{title:"Content",defaultOpen:!0,children:p.jsx(X5,{label:"Text",value:e.html??e.text,onChange:n=>t(o=>{o.html=null,o.text=n})})}),p.jsxs(G,{title:"Typography",defaultOpen:!0,children:[p.jsx(te,{label:"Font",value:e.fontFamily||"inherit",options:[{value:"inherit",label:"Default"},{value:"Inter, sans-serif",label:"Inter"},{value:"Georgia, serif",label:"Georgia"},{value:"Menlo, monospace",label:"Mono"},{value:"system-ui",label:"System"}],onChange:n=>t(o=>o.fontFamily=n)}),p.jsx(Yo,{label:"Size",values:e.fontSize,onChange:n=>t(o=>o.fontSize=n),min:8,max:120,defaultValue:16}),p.jsx(te,{label:"Weight",value:e.fontWeight||"400",options:[{value:"300",label:"Light"},{value:"400",label:"Regular"},{value:"500",label:"Medium"},{value:"600",label:"Semibold"},{value:"700",label:"Bold"},{value:"800",label:"Extra Bold"}],onChange:n=>t(o=>o.fontWeight=n)}),p.jsx(Xo,{label:"Line Height",values:e.lineHeight,onChange:n=>t(o=>o.lineHeight=n),min:80,max:250,unit:"%",defaultValue:150}),p.jsx(Yo,{label:"Letter Spacing",values:e.letterSpacing,onChange:n=>t(o=>o.letterSpacing=n),min:-5,max:20,defaultValue:0}),p.jsx(At,{label:"Alignment",value:e.textAlign||"left",options:[{value:"left",label:p.jsx(Ns,{className:"h-3 w-3"})},{value:"center",label:p.jsx(Ts,{className:"h-3 w-3"})},{value:"right",label:p.jsx(As,{className:"h-3 w-3"})}],onChange:n=>t(o=>o.textAlign=n)}),p.jsx(te,{label:"Transform",value:e.textTransform||"none",options:[{value:"none",label:"None"},{value:"uppercase",label:"UPPERCASE"},{value:"lowercase",label:"lowercase"},{value:"capitalize",label:"Capitalize"}],onChange:n=>t(o=>o.textTransform=n)}),p.jsx(te,{label:"Decoration",value:e.textDecoration||"none",options:[{value:"none",label:"None"},{value:"underline",label:"Underline"},{value:"line-through",label:"Strikethrough"}],onChange:n=>t(o=>o.textDecoration=n)})]}),p.jsxs(G,{title:"Color",defaultOpen:!1,children:[p.jsx(ut,{label:"Text Color",value:e.color||"#000000",onChange:n=>t(o=>o.color=n)}),p.jsx(Xo,{label:"Opacity",values:e.opacity,onChange:n=>t(o=>o.opacity=n),min:0,max:100,unit:"%",defaultValue:100})]}),p.jsx(G,{title:"Spacing",defaultOpen:!1,children:p.jsx(Ue,{label:"Margin",values:r,onChange:n=>t(o=>o.margin={...o.margin,...n})})}),p.jsx(G,{title:"Dynamic Data",defaultOpen:!1,children:p.jsx(s0,{})})]})};Ru.craft={displayName:"Text",props:{text:"Edit me",fontSize:{desktop:16},fontWeight:"400",fontFamily:"inherit",lineHeight:{desktop:150},letterSpacing:{desktop:0},textAlign:"left",color:"#000000",margin:{desktop:{top:0,right:0,bottom:0,left:0}},textDecoration:"none",textTransform:"none",opacity:{desktop:100}},related:{settings:J5}};const xn={1:{desktop:48,small:42,tablet:36,mobile:28},2:{desktop:36,small:32,tablet:28,mobile:24},3:{desktop:28,small:26,tablet:24,mobile:20},4:{desktop:22,small:20,tablet:18,mobile:16}},Pu=({text:t="Heading",level:e=2,textAlign:r="left",color:n="#000000",fontWeight:o="700",fontFamily:i="inherit",fontSize:a="auto",lineHeight:s={desktop:120},letterSpacing:u={desktop:-.5},margin:l={top:0,right:0,bottom:16,left:0},textTransform:c="none",opacity:h={desktop:100}})=>{var L,B,M;const f=Ae(),d=Bn();let b,g,m;try{const{connectors:C,events:T}=se(k=>({events:k.events}));b=C.connect,g=C.drag,m=T.selected}catch{}const y=Ko(t,d),x=`h${e}`;let S;a==="auto"?S=((L=xn[e])==null?void 0:L[f])||((B=xn[e])==null?void 0:B.desktop)||36:S=Tt(a,f,((M=xn[e])==null?void 0:M.desktop)||36);const E=Tt(s,f,120)/100,A=Tt(u,f,-.5),R=Tt(h,f,100),_=typeof ee(l,f)=="object"?`${ee(l,f).top}px ${ee(l,f).right}px ${ee(l,f).bottom}px ${ee(l,f).left}px`:`${ee(l,f)}px`;return p.jsx(x,{ref:C=>C&&b&&g&&b(g(C)),className:`cursor-move ${m?"outline outline-blue-500":""}`,style:{textAlign:r,color:n,fontWeight:o,fontFamily:i,fontSize:`${S}px`,lineHeight:E,letterSpacing:`${A}px`,margin:_,textTransform:c,opacity:R/100},children:y})},Z5=()=>{var i;const t=Ae(),{actions:{setProp:e},props:r}=se(a=>({props:a.data.props})),n=typeof r.margin=="object"&&!("desktop"in r.margin)?r.margin:{top:0,right:0,bottom:16,left:0},o=()=>{var a;return r.fontSize==="auto"?((a=xn[r.level||2])==null?void 0:a[t])||36:Tt(r.fontSize,t,36)};return p.jsxs("div",{className:"space-y-3",children:[p.jsxs(G,{title:"Content",defaultOpen:!0,children:[p.jsx(Gt,{label:"Text",value:r.text,onChange:a=>e(s=>s.text=a)}),p.jsx(At,{label:"Level",value:r.level||2,options:[{value:1,label:"H1"},{value:2,label:"H2"},{value:3,label:"H3"},{value:4,label:"H4"}],onChange:a=>e(s=>{s.level=a,s.fontSize})})]}),p.jsxs(G,{title:"Typography",defaultOpen:!0,children:[p.jsx(te,{label:"Font",value:r.fontFamily||"inherit",options:[{value:"inherit",label:"Default"},{value:"Inter, sans-serif",label:"Inter"},{value:"Georgia, serif",label:"Georgia"},{value:"system-ui",label:"System"}],onChange:a=>e(s=>s.fontFamily=a)}),p.jsxs("div",{className:"space-y-1.5",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:"Size Mode"}),p.jsx("button",{onClick:()=>e(a=>a.fontSize=a.fontSize==="auto"?{desktop:o()}:"auto"),className:`text-xs px-2 py-0.5 rounded ${r.fontSize==="auto"?"bg-primary/10 text-primary":"text-muted-foreground"}`,children:r.fontSize==="auto"?"Auto (Responsive)":"Custom"})]}),r.fontSize!=="auto"&&p.jsx(Yo,{label:"Size",values:r.fontSize,onChange:a=>e(s=>s.fontSize=a),min:12,max:120,defaultValue:((i=xn[r.level||2])==null?void 0:i.desktop)||36})]}),p.jsx(te,{label:"Weight",value:r.fontWeight||"700",options:[{value:"400",label:"Regular"},{value:"500",label:"Medium"},{value:"600",label:"Semibold"},{value:"700",label:"Bold"},{value:"800",label:"Extra Bold"},{value:"900",label:"Black"}],onChange:a=>e(s=>s.fontWeight=a)}),p.jsx(Xo,{label:"Line Height",values:r.lineHeight,onChange:a=>e(s=>s.lineHeight=a),min:80,max:200,unit:"%",defaultValue:120}),p.jsx(Yo,{label:"Letter Spacing",values:r.letterSpacing,onChange:a=>e(s=>s.letterSpacing=a),min:-5,max:20,defaultValue:-.5}),p.jsx(At,{label:"Alignment",value:r.textAlign||"left",options:[{value:"left",label:p.jsx(Ns,{className:"h-3 w-3"})},{value:"center",label:p.jsx(Ts,{className:"h-3 w-3"})},{value:"right",label:p.jsx(As,{className:"h-3 w-3"})}],onChange:a=>e(s=>s.textAlign=a)}),p.jsx(te,{label:"Transform",value:r.textTransform||"none",options:[{value:"none",label:"None"},{value:"uppercase",label:"UPPERCASE"},{value:"lowercase",label:"lowercase"},{value:"capitalize",label:"Capitalize"}],onChange:a=>e(s=>s.textTransform=a)})]}),p.jsxs(G,{title:"Color",defaultOpen:!1,children:[p.jsx(ut,{label:"Text Color",value:r.color||"#000000",onChange:a=>e(s=>s.color=a)}),p.jsx(Xo,{label:"Opacity",values:r.opacity,onChange:a=>e(s=>s.opacity=a),min:0,max:100,unit:"%",defaultValue:100})]}),p.jsx(G,{title:"Spacing",defaultOpen:!1,children:p.jsx(Ue,{label:"Margin",values:n,onChange:a=>e(s=>s.margin={...s.margin,...a})})}),p.jsx(G,{title:"Dynamic Data",defaultOpen:!1,children:p.jsx(s0,{})})]})};Pu.craft={displayName:"Heading",props:{text:"Heading",level:2,textAlign:"left",color:"#000000",fontWeight:"700",fontFamily:"inherit",fontSize:"auto",lineHeight:{desktop:120},letterSpacing:{desktop:-.5},margin:{top:0,right:0,bottom:16,left:0},textTransform:"none",opacity:{desktop:100}},related:{settings:Z5}};const _u=({src:t="https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=800&h=400&fit=crop",alt:e="Image",width:r="full",height:n="auto",maxWidth:o="none",objectFit:i="cover",borderRadius:a=8,margin:s={top:0,right:0,bottom:0,left:0},opacity:u=100,boxShadow:l="none"})=>{const c=Ae();let h,f,d;try{const{connectors:g,events:m}=se(y=>({events:y.events}));h=g.connect,f=g.drag,d=m.selected}catch{}const b=typeof s[c]=="object"?`${s[c].top}px ${s[c].right}px ${s[c].bottom}px ${s[c].left}px`:`${s[c]}px`;return p.jsx("img",{ref:g=>g&&h&&f&&h(f(g)),src:t,alt:e,className:`cursor-move ${d?"outline outline-blue-500":""}`,style:{width:r==="full"?"100%":r==="auto"?"auto":`${r}px`,height:n==="auto"?"auto":`${n}px`,maxWidth:o==="none"?"none":`${o}px`,objectFit:i,borderRadius:`${a}px`,margin:b,opacity:u/100,boxShadow:l==="none"?"none":l,display:"block"}})},Q5=()=>{const{actions:{setProp:t},props:e}=se(n=>({props:n.data.props})),r=typeof e.margin=="object"?e.margin:{top:0,right:0,bottom:0,left:0};return p.jsxs("div",{className:"space-y-3",children:[p.jsxs(G,{title:"Source",defaultOpen:!0,children:[p.jsx(Gt,{label:"Image URL",value:e.src,onChange:n=>t(o=>o.src=n)}),p.jsx(Gt,{label:"Alt Text",value:e.alt,onChange:n=>t(o=>o.alt=n)})]}),p.jsxs(G,{title:"Size",defaultOpen:!0,children:[p.jsx(te,{label:"Width",value:typeof e.width=="number"?"custom":e.width,options:[{value:"full",label:"Full Width"},{value:"auto",label:"Auto"},{value:"custom",label:"Custom"}],onChange:n=>t(o=>o.width=n==="custom"?300:n)}),typeof e.width=="number"&&p.jsx(ge,{unit:"px",label:"Width (px)",value:e.width,onChange:n=>t(o=>o.width=n),max:1200}),p.jsx(te,{label:"Height",value:typeof e.height=="number"?"custom":e.height,options:[{value:"auto",label:"Auto"},{value:"custom",label:"Custom"}],onChange:n=>t(o=>o.height=n==="custom"?200:n)}),typeof e.height=="number"&&p.jsx(ge,{unit:"px",label:"Height (px)",value:e.height,onChange:n=>t(o=>o.height=n),max:800}),p.jsx(te,{label:"Object Fit",value:e.objectFit||"cover",options:[{value:"cover",label:"Cover"},{value:"contain",label:"Contain"},{value:"fill",label:"Fill"},{value:"none",label:"None"}],onChange:n=>t(o=>o.objectFit=n)})]}),p.jsxs(G,{title:"Style",defaultOpen:!1,children:[p.jsx(ge,{unit:"px",label:"Border Radius",value:e.borderRadius||8,onChange:n=>t(o=>o.borderRadius=n),max:100}),p.jsx(Pi,{label:"Opacity",value:e.opacity||100,onChange:n=>t(o=>o.opacity=n),min:0,max:100,unit:"%"}),p.jsx(te,{label:"Shadow",value:e.boxShadow||"none",options:[{value:"none",label:"None"},{value:"0 4px 12px rgba(0,0,0,0.1)",label:"Small"},{value:"0 8px 24px rgba(0,0,0,0.15)",label:"Medium"},{value:"0 16px 48px rgba(0,0,0,0.2)",label:"Large"}],onChange:n=>t(o=>o.boxShadow=n)})]}),p.jsx(G,{title:"Spacing",defaultOpen:!1,children:p.jsx(Ue,{label:"Margin",values:r,onChange:n=>t(o=>o.margin={...o.margin,...n})})})]})};_u.craft={displayName:"Image",props:{src:"https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=800&h=400&fit=crop",alt:"Image",width:"full",height:"auto",maxWidth:"none",objectFit:"cover",borderRadius:8,margin:{desktop:{top:0,right:0,bottom:0,left:0}},opacity:100,boxShadow:"none"},related:{settings:Q5}};const ku=({color:t="#e5e5e5",height:e=1,width:r="full",style:n="solid",margin:o={top:16,right:0,bottom:16,left:0},opacity:i=100})=>{const a=Ae();let s,u,l;try{const{connectors:h,events:f}=se(d=>({events:d.events}));s=h.connect,u=h.drag,l=f.selected}catch{}const c=typeof o[a]=="object"?`${o[a].top}px ${o[a].right}px ${o[a].bottom}px ${o[a].left}px`:`${o[a]}px`;return p.jsx("hr",{ref:h=>h&&s&&u&&(s==null?void 0:s(u==null?void 0:u(h))),className:`cursor-move border-0 ${l?"ring-2 ring-primary ring-offset-2":""}`,style:{width:r==="full"?"100%":`${r}%`,height:`${e}px`,backgroundColor:t,margin:c,opacity:i/100,borderStyle:n,borderWidth:n==="solid"?0:`${e}px`,borderColor:t}})},e8=()=>{const{actions:{setProp:t},props:e}=se(n=>({props:n.data.props})),r=typeof e.margin=="object"?e.margin:{top:16,right:0,bottom:16,left:0};return p.jsxs("div",{className:"space-y-3",children:[p.jsxs(G,{title:"Style",defaultOpen:!0,children:[p.jsx(te,{label:"Style",value:e.style||"solid",options:[{value:"solid",label:"Solid"},{value:"dashed",label:"Dashed"},{value:"dotted",label:"Dotted"}],onChange:n=>t(o=>o.style=n)}),p.jsx(ut,{label:"Color",value:e.color||"#e5e5e5",onChange:n=>t(o=>o.color=n)}),p.jsx(ge,{unit:"px",label:"Thickness",value:e.height||1,onChange:n=>t(o=>o.height=n),min:1,max:20}),p.jsx(te,{label:"Width",value:e.width==="full"?"full":"custom",options:[{value:"full",label:"Full Width"},{value:"custom",label:"Custom %"}],onChange:n=>t(o=>o.width=n==="full"?"full":50)}),e.width!=="full"&&p.jsx(ge,{label:"Width %",value:e.width,onChange:n=>t(o=>o.width=n),min:10,max:100,unit:"%"})]}),p.jsx(G,{title:"Spacing",defaultOpen:!0,children:p.jsx(Ue,{label:"Margin",values:r,onChange:n=>t(o=>o.margin={...o.margin,...n})})})]})};ku.craft={displayName:"Divider",props:{color:"#e5e5e5",height:1,width:"full",style:"solid",margin:{top:16,right:0,bottom:16,left:0},opacity:100},related:{settings:e8}};const Iu=({height:t=40,responsive:e=!1,mobileHeight:r=20})=>{let n,o,i;try{const{connectors:a,events:s}=se(u=>({events:u.events}));n=a.connect,o=a.drag,i=s.selected}catch{}return p.jsxs("div",{ref:a=>a&&n&&o&&n(o(a)),className:`cursor-move w-full relative group ${i?"ring-2 ring-primary ring-offset-2":""}`,style:{height:`${t}px`},children:[p.jsx("div",{className:"absolute inset-0 flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity",children:p.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground bg-secondary/80 px-2 py-1 rounded",children:[p.jsx("span",{children:"↕"}),p.jsxs("span",{children:[t,"px"]})]})}),p.jsx("div",{className:"absolute inset-x-0 top-0 border-t border-dashed border-border/50 opacity-0 group-hover:opacity-100 transition-opacity"}),p.jsx("div",{className:"absolute inset-x-0 bottom-0 border-t border-dashed border-border/50 opacity-0 group-hover:opacity-100 transition-opacity"})]})},t8=()=>{const{actions:{setProp:t},props:e}=se(r=>({props:r.data.props}));return p.jsx("div",{className:"space-y-3",children:p.jsxs(G,{title:"Size",defaultOpen:!0,children:[p.jsx(te,{label:"Preset",value:"custom",options:[{value:"xs",label:"XS (8px)"},{value:"sm",label:"Small (16px)"},{value:"md",label:"Medium (32px)"},{value:"lg",label:"Large (64px)"},{value:"xl",label:"XL (96px)"},{value:"custom",label:"Custom"}],onChange:r=>{const n={xs:8,sm:16,md:32,lg:64,xl:96};n[r]&&t(o=>o.height=n[r])}}),p.jsx(ge,{unit:"px",label:"Height",value:e.height||40,onChange:r=>t(n=>n.height=r),min:4,max:300})]})})};Iu.craft={displayName:"Spacer",props:{height:40,responsive:!1,mobileHeight:20},related:{settings:t8}};const r8=window.location.href.includes("localhost")?"http://localhost:5000/api":"https://api.myracereel.com/api";function n8(){const t=localStorage.getItem("tokens");if(t){const{accessToken:e}=JSON.parse(t);return{"Content-Type":"application/json",Authorization:`Bearer ${e}`}}return{"Content-Type":"application/json"}}async function o8(t,e={}){const r=await fetch(`${r8}${t}`,{...e,headers:{...n8(),...e.headers}}),n=await r.json();if(!r.ok)throw new Error(n.message||"Request failed");return n}async function i8(t,e){return(await o8(`/videos/${t}/${e||""}`)).data}function a8(t){const e=v.useRef({value:t,previous:t});return v.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}var Hi="Checkbox",[s8]=pr(Hi),[u8,Du]=s8(Hi);function l8(t){const{__scopeCheckbox:e,checked:r,children:n,defaultChecked:o,disabled:i,form:a,name:s,onCheckedChange:u,required:l,value:c="on",internal_do_not_use_render:h}=t,[f,d]=Qr({prop:r,defaultProp:o??!1,onChange:u,caller:Hi}),[b,g]=v.useState(null),[m,y]=v.useState(null),x=v.useRef(!1),S=b?!!a||!!b.closest("form"):!0,E={checked:f,disabled:i,setChecked:d,control:b,setControl:g,name:s,form:a,value:c,hasConsumerStoppedPropagationRef:x,required:l,defaultChecked:Ht(o)?!1:o,isFormControl:S,bubbleInput:m,setBubbleInput:y};return p.jsx(u8,{scope:e,...E,children:c8(h)?h(E):n})}var xp="CheckboxTrigger",wp=v.forwardRef(({__scopeCheckbox:t,onKeyDown:e,onClick:r,...n},o)=>{const{control:i,value:a,disabled:s,checked:u,required:l,setControl:c,setChecked:h,hasConsumerStoppedPropagationRef:f,isFormControl:d,bubbleInput:b}=Du(xp,t),g=Te(o,c),m=v.useRef(u);return v.useEffect(()=>{const y=i==null?void 0:i.form;if(y){const x=()=>h(m.current);return y.addEventListener("reset",x),()=>y.removeEventListener("reset",x)}},[i,h]),p.jsx(ve.button,{type:"button",role:"checkbox","aria-checked":Ht(u)?"mixed":u,"aria-required":l,"data-state":Np(u),"data-disabled":s?"":void 0,disabled:s,value:a,...n,ref:g,onKeyDown:fe(e,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:fe(r,y=>{h(x=>Ht(x)?!0:!x),b&&d&&(f.current=y.isPropagationStopped(),f.current||y.stopPropagation())})})});wp.displayName=xp;var Lu=v.forwardRef((t,e)=>{const{__scopeCheckbox:r,name:n,checked:o,defaultChecked:i,required:a,disabled:s,value:u,onCheckedChange:l,form:c,...h}=t;return p.jsx(l8,{__scopeCheckbox:r,checked:o,defaultChecked:i,disabled:s,required:a,onCheckedChange:l,name:n,form:c,value:u,internal_do_not_use_render:({isFormControl:f})=>p.jsxs(p.Fragment,{children:[p.jsx(wp,{...h,ref:e,__scopeCheckbox:r}),f&&p.jsx(Tp,{__scopeCheckbox:r})]})})});Lu.displayName=Hi;var Sp="CheckboxIndicator",Ep=v.forwardRef((t,e)=>{const{__scopeCheckbox:r,forceMount:n,...o}=t,i=Du(Sp,r);return p.jsx(hr,{present:n||Ht(i.checked)||i.checked===!0,children:p.jsx(ve.span,{"data-state":Np(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:e,style:{pointerEvents:"none",...t.style}})})});Ep.displayName=Sp;var Cp="CheckboxBubbleInput",Tp=v.forwardRef(({__scopeCheckbox:t,...e},r)=>{const{control:n,hasConsumerStoppedPropagationRef:o,checked:i,defaultChecked:a,required:s,disabled:u,name:l,value:c,form:h,bubbleInput:f,setBubbleInput:d}=Du(Cp,t),b=Te(r,d),g=a8(i),m=Hf(n);v.useEffect(()=>{const x=f;if(!x)return;const S=window.HTMLInputElement.prototype,A=Object.getOwnPropertyDescriptor(S,"checked").set,R=!o.current;if(g!==i&&A){const _=new Event("click",{bubbles:R});x.indeterminate=Ht(i),A.call(x,Ht(i)?!1:i),x.dispatchEvent(_)}},[f,g,i,o]);const y=v.useRef(Ht(i)?!1:i);return p.jsx(ve.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??y.current,required:s,disabled:u,name:l,value:c,form:h,...e,tabIndex:-1,ref:b,style:{...e.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Tp.displayName=Cp;function c8(t){return typeof t=="function"}function Ht(t){return t==="indeterminate"}function Np(t){return Ht(t)?"indeterminate":t?"checked":"unchecked"}const d8=v.forwardRef(({className:t,...e},r)=>p.jsx(Lu,{ref:r,className:Ne("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),...e,children:p.jsx(Ep,{className:Ne("flex items-center justify-center text-current"),children:p.jsx(Os,{className:"h-4 w-4"})})}));d8.displayName=Lu.displayName;const f8=({onDownload:t,disabled:e=!1})=>{const[r,n]=w.useState(!0),[o,i]=w.useState(!1),[a,s]=w.useState(!1);w.useEffect(()=>{try{s(window.self!==window.top)}catch{s(!0)}},[]);const u=()=>{r&&t&&!o&&(t(),i(!0),a&&window.parent.postMessage({type:"OPEN_POPUP",payload:"1"},"*"))};return p.jsxs("div",{className:"py-4 max-w-[600px] w-full flex flex-col justify-center items-center",children:[p.jsx("div",{className:"flex w-full md:w-1/2 justify-center items-center",children:p.jsx(ot,{disabled:!r||o||e,onClick:u,className:"w-full",children:o?p.jsxs(p.Fragment,{children:[p.jsx(Os,{className:"h-4 w-4 mr-2"}),"Thank you!"]}):p.jsxs(p.Fragment,{children:[p.jsx(Dm,{className:"h-4 w-4 mr-2"}),"Download"]})})}),p.jsxs("label",{className:"flex items-center justify-center space-x-2 cursor-pointer mt-3",children:[p.jsx("input",{className:"",type:"checkbox",checked:r,onChange:l=>n(l.target.checked),disabled:o||e}),p.jsxs("span",{className:"text-sm text-muted-foreground",children:["I accept the"," ",p.jsx("a",{href:"https://myracereel.com/terms-of-service",className:"underline hover:text-foreground transition-colors",target:"_blank",rel:"noopener noreferrer",children:"Terms of Service"}),"."]})]})]})};function Ap(t,e){return function(){return t.apply(e,arguments)}}const{toString:p8}=Object.prototype,{getPrototypeOf:Mu}=Object,{iterator:qi,toStringTag:Op}=Symbol,zi=(t=>e=>{const r=p8.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),et=t=>(t=t.toLowerCase(),e=>zi(e)===t),Ui=t=>e=>typeof e===t,{isArray:tn}=Array,Hr=Ui("undefined");function Yn(t){return t!==null&&!Hr(t)&&t.constructor!==null&&!Hr(t.constructor)&&Ie(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const jp=et("ArrayBuffer");function h8(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&jp(t.buffer),e}const m8=Ui("string"),Ie=Ui("function"),Rp=Ui("number"),Xn=t=>t!==null&&typeof t=="object",b8=t=>t===!0||t===!1,Oo=t=>{if(zi(t)!=="object")return!1;const e=Mu(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Op in t)&&!(qi in t)},g8=t=>{if(!Xn(t)||Yn(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},y8=et("Date"),v8=et("File"),x8=t=>!!(t&&typeof t.uri<"u"),w8=t=>t&&typeof t.getParts<"u",S8=et("Blob"),E8=et("FileList"),C8=t=>Xn(t)&&Ie(t.pipe);function T8(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Xc=T8(),Kc=typeof Xc.FormData<"u"?Xc.FormData:void 0,N8=t=>{let e;return t&&(Kc&&t instanceof Kc||Ie(t.append)&&((e=zi(t))==="formdata"||e==="object"&&Ie(t.toString)&&t.toString()==="[object FormData]"))},A8=et("URLSearchParams"),[O8,j8,R8,P8]=["ReadableStream","Request","Response","Headers"].map(et),_8=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Kn(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,o;if(typeof t!="object"&&(t=[t]),tn(t))for(n=0,o=t.length;n<o;n++)e.call(null,t[n],n,t);else{if(Yn(t))return;const i=r?Object.getOwnPropertyNames(t):Object.keys(t),a=i.length;let s;for(n=0;n<a;n++)s=i[n],e.call(null,t[s],s,t)}}function Pp(t,e){if(Yn(t))return null;e=e.toLowerCase();const r=Object.keys(t);let n=r.length,o;for(;n-- >0;)if(o=r[n],e===o.toLowerCase())return o;return null}const rr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,_p=t=>!Hr(t)&&t!==rr;function bs(){const{caseless:t,skipUndefined:e}=_p(this)&&this||{},r={},n=(o,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const a=t&&Pp(r,i)||i;Oo(r[a])&&Oo(o)?r[a]=bs(r[a],o):Oo(o)?r[a]=bs({},o):tn(o)?r[a]=o.slice():(!e||!Hr(o))&&(r[a]=o)};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&Kn(arguments[o],n);return r}const k8=(t,e,r,{allOwnKeys:n}={})=>(Kn(e,(o,i)=>{r&&Ie(o)?Object.defineProperty(t,i,{value:Ap(o,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,i,{value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),t),I8=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),D8=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},L8=(t,e,r,n)=>{let o,i,a;const s={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)a=o[i],(!n||n(a,t,e))&&!s[a]&&(e[a]=t[a],s[a]=!0);t=r!==!1&&Mu(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},M8=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},$8=t=>{if(!t)return null;if(tn(t))return t;let e=t.length;if(!Rp(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},B8=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Mu(Uint8Array)),F8=(t,e)=>{const n=(t&&t[qi]).call(t);let o;for(;(o=n.next())&&!o.done;){const i=o.value;e.call(t,i[0],i[1])}},H8=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},q8=et("HTMLFormElement"),z8=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Jc=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),U8=et("RegExp"),kp=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};Kn(r,(o,i)=>{let a;(a=e(o,i,t))!==!1&&(n[i]=a||o)}),Object.defineProperties(t,n)},V8=t=>{kp(t,(e,r)=>{if(Ie(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(Ie(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},W8=(t,e)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return tn(t)?n(t):n(String(t).split(e)),r},G8=()=>{},Y8=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function X8(t){return!!(t&&Ie(t.append)&&t[Op]==="FormData"&&t[qi])}const K8=t=>{const e=new Array(10),r=(n,o)=>{if(Xn(n)){if(e.indexOf(n)>=0)return;if(Yn(n))return n;if(!("toJSON"in n)){e[o]=n;const i=tn(n)?[]:{};return Kn(n,(a,s)=>{const u=r(a,o+1);!Hr(u)&&(i[s]=u)}),e[o]=void 0,i}}return n};return r(t,0)},J8=et("AsyncFunction"),Z8=t=>t&&(Xn(t)||Ie(t))&&Ie(t.then)&&Ie(t.catch),Ip=((t,e)=>t?setImmediate:e?((r,n)=>(rr.addEventListener("message",({source:o,data:i})=>{o===rr&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),rr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Ie(rr.postMessage)),Q8=typeof queueMicrotask<"u"?queueMicrotask.bind(rr):typeof process<"u"&&process.nextTick||Ip,eC=t=>t!=null&&Ie(t[qi]),j={isArray:tn,isArrayBuffer:jp,isBuffer:Yn,isFormData:N8,isArrayBufferView:h8,isString:m8,isNumber:Rp,isBoolean:b8,isObject:Xn,isPlainObject:Oo,isEmptyObject:g8,isReadableStream:O8,isRequest:j8,isResponse:R8,isHeaders:P8,isUndefined:Hr,isDate:y8,isFile:v8,isReactNativeBlob:x8,isReactNative:w8,isBlob:S8,isRegExp:U8,isFunction:Ie,isStream:C8,isURLSearchParams:A8,isTypedArray:B8,isFileList:E8,forEach:Kn,merge:bs,extend:k8,trim:_8,stripBOM:I8,inherits:D8,toFlatObject:L8,kindOf:zi,kindOfTest:et,endsWith:M8,toArray:$8,forEachEntry:F8,matchAll:H8,isHTMLForm:q8,hasOwnProperty:Jc,hasOwnProp:Jc,reduceDescriptors:kp,freezeMethods:V8,toObjectSet:W8,toCamelCase:z8,noop:G8,toFiniteNumber:Y8,findKey:Pp,global:rr,isContextDefined:_p,isSpecCompliantForm:X8,toJSONObject:K8,isAsyncFn:J8,isThenable:Z8,setImmediate:Ip,asap:Q8,isIterable:eC};let V=class Dp extends Error{static from(e,r,n,o,i,a){const s=new Dp(e.message,r||e.code,n,o,i);return s.cause=e,s.name=e.name,e.status!=null&&s.status==null&&(s.status=e.status),a&&Object.assign(s,a),s}constructor(e,r,n,o,i){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),o&&(this.request=o),i&&(this.response=i,this.status=i.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:j.toJSONObject(this.config),code:this.code,status:this.status}}};V.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";V.ERR_BAD_OPTION="ERR_BAD_OPTION";V.ECONNABORTED="ECONNABORTED";V.ETIMEDOUT="ETIMEDOUT";V.ERR_NETWORK="ERR_NETWORK";V.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";V.ERR_DEPRECATED="ERR_DEPRECATED";V.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";V.ERR_BAD_REQUEST="ERR_BAD_REQUEST";V.ERR_CANCELED="ERR_CANCELED";V.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";V.ERR_INVALID_URL="ERR_INVALID_URL";const tC=null;function gs(t){return j.isPlainObject(t)||j.isArray(t)}function Lp(t){return j.endsWith(t,"[]")?t.slice(0,-2):t}function ga(t,e,r){return t?t.concat(e).map(function(o,i){return o=Lp(o),!r&&i?"["+o+"]":o}).join(r?".":""):e}function rC(t){return j.isArray(t)&&!t.some(gs)}const nC=j.toFlatObject(j,{},null,function(e){return/^is[A-Z]/.test(e)});function Vi(t,e,r){if(!j.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=j.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,m){return!j.isUndefined(m[g])});const n=r.metaTokens,o=r.visitor||c,i=r.dots,a=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&j.isSpecCompliantForm(e);if(!j.isFunction(o))throw new TypeError("visitor must be a function");function l(b){if(b===null)return"";if(j.isDate(b))return b.toISOString();if(j.isBoolean(b))return b.toString();if(!u&&j.isBlob(b))throw new V("Blob is not supported. Use a Buffer instead.");return j.isArrayBuffer(b)||j.isTypedArray(b)?u&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function c(b,g,m){let y=b;if(j.isReactNative(e)&&j.isReactNativeBlob(b))return e.append(ga(m,g,i),l(b)),!1;if(b&&!m&&typeof b=="object"){if(j.endsWith(g,"{}"))g=n?g:g.slice(0,-2),b=JSON.stringify(b);else if(j.isArray(b)&&rC(b)||(j.isFileList(b)||j.endsWith(g,"[]"))&&(y=j.toArray(b)))return g=Lp(g),y.forEach(function(S,E){!(j.isUndefined(S)||S===null)&&e.append(a===!0?ga([g],E,i):a===null?g:g+"[]",l(S))}),!1}return gs(b)?!0:(e.append(ga(m,g,i),l(b)),!1)}const h=[],f=Object.assign(nC,{defaultVisitor:c,convertValue:l,isVisitable:gs});function d(b,g){if(!j.isUndefined(b)){if(h.indexOf(b)!==-1)throw Error("Circular reference detected in "+g.join("."));h.push(b),j.forEach(b,function(y,x){(!(j.isUndefined(y)||y===null)&&o.call(e,y,j.isString(x)?x.trim():x,g,f))===!0&&d(y,g?g.concat(x):[x])}),h.pop()}}if(!j.isObject(t))throw new TypeError("data must be an object");return d(t),e}function Zc(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function $u(t,e){this._pairs=[],t&&Vi(t,this,e)}const Mp=$u.prototype;Mp.append=function(e,r){this._pairs.push([e,r])};Mp.toString=function(e){const r=e?function(n){return e.call(this,n,Zc)}:Zc;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function oC(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function $p(t,e,r){if(!e)return t;const n=r&&r.encode||oC,o=j.isFunction(r)?{serialize:r}:r,i=o&&o.serialize;let a;if(i?a=i(e,o):a=j.isURLSearchParams(e)?e.toString():new $u(e,o).toString(n),a){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t}class Qc{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){j.forEach(this.handlers,function(n){n!==null&&e(n)})}}const Bu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},iC=typeof URLSearchParams<"u"?URLSearchParams:$u,aC=typeof FormData<"u"?FormData:null,sC=typeof Blob<"u"?Blob:null,uC={isBrowser:!0,classes:{URLSearchParams:iC,FormData:aC,Blob:sC},protocols:["http","https","file","blob","url","data"]},Fu=typeof window<"u"&&typeof document<"u",ys=typeof navigator=="object"&&navigator||void 0,lC=Fu&&(!ys||["ReactNative","NativeScript","NS"].indexOf(ys.product)<0),cC=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",dC=Fu&&window.location.href||"http://localhost",fC=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Fu,hasStandardBrowserEnv:lC,hasStandardBrowserWebWorkerEnv:cC,navigator:ys,origin:dC},Symbol.toStringTag,{value:"Module"})),Oe={...fC,...uC};function pC(t,e){return Vi(t,new Oe.classes.URLSearchParams,{visitor:function(r,n,o,i){return Oe.isNode&&j.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...e})}function hC(t){return j.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function mC(t){const e={},r=Object.keys(t);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],e[i]=t[i];return e}function Bp(t){function e(r,n,o,i){let a=r[i++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),u=i>=r.length;return a=!a&&j.isArray(o)?o.length:a,u?(j.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!s):((!o[a]||!j.isObject(o[a]))&&(o[a]=[]),e(r,n,o[a],i)&&j.isArray(o[a])&&(o[a]=mC(o[a])),!s)}if(j.isFormData(t)&&j.isFunction(t.entries)){const r={};return j.forEachEntry(t,(n,o)=>{e(hC(n),o,r,0)}),r}return null}function bC(t,e,r){if(j.isString(t))try{return(e||JSON.parse)(t),j.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const Jn={transitional:Bu,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=j.isObject(e);if(i&&j.isHTMLForm(e)&&(e=new FormData(e)),j.isFormData(e))return o?JSON.stringify(Bp(e)):e;if(j.isArrayBuffer(e)||j.isBuffer(e)||j.isStream(e)||j.isFile(e)||j.isBlob(e)||j.isReadableStream(e))return e;if(j.isArrayBufferView(e))return e.buffer;if(j.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return pC(e,this.formSerializer).toString();if((s=j.isFileList(e))||n.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Vi(s?{"files[]":e}:e,u&&new u,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),bC(e)):e}],transformResponse:[function(e){const r=this.transitional||Jn.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(j.isResponse(e)||j.isReadableStream(e))return e;if(e&&j.isString(e)&&(n&&!this.responseType||o)){const a=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(e,this.parseReviver)}catch(s){if(a)throw s.name==="SyntaxError"?V.from(s,V.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Oe.classes.FormData,Blob:Oe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};j.forEach(["delete","get","head","post","put","patch"],t=>{Jn.headers[t]={}});const gC=j.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),yC=t=>{const e={};let r,n,o;return t&&t.split(`
|
|
279
|
+
`)});const s=e.nonTextTags||["script","style","textarea","option"];let u,l;e.allowedAttributes&&(u={},l={},Cr(e.allowedAttributes,function(N,O){u[O]=[];const P=[];N.forEach(function(D){typeof D=="string"&&D.indexOf("*")>=0?P.push(Wc(D).replace(/\\\*/g,".*")):u[O].push(D)}),P.length&&(l[O]=new RegExp("^("+P.join("|")+")$"))}));const c={},h={},f={};Cr(e.allowedClasses,function(N,O){if(u&&(St(u,O)||(u[O]=[]),u[O].push("class")),c[O]=N,Array.isArray(N)){const P=[];c[O]=[],f[O]=[],N.forEach(function(D){typeof D=="string"&&D.indexOf("*")>=0?P.push(Wc(D).replace(/\\\*/g,".*")):D instanceof RegExp?f[O].push(D):c[O].push(D)}),P.length&&(h[O]=new RegExp("^("+P.join("|")+")$"))}});const d={};let b;Cr(e.transformTags,function(N,O){let P;typeof N=="function"?P=N:typeof N=="string"&&(P=$n.simpleTransform(N)),O==="*"?b=P:d[O]=P});let g,m,y,x,S,E,A=!1;_();const R=new L5.Parser({onopentag:function(N,O){if(e.onOpenTag&&e.onOpenTag(N,O),e.enforceHtmlBoundary&&N==="html"&&_(),S){E++;return}const P=new i(N,O);m.push(P);let D=!1;const $=!!P.text;let z;if(St(d,N)&&(z=d[N](N,O),P.attribs=O=z.attribs,z.text!==void 0&&(P.innerText=z.text),N!==z.tagName&&(P.name=N=z.tagName,x[g]=z.tagName)),b&&(z=b(N,O),P.attribs=O=z.attribs,N!==z.tagName&&(P.name=N=z.tagName,x[g]=z.tagName)),(!a(N)||e.disallowedTagsMode==="recursiveEscape"&&!q5(y)||e.nestingLimit!=null&&g>=e.nestingLimit)&&(D=!0,y[g]=!0,(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&s.indexOf(N)!==-1&&(S=!0,E=1)),g++,D){if(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){if(P.innerText&&!$){const H=L(P.innerText);e.textFilter?n+=e.textFilter(H,N):n+=H,A=!0}return}o=n,n=""}n+="<"+N,N==="script"&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(P.innerText=""),D&&(e.disallowedTagsMode==="escape"||e.disallowedTagsMode==="recursiveEscape")&&e.preserveEscapedAttributes?Cr(O,function(H,F){n+=" "+F+'="'+L(H||"",!0)+'"'}):(!u||St(u,N)||u["*"])&&Cr(O,function(H,F){if(!V5.test(F)){delete P.attribs[F];return}if(H===""&&!e.allowedEmptyAttributes.includes(F)&&(e.nonBooleanAttributes.includes(F)||e.nonBooleanAttributes.includes("*"))){delete P.attribs[F];return}let he=!1;if(!u||St(u,N)&&u[N].indexOf(F)!==-1||u["*"]&&u["*"].indexOf(F)!==-1||St(l,N)&&l[N].test(F)||l["*"]&&l["*"].test(F))he=!0;else if(u&&u[N]){for(const J of u[N])if(M5(J)&&J.name&&J.name===F){he=!0;let q="";if(J.multiple===!0){const Re=H.split(" ");for(const Ee of Re)J.values.indexOf(Ee)!==-1&&(q===""?q=Ee:q+=" "+Ee)}else J.values.indexOf(H)>=0&&(q=H);H=q}}if(he){if(e.allowedSchemesAppliedToAttributes.indexOf(F)!==-1&&B(N,H)){delete P.attribs[F];return}if(N==="script"&&F==="src"){let J=!0;try{const q=M(H);if(e.allowedScriptHostnames||e.allowedScriptDomains){const Re=(e.allowedScriptHostnames||[]).find(function(xe){return xe===q.url.hostname}),Ee=(e.allowedScriptDomains||[]).find(function(xe){return q.url.hostname===xe||q.url.hostname.endsWith(`.${xe}`)});J=Re||Ee}}catch{J=!1}if(!J){delete P.attribs[F];return}}if(N==="iframe"&&F==="src"){let J=!0;try{const q=M(H);if(q.isRelativeUrl)J=St(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const Re=(e.allowedIframeHostnames||[]).find(function(xe){return xe===q.url.hostname}),Ee=(e.allowedIframeDomains||[]).find(function(xe){return q.url.hostname===xe||q.url.hostname.endsWith(`.${xe}`)});J=Re||Ee}}catch{J=!1}if(!J){delete P.attribs[F];return}}if(F==="srcset")try{let J=$5(H);if(J.forEach(function(q){B("srcset",q.url)&&(q.evil=!0)}),J=Yc(J,function(q){return!q.evil}),J.length)H=z5(Yc(J,function(q){return!q.evil})),P.attribs[F]=H;else{delete P.attribs[F];return}}catch{delete P.attribs[F];return}if(F==="class"){const J=c[N],q=c["*"],Re=h[N],Ee=f[N],xe=f["*"],tt=h["*"],yt=[Re,tt].concat(Ee,xe).filter(function(rt){return rt});if(J&&q?H=I(H,Gc(J,q),yt):H=I(H,J||q,yt),!H.length){delete P.attribs[F];return}}if(F==="style"){if(e.parseStyleAttributes)try{const J=B5(N+" {"+H+"}",{map:!1}),q=C(J,e.allowedStyles);if(H=T(q),H.length===0){delete P.attribs[F];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+N+" {"+H+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete P.attribs[F];return}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}n+=" "+F,H&&H.length?n+='="'+L(H,!0)+'"':e.allowedEmptyAttributes.includes(F)&&(n+='=""')}else delete P.attribs[F]}),e.selfClosing.indexOf(N)!==-1?n+=" />":(n+=">",P.innerText&&!$&&!e.textFilter&&(n+=L(P.innerText),A=!0)),D&&(n=o+L(n),o=""),P.openingTagLength=n.length-P.tagPosition},ontext:function(N){if(S)return;const O=m[m.length-1];let P;if(O&&(P=O.tag,N=O.innerText!==void 0?O.innerText:N),e.disallowedTagsMode==="completelyDiscard"&&!a(P))N="";else if((e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&(P==="script"||P==="style"))n+=N;else if(!A){const D=L(N,!1);e.textFilter?n+=e.textFilter(D,P):n+=D}if(m.length){const D=m[m.length-1];D.text+=N}},onclosetag:function(N,O){if(e.onCloseTag&&e.onCloseTag(N,O),S)if(E--,!E)S=!1;else return;const P=m.pop();if(!P)return;if(P.tag!==N){m.push(P);return}S=e.enforceHtmlBoundary?N==="html":!1,g--;const D=y[g];if(D){if(delete y[g],e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){P.updateParentNodeText();return}o=n,n=""}if(x[g]&&(N=x[g],delete x[g]),e.exclusiveFilter){const $=e.exclusiveFilter(P);if($==="excludeTag"){D&&(n=o,o=""),n=n.substring(0,P.tagPosition)+n.substring(P.tagPosition+P.openingTagLength);return}else if($){n=n.substring(0,P.tagPosition);return}}if(P.updateParentNodeMediaChildren(),P.updateParentNodeText(),e.selfClosing.indexOf(N)!==-1||O&&!a(N)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0){D&&(n=o,o="");return}n+="</"+N+">",D&&(n=o+L(n),o=""),A=!1}},e.parser);return R.write(t),R.end(),n;function _(){n="",g=0,m=[],y={},x={},S=!1,E=0}function L(N,O){return typeof N!="string"&&(N=N+""),e.parser.decodeEntities&&(N=N.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),O&&(N=N.replace(/"/g,"""))),N=N.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(/</g,"<").replace(/>/g,">"),O&&(N=N.replace(/"/g,""")),N}function B(N,O){for(O=O.replace(/[\x00-\x20]+/g,"");;){const $=O.indexOf("<!--");if($===-1)break;const z=O.indexOf("-->",$+4);if(z===-1)break;O=O.substring(0,$)+O.substring(z+3)}const P=O.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!P)return O.match(/^[/\\]{2}/)?!e.allowProtocolRelative:!1;const D=P[1].toLowerCase();return St(e.allowedSchemesByTag,N)?e.allowedSchemesByTag[N].indexOf(D)===-1:!e.allowedSchemes||e.allowedSchemes.indexOf(D)===-1}function M(N){if(N=N.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),N.startsWith("relative:"))throw new Error("relative: exploit attempt");let O="relative://relative-site";for(let $=0;$<100;$++)O+=`/${$}`;const P=new URL(N,O);return{isRelativeUrl:P&&P.hostname==="relative-site"&&P.protocol==="relative:",url:P}}function C(N,O){if(!O)return N;const P=N.nodes[0];let D;return O[P.selector]&&O["*"]?D=Gc(O[P.selector],O["*"]):D=O[P.selector]||O["*"],D&&(N.nodes[0].nodes=P.nodes.reduce(k(D),[])),N}function T(N){return N.nodes[0].nodes.reduce(function(O,P){return O.push(`${P.prop}:${P.value}${P.important?" !important":""}`),O},[]).join(";")}function k(N){return function(O,P){return St(N,P.prop)&&N[P.prop].some(function($){return $.test(P.value)})&&O.push(P),O}}function I(N,O,P){return O?(N=N.split(/\s+/),N.filter(function(D){return O.indexOf(D)!==-1||P.some(function($){return $.test(D)})}).join(" ")):N}}const W5={decodeEntities:!0};$n.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","menu","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0,preserveEscapedAttributes:!1};$n.simpleTransform=function(t,e,r){return r=r===void 0?!0:r,e=e||{},function(n,o){let i;if(r)for(i in e)o[i]=e[i];else o=e;return{tagName:t,attribs:o}}};const vp=pi(U5),G5=[{command:"bold",icon:Pm,label:"Bold"},{command:"italic",icon:$m,label:"Italic"},{command:"underline",icon:Ym,label:"Underline"},{command:"strikeThrough",icon:Wm,label:"Strikethrough"},{command:"insertUnorderedList",icon:Fm,label:"Bullet List"},{command:"insertOrderedList",icon:Bm,label:"Numbered List"}],Y5={allowedTags:["b","i","u","s","strong","em","ul","ol","li","br","p","a","span"],allowedAttributes:{a:["href","target"],span:["style"]},allowedStyles:{span:{"text-decoration":[/^line-through$/]}}},X5=({label:t,value:e,onChange:r})=>{const n=w.useRef(null),[o,i]=w.useState(!1),[a,s]=w.useState(""),u=w.useRef(null);w.useEffect(()=>{n.current&&n.current.innerHTML!==e&&(n.current.innerHTML=e||"")},[]);const l=m=>{var y;document.execCommand(m,!1,null),(y=n.current)==null||y.focus(),c()},c=()=>{if(n.current){const m=n.current.innerHTML,y=vp(m,Y5);r(y)}},h=()=>{const m=window.getSelection();m&&m.rangeCount>0&&(u.current=m.getRangeAt(0))},f=()=>{if(u.current){const m=window.getSelection();m==null||m.removeAllRanges(),m==null||m.addRange(u.current)}},d=()=>{h(),i(!0)},b=()=>{var m;if(a){f();let y=a.trim();y&&!y.match(/^https?:\/\//i)&&(y="https://"+y);try{new URL(y),document.execCommand("createLink",!1,y),c()}catch{}}i(!1),s(""),(m=n.current)==null||m.focus()},g=m=>{try{return document.queryCommandState(m)}catch{return!1}};return p.jsxs("div",{className:"space-y-1.5",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),p.jsx("div",{className:"flex items-center gap-0.5 p-1 bg-muted rounded-t border border-input border-b-0",children:p.jsxs(jn,{children:[G5.map(({command:m,icon:y,label:x})=>p.jsxs(Ir,{children:[p.jsx(Dr,{asChild:!0,children:p.jsx("button",{type:"button",onMouseDown:S=>{S.preventDefault(),l(m)},className:`p-1.5 rounded hover:bg-background transition-colors ${g(m)?"bg-background text-primary":"text-muted-foreground"}`,children:p.jsx(y,{className:"h-3.5 w-3.5"})})}),p.jsx(sr,{side:"top",children:p.jsx("p",{children:x})})]},m)),p.jsx("div",{className:"w-px h-4 bg-border mx-1"}),p.jsxs(Ir,{children:[p.jsx(Dr,{asChild:!0,children:p.jsx("button",{type:"button",onMouseDown:m=>{m.preventDefault(),d()},className:"p-1.5 rounded hover:bg-background transition-colors text-muted-foreground",children:p.jsx(Ps,{className:"h-3.5 w-3.5"})})}),p.jsx(sr,{side:"top",children:p.jsx("p",{children:"Insert Link"})})]})]})}),p.jsx("div",{ref:n,contentEditable:!0,onInput:c,onBlur:c,className:"min-h-[80px] max-h-[200px] overflow-y-auto p-2 text-xs rounded-b border border-input bg-background focus:outline-none focus:ring-1 focus:ring-ring prose prose-sm max-w-none [&_ul]:list-disc [&_ul]:pl-4 [&_ol]:list-decimal [&_ol]:pl-4 [&_a]:text-primary [&_a]:underline",style:{wordBreak:"break-word"}}),o&&p.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",children:p.jsxs("div",{className:"bg-background p-4 rounded-lg shadow-lg w-80 space-y-3",children:[p.jsx("h4",{className:"text-sm font-medium",children:"Insert Link"}),p.jsx("input",{type:"url",value:a,onChange:m=>s(m.target.value),placeholder:"https://example.com",className:"w-full px-3 py-2 text-sm rounded border border-input bg-background",autoFocus:!0,onKeyDown:m=>{m.key==="Enter"&&(m.preventDefault(),b()),m.key==="Escape"&&(i(!1),s(""))}}),p.jsxs("div",{className:"flex justify-end gap-2",children:[p.jsx("button",{onClick:()=>{i(!1),s("")},className:"px-3 py-1.5 text-xs rounded border border-input hover:bg-muted",children:"Cancel"}),p.jsx("button",{onClick:b,className:"px-3 py-1.5 text-xs rounded bg-primary text-primary-foreground hover:bg-primary/90",children:"Insert"})]})]})})]})},K5={allowedTags:["b","i","u","s","strong","em","ul","ol","li","br","p","a","span"],allowedAttributes:{a:["href","target"],span:["style"]},allowedStyles:{span:{"text-decoration":[/^line-through$/]}}},Ru=({text:t="",html:e,fontSize:r={desktop:16},fontWeight:n="400",fontFamily:o="inherit",lineHeight:i={desktop:150},letterSpacing:a={desktop:0},textAlign:s="left",color:u="#000000",margin:l={top:0,right:0,bottom:0,left:0},textDecoration:c="none",textTransform:h="none",opacity:f=100})=>{const d=Ae(),b=Bn();let g,m,y;try{const{connectors:L,events:B}=se(M=>({events:M.events}));g=L.connect,m=L.drag,y=B.selected}catch{}const x=Ko(t,b),S=typeof ee(l,d)=="object"?`${ee(l,d).top}px ${ee(l,d).right}px ${ee(l,d).bottom}px ${ee(l,d).left}px`:`${ee(l,d)}px`,E=Tt(r,d,16),A=Tt(i,d,150)/100,R=Tt(a,d,0),_=/<[^>]+>/.test(x);return p.jsx("div",{ref:L=>L&&g&&m&&g(m(L)),className:`cursor-move ${y?"outline outline-blue-500":""}`,style:{fontSize:`${E}px`,fontWeight:n,fontFamily:o,lineHeight:A,letterSpacing:`${R}px`,textAlign:s,color:u,margin:S,textDecoration:c,textTransform:h,opacity:f/100},children:e||_?p.jsx("div",{dangerouslySetInnerHTML:{__html:vp(Ko(e||x,b),K5)},className:"[&_ul]:list-disc [&_ul]:pl-4 [&_ol]:list-decimal [&_ol]:pl-4 [&_a]:text-primary [&_a]:underline"}):x})},J5=()=>{const{actions:{setProp:t},props:e}=se(n=>({props:n.data.props})),r=typeof e.margin=="object"&&!("desktop"in e.margin)?e.margin:{top:0,right:0,bottom:0,left:0};return p.jsxs("div",{className:"space-y-3",children:[p.jsx(G,{title:"Content",defaultOpen:!0,children:p.jsx(X5,{label:"Text",value:e.html??e.text,onChange:n=>t(o=>{o.html=null,o.text=n})})}),p.jsxs(G,{title:"Typography",defaultOpen:!0,children:[p.jsx(te,{label:"Font",value:e.fontFamily||"inherit",options:[{value:"inherit",label:"Default"},{value:"Inter, sans-serif",label:"Inter"},{value:"Georgia, serif",label:"Georgia"},{value:"Menlo, monospace",label:"Mono"},{value:"system-ui",label:"System"}],onChange:n=>t(o=>o.fontFamily=n)}),p.jsx(Yo,{label:"Size",values:e.fontSize,onChange:n=>t(o=>o.fontSize=n),min:8,max:120,defaultValue:16}),p.jsx(te,{label:"Weight",value:e.fontWeight||"400",options:[{value:"300",label:"Light"},{value:"400",label:"Regular"},{value:"500",label:"Medium"},{value:"600",label:"Semibold"},{value:"700",label:"Bold"},{value:"800",label:"Extra Bold"}],onChange:n=>t(o=>o.fontWeight=n)}),p.jsx(Xo,{label:"Line Height",values:e.lineHeight,onChange:n=>t(o=>o.lineHeight=n),min:80,max:250,unit:"%",defaultValue:150}),p.jsx(Yo,{label:"Letter Spacing",values:e.letterSpacing,onChange:n=>t(o=>o.letterSpacing=n),min:-5,max:20,defaultValue:0}),p.jsx(At,{label:"Alignment",value:e.textAlign||"left",options:[{value:"left",label:p.jsx(Ns,{className:"h-3 w-3"})},{value:"center",label:p.jsx(Ts,{className:"h-3 w-3"})},{value:"right",label:p.jsx(As,{className:"h-3 w-3"})}],onChange:n=>t(o=>o.textAlign=n)}),p.jsx(te,{label:"Transform",value:e.textTransform||"none",options:[{value:"none",label:"None"},{value:"uppercase",label:"UPPERCASE"},{value:"lowercase",label:"lowercase"},{value:"capitalize",label:"Capitalize"}],onChange:n=>t(o=>o.textTransform=n)}),p.jsx(te,{label:"Decoration",value:e.textDecoration||"none",options:[{value:"none",label:"None"},{value:"underline",label:"Underline"},{value:"line-through",label:"Strikethrough"}],onChange:n=>t(o=>o.textDecoration=n)})]}),p.jsxs(G,{title:"Color",defaultOpen:!1,children:[p.jsx(ut,{label:"Text Color",value:e.color||"#000000",onChange:n=>t(o=>o.color=n)}),p.jsx(Xo,{label:"Opacity",values:e.opacity,onChange:n=>t(o=>o.opacity=n),min:0,max:100,unit:"%",defaultValue:100})]}),p.jsx(G,{title:"Spacing",defaultOpen:!1,children:p.jsx(Ue,{label:"Margin",values:r,onChange:n=>t(o=>o.margin={...o.margin,...n})})}),p.jsx(G,{title:"Dynamic Data",defaultOpen:!1,children:p.jsx(s0,{})})]})};Ru.craft={displayName:"Text",props:{text:"Edit me",fontSize:{desktop:16},fontWeight:"400",fontFamily:"inherit",lineHeight:{desktop:150},letterSpacing:{desktop:0},textAlign:"left",color:"#000000",margin:{desktop:{top:0,right:0,bottom:0,left:0}},textDecoration:"none",textTransform:"none",opacity:{desktop:100}},related:{settings:J5}};const xn={1:{desktop:48,small:42,tablet:36,mobile:28},2:{desktop:36,small:32,tablet:28,mobile:24},3:{desktop:28,small:26,tablet:24,mobile:20},4:{desktop:22,small:20,tablet:18,mobile:16}},Pu=({text:t="Heading",level:e=2,textAlign:r="left",color:n="#000000",fontWeight:o="700",fontFamily:i="inherit",fontSize:a="auto",lineHeight:s={desktop:120},letterSpacing:u={desktop:-.5},margin:l={top:0,right:0,bottom:16,left:0},textTransform:c="none",opacity:h={desktop:100}})=>{var L,B,M;const f=Ae(),d=Bn();let b,g,m;try{const{connectors:C,events:T}=se(k=>({events:k.events}));b=C.connect,g=C.drag,m=T.selected}catch{}const y=Ko(t,d),x=`h${e}`;let S;a==="auto"?S=((L=xn[e])==null?void 0:L[f])||((B=xn[e])==null?void 0:B.desktop)||36:S=Tt(a,f,((M=xn[e])==null?void 0:M.desktop)||36);const E=Tt(s,f,120)/100,A=Tt(u,f,-.5),R=Tt(h,f,100),_=typeof ee(l,f)=="object"?`${ee(l,f).top}px ${ee(l,f).right}px ${ee(l,f).bottom}px ${ee(l,f).left}px`:`${ee(l,f)}px`;return p.jsx(x,{ref:C=>C&&b&&g&&b(g(C)),className:`cursor-move ${m?"outline outline-blue-500":""}`,style:{textAlign:r,color:n,fontWeight:o,fontFamily:i,fontSize:`${S}px`,lineHeight:E,letterSpacing:`${A}px`,margin:_,textTransform:c,opacity:R/100},children:y})},Z5=()=>{var i;const t=Ae(),{actions:{setProp:e},props:r}=se(a=>({props:a.data.props})),n=typeof r.margin=="object"&&!("desktop"in r.margin)?r.margin:{top:0,right:0,bottom:16,left:0},o=()=>{var a;return r.fontSize==="auto"?((a=xn[r.level||2])==null?void 0:a[t])||36:Tt(r.fontSize,t,36)};return p.jsxs("div",{className:"space-y-3",children:[p.jsxs(G,{title:"Content",defaultOpen:!0,children:[p.jsx(Gt,{label:"Text",value:r.text,onChange:a=>e(s=>s.text=a)}),p.jsx(At,{label:"Level",value:r.level||2,options:[{value:1,label:"H1"},{value:2,label:"H2"},{value:3,label:"H3"},{value:4,label:"H4"}],onChange:a=>e(s=>{s.level=a,s.fontSize})})]}),p.jsxs(G,{title:"Typography",defaultOpen:!0,children:[p.jsx(te,{label:"Font",value:r.fontFamily||"inherit",options:[{value:"inherit",label:"Default"},{value:"Inter, sans-serif",label:"Inter"},{value:"Georgia, serif",label:"Georgia"},{value:"system-ui",label:"System"}],onChange:a=>e(s=>s.fontFamily=a)}),p.jsxs("div",{className:"space-y-1.5",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:"Size Mode"}),p.jsx("button",{onClick:()=>e(a=>a.fontSize=a.fontSize==="auto"?{desktop:o()}:"auto"),className:`text-xs px-2 py-0.5 rounded ${r.fontSize==="auto"?"bg-primary/10 text-primary":"text-muted-foreground"}`,children:r.fontSize==="auto"?"Auto (Responsive)":"Custom"})]}),r.fontSize!=="auto"&&p.jsx(Yo,{label:"Size",values:r.fontSize,onChange:a=>e(s=>s.fontSize=a),min:12,max:120,defaultValue:((i=xn[r.level||2])==null?void 0:i.desktop)||36})]}),p.jsx(te,{label:"Weight",value:r.fontWeight||"700",options:[{value:"400",label:"Regular"},{value:"500",label:"Medium"},{value:"600",label:"Semibold"},{value:"700",label:"Bold"},{value:"800",label:"Extra Bold"},{value:"900",label:"Black"}],onChange:a=>e(s=>s.fontWeight=a)}),p.jsx(Xo,{label:"Line Height",values:r.lineHeight,onChange:a=>e(s=>s.lineHeight=a),min:80,max:200,unit:"%",defaultValue:120}),p.jsx(Yo,{label:"Letter Spacing",values:r.letterSpacing,onChange:a=>e(s=>s.letterSpacing=a),min:-5,max:20,defaultValue:-.5}),p.jsx(At,{label:"Alignment",value:r.textAlign||"left",options:[{value:"left",label:p.jsx(Ns,{className:"h-3 w-3"})},{value:"center",label:p.jsx(Ts,{className:"h-3 w-3"})},{value:"right",label:p.jsx(As,{className:"h-3 w-3"})}],onChange:a=>e(s=>s.textAlign=a)}),p.jsx(te,{label:"Transform",value:r.textTransform||"none",options:[{value:"none",label:"None"},{value:"uppercase",label:"UPPERCASE"},{value:"lowercase",label:"lowercase"},{value:"capitalize",label:"Capitalize"}],onChange:a=>e(s=>s.textTransform=a)})]}),p.jsxs(G,{title:"Color",defaultOpen:!1,children:[p.jsx(ut,{label:"Text Color",value:r.color||"#000000",onChange:a=>e(s=>s.color=a)}),p.jsx(Xo,{label:"Opacity",values:r.opacity,onChange:a=>e(s=>s.opacity=a),min:0,max:100,unit:"%",defaultValue:100})]}),p.jsx(G,{title:"Spacing",defaultOpen:!1,children:p.jsx(Ue,{label:"Margin",values:n,onChange:a=>e(s=>s.margin={...s.margin,...a})})}),p.jsx(G,{title:"Dynamic Data",defaultOpen:!1,children:p.jsx(s0,{})})]})};Pu.craft={displayName:"Heading",props:{text:"Heading",level:2,textAlign:"left",color:"#000000",fontWeight:"700",fontFamily:"inherit",fontSize:"auto",lineHeight:{desktop:120},letterSpacing:{desktop:-.5},margin:{top:0,right:0,bottom:16,left:0},textTransform:"none",opacity:{desktop:100}},related:{settings:Z5}};const _u=({src:t="https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=800&h=400&fit=crop",alt:e="Image",width:r="full",height:n="auto",maxWidth:o="none",objectFit:i="cover",borderRadius:a=8,margin:s={top:0,right:0,bottom:0,left:0},opacity:u=100,boxShadow:l="none"})=>{const c=Ae();let h,f,d;try{const{connectors:g,events:m}=se(y=>({events:y.events}));h=g.connect,f=g.drag,d=m.selected}catch{}const b=typeof s[c]=="object"?`${s[c].top}px ${s[c].right}px ${s[c].bottom}px ${s[c].left}px`:`${s[c]}px`;return p.jsx("img",{ref:g=>g&&h&&f&&h(f(g)),src:t,alt:e,className:`cursor-move ${d?"outline outline-blue-500":""}`,style:{width:r==="full"?"100%":r==="auto"?"auto":`${r}px`,height:n==="auto"?"auto":`${n}px`,maxWidth:o==="none"?"none":`${o}px`,objectFit:i,borderRadius:`${a}px`,margin:b,opacity:u/100,boxShadow:l==="none"?"none":l,display:"block"}})},Q5=()=>{const{actions:{setProp:t},props:e}=se(n=>({props:n.data.props})),r=typeof e.margin=="object"?e.margin:{top:0,right:0,bottom:0,left:0};return p.jsxs("div",{className:"space-y-3",children:[p.jsxs(G,{title:"Source",defaultOpen:!0,children:[p.jsx(Gt,{label:"Image URL",value:e.src,onChange:n=>t(o=>o.src=n)}),p.jsx(Gt,{label:"Alt Text",value:e.alt,onChange:n=>t(o=>o.alt=n)})]}),p.jsxs(G,{title:"Size",defaultOpen:!0,children:[p.jsx(te,{label:"Width",value:typeof e.width=="number"?"custom":e.width,options:[{value:"full",label:"Full Width"},{value:"auto",label:"Auto"},{value:"custom",label:"Custom"}],onChange:n=>t(o=>o.width=n==="custom"?300:n)}),typeof e.width=="number"&&p.jsx(ge,{unit:"px",label:"Width (px)",value:e.width,onChange:n=>t(o=>o.width=n),max:1200}),p.jsx(te,{label:"Height",value:typeof e.height=="number"?"custom":e.height,options:[{value:"auto",label:"Auto"},{value:"custom",label:"Custom"}],onChange:n=>t(o=>o.height=n==="custom"?200:n)}),typeof e.height=="number"&&p.jsx(ge,{unit:"px",label:"Height (px)",value:e.height,onChange:n=>t(o=>o.height=n),max:800}),p.jsx(te,{label:"Object Fit",value:e.objectFit||"cover",options:[{value:"cover",label:"Cover"},{value:"contain",label:"Contain"},{value:"fill",label:"Fill"},{value:"none",label:"None"}],onChange:n=>t(o=>o.objectFit=n)})]}),p.jsxs(G,{title:"Style",defaultOpen:!1,children:[p.jsx(ge,{unit:"px",label:"Border Radius",value:e.borderRadius||8,onChange:n=>t(o=>o.borderRadius=n),max:100}),p.jsx(Pi,{label:"Opacity",value:e.opacity||100,onChange:n=>t(o=>o.opacity=n),min:0,max:100,unit:"%"}),p.jsx(te,{label:"Shadow",value:e.boxShadow||"none",options:[{value:"none",label:"None"},{value:"0 4px 12px rgba(0,0,0,0.1)",label:"Small"},{value:"0 8px 24px rgba(0,0,0,0.15)",label:"Medium"},{value:"0 16px 48px rgba(0,0,0,0.2)",label:"Large"}],onChange:n=>t(o=>o.boxShadow=n)})]}),p.jsx(G,{title:"Spacing",defaultOpen:!1,children:p.jsx(Ue,{label:"Margin",values:r,onChange:n=>t(o=>o.margin={...o.margin,...n})})})]})};_u.craft={displayName:"Image",props:{src:"https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=800&h=400&fit=crop",alt:"Image",width:"full",height:"auto",maxWidth:"none",objectFit:"cover",borderRadius:8,margin:{desktop:{top:0,right:0,bottom:0,left:0}},opacity:100,boxShadow:"none"},related:{settings:Q5}};const ku=({color:t="#e5e5e5",height:e=1,width:r="full",style:n="solid",margin:o={top:16,right:0,bottom:16,left:0},opacity:i=100})=>{const a=Ae();let s,u,l;try{const{connectors:h,events:f}=se(d=>({events:d.events}));s=h.connect,u=h.drag,l=f.selected}catch{}const c=typeof o[a]=="object"?`${o[a].top}px ${o[a].right}px ${o[a].bottom}px ${o[a].left}px`:`${o[a]}px`;return p.jsx("hr",{ref:h=>h&&s&&u&&(s==null?void 0:s(u==null?void 0:u(h))),className:`cursor-move border-0 ${l?"ring-2 ring-primary ring-offset-2":""}`,style:{width:r==="full"?"100%":`${r}%`,height:`${e}px`,backgroundColor:t,margin:c,opacity:i/100,borderStyle:n,borderWidth:n==="solid"?0:`${e}px`,borderColor:t}})},e8=()=>{const{actions:{setProp:t},props:e}=se(n=>({props:n.data.props})),r=typeof e.margin=="object"?e.margin:{top:16,right:0,bottom:16,left:0};return p.jsxs("div",{className:"space-y-3",children:[p.jsxs(G,{title:"Style",defaultOpen:!0,children:[p.jsx(te,{label:"Style",value:e.style||"solid",options:[{value:"solid",label:"Solid"},{value:"dashed",label:"Dashed"},{value:"dotted",label:"Dotted"}],onChange:n=>t(o=>o.style=n)}),p.jsx(ut,{label:"Color",value:e.color||"#e5e5e5",onChange:n=>t(o=>o.color=n)}),p.jsx(ge,{unit:"px",label:"Thickness",value:e.height||1,onChange:n=>t(o=>o.height=n),min:1,max:20}),p.jsx(te,{label:"Width",value:e.width==="full"?"full":"custom",options:[{value:"full",label:"Full Width"},{value:"custom",label:"Custom %"}],onChange:n=>t(o=>o.width=n==="full"?"full":50)}),e.width!=="full"&&p.jsx(ge,{label:"Width %",value:e.width,onChange:n=>t(o=>o.width=n),min:10,max:100,unit:"%"})]}),p.jsx(G,{title:"Spacing",defaultOpen:!0,children:p.jsx(Ue,{label:"Margin",values:r,onChange:n=>t(o=>o.margin={...o.margin,...n})})})]})};ku.craft={displayName:"Divider",props:{color:"#e5e5e5",height:1,width:"full",style:"solid",margin:{top:16,right:0,bottom:16,left:0},opacity:100},related:{settings:e8}};const Iu=({height:t=40,responsive:e=!1,mobileHeight:r=20})=>{let n,o,i;try{const{connectors:a,events:s}=se(u=>({events:u.events}));n=a.connect,o=a.drag,i=s.selected}catch{}return p.jsxs("div",{ref:a=>a&&n&&o&&n(o(a)),className:`cursor-move w-full relative group ${i?"ring-2 ring-primary ring-offset-2":""}`,style:{height:`${t}px`},children:[p.jsx("div",{className:"absolute inset-0 flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity",children:p.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground bg-secondary/80 px-2 py-1 rounded",children:[p.jsx("span",{children:"↕"}),p.jsxs("span",{children:[t,"px"]})]})}),p.jsx("div",{className:"absolute inset-x-0 top-0 border-t border-dashed border-border/50 opacity-0 group-hover:opacity-100 transition-opacity"}),p.jsx("div",{className:"absolute inset-x-0 bottom-0 border-t border-dashed border-border/50 opacity-0 group-hover:opacity-100 transition-opacity"})]})},t8=()=>{const{actions:{setProp:t},props:e}=se(r=>({props:r.data.props}));return p.jsx("div",{className:"space-y-3",children:p.jsxs(G,{title:"Size",defaultOpen:!0,children:[p.jsx(te,{label:"Preset",value:"custom",options:[{value:"xs",label:"XS (8px)"},{value:"sm",label:"Small (16px)"},{value:"md",label:"Medium (32px)"},{value:"lg",label:"Large (64px)"},{value:"xl",label:"XL (96px)"},{value:"custom",label:"Custom"}],onChange:r=>{const n={xs:8,sm:16,md:32,lg:64,xl:96};n[r]&&t(o=>o.height=n[r])}}),p.jsx(ge,{unit:"px",label:"Height",value:e.height||40,onChange:r=>t(n=>n.height=r),min:4,max:300})]})})};Iu.craft={displayName:"Spacer",props:{height:40,responsive:!1,mobileHeight:20},related:{settings:t8}};const r8=window.location.href.includes("localhost")?"http://localhost:5000/api":"https://api.myracereel.com/api";function n8(){const t=localStorage.getItem("tokens");if(t){const{accessToken:e}=JSON.parse(t);return{"Content-Type":"application/json",Authorization:`Bearer ${e}`}}return{"Content-Type":"application/json"}}async function o8(t,e={}){const r=await fetch(`${r8}${t}`,{...e,headers:{...n8(),...e.headers}}),n=await r.json();if(!r.ok)throw new Error(n.message||"Request failed");return n}async function i8(t,e){return(await o8(`/videos/${t}/${e||""}`)).data}function a8(t){const e=v.useRef({value:t,previous:t});return v.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}var Hi="Checkbox",[s8]=pr(Hi),[u8,Du]=s8(Hi);function l8(t){const{__scopeCheckbox:e,checked:r,children:n,defaultChecked:o,disabled:i,form:a,name:s,onCheckedChange:u,required:l,value:c="on",internal_do_not_use_render:h}=t,[f,d]=Qr({prop:r,defaultProp:o??!1,onChange:u,caller:Hi}),[b,g]=v.useState(null),[m,y]=v.useState(null),x=v.useRef(!1),S=b?!!a||!!b.closest("form"):!0,E={checked:f,disabled:i,setChecked:d,control:b,setControl:g,name:s,form:a,value:c,hasConsumerStoppedPropagationRef:x,required:l,defaultChecked:Ht(o)?!1:o,isFormControl:S,bubbleInput:m,setBubbleInput:y};return p.jsx(u8,{scope:e,...E,children:c8(h)?h(E):n})}var xp="CheckboxTrigger",wp=v.forwardRef(({__scopeCheckbox:t,onKeyDown:e,onClick:r,...n},o)=>{const{control:i,value:a,disabled:s,checked:u,required:l,setControl:c,setChecked:h,hasConsumerStoppedPropagationRef:f,isFormControl:d,bubbleInput:b}=Du(xp,t),g=Te(o,c),m=v.useRef(u);return v.useEffect(()=>{const y=i==null?void 0:i.form;if(y){const x=()=>h(m.current);return y.addEventListener("reset",x),()=>y.removeEventListener("reset",x)}},[i,h]),p.jsx(ve.button,{type:"button",role:"checkbox","aria-checked":Ht(u)?"mixed":u,"aria-required":l,"data-state":Np(u),"data-disabled":s?"":void 0,disabled:s,value:a,...n,ref:g,onKeyDown:fe(e,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:fe(r,y=>{h(x=>Ht(x)?!0:!x),b&&d&&(f.current=y.isPropagationStopped(),f.current||y.stopPropagation())})})});wp.displayName=xp;var Lu=v.forwardRef((t,e)=>{const{__scopeCheckbox:r,name:n,checked:o,defaultChecked:i,required:a,disabled:s,value:u,onCheckedChange:l,form:c,...h}=t;return p.jsx(l8,{__scopeCheckbox:r,checked:o,defaultChecked:i,disabled:s,required:a,onCheckedChange:l,name:n,form:c,value:u,internal_do_not_use_render:({isFormControl:f})=>p.jsxs(p.Fragment,{children:[p.jsx(wp,{...h,ref:e,__scopeCheckbox:r}),f&&p.jsx(Tp,{__scopeCheckbox:r})]})})});Lu.displayName=Hi;var Sp="CheckboxIndicator",Ep=v.forwardRef((t,e)=>{const{__scopeCheckbox:r,forceMount:n,...o}=t,i=Du(Sp,r);return p.jsx(hr,{present:n||Ht(i.checked)||i.checked===!0,children:p.jsx(ve.span,{"data-state":Np(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:e,style:{pointerEvents:"none",...t.style}})})});Ep.displayName=Sp;var Cp="CheckboxBubbleInput",Tp=v.forwardRef(({__scopeCheckbox:t,...e},r)=>{const{control:n,hasConsumerStoppedPropagationRef:o,checked:i,defaultChecked:a,required:s,disabled:u,name:l,value:c,form:h,bubbleInput:f,setBubbleInput:d}=Du(Cp,t),b=Te(r,d),g=a8(i),m=Hf(n);v.useEffect(()=>{const x=f;if(!x)return;const S=window.HTMLInputElement.prototype,A=Object.getOwnPropertyDescriptor(S,"checked").set,R=!o.current;if(g!==i&&A){const _=new Event("click",{bubbles:R});x.indeterminate=Ht(i),A.call(x,Ht(i)?!1:i),x.dispatchEvent(_)}},[f,g,i,o]);const y=v.useRef(Ht(i)?!1:i);return p.jsx(ve.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??y.current,required:s,disabled:u,name:l,value:c,form:h,...e,tabIndex:-1,ref:b,style:{...e.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Tp.displayName=Cp;function c8(t){return typeof t=="function"}function Ht(t){return t==="indeterminate"}function Np(t){return Ht(t)?"indeterminate":t?"checked":"unchecked"}const d8=v.forwardRef(({className:t,...e},r)=>p.jsx(Lu,{ref:r,className:Ne("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),...e,children:p.jsx(Ep,{className:Ne("flex items-center justify-center text-current"),children:p.jsx(Os,{className:"h-4 w-4"})})}));d8.displayName=Lu.displayName;const f8=({onDownload:t,disabled:e=!1})=>{const[r,n]=w.useState(!0),[o,i]=w.useState(!1),[a,s]=w.useState(!1);w.useEffect(()=>{try{s(window.self!==window.top)}catch{s(!0)}},[]);const u=()=>{r&&t&&!o&&(t(),i(!0),a&&window.parent.postMessage({type:"OPEN_POPUP",payload:"1"},"*"))};return p.jsxs("div",{className:"py-4 max-w-[600px] w-full flex flex-col justify-center items-center",children:[p.jsx("div",{className:"flex w-full md:w-1/2 justify-center items-center",children:p.jsx(ot,{disabled:!r||o||e,onClick:u,className:"w-full bg-black text-white",children:o?p.jsxs(p.Fragment,{children:[p.jsx(Os,{className:"h-4 w-4 mr-2"}),"Thank you!"]}):p.jsxs(p.Fragment,{children:[p.jsx(Dm,{className:"h-4 w-4 mr-2"}),"Download"]})})}),p.jsxs("label",{className:"flex items-center justify-center space-x-2 cursor-pointer mt-3",children:[p.jsx("input",{className:"",type:"checkbox",checked:r,onChange:l=>n(l.target.checked),disabled:o||e}),p.jsxs("span",{className:"text-sm text-muted-foreground",children:["I accept the"," ",p.jsx("a",{href:"https://myracereel.com/terms-of-service",className:"underline hover:text-foreground transition-colors",target:"_blank",rel:"noopener noreferrer",children:"Terms of Service"}),"."]})]})]})};function Ap(t,e){return function(){return t.apply(e,arguments)}}const{toString:p8}=Object.prototype,{getPrototypeOf:Mu}=Object,{iterator:qi,toStringTag:Op}=Symbol,zi=(t=>e=>{const r=p8.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),et=t=>(t=t.toLowerCase(),e=>zi(e)===t),Ui=t=>e=>typeof e===t,{isArray:tn}=Array,Hr=Ui("undefined");function Yn(t){return t!==null&&!Hr(t)&&t.constructor!==null&&!Hr(t.constructor)&&Ie(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const jp=et("ArrayBuffer");function h8(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&jp(t.buffer),e}const m8=Ui("string"),Ie=Ui("function"),Rp=Ui("number"),Xn=t=>t!==null&&typeof t=="object",b8=t=>t===!0||t===!1,Oo=t=>{if(zi(t)!=="object")return!1;const e=Mu(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Op in t)&&!(qi in t)},g8=t=>{if(!Xn(t)||Yn(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},y8=et("Date"),v8=et("File"),x8=t=>!!(t&&typeof t.uri<"u"),w8=t=>t&&typeof t.getParts<"u",S8=et("Blob"),E8=et("FileList"),C8=t=>Xn(t)&&Ie(t.pipe);function T8(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Xc=T8(),Kc=typeof Xc.FormData<"u"?Xc.FormData:void 0,N8=t=>{let e;return t&&(Kc&&t instanceof Kc||Ie(t.append)&&((e=zi(t))==="formdata"||e==="object"&&Ie(t.toString)&&t.toString()==="[object FormData]"))},A8=et("URLSearchParams"),[O8,j8,R8,P8]=["ReadableStream","Request","Response","Headers"].map(et),_8=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Kn(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,o;if(typeof t!="object"&&(t=[t]),tn(t))for(n=0,o=t.length;n<o;n++)e.call(null,t[n],n,t);else{if(Yn(t))return;const i=r?Object.getOwnPropertyNames(t):Object.keys(t),a=i.length;let s;for(n=0;n<a;n++)s=i[n],e.call(null,t[s],s,t)}}function Pp(t,e){if(Yn(t))return null;e=e.toLowerCase();const r=Object.keys(t);let n=r.length,o;for(;n-- >0;)if(o=r[n],e===o.toLowerCase())return o;return null}const rr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,_p=t=>!Hr(t)&&t!==rr;function bs(){const{caseless:t,skipUndefined:e}=_p(this)&&this||{},r={},n=(o,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const a=t&&Pp(r,i)||i;Oo(r[a])&&Oo(o)?r[a]=bs(r[a],o):Oo(o)?r[a]=bs({},o):tn(o)?r[a]=o.slice():(!e||!Hr(o))&&(r[a]=o)};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&Kn(arguments[o],n);return r}const k8=(t,e,r,{allOwnKeys:n}={})=>(Kn(e,(o,i)=>{r&&Ie(o)?Object.defineProperty(t,i,{value:Ap(o,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,i,{value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),t),I8=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),D8=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},L8=(t,e,r,n)=>{let o,i,a;const s={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)a=o[i],(!n||n(a,t,e))&&!s[a]&&(e[a]=t[a],s[a]=!0);t=r!==!1&&Mu(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},M8=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},$8=t=>{if(!t)return null;if(tn(t))return t;let e=t.length;if(!Rp(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},B8=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Mu(Uint8Array)),F8=(t,e)=>{const n=(t&&t[qi]).call(t);let o;for(;(o=n.next())&&!o.done;){const i=o.value;e.call(t,i[0],i[1])}},H8=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},q8=et("HTMLFormElement"),z8=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Jc=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),U8=et("RegExp"),kp=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};Kn(r,(o,i)=>{let a;(a=e(o,i,t))!==!1&&(n[i]=a||o)}),Object.defineProperties(t,n)},V8=t=>{kp(t,(e,r)=>{if(Ie(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(Ie(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},W8=(t,e)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return tn(t)?n(t):n(String(t).split(e)),r},G8=()=>{},Y8=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function X8(t){return!!(t&&Ie(t.append)&&t[Op]==="FormData"&&t[qi])}const K8=t=>{const e=new Array(10),r=(n,o)=>{if(Xn(n)){if(e.indexOf(n)>=0)return;if(Yn(n))return n;if(!("toJSON"in n)){e[o]=n;const i=tn(n)?[]:{};return Kn(n,(a,s)=>{const u=r(a,o+1);!Hr(u)&&(i[s]=u)}),e[o]=void 0,i}}return n};return r(t,0)},J8=et("AsyncFunction"),Z8=t=>t&&(Xn(t)||Ie(t))&&Ie(t.then)&&Ie(t.catch),Ip=((t,e)=>t?setImmediate:e?((r,n)=>(rr.addEventListener("message",({source:o,data:i})=>{o===rr&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),rr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Ie(rr.postMessage)),Q8=typeof queueMicrotask<"u"?queueMicrotask.bind(rr):typeof process<"u"&&process.nextTick||Ip,eC=t=>t!=null&&Ie(t[qi]),j={isArray:tn,isArrayBuffer:jp,isBuffer:Yn,isFormData:N8,isArrayBufferView:h8,isString:m8,isNumber:Rp,isBoolean:b8,isObject:Xn,isPlainObject:Oo,isEmptyObject:g8,isReadableStream:O8,isRequest:j8,isResponse:R8,isHeaders:P8,isUndefined:Hr,isDate:y8,isFile:v8,isReactNativeBlob:x8,isReactNative:w8,isBlob:S8,isRegExp:U8,isFunction:Ie,isStream:C8,isURLSearchParams:A8,isTypedArray:B8,isFileList:E8,forEach:Kn,merge:bs,extend:k8,trim:_8,stripBOM:I8,inherits:D8,toFlatObject:L8,kindOf:zi,kindOfTest:et,endsWith:M8,toArray:$8,forEachEntry:F8,matchAll:H8,isHTMLForm:q8,hasOwnProperty:Jc,hasOwnProp:Jc,reduceDescriptors:kp,freezeMethods:V8,toObjectSet:W8,toCamelCase:z8,noop:G8,toFiniteNumber:Y8,findKey:Pp,global:rr,isContextDefined:_p,isSpecCompliantForm:X8,toJSONObject:K8,isAsyncFn:J8,isThenable:Z8,setImmediate:Ip,asap:Q8,isIterable:eC};let V=class Dp extends Error{static from(e,r,n,o,i,a){const s=new Dp(e.message,r||e.code,n,o,i);return s.cause=e,s.name=e.name,e.status!=null&&s.status==null&&(s.status=e.status),a&&Object.assign(s,a),s}constructor(e,r,n,o,i){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),o&&(this.request=o),i&&(this.response=i,this.status=i.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:j.toJSONObject(this.config),code:this.code,status:this.status}}};V.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";V.ERR_BAD_OPTION="ERR_BAD_OPTION";V.ECONNABORTED="ECONNABORTED";V.ETIMEDOUT="ETIMEDOUT";V.ERR_NETWORK="ERR_NETWORK";V.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";V.ERR_DEPRECATED="ERR_DEPRECATED";V.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";V.ERR_BAD_REQUEST="ERR_BAD_REQUEST";V.ERR_CANCELED="ERR_CANCELED";V.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";V.ERR_INVALID_URL="ERR_INVALID_URL";const tC=null;function gs(t){return j.isPlainObject(t)||j.isArray(t)}function Lp(t){return j.endsWith(t,"[]")?t.slice(0,-2):t}function ga(t,e,r){return t?t.concat(e).map(function(o,i){return o=Lp(o),!r&&i?"["+o+"]":o}).join(r?".":""):e}function rC(t){return j.isArray(t)&&!t.some(gs)}const nC=j.toFlatObject(j,{},null,function(e){return/^is[A-Z]/.test(e)});function Vi(t,e,r){if(!j.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=j.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,m){return!j.isUndefined(m[g])});const n=r.metaTokens,o=r.visitor||c,i=r.dots,a=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&j.isSpecCompliantForm(e);if(!j.isFunction(o))throw new TypeError("visitor must be a function");function l(b){if(b===null)return"";if(j.isDate(b))return b.toISOString();if(j.isBoolean(b))return b.toString();if(!u&&j.isBlob(b))throw new V("Blob is not supported. Use a Buffer instead.");return j.isArrayBuffer(b)||j.isTypedArray(b)?u&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function c(b,g,m){let y=b;if(j.isReactNative(e)&&j.isReactNativeBlob(b))return e.append(ga(m,g,i),l(b)),!1;if(b&&!m&&typeof b=="object"){if(j.endsWith(g,"{}"))g=n?g:g.slice(0,-2),b=JSON.stringify(b);else if(j.isArray(b)&&rC(b)||(j.isFileList(b)||j.endsWith(g,"[]"))&&(y=j.toArray(b)))return g=Lp(g),y.forEach(function(S,E){!(j.isUndefined(S)||S===null)&&e.append(a===!0?ga([g],E,i):a===null?g:g+"[]",l(S))}),!1}return gs(b)?!0:(e.append(ga(m,g,i),l(b)),!1)}const h=[],f=Object.assign(nC,{defaultVisitor:c,convertValue:l,isVisitable:gs});function d(b,g){if(!j.isUndefined(b)){if(h.indexOf(b)!==-1)throw Error("Circular reference detected in "+g.join("."));h.push(b),j.forEach(b,function(y,x){(!(j.isUndefined(y)||y===null)&&o.call(e,y,j.isString(x)?x.trim():x,g,f))===!0&&d(y,g?g.concat(x):[x])}),h.pop()}}if(!j.isObject(t))throw new TypeError("data must be an object");return d(t),e}function Zc(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function $u(t,e){this._pairs=[],t&&Vi(t,this,e)}const Mp=$u.prototype;Mp.append=function(e,r){this._pairs.push([e,r])};Mp.toString=function(e){const r=e?function(n){return e.call(this,n,Zc)}:Zc;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function oC(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function $p(t,e,r){if(!e)return t;const n=r&&r.encode||oC,o=j.isFunction(r)?{serialize:r}:r,i=o&&o.serialize;let a;if(i?a=i(e,o):a=j.isURLSearchParams(e)?e.toString():new $u(e,o).toString(n),a){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t}class Qc{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){j.forEach(this.handlers,function(n){n!==null&&e(n)})}}const Bu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},iC=typeof URLSearchParams<"u"?URLSearchParams:$u,aC=typeof FormData<"u"?FormData:null,sC=typeof Blob<"u"?Blob:null,uC={isBrowser:!0,classes:{URLSearchParams:iC,FormData:aC,Blob:sC},protocols:["http","https","file","blob","url","data"]},Fu=typeof window<"u"&&typeof document<"u",ys=typeof navigator=="object"&&navigator||void 0,lC=Fu&&(!ys||["ReactNative","NativeScript","NS"].indexOf(ys.product)<0),cC=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",dC=Fu&&window.location.href||"http://localhost",fC=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Fu,hasStandardBrowserEnv:lC,hasStandardBrowserWebWorkerEnv:cC,navigator:ys,origin:dC},Symbol.toStringTag,{value:"Module"})),Oe={...fC,...uC};function pC(t,e){return Vi(t,new Oe.classes.URLSearchParams,{visitor:function(r,n,o,i){return Oe.isNode&&j.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...e})}function hC(t){return j.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function mC(t){const e={},r=Object.keys(t);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],e[i]=t[i];return e}function Bp(t){function e(r,n,o,i){let a=r[i++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),u=i>=r.length;return a=!a&&j.isArray(o)?o.length:a,u?(j.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!s):((!o[a]||!j.isObject(o[a]))&&(o[a]=[]),e(r,n,o[a],i)&&j.isArray(o[a])&&(o[a]=mC(o[a])),!s)}if(j.isFormData(t)&&j.isFunction(t.entries)){const r={};return j.forEachEntry(t,(n,o)=>{e(hC(n),o,r,0)}),r}return null}function bC(t,e,r){if(j.isString(t))try{return(e||JSON.parse)(t),j.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const Jn={transitional:Bu,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=j.isObject(e);if(i&&j.isHTMLForm(e)&&(e=new FormData(e)),j.isFormData(e))return o?JSON.stringify(Bp(e)):e;if(j.isArrayBuffer(e)||j.isBuffer(e)||j.isStream(e)||j.isFile(e)||j.isBlob(e)||j.isReadableStream(e))return e;if(j.isArrayBufferView(e))return e.buffer;if(j.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return pC(e,this.formSerializer).toString();if((s=j.isFileList(e))||n.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Vi(s?{"files[]":e}:e,u&&new u,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),bC(e)):e}],transformResponse:[function(e){const r=this.transitional||Jn.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(j.isResponse(e)||j.isReadableStream(e))return e;if(e&&j.isString(e)&&(n&&!this.responseType||o)){const a=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(e,this.parseReviver)}catch(s){if(a)throw s.name==="SyntaxError"?V.from(s,V.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Oe.classes.FormData,Blob:Oe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};j.forEach(["delete","get","head","post","put","patch"],t=>{Jn.headers[t]={}});const gC=j.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),yC=t=>{const e={};let r,n,o;return t&&t.split(`
|
|
280
280
|
`).forEach(function(a){o=a.indexOf(":"),r=a.substring(0,o).trim().toLowerCase(),n=a.substring(o+1).trim(),!(!r||e[r]&&gC[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e},ed=Symbol("internals");function fn(t){return t&&String(t).trim().toLowerCase()}function jo(t){return t===!1||t==null?t:j.isArray(t)?t.map(jo):String(t)}function vC(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}const xC=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function ya(t,e,r,n,o){if(j.isFunction(n))return n.call(this,e,r);if(o&&(e=r),!!j.isString(e)){if(j.isString(n))return e.indexOf(n)!==-1;if(j.isRegExp(n))return n.test(e)}}function wC(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function SC(t,e){const r=j.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(o,i,a){return this[n].call(this,e,o,i,a)},configurable:!0})})}let De=class{constructor(e){e&&this.set(e)}set(e,r,n){const o=this;function i(s,u,l){const c=fn(u);if(!c)throw new Error("header name must be a non-empty string");const h=j.findKey(o,c);(!h||o[h]===void 0||l===!0||l===void 0&&o[h]!==!1)&&(o[h||u]=jo(s))}const a=(s,u)=>j.forEach(s,(l,c)=>i(l,c,u));if(j.isPlainObject(e)||e instanceof this.constructor)a(e,r);else if(j.isString(e)&&(e=e.trim())&&!xC(e))a(yC(e),r);else if(j.isObject(e)&&j.isIterable(e)){let s={},u,l;for(const c of e){if(!j.isArray(c))throw TypeError("Object iterator must return a key-value pair");s[l=c[0]]=(u=s[l])?j.isArray(u)?[...u,c[1]]:[u,c[1]]:c[1]}a(s,r)}else e!=null&&i(r,e,n);return this}get(e,r){if(e=fn(e),e){const n=j.findKey(this,e);if(n){const o=this[n];if(!r)return o;if(r===!0)return vC(o);if(j.isFunction(r))return r.call(this,o,n);if(j.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=fn(e),e){const n=j.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||ya(this,this[n],n,r)))}return!1}delete(e,r){const n=this;let o=!1;function i(a){if(a=fn(a),a){const s=j.findKey(n,a);s&&(!r||ya(n,n[s],s,r))&&(delete n[s],o=!0)}}return j.isArray(e)?e.forEach(i):i(e),o}clear(e){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!e||ya(this,this[i],i,e,!0))&&(delete this[i],o=!0)}return o}normalize(e){const r=this,n={};return j.forEach(this,(o,i)=>{const a=j.findKey(n,i);if(a){r[a]=jo(o),delete r[i];return}const s=e?wC(i):String(i).trim();s!==i&&delete r[i],r[s]=jo(o),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return j.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=e&&j.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(`
|
|
281
281
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const n=new this(e);return r.forEach(o=>n.set(o)),n}static accessor(e){const n=(this[ed]=this[ed]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=fn(a);n[s]||(SC(o,a),n[s]=!0)}return j.isArray(e)?e.forEach(i):i(e),this}};De.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);j.reduceDescriptors(De.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}});j.freezeMethods(De);function va(t,e){const r=this||Jn,n=e||r,o=De.from(n.headers);let i=n.data;return j.forEach(t,function(s){i=s.call(r,i,o.normalize(),e?e.status:void 0)}),o.normalize(),i}function Fp(t){return!!(t&&t.__CANCEL__)}let Zn=class extends V{constructor(e,r,n){super(e??"canceled",V.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}};function Hp(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new V("Request failed with status code "+r.status,[V.ERR_BAD_REQUEST,V.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function EC(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function CC(t,e){t=t||10;const r=new Array(t),n=new Array(t);let o=0,i=0,a;return e=e!==void 0?e:1e3,function(u){const l=Date.now(),c=n[i];a||(a=l),r[o]=u,n[o]=l;let h=i,f=0;for(;h!==o;)f+=r[h++],h=h%t;if(o=(o+1)%t,o===i&&(i=(i+1)%t),l-a<e)return;const d=c&&l-c;return d?Math.round(f*1e3/d):void 0}}function TC(t,e){let r=0,n=1e3/e,o,i;const a=(l,c=Date.now())=>{r=c,o=null,i&&(clearTimeout(i),i=null),t(...l)};return[(...l)=>{const c=Date.now(),h=c-r;h>=n?a(l,c):(o=l,i||(i=setTimeout(()=>{i=null,a(o)},n-h)))},()=>o&&a(o)]}const ii=(t,e,r=3)=>{let n=0;const o=CC(50,250);return TC(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,u=a-n,l=o(u),c=a<=s;n=a;const h={loaded:a,total:s,progress:s?a/s:void 0,bytes:u,rate:l||void 0,estimated:l&&s&&c?(s-a)/l:void 0,event:i,lengthComputable:s!=null,[e?"download":"upload"]:!0};t(h)},r)},td=(t,e)=>{const r=t!=null;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},rd=t=>(...e)=>j.asap(()=>t(...e)),NC=Oe.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,Oe.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(Oe.origin),Oe.navigator&&/(msie|trident)/i.test(Oe.navigator.userAgent)):()=>!0,AC=Oe.hasStandardBrowserEnv?{write(t,e,r,n,o,i,a){if(typeof document>"u")return;const s=[`${t}=${encodeURIComponent(e)}`];j.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),j.isString(n)&&s.push(`path=${n}`),j.isString(o)&&s.push(`domain=${o}`),i===!0&&s.push("secure"),j.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function OC(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function jC(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function qp(t,e,r){let n=!OC(e);return t&&(n||r==!1)?jC(t,e):e}const nd=t=>t instanceof De?{...t}:t;function cr(t,e){e=e||{};const r={};function n(l,c,h,f){return j.isPlainObject(l)&&j.isPlainObject(c)?j.merge.call({caseless:f},l,c):j.isPlainObject(c)?j.merge({},c):j.isArray(c)?c.slice():c}function o(l,c,h,f){if(j.isUndefined(c)){if(!j.isUndefined(l))return n(void 0,l,h,f)}else return n(l,c,h,f)}function i(l,c){if(!j.isUndefined(c))return n(void 0,c)}function a(l,c){if(j.isUndefined(c)){if(!j.isUndefined(l))return n(void 0,l)}else return n(void 0,c)}function s(l,c,h){if(h in e)return n(l,c);if(h in t)return n(void 0,l)}const u={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(l,c,h)=>o(nd(l),nd(c),h,!0)};return j.forEach(Object.keys({...t,...e}),function(c){if(c==="__proto__"||c==="constructor"||c==="prototype")return;const h=j.hasOwnProp(u,c)?u[c]:o,f=h(t[c],e[c],c);j.isUndefined(f)&&h!==s||(r[c]=f)}),r}const zp=t=>{const e=cr({},t);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=e;if(e.headers=a=De.from(a),e.url=$p(qp(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),j.isFormData(r)){if(Oe.hasStandardBrowserEnv||Oe.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(j.isFunction(r.getHeaders)){const u=r.getHeaders(),l=["content-type","content-length"];Object.entries(u).forEach(([c,h])=>{l.includes(c.toLowerCase())&&a.set(c,h)})}}if(Oe.hasStandardBrowserEnv&&(n&&j.isFunction(n)&&(n=n(e)),n||n!==!1&&NC(e.url))){const u=o&&i&&AC.read(i);u&&a.set(o,u)}return e},RC=typeof XMLHttpRequest<"u",PC=RC&&function(t){return new Promise(function(r,n){const o=zp(t);let i=o.data;const a=De.from(o.headers).normalize();let{responseType:s,onUploadProgress:u,onDownloadProgress:l}=o,c,h,f,d,b;function g(){d&&d(),b&&b(),o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}let m=new XMLHttpRequest;m.open(o.method.toUpperCase(),o.url,!0),m.timeout=o.timeout;function y(){if(!m)return;const S=De.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),A={data:!s||s==="text"||s==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:S,config:t,request:m};Hp(function(_){r(_),g()},function(_){n(_),g()},A),m=null}"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(y)},m.onabort=function(){m&&(n(new V("Request aborted",V.ECONNABORTED,t,m)),m=null)},m.onerror=function(E){const A=E&&E.message?E.message:"Network Error",R=new V(A,V.ERR_NETWORK,t,m);R.event=E||null,n(R),m=null},m.ontimeout=function(){let E=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const A=o.transitional||Bu;o.timeoutErrorMessage&&(E=o.timeoutErrorMessage),n(new V(E,A.clarifyTimeoutError?V.ETIMEDOUT:V.ECONNABORTED,t,m)),m=null},i===void 0&&a.setContentType(null),"setRequestHeader"in m&&j.forEach(a.toJSON(),function(E,A){m.setRequestHeader(A,E)}),j.isUndefined(o.withCredentials)||(m.withCredentials=!!o.withCredentials),s&&s!=="json"&&(m.responseType=o.responseType),l&&([f,b]=ii(l,!0),m.addEventListener("progress",f)),u&&m.upload&&([h,d]=ii(u),m.upload.addEventListener("progress",h),m.upload.addEventListener("loadend",d)),(o.cancelToken||o.signal)&&(c=S=>{m&&(n(!S||S.type?new Zn(null,t,m):S),m.abort(),m=null)},o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));const x=EC(o.url);if(x&&Oe.protocols.indexOf(x)===-1){n(new V("Unsupported protocol "+x+":",V.ERR_BAD_REQUEST,t));return}m.send(i||null)})},_C=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let n=new AbortController,o;const i=function(l){if(!o){o=!0,s();const c=l instanceof Error?l:this.reason;n.abort(c instanceof V?c:new Zn(c instanceof Error?c.message:c))}};let a=e&&setTimeout(()=>{a=null,i(new V(`timeout of ${e}ms exceeded`,V.ETIMEDOUT))},e);const s=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),t=null)};t.forEach(l=>l.addEventListener("abort",i));const{signal:u}=n;return u.unsubscribe=()=>j.asap(s),u}},kC=function*(t,e){let r=t.byteLength;if(r<e){yield t;return}let n=0,o;for(;n<r;)o=n+e,yield t.slice(n,o),n=o},IC=async function*(t,e){for await(const r of DC(t))yield*kC(r,e)},DC=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:r,value:n}=await e.read();if(r)break;yield n}}finally{await e.cancel()}},od=(t,e,r,n)=>{const o=IC(t,e);let i=0,a,s=u=>{a||(a=!0,n&&n(u))};return new ReadableStream({async pull(u){try{const{done:l,value:c}=await o.next();if(l){s(),u.close();return}let h=c.byteLength;if(r){let f=i+=h;r(f)}u.enqueue(new Uint8Array(c))}catch(l){throw s(l),l}},cancel(u){return s(u),o.return()}},{highWaterMark:2})},id=64*1024,{isFunction:xo}=j,LC=(({Request:t,Response:e})=>({Request:t,Response:e}))(j.global),{ReadableStream:ad,TextEncoder:sd}=j.global,ud=(t,...e)=>{try{return!!t(...e)}catch{return!1}},MC=t=>{t=j.merge.call({skipUndefined:!0},LC,t);const{fetch:e,Request:r,Response:n}=t,o=e?xo(e):typeof fetch=="function",i=xo(r),a=xo(n);if(!o)return!1;const s=o&&xo(ad),u=o&&(typeof sd=="function"?(b=>g=>b.encode(g))(new sd):async b=>new Uint8Array(await new r(b).arrayBuffer())),l=i&&s&&ud(()=>{let b=!1;const g=new r(Oe.origin,{body:new ad,method:"POST",get duplex(){return b=!0,"half"}}).headers.has("Content-Type");return b&&!g}),c=a&&s&&ud(()=>j.isReadableStream(new n("").body)),h={stream:c&&(b=>b.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(b=>{!h[b]&&(h[b]=(g,m)=>{let y=g&&g[b];if(y)return y.call(g);throw new V(`Response type '${b}' is not supported`,V.ERR_NOT_SUPPORT,m)})});const f=async b=>{if(b==null)return 0;if(j.isBlob(b))return b.size;if(j.isSpecCompliantForm(b))return(await new r(Oe.origin,{method:"POST",body:b}).arrayBuffer()).byteLength;if(j.isArrayBufferView(b)||j.isArrayBuffer(b))return b.byteLength;if(j.isURLSearchParams(b)&&(b=b+""),j.isString(b))return(await u(b)).byteLength},d=async(b,g)=>{const m=j.toFiniteNumber(b.getContentLength());return m??f(g)};return async b=>{let{url:g,method:m,data:y,signal:x,cancelToken:S,timeout:E,onDownloadProgress:A,onUploadProgress:R,responseType:_,headers:L,withCredentials:B="same-origin",fetchOptions:M}=zp(b),C=e||fetch;_=_?(_+"").toLowerCase():"text";let T=_C([x,S&&S.toAbortSignal()],E),k=null;const I=T&&T.unsubscribe&&(()=>{T.unsubscribe()});let N;try{if(R&&l&&m!=="get"&&m!=="head"&&(N=await d(L,y))!==0){let re=new r(g,{method:"POST",body:y,duplex:"half"}),Z;if(j.isFormData(y)&&(Z=re.headers.get("content-type"))&&L.setContentType(Z),re.body){const[H,F]=td(N,ii(rd(R)));y=od(re.body,id,H,F)}}j.isString(B)||(B=B?"include":"omit");const O=i&&"credentials"in r.prototype,P={...M,signal:T,method:m.toUpperCase(),headers:L.normalize().toJSON(),body:y,duplex:"half",credentials:O?B:void 0};k=i&&new r(g,P);let D=await(i?C(k,M):C(g,P));const $=c&&(_==="stream"||_==="response");if(c&&(A||$&&I)){const re={};["status","statusText","headers"].forEach(he=>{re[he]=D[he]});const Z=j.toFiniteNumber(D.headers.get("content-length")),[H,F]=A&&td(Z,ii(rd(A),!0))||[];D=new n(od(D.body,id,H,()=>{F&&F(),I&&I()}),re)}_=_||"text";let z=await h[j.findKey(h,_)||"text"](D,b);return!$&&I&&I(),await new Promise((re,Z)=>{Hp(re,Z,{data:z,headers:De.from(D.headers),status:D.status,statusText:D.statusText,config:b,request:k})})}catch(O){throw I&&I(),O&&O.name==="TypeError"&&/Load failed|fetch/i.test(O.message)?Object.assign(new V("Network Error",V.ERR_NETWORK,b,k,O&&O.response),{cause:O.cause||O}):V.from(O,O&&O.code,b,k,O&&O.response)}}},$C=new Map,Up=t=>{let e=t&&t.env||{};const{fetch:r,Request:n,Response:o}=e,i=[n,o,r];let a=i.length,s=a,u,l,c=$C;for(;s--;)u=i[s],l=c.get(u),l===void 0&&c.set(u,l=s?new Map:MC(e)),c=l;return l};Up();const Hu={http:tC,xhr:PC,fetch:{get:Up}};j.forEach(Hu,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const ld=t=>`- ${t}`,BC=t=>j.isFunction(t)||t===null||t===!1;function FC(t,e){t=j.isArray(t)?t:[t];const{length:r}=t;let n,o;const i={};for(let a=0;a<r;a++){n=t[a];let s;if(o=n,!BC(n)&&(o=Hu[(s=String(n)).toLowerCase()],o===void 0))throw new V(`Unknown adapter '${s}'`);if(o&&(j.isFunction(o)||(o=o.get(e))))break;i[s||"#"+a]=o}if(!o){const a=Object.entries(i).map(([u,l])=>`adapter ${u} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=r?a.length>1?`since :
|
|
282
282
|
`+a.map(ld).join(`
|
package/dist/index.es.js
CHANGED
|
@@ -2958,7 +2958,7 @@ const vl = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, xl = mt, X
|
|
|
2958
2958
|
{
|
|
2959
2959
|
variants: {
|
|
2960
2960
|
variant: {
|
|
2961
|
-
default: "bg-
|
|
2961
|
+
default: "bg-black text-white shadow-lg shadow-primary/25",
|
|
2962
2962
|
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
|
2963
2963
|
outline: "border border-input bg-transparent hover:bg-secondary hover:text-secondary-foreground",
|
|
2964
2964
|
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
@@ -2979,7 +2979,14 @@ const vl = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, xl = mt, X
|
|
|
2979
2979
|
}
|
|
2980
2980
|
}
|
|
2981
2981
|
), lt = v.forwardRef(
|
|
2982
|
-
({ className: t, variant: e, size: r, asChild: n = !1, ...o }, i) => /* @__PURE__ */ h(
|
|
2982
|
+
({ className: t, variant: e, size: r, asChild: n = !1, ...o }, i) => /* @__PURE__ */ h(
|
|
2983
|
+
n ? bb : "button",
|
|
2984
|
+
{
|
|
2985
|
+
className: Oe(Sb({ variant: e, size: r, className: t })),
|
|
2986
|
+
ref: i,
|
|
2987
|
+
...o
|
|
2988
|
+
}
|
|
2989
|
+
)
|
|
2983
2990
|
);
|
|
2984
2991
|
lt.displayName = "Button";
|
|
2985
2992
|
function Eb(...t) {
|
|
@@ -15791,7 +15798,7 @@ const C8 = ({ onDownload: t, disabled: e = !1 }) => {
|
|
|
15791
15798
|
onClick: () => {
|
|
15792
15799
|
r && t && !o && (t(), i(!0), a && window.parent.postMessage({ type: "OPEN_POPUP", payload: "1" }, "*"));
|
|
15793
15800
|
},
|
|
15794
|
-
className: "w-full",
|
|
15801
|
+
className: "w-full bg-black text-white",
|
|
15795
15802
|
children: o ? /* @__PURE__ */ P(lr, { children: [
|
|
15796
15803
|
/* @__PURE__ */ h(Bs, { className: "h-4 w-4 mr-2" }),
|
|
15797
15804
|
"Thank you!"
|
package/dist/style.css
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap");*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }
|
|
2
2
|
|
|
3
|
-
/*! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:DM Sans,system-ui,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root{--background:0 0% 98%;--foreground:220 20% 15%;--card:0 0% 100%;--card-foreground:220 20% 15%;--popover:0 0% 100%;--popover-foreground:220 20% 15%;--primary:24 100% 50%;--primary-foreground:0 0% 100%;--secondary:220 10% 94%;--secondary-foreground:220 20% 25%;--muted:220 10% 92%;--muted-foreground:220 10% 45%;--accent:24 100% 50%;--accent-foreground:0 0% 100%;--destructive:0 72% 51%;--destructive-foreground:0 0% 100%;--border:220 10% 88%;--input:220 10% 88%;--ring:24 100% 50%;--radius:0.5rem;--sidebar-background:0 0% 100%;--sidebar-foreground:220 10% 45%;--sidebar-primary:24 100% 50%;--sidebar-primary-foreground:0 0% 100%;--sidebar-accent:24 100% 97%;--sidebar-accent-foreground:24 100% 40%;--sidebar-border:220 10% 90%;--sidebar-ring:24 100% 50%;--gradient-primary:linear-gradient(135deg,#f60,#ff8c19);--gradient-subtle:linear-gradient(180deg,#fff,#f9fafa);--shadow-glow:0 0 40px rgba(255,102,0,.15);--shadow-card:0 4px 24px rgba(31,36,46,.08);--success:142 76% 36%;--success-foreground:0 0% 100%;--warning:38 92% 50%;--warning-foreground:0 0% 0%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));font-family:DM Sans,system-ui,sans-serif;color:hsl(var(--foreground));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:DM Sans,sans-serif}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.left-2{left:.5rem}.left-\[50\%\]{left:50%}.right-2{right:.5rem}.right-4{right:1rem}.top-4{top:1rem}.top-\[50\%\]{top:50%}.z-50{z-index:50}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[500px\]{height:500px}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-full{height:100%}.h-px{height:1px}.max-h-\[--radix-select-content-available-height\]{max-height:var(--radix-select-content-available-height)}.max-h-\[var\(--radix-dropdown-menu-content-available-height\)\]{max-height:var(--radix-dropdown-menu-content-available-height)}.min-h-2\.5{min-height:.625rem}.min-h-\[100vh\]{min-height:100vh}.min-h-\[50px\]{min-height:50px}.w-10{width:2.5rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-48{width:12rem}.w-64{width:16rem}.w-9{width:2.25rem}.w-full{width:100%}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.max-w-5xl{max-width:64rem}.max-w-lg{max-width:32rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.origin-\[--radix-dropdown-menu-content-transform-origin\]{transform-origin:var(--radix-dropdown-menu-content-transform-origin)}.origin-\[--radix-select-content-transform-origin\]{transform-origin:var(--radix-select-content-transform-origin)}.translate-x-\[-50\%\]{--tw-translate-x:-50%}.translate-x-\[-50\%\],.translate-y-\[-50\%\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-50\%\]{--tw-translate-y:-50%}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-default{cursor:default}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.375rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem*var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem*var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.whitespace-nowrap{white-space:nowrap}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-l{border-left-width:1px}.border-t{border-top-width:1px}.border-blue-500{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity,1))}.border-input{border-color:hsl(var(--input))}.border-primary{border-color:hsl(var(--primary))}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-background{background-color:hsl(var(--background))}.bg-black\/80{background-color:rgba(0,0,0,.8)}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-muted{background-color:hsl(var(--muted))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-transparent{background-color:transparent}.fill-current{fill:currentColor}.p-1{padding:.25rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-\[1px\]{padding:1px}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-8{padding-left:2rem;padding-right:2rem}.px-\[15px\]{padding-left:15px;padding-right:15px}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.pl-2{padding-left:.5rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-8{padding-right:2rem}.pt-0{padding-top:0}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-card-foreground{color:hsl(var(--card-foreground))}.text-current{color:currentColor}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.underline-offset-4{text-underline-offset:4px}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-md,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-primary\/25{--tw-shadow-color:hsl(var(--primary)/0.25);--tw-shadow:var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-blue-500{outline-color:#3b82f6}.ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.fade-in-0{--tw-enter-opacity:0}.zoom-in-95{--tw-enter-scale:.95}.duration-200{animation-duration:.2s}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:hsl(var(--background))}::-webkit-scrollbar-thumb{background:hsl(var(--muted));border-radius:3px}::-webkit-scrollbar-thumb:hover{background:hsl(var(--muted-foreground))}.file\:border-0::file-selector-button{border-width:0}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.file\:text-foreground::file-selector-button{color:hsl(var(--foreground))}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive)/.9)}.hover\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary)/.9)}.hover\:bg-secondary:hover{background-color:hsl(var(--secondary))}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary)/.8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-muted-foreground:hover{color:hsl(var(--muted-foreground))}.hover\:text-secondary-foreground:hover{color:hsl(var(--secondary-foreground))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-1:focus,.focus\:ring-2:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-ring:focus{--tw-ring-color:hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color:hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:0.25rem}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom],.data-\[side\=left\]\:-translate-x-1[data-side=left]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x:-0.25rem}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x:0.25rem}.data-\[side\=right\]\:translate-x-1[data-side=right],.data-\[side\=top\]\:-translate-y-1[data-side=top]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:-0.25rem}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\[state\=on\]\:bg-accent[data-state=on],.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[placeholder\]\:text-muted-foreground[data-placeholder]{color:hsl(var(--muted-foreground))}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))}.data-\[state\=on\]\:text-accent-foreground[data-state=on]{color:hsl(var(--accent-foreground))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:-0.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:0.5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:-0.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:0.5rem}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x:-50%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y:-48%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x:-50%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y:-48%}@media (min-width:640px){.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem*var(--tw-space-x-reverse));margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:text-left{text-align:left}}@media (min-width:768px){.md\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width:1024px){.lg\:px-0{padding-left:0;padding-right:0}}.\[\&\>span\]\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\[\&\>svg\]\:size-4>svg{width:1rem;height:1rem}.\[\&\>svg\]\:shrink-0>svg{flex-shrink:0}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:1rem;height:1rem}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}
|
|
3
|
+
/*! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:DM Sans,system-ui,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root{--background:0 0% 98%;--foreground:220 20% 15%;--card:0 0% 100%;--card-foreground:220 20% 15%;--popover:0 0% 100%;--popover-foreground:220 20% 15%;--primary:24 100% 50%;--primary-foreground:0 0% 100%;--secondary:220 10% 94%;--secondary-foreground:220 20% 25%;--muted:220 10% 92%;--muted-foreground:220 10% 45%;--accent:24 100% 50%;--accent-foreground:0 0% 100%;--destructive:0 72% 51%;--destructive-foreground:0 0% 100%;--border:220 10% 88%;--input:220 10% 88%;--ring:24 100% 50%;--radius:0.5rem;--sidebar-background:0 0% 100%;--sidebar-foreground:220 10% 45%;--sidebar-primary:24 100% 50%;--sidebar-primary-foreground:0 0% 100%;--sidebar-accent:24 100% 97%;--sidebar-accent-foreground:24 100% 40%;--sidebar-border:220 10% 90%;--sidebar-ring:24 100% 50%;--gradient-primary:linear-gradient(135deg,#f60,#ff8c19);--gradient-subtle:linear-gradient(180deg,#fff,#f9fafa);--shadow-glow:0 0 40px rgba(255,102,0,.15);--shadow-card:0 4px 24px rgba(31,36,46,.08);--success:142 76% 36%;--success-foreground:0 0% 100%;--warning:38 92% 50%;--warning-foreground:0 0% 0%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));font-family:DM Sans,system-ui,sans-serif;color:hsl(var(--foreground));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:DM Sans,sans-serif}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.left-2{left:.5rem}.left-\[50\%\]{left:50%}.right-2{right:.5rem}.right-4{right:1rem}.top-4{top:1rem}.top-\[50\%\]{top:50%}.z-50{z-index:50}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[500px\]{height:500px}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-full{height:100%}.h-px{height:1px}.max-h-\[--radix-select-content-available-height\]{max-height:var(--radix-select-content-available-height)}.max-h-\[var\(--radix-dropdown-menu-content-available-height\)\]{max-height:var(--radix-dropdown-menu-content-available-height)}.min-h-2\.5{min-height:.625rem}.min-h-\[100vh\]{min-height:100vh}.min-h-\[50px\]{min-height:50px}.w-10{width:2.5rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-48{width:12rem}.w-64{width:16rem}.w-9{width:2.25rem}.w-full{width:100%}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.max-w-5xl{max-width:64rem}.max-w-lg{max-width:32rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.origin-\[--radix-dropdown-menu-content-transform-origin\]{transform-origin:var(--radix-dropdown-menu-content-transform-origin)}.origin-\[--radix-select-content-transform-origin\]{transform-origin:var(--radix-select-content-transform-origin)}.translate-x-\[-50\%\]{--tw-translate-x:-50%}.translate-x-\[-50\%\],.translate-y-\[-50\%\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-50\%\]{--tw-translate-y:-50%}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-default{cursor:default}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.375rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem*var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem*var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.whitespace-nowrap{white-space:nowrap}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-l{border-left-width:1px}.border-t{border-top-width:1px}.border-blue-500{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity,1))}.border-input{border-color:hsl(var(--input))}.border-primary{border-color:hsl(var(--primary))}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-background{background-color:hsl(var(--background))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}.bg-black\/80{background-color:rgba(0,0,0,.8)}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-muted{background-color:hsl(var(--muted))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-transparent{background-color:transparent}.fill-current{fill:currentColor}.p-1{padding:.25rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-\[1px\]{padding:1px}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-8{padding-left:2rem;padding-right:2rem}.px-\[15px\]{padding-left:15px;padding-right:15px}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.pl-2{padding-left:.5rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-8{padding-right:2rem}.pt-0{padding-top:0}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-card-foreground{color:hsl(var(--card-foreground))}.text-current{color:currentColor}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.underline-offset-4{text-underline-offset:4px}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-md,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-primary\/25{--tw-shadow-color:hsl(var(--primary)/0.25);--tw-shadow:var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-blue-500{outline-color:#3b82f6}.ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.fade-in-0{--tw-enter-opacity:0}.zoom-in-95{--tw-enter-scale:.95}.duration-200{animation-duration:.2s}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:hsl(var(--background))}::-webkit-scrollbar-thumb{background:hsl(var(--muted));border-radius:3px}::-webkit-scrollbar-thumb:hover{background:hsl(var(--muted-foreground))}.file\:border-0::file-selector-button{border-width:0}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.file\:text-foreground::file-selector-button{color:hsl(var(--foreground))}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive)/.9)}.hover\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary)/.9)}.hover\:bg-secondary:hover{background-color:hsl(var(--secondary))}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary)/.8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-muted-foreground:hover{color:hsl(var(--muted-foreground))}.hover\:text-secondary-foreground:hover{color:hsl(var(--secondary-foreground))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-1:focus,.focus\:ring-2:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-ring:focus{--tw-ring-color:hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color:hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:0.25rem}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom],.data-\[side\=left\]\:-translate-x-1[data-side=left]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x:-0.25rem}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x:0.25rem}.data-\[side\=right\]\:translate-x-1[data-side=right],.data-\[side\=top\]\:-translate-y-1[data-side=top]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:-0.25rem}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\[state\=on\]\:bg-accent[data-state=on],.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[placeholder\]\:text-muted-foreground[data-placeholder]{color:hsl(var(--muted-foreground))}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))}.data-\[state\=on\]\:text-accent-foreground[data-state=on]{color:hsl(var(--accent-foreground))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:-0.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:0.5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:-0.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:0.5rem}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x:-50%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y:-48%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x:-50%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y:-48%}@media (min-width:640px){.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem*var(--tw-space-x-reverse));margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:text-left{text-align:left}}@media (min-width:768px){.md\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width:1024px){.lg\:px-0{padding-left:0;padding-right:0}}.\[\&\>span\]\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\[\&\>svg\]\:size-4>svg{width:1rem;height:1rem}.\[\&\>svg\]\:shrink-0>svg{flex-shrink:0}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:1rem;height:1rem}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../src/ui/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,cAAc;;;
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../src/ui/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,cAAc;;;8EA4BnB,CAAC;AAEF,MAAM,WAAW,WACf,SACE,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAC7C,YAAY,CAAC,OAAO,cAAc,CAAC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,QAAA,MAAM,MAAM,uFAWX,CAAC;AAGF,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
|