@emailmaker/emailmaker 1.0.111-dev.7 → 1.0.111-dev.8
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/README.md +1 -1
- package/{emailmaker-core.3e49164c.js → emailmaker-core.e66b6bbd.js} +1 -1
- package/emailmaker-esm.js +3 -3
- package/emailmaker.d.ts +27 -27
- package/emailmaker.js +9 -3
- package/iframe/js/amp.DVZOiCd2.js +1 -1
- package/iframe/js/chunk.oX6nCJbK.js +1 -1
- package/iframe/js/iframe-eblock.js +1 -1
- package/iframe/js/iframe.js +1 -1
- package/iframe/js/rules.BSaCN7eK.js +1 -1
- package/iframe/js/sanitize-html.Brggoo7U.js +1 -1
- package/package.json +1 -1
- package/runtime/@ant-design/cssinjs/index.js +1 -1
- package/runtime/@ant-design/icons/index.js +1 -1
- package/runtime/THIRD_PARTY_LICENSES.txt +38 -1
- package/runtime/antd/index.js +1 -1
- package/runtime/dayjs/index.js +1 -1
- package/runtime/uuid/index.js +1 -1
- package/static/core/{42aed026.js → 147560ac.js} +1 -1
- package/static/core/{a006f6f7.js → 1503d3c5.js} +1 -1
- package/static/core/{35624a31.js → 29b5cf4c.js} +1 -1
- package/static/core/{a1a8a556.js → 38431fd5.js} +1 -1
- package/static/core/{7692b5d1.js → 3c618aaa.js} +1 -1
- package/static/core/{3e187db3.js → 3da55a10.js} +1 -1
- package/static/core/{c173a170.js → 4c9ffe8a.js} +1 -1
- package/static/core/{1533d54f.js → 6c508e07.js} +3 -3
- package/static/core/{695f6357.js → 6df5e514.js} +1 -1
- package/static/core/{a15add90.js → 73e3b6fe.js} +1 -1
- package/static/core/{549d710f.js → a207410a.js} +1 -1
- package/static/core/{6f768da1.js → a2f4a86d.js} +1 -1
- package/static/core/{c0a64fe8.js → d19f3661.js} +1 -1
- package/static/core/{1f86e870.js → ea9209aa.js} +1 -1
- package/static/runtime/es-BM3Z0tyv.js +444 -0
- package/static/runtime/es-aqetrgqU.js +5 -0
- package/static/runtime/es-su3SZyyq.js +72 -0
- package/ui-kit/index.js +8 -8
- package/vite/index.cjs +1 -1
- package/vite/index.js +1 -1
- package/static/runtime/DownloadOutlined-D8I-Z3GJ.js +0 -57
- package/static/runtime/es-BC0iT53n.js +0 -387
- package/static/runtime/es-DSH7b6d8.js +0 -4
- package/static/runtime/es-XShFVIAB.js +0 -1
- package/static/runtime/objectWithoutProperties-7yjmsvQX.js +0 -2
- /package/iframe/{iframe-eblock.3e49164c.html → iframe-eblock.e66b6bbd.html} +0 -0
- /package/iframe/{iframe.3e49164c.html → iframe.e66b6bbd.html} +0 -0
- /package/static/runtime/{dayjs.min-BL8gJgHn.js → dayjs.min-CoDbPFFV.js} +0 -0
- /package/static/runtime/{dist-Cgj1taBx.js → dist-DkqHVs-N.js} +0 -0
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{n as e,r as t}from"./chunk-PlvwYApe.js";import{t as n}from"./react-BJWnu8vF.js";import{_ as r,a as i,d as a,f as o,g as s,l as c,m as l,n as u,o as d,p as f,r as p,t as m,u as h,v as g}from"./objectWithoutProperties-7yjmsvQX.js";var _=t(n());function v(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function b(e,t,n){return t&&y(e.prototype,t),n&&y(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function x(e,t){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},x(e,t)}function S(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&x(e,t)}function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},C(e)}function w(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(w=function(){return!!e})()}function T(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function E(e,t){if(t&&(r(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return T(e)}function D(e){var t=w();return function(){var n,r=C(e);if(t){var i=C(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return E(this,n)}}function O(e){if(Array.isArray(e))return h(e)}function ee(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function te(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function k(e){return O(e)||ee(e)||c(e)||te()}function A(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function ne(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=new Set;function a(e,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=i.has(e);if(s(!c,`Warning: There may be circular references`),c)return!1;if(e===t)return!0;if(n&&o>1)return!1;i.add(e);var l=o+1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(var u=0;u<e.length;u++)if(!a(e[u],t[u],l))return!1;return!0}if(e&&t&&r(e)===`object`&&r(t)===`object`){var d=Object.keys(e);return d.length===Object.keys(t).length?d.every(function(n){return a(e[n],t[n],l)}):!1}return!1}return a(e,t)}var re=`%`;function ie(e){return e.join(re)}var ae=function(){function e(t){v(this,e),f(this,`instanceId`,void 0),f(this,`cache`,new Map),f(this,`extracted`,new Set),this.instanceId=t}return b(e,[{key:`get`,value:function(e){return this.opGet(ie(e))}},{key:`opGet`,value:function(e){return this.cache.get(e)||null}},{key:`update`,value:function(e,t){return this.opUpdate(ie(e),t)}},{key:`opUpdate`,value:function(e,t){var n=t(this.cache.get(e));n===null?this.cache.delete(e):this.cache.set(e,n)}}]),e}(),oe=[`children`],j=`data-token-hash`,M=`data-css-hash`,se=`__cssinjs_instance__`;function ce(){var e=Math.random().toString(12).slice(2);if(typeof document<`u`&&document.head&&document.body){var t=document.body.querySelectorAll(`style[data-css-hash]`)||[],n=document.head.firstChild;Array.from(t).forEach(function(t){t[se]=t.__cssinjs_instance__||e,t.__cssinjs_instance__===e&&document.head.insertBefore(t,n)});var r={};Array.from(document.querySelectorAll(`style[${M}]`)).forEach(function(t){var n=t.getAttribute(M);if(r[n]){if(t.__cssinjs_instance__===e){var i;(i=t.parentNode)==null||i.removeChild(t)}}else r[n]=!0})}return new ae(e)}var N=_.createContext({hashPriority:`low`,cache:ce(),defaultCache:!0}),le=function(e){var t=e.children,n=m(e,oe),r=_.useContext(N),i=a(function(){var e=o({},r);Object.keys(n).forEach(function(t){var r=n[t];n[t]!==void 0&&(e[t]=r)});var t=n.cache;return e.cache=e.cache||ce(),e.defaultCache=!t&&r.defaultCache,e},[r,n],function(e,t){return!ne(e[0],t[0],!0)||!ne(e[1],t[1],!0)});return _.createElement(N.Provider,{value:i},t)},ue=b(function e(){v(this,e)}),de=`CALC_UNIT`,fe=new RegExp(de,`g`);function pe(e){return typeof e==`number`?`${e}${de}`:e}var me=function(e){S(n,e);var t=D(n);function n(e,i){var a;v(this,n),a=t.call(this),f(T(a),`result`,``),f(T(a),`unitlessCssVar`,void 0),f(T(a),`lowPriority`,void 0);var o=r(e);return a.unitlessCssVar=i,e instanceof n?a.result=`(${e.result})`:o===`number`?a.result=pe(e):o===`string`&&(a.result=e),a}return b(n,[{key:`add`,value:function(e){return e instanceof n?this.result=`${this.result} + ${e.getResult()}`:(typeof e==`number`||typeof e==`string`)&&(this.result=`${this.result} + ${pe(e)}`),this.lowPriority=!0,this}},{key:`sub`,value:function(e){return e instanceof n?this.result=`${this.result} - ${e.getResult()}`:(typeof e==`number`||typeof e==`string`)&&(this.result=`${this.result} - ${pe(e)}`),this.lowPriority=!0,this}},{key:`mul`,value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof n?this.result=`${this.result} * ${e.getResult(!0)}`:(typeof e==`number`||typeof e==`string`)&&(this.result=`${this.result} * ${e}`),this.lowPriority=!1,this}},{key:`div`,value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof n?this.result=`${this.result} / ${e.getResult(!0)}`:(typeof e==`number`||typeof e==`string`)&&(this.result=`${this.result} / ${e}`),this.lowPriority=!1,this}},{key:`getResult`,value:function(e){return this.lowPriority||e?`(${this.result})`:this.result}},{key:`equal`,value:function(e){var t=this,n=(e||{}).unit,r=!0;return typeof n==`boolean`?r=n:Array.from(this.unitlessCssVar).some(function(e){return t.result.includes(e)})&&(r=!1),this.result=this.result.replace(fe,r?`px`:``),this.lowPriority===void 0?this.result:`calc(${this.result})`}}]),n}(ue),he=function(e){S(n,e);var t=D(n);function n(e){var r;return v(this,n),r=t.call(this),f(T(r),`result`,0),e instanceof n?r.result=e.result:typeof e==`number`&&(r.result=e),r}return b(n,[{key:`add`,value:function(e){return e instanceof n?this.result+=e.result:typeof e==`number`&&(this.result+=e),this}},{key:`sub`,value:function(e){return e instanceof n?this.result-=e.result:typeof e==`number`&&(this.result-=e),this}},{key:`mul`,value:function(e){return e instanceof n?this.result*=e.result:typeof e==`number`&&(this.result*=e),this}},{key:`div`,value:function(e){return e instanceof n?this.result/=e.result:typeof e==`number`&&(this.result/=e),this}},{key:`equal`,value:function(){return this.result}}]),n}(ue),ge=function(e,t){var n=e===`css`?me:he;return function(e){return new n(e,t)}};function _e(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var ve=function(){function e(){v(this,e),f(this,`cache`,void 0),f(this,`keys`,void 0),f(this,`cacheCallTimes`,void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return b(e,[{key:`size`,value:function(){return this.keys.length}},{key:`internalGet`,value:function(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r={map:this.cache};return e.forEach(function(e){if(!r)r=void 0;else{var t;r=(t=r)==null||(t=t.map)==null?void 0:t.get(e)}}),(t=r)!=null&&t.value&&n&&(r.value[1]=this.cacheCallTimes++),r?.value}},{key:`get`,value:function(e){return this.internalGet(e,!0)?.[0]}},{key:`has`,value:function(e){return!!this.internalGet(e)}},{key:`set`,value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=d(this.keys.reduce(function(e,t){var n=d(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e},[this.keys[0],this.cacheCallTimes]),1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach(function(e,i){if(i===t.length-1)a.set(e,{value:[n,r.cacheCallTimes++]});else{var o=a.get(e);o?o.map||(o.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}})}},{key:`deleteByPath`,value:function(e,t){var n=e.get(t[0]);if(t.length===1)return n.map?e.set(t[0],{map:n.map}):e.delete(t[0]),n.value?.[0];var r=this.deleteByPath(n.map,t.slice(1));return(!n.map||n.map.size===0)&&!n.value&&e.delete(t[0]),r}},{key:`delete`,value:function(e){if(this.has(e))return this.keys=this.keys.filter(function(t){return!_e(t,e)}),this.deleteByPath(this.cache,e)}}]),e}();f(ve,`MAX_CACHE_SIZE`,20),f(ve,`MAX_CACHE_OFFSET`,5);var ye=0,be=function(){function e(t){v(this,e),f(this,`derivatives`,void 0),f(this,`id`,void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=ye,t.length===0&&t.length,ye+=1}return b(e,[{key:`getDerivativeToken`,value:function(e){return this.derivatives.reduce(function(t,n){return n(e,t)},void 0)}}]),e}(),xe=new ve;function Se(e){var t=Array.isArray(e)?e:[e];return xe.has(t)||xe.set(t,new be(t)),xe.get(t)}var Ce=new WeakMap,we={};function Te(e,t){for(var n=Ce,r=0;r<t.length;r+=1){var i=t[r];n.has(i)||n.set(i,new WeakMap),n=n.get(i)}return n.has(we)||n.set(we,e()),n.get(we)}var Ee=new WeakMap;function P(e){var t=Ee.get(e)||``;return t||(Object.keys(e).forEach(function(n){var i=e[n];t+=n,i instanceof be?t+=i.id:i&&r(i)===`object`?t+=P(i):t+=i}),t=A(t),Ee.set(e,t)),t}function De(e,t){return A(`${t}_${P(e)}`)}var F=`random-${Date.now()}-${Math.random()}`.replace(/\./g,``),Oe=`_bAmBoO_`;function ke(e,t,n){if(i()){var r;p(e,F);var a=document.createElement(`div`);a.style.position=`fixed`,a.style.left=`0`,a.style.top=`0`,t?.(a),document.body.appendChild(a);var o=n?n(a):getComputedStyle(a).content?.includes(Oe);return(r=a.parentNode)==null||r.removeChild(a),u(F),o}return!1}var Ae=void 0;function je(){return Ae===void 0&&(Ae=ke(`:where(.${F}) { content: "${Oe}"!important; }`,function(e){e.className=F})),Ae}var Me=void 0;function Ne(){return Me===void 0&&(Me=ke(`.${F} { inset-block: 93px !important; }`,function(e){e.className=F},function(e){return getComputedStyle(e).bottom===`93px`})),Me}var Pe=i();function Fe(e){return typeof e==`number`?`${e}px`:e}function I(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(arguments.length>4&&arguments[4]!==void 0&&arguments[4])return e;var i=o(o({},r),{},f(f({},j,t),M,n));return`<style ${Object.keys(i).map(function(e){var t=i[e];return t?`${e}="${t}"`:null}).filter(function(e){return e}).join(` `)}>${e}</style>`}var Ie=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``;return`--${t?`${t}-`:``}${e}`.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,`$1-$2`).replace(/([a-z])([A-Z0-9])/g,`$1-$2`).toLowerCase()},Le=function(e,t,n){return Object.keys(e).length?`.${t}${n!=null&&n.scope?`.${n.scope}`:``}{${Object.entries(e).map(function(e){var t=d(e,2);return`${t[0]}:${t[1]};`}).join(``)}}`:``},Re=function(e,t,n){var r={},i={};return Object.entries(e).forEach(function(e){var t,a,o=d(e,2),s=o[0],c=o[1];if(n!=null&&(t=n.preserve)!=null&&t[s])i[s]=c;else if((typeof c==`string`||typeof c==`number`)&&!(n!=null&&(a=n.ignore)!=null&&a[s])){var l,u=Ie(s,n?.prefix);r[u]=typeof c==`number`&&!(n!=null&&(l=n.unitless)!=null&&l[s])?`${c}px`:String(c),i[s]=`var(${u})`}}),[i,Le(r,t,{scope:n?.scope})]},ze=i()?_.useLayoutEffect:_.useEffect,Be=function(e,t){var n=_.useRef(!0);ze(function(){return e(n.current)},t),ze(function(){return n.current=!1,function(){n.current=!0}},[])},Ve=function(e,t){Be(function(t){if(!t)return e()},t)},He=o({},_).useInsertionEffect,Ue=He?function(e,t,n){return He(function(){return e(),t()},n)}:function(e,t,n){_.useMemo(e,n),Be(function(){return t(!0)},n)},We=o({},_).useInsertionEffect===void 0?function(){return function(e){e()}}:function(e){var t=[],n=!1;function r(e){n||t.push(e)}return _.useEffect(function(){return n=!1,function(){n=!0,t.length&&t.forEach(function(e){return e()})}},e),r};function Ge(e,t,n,r,i){var a=_.useContext(N).cache,o=ie([e].concat(k(t))),s=We([o]),c=function(e){a.opUpdate(o,function(t){var r=d(t||[void 0,void 0],2),i=r[0],a=[i===void 0?0:i,r[1]||n()];return e?e(a):a})};_.useMemo(function(){c()},[o]);var l=a.opGet(o)[1];return Ue(function(){i?.(l)},function(e){return c(function(t){var n=d(t,2),r=n[0],a=n[1];return e&&r===0&&i?.(l),[r+1,a]}),function(){a.opUpdate(o,function(t){var n=d(t||[],2),i=n[0],c=i===void 0?0:i,l=n[1];return c-1==0?(s(function(){(e||!a.opGet(o))&&r?.(l,!1)}),null):[c-1,l]})}},[o]),l}var Ke={},qe=`css`,L=new Map;function Je(e){L.set(e,(L.get(e)||0)+1)}function Ye(e,t){typeof document<`u`&&document.querySelectorAll(`style[${j}="${e}"]`).forEach(function(e){if(e.__cssinjs_instance__===t){var n;(n=e.parentNode)==null||n.removeChild(e)}})}var Xe=0;function Ze(e,t){L.set(e,(L.get(e)||0)-1);var n=new Set;L.forEach(function(e,t){e<=0&&n.add(t)}),L.size-n.size>Xe&&n.forEach(function(e){Ye(e,t),L.delete(e)})}var Qe=function(e,t,n,r){var i=o(o({},n.getDerivativeToken(e)),t);return r&&(i=r(i)),i},$e=`token`;function et(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=(0,_.useContext)(N),i=r.cache.instanceId,a=r.container,s=n.salt,c=s===void 0?``:s,l=n.override,u=l===void 0?Ke:l,f=n.formatToken,m=n.getComputedToken,h=n.cssVar,g=Te(function(){return Object.assign.apply(Object,[{}].concat(k(t)))},t),v=P(g),y=P(u),b=h?P(h):``;return Ge($e,[c,e.id,v,y,b],function(){var t=m?m(g,u,e):Qe(g,u,e,f),n=o({},t),r=``;if(h){var i=d(Re(t,h.key,{prefix:h.prefix,ignore:h.ignore,unitless:h.unitless,preserve:h.preserve}),2);t=i[0],r=i[1]}var a=De(t,c);t._tokenKey=a,n._tokenKey=De(n,c);var s=h?.key??a;t._themeKey=s,Je(s);var l=`${qe}-${A(a)}`;return t._hashId=l,[t,l,n,r,h?.key||``]},function(e){Ze(e[0]._themeKey,i)},function(e){var t=d(e,4),n=t[0],r=t[3];if(h&&r){var o=p(r,A(`css-variables-${n._themeKey}`),{mark:M,prepend:`queue`,attachTo:a,priority:-999});o[se]=i,o.setAttribute(j,n._themeKey)}})}var tt=function(e,t,n){var r=d(e,5),i=r[2],a=r[3],o=r[4],s=(n||{}).plain;if(!a)return null;var c=i._tokenKey,l=-999;return[l,c,I(a,o,c,{"data-rc-order":`prependQueue`,"data-rc-priority":`${l}`},s)]},nt={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},rt=`comm`,it=`rule`,at=`decl`,ot=`@import`,st=`@namespace`,ct=`@keyframes`,lt=`@layer`,ut=Math.abs,dt=String.fromCharCode;function ft(e){return e.trim()}function R(e,t,n){return e.replace(t,n)}function pt(e,t,n){return e.indexOf(t,n)}function z(e,t){return e.charCodeAt(t)|0}function B(e,t,n){return e.slice(t,n)}function V(e){return e.length}function mt(e){return e.length}function ht(e,t){return t.push(e),e}var gt=1,H=1,_t=0,U=0,W=0,G=``;function vt(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:gt,column:H,length:o,return:``,siblings:s}}function yt(){return W}function bt(){return W=U>0?z(G,--U):0,H--,W===10&&(H=1,gt--),W}function K(){return W=U<_t?z(G,U++):0,H++,W===10&&(H=1,gt++),W}function q(){return z(G,U)}function xt(){return U}function St(e,t){return B(G,e,t)}function J(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ct(e){return gt=H=1,_t=V(G=e),U=0,[]}function wt(e){return G=``,e}function Tt(e){return ft(St(U-1,Ot(e===91?e+2:e===40?e+1:e)))}function Et(e){for(;(W=q())&&W<33;)K();return J(e)>2||J(W)>3?``:` `}function Dt(e,t){for(;--t&&K()&&!(W<48||W>102||W>57&&W<65||W>70&&W<97););return St(e,xt()+(t<6&&q()==32&&K()==32))}function Ot(e){for(;K();)switch(W){case e:return U;case 34:case 39:e!==34&&e!==39&&Ot(W);break;case 40:e===41&&Ot(e);break;case 92:K();break}return U}function kt(e,t){for(;K()&&e+W!==57&&!(e+W===84&&q()===47););return`/*`+St(t,U-1)+`*`+dt(e===47?e:K())}function At(e){for(;!J(q());)K();return St(e,U)}function jt(e){return wt(Y(``,null,null,null,[``],e=Ct(e),0,[0],e))}function Y(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=K()){case 40:if(m!=108&&z(C,d-1)==58){pt(C+=R(Tt(v),`&`,`&\f`),`&\f`,ut(l?s[l-1]:0))!=-1&&(_=-1);break}case 34:case 39:case 91:C+=Tt(v);break;case 9:case 10:case 13:case 32:C+=Et(m);break;case 92:C+=Dt(xt()-1,7);continue;case 47:switch(q()){case 42:case 47:ht(Nt(kt(K(),xt()),t,n,c),c),(J(m||1)==5||J(q()||1)==5)&&V(C)&&B(C,-1,void 0)!==` `&&(C+=` `);break;default:C+=`/`}break;case 123*h:s[l++]=V(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=R(C,/\f/g,``)),p>0&&(V(C)-d||h===0&&m===47)&&ht(p>32?Pt(C+`;`,r,n,d-1,c):Pt(R(C,` `,``)+`;`,r,n,d-2,c),c);break;case 59:C+=`;`;default:if(ht(S=Mt(C,t,n,l,u,i,s,y,b=[],x=[],d,a),a),v===123)if(u===0)Y(C,t,S,S,b,a,d,s,x);else{switch(f){case 99:if(z(C,3)===110)break;case 108:if(z(C,2)===97)break;default:u=0;case 100:case 109:case 115:}u?Y(e,S,S,r&&ht(Mt(e,S,S,0,0,i,s,y,i,b=[],d,x),x),i,x,d,s,r?b:x):Y(C,S,S,S,[``],x,0,s,x)}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+V(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&bt()==125)continue}switch(C+=dt(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(V(C)-1)*_,_=1;break;case 64:q()===45&&(C+=Tt(K())),f=q(),u=d=V(y=C+=At(xt())),v++;break;case 45:m===45&&V(C)==2&&(h=0)}}return a}function Mt(e,t,n,r,i,a,o,s,c,l,u,d){for(var f=i-1,p=i===0?a:[``],m=mt(p),h=0,g=0,_=0;h<r;++h)for(var v=0,y=B(e,f+1,f=ut(g=o[h])),b=e;v<m;++v)(b=ft(g>0?p[v]+` `+y:R(y,/&\f/g,p[v])))&&(c[_++]=b);return vt(e,t,n,i===0?it:s,c,l,u,d)}function Nt(e,t,n,r){return vt(e,t,n,rt,dt(yt()),B(e,2,-2),0,r)}function Pt(e,t,n,r,i){return vt(e,t,n,at,B(e,0,r),B(e,r+1,-1),r,i)}function Ft(e,t){for(var n=``,r=0;r<e.length;r++)n+=t(e[r],r,e,t)||``;return n}function It(e,t,n,r){switch(e.type){case lt:if(e.children.length)break;case ot:case st:case at:return e.return=e.return||e.value;case rt:return``;case ct:return e.return=e.value+`{`+Ft(e.children,r)+`}`;case it:if(!V(e.value=e.props.join(`,`)))return``}return V(n=Ft(e.children,r))?e.return=e.value+`{`+n+`}`:``}function X(e,t){var n=t.path,r=t.parentSelectors;s(!1,`[Ant Design CSS-in-JS] ${n?`Error in ${n}: `:``}${e}${r.length?` Selector: ${r.join(` | `)}`:``}`)}function Lt(e){return(e.match(/:not\(([^)]*)\)/)?.[1]||``).split(/(\[[^[]*])|(?=[.#])/).filter(function(e){return e}).length>1}function Rt(e){return e.parentSelectors.reduce(function(e,t){return e?t.includes(`&`)?t.replace(/&/g,e):`${e} ${t}`:t},``)}var zt=function(e,t,n){var r=Rt(n).match(/:not\([^)]*\)/g)||[];r.length>0&&r.some(Lt)&&X(`Concat ':not' selector not support in legacy browsers.`,n)},Bt=function(e,t,n){switch(e){case`marginLeft`:case`marginRight`:case`paddingLeft`:case`paddingRight`:case`left`:case`right`:case`borderLeft`:case`borderLeftWidth`:case`borderLeftStyle`:case`borderLeftColor`:case`borderRight`:case`borderRightWidth`:case`borderRightStyle`:case`borderRightColor`:case`borderTopLeftRadius`:case`borderTopRightRadius`:case`borderBottomLeftRadius`:case`borderBottomRightRadius`:X(`You seem to be using non-logical property '${e}' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,n);return;case`margin`:case`padding`:case`borderWidth`:case`borderStyle`:if(typeof t==`string`){var r=t.split(` `).map(function(e){return e.trim()});r.length===4&&r[1]!==r[3]&&X(`You seem to be using '${e}' property with different left ${e} and right ${e}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,n)}return;case`clear`:case`textAlign`:(t===`left`||t===`right`)&&X(`You seem to be using non-logical value '${t}' of ${e}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,n);return;case`borderRadius`:typeof t==`string`&&t.split(`/`).map(function(e){return e.trim()}).reduce(function(e,t){if(e)return e;var n=t.split(` `).map(function(e){return e.trim()});return n.length>=2&&n[0]!==n[1]||n.length===3&&n[1]!==n[2]||n.length===4&&n[2]!==n[3]?!0:e},!1)&&X(`You seem to be using non-logical value '${t}' of ${e}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,n);return;default:}},Vt=function(e,t,n){(typeof t==`string`&&/NaN/g.test(t)||Number.isNaN(t))&&X(`Unexpected 'NaN' in property '${e}: ${t}'.`,n)},Ht=function(e,t,n){n.parentSelectors.some(function(e){return e.split(`,`).some(function(e){return e.split(`&`).length>2})})&&X("Should not use more than one `&` in a selector.",n)},Z=`data-ant-cssinjs-cache-path`,Ut=`_FILE_STYLE__`;function Wt(e){return Object.keys(e).map(function(t){return`${t}:${e[t]}`}).join(`;`)}var Q,Gt=!0;function Kt(){if(!Q&&(Q={},i())){var e=document.createElement(`div`);e.className=Z,e.style.position=`fixed`,e.style.visibility=`hidden`,e.style.top=`-9999px`,document.body.appendChild(e);var t=getComputedStyle(e).content||``;t=t.replace(/^"/,``).replace(/"$/,``),t.split(`;`).forEach(function(e){var t=d(e.split(`:`),2),n=t[0],r=t[1];Q[n]=r});var n=document.querySelector(`style[${Z}]`);if(n){var r;Gt=!1,(r=n.parentNode)==null||r.removeChild(n)}document.body.removeChild(e)}}function qt(e){return Kt(),!!Q[e]}function Jt(e){var t=Q[e],n=null;if(t&&i())if(Gt)n=Ut;else{var r=document.querySelector(`style[${M}="${Q[e]}"]`);r?n=r.innerHTML:delete Q[e]}return[n,t]}var Yt=`_skip_check_`,Xt=`_multi_value_`;function Zt(e){return Ft(jt(e),It).replace(/\{%%%\:[^;];}/g,`;`)}function Qt(e){return r(e)===`object`&&e&&(Yt in e||Xt in e)}function $t(e,t,n){if(!t)return e;var r=`.${t}`,i=n===`low`?`:where(${r})`:r;return e.split(`,`).map(function(e){var t=e.trim().split(/\s+/),n=t[0]||``,r=n.match(/^\w+/)?.[0]||``;return n=`${r}${i}${n.slice(r.length)}`,[n].concat(k(t.slice(1))).join(` `)}).join(`,`)}var en=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},a=i.root,s=i.injectHash,c=i.parentSelectors,l=n.hashId,u=n.layer;n.path;var f=n.hashPriority,p=n.transformers,m=p===void 0?[]:p;n.linters;var h=``,g={};function _(t){var r=t.getName(l);if(!g[r]){var i=d(e(t.style,n,{root:!1,parentSelectors:c}),1)[0];g[r]=`@keyframes ${t.getName(l)}${i}`}}function v(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.forEach(function(e){Array.isArray(e)?v(e,t):e&&t.push(e)}),t}return v(Array.isArray(t)?t:[t]).forEach(function(t){var i=typeof t==`string`&&!a?{}:t;if(typeof i==`string`)h+=`${i}
|
|
3
|
-
`;else if(i._keyframe)_(i);else{var u=m.reduce(function(e,t){var n;return(t==null||(n=t.visit)==null?void 0:n.call(t,e))||e},i);Object.keys(u).forEach(function(t){var i=u[t];if(r(i)===`object`&&i&&(t!==`animationName`||!i._keyframe)&&!Qt(i)){var p=!1,m=t.trim(),v=!1;(a||s)&&l?m.startsWith(`@`)?p=!0:m=$t(m===`&`?``:t,l,f):a&&!l&&(m===`&`||m===``)&&(m=``,v=!0);var y=d(e(i,n,{root:v,injectHash:p,parentSelectors:[].concat(k(c),[m])}),2),b=y[0],x=y[1];g=o(o({},g),x),h+=`${m}${b}`}else{function e(e,t){var n=e.replace(/[A-Z]/g,function(e){return`-${e.toLowerCase()}`}),r=t;!nt[e]&&typeof r==`number`&&r!==0&&(r=`${r}px`),e===`animationName`&&t!=null&&t._keyframe&&(_(t),r=t.getName(l)),h+=`${n}:${r};`}var S=i?.value??i;r(i)===`object`&&i!=null&&i[Xt]&&Array.isArray(S)?S.forEach(function(n){e(t,n)}):e(t,S)}})}}),a?u&&(h&&(h=`@layer ${u.name} {${h}}`),u.dependencies&&(g[`@layer ${u.name}`]=u.dependencies.map(function(e){return`@layer ${e}, ${u.name};`}).join(`
|
|
4
|
-
`))):h=`{${h}}`,[h,g]};function tn(e,t){return A(`${e.join(`%`)}${t}`)}function nn(){return null}var rn=`style`;function an(e,t){var n=e.token,r=e.path,i=e.hashId,a=e.layer,s=e.nonce,c=e.clientOnly,l=e.order,m=l===void 0?0:l,h=_.useContext(N),v=h.autoClear;h.mock;var y=h.defaultCache,b=h.hashPriority,x=h.container,S=h.ssrInline,C=h.transformers,w=h.linters,T=h.cache,E=h.layer,D=n._tokenKey,O=[D];E&&O.push(`layer`),O.push.apply(O,k(r));var ee=Pe,te=d(Ge(rn,O,function(){var e=O.join(`|`);if(qt(e)){var n=d(Jt(e),2),o=n[0],s=n[1];if(o)return[o,D,s,{},c,m]}var l=d(en(t(),{hashId:i,hashPriority:b,layer:E?a:void 0,path:r.join(`-`),transformers:C,linters:w}),2),u=l[0],f=l[1],p=Zt(u);return[p,D,tn(O,p),f,c,m]},function(e,t){var n=d(e,3)[2];(t||v)&&Pe&&u(n,{mark:M,attachTo:x})},function(e){var t=d(e,4),n=t[0];t[1];var r=t[2],i=t[3];if(ee&&n!==`_FILE_STYLE__`){var a={mark:M,prepend:E?!1:`queue`,attachTo:x,priority:m},c=typeof s==`function`?s():s;c&&(a.csp={nonce:c});var l=[],u=[];Object.keys(i).forEach(function(e){e.startsWith(`@layer`)?l.push(e):u.push(e)}),l.forEach(function(e){p(Zt(i[e]),`_layer-${e}`,o(o({},a),{},{prepend:!0}))});var f=p(n,r,a);f[se]=T.instanceId,f.setAttribute(j,D),u.forEach(function(e){p(Zt(i[e]),`_effect-${e}`,a)})}}),3),A=te[0],ne=te[1],re=te[2];return function(e){var t=!S||ee||!y?_.createElement(nn,null):_.createElement(`style`,g({},f(f({},j,ne),M,re),{dangerouslySetInnerHTML:{__html:A}}));return _.createElement(_.Fragment,null,t,e)}}var on=function(e,t,n){var r=d(e,6),i=r[0],a=r[1],o=r[2],s=r[3],c=r[4],l=r[5],u=(n||{}).plain;if(c)return null;var f=i,p={"data-rc-order":`prependQueue`,"data-rc-priority":`${l}`};return f=I(i,a,o,p,u),s&&Object.keys(s).forEach(function(e){if(!t[e]){t[e]=!0;var n=I(Zt(s[e]),a,`_effect-${e}`,p,u);e.startsWith(`@layer`)?f=n+f:f+=n}}),[l,o,f]},sn=`cssVar`,cn=function(e,t){var n=e.key,r=e.prefix,i=e.unitless,a=e.ignore,o=e.token,s=e.scope,c=s===void 0?``:s,l=(0,_.useContext)(N),f=l.cache.instanceId,m=l.container,h=o._tokenKey,g=[].concat(k(e.path),[n,c,h]);return Ge(sn,g,function(){var e=d(Re(t(),n,{prefix:r,unitless:i,ignore:a,scope:c}),2),o=e[0],s=e[1];return[o,s,tn(g,s),n]},function(e){var t=d(e,3)[2];Pe&&u(t,{mark:M,attachTo:m})},function(e){var t=d(e,3),r=t[1],i=t[2];if(r){var a=p(r,i,{mark:M,prepend:`queue`,attachTo:m,priority:-999});a[se]=f,a.setAttribute(j,n)}})},ln=f(f(f({},rn,on),$e,tt),sn,function(e,t,n){var r=d(e,4),i=r[1],a=r[2],o=r[3],s=(n||{}).plain;if(!i)return null;var c=-999;return[c,a,I(i,o,a,{"data-rc-order":`prependQueue`,"data-rc-priority":`${c}`},s)]});function un(e){return e!==null}function dn(e,t){var n=typeof t==`boolean`?{plain:t}:t||{},r=n.plain,i=r===void 0?!1:r,a=n.types,o=a===void 0?[`style`,`token`,`cssVar`]:a,s=n.once,c=s===void 0?!1:s,l=RegExp(`^(${(typeof o==`string`?[o]:o).join(`|`)})%`),u=Array.from(e.cache.keys()).filter(function(e){return l.test(e)}),p={},m={},h=``;return u.map(function(t){if(c&&e.extracted.has(t))return null;var n=t.replace(l,``).replace(/%/g,`|`),r=ln[d(t.split(`%`),1)[0]],a=r(e.cache.get(t)[1],p,{plain:i});if(!a)return null;var o=d(a,3),s=o[0],u=o[1],f=o[2];return t.startsWith(`style`)&&(m[n]=u),e.extracted.add(t),[s,f]}).filter(un).sort(function(e,t){return d(e,1)[0]-d(t,1)[0]}).forEach(function(e){var t=d(e,2)[1];h+=t}),h+=I(`.${Z}{content:"${Wt(m)}";}`,void 0,void 0,f({},Z,Z),i),h}var fn=function(){function e(t,n){v(this,e),f(this,`name`,void 0),f(this,`style`,void 0),f(this,`_keyframe`,!0),this.name=t,this.style=n}return b(e,[{key:`getName`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``;return e?`${e}-${this.name}`:this.name}}]),e}();function pn(e){if(typeof e==`number`)return[[e],!1];var t=String(e).trim(),n=t.match(/(.*)(!important)/),r=(n?n[1]:t).trim().split(/\s+/),i=[],a=0;return[r.reduce(function(e,t){if(t.includes(`(`)||t.includes(`)`)){var n=t.split(`(`).length-1,r=t.split(`)`).length-1;a+=n-r}return a>=0&&i.push(t),a===0&&(e.push(i.join(` `)),i=[]),e},[]),!!n]}function $(e){return e.notSplit=!0,e}var mn={inset:[`top`,`right`,`bottom`,`left`],insetBlock:[`top`,`bottom`],insetBlockStart:[`top`],insetBlockEnd:[`bottom`],insetInline:[`left`,`right`],insetInlineStart:[`left`],insetInlineEnd:[`right`],marginBlock:[`marginTop`,`marginBottom`],marginBlockStart:[`marginTop`],marginBlockEnd:[`marginBottom`],marginInline:[`marginLeft`,`marginRight`],marginInlineStart:[`marginLeft`],marginInlineEnd:[`marginRight`],paddingBlock:[`paddingTop`,`paddingBottom`],paddingBlockStart:[`paddingTop`],paddingBlockEnd:[`paddingBottom`],paddingInline:[`paddingLeft`,`paddingRight`],paddingInlineStart:[`paddingLeft`],paddingInlineEnd:[`paddingRight`],borderBlock:$([`borderTop`,`borderBottom`]),borderBlockStart:$([`borderTop`]),borderBlockEnd:$([`borderBottom`]),borderInline:$([`borderLeft`,`borderRight`]),borderInlineStart:$([`borderLeft`]),borderInlineEnd:$([`borderRight`]),borderBlockWidth:[`borderTopWidth`,`borderBottomWidth`],borderBlockStartWidth:[`borderTopWidth`],borderBlockEndWidth:[`borderBottomWidth`],borderInlineWidth:[`borderLeftWidth`,`borderRightWidth`],borderInlineStartWidth:[`borderLeftWidth`],borderInlineEndWidth:[`borderRightWidth`],borderBlockStyle:[`borderTopStyle`,`borderBottomStyle`],borderBlockStartStyle:[`borderTopStyle`],borderBlockEndStyle:[`borderBottomStyle`],borderInlineStyle:[`borderLeftStyle`,`borderRightStyle`],borderInlineStartStyle:[`borderLeftStyle`],borderInlineEndStyle:[`borderRightStyle`],borderBlockColor:[`borderTopColor`,`borderBottomColor`],borderBlockStartColor:[`borderTopColor`],borderBlockEndColor:[`borderBottomColor`],borderInlineColor:[`borderLeftColor`,`borderRightColor`],borderInlineStartColor:[`borderLeftColor`],borderInlineEndColor:[`borderRightColor`],borderStartStartRadius:[`borderTopLeftRadius`],borderStartEndRadius:[`borderTopRightRadius`],borderEndStartRadius:[`borderBottomLeftRadius`],borderEndEndRadius:[`borderBottomRightRadius`]};function hn(e,t){var n=e;return t&&(n=`${n} !important`),{_skip_check_:!0,value:n}}var gn={visit:function(e){var t={};return Object.keys(e).forEach(function(n){var r=e[n],i=mn[n];if(i&&(typeof r==`number`||typeof r==`string`)){var a=d(pn(r),2),o=a[0],s=a[1];i.length&&i.notSplit?i.forEach(function(e){t[e]=hn(r,s)}):i.length===1?t[i[0]]=hn(o[0],s):i.length===2?i.forEach(function(e,n){t[e]=hn(o[n]??o[0],s)}):i.length===4?i.forEach(function(e,n){t[e]=hn(o[n]??o[n-2]??o[0],s)}):t[n]=r}else t[n]=r}),t}},_n=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function vn(e,t){var n=10**(t+1),r=Math.floor(e*n);return Math.round(r/10)*10/n}var yn=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.rootValue,n=t===void 0?16:t,r=e.precision,i=r===void 0?5:r,a=e.mediaQuery,s=a===void 0?!1:a,c=function(e,t){if(!t)return e;var r=parseFloat(t);return r<=1?e:`${vn(r/n,i)}rem`};return{visit:function(e){var t=o({},e);return Object.entries(e).forEach(function(e){var n=d(e,2),r=n[0],i=n[1];typeof i==`string`&&i.includes(`px`)&&(t[r]=i.replace(_n,c)),!nt[r]&&typeof i==`number`&&i!==0&&(t[r]=`${i}px`.replace(_n,c));var a=r.trim();if(a.startsWith(`@`)&&a.includes(`px`)&&s){var o=r.replace(_n,c);t[o]=t[r],delete t[r]}}),t}}},bn=e({Keyframes:()=>fn,NaNLinter:()=>Vt,StyleContext:()=>N,StyleProvider:()=>le,Theme:()=>be,_experimental:()=>xn,createCache:()=>ce,createTheme:()=>Se,extractStyle:()=>dn,genCalc:()=>ge,getComputedToken:()=>Qe,legacyLogicalPropertiesTransformer:()=>gn,legacyNotSelectorLinter:()=>zt,logicalPropertiesLinter:()=>Bt,parentSelectorLinter:()=>Ht,px2remTransformer:()=>yn,token2CSSVar:()=>Ie,unit:()=>Fe,useCSSVarRegister:()=>cn,useCacheToken:()=>et,useStyleRegister:()=>an}),xn={supportModernCSS:function(){return je()&&Ne()}};export{T as A,le as C,ee as D,k as E,b as F,v as I,C as M,S as N,D as O,x as P,N as S,ne as T,Ie as _,fn as a,be as b,an as c,Bt as d,zt as f,Ve as g,Be as h,gn as i,w as j,E as k,Ht as l,et as m,bn as n,dn as o,Qe as p,yn as r,cn as s,xn as t,Vt as u,Fe as v,ce as w,ge as x,Se as y};
|