@betterbugs/rrdom 2.0.0-alpha.19
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 +179 -0
- package/dist/index.d.cts +379 -0
- package/dist/index.d.ts +379 -0
- package/dist/rrdom.cjs +4945 -0
- package/dist/rrdom.cjs.map +1 -0
- package/dist/rrdom.js +4945 -0
- package/dist/rrdom.js.map +1 -0
- package/dist/rrdom.umd.cjs +5006 -0
- package/dist/rrdom.umd.cjs.map +7 -0
- package/dist/rrdom.umd.min.cjs +58 -0
- package/dist/rrdom.umd.min.cjs.map +7 -0
- package/package.json +60 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
(function (g, f) {
|
|
2
|
+
if ("object" == typeof exports && "object" == typeof module) {
|
|
3
|
+
module.exports = f();
|
|
4
|
+
} else if ("function" == typeof define && define.amd) {
|
|
5
|
+
define("rrdom", [], f);
|
|
6
|
+
} else if ("object" == typeof exports) {
|
|
7
|
+
exports["rrdom"] = f();
|
|
8
|
+
} else {
|
|
9
|
+
g["rrdom"] = f();
|
|
10
|
+
}
|
|
11
|
+
}(this, () => {
|
|
12
|
+
var exports = {};
|
|
13
|
+
var module = { exports };
|
|
14
|
+
"use strict";var Is=Object.defineProperty,Ps=Object.defineProperties;var $s=Object.getOwnPropertyDescriptors;var Q=Object.getOwnPropertySymbols;var ht=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable;var ut=(i,e,t)=>e in i?Is(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,v=(i,e)=>{for(var t in e||(e={}))ht.call(e,t)&&ut(i,t,e[t]);if(Q)for(var t of Q(e))ct.call(e,t)&&ut(i,t,e[t]);return i},B=(i,e)=>Ps(i,$s(e));var xe=(i,e)=>{var t={};for(var s in i)ht.call(i,s)&&e.indexOf(s)<0&&(t[s]=i[s]);if(i!=null&&Q)for(var s of Q(i))e.indexOf(s)<0&&ct.call(i,s)&&(t[s]=i[s]);return t};var Ls=Object.defineProperty,ks=(i,e,t)=>e in i?Ls(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,c=(i,e,t)=>ks(i,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Us=Object.defineProperty,Fs=(i,e,t)=>e in i?Us(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,ft=(i,e,t)=>Fs(i,typeof e!="symbol"?e+"":e,t);let Bs=class{constructor(){ft(this,"idNodeMap",new Map),ft(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const s=(t=this.getMeta(e))==null?void 0:t.id;return s!=null?s:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(s=>this.removeNodeFromMap(s))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const s=t.id;this.idNodeMap.set(s,e),this.nodeMetaMap.set(e,t)}replace(e,t){const s=this.getNode(e);if(s){const r=this.nodeMetaMap.get(s);r&&this.nodeMetaMap.set(t,r)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function zs(){return new Bs}function js(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function Gs(i){if(i.__esModule)return i;var e=i.default;if(typeof e=="function"){var t=function s(){return this instanceof s?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(i).forEach(function(s){var r=Object.getOwnPropertyDescriptor(i,s);Object.defineProperty(t,s,r.get?r:{enumerable:!0,get:function(){return i[s]}})}),t}var Ve={exports:{}},w=String,Mt=function(){return{isColorSupported:!1,reset:w,bold:w,dim:w,italic:w,underline:w,inverse:w,hidden:w,strikethrough:w,black:w,red:w,green:w,yellow:w,blue:w,magenta:w,cyan:w,white:w,gray:w,bgBlack:w,bgRed:w,bgGreen:w,bgYellow:w,bgBlue:w,bgMagenta:w,bgCyan:w,bgWhite:w}};Ve.exports=Mt();Ve.exports.createColors=Mt;var Ws=Ve.exports;const Vs={},Ys=Object.freeze(Object.defineProperty({__proto__:null,default:Vs},Symbol.toStringTag,{value:"Module"})),N=Gs(Ys);let pt=Ws,mt=N,De=class _t extends Error{constructor(e,t,s,r,o,n){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),r&&(this.source=r),n&&(this.plugin=n),typeof t!="undefined"&&typeof s!="undefined"&&(typeof t=="number"?(this.line=t,this.column=s):(this.line=t.line,this.column=t.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,_t)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=pt.isColorSupported),mt&&e&&(t=mt(t));let s=t.split(/\r?\n/),r=Math.max(this.line-3,0),o=Math.min(this.line+2,s.length),n=String(o).length,l,a;if(e){let{bold:u,gray:h,red:p}=pt.createColors(!0);l=m=>u(p(m)),a=m=>h(m)}else l=a=u=>u;return s.slice(r,o).map((u,h)=>{let p=r+1+h,m=" "+(" "+p).slice(-n)+" | ";if(p===this.line){let R=a(m.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+a(m)+u+`
|
|
15
|
+
`+R+l("^")}return" "+a(m)+u}).join(`
|
|
16
|
+
`)}toString(){let e=this.showSourceCode();return e&&(e=`
|
|
17
|
+
|
|
18
|
+
`+e+`
|
|
19
|
+
`),this.name+": "+this.message+e}};var Ye=De;De.default=De;var H={};H.isClean=Symbol("isClean");H.my=Symbol("my");const dt={after:`
|
|
20
|
+
`,beforeClose:`
|
|
21
|
+
`,beforeComment:`
|
|
22
|
+
`,beforeDecl:`
|
|
23
|
+
`,beforeOpen:" ",beforeRule:`
|
|
24
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Hs(i){return i[0].toUpperCase()+i.slice(1)}let Ae=class{constructor(e){this.builder=e}atrule(e,t){let s="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?s+=e.raws.afterName:r&&(s+=" "),e.nodes)this.block(e,s+r);else{let o=(e.raws.between||"")+(t?";":"");this.builder(s+r+o,e)}}beforeAfter(e,t){let s;e.type==="decl"?s=this.raw(e,null,"beforeDecl"):e.type==="comment"?s=this.raw(e,null,"beforeComment"):t==="before"?s=this.raw(e,null,"beforeRule"):s=this.raw(e,null,"beforeClose");let r=e.parent,o=0;for(;r&&r.type!=="root";)o+=1,r=r.parent;if(s.includes(`
|
|
25
|
+
`)){let n=this.raw(e,null,"indent");if(n.length)for(let l=0;l<o;l++)s+=n}return s}block(e,t){let s=this.raw(e,"between","beforeOpen");this.builder(t+s+"{",e,"start");let r;e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let s=this.raw(e,"semicolon");for(let r=0;r<e.nodes.length;r++){let o=e.nodes[r],n=this.raw(o,"before");n&&this.builder(n),this.stringify(o,t!==r||s)}}comment(e){let t=this.raw(e,"left","commentLeft"),s=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+s+"*/",e)}decl(e,t){let s=this.raw(e,"between","colon"),r=e.prop+s+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)}document(e){this.body(e)}raw(e,t,s){let r;if(s||(s=t),t&&(r=e.raws[t],typeof r!="undefined"))return r;let o=e.parent;if(s==="before"&&(!o||o.type==="root"&&o.first===e||o&&o.type==="document"))return"";if(!o)return dt[s];let n=e.root();if(n.rawCache||(n.rawCache={}),typeof n.rawCache[s]!="undefined")return n.rawCache[s];if(s==="before"||s==="after")return this.beforeAfter(e,s);{let l="raw"+Hs(s);this[l]?r=this[l](n,e):n.walk(a=>{if(r=a.raws[t],typeof r!="undefined")return!1})}return typeof r=="undefined"&&(r=dt[s]),n.rawCache[s]=r,r}rawBeforeClose(e){let t;return e.walk(s=>{if(s.nodes&&s.nodes.length>0&&typeof s.raws.after!="undefined")return t=s.raws.after,t.includes(`
|
|
26
|
+
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let s;return e.walkComments(r=>{if(typeof r.raws.before!="undefined")return s=r.raws.before,s.includes(`
|
|
27
|
+
`)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s=="undefined"?s=this.raw(t,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeDecl(e,t){let s;return e.walkDecls(r=>{if(typeof r.raws.before!="undefined")return s=r.raws.before,s.includes(`
|
|
28
|
+
`)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s=="undefined"?s=this.raw(t,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeOpen(e){let t;return e.walk(s=>{if(s.type!=="decl"&&(t=s.raws.between,typeof t!="undefined"))return!1}),t}rawBeforeRule(e){let t;return e.walk(s=>{if(s.nodes&&(s.parent!==e||e.first!==s)&&typeof s.raws.before!="undefined")return t=s.raws.before,t.includes(`
|
|
29
|
+
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(s=>{if(typeof s.raws.between!="undefined")return t=s.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(s=>{if(s.nodes&&s.nodes.length===0&&(t=s.raws.after,typeof t!="undefined"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(s=>{let r=s.parent;if(r&&r!==e&&r.parent&&r.parent===e&&typeof s.raws.before!="undefined"){let o=s.raws.before.split(`
|
|
30
|
+
`);return t=o[o.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(s=>{if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(t=s.raws.semicolon,typeof t!="undefined"))return!1}),t}rawValue(e,t){let s=e[t],r=e.raws[t];return r&&r.value===s?r.raw:s}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var Tt=Ae;Ae.default=Ae;let Js=Tt;function Me(i,e){new Js(e).stringify(i)}var de=Me;Me.default=Me;let{isClean:q,my:Xs}=H,Zs=Ye,Qs=Tt,qs=de;function _e(i,e){let t=new i.constructor;for(let s in i){if(!Object.prototype.hasOwnProperty.call(i,s)||s==="proxyCache")continue;let r=i[s],o=typeof r;s==="parent"&&o==="object"?e&&(t[s]=e):s==="source"?t[s]=r:Array.isArray(r)?t[s]=r.map(n=>_e(n,t)):(o==="object"&&r!==null&&(r=_e(r)),t[s]=r)}return t}let Te=class{constructor(e={}){this.raws={},this[q]=!1,this[Xs]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let s of e[t])typeof s.clone=="function"?this.append(s.clone()):this.append(s)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=_e(this);for(let s in e)t[s]=e[s];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:s,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:s.column,line:s.line},t)}return new Zs(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,s){return e[t]===s||(e[t]=s,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markDirty(){if(this[q]){this[q]=!1;let e=this;for(;e=e.parent;)e[q]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let s=this.source.start;if(e.index)s=this.positionInside(e.index,t);else if(e.word){t=this.toString();let r=t.indexOf(e.word);r!==-1&&(s=this.positionInside(r,t))}return s}positionInside(e,t){let s=t||this.toString(),r=this.source.start.column,o=this.source.start.line;for(let n=0;n<e;n++)s[n]===`
|
|
31
|
+
`?(r=1,o+=1):r+=1;return{column:r,line:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},s=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let r=this.toString(),o=r.indexOf(e.word);o!==-1&&(t=this.positionInside(o,r),s=this.positionInside(o+e.word.length,r))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?s={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?s=this.positionInside(e.endIndex):e.index&&(s=this.positionInside(e.index+1));return(s.line<t.line||s.line===t.line&&s.column<=t.column)&&(s={column:t.column+1,line:t.line}),{end:s,start:t}}raw(e,t){return new Qs().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,s=!1;for(let r of e)r===this?s=!0:s?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);s||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let s={},r=t==null;t=t||new Map;let o=0;for(let n in this){if(!Object.prototype.hasOwnProperty.call(this,n)||n==="parent"||n==="proxyCache")continue;let l=this[n];if(Array.isArray(l))s[n]=l.map(a=>typeof a=="object"&&a.toJSON?a.toJSON(null,t):a);else if(typeof l=="object"&&l.toJSON)s[n]=l.toJSON(null,t);else if(n==="source"){let a=t.get(l.input);a==null&&(a=o,t.set(l.input,o),o++),s[n]={end:l.end,inputId:a,start:l.start}}else s[n]=l}return r&&(s.inputs=[...t.keys()].map(n=>n.toJSON())),s}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=qs){e.stringify&&(e=e.stringify);let t="";return e(this,s=>{t+=s}),t}warn(e,t,s){let r={node:this};for(let o in s)r[o]=s[o];return e.warn(t,r)}get proxyOf(){return this}};var ge=Te;Te.default=Te;let Ks=ge,Ie=class extends Ks{constructor(e){e&&typeof e.value!="undefined"&&typeof e.value!="string"&&(e=B(v({},e),{value:String(e.value)})),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};var we=Ie;Ie.default=Ie;let er="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",tr=(i,e=21)=>(t=e)=>{let s="",r=t;for(;r--;)s+=i[Math.random()*i.length|0];return s},sr=(i=21)=>{let e="",t=i;for(;t--;)e+=er[Math.random()*64|0];return e};var rr={nanoid:sr,customAlphabet:tr};let{SourceMapConsumer:gt,SourceMapGenerator:wt}=N,{existsSync:ir,readFileSync:nr}=N,{dirname:Se,join:or}=N;function lr(i){return Buffer?Buffer.from(i,"base64").toString():window.atob(i)}let Pe=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let s=t.map?t.map.prev:void 0,r=this.loadMap(t.from,s);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Se(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new gt(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,s=/^data:application\/json;base64,/,r=/^data:application\/json;charset=utf-?8,/,o=/^data:application\/json,/;if(r.test(e)||o.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||s.test(e))return lr(e.substr(RegExp.lastMatch.length));let n=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+n)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let s=e.lastIndexOf(t.pop()),r=e.indexOf("*/",s);s>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(s,r)))}loadFile(e){if(this.root=Se(e),ir(e))return this.mapFile=e,nr(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let s=t(e);if(s){let r=this.loadFile(s);if(!r)throw new Error("Unable to load previous source map: "+s.toString());return r}}else{if(t instanceof gt)return wt.fromSourceMap(t).toString();if(t instanceof wt)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let s=this.annotation;return e&&(s=or(Se(e),s)),this.loadFile(s)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var It=Pe;Pe.default=Pe;let{SourceMapConsumer:ar,SourceMapGenerator:ur}=N,{fileURLToPath:yt,pathToFileURL:K}=N,{isAbsolute:$e,resolve:Le}=N,{nanoid:hr}=rr,ve=N,Rt=Ye,cr=It,Ne=Symbol("fromOffsetCache"),fr=!!(ar&&ur),Et=!!(Le&&$e),he=class{constructor(e,t={}){if(e===null||typeof e=="undefined"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Et||/^\w+:\/\//.test(t.from)||$e(t.from)?this.file=t.from:this.file=Le(t.from)),Et&&fr){let s=new cr(this.css,t);if(s.text){this.map=s;let r=s.consumer().file;!this.file&&r&&(this.file=this.mapResolve(r))}}this.file||(this.id="<input css "+hr(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,s,r={}){let o,n,l;if(t&&typeof t=="object"){let u=t,h=s;if(typeof u.offset=="number"){let p=this.fromOffset(u.offset);t=p.line,s=p.col}else t=u.line,s=u.column;if(typeof h.offset=="number"){let p=this.fromOffset(h.offset);n=p.line,l=p.col}else n=h.line,l=h.column}else if(!s){let u=this.fromOffset(t);t=u.line,s=u.col}let a=this.origin(t,s,n,l);return a?o=new Rt(e,a.endLine===void 0?a.line:{column:a.column,line:a.line},a.endLine===void 0?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,r.plugin):o=new Rt(e,n===void 0?t:{column:s,line:t},n===void 0?s:{column:l,line:n},this.css,this.file,r.plugin),o.input={column:s,endColumn:l,endLine:n,line:t,source:this.css},this.file&&(K&&(o.input.url=K(this.file).toString()),o.input.file=this.file),o}fromOffset(e){let t,s;if(this[Ne])s=this[Ne];else{let o=this.css.split(`
|
|
32
|
+
`);s=new Array(o.length);let n=0;for(let l=0,a=o.length;l<a;l++)s[l]=n,n+=o[l].length+1;this[Ne]=s}t=s[s.length-1];let r=0;if(e>=t)r=s.length-1;else{let o=s.length-2,n;for(;r<o;)if(n=r+(o-r>>1),e<s[n])o=n-1;else if(e>=s[n+1])r=n+1;else{r=n;break}}return{col:e-s[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Le(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,s,r){if(!this.map)return!1;let o=this.map.consumer(),n=o.originalPositionFor({column:t,line:e});if(!n.source)return!1;let l;typeof s=="number"&&(l=o.originalPositionFor({column:r,line:s}));let a;$e(n.source)?a=K(n.source):a=new URL(n.source,this.map.consumer().sourceRoot||K(this.map.mapFile));let u={column:n.column,endColumn:l&&l.column,endLine:l&&l.line,line:n.line,url:a.toString()};if(a.protocol==="file:")if(yt)u.file=yt(a);else throw new Error("file: protocol is not available in this PostCSS build");let h=o.sourceContentFor(n.source);return h&&(u.source=h),u}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map=v({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};var ye=he;he.default=he;ve&&ve.registerInput&&ve.registerInput(he);let{SourceMapConsumer:Pt,SourceMapGenerator:le}=N,{dirname:ae,relative:$t,resolve:Lt,sep:kt}=N,{pathToFileURL:bt}=N,pr=ye,mr=!!(Pt&&le),dr=!!(ae&&Lt&&$t&&kt),gr=class{constructor(e,t,s,r){this.stringify=e,this.mapOpts=s.map||{},this.root=t,this.opts=s,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
|
|
33
|
+
`;this.css.includes(`\r
|
|
34
|
+
`)&&(t=`\r
|
|
35
|
+
`),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),s=e.root||ae(e.file),r;this.mapOpts.sourcesContent===!1?(r=new Pt(e.text),r.sourcesContent&&(r.sourcesContent=null)):r=e.consumer(),this.map.applySourceMap(r,t,this.toUrl(this.path(s)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),dr&&mr&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=le.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new le({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new le({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,s="<no source>",r={generated:{column:0,line:0},original:{column:0,line:0},source:""},o,n;this.stringify(this.root,(l,a,u)=>{if(this.css+=l,a&&u!=="end"&&(r.generated.line=e,r.generated.column=t-1,a.source&&a.source.start?(r.source=this.sourcePath(a),r.original.line=a.source.start.line,r.original.column=a.source.start.column-1,this.map.addMapping(r)):(r.source=s,r.original.line=1,r.original.column=0,this.map.addMapping(r))),o=l.match(/\n/g),o?(e+=o.length,n=l.lastIndexOf(`
|
|
36
|
+
`),t=l.length-n):t+=l.length,a&&u!=="start"){let h=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==h.last||h.raws.semicolon)&&(a.source&&a.source.end?(r.source=this.sourcePath(a),r.original.line=a.source.end.line,r.original.column=a.source.end.column-1,r.generated.line=e,r.generated.column=t-2,this.map.addMapping(r)):(r.source=s,r.original.line=1,r.original.column=0,r.generated.line=e,r.generated.column=t-1,this.map.addMapping(r)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let s=this.opts.to?ae(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(s=ae(Lt(s,this.mapOpts.annotation)));let r=$t(s,e);return this.memoizedPaths.set(e,r),r}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new pr(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let s=t.source.input.from;if(s&&!e[s]){e[s]=!0;let r=this.usesFileUrls?this.toFileUrl(s):this.toUrl(this.path(s));this.map.setSourceContent(r,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(bt){let s=bt(e).toString();return this.memoizedFileURLs.set(e,s),s}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;kt==="\\"&&(e=e.replace(/\\/g,"/"));let s=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,s),s}};var Ut=gr;let wr=ge,ke=class extends wr{constructor(e){super(e),this.type="comment"}};var Re=ke;ke.default=ke;let{isClean:Ft,my:Bt}=H,zt=we,jt=Re,yr=ge,Gt,He,Je,Wt;function Vt(i){return i.map(e=>(e.nodes&&(e.nodes=Vt(e.nodes)),delete e.source,e))}function Yt(i){if(i[Ft]=!1,i.proxyOf.nodes)for(let e of i.proxyOf.nodes)Yt(e)}let M=class Ht extends yr{append(...e){for(let t of e){let s=this.normalize(t,this.last);for(let r of s)this.proxyOf.nodes.push(r)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),s,r;for(;this.indexes[t]<this.proxyOf.nodes.length&&(s=this.indexes[t],r=e(this.proxyOf.nodes[s],s),r!==!1);)this.indexes[t]+=1;return delete this.indexes[t],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...s)=>e[t](...s.map(r=>typeof r=="function"?(o,n)=>r(o.toProxy(),n):r)):t==="every"||t==="some"?s=>e[t]((r,...o)=>s(r.toProxy(),...o)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(s=>s.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,s){return e[t]===s||(e[t]=s,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let s=this.index(e),r=this.normalize(t,this.proxyOf.nodes[s]).reverse();s=this.index(e);for(let n of r)this.proxyOf.nodes.splice(s+1,0,n);let o;for(let n in this.indexes)o=this.indexes[n],s<o&&(this.indexes[n]=o+r.length);return this.markDirty(),this}insertBefore(e,t){let s=this.index(e),r=s===0?"prepend":!1,o=this.normalize(t,this.proxyOf.nodes[s],r).reverse();s=this.index(e);for(let l of o)this.proxyOf.nodes.splice(s,0,l);let n;for(let l in this.indexes)n=this.indexes[l],s<=n&&(this.indexes[l]=n+o.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Vt(Gt(e).nodes);else if(typeof e=="undefined")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let r of e)r.parent&&r.parent.removeChild(r,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let r of e)r.parent&&r.parent.removeChild(r,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value=="undefined")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new zt(e)]}else if(e.selector)e=[new He(e)];else if(e.name)e=[new Je(e)];else if(e.text)e=[new jt(e)];else throw new Error("Unknown node type in node creation");return e.map(r=>(r[Bt]||Ht.rebuild(r),r=r.proxyOf,r.parent&&r.parent.removeChild(r),r[Ft]&&Yt(r),typeof r.raws.before=="undefined"&&t&&typeof t.raws.before!="undefined"&&(r.raws.before=t.raws.before.replace(/\S/g,"")),r.parent=this.proxyOf,r))}prepend(...e){e=e.reverse();for(let t of e){let s=this.normalize(t,this.first,"prepend").reverse();for(let r of s)this.proxyOf.nodes.unshift(r);for(let r in this.indexes)this.indexes[r]=this.indexes[r]+s.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let s in this.indexes)t=this.indexes[s],t>=e&&(this.indexes[s]=t-1);return this.markDirty(),this}replaceValues(e,t,s){return s||(s=t,t={}),this.walkDecls(r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,s))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,s)=>{let r;try{r=e(t,s)}catch(o){throw t.addToError(o)}return r!==!1&&t.walk&&(r=t.walk(e)),r})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((s,r)=>{if(s.type==="atrule"&&e.test(s.name))return t(s,r)}):this.walk((s,r)=>{if(s.type==="atrule"&&s.name===e)return t(s,r)}):(t=e,this.walk((s,r)=>{if(s.type==="atrule")return t(s,r)}))}walkComments(e){return this.walk((t,s)=>{if(t.type==="comment")return e(t,s)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((s,r)=>{if(s.type==="decl"&&e.test(s.prop))return t(s,r)}):this.walk((s,r)=>{if(s.type==="decl"&&s.prop===e)return t(s,r)}):(t=e,this.walk((s,r)=>{if(s.type==="decl")return t(s,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((s,r)=>{if(s.type==="rule"&&e.test(s.selector))return t(s,r)}):this.walk((s,r)=>{if(s.type==="rule"&&s.selector===e)return t(s,r)}):(t=e,this.walk((s,r)=>{if(s.type==="rule")return t(s,r)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};M.registerParse=i=>{Gt=i};M.registerRule=i=>{He=i};M.registerAtRule=i=>{Je=i};M.registerRoot=i=>{Wt=i};var I=M;M.default=M;M.rebuild=i=>{i.type==="atrule"?Object.setPrototypeOf(i,Je.prototype):i.type==="rule"?Object.setPrototypeOf(i,He.prototype):i.type==="decl"?Object.setPrototypeOf(i,zt.prototype):i.type==="comment"?Object.setPrototypeOf(i,jt.prototype):i.type==="root"&&Object.setPrototypeOf(i,Wt.prototype),i[Bt]=!0,i.nodes&&i.nodes.forEach(e=>{M.rebuild(e)})};let Rr=I,Jt,Xt,G=class extends Rr{constructor(e){super(v({type:"document"},e)),this.nodes||(this.nodes=[])}toResult(e={}){return new Jt(new Xt,this,e).stringify()}};G.registerLazyResult=i=>{Jt=i};G.registerProcessor=i=>{Xt=i};var Xe=G;G.default=G;let Ue=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let s=t.node.rangeBy(t);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in t)this[s]=t[s]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var Zt=Ue;Ue.default=Ue;let Er=Zt,Fe=class{constructor(e,t,s){this.processor=e,this.messages=[],this.root=t,this.opts=s,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let s=new Er(e,t);return this.messages.push(s),s}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var Ze=Fe;Fe.default=Fe;const Oe=39,Ct=34,ee=92,xt=47,te=10,z=32,se=12,re=9,ie=13,br=91,Cr=93,xr=40,Sr=41,vr=123,Nr=125,Or=59,Dr=42,Ar=58,Mr=64,ne=/[\t\n\f\r "#'()/;[\\\]{}]/g,oe=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,_r=/.[\r\n"'(/\\]/,St=/[\da-f]/i;var Tr=function(e,t={}){let s=e.css.valueOf(),r=t.ignoreErrors,o,n,l,a,u,h,p,m,R,E,T=s.length,f=0,_=[],b=[];function C(){return f}function S(P){throw e.error("Unclosed "+P,f)}function be(){return b.length===0&&f>=T}function _s(P){if(b.length)return b.pop();if(f>=T)return;let Ce=P?P.ignoreUnclosed:!1;switch(o=s.charCodeAt(f),o){case te:case z:case re:case ie:case se:{n=f;do n+=1,o=s.charCodeAt(n);while(o===z||o===te||o===re||o===ie||o===se);E=["space",s.slice(f,n)],f=n-1;break}case br:case Cr:case vr:case Nr:case Ar:case Or:case Sr:{let at=String.fromCharCode(o);E=[at,at,f];break}case xr:{if(m=_.length?_.pop()[1]:"",R=s.charCodeAt(f+1),m==="url"&&R!==Oe&&R!==Ct&&R!==z&&R!==te&&R!==re&&R!==se&&R!==ie){n=f;do{if(h=!1,n=s.indexOf(")",n+1),n===-1)if(r||Ce){n=f;break}else S("bracket");for(p=n;s.charCodeAt(p-1)===ee;)p-=1,h=!h}while(h);E=["brackets",s.slice(f,n+1),f,n],f=n}else n=s.indexOf(")",f+1),a=s.slice(f,n+1),n===-1||_r.test(a)?E=["(","(",f]:(E=["brackets",a,f,n],f=n);break}case Oe:case Ct:{l=o===Oe?"'":'"',n=f;do{if(h=!1,n=s.indexOf(l,n+1),n===-1)if(r||Ce){n=f+1;break}else S("string");for(p=n;s.charCodeAt(p-1)===ee;)p-=1,h=!h}while(h);E=["string",s.slice(f,n+1),f,n],f=n;break}case Mr:{ne.lastIndex=f+1,ne.test(s),ne.lastIndex===0?n=s.length-1:n=ne.lastIndex-2,E=["at-word",s.slice(f,n+1),f,n],f=n;break}case ee:{for(n=f,u=!0;s.charCodeAt(n+1)===ee;)n+=1,u=!u;if(o=s.charCodeAt(n+1),u&&o!==xt&&o!==z&&o!==te&&o!==re&&o!==ie&&o!==se&&(n+=1,St.test(s.charAt(n)))){for(;St.test(s.charAt(n+1));)n+=1;s.charCodeAt(n+1)===z&&(n+=1)}E=["word",s.slice(f,n+1),f,n],f=n;break}default:{o===xt&&s.charCodeAt(f+1)===Dr?(n=s.indexOf("*/",f+2)+1,n===0&&(r||Ce?n=s.length:S("comment")),E=["comment",s.slice(f,n+1),f,n],f=n):(oe.lastIndex=f+1,oe.test(s),oe.lastIndex===0?n=s.length-1:n=oe.lastIndex-2,E=["word",s.slice(f,n+1),f,n],_.push(E),f=n);break}}return f++,E}function Ts(P){b.push(P)}return{back:Ts,endOfFile:be,nextToken:_s,position:C}};let Qt=I,ce=class extends Qt{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var Qe=ce;ce.default=ce;Qt.registerAtRule(ce);let qt=I,Kt,es,L=class extends qt{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,s){let r=super.normalize(e);if(t){if(s==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let o of r)o.raws.before=t.raws.before}return r}removeChild(e,t){let s=this.index(e);return!t&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),super.removeChild(e)}toResult(e={}){return new Kt(new es,this,e).stringify()}};L.registerLazyResult=i=>{Kt=i};L.registerProcessor=i=>{es=i};var J=L;L.default=L;qt.registerRoot(L);let W={comma(i){return W.split(i,[","],!0)},space(i){let e=[" ",`
|
|
37
|
+
`," "];return W.split(i,e)},split(i,e,t){let s=[],r="",o=!1,n=0,l=!1,a="",u=!1;for(let h of i)u?u=!1:h==="\\"?u=!0:l?h===a&&(l=!1):h==='"'||h==="'"?(l=!0,a=h):h==="("?n+=1:h===")"?n>0&&(n-=1):n===0&&e.includes(h)&&(o=!0),o?(r!==""&&s.push(r.trim()),r="",o=!1):r+=h;return(t||r!=="")&&s.push(r.trim()),s}};var ts=W;W.default=W;let ss=I,Ir=ts,fe=class extends ss{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Ir.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,s=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(s)}};var qe=fe;fe.default=fe;ss.registerRule(fe);let Pr=we,$r=Tr,Lr=Re,kr=Qe,Ur=J,vt=qe;const Nt={empty:!0,space:!0};function Fr(i){for(let e=i.length-1;e>=0;e--){let t=i[e],s=t[3]||t[2];if(s)return s}}let Br=class{constructor(e){this.input=e,this.root=new Ur,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new kr;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let s,r,o,n=!1,l=!1,a=[],u=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),s=e[0],s==="("||s==="["?u.push(s==="("?")":"]"):s==="{"&&u.length>0?u.push("}"):s===u[u.length-1]&&u.pop(),u.length===0)if(s===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(s==="{"){l=!0;break}else if(s==="}"){if(a.length>0){for(o=a.length-1,r=a[o];r&&r[0]==="space";)r=a[--o];r&&(t.source.end=this.getPosition(r[3]||r[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){n=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),n&&(e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),l&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let s=0,r;for(let o=t-1;o>=0&&(r=e[o],!(r[0]!=="space"&&(s+=1,s===2)));o--);throw this.input.error("Missed semicolon",r[0]==="word"?r[3]+1:r[2])}colon(e){let t=0,s,r,o;for(let[n,l]of e.entries()){if(s=l,r=s[0],r==="("&&(t+=1),r===")"&&(t-=1),t===0&&r===":")if(!o)this.doubleColon(s);else{if(o[0]==="word"&&o[1]==="progid")continue;return n}o=s}return!1}comment(e){let t=new Lr;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let s=e[1].slice(2,-2);if(/^\s*$/.test(s))t.text="",t.raws.left=s,t.raws.right="";else{let r=s.match(/^(\s*)([^]*\S)(\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}}createTokenizer(){this.tokenizer=$r(this.input)}decl(e,t){let s=new Pr;this.init(s,e[0][2]);let r=e[e.length-1];for(r[0]===";"&&(this.semicolon=!0,e.pop()),s.source.end=this.getPosition(r[3]||r[2]||Fr(e)),s.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),s.raws.before+=e.shift()[1];for(s.source.start=this.getPosition(e[0][2]),s.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;s.prop+=e.shift()[1]}s.raws.between="";let o;for(;e.length;)if(o=e.shift(),o[0]===":"){s.raws.between+=o[1];break}else o[0]==="word"&&/\w/.test(o[1])&&this.unknownWord([o]),s.raws.between+=o[1];(s.prop[0]==="_"||s.prop[0]==="*")&&(s.raws.before+=s.prop[0],s.prop=s.prop.slice(1));let n=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)n.push(e.shift());this.precheckMissedSemicolon(e);for(let u=e.length-1;u>=0;u--){if(o=e[u],o[1].toLowerCase()==="!important"){s.important=!0;let h=this.stringFrom(e,u);h=this.spacesFromEnd(e)+h,h!==" !important"&&(s.raws.important=h);break}else if(o[1].toLowerCase()==="important"){let h=e.slice(0),p="";for(let m=u;m>0;m--){let R=h[m][0];if(p.trim().indexOf("!")===0&&R!=="space")break;p=h.pop()[1]+p}p.trim().indexOf("!")===0&&(s.important=!0,s.raws.important=p,e=h)}if(o[0]!=="space"&&o[0]!=="comment")break}e.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(s.raws.between+=n.map(u=>u[1]).join(""),n=[]),this.raw(s,"value",n.concat(e),t),s.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new vt;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,s=null,r=!1,o=null,n=[],l=e[1].startsWith("--"),a=[],u=e;for(;u;){if(s=u[0],a.push(u),s==="("||s==="[")o||(o=u),n.push(s==="("?")":"]");else if(l&&r&&s==="{")o||(o=u),n.push("}");else if(n.length===0)if(s===";")if(r){this.decl(a,l);return}else break;else if(s==="{"){this.rule(a);return}else if(s==="}"){this.tokenizer.back(a.pop()),t=!0;break}else s===":"&&(r=!0);else s===n[n.length-1]&&(n.pop(),n.length===0&&(o=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),n.length>0&&this.unclosedBracket(o),t&&r){if(!l)for(;a.length&&(u=a[a.length-1][0],!(u!=="space"&&u!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,l)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,s,r){let o,n,l=s.length,a="",u=!0,h,p;for(let m=0;m<l;m+=1)o=s[m],n=o[0],n==="space"&&m===l-1&&!r?u=!1:n==="comment"?(p=s[m-1]?s[m-1][0]:"empty",h=s[m+1]?s[m+1][0]:"empty",!Nt[p]&&!Nt[h]?a.slice(-1)===","?u=!1:a+=o[1]:u=!1):a+=o[1];if(!u){let m=s.reduce((R,E)=>R+E[1],"");e.raws[t]={raw:m,value:a}}e[t]=a}rule(e){e.pop();let t=new vt;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,s="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)s=e.pop()[1]+s;return s}spacesAndCommentsFromStart(e){let t,s="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)s+=e.shift()[1];return s}spacesFromEnd(e){let t,s="";for(;e.length&&(t=e[e.length-1][0],t==="space");)s=e.pop()[1]+s;return s}stringFrom(e,t){let s="";for(let r=t;r<e.length;r++)s+=e[r][1];return e.splice(t,e.length-t),s}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var zr=Br;let jr=I,Gr=zr,Wr=ye;function pe(i,e){let t=new Wr(i,e),s=new Gr(t);try{s.parse()}catch(r){throw r}return s.root}var Ke=pe;pe.default=pe;jr.registerParse(pe);let{isClean:O,my:Vr}=H,Yr=Ut,Hr=de,Jr=I,Xr=Xe;let Ot=Ze,Zr=Ke,Qr=J;const qr={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Kr={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},ei={Once:!0,postcssPlugin:!0,prepare:!0},k=0;function j(i){return typeof i=="object"&&typeof i.then=="function"}function rs(i){let e=!1,t=qr[i.type];return i.type==="decl"?e=i.prop.toLowerCase():i.type==="atrule"&&(e=i.name.toLowerCase()),e&&i.append?[t,t+"-"+e,k,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:i.append?[t,k,t+"Exit"]:[t,t+"Exit"]}function Dt(i){let e;return i.type==="document"?e=["Document",k,"DocumentExit"]:i.type==="root"?e=["Root",k,"RootExit"]:e=rs(i),{eventIndex:0,events:e,iterator:0,node:i,visitorIndex:0,visitors:[]}}function Be(i){return i[O]=!1,i.nodes&&i.nodes.forEach(e=>Be(e)),i}let ze={},U=class is{constructor(e,t,s){this.stringified=!1,this.processed=!1;let r;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))r=Be(t);else if(t instanceof is||t instanceof Ot)r=Be(t.root),t.map&&(typeof s.map=="undefined"&&(s.map={}),s.map.inline||(s.map.inline=!1),s.map.prev=t.map);else{let o=Zr;s.syntax&&(o=s.syntax.parse),s.parser&&(o=s.parser),o.parse&&(o=o.parse);try{r=o(t,s)}catch(n){this.processed=!0,this.error=n}r&&!r[Vr]&&Jr.rebuild(r)}this.result=new Ot(e,r,s),this.helpers=B(v({},ze),{postcss:ze,result:this.result}),this.plugins=this.processor.plugins.map(o=>typeof o=="object"&&o.prepare?v(v({},o),o.prepare(this.result)):o)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let s=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=s.postcssPlugin,e.setMessage()):s.postcssVersion}catch(r){console&&console.error&&console.error(r)}return e}prepareVisitors(){this.listeners={};let e=(t,s,r)=>{this.listeners[s]||(this.listeners[s]=[]),this.listeners[s].push([t,r])};for(let t of this.plugins)if(typeof t=="object")for(let s in t){if(!Kr[s]&&/^[A-Z]/.test(s))throw new Error(`Unknown event ${s} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!ei[s])if(typeof t[s]=="object")for(let r in t[s])r==="*"?e(t,s,t[s][r]):e(t,s+"-"+r.toLowerCase(),t[s][r]);else typeof t[s]=="function"&&e(t,s,t[s])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],s=this.runOnRoot(t);if(j(s))try{await s}catch(r){throw this.handleError(r)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[O];){e[O]=!0;let t=[Dt(e)];for(;t.length>0;){let s=this.visitTick(t);if(j(s))try{await s}catch(r){let o=t[t.length-1].node;throw this.handleError(r,o)}}}if(this.listeners.OnceExit)for(let[t,s]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let r=e.nodes.map(o=>s(o,this.helpers));await Promise.all(r)}else await s(e,this.helpers)}catch(r){throw this.handleError(r)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(s=>e.Once(s,this.helpers));return j(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=Hr;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new Yr(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(j(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[O];)e[O]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[s,r]of e){this.result.lastPlugin=s;let o;try{o=r(t,this.helpers)}catch(n){throw this.handleError(n,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(j(o))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:s,visitors:r}=t;if(s.type!=="root"&&s.type!=="document"&&!s.parent){e.pop();return}if(r.length>0&&t.visitorIndex<r.length){let[n,l]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=n;try{return l(s.toProxy(),this.helpers)}catch(a){throw this.handleError(a,s)}}if(t.iterator!==0){let n=t.iterator,l;for(;l=s.nodes[s.indexes[n]];)if(s.indexes[n]+=1,!l[O]){l[O]=!0,e.push(Dt(l));return}t.iterator=0,delete s.indexes[n]}let o=t.events;for(;t.eventIndex<o.length;){let n=o[t.eventIndex];if(t.eventIndex+=1,n===k){s.nodes&&s.nodes.length&&(s[O]=!0,t.iterator=s.getIterator());return}else if(this.listeners[n]){t.visitors=this.listeners[n];return}}e.pop()}walkSync(e){e[O]=!0;let t=rs(e);for(let s of t)if(s===k)e.nodes&&e.each(r=>{r[O]||this.walkSync(r)});else{let r=this.listeners[s];if(r&&this.visitSync(r,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};U.registerPostcss=i=>{ze=i};var ns=U;U.default=U;Qr.registerLazyResult(U);Xr.registerLazyResult(U);let ti=Ut,si=de;let ri=Ke;const ii=Ze;let je=class{constructor(e,t,s){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=s,this._map=void 0;let r,o=si;this.result=new ii(this._processor,r,this._opts),this.result.css=t;let n=this;Object.defineProperty(this.result,"root",{get(){return n.root}});let l=new ti(o,r,this._opts,t);if(l.isMap()){let[a,u]=l.generate();a&&(this.result.css=a),u&&(this.result.map=u)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=ri;try{e=t(this._css,this._opts)}catch(s){this.error=s}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var ni=je;je.default=je;let oi=ni,li=ns,ai=Xe,ui=J,V=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let s of e)if(s.postcss===!0?s=s():s.postcss&&(s=s.postcss),typeof s=="object"&&Array.isArray(s.plugins))t=t.concat(s.plugins);else if(typeof s=="object"&&s.postcssPlugin)t.push(s);else if(typeof s=="function")t.push(s);else if(!(typeof s=="object"&&(s.parse||s.stringify)))throw new Error(s+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new oi(this,e,t):new li(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var hi=V;V.default=V;ui.registerProcessor(V);ai.registerProcessor(V);let ci=we,fi=It,pi=Re,mi=Qe,di=ye,gi=J,wi=qe;function Y(i,e){if(Array.isArray(i))return i.map(n=>Y(n));let r=i,{inputs:t}=r,s=xe(r,["inputs"]);if(t){e=[];for(let n of t){let l=B(v({},n),{__proto__:di.prototype});l.map&&(l.map=B(v({},l.map),{__proto__:fi.prototype})),e.push(l)}}if(s.nodes&&(s.nodes=i.nodes.map(n=>Y(n,e))),s.source){let o=s.source,{inputId:n}=o,l=xe(o,["inputId"]);s.source=l,n!=null&&(s.source.input=e[n])}if(s.type==="root")return new gi(s);if(s.type==="decl")return new ci(s);if(s.type==="rule")return new wi(s);if(s.type==="comment")return new pi(s);if(s.type==="atrule")return new mi(s);throw new Error("Unknown node type: "+i.type)}var yi=Y;Y.default=Y;let Ri=Ye,os=we,Ei=ns,bi=I,et=hi,Ci=de,xi=yi,ls=Xe,Si=Zt,as=Re,us=Qe,vi=Ze,Ni=ye,Oi=Ke,Di=ts,hs=qe,cs=J,Ai=ge;function g(...i){return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new et(i)}g.plugin=function(e,t){let s=!1;function r(...n){console&&console.warn&&!s&&(s=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
38
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
|
|
39
|
+
https://www.w3ctech.com/topic/2226`));let l=t(...n);return l.postcssPlugin=e,l.postcssVersion=new et().version,l}let o;return Object.defineProperty(r,"postcss",{get(){return o||(o=r()),o}}),r.process=function(n,l,a){return g([r(a)]).process(n,l)},r};g.stringify=Ci;g.parse=Oi;g.fromJSON=xi;g.list=Di;g.comment=i=>new as(i);g.atRule=i=>new us(i);g.decl=i=>new os(i);g.rule=i=>new hs(i);g.root=i=>new cs(i);g.document=i=>new ls(i);g.CssSyntaxError=Ri;g.Declaration=os;g.Container=bi;g.Processor=et;g.Document=ls;g.Comment=as;g.Warning=Si;g.AtRule=us;g.Result=vi;g.Input=Ni;g.Rule=hs;g.Root=cs;g.Node=Ai;Ei.registerPostcss(g);var Mi=g;g.default=g;const y=js(Mi);y.stringify;y.fromJSON;y.plugin;y.parse;y.list;y.document;y.comment;y.atRule;y.rule;y.decl;y.root;y.CssSyntaxError;y.Declaration;y.Container;y.Processor;y.Document;y.Comment;y.Warning;y.AtRule;y.Result;y.Input;y.Rule;y.Root;y.Node;var d=(i=>(i[i.Document=0]="Document",i[i.DocumentType=1]="DocumentType",i[i.Element=2]="Element",i[i.Text=3]="Text",i[i.CDATA=4]="CDATA",i[i.Comment=5]="Comment",i))(d||{});function _i(i){const e={},t=/;(?![^(]*\))/g,s=/:(.+)/,r=/\/\*.*?\*\//g;return i.replace(r,"").split(t).forEach(function(o){if(o){const n=o.split(s);n.length>1&&(e[Ge(n[0].trim())]=n[1].trim())}}),e}function At(i){const e=[];for(const t in i){const s=i[t];if(typeof s!="string")continue;const r=$i(t);e.push(`${r}: ${s};`)}return e.join(" ")}const Ti=/-([a-z])/g,Ii=/^--[a-zA-Z0-9-]+$/,Ge=i=>Ii.test(i)?i:i.replace(Ti,(e,t)=>t?t.toUpperCase():""),Pi=/\B([A-Z])/g,$i=i=>i.replace(Pi,"-$1").toLowerCase();class A{constructor(...e){c(this,"parentElement",null),c(this,"parentNode",null),c(this,"ownerDocument"),c(this,"firstChild",null),c(this,"lastChild",null),c(this,"previousSibling",null),c(this,"nextSibling",null),c(this,"ELEMENT_NODE",1),c(this,"TEXT_NODE",3),c(this,"nodeType"),c(this,"nodeName"),c(this,"RRNodeType")}get childNodes(){const e=[];let t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(e instanceof A){if(e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0}else return!1;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1}appendChild(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}class Ee extends A{constructor(...e){super(e),c(this,"nodeType",9),c(this,"nodeName","#document"),c(this,"compatMode","CSS1Compat"),c(this,"RRNodeType",d.Document),c(this,"textContent",null),this.ownerDocument=this}get documentElement(){return this.childNodes.find(e=>e.RRNodeType===d.Element&&e.tagName==="HTML")||null}get body(){var e;return((e=this.documentElement)==null?void 0:e.childNodes.find(t=>t.RRNodeType===d.Element&&t.tagName==="BODY"))||null}get head(){var e;return((e=this.documentElement)==null?void 0:e.childNodes.find(t=>t.RRNodeType===d.Element&&t.tagName==="HEAD"))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(e){const t=e.RRNodeType;if((t===d.Element||t===d.DocumentType)&&this.childNodes.some(r=>r.RRNodeType===t))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${t===d.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const s=nt(this,e);return s.parentElement=null,s}insertBefore(e,t){const s=e.RRNodeType;if((s===d.Element||s===d.DocumentType)&&this.childNodes.some(o=>o.RRNodeType===s))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${s===d.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const r=ds(this,e,t);return r.parentElement=null,r}removeChild(e){return gs(this,e)}open(){this.firstChild=null,this.lastChild=null}close(){}write(e){let t;if(e==='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'?t="-//W3C//DTD XHTML 1.0 Transitional//EN":e==='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">'&&(t="-//W3C//DTD HTML 4.0 Transitional//EN"),t){const s=this.createDocumentType("html",t,"");this.open(),this.appendChild(s)}}createDocument(e,t,s){return new Ee}createDocumentType(e,t,s){const r=new tt(e,t,s);return r.ownerDocument=this,r}createElement(e){const t=new X(e);return t.ownerDocument=this,t}createElementNS(e,t){return this.createElement(t)}createTextNode(e){const t=new st(e);return t.ownerDocument=this,t}createComment(e){const t=new rt(e);return t.ownerDocument=this,t}createCDATASection(e){const t=new it(e);return t.ownerDocument=this,t}toString(){return"RRDocument"}}class tt extends A{constructor(e,t,s){super(),c(this,"nodeType",10),c(this,"RRNodeType",d.DocumentType),c(this,"name"),c(this,"publicId"),c(this,"systemId"),c(this,"textContent",null),this.name=e,this.publicId=t,this.systemId=s,this.nodeName=e}toString(){return"RRDocumentType"}}class X extends A{constructor(e){super(),c(this,"nodeType",1),c(this,"RRNodeType",d.Element),c(this,"tagName"),c(this,"attributes",{}),c(this,"shadowRoot",null),c(this,"scrollLeft"),c(this,"scrollTop"),this.tagName=e.toUpperCase(),this.nodeName=e.toUpperCase()}get textContent(){let e="";return this.childNodes.forEach(t=>e+=t.textContent),e}set textContent(e){this.firstChild=null,this.lastChild=null,this.appendChild(this.ownerDocument.createTextNode(e))}get classList(){return new ms(this.attributes.class,e=>{this.attributes.class=e})}get id(){return this.attributes.id||""}get className(){return this.attributes.class||""}get style(){const e=this.attributes.style?_i(this.attributes.style):{},t=/\B([A-Z])/g;return e.setProperty=(s,r,o)=>{if(t.test(s))return;const n=Ge(s);r?e[n]=r:delete e[n],o==="important"&&(e[n]+=" !important"),this.attributes.style=At(e)},e.removeProperty=s=>{if(t.test(s))return"";const r=Ge(s),o=e[r]||"";return delete e[r],this.attributes.style=At(e),o},e}getAttribute(e){return this.attributes[e]===void 0?null:this.attributes[e]}setAttribute(e,t){this.attributes[e]=t}setAttributeNS(e,t,s){this.setAttribute(t,s)}removeAttribute(e){delete this.attributes[e]}appendChild(e){return nt(this,e)}insertBefore(e,t){return ds(this,e,t)}removeChild(e){return gs(this,e)}attachShadow(e){const t=this.ownerDocument.createElement("SHADOWROOT");return this.shadowRoot=t,t}dispatchEvent(e){return!0}toString(){let e="";for(const t in this.attributes)e+=`${t}="${this.attributes[t]}" `;return`${this.tagName} ${e}`}}class fs extends X{constructor(){super(...arguments),c(this,"currentTime"),c(this,"volume"),c(this,"paused"),c(this,"muted"),c(this,"playbackRate"),c(this,"loop")}attachShadow(e){throw new Error("RRDomException: Failed to execute 'attachShadow' on 'RRElement': This RRElement does not support attachShadow")}play(){this.paused=!1}pause(){this.paused=!0}}class ps extends X{constructor(){super(...arguments),c(this,"tagName","DIALOG"),c(this,"nodeName","DIALOG")}get isModal(){return this.getAttribute("rr_open_mode")==="modal"}get open(){return this.getAttribute("open")!==null}close(){this.removeAttribute("open"),this.removeAttribute("rr_open_mode")}show(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","non-modal")}showModal(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","modal")}}class st extends A{constructor(e){super(),c(this,"nodeType",3),c(this,"nodeName","#text"),c(this,"RRNodeType",d.Text),c(this,"data"),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRText text=${JSON.stringify(this.data)}`}}class rt extends A{constructor(e){super(),c(this,"nodeType",8),c(this,"nodeName","#comment"),c(this,"RRNodeType",d.Comment),c(this,"data"),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRComment text=${JSON.stringify(this.data)}`}}class it extends A{constructor(e){super(),c(this,"nodeName","#cdata-section"),c(this,"nodeType",4),c(this,"RRNodeType",d.CDATA),c(this,"data"),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}}class ms{constructor(e,t){if(c(this,"onChange"),c(this,"classes",[]),c(this,"add",(...s)=>{for(const r of s){const o=String(r);this.classes.indexOf(o)>=0||this.classes.push(o)}this.onChange&&this.onChange(this.classes.join(" "))}),c(this,"remove",(...s)=>{this.classes=this.classes.filter(r=>s.indexOf(r)===-1),this.onChange&&this.onChange(this.classes.join(" "))}),e){const s=e.trim().split(/\s+/);this.classes.push(...s)}this.onChange=t}}function nt(i,e){return e.parentNode&&e.parentNode.removeChild(e),i.lastChild?(i.lastChild.nextSibling=e,e.previousSibling=i.lastChild):(i.firstChild=e,e.previousSibling=null),i.lastChild=e,e.nextSibling=null,e.parentNode=i,e.parentElement=i,e.ownerDocument=i.ownerDocument,e}function ds(i,e,t){if(!t)return nt(i,e);if(t.parentNode!==i)throw new Error("Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode.");return e===t||(e.parentNode&&e.parentNode.removeChild(e),e.previousSibling=t.previousSibling,t.previousSibling=e,e.nextSibling=t,e.previousSibling?e.previousSibling.nextSibling=e:i.firstChild=e,e.parentElement=i,e.parentNode=i,e.ownerDocument=i.ownerDocument),e}function gs(i,e){if(e.parentNode!==i)throw new Error("Failed to execute 'removeChild' on 'RRNode': The RRNode to be removed is not a child of this RRNode.");return e.previousSibling?e.previousSibling.nextSibling=e.nextSibling:i.firstChild=e.nextSibling,e.nextSibling?e.nextSibling.previousSibling=e.previousSibling:i.lastChild=e.previousSibling,e.previousSibling=null,e.nextSibling=null,e.parentElement=null,e.parentNode=null,e}var x=(i=>(i[i.PLACEHOLDER=0]="PLACEHOLDER",i[i.ELEMENT_NODE=1]="ELEMENT_NODE",i[i.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",i[i.TEXT_NODE=3]="TEXT_NODE",i[i.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",i[i.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",i[i.ENTITY_NODE=6]="ENTITY_NODE",i[i.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",i[i.COMMENT_NODE=8]="COMMENT_NODE",i[i.DOCUMENT_NODE=9]="DOCUMENT_NODE",i[i.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",i[i.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",i))(x||{});const We={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"},Li={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};let D=null;function ot(i,e,t,s=e.mirror||e.ownerDocument.mirror){i=ki(i,e,t,s),ws(i,e,t,s),Ui(i,e,t)}function ki(i,e,t,s){var r;if(t.afterAppend&&!D&&(D=new WeakSet,setTimeout(()=>{D=null},0)),!lt(i,e)){const o=me(e,t.mirror,s);(r=i.parentNode)==null||r.replaceChild(o,i),i=o}switch(e.RRNodeType){case d.Document:{if(!$(i,e,t.mirror,s)){const o=s.getMeta(e);o&&(t.mirror.removeNodeFromMap(i),i.close(),i.open(),t.mirror.add(i,o),D==null||D.add(i))}break}case d.Element:{const o=i,n=e;switch(n.tagName){case"IFRAME":{const l=i.contentDocument;if(!l)break;ot(l,e.contentDocument,t,s);break}}n.shadowRoot&&(o.shadowRoot||o.attachShadow({mode:"open"}),ws(o.shadowRoot,n.shadowRoot,t,s)),Fi(o,n,s);break}}return i}function Ui(i,e,t){var s;switch(e.RRNodeType){case d.Document:{const r=e.scrollData;r&&t.applyScroll(r,!0);break}case d.Element:{const r=i,o=e;switch(o.scrollData&&t.applyScroll(o.scrollData,!0),o.inputData&&t.applyInput(o.inputData),o.tagName){case"AUDIO":case"VIDEO":{const n=i,l=o;l.paused!==void 0&&(l.paused?n.pause():n.play()),l.muted!==void 0&&(n.muted=l.muted),l.volume!==void 0&&(n.volume=l.volume),l.currentTime!==void 0&&(n.currentTime=l.currentTime),l.playbackRate!==void 0&&(n.playbackRate=l.playbackRate),l.loop!==void 0&&(n.loop=l.loop);break}case"CANVAS":{const n=e;if(n.rr_dataURL!==null){const l=document.createElement("img");l.onload=()=>{const a=r.getContext("2d");a&&a.drawImage(l,0,0,l.width,l.height)},l.src=n.rr_dataURL}n.canvasMutations.forEach(l=>t.applyCanvas(l.event,l.mutation,i));break}case"STYLE":{const n=r.sheet;n&&e.rules.forEach(l=>t.applyStyleSheetMutation(l,n));break}case"DIALOG":{const n=r,l=o,a=n.open,u=n.matches("dialog:modal"),h=l.open,p=l.isModal,m=u!==p,R=a!==h;if((m||a&&R)&&n.close(),h&&(R||m))try{p?n.showModal():n.show()}catch(E){console.warn(E)}break}}break}case d.Text:case d.Comment:case d.CDATA:{i.textContent!==e.data&&(i.textContent=e.data);break}}D!=null&&D.has(i)&&(D.delete(i),(s=t.afterAppend)==null||s.call(t,i,t.mirror.getId(i)))}function Fi(i,e,t){const s=i.attributes,r=e.attributes;for(const o in r){const n=r[o],l=t.getMeta(e);if(l!=null&&l.isSVG&&We[o])i.setAttributeNS(We[o],o,n);else if(e.tagName==="CANVAS"&&o==="rr_dataURL"){const a=document.createElement("img");a.src=n,a.onload=()=>{const u=i.getContext("2d");u&&u.drawImage(a,0,0,a.width,a.height)}}else{if(e.tagName==="IFRAME"&&o==="srcdoc")continue;try{i.setAttribute(o,n)}catch(a){console.warn(a)}}}for(const{name:o}of Array.from(s))o in r||i.removeAttribute(o);e.scrollLeft&&(i.scrollLeft=e.scrollLeft),e.scrollTop&&(i.scrollTop=e.scrollTop)}function ws(i,e,t,s){const r=Array.from(i.childNodes),o=e.childNodes;if(r.length===0&&o.length===0)return;let n=0,l=r.length-1,a=0,u=o.length-1,h=r[n],p=r[l],m=o[a],R=o[u],E,T;for(;n<=l&&a<=u;)if(h===void 0)h=r[++n];else if(p===void 0)p=r[--l];else if($(h,m,t.mirror,s))h=r[++n],m=o[++a];else if($(p,R,t.mirror,s))p=r[--l],R=o[--u];else if($(h,R,t.mirror,s)){try{i.insertBefore(h,p.nextSibling)}catch(b){console.warn(b)}h=r[++n],R=o[--u]}else if($(p,m,t.mirror,s)){try{i.insertBefore(p,h)}catch(b){console.warn(b)}p=r[--l],m=o[++a]}else{if(!E){E={};for(let C=n;C<=l;C++){const S=r[C];S&&t.mirror.hasNode(S)&&(E[t.mirror.getId(S)]=C)}}T=E[s.getId(m)];const b=r[T];if(T!==void 0&&b&&$(b,m,t.mirror,s)){try{i.insertBefore(b,h)}catch(C){console.warn(C)}r[T]=void 0}else{const C=me(m,t.mirror,s);i.nodeName==="#document"&&h&&(C.nodeType===C.DOCUMENT_TYPE_NODE&&h.nodeType===h.DOCUMENT_TYPE_NODE||C.nodeType===C.ELEMENT_NODE&&h.nodeType===h.ELEMENT_NODE)&&(i.removeChild(h),t.mirror.removeNodeFromMap(h),h=r[++n]);try{i.insertBefore(C,h||null)}catch(S){console.warn(S)}}m=o[++a]}if(n>l){const b=o[u+1];let C=null;for(b&&(C=t.mirror.getNode(s.getId(b)));a<=u;++a){const S=me(o[a],t.mirror,s);try{i.insertBefore(S,C)}catch(be){console.warn(be)}}}else if(a>u)for(;n<=l;n++){const b=r[n];if(!(!b||b.parentNode!==i))try{i.removeChild(b),t.mirror.removeNodeFromMap(b)}catch(C){console.warn(C)}}let f=i.firstChild,_=e.firstChild;for(;f!==null&&_!==null;)ot(f,_,t,s),f=f.nextSibling,_=_.nextSibling}function me(i,e,t){const s=t.getId(i),r=t.getMeta(i);let o=null;if(s>-1&&(o=e.getNode(s)),o!==null&<(o,i))return o;switch(i.RRNodeType){case d.Document:o=new Document;break;case d.DocumentType:o=document.implementation.createDocumentType(i.name,i.publicId,i.systemId);break;case d.Element:{let n=i.tagName.toLowerCase();n=Li[n]||n,r&&"isSVG"in r&&(r!=null&&r.isSVG)?o=document.createElementNS(We.svg,n):o=document.createElement(i.tagName);break}case d.Text:o=document.createTextNode(i.data);break;case d.Comment:o=document.createComment(i.data);break;case d.CDATA:o=document.createCDATASection(i.data);break}r&&e.add(o,v({},r));try{D==null||D.add(o)}catch(n){}return o}function lt(i,e){return i.nodeType!==e.nodeType?!1:i.nodeType!==i.ELEMENT_NODE||i.tagName.toUpperCase()===e.tagName}function $(i,e,t,s){const r=t.getId(i),o=s.getId(e);return r===-1||r!==o?!1:lt(i,e)}class F extends Ee{constructor(e){super(),c(this,"UNSERIALIZED_STARTING_ID",-2),c(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),c(this,"mirror",Ds()),c(this,"scrollData",null),e&&(this.mirror=e)}get unserializedId(){return this._unserializedId--}createDocument(e,t,s){return new F}createDocumentType(e,t,s){const r=new ys(e,t,s);return r.ownerDocument=this,r}createElement(e){const t=e.toUpperCase();let s;switch(t){case"AUDIO":case"VIDEO":s=new Rs(t);break;case"IFRAME":s=new xs(t,this.mirror);break;case"CANVAS":s=new bs(t);break;case"STYLE":s=new Cs(t);break;case"DIALOG":s=new Es(t);break;default:s=new Z(t);break}return s.ownerDocument=this,s}createComment(e){const t=new vs(e);return t.ownerDocument=this,t}createCDATASection(e){const t=new Ns(e);return t.ownerDocument=this,t}createTextNode(e){const t=new Ss(e);return t.ownerDocument=this,t}destroyTree(){this.firstChild=null,this.lastChild=null,this.mirror.reset()}open(){super.open(),this._unserializedId=this.UNSERIALIZED_STARTING_ID}}const ys=tt;class Z extends X{constructor(){super(...arguments),c(this,"inputData",null),c(this,"scrollData",null)}}class Rs extends fs{}class Es extends ps{}class bs extends Z{constructor(){super(...arguments),c(this,"rr_dataURL",null),c(this,"canvasMutations",[])}getContext(){return null}}class Cs extends Z{constructor(){super(...arguments),c(this,"rules",[])}}class xs extends Z{constructor(e,t){super(e),c(this,"contentDocument",new F),this.contentDocument.mirror=t}}const Ss=st,vs=rt,Ns=it;function Bi(i){return i instanceof HTMLFormElement?"FORM":i.tagName.toUpperCase()}function Os(i,e,t,s){let r;switch(i.nodeType){case x.DOCUMENT_NODE:s&&s.nodeName==="IFRAME"?r=s.contentDocument:(r=e,r.compatMode=i.compatMode);break;case x.DOCUMENT_TYPE_NODE:{const n=i;r=e.createDocumentType(n.name,n.publicId,n.systemId);break}case x.ELEMENT_NODE:{const n=i,l=Bi(n);r=e.createElement(l);const a=r;for(const{name:u,value:h}of Array.from(n.attributes))a.attributes[u]=h;n.scrollLeft&&(a.scrollLeft=n.scrollLeft),n.scrollTop&&(a.scrollTop=n.scrollTop);break}case x.TEXT_NODE:r=e.createTextNode(i.textContent||"");break;case x.CDATA_SECTION_NODE:r=e.createCDATASection(i.data);break;case x.COMMENT_NODE:r=e.createComment(i.textContent||"");break;case x.DOCUMENT_FRAGMENT_NODE:r=s.attachShadow({mode:"open"});break;default:return null}let o=t.getMeta(i);return e instanceof F&&(o||(o=Ms(r,e.unserializedId),t.add(i,o)),e.mirror.add(r,v({},o))),r}function zi(i,e=zs(),t=new F){function s(r,o){const n=Os(r,t,e,o);if(n!==null)if((o==null?void 0:o.nodeName)!=="IFRAME"&&r.nodeType!==x.DOCUMENT_FRAGMENT_NODE&&(o==null||o.appendChild(n),n.parentNode=o,n.parentElement=o),r.nodeName==="IFRAME"){const l=r.contentDocument;l&&s(l,n)}else(r.nodeType===x.DOCUMENT_NODE||r.nodeType===x.ELEMENT_NODE||r.nodeType===x.DOCUMENT_FRAGMENT_NODE)&&(r.nodeType===x.ELEMENT_NODE&&r.shadowRoot&&s(r.shadowRoot,n),r.childNodes.forEach(l=>s(l,n)))}return s(i,null),t}function Ds(){return new As}class As{constructor(){c(this,"idNodeMap",new Map),c(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const s=(t=this.getMeta(e))==null?void 0:t.id;return s!=null?s:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(s=>this.removeNodeFromMap(s))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const s=t.id;this.idNodeMap.set(s,e),this.nodeMetaMap.set(e,t)}replace(e,t){const s=this.getNode(e);if(s){const r=this.nodeMetaMap.get(s);r&&this.nodeMetaMap.set(t,r)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Ms(i,e){switch(i.RRNodeType){case d.Document:return{id:e,type:i.RRNodeType,childNodes:[]};case d.DocumentType:{const t=i;return{id:e,type:i.RRNodeType,name:t.name,publicId:t.publicId,systemId:t.systemId}}case d.Element:return{id:e,type:i.RRNodeType,tagName:i.tagName.toLowerCase(),attributes:{},childNodes:[]};case d.Text:return{id:e,type:i.RRNodeType,textContent:i.textContent||""};case d.Comment:return{id:e,type:i.RRNodeType,textContent:i.textContent||""};case d.CDATA:return{id:e,type:i.RRNodeType,textContent:""}}}function ji(i,e){return ue(i,e,"")}function ue(i,e,t){let s=`${t}${e.getId(i)} ${i.toString()}
|
|
40
|
+
`;if(i.RRNodeType===d.Element){const r=i;r.shadowRoot&&(s+=ue(r.shadowRoot,e,t+" "))}for(const r of i.childNodes)s+=ue(r,e,t+" ");return i.nodeName==="IFRAME"&&(s+=ue(i.contentDocument,e,t+" ")),s}exports.BaseRRCDATASection=it;exports.BaseRRComment=rt;exports.BaseRRDialogElement=ps;exports.BaseRRDocument=Ee;exports.BaseRRDocumentType=tt;exports.BaseRRElement=X;exports.BaseRRMediaElement=fs;exports.BaseRRNode=A;exports.BaseRRText=st;exports.ClassList=ms;exports.Mirror=As;exports.NodeType=x;exports.RRCDATASection=Ns;exports.RRCanvasElement=bs;exports.RRComment=vs;exports.RRDialogElement=Es;exports.RRDocument=F;exports.RRDocumentType=ys;exports.RRElement=Z;exports.RRIFrameElement=xs;exports.RRMediaElement=Rs;exports.RRNode=A;exports.RRStyleElement=Cs;exports.RRText=Ss;exports.buildFromDom=zi;exports.buildFromNode=Os;exports.createMirror=Ds;exports.createOrGetNode=me;exports.diff=ot;exports.getDefaultSN=Ms;exports.printRRDom=ji;
|
|
41
|
+
if (typeof module.exports == "object" && typeof exports == "object") {
|
|
42
|
+
var __cp = (to, from, except, desc) => {
|
|
43
|
+
if ((from && typeof from === "object") || typeof from === "function") {
|
|
44
|
+
for (let key of Object.getOwnPropertyNames(from)) {
|
|
45
|
+
if (!Object.prototype.hasOwnProperty.call(to, key) && key !== except)
|
|
46
|
+
Object.defineProperty(to, key, {
|
|
47
|
+
get: () => from[key],
|
|
48
|
+
enumerable: !(desc = Object.getOwnPropertyDescriptor(from, key)) || desc.enumerable,
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return to;
|
|
53
|
+
};
|
|
54
|
+
module.exports = __cp(module.exports, exports);
|
|
55
|
+
}
|
|
56
|
+
return module.exports;
|
|
57
|
+
}))
|
|
58
|
+
//# sourceMappingURL=rrdom.umd.min.cjs.map
|