"use strict";(self.webpackChunkwpuEsModules=self.webpackChunkwpuEsModules||[]).push([[5926],{25926:(t,s,e)=>{function n(t){const s=t.split("|");if(!t.length||s.length>2)throw new Error("Not valid tag is provided");const e=/[^a-z_]/i;return s.map((t=>{if(e.test(t))throw new Error("Not valid tag is provided");return`%{${t}}`}))}e.d(s,{G:()=>l});var r=e(62763),a=e.n(r),i=e(76795);class o{constructor(t,s,e){if(this._message=t,et.add(s))),void(this._children=[t]);for(const s of this._children){if(s._canFit(t))return void s.add(t);if(s._doesOverlap(t))return}this._children.push(t),this._children.sort(((t,s)=>t.startPos()===s.startPos()?0:t.startPos(){t[t.length-1].end=s.startPos(),t.push(s),t.push({start:s.endPos()+1,end:void 0})})),t[t.length-1].end=this.endPos()-this._endPadding()+1;const s=[];t.forEach(((t,e)=>{if(t instanceof o)return void s.push((0,i.jsx)(a().Fragment,{children:t.content()},e));const n=this._message.substring(t.start,t.end);n.length&&s.push((0,i.jsx)(a().Fragment,{children:n},e))}));const e=this._tagClass();return(0,i.jsx)(e,babelHelpers.objectSpread2(babelHelpers.objectSpread2({},this._tagOptions()),{},{children:s}))}_canFit(t){return this.startPos()+this._startPadding()<=t.startPos()&&t.endPos()<=this.endPos()-this._endPadding()}_doesOverlap(t){return this.startPos()<=t.startPos()&&t.startPos(){const a=new RegExp(function(t){const s=n(t);return 1===s.length?new RegExp(s[0],"g"):new RegExp(s[0]+"[^]*?"+s[1],"g")}(r));let i;for(;i=a.exec(t);){const n=new c(t,i.index,i.index+i[0].length-1,s[r],r);e.add(n)}})),e.content()}}}]); //# sourceURL=https://static-assets.filmfreeway.com/webpack/esmodule_bundles/FFESMODULES-5926~bca9998489465a6dafee.js