/*! * @plugin tinymce-plugin * @version 0.0.3-beta.22 (2022-8-5) * @description tinymce-plugin * @copyright (2022) Five(Li Hailong) . All rights reserved. https://github.com/tinymce-plugintinymce-plugin */(function(C){"use strict";let d=tinymce,_=d.util.Tools,f=d.html.Node;d.html.Schema;let G=d.util.XHR,A=d.util.I18n,X=new d.html.Serializer().serialize,Y=new d.html.DomParser().parse,b={};window.tp$State=b;let h=(t,a)=>{let n=a?a.match(new RegExp(t+':(.+?)"?[;}]')):"";return n?n[1]:!1};function H(t,a,n,e){t.tp$Style.mapping&&t.tp$Style.mapping[""+a.getAttribute("data-id")]&&(t.tp$Style.mapping[""+a.getAttribute("data-id")].specialStyle[""+n]=e)}let g={customTags:{}},L=Object.keys,m=function(){return m=Object.assign||function(a){for(var n,e=1,i=arguments.length;e{if(typeof t=="object")return JSON.stringify(t).replace(/"([-A-Za-z]+?)":""[,}]/g,"").replace(/,/gi,";").replace(/{/gi,"").replace(/}/gi,"").replace(/"/gi,"")},F=t=>typeof t=="string"&&t!=="{}"?(t=JSON.stringify(t),JSON.parse(("{"+t.replace(/:/g,'": "').replace(/;\s*/g,'","')+"}").replace(/,\"\"\}$/,"}"))):t,k=(t,a)=>{const n=a.match(new RegExp(`.${t}\\s*\\{([\\s\\S]+)\\}`));return n&&n[1]?n[1].replace(/\}([\s\S]+)/,"").trim():""};var et=function(t,a){return Z.call(t,a)},at=function(t,a,n,e){e===void 0&&(e=null);var i=t.attr(n);return tt(i)?i:et(a,n)?null:e};const B=t=>t.replace(/[-|\_](\w)/g,function(a,n){return n.toUpperCase()}),nt=t=>t.replace(/([A-Z])/g,"_$1").toLowerCase().replace(/\-/g,"_"),it=t=>t.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/\_/g,"-");var ot=function(t,a){let n="";if(!t)return"";for(a=B(a);t.nodeName!=="P"&&t.nodeName!=="LI"&&t.nodeName!=="DIV"&&t.nodeName!=="BODY";){if(t.style[a]){n=t.style[a];break}t=t.parentNode}return n};let E=(t,a)=>{let n="";return n+=t["tp-buttons"]?'.tp-buttons[data-tp-style="'+a+'"] {'+t["tp-buttons"]+`} `:"",n+=t["tp-buttons:hover"]?'.tp-buttons[data-tp-style="'+a+'"]:hover {'+t["tp-buttons:hover"]+`} `:"",n+=t["tp-buttons::before"]?'.tp-buttons[data-tp-style="'+a+'"]::before {'+t["tp-buttons::before"]+`} `:"",n+=t["tp-buttons::after"]?'.tp-buttons[data-tp-style="'+a+'"]::after {'+t["tp-buttons::after"]+`} `:"",n};const st=(t,a,n)=>{!n&&(n=a*100);let e={id:null,outTime:n,outId:null};e.id=setInterval(i=>{t(()=>{clearTimeout(i.outId),clearInterval(i.id)})},a,e),e.outId=setTimeout(()=>{e.id&&clearInterval(e.id)},e.outTime)};let y=function(t,a){return typeof t[a]=="function"?t[a]:typeof g.customTags[t.name][a]=="function"?g.customTags[t.name][a]:function(){}};const lt=(t,a)=>a?typeof t=="string"&&!t.match(/\s/)&&t.length>0?parseInt(t)+"px":t:typeof t=="string"&&t.length>0&&t.match(/^[0-9]{1,8}$/)?t+"px":t,T=t=>{let a=t.split("_");return a.length>1?A.translate([a[0]+" {0}",a[1]]):A.translate(t)};tinymce.tp$HtmlPanelFn=window.tp$HtmlPanelFn=function(t,a,n){b.buttonsStyle&&(b.buttonsStyle[a]=n),document.querySelector("#"+a+"_StyleID").innerHTML=t.nextElementSibling.innerHTML};const rt={count:0},ut=t=>{let a=new Date().getTime()+"-"+rt.count++,n=`

 

 

PP
Powered by Five
`;return document.querySelector(t.selector).outerHTML=n+document.querySelector(t.selector).outerHTML,a},pt=(t,a,n)=>{let e="";e=b.buttonsStyle&&b.buttonsStyle[a],n||(n=L(t.tp$CustomTags.buttons.styleSheetList)),e||(e=b.buttonsStyle&&(b.buttonsStyle[a]=n[0]));let i="",o="",r="";return n.forEach((s,l)=>{s===e&&(o=`${T(s)}`),i+=`
  • `,r+=E(t.tp$CustomTags.buttons.styleSheetList[s],s)}),`
    ${o}

    ${A.translate("Select tmplate")}:

    `};let P=(t,a)=>{let n="";if(!t)return"";for(a=B(a);t.nodeName&&t.nodeName.toLowerCase()!=="#text";)n=t.style[a],t=t.firstChild;return n};const z=(t,a,n)=>{n=n||t.selection.getSelectedBlocks(),_.each(n,function(e){if(t.dom.getStyle(e,"text-indent")||a){let i="",o="";a==="remove"?(-parseInt(t.dom.getStyle(e,"text-indent"))==parseInt(t.dom.getStyle(e,"margin-left"))&&t.dom.setStyle(e,"margin-left",null),t.dom.setStyle(e,"text-indent",null)):(a=parseInt(a)||2,e&&e.firstChild&&(i=P(e,"font-size"),o=P(e,"letter-spacing"),i?i=(parseInt(i)+parseInt(o||0))*a+"px":i=(parseInt(o||0)+16)*a+"px"),a>0&&-parseInt(t.dom.getStyle(e,"text-indent"))==parseInt(t.dom.getStyle(e,"margin-left"))&&t.dom.setStyle(e,"margin-left",null),t.dom.setStyle(e,"text-indent",i||a+"em"),a<0&&t.dom.setStyle(e,"margin-left",i?i.replace(/^-/,""):-a+"em"))}})},dt=t=>{var a=function(n){return function(){return t.execCommand(n)}};t.addCommand("tpLetterspacing",function(n,e){t.formatter.apply("tpLetterspacing",{value:e}),z(t)}),t.addCommand("tpLineheight",function(n,e){t.formatter.apply("tpLineheight",{value:e})}),t.addCommand("tpIndent",function(n,e){z(t,e||2)}),t.addCommand("mceTpAlignleft",function(n,e){let i=t.dom.getParent(t.selection.getNode(),"tp-tabs,tp-buttons,tp-collapse");t.dom.setStyle(i,"float","left")}),t.addCommand("mceTpAlignright",function(n,e){let i=t.dom.getParent(t.selection.getNode(),"tp-tabs,tp-buttons,tp-collapse");t.dom.setStyle(i,"float","right")}),t.addCommand("mceTpAligncenter",function(n,e){let i=t.dom.getParent(t.selection.getNode(),"tp-tabs,tp-buttons,tp-collapse");t.dom.setStyle(i,"float",null),t.dom.setStyle(i,"margin-left","auto"),t.dom.setStyle(i,"margin-right","auto")}),t.ui.registry.addButton("tpalignleft",{tooltip:"Align left",onAction:a("mceTpAlignleft"),icon:"align-left"}),t.ui.registry.addButton("tpalignright",{tooltip:"Align right",onAction:a("mceTpAlignright"),icon:"align-right"}),t.ui.registry.addButton("tpaligncenter",{tooltip:"Align center",onAction:a("mceTpAligncenter"),icon:"align-center"})},ct=t=>{t.formatter.register({alignleft:[{selector:"figure.image",collapsed:!1,classes:"align-left",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"left"},inherit:!1,preview:!1,defaultBlock:"div"},{selector:"img,table,audio,video,tp-buttons,tp-tabs",collapsed:!1,styles:{float:"left"},preview:"font-family font-size"}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"center"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"figure.image",collapsed:!1,classes:"align-center",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"table,tp-buttons,tp-tabs",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"},preview:"font-family font-size"}],alignright:[{selector:"figure.image",collapsed:!1,classes:"align-right",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"right"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"img,table,audio,video,tp-buttons,tp-tabs",collapsed:!1,styles:{float:"right"},preview:"font-family font-size"}],afterParagraph:{selector:"p,ul,ol,dl,li,table",defaultBlock:"p",deep:!1,styles:{"margin-bottom":"%value"}},beforeParagraph:{selector:"p,ul,ol,dl,li,table",defaultBlock:"p",deep:!1,styles:{"margin-top":"%value"}},borderParagraph:{selector:"p,ul,ol,dl,li,table",defaultBlock:"p",deep:!1,styles:{"border-width":"%valueW","border-style":"%valueS","border-color":"%valueC"}},paddingParagraph:{selector:"p,ul,ol,dl,li,table",defaultBlock:"p",deep:!1,styles:{padding:"%value"}},tpParagraph:{selector:"p,ul,ol,dl,li,table",defaultBlock:"p",deep:!1,styles:{background:"%background","text-indent":"%indent"}},tpLetterspacing:{inline:"span",remove_similar:!0,styles:{"letter-spacing":"%value"}},tpLineheight:{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table",styles:{"line-height":"%value"}}}),t.on("ExecCommand",function(a){a.command==="FontSize"&&z(t)})};let D=function(t,a,n,e){t.tp$Style.mapping||(t.tp$Style.mapping={}),t.tp$Style.mapping[""+a.getAttribute("data-id")]?m(t.tp$Style.mapping[""+a.getAttribute("data-id")],{styleTemplate:a.getAttribute("data-tp-style")||"default",quantity:a.children.length-1}):t.tp$Style.mapping[""+a.getAttribute("data-id")]={styleCustomTags:e.name,stylePath:e.name==="buttons"?"styleSheetList":"styleSheetLoadList",styleTemplate:a.getAttribute("data-style")||"default",quantity:a.children.length-1,specialStyle:{}}};const ht=(t,a,n,e,i)=>{const o=a.createElement("template"),r=document.createElement("style"),s=document.createElement("style");r.textContent=`body{ padding: 0; margin: 0; } :host { overflow: hidden; display: block; }`,o.innerHTML=e.template.innerHTML;class l extends t.HTMLElement{constructor(){super();this.setAttribute("contenteditable",!1),this.setAttribute("data-mce-tp-component",i),this.attachShadow({mode:"open"}),this.tp$state=typeof e.state=="object"?JSON.parse(JSON.stringify(e.state)):{},D(n,this,"init",e),this.tpComponentDelete=typeof e.tpComponentDelete=="function"?e.tpComponentDelete.bind(this):()=>{this.remove()},this.tpComponentCmd=typeof e.tpComponentCmdFn=="object"?JSON.stringify(e.tpComponentCmdFn)!=="{}"?(c,x)=>{e.tpComponentCmdFn[c](this,x),D(n,this,c,e)}:(c,x)=>{g.customTags[i].tpComponentCmdFn[c](this,x),D(n,this,c,e)}:()=>{console.log("\u65E0\u53EF\u7528cmd")},s.id="tpComponentStyle_"+this.getAttribute("data-id"),i=="tabs"&&(s.textContent=e.styleSheetLoadList&&e.styleSheetLoadList[this.getAttribute("data-tp-style")||"default"]?e.styleSheetLoadList[this.getAttribute("data-tp-style")||"default"].replace(/.tp-tabs\s*\{/g,":host {").replace(/.tp-tabs_label\b\s/g,"::slotted(.tp-tabs_label) ").replace(/.tp-tabs_label:hover\b\s/g,"::slotted(.tp-tabs_label:hover) ").replace(/.tp-tabs_label.checked\b\s/g,"::slotted(.tp-tabs_label.checked) "):""),i=="collapse"&&(s.textContent=e.styleSheetLoadList&&e.styleSheetLoadList[this.getAttribute("data-tp-style")||"default"]?e.styleSheetLoadList[this.getAttribute("data-tp-style")||"default"].replace(/>/g," ").replace(/.tp-collapse\s*\{/g,":host {").replace(/label.tp-collapse_label\b\s/g,"::slotted(.tp-collapse_label) ").replace(/label.tp-collapse_label::/g,"::slotted(.tp-collapse_label)::").replace(/.tp-tabs_label:hover\b\s/g,"::slotted(.tp-tabs_label:hover) ").replace(/.tp-tabs_label.checked\b\s/g,"::slotted(.tp-tabs_label.checked) "):""),i=="buttons"&&(s.textContent=e.styleSheetList&&e.styleSheetList[this.getAttribute("data-tp-style")||"default"]?E(e.styleSheetList[this.getAttribute("data-tp-style")||"default"],this.getAttribute("data-tp-style")||"default").replace(/\[data-tp-style=(.*?)\]/g,"").replace(/>/g," ").replace(/.tp-buttons\s*\{/g,":host {").replace(/.tp-buttons:hover\s*\{/g,":host(:hover) {").replace(/.tp-buttons::before\s*\{/g,":host(.tp-buttons)::before {").replace(/.tp-buttons::after\s*\{/g,":host(.tp-buttons)::after {"):""),o.content.prepend(s),o.content.prepend(r),this.shadowRoot.appendChild(o.content.cloneNode(!0))}connectedCallback(){y(e,"headerEditableFn")(this,e.isHeaderEditable,i,n),y(e,"contentEditableFn")(this,e.isContentEditable,i,n),y(e,"connectedCallback")(this.shadowRoot,this)}static get observedAttributes(){return["data-top-bg","data-mce-tp-component","data-value"]}static tp$Delete(){console.log(this)}}try{t.customElements.define("tp-"+i,l)}catch{}},gt=t=>{const a=t.getWin(),n=t.getDoc();let e=t.toolbar,i=t.baseURI.source;typeof e=="object"&&(e=e.jion(" ")),/tpIconlists/.test(e)&&G.send({url:i+"plugins/tpIconlists/tpIconlists.css",async:!1,dataType:"text",success:function(s){t.dom.addStyle(s)}}),ct(t),dt(t);const o=`.mce-content-body [data-mce-tp-component][contenteditable=false][data-mce-selected] { outline: none; cursor: default; box-shadow: 0 0 0 2px #b4d7ff; position: relative; z-index:999; border-color: #B4D7FF; border-style: solid; } .mce-content-body .tp-partition[contentEditable=false], .mce-content-body .tp-partition[contentEditable=false]:focus, .mce-content-body .tp-partition[contentEditable=false]:hover{ outline: none!important; box-shadow: none!important; } .mce-content-body tp-buttons .tp-component_inline>a{ color: inherit; font:inherit; text-decoration: none; } .mce-content-body .tp-collapse .tp-collapse_label>p:first-child{ display: inline-block; } .mce-content-body .tp-component_inline{display: table-cell; margin: 0 } .mce-content-body *[contentEditable=false] *[contentEditable=true]:focus { outline: none!important; } .mce-content-body tp-buttons{ display: inline-block; vertical-align: middle; } .mce-content-body img{ max-width: 100%; } .mce-content-body [data-mce-tp-component]{ border: 1px dashed #bbb; } .mce-content-body *[contentEditable=false] *[contentEditable=true]:hover { outline: none!important; }`;t.dom.addStyle(o),t.tp$Style={},t.getTpStyle=s=>"";let r=t.tp$CustomTags||g.customTags;_.each(r,function(s,l){ht(a,n,t,s,l)}),t.parser.addAttributeFilter("data-tp-component",s=>{s&&s.forEach(l=>{let u=l.attr("data-tp-component");r[u]&&y(r[u],"parserFn")(l,u,t)})}),t.serializer.addAttributeFilter("data-mce-tp-component",s=>{s&&s.forEach(l=>{let u=l.attr("data-mce-tp-component");r[u]&&y(r[u],"serializerFn")(l,u,t)})}),t.setContent(t.getContent({source_view:!0}))},I=(t,a,n,e,i)=>{e?(!e.tp$CustomTags&&(e.tp$CustomTags=JSON.parse(JSON.stringify(g.customTags))),i?m(e.tp$CustomTags[t][a],n):e.tp$CustomTags[t][a]=n):i?m(g.customTags[t][a],n):g.customTags[t][a]=n},M={custom_elements:"",setCustomTags:I,createCustomTags:(t,a,n)=>{n?(!n.tp$CustomTags&&(n.tp$CustomTags=JSON.parse(JSON.stringify(g.customTags))),n.tp$CustomTags[t]=a):g.customTags[t]=a},setStyleSheetList:(t,a,n,e)=>{I("buttons","styleSheetList",{[a]:{"tp-buttons":k("tp-buttons",n),"tp-buttons:hover":k("tp-buttons:hover",n),"tp-buttons::before":k("tp-buttons::before",n),"tp-buttons::after":k("tp-buttons::after",n)}},e,!0)},createHtmlPanel:pt};var $={name:"tabs",styleSheet:{selector:"default",styleSheetList:{default:{"tp-tabs":"","tp-tabs_top":"","tp-tabs_label.checked":" ","tp-tabs_main":" ","tp-tab_main.checked":" "}}},styleSheetLoadList:{},styleFn:()=>{},state:{count:0},tpComponentDeleteFn:function(){console.log(this)},tpComponentMonitorCmd:()=>{},tpComponentCmdFn:{tabAdd:(t,a)=>{let n=document.createElement("div");n.setAttribute("contenteditable",!1),n.setAttribute("class","tp-partition tp-tabs_label"),n.setAttribute("data-idx",t.tp$state.count);let e=document.createElement("p");e.setAttribute("class","tp-component_inline"),e.setAttribute("data-idx",t.tp$state.count),e.setAttribute("contenteditable",!0),e.innerHTML=a.title,n.appendChild(e),t.insertBefore(n,t.lastChild);let i=document.createElement("div");i.setAttribute("class","tp-tab_main"),i.setAttribute("style","overflow: hidden; max-height: 0; transition: all 0s"),i.innerHTML=a.content,t.lastChild.appendChild(i),t.tp$state.count++},tabDelete:(t,a)=>{t.children[--t.tp$state.count].remove(),t.lastChild.lastChild.remove()},delete:(t,a)=>{t.remove()},getStyle:(t,a)=>{},setStyle:(t,a)=>{console.log(t.querySelector(".tp-tabs_top")),t.setAttribute("data-top-style",a["tp-tabs_top"]),t.shadowRoot.querySelector(".tp-tabs_top").setAttribute("style",a["tp-tabs_top"])}},template:{innerHTML:`
    `},connectedCallback:(t,a)=>{let n=e=>e.className&&e.className.indexOf("tp-partition tp-tabs_label")!==-1||e.parentNode&&(e.parentNode.className&&e.parentNode.className.indexOf("tp-partition tp-tabs_label")!==-1||e.parentNode.parentNode&&e.parentNode.parentNode.className&&e.parentNode.parentNode.className.indexOf("tp-partition tp-tabs_label")!==-1);t.getElementById("headerID").addEventListener("click",function(e){if(n(e.target)){let i=e.target.getAttribute("data-idx")||e.target.parentNode.getAttribute("data-idx")||"0",o=a.querySelectorAll("div.tp-partition.tp-tabs_label"),r=a.querySelector("div.tp-partition.tp-tabs_label.checked");r&&r.setAttribute("class","tp-partition tp-tabs_label");let s=o[i];s&&s.setAttribute("class","tp-partition tp-tabs_label checked");let l=a.querySelectorAll("div.tp-tab_main"),u=a.querySelector("div.tp-tab_main[contenteditable=true]");u&&(u.setAttribute("contenteditable",!1)||(u.style.maxHeight="0px"));let c=l[i];c&&(c.setAttribute("contenteditable",!0)||(c.style.maxHeight="10000px"))}})},isContentEditable:!0,contentEditableFn:(t,a,n)=>{if(t.lastChild&&t.lastChild.className==="tp-"+n+"_main"){const e=document.createElement("div");for(e.setAttribute("contenteditable",!1),e.setAttribute("class","tp-partition tp-tabs_main"),e.setAttribute("slot","content"),t.lastChild.firstChild&&(t.lastChild.firstChild.setAttribute("class","tp-tab_main"),t.lastChild.firstChild.setAttribute("style","overflow: hidden; max-height: 10000px; transition: all 0s"),a&&t.lastChild.firstChild.setAttribute("contenteditable",!0),e.setAttribute("style",t.lastChild.getAttribute("style")),e.appendChild(t.lastChild.firstChild));t.lastChild.firstChild;)t.lastChild.firstChild.setAttribute("class","tp-tab_main"),t.lastChild.firstChild.setAttribute("style","overflow: hidden; max-height: 0; transition: all 0s"),e.appendChild(t.lastChild.firstChild);t.removeChild(t.lastChild),t.appendChild(e)}},isHeaderEditable:!0,headerEditableFn:(t,a,n)=>{let e=t.children.length;t.getAttribute("data-id"),t.shadowRoot.querySelector("#headerID.tp-tabs_top").setAttribute("style",t.getAttribute("data-top-style")?t.getAttribute("data-top-style"):"");for(let i=e-2;i>=0;i--)t.tp$state.count++,t.children[i].setAttribute("contenteditable",!1),t.children[i].setAttribute("class","tp-partition tp-"+n+"_label"+(i===0?" checked":"")),t.children[i].setAttribute("data-idx",i),t.children[i].firstChild.setAttribute("class","tp-component_inline"),t.children[i].firstChild.setAttribute("data-idx",i),a&&t.children[i].firstChild.setAttribute("contenteditable",!0)},parserFn:(t,a)=>{for(t.attr({"data-tp-component":null,"data-mce-tp-component":a,"data-top-style":t.firstChild.attr("style")});t.firstChild.name==="input";)t.firstChild.remove();let n=t.firstChild.firstChild;for(;n&&n.name==="label";){let i=n.next,o=new f("div",1);n.name="p",n.wrap(o),n=i}let e=t.lastChild.firstChild;for(;e&&e.name==="label";){let i=e.next.next;e.remove(),e=i}t.firstChild.unwrap(),t.type=1,t.name="tp-"+a},serializerFn:(t,a)=>{t.attr({"data-mce-tp-component":null,"data-tp-component":a,contenteditable:null,class:"tp-"+a});let n=new f("div",1);n.attr("class","tp-tabs_top"),n.attr("style",t.attr("data-top-style")),t.attr("data-top-style",null);let e=t.firstChild,i=[];for(;e.attr("data-idx");){let s=e.next;e.firstChild.name="label",e.firstChild.attr({contenteditable:null,"data-idx":null,class:"tp-"+a+"_label",for:t.attr("data-id")+"tab"+e.attr("data-idx")}),i.push(X(e.firstChild)),n.append(e.firstChild),e.remove(),e=s}let o=t.lastChild.firstChild,r=0;for(;o&&o.attr("class")==="tp-tab_main";){let s=o.next,l=new f("input",1);l.shortEnded=!0,l.attr({id:t.attr("data-id")+"tab"+r,type:"radio",name:t.attr("data-id")}),r==0&&l.attr("checked",""),t.append(l),o.attr({contenteditable:null,style:null,class:"tp-tab_main tp-tab_main_"+r}),i[r]&&(t.lastChild.insert(Y(i[r]),o,!0),r++),o=s}t.append(n),t.firstChild.attr({contenteditable:null,class:"tp-tabs_main"}),t.append(t.firstChild),t.type=1,t.name="div"}},V={name:"buttons",template:{innerHTML:`
    `},styleSheetList:{default:{"tp-buttons":` display: inline-block; background: rgb(179, 70, 70); padding: 14px 25px; color: #333; border-radius: 8px; -webkit-transition: all .2s ease-in-out; transition: all .2s ease-in-out; border: 1px solid transparent; box-sizing: border-box; word-wrap: break-word; cursor: pointer; text-decoration: none;`,"tp-buttons:hover":` color: rgb(179, 70, 70) ; background: transparent; border-color: rgb(179, 70, 70) ; `,"tp-buttons::before":" ","tp-buttons::after":" "}},isContentEditable:!0,connectedCallback:()=>{},tpComponentCmdFn:{upData:(t,a)=>{t.shadowRoot.children[1].textContent=E(a.editor.tp$CustomTags.buttons.styleSheetList[a.styleName],a.styleName).replace(/\[data-tp-style=(.*?)\]/g,"").replace(/>/g," ").replace(/.tp-buttons\s*\{/g,":host {").replace(/.tp-buttons:hover\s*\{/g,":host(:hover) {").replace(/.tp-buttons::before\s*\{/g,":host(::before) {").replace(/.tp-buttons::after\s*\{/g,":host(::after) {")}},contentEditableFn:(t,a,n,e)=>{if(t.firstChild&&t.firstChild.tagName==="A"){const i=document.createElement("p");i.setAttribute("contenteditable",!0),i.setAttribute("class","tp-component_inline"),t.firstChild.innerHTML=""+t.firstChild.innerHTML+"",t.firstChild.setAttribute("href","javascript:;"),i.appendChild(t.firstChild),t.appendChild(i)}},isHeaderEditable:!0,parserFn:(t,a,n)=>{t.attr({"data-tp-component":null});let e=t.attr("style"),i={},o="";o=h("margin",e),o&&(i.margin=o),o=h("padding",e),o&&(i.padding=o),o=h("border",e),o&&(i.border=o),o=h("background",e),o&&(i.background=o),o=h("border-radius",e),o&&(i["border-radius"]=o),o=h("border-width",e),o&&(i["border-width"]=o),o=h("border-style",e),o&&(i["border-style"]=o),o=h("border-color",e),o&&(i["border-color"]=o);let r=new f("div",1);r.type=1,r.attr({"data-mce-tp-component":a,"data-tp-style":t.attr("data-tp-style")||"default",style:v(i)||null,"data-id":t.attr("data-id")}),t.attr("class")&&r.attr("class",t.attr("class")),n.tp$Style.mapping||(n.tp$Style.mapping={}),n.tp$Style.mapping[""+t.attr("data-id")]?m(n.tp$Style.mapping[""+t.attr("data-id")],{styleTemplate:t.attr("data-tp-style")||"default"}):n.tp$Style.mapping[""+t.attr("data-id")]={styleCustomTags:"buttons",stylePath:"styleSheetList",styleTemplate:t.attr("data-tp-style")||"default",specialStyle:{}},t.attr("style",v(m(F(t.attr("style"))||{},{margin:"",padding:"",background:"","border-style":"","border-color":"","border-width":"","border-radius":"",border:""}))||null),t.attr("data-id",null),t.attr("data-mce-style",null),t.wrap(r),r.name="tp-"+a},serializerFn:(t,a)=>{let n=t;for(;n.name!=="a"&&n.firstChild.name!=="#text";)n=n.firstChild;t.attr({"data-mce-tp-component":null,"data-tp-component":a,contenteditable:null,"data-tp-style":t.attr("data-tp-style")||"default",href:n&&n.attr("href")?n.attr("href"):null,style:n&&n.attr("style")?v(m(F(t.attr("style"))||{},F(n.attr("style"))||{})):t.attr("style"),target:n&&n.attr("target")?n.attr("target"):null,rel:n&&n.attr("rel")?n.attr("rel"):null,title:n&&n.attr("title")?n.attr("title"):null}),t.firstChild.unwrap(),n&&n.unwrap(),t.name="a"}},N={name:"collapse",template:{innerHTML:`
    `},isContentEditable:!0,connectedCallback:()=>{},tpComponentCmdFn:{upData:(t,a)=>{let n=a.style,e=h("padding",n),i=h("border",n),o=h("border-width",n);H(a.editor,t,"tp-collapse_main",(e?"padding: "+e+"!important; ":"")+(i?"border: "+i+"!important;":"")+(o?"border-width: "+o+"!important;":""))}},contentEditableFn:(t,a,n,e)=>{const i=document.createElement("div");if(i.setAttribute("contenteditable",!1),i.setAttribute("class","tp-partition tp-collapse_main"),a&&t.lastChild.setAttribute("contenteditable",!0),t.lastChild.getAttribute("class")==="tp-collapse_main"){let o=t.lastChild.getAttribute("style"),r=h("padding",o),s=h("border",o),l=h("border-width",o);H(e,t,"tp-collapse_main",(r?"padding: "+r+"!important; ":"")+(s?"border: "+s+"!important;":"")+(l?"border-width: "+l+"!important;":""))}i.appendChild(t.lastChild),t.appendChild(i)},isHeaderEditable:!0,headerEditableFn:(t,a,n,e)=>{if(t.firstChild.contenteditable!=="true"){const i=document.createElement("div");for(a&&i.setAttribute("contenteditable",!0),i.setAttribute("slot","header"),i.setAttribute("class","tp-collapse_label"),i.setAttribute("style","min-height: 20px; "+t.getAttribute("data-top-style"));t.firstChild&&t.firstChild.className!=="tp-"+n+"_main";)i.appendChild(t.firstChild);t.insertBefore(i,t.firstChild)}},parserFn:(t,a)=>{t.attr({"data-tp-component":null,"data-mce-tp-component":a}),t.attr("data-id",t.firstChild.attr("id")),t.firstChild.remove(),t.lastChild.attr("class","tp-"+a+"_main"),t.type=1,t.name="tp-"+a},serializerFn:(t,a)=>{t.attr({"data-mce-tp-component":null,"data-tp-component":a,contenteditable:null,class:"tp-"+a}),t.firstChild.type=1,t.firstChild.name="label",t.firstChild.attr({contenteditable:null,for:t.attr("data-id")});let n=t.lastChild.attr("style");t.lastChild.unwrap(),t.lastChild.attr({contenteditable:null,class:"tp-"+a+"_main",style:n});let e=new f("input",1);e.shortEnded=!0,e.attr({id:t.attr("data-id"),type:"checkbox"}),t.insert(e,t.firstChild,!0),t.attr("data-id",null),t.type=1,t.name="div"}};const R=t=>/select$/.test(t),O={forecolor:!0,backcolor:!0,tpLetterspacing:!0,tpIconlists:!0,tpColumns:!0,table:!0},w={title:{file:{zh_CN:"\u6587\u4EF6",en_US:"File"},edit:{zh_CN:"\u7F16\u8F91",en_US:"Edit"},view:{zh_CN:"\u67E5\u770B",en_US:"View"},insert:{zh_CN:"\u63D2\u5165",en_US:"Insert"},format:{zh_CN:"\u683C\u5F0F",en_US:"Format"},table:{zh_CN:"\u8868\u683C",en_US:"Table"},tools:{zh_CN:"\u5DE5\u5177",en_US:"Tools"},help:{zh_CN:"\u5E2E\u52A9",en_US:"Help"}},items:{code:"tools",spellchecker:"tools",spellcheckerlanguage:"tools",wordcount:"tools",image:"insert",link:"insert",media:"insert",hr:"insert",template:"insert",codesample:"insert",charmap:"insert",inserttable:"table",emoticons:"insert",pagebreak:"insert",nonbreaking:"insert",anchor:"insert",toc:"insert",insertdatetime:"insert",bold:"format",italic:"format",underline:"format",strikethrough:"format",blockquote:"format",subscript:"format",superscript:"format",removeformat:"format",formatselect:"format",fontselect:"format",fontsizes:"format",forecolor:"format",backcolor:"format",fontformats:"format",blockformats:"format",codeformat:"format",align:"format",table:"table",lineheight:"format",help:"help"}},j={file:!0,view:!0,edit:!0},U=t=>{let a=[];return t.split("|").forEach(e=>{let i=e.split(" "),o=[];i.forEach(r=>{r&&o.push({isSelect:R(r),name:r}),r&&w.items[r]&&(j[w.items[r]]=!0)}),o.length>0&&a.push(o)}),a},mt=t=>{let a=[];return t.split("|").forEach(e=>{let i=e.split(" "),o=[];i.forEach(r=>{r&&o.push({isSelect:R(r),name:r})}),a.push(o)}),a},J=()=>`.skt-tox-tinymce{ border: 1px solid #ccc; border-radius: 0; box-shadow: none; box-sizing: border-box; display: flex; flex-direction: column; font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif; overflow: hidden; position: relative; visibility: inherit!important; font-size: 16px; font-style: normal; font-weight: 400; line-height: normal; -webkit-tap-highlight-color: transparent; text-decoration: none; text-shadow: none; text-transform: none; vertical-align: initial; white-space: normal; height: 200px; } .skt-tox-editor-container{ display: flex; flex: 1 1 auto; flex-direction: column; overflow: hidden; } .skt-tox-editor-header{ box-shadow: none; transition: box-shadow .5s; z-index: 1; } .skt-tox-anchorbar{ display: flex; flex: 0 0 auto; border-top: 1px solid #ccc; } .skt-tox-tinymce .skt-tox-statusbar{ align-items: center; background-color: #fff; border-top: 1px solid #ccc; color: rgba(34,47,62,.7); display: flex; flex: 0 0 auto; font-size: 12px; font-weight: 400; height: 18px; overflow: hidden; padding: 0 8px; position: relative; text-transform: uppercase; } .skt-tox-tinymce .skt-tox-toolbar,.skt-tox-tinymce .skt-tox-menubar{ background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23cccccc'/%3E%3C/svg%3E") left 0 top 0 #fff; background-color: #fff; display: flex; flex: 0 0 auto; flex-shrink: 0; flex-wrap: wrap; padding: 0 0; } .skt-tox-mbtn{ align-items: center; background: 0 0; border: 0; border-radius: 3px; box-shadow: none; color: #222f3e; display: flex; flex: 0 0 auto; font-size: 14px; font-style: normal; font-weight: 400; height: 34px; justify-content: center; margin: 2px 0 3px 0; outline: 0; overflow: hidden; padding: 0 4px; text-transform: none; width: auto; } .skt-tox-mbtn__select-label { cursor: default; font-weight: 400; margin: 0 4px; } .skt-tox-tbtn.skt-tox-split-button{ border: 0; border-radius: 3px; box-sizing: border-box; display: flex; width: 50px; margin: 2px 0 3px 0; overflow: hidden; } .skt-tox-split-button .skt-tox-tbtn__select-chevron{ margin-left: 5px; } .skt-tox-toolbar__group{ border-right:1px solid #ccc; align-items: center; display: flex; flex-wrap: wrap; margin: 0 0; padding: 0 4px 0 4px; } .skt-tox-toolbar__group:last-child { border-right: 0px; } .skt-tox-sidebar-wrap-box{ display: flex; flex: 0 0 auto; flex-direction: column; flex-shrink: 0; height: 100%; overflow: hidden; position: relative; width: 100%; } .skt-tox-sidebar-wrap-box p{ height: 16px; width: calc(100% - 40px); margin: 5px 20px; } .skt-tox-sidebar-wrap-box p:first-child{ width: calc(100% - 74px)!important; margin-top: 20px; margin-left: 54px!important; } .skt-tox-sidebar-wrap-box p:nth-child(3n+2){ width: 90%; margin-right:8%; } .skt-tox-sidebar-wrap-box p:nth-child(3n+3){ width: calc(100% - 74px); margin-left: 54px } .skt-tox-sidebar-wrap-box p:nth-child(3n+1){ width: 75%; margin-right:8%; } .skt-tox-sidebar-wrap-box p:last-child{ width: 65%!important; margin-left: 20px; } .skt-tox-tbtn{ align-items: center; background: 0 0; border: 0; border-radius: 3px; box-shadow: none; color: #222f3e; display: flex; flex: 0 0 auto; font-size: 14px; font-style: normal; font-weight: 400; height: 34px; justify-content: center; margin: 2px 0 3px 0; outline: 0; overflow: hidden; padding: 0; text-transform: none; width: 34px; } .skt-tox-tbtn--select{ margin: 2px 0 3px 0; padding: 0 4px; padding-right: 3px; width: auto; } .skt-tox-tbtn__select-label{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 7em; font-weight: 400; margin: 0 4px; } .skt-tox-tbtn__select-chevron{ align-items: center; display: flex; justify-content: center; width: 10px; height: 14px; } .skt-tox-icon { display: inline-block; width: 24px; height: 24px; } @-webkit-keyframes skeleton-ani { 0% { left: -90% } to { left: 120% } } @keyframes skeleton-ani { 0% { left: -90% } to { left: 120% } } .skt{ display: none; width: 100%; top:0; position: absolute; z-index: 99; background: #fff; } .skt.skt-loading{ display: block; } .skt-loading .skeleton { position: relative; overflow: hidden; border: none !important; border-radius: 5px; background-color: rgba(0, 0, 0, 0) !important; background-image: none !important; pointer-events: none; } .skt-loading .skeleton:after { content: ""; position: absolute; left: 0; top: 0; z-index: 9; width: 100%; height: 100%; background-color: #ebf1f8; display: block } .skt-loading .skeleton:not(.not-round):after { border-radius: 4px } .skt-loading .tox-tbtn__select-chevron{ display: inline-block; width: 8px; height: 18px; } .skt-loading .tox-icon { display: inline-block; width: 24px; height: 24px;} .skt-loading .skeleton:not(.not-before):before { position: absolute; top: 0; width: 30%; height: 100%; content: ""; background: -webkit-gradient(linear, left top, right top, color-stop(0, hsla(0, 0%, 100%, 0)), color-stop(50%, hsla(0, 0%, 100%, .3)), to(hsla(0, 0%, 100%, 0))); background: -o-linear-gradient(left, hsla(0, 0%, 100%, 0) 0, hsla(0, 0%, 100%, .3) 50%, hsla(0, 0%, 100%, 0) 100%); background: linear-gradient(90deg, hsla(0, 0%, 100%, 0) 0, hsla(0, 0%, 100%, .3) 50%, hsla(0, 0%, 100%, 0)); -webkit-transform: skewX(-45deg); -ms-transform: skewX(-45deg); transform: skewX(-45deg); z-index: 99; -webkit-animation: skeleton-ani 1s ease infinite; animation: skeleton-ani 1s ease infinite; display: block } .skt-loading .skeleton.badge:after { background-color: #f8fafc }`,K=()=>`[data-isdark] .skt-tox-tinymce{ border: 1px solid #000; border-radius: 0; box-shadow: none; box-sizing: border-box; display: flex; flex-direction: column; font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif; overflow: hidden; position: relative; visibility: inherit!important; font-size: 16px; font-style: normal; font-weight: 400; line-height: normal; -webkit-tap-highlight-color: transparent; text-decoration: none; text-shadow: none; text-transform: none; vertical-align: initial; white-space: normal; height: 200px; } .skt-tox-editor-container{ display: flex; flex: 1 1 auto; flex-direction: column; overflow: hidden; } .skt-tox-editor-header{ box-shadow: none; transition: box-shadow .5s; z-index: 1; } [data-isdark] .skt-tox-anchorbar{ display: flex; flex: 0 0 auto; border-top: 1px solid #000; } [data-isdark] .skt-tox-tinymce .skt-tox-statusbar{ align-items: center; background-color: #222f3e; border-top: 1px solid #000; color: rgba(34,47,62,.7); display: flex; flex: 0 0 auto; font-size: 12px; font-weight: 400; height: 18px; overflow: hidden; padding: 0 8px; position: relative; text-transform: uppercase; } [data-isdark] .skt-tox-tinymce .skt-tox-toolbar,[data-isdark] .skt-tox-tinymce .skt-tox-menubar{ background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23000000'/%3E%3C/svg%3E") left 0 top 0 #222f3e; background-color: #222f3e; display: flex; flex: 0 0 auto; flex-shrink: 0; flex-wrap: wrap; padding: 0 0; } [data-isdark] .skt-tox-tinymce .skt-tox-mbtn{ align-items: center; background: 0 0; border: 0; border-radius: 3px; box-shadow: none; color: #fff; display: flex; flex: 0 0 auto; font-size: 14px; font-style: normal; font-weight: 400; height: 34px; justify-content: center; margin: 2px 0 3px 0; outline: 0; overflow: hidden; padding: 0 4px; text-transform: none; width: auto; } .skt-tox-mbtn__select-label { cursor: default; font-weight: 400; margin: 0 4px; } .skt-tox-tbtn.skt-tox-split-button{ border: 0; border-radius: 3px; box-sizing: border-box; display: flex; width: 50px; margin: 2px 0 3px 0; overflow: hidden; } .skt-tox-split-button .skt-tox-tbtn__select-chevron{ margin-left: 5px; } [data-isdark] .skt-tox-tinymce .skt-tox-toolbar__group{ border-right:1px solid #000; align-items: center; display: flex; flex-wrap: wrap; margin: 0 0; padding: 0 4px 0 4px; } .skt-tox-toolbar__group:last-child { border-right: 0px; } .skt-tox-sidebar-wrap-box{ display: flex; flex: 0 0 auto; flex-direction: column; flex-shrink: 0; height: 100%; overflow: hidden; position: relative; width: 100%; } .skt-tox-sidebar-wrap-box p{ height: 16px; width: calc(100% - 40px); margin: 5px 20px; } .skt-tox-sidebar-wrap-box p:first-child{ width: calc(100% - 74px)!important; margin-top: 20px; margin-left: 54px!important; } .skt-tox-sidebar-wrap-box p:nth-child(3n+2){ width: 90%; margin-right:8%; } .skt-tox-sidebar-wrap-box p:nth-child(3n+3){ width: calc(100% - 74px); margin-left: 54px } .skt-tox-sidebar-wrap-box p:nth-child(3n+1){ width: 75%; margin-right:8%; } .skt-tox-sidebar-wrap-box p:last-child{ width: 65%!important; margin-left: 20px; } [data-isdark] .skt-tox-tinymce .skt-tox-tbtn{ align-items: center; background: 0 0; border: 0; border-radius: 3px; box-shadow: none; color: #fff; display: flex; flex: 0 0 auto; font-size: 14px; font-style: normal; font-weight: 400; height: 34px; justify-content: center; margin: 2px 0 3px 0; outline: 0; overflow: hidden; padding: 0; text-transform: none; width: 34px; } .skt-tox-tbtn--select{ margin: 2px 0 3px 0; padding: 0 4px; padding-right: 3px; width: auto; } .skt-tox-tbtn__select-label{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 7em; font-weight: 400; margin: 0 4px; } .skt-tox-tbtn__select-chevron{ align-items: center; display: flex; justify-content: center; width: 10px; height: 14px; } .skt-tox-icon { display: inline-block; width: 24px; height: 24px; } @-webkit-keyframes skeleton-ani { 0% { left: -90% } to { left: 120% } } @keyframes skeleton-ani { 0% { left: -90% } to { left: 120% } } .skt[data-isdark]{ display: none; width: 100%; top:0; position: absolute; z-index: 99; background: #222f3e } .skt.skt-loading{ display: block; } .skt-loading .skeleton { position: relative; overflow: hidden; border: none !important; border-radius: 5px; background-color: rgba(0, 0, 0, 0) !important; background-image: none !important; pointer-events: none; } .skt-loading .skeleton:after { content: ""; position: absolute; left: 0; top: 0; z-index: 9; width: 100%; height: 100%; background-color: #ebf1f8; display: block } .skt-loading .skeleton:not(.not-round):after { border-radius: 4px } .skt-loading .tox-tbtn__select-chevron{ display: inline-block; width: 8px; height: 18px; } .skt-loading .tox-icon { display: inline-block; width: 24px; height: 24px;} .skt-loading .skeleton:not(.not-before):before { position: absolute; top: 0; width: 30%; height: 100%; content: ""; background: -webkit-gradient(linear, left top, right top, color-stop(0, hsla(0, 0%, 100%, 0)), color-stop(50%, hsla(0, 0%, 100%, .3)), to(hsla(0, 0%, 100%, 0))); background: -o-linear-gradient(left, hsla(0, 0%, 100%, 0) 0, hsla(0, 0%, 100%, .3) 50%, hsla(0, 0%, 100%, 0) 100%); background: linear-gradient(90deg, hsla(0, 0%, 100%, 0) 0, hsla(0, 0%, 100%, .3) 50%, hsla(0, 0%, 100%, 0)); -webkit-transform: skewX(-45deg); -ms-transform: skewX(-45deg); transform: skewX(-45deg); z-index: 99; -webkit-animation: skeleton-ani 1s ease infinite; animation: skeleton-ani 1s ease infinite; display: block } .skt-loading .skeleton.badge:after { background-color: #f8fafc }`,bt=t=>{if(!document.querySelector("style#skt-tox-style")){let l=document.createElement("style");l.type="text/css",l.id="skt-tox-style";try{l.appendChild(document.createTextNode(J()))}catch{l.styleSheet.cssText=J()}document.getElementsByTagName("head")[0].appendChild(l)}if(!document.querySelector("style#skt-dark-tox-style")){let l=document.createElement("style");l.type="text/css",l.id="skt-dark-tox-style";try{l.appendChild(document.createTextNode(K()))}catch{l.styleSheet.cssText=K()}document.getElementsByTagName("head")[0].appendChild(l)}let a=[];typeof t.toolbar=="string"?a=U(t.toolbar):Array.isArray(t.toolbar)&&t.toolbar.forEach(l=>{a.push(...U(l))});let n=[];if(t.menubar!==!1)if(typeof t.menubar=="string")n=mt(t.menubar);else for(let l in w.title)j[l]&&n.push(w.title[l][t.language||"en_US"]);let e=t.min_height||t.height||200,i=[],o=e-150;for(let l=0;l{let a="";return t.forEach(n=>{typeof n=="object"?n.forEach(e=>{a+=' `}):a+=' `}),a},ft=t=>{let a="";return t.forEach(n=>{a+=`
    `,n.forEach(e=>{a+=' `}),a+=`
    `}),a},yt=t=>{let a="";return t.forEach(n=>{a+=`

    `}),a},Ct=t=>`
    ${xt(t.menubar)}
    ${ft(t.toolbar)}

     

    ${yt(t.placeholderList)}

    PP
    ${t.branding?'Powered by Five ':""}
    `;g.customTags[$.name]=$,g.customTags[V.name]=V,g.customTags[N.name]=N;let vt=(t,a,n)=>{let e=` `;for(let i=0;i input:nth-child(${i+1}):checked ~ .tp-${t}_top > .tp-${t}_label:nth-child(${i+1}){${a}} .tp-${t} > input:nth-child(${i+1}):checked ~ .tp-${t}_main .tp-tab_main_${i}{ max-height: 10000px; } `;return e},kt=(t,a)=>{let n="";return L(t.specialStyle).forEach(e=>{n+=t.specialStyle[e]?` `+a[e]+" { "+t.specialStyle[e]+"} ":""}),n},Et=t=>{t.tp$OutputStyle="";let a=2,n="",e="",i="",o="",r={},s={},l={};t.tp$Style&&t.tp$Style.mapping&&(!t.tp$CustomTags&&(t.tp$CustomTags=JSON.parse(JSON.stringify(g.customTags))),L(t.tp$Style.mapping).forEach(x=>{let p=t.tp$Style.mapping[x];p.styleCustomTags==="tabs"&&(r[p.styleTemplate]||(n=t.tp$CustomTags[p.styleCustomTags][p.stylePath][p.styleTemplate],r[p.styleTemplate]=!0),a input[id="'+x+'"]:checked + .tp-collapse_label + .tp-collapse_main'}):""),p.styleCustomTags==="buttons"&&!l[p.styleTemplate]&&(e+=E(t.tp$CustomTags[p.styleCustomTags][p.stylePath][p.styleTemplate],p.styleTemplate),l[p.styleTemplate]=!0)}));let u="",c="";n&&(n=n.replace(/.tp-tabs\s*{/g,"div.tp-tabs[data-id] {").replace(/\n.tp-tabs\s/g,` .tp-tabs[data-id] `)+`.tp-tabs[data-id] > input { display: none;} .tp-tabs .tp-tabs_main .tp-tab_main { overflow: hidden;max-height: 0px;}`,u=n.match(/.tp-tabs_label.checked\s*{\n([\s\S]+)\n}/)[1],c=u?vt("tabs",u,a):""),t.tp$OutputStyle=(e?`@font-face { font-family: "iconfont"; /* Project id 2627438 */ src: url('//at.alicdn.com/t/font_2627438_tl87y8epxj.woff2?t=1630480852428') format('woff2'), url('//at.alicdn.com/t/font_2627438_tl87y8epxj.woff?t=1630480852428') format('woff'), url('//at.alicdn.com/t/font_2627438_tl87y8epxj.ttf?t=1630480852428') format('truetype'); }`:"")+e+i+o+n+c};const wt={iframeLayout:`
    X