{ "actions": [ { "type": "@comment", "parameters": { "text": { "value": "GitHub: https://github.com/ipuppet/Juice" } } }, { "type": "@flow.javascript", "parameters": { "script": { "value": "(()=>{var e=globalThis,t={},r={},i=e.parcelRequire94c2;null==i&&((i=function(e){if(e in t)return t[e].exports;if(e in r){var i=r[e];delete r[e];var n={id:e,exports:{}};return t[e]=n,i.call(n.exports,n,n.exports),n.exports}var s=Error(\"Cannot find module '\"+e+\"'\");throw s.code=\"MODULE_NOT_FOUND\",s}).register=function(e,t){r[e]=t},e.parcelRequire94c2=i),(0,i.register)(\"bf9OB\",function(e,t){class r{margin=20;bgcolor=$color(\"insetGroupedBackground\");constructor(e){this.kernel=e,this.contentTextId=\"content-text\",this.resultTextId=\"result-text\"}getNavButtons(){return[{symbol:\"play.circle.fill\",title:$l10n(\"START\"),handler:()=>{let e=$(this.contentTextId).text;if(!e||\"\"===e){$ui.warning(\"Content is empty\");return}try{let t=this.kernel.juice(e);$(this.resultTextId).text=t,$ui.success(\"Done\")}catch(e){this.kernel.logger.error(e)}}},{symbol:\"doc.on.clipboard\",title:$l10n(\"PASTE\"),handler:()=>{let e=$clipboard.text;e&&\"\"!==e?$(this.contentTextId).text=e:$ui.warning(\"Clipboard is empty\")}}]}getView(){return{type:\"view\",props:{},layout:$layout.fill,views:[{type:\"text\",props:{id:this.contentTextId,cornerRadius:10,smoothCorners:!0,placeholder:\"Content here\",bgcolor:this.bgcolor},layout:(e,t)=>{e.top.left.right.equalTo(t.super.safeArea).inset(this.margin),e.height.equalTo(t.super.safeArea).dividedBy(2).offset(-2*this.margin)}},{type:\"text\",props:{id:this.resultTextId,cornerRadius:10,smoothCorners:!0,editable:!1,placeholder:\"Result here\",menu:{items:[{symbol:\"doc.on.clipboard\",title:$l10n(\"COPY\"),handler:()=>{let e=$(this.resultTextId).text;e&&\"\"!==e?($clipboard.text=$(this.resultTextId).text,$ui.success(\"Copied\")):$ui.warning(\"Result is empty\")}}]},bgcolor:this.bgcolor},layout:(e,t)=>{e.bottom.left.right.equalTo(t.super.safeArea).inset(this.margin),e.top.equalTo(t.prev.bottom).offset(this.margin)}}]}}}e.exports=r}),$app.strings={en:{ALERT_INFO:\"Alert\",NONE:\"None\",FAILED_TO_LOAD_VIEW:\"Faild to load view\",VIEW_NOT_PROVIDED:\"The view is not provided\",UNCATEGORIZED:\"Uncategorized\",OK:\"OK\",START:\"Start\",CANCEL:\"Cancel\",COPY:\"Copy\"},\"zh-Hans\":{ALERT_INFO:\"提示\",NONE:\"什么都没有\",FAILED_TO_LOAD_VIEW:\"加载视图失败\",VIEW_NOT_PROVIDED:\"未提供该视图\",UNCATEGORIZED:\"未分类\",OK:\"好\",START:\"开始\",CANCEL:\"取消\",COPY:\"复制\"}},$app.theme=\"auto\",$app.minSDKVer=\"2.19.0\",$app.minOSVer=\"13.0.0\",$app.idleTimerDisabled=!1,$app.keyboardToolbarEnabled=!0,$app.rotateDisabled=!1;var n={},s=class{title;handler;constructor({title:e=$l10n(\"OK\"),disabled:t=!1,style:r=$alertActionType.default,handler:i=()=>{}}={}){this.title=e,this.disabled=t,this.style=r,this.handler=i}},a=class e{id=$text.uuid;title;message;actions;titleFont=$font(\"bold\",20);messageFont=$font(14);actionButtonFontSize=16;actionButtonHighlight=$color($rgba(0,0,0,.2),$rgba(255,255,255,.2));actionButtonHeight=35;actionButtonBoderWidth=.5;actionButtonBorderColor=$color(\"#C9C9C9\",\"#383838\");boxWidth=250;textVerticalMargin=20;textHorizontalMargin=50;constructor({title:e=\"\",message:t=\"\",actions:r=[]}={}){this.title=e,this.message=t,this.actions=r,0===this.actions.length&&this.actions.push(new s),this.titleSize=_.getContentSize(this.titleFont,this.title,this.boxWidth-2*this.textHorizontalMargin),this.messageSize=_.getContentSize(this.messageFont,this.message,this.boxWidth-2*this.textHorizontalMargin)}textView(){return{type:\"view\",views:[{type:\"label\",props:{lines:0,font:this.titleFont,text:this.title,color:$color(\"tint\"),align:$align.center},layout:(e,t)=>{e.centerX.equalTo(t.super),e.width.equalTo(this.boxWidth-2*this.textHorizontalMargin),e.height.equalTo(this.titleSize.height),e.top.equalTo(this.textVerticalMargin)}},{type:\"label\",props:{lines:0,font:this.messageFont,text:this.message,align:$align.center},layout:(e,t)=>{e.centerX.equalTo(t.super),e.width.equalTo(this.boxWidth-2*this.textHorizontalMargin),e.height.equalTo(this.messageSize.height),e.top.equalTo(t.prev.bottom)}}],layout:(e,t)=>{e.top.width.equalTo(t.super),e.height.equalTo(this.titleSize.height+this.messageSize.height+2*this.textVerticalMargin)}}}actionView(){let e=(e,t)=>{let r=e=>2===this.actions.length?e.y>=0&&e.x>=0&&e.y<=this.actionButtonHeight&&e.x<=this.boxWidth/2:e.y>=0&&e.x>=0&&e.y<=this.actionButtonHeight&&e.x<=this.boxWidth,i=async(i,n,s)=>{e.disabled||(i.bgcolor=$color(\"clear\"),r(n)&&(\"function\"==typeof e.handler&&await e.handler({index:t,title:e.title}),this.dismiss()))},n=$color(\"tint\"),s=$font(this.actionButtonFontSize);return e.disabled?n=$color(\"gray\"):e.style===$alertActionType.destructive?n=$color(\"red\"):e.style===$alertActionType.cancel&&(s=$font(\"bold\",this.actionButtonFontSize)),{type:\"label\",props:{lines:1,text:e.title,align:$align.center,font:s,color:n,borderWidth:this.actionButtonBoderWidth,borderColor:this.actionButtonBorderColor,bgcolor:$color(\"clear\")},events:{tapped:()=>{},touchesBegan:t=>{e.disabled||(t.bgcolor=this.actionButtonHighlight)},touchesEnded:i,touchesCancelled:i,touchesMoved:(t,i,n)=>{e.disabled||(r(i)?t.bgcolor=this.actionButtonHighlight:t.bgcolor=$color(\"clear\"))}},layout:(e,t)=>{2===this.actions.length?t.prev?(e.left.equalTo(t.prev.right).offset(-this.actionButtonBoderWidth),e.width.equalTo(t.super).dividedBy(2).offset(this.actionButtonBoderWidth)):e.width.equalTo(t.super).dividedBy(2):(e.width.equalTo(t.super),t.prev&&e.top.equalTo(t.prev.bottom).offset(-this.actionButtonBoderWidth)),e.height.equalTo(this.actionButtonHeight)}}};return{type:\"view\",views:this.actions.map((t,r)=>e(t,r)),layout:(e,t)=>{e.left.equalTo(t.super).offset(-this.actionButtonBoderWidth),e.width.equalTo(t.super).offset(2*this.actionButtonBoderWidth),e.bottom.equalTo(t.super),e.top.equalTo(t.prev.bottom)}}}getView(){let e={type:\"view\",props:{id:this.id+\"-box\",smoothCorners:!0,cornerRadius:20,bgcolor:$color(\"#FFFFFF\",\"#000000\")},views:[this.textView(),this.actionView()],layout:(e,t)=>{e.center.equalTo(t.super.safeArea);let r=this.titleSize.height+this.messageSize.height+2*this.textVerticalMargin,i=this.actions.length>2?this.actions.length:1;r+=this.actionButtonHeight*i,r-=this.actionButtonBoderWidth*i;let n=this.boxWidth-2*this.actionButtonBoderWidth;e.size.equalTo($size(n,r))}};return{type:\"view\",props:{id:this.id,alpha:0,bgcolor:$rgba(0,0,0,.6)},views:[e],layout:$layout.fill}}present(){let e=$ui.create(this.getView());$ui.controller.view.hidden?$ui.controller.view.super.insertAtIndex(e,0):$ui.controller.view.insertAtIndex(e,0);let t=$(this.id);t.layout($layout.fill),t.moveToFront(),$ui.animate({duration:.3,animation:()=>{t.alpha=1}})}dismiss(){let e=$(this.id);$ui.animate({duration:.3,animation:()=>{e.alpha=0},completion:()=>{e.remove()}})}static fromJsbox(t){return new Promise((r,i)=>{new e({title:t.title,message:t.message,actions:t?.actions?.map(e=>(e.handler||(e.handler=e=>{r(e)}),new s(e)))}).present()})}},o=class{events={};setEvents(e){return Object.keys(e).forEach(t=>this.setEvent(t,e[t])),this}setEvent(e,t){return this.events[e]=t,this}appendEvent(e,t){let r=this.events[e];return\"function\"==typeof r?this.events[e]=(...e)=>{r(...e),t(...e)}:this.setEvent(e,t),this}callEvent(e,...t){\"function\"==typeof this.events[e]&&this.events[e](...t)}},l=class{viewController;constructor(){this.edges=10,this.iconSize=25}setViewController(e){this.viewController=e}get menu(){return{items:[{title:$l10n(\"SHARE\"),symbol:\"square.and.arrow.up\",handler:async(e,t)=>{let r=e.object(t).info.info;$share.sheet([$file.absolutePath(r.path)])}}]}}delete(e){$file.delete(e.path)}edit(e){let t=$file.read(e.path);if(t.info?.mimeType?.startsWith(\"image\"))m.quickLookImage(t,e.path.substring(e.path.lastIndexOf(\"/\")+1));else{let r=new m,i=$text.uuid;r.setView({type:\"code\",layout:$layout.fill,props:{id:i,lineNumbers:!0,theme:$device.isDarkMode?\"atom-one-dark\":\"atom-one-light\",text:t.string,insets:$insets(15,15,15,15)}}).addNavBar({title:e.file,popButton:{title:$l10n(\"CLOSE\")},rightButtons:[{title:$l10n(\"SAVE\"),tapped:()=>{$file.write({data:$data({string:$(i).text}),path:e.path}),$ui.success($l10n(\"SAVE_SUCCESS\"))}}]}),r.init().present()}}getFiles(e=\"\"){return $file.list(e).map(t=>{let r=e+\"/\"+t,i=$file.isDirectory(r);return{info:{info:{path:r,file:t,isDirectory:i}},icon:{symbol:i?\"folder.fill\":\"doc\"},name:{text:t},size:{text:i?\"\":\"--\"}}}).sort((e,t)=>e.info.info.isDirectory!==t.info.info.isDirectory?e.info.info.isDirectory?-1:1:e.info.info.isDirectory===t.info.info.isDirectory?e.info.info.file.localeCompare(t.info.info.file):void 0)}async loadFileSize(e){return e.map((t,r)=>{let i=t.info.info;if(!i.isDirectory)try{e[r].size.text=_.bytesToSize($file.read(i.path).info.size)}catch(t){e[r].size.text=t}}),e}get listTemplate(){return{props:{bgcolor:$color(\"clear\")},views:[{props:{id:\"info\"}},{type:\"image\",props:{id:\"icon\"},layout:(e,t)=>{e.centerY.equalTo(t.super),e.left.inset(this.edges),e.size.equalTo(this.iconSize)}},{type:\"view\",views:[{type:\"label\",props:{id:\"size\",color:$color(\"secondaryText\"),lines:1},layout:(e,t)=>{e.height.equalTo(t.super),e.right.inset(this.edges)}},{type:\"label\",props:{id:\"name\",lines:1},layout:(e,t)=>{e.height.left.equalTo(t.super),e.right.equalTo(t.prev.left).offset(-this.edges)}}],layout:(e,t)=>{e.height.right.equalTo(t.super),e.left.equalTo(t.prev.right).offset(this.edges)}}]}}#e(e){let t=e.lastIndexOf(\"/\"),r=e.substring(t<0?0:t+1),i=this.getListView(e),n=async()=>{let t=$file.absolutePath(e);0===(await $ui.alert({title:\"Path\",message:t,actions:[{title:$l10n(\"COPY\")},{title:$l10n(\"OK\")}]})).index&&($clipboard.text=t,$ui.toast($l10n(\"COPIED\")))};if(this.viewController){let e=new x;e.setView(i).navigationBarTitle(r),e.navigationBar.setLargeTitleDisplayMode(w.largeTitleDisplayModeNever),e.navigationBarItems.addRightButton({symbol:\"info.circle\",tapped:n}),this.viewController.push(e)}else _.push({title:r,views:[i],navButtons:[{symbol:\"info.circle\",handler:n}]})}getListView(e=\"\"){return{type:\"list\",props:{menu:this.menu,bgcolor:_.primaryViewBackgroundColor,separatorInset:$insets(0,this.edges,0,0),data:[],template:this.listTemplate,actions:[{title:\" \"+$l10n(\"DELETE\")+\" \",color:$color(\"red\"),handler:(e,t)=>{let r=e.object(t).info.info;_.deleteConfirm($l10n(\"FILE_MANAGER_DELETE_CONFIRM_MSG\")+' \"'+r.file+'\" ?',()=>{this.delete(r),e.delete(t)})}}]},layout:$layout.fill,events:{ready:t=>{let r=this.getFiles(e);t.data=r,this.loadFileSize(r).then(e=>{t.data=e})},pulled:async t=>{let r=this.getFiles(e);t.data=r,t.data=await this.loadFileSize(r),$delay(.5,()=>{t.endRefreshing()})},didSelect:(e,t,r)=>{let i=r.info.info;i.isDirectory?this.#e(i.path):this.edit(i)}}}}push(e=\"\"){this.#e(e)}},c=class e{basePath;constructor({basePath:e=\"storage\"}={}){this.basePath=e,this.#e(this.basePath)}static join(...e){let t=e.length,r=e[0];if(t<2)return r;for(let i=0;ie&&(i=t.substring(e+1),t=t.substring(0,e+1))}return r&&this.#e(t),t+i}exists(e=\"\"){return e=this.filePath(e,!1),!!$file.exists(e)}write(e=\"\",t){return new Promise((r,i)=>{try{let n=this.writeSync(e,t);n?r(n):i(n)}catch(e){i(e)}})}writeSync(e=\"\",t){if(!t)throw new S(\"data\");return $file.write({data:t,path:this.filePath(e)})}read(e=\"\"){return new Promise((t,r)=>{try{let i=this.readSync(e);i?t(i):r()}catch(e){r(e)}})}readSync(e=\"\"){if(e=this.filePath(e),!$file.exists(e))throw new C(e);return $file.isDirectory(e)?$file.list(e):$file.read(e)}readAsJSON(e=\"\",t=null){try{let t=this.readSync(e)?.string;return JSON.parse(t)}catch{return t}}static readFromRoot(t=\"\"){return new Promise((r,i)=>{try{let n=e.readFromRootSync(t);n?r(n):i()}catch(e){i(e)}})}static readFromRootSync(e=\"\"){if(!e)throw new S(\"path\");if(!$file.exists(e))throw new C(e);return $file.isDirectory(e)?$file.list(e):$file.read(e)}static readFromRootAsJSON(t=\"\",r=null){try{let r=e.readFromRootSync(t)?.string;return JSON.parse(r)}catch{return r}}delete(e=\"\"){return $file.delete(this.filePath(e,!1))}copy(e,t){e=this.filePath(e),t=this.filePath(t),$file.copy({src:e,dst:t})}move(e,t){e=this.filePath(e),t=this.filePath(t),$file.move({src:e,dst:t})}},u=class e{startTime=Date.now();isUseJsboxNav=!1;title=$addin?.current?.name;constructor(){$app.isDebugging&&(console.log(\"You are running EasyJsBox in debug mode.\"),$app.idleTimerDisabled=!0),h.init()}static isObject(e){return null!=e&&\"object\"==typeof e}static objectEqual(t,r){let i=Object.keys(t),n=Object.keys(r);if(i.length!==n.length)return!1;i.sort(),n.sort();for(let e=0;ee?r[e]:0,n=isNaN(Number(t))?t.charCodeAt():Number(t),a=i.length>e?i[e]:0,o=isNaN(Number(a))?a.charCodeAt():Number(a);if(no){s=1;break}}return s}useJsboxNav(){return this.isUseJsboxNav=!0,this}setTitle(e){this.isUseJsboxNav&&($ui.title=e),this.title=e}setNavButtons(e){this.navButtons=e}openInJsbox(){$app.openURL(`jsbox://run?name=${this.title}`)}UIRender(e={}){let t=$context.query;if(\"alertFromKeyboard\"===t.type){let e=JSON.parse($text.URLDecode(t.value));e.actions=[{title:$l10n(\"CANCEL\")}],$ui.alert(e);return}try{e.props=Object.assign({title:this.title,navBarHidden:!this.isUseJsboxNav,navButtons:this.navButtons??[],statusBarStyle:0},e.props),e.events||(e.events={});let t=e.events.layoutSubviews;e.events.layoutSubviews=()=>{$app.notify({name:\"interfaceOrientationEvent\",object:{statusBarOrientation:_.statusBarOrientation,isHorizontal:_.isHorizontal}}),\"function\"==typeof t&&t()},$ui.render(e)}catch(e){this.print(e)}}KeyboardRender(e={}){e.id||(e.id=$text.uuid),$ui.render(),$delay(0,()=>{$ui.controller.view=$ui.create(e),$ui.controller.view.layout(e.layout)})}KeyboardRenderWithViewFunc(e){$ui.render(),$delay(0,()=>{$ui.controller.view=$ui.create({type:\"view\"}),$delay(0,async()=>{let t=await e();t.id||(t.id=$text.uuid),$ui.controller.view=$ui.create(t),$ui.controller.view.layout(t.layout)})})}async checkUpdate(){let t=await $http.get(\"https://raw.githubusercontent.com/ipuppet/EasyJsBox/dev/src/version.js\");if(t.error)throw t.error;let r=t.data.match(/.*VERSION.+\\\"([0-9\\.]+)\\\"/)[1];if(this.print(`easy-jsbox latest version: ${r}`),e.versionCompare(r,\"1.4.4\")>0){let e=await $http.get(\"https://raw.githubusercontent.com/ipuppet/EasyJsBox/dev/dist/easy-jsbox.js\");if(e.error)throw e.error;return e.data}return!1}},h=class{static l10n(e,t,r){if(\"string\"==typeof t){let e={};t.split(\";\").forEach(t=>{if(\"\"!==(t=t.trim())){let r=t.split(\"=\");e[r[0].trim().slice(1,-1)]=r[1].trim().slice(1,-1)}}),t=e}let i=$app.strings;if(r)Object.assign(i[e],t);else for(let r in t)i[e][r]||(i[e][r]=t[r]);$app.strings=i}static set(e,t){this.l10n(e,t,!0)}static add(e,t){this.l10n(e,t,!1)}static init(){this.add(\"zh-Hans\",{OK:\"好\",DONE:\"完成\",CANCEL:\"取消\",CLEAR:\"清除\",BACK:\"返回\",ERROR:\"发生错误\",SUCCESS:\"成功\",INVALID_VALUE:\"非法参数\",CONFIRM_CHANGES:\"数据已变化,确认修改?\",SETTING:\"设置\",GENERAL:\"一般\",ADVANCED:\"高级\",TIPS:\"小贴士\",COLOR:\"颜色\",COPY:\"复制\",COPIED:\"复制成功\",JSBOX_ICON:\"JSBox 内置图标\",SF_SYMBOLS:\"SF Symbols\",IMAGE_BASE64:\"图片 / base64\",PREVIEW:\"预览\",SELECT_IMAGE_PHOTO:\"从相册选择图片\",SELECT_IMAGE_ICLOUD:\"从 iCloud 选择图片\",CLEAR_IMAGE:\"清除图片\",NO_IMAGE:\"无图片\",ABOUT:\"关于\",VERSION:\"Version\",AUTHOR:\"作者\",AT_BOTTOM:\"已经到底啦~\"}),this.add(\"en\",{OK:\"OK\",DONE:\"Done\",CANCEL:\"Cancel\",CLEAR:\"Clear\",BACK:\"Back\",ERROR:\"Error\",SUCCESS:\"Success\",INVALID_VALUE:\"Invalid value\",CONFIRM_CHANGES:\"The data has changed, confirm the modification?\",SETTING:\"Setting\",GENERAL:\"General\",ADVANCED:\"Advanced\",TIPS:\"Tips\",COLOR:\"Color\",COPY:\"Copy\",COPIED:\"Copide\",JSBOX_ICON:\"JSBox in app icon\",SF_SYMBOLS:\"SF Symbols\",IMAGE_BASE64:\"Image / base64\",PREVIEW:\"Preview\",SELECT_IMAGE_PHOTO:\"Select From Photo\",SELECT_IMAGE_ICLOUD:\"Select From iCloud\",CLEAR_IMAGE:\"Clear Image\",NO_IMAGE:\"No Image\",ABOUT:\"About\",VERSION:\"Version\",AUTHOR:\"Author\",AT_BOTTOM:\"It's the end~\"}),this.add(\"zh-Hans\",{DELETE_CONFIRM_TITLE:\"删除前确认\"}),this.add(\"en\",{DELETE_CONFIRM_TITLE:\"Delete Confirmation\"}),this.add(\"zh-Hans\",{FILE_MANAGER_DELETE_CONFIRM_MSG:\"确认要删除吗\",DELETE:\"删除\",CANCEL:\"取消\",CLOSE:\"关闭\",SHARE:\"分享\",SAVE:\"保存\",SAVE_SUCCESS:\"保存成功\"}),this.add(\"en\",{FILE_MANAGER_DELETE_CONFIRM_MSG:\"Are you sure you want to delete\",DELETE:\"Delete\",CANCEL:\"Cancel\",CLOSE:\"Close\",SHARE:\"Share\",SAVE:\"Save\",SAVE_SUCCESS:\"Save Success\"})}},d=class e{static level={info:\"info\",warn:\"warn\",error:\"error\"};writer;fsLevels=[e.level.error];printToFile(e){this.fsLevels=e}setWriter(e,t){this.writer=r=>{e.exists(t)&&(r=(e.readSync(t)?.string??\"\")+r),e.writeSync(t,$data({string:r}))}}format(e,t){return`${new Date().toUTCString()} [${t.toUpperCase()}] ${e}\n`}log(e,t){this.writer&&this.fsLevels.includes(t)&&this.writer(this.format(e,t)),$app.isDebugging&&console[t](e)}info(t){this.log(t,e.level.info)}warn(t){this.log(t,e.level.warn)}error(t){this.log(t,e.level.error)}},p=class{rightButtons=[];leftButtons=[];#e={};hasbutton=!1;isPinTitleView=!1;setTitleView(e){return this.titleView=e,this}pinTitleView(){return this.isPinTitleView=!0,this}setFixedFooterView(e){return this.fixedFooterView=e,this}setRightButtons(e){return e.forEach(e=>this.addRightButton(e)),this.hasbutton||(this.hasbutton=!0),this}setLeftButtons(e){return e.forEach(e=>this.addLeftButton(e)),this.hasbutton||(this.hasbutton=!0),this}addRightButton({id:e,symbol:t,title:r,tapped:i,menu:n,events:s,color:a}={}){let o=k.creat({id:e,symbol:t,title:r,tapped:i,menu:n,events:s,color:a,align:_.align.right});return this.rightButtons.push(o),this.#e[e??o.id]=o,this.hasbutton||(this.hasbutton=!0),this}addLeftButton({id:e,symbol:t,title:r,tapped:i,menu:n,events:s,color:a}={}){let o=k.creat({id:e,symbol:t,title:r,tapped:i,menu:n,events:s,color:a,align:_.align.left});return this.leftButtons.push(o),this.#e[e??o.id]=o,this.hasbutton||(this.hasbutton=!0),this}getButton(e){return this.#e[e]}getButtons(){return Object.values(this.#e)}addPopButton(e,t,r){return e||(e=$l10n(\"BACK\")),this.popButtonView=t??{type:\"button\",props:{bgcolor:$color(\"clear\"),symbol:\"chevron.left\",tintColor:_.linkColor,title:` ${e}`,titleColor:_.linkColor,font:$font(\"bold\",16)},layout:(e,t)=>{e.left.equalTo(t.super.safeArea).offset(k.style.edges),e.centerY.equalTo(t.super.safeArea)},events:{tapped:()=>{$ui.pop(),\"function\"==typeof r&&r()}}},this}removePopButton(){return this.popButtonView=void 0,this}},f=class{constructor(e){this.content=e}valueToJs(e){switch(e.tag){case\"dict\":return this.dictToJs(e);case\"true\":case\"false\":return\"true\"===e.tag;case\"integer\":return e.number;case\"key\":case\"string\":return e.string;case\"date\":return new Date(e.string);case\"array\":return this.arrayToJs(e);default:return e.node}}arrayToJs(e){let t=[];return e.children().forEach(e=>{t.push(this.valueToJs(e))}),t}dictToJs(e){let t=[],r=[];return e.children().forEach(e=>{\"key\"===e.tag?t.push(this.valueToJs(e)):r.push(this.valueToJs(e))}),Object.fromEntries(t.map((e,t)=>[e,r[t]]))}getObject(){if(!this.content)return!1;let e=$xml.parse({string:this.content,mode:\"xml\"});return this.valueToJs(e.rootElement.firstChild({xPath:\"//plist/dict\"}))}static get(e){return new this(e).getObject()}},T=class e{static method={get:\"GET\",post:\"POST\",put:\"PUT\",delete:\"DELETE\",patch:\"PATCH\",head:\"HEAD\",options:\"OPTIONS\"};static errorType={http:0,network:1};cacheContainerKey=$addin?.current?.name+\".request.cache\";#e;#t=!1;#r=!1;cacheLife=2592e6;#i=!1;timeout=5;logger;constructor(e){e instanceof d&&(this.logger=e)}get cache(){return $cache.get(this.cacheContainerKey)??{}}#n(e){this.#i&&this.logger instanceof d&&this.logger.info(e)}logRequest(){return this.#i=!0,this}disableLogRequest(){this.#i=!1}getCacheKey(e){return $text.MD5(e)}getCache(e,t=null){return this.cache[e]??t}setCache(e,t){if(!t)return;let r=this.cache;r[e]=t,$cache.set(this.cacheContainerKey,r)}removeCache(e){let t=this.cache;delete t[e],$cache.set(this.cacheContainerKey,t)}clearCache(){$cache.remove(this.cacheContainerKey)}clearNSURLCache(){this.#e||(this.#e=$objc(\"NSURLCache\").$sharedURLCache()),this.#e.$removeAllCachedResponses()}enableCache(){return this.#t=!0,this}disableCache(){return this.#t=!1,this}ignoreCacheExp(){this.#r=!0}async request(t,r,i={},n={},s=this.cacheLife,a){let o,l=this.#t&&r===e.method.get;if(l){o=this.getCacheKey(t);let e=this.getCache(o);if(e&&(this.#r||e.exp>Date.now()))return this.#n(\"get data from cache: \"+t),e.data}this.#n(`sending request [${r}]: ${t}`);let c=await $http.request(Object.assign({header:n,url:t,method:r,body:r===e.method.get?null:i,timeout:this.timeout},a));if(c.error)throw new b({type:e.errorType.network,message:c.error.localizedDescription,code:c.error.code});if(c?.response?.statusCode>=400){let t=c.data;throw\"object\"==typeof t&&(t=JSON.stringify(t)),new b({type:e.errorType.http,message:t,code:c.response.statusCode})}return l&&this.setCache(o,{exp:Date.now()+s,data:c}),c}},E=class e{static rowHeight=50;static edgeOffset=10;static iconSize=30;static iconDefaultColor=\"#00CC00\";setting;#e;#t;#r;title;#i={};#n;constructor({setting:e,key:t,title:r,icon:i,value:n=null}={}){this.setting=e,this.key=t,this.title=$l10n(r),this.icon=i,this.default=n}get method(){return this.setting.method}set key(e){return this.#t=e??$text.uuid,this.#e=void 0,this}get key(){return this.#t}get id(){return this.#e||(this.#e=`setting-${$text.uuid}-${this.key}`),this.#e}set icon(t){return t?Array.isArray(t)||(t=[t,e.iconDefaultColor]):t=[\"square.grid.2x2.fill\",e.iconDefaultColor],Array.isArray(t[0])||(t[0]=[t[0],t[0]]),t[1]?Array.isArray(t[1])||(t[1]=[t[1],t[1]]):t[1]=[e.iconDefaultColor,e.iconDefaultColor],this.#r=t,this}get icon(){return this.#r}get options(){return this.#i}set options(e){return this.#i=e??{},this}set(e){return\"function\"==typeof this.#n&&this.#n(e),this.setting.set(this.key,e)}onSet(e){return this.#n=e,this}get(e=this.default){return this.setting.getOriginal(this.key,e)}evalValues(e,t=[]){return\"string\"==typeof e?e.startsWith(\"this.method\")?Function(\"method\",`return ${e.replace(\"this.\",\"\")}()`)(this.method):Function(`return {${e}}`)():\"function\"==typeof e?e():e??t}createLineLabel(){return{type:\"view\",views:[{type:\"view\",props:{bgcolor:$color(this.icon[1][0],this.icon[1][1]),cornerRadius:5,smoothCorners:!0},views:[{type:\"image\",props:{tintColor:$color(\"white\"),image:$image(this.icon[0][0],this.icon[0][1])},layout:(e,t)=>{e.center.equalTo(t.super),e.size.equalTo(20)}}],layout:(t,r)=>{t.centerY.equalTo(r.super),t.size.equalTo(e.iconSize),t.left.inset(e.edgeOffset)}},{type:\"label\",props:{text:this.title,lines:1,align:$align.left},layout:(t,r)=>{t.centerY.equalTo(r.super),t.height.equalTo(r.super),t.left.equalTo(r.prev.right).offset(e.edgeOffset),t.width.greaterThanOrEqualTo(10)}}],layout:(e,t)=>{e.height.centerY.equalTo(t.super),e.left.inset(0)}}}getView(){}create(){return this.getView(this.options)}},m=class e{#e=()=>{};#t=()=>{};style=e.UIModalPresentationStyle.PageSheet;#r=!1;#i;#n;#s;static UIModalPresentationStyle={Automatic:-2,FullScreen:0,PageSheet:1,FormSheet:2,CurrentContext:3,Custom:4,OverFullScreen:5,OverCurrentContext:6,Popover:7,BlurOverFullScreen:8};navigationView;init(){this.initNavBar(),$define({type:\"SheetViewController: UIViewController\",events:{\"viewWillDisappear:\":e=>{\"function\"==typeof this.#n&&this.#n(e)},\"viewDidDisappear:\":e=>{\"function\"==typeof this.#s&&this.#s(e)}}}),this.sheetVC=$objc(\"SheetViewController\").$new();let e=this.sheetVC.$view();return e.$addSubview($ui.create({type:\"view\"})),this.sheetVC.$setModalPresentationStyle(this.style),this.sheetVC.$setModalInPresentation(this.#r),this.#e=()=>{e.jsValue().add(this.navigationView?.getPage().definition??this.view),$ui.vc.ocValue().invoke(\"presentViewController:animated:completion:\",this.sheetVC,!0,null)},this.#t=()=>this.sheetVC.invoke(\"dismissViewControllerAnimated:completion:\",!0,null),this}initNavBar(){if(!this.#i)return;let{title:t=\"\",popButton:r={title:$l10n(\"CLOSE\")},rightButtons:i=[]}=this.#i;if(void 0===this.view)throw new O;this.navigationView=new x;let n=this.navigationView.navigationBar;n.setLargeTitleDisplayMode(w.largeTitleDisplayModeNever),n.navigationBarLargeTitleHeight-=n.navigationBarNormalHeight,n.navigationBarNormalHeight=_.PageSheetNavigationBarNormalHeight,n.navigationBarLargeTitleHeight+=n.navigationBarNormalHeight,this.style===e.UIModalPresentationStyle.FullScreen||this.style===e.UIModalPresentationStyle.OverFullScreen||this.style===e.UIModalPresentationStyle.BlurOverFullScreen?n.setTopSafeArea():n.removeTopSafeArea(),r.events=Object.assign({tapped:async()=>{\"function\"==typeof r.tapped&&await r.tapped(),this.dismiss()}},r.events??{}),this.navigationView.navigationBarItems.addLeftButton(r).setRightButtons(i),this.navigationView.setView(this.view).navigationBarTitle(t),this.view.props?.bgcolor&&this.navigationView?.getPage().setProp(\"bgcolor\",this.view.props?.bgcolor)}preventDismiss(){return this.#r=!0,this}setStyle(e){return this.style=e,this}setView(e={}){if(\"object\"!=typeof e)throw new en(\"view\",\"object\");return this.view=e,this}addNavBar(e){return this.#i=e,this}present(){this.#e()}dismiss(){this.#t()}willDismiss(e){return this.#n=e,this}didDismiss(e){return this.#s=e,this}static quickLookImage(t,r=$l10n(\"PREVIEW\")){new e().setView({type:\"view\",views:[{type:\"scroll\",props:{zoomEnabled:!0,maxZoomScale:3},layout:$layout.fill,views:[{type:\"image\",props:{data:t},layout:$layout.fill}]}],layout:$layout.fill}).addNavBar({title:r,rightButtons:[{symbol:\"square.and.arrow.up\",tapped:()=>$share.sheet(t)}]}).init().present()}},g=class{#e={};addTask(e,t=0){let r=$text.uuid;return this.#e[r]=$delay(t,async()=>{await e(),delete this.#e[r]}),r}cancelTask(e){this.#e[e].cancel()}clearTasks(){Object.values(this.#e).forEach(e=>e.cancel())}},A=class e{static type={info:void 0,success:\"checkmark\",warning:\"exclamationmark.triangle\",error:\"xmark.circle\"};static edges=40;static iconSize=100;static labelTopMargin=10;static defaultFont=$font(\"default\",26);width=Math.min(.6*_.windowSize.width,260);labelWidth=this.width-2*e.edges;id=$text.uuid;#e=\"\";font=e.defaultFont;type=e.type.info;labelLines=2;constructor(t,r=e.type.info,i=2,n=e.defaultFont){this.type=r,this.message=t,this.labelLines=i,this.font=n}get message(){return this.#e}set message(t){this.#e=t,this.fontHeight=_.getContentSize(this.font,this.message,this.labelWidth,this.labelLines).height,this.height=(this.hasIcon?e.labelTopMargin+e.iconSize:0)+this.fontHeight+2*e.edges}get hasIcon(){return void 0!==this.type}get blurBox(){let t=_.blurBox({id:this.id,cornerRadius:15,alpha:0},[{type:\"image\",props:{symbol:this.type,hidden:!this.hasIcon,tintColor:$color(\"lightGray\")},layout:(t,r)=>{t.top.inset(e.edges),t.size.equalTo(e.iconSize),t.centerX.equalTo(r.super)}},{type:\"label\",props:{font:this.font,text:this.message,align:$align.center,lines:this.labelLines,color:$color(\"lightGray\")},layout:(t,r)=>{t.bottom.equalTo(r.supper).offset(-e.edges),t.width.equalTo(this.labelWidth),t.height.equalTo(this.fontHeight),t.centerX.equalTo(r.super)}}]);return t.events={tapped:()=>{this.remove()}},t}show(){let e=$ui.create(this.blurBox);$ui.controller.view.hidden?$ui.controller.view.super.insertAtIndex(e,0):$ui.controller.view.insertAtIndex(e,0);let t=$(this.id);t.layout((e,t)=>{e.center.equalTo(t.super),e.size.equalTo($size(this.width,this.height))}),t.moveToFront(),$ui.animate({duration:.2,animation:()=>{t.alpha=1}})}remove(){let e=$(this.id);e&&$ui.animate({duration:.2,animation:()=>{e.alpha=0},completion:()=>{e.remove()}})}static toast({message:t,type:r=e.type.info,show:i=!0,displayTime:n=2,labelLines:s=2,font:a=e.defaultFont}){let o=new e(t,r,s,a);return i&&(o.show(),$delay(n,()=>{o.remove()})),o}static info(t,r={}){return e.toast(Object.assign({message:t,type:e.type.info},r))}static success(t,r={}){return e.toast(Object.assign({message:t,type:e.type.success},r))}static warning(t,r={}){return e.toast(Object.assign({message:t,type:e.type.warning},r))}static error(t,r={}){return e.toast(Object.assign({message:t,type:e.type.error},r))}},_=class e{static #e=$objc(\"UIApplication\").$sharedApplication();static #t=$objc(\"UINotificationFeedbackGenerator\").$new();static feedbackSuccess(){e.#t.$notificationOccurred(0)}static feedbackError(){e.#t.$notificationOccurred(2)}static isTaio=$app.info.bundleID.includes(\"taio\");static align={left:0,right:1,top:2,bottom:3};static textColor=$color(\"primaryText\");static linkColor=$color(\"systemLink\");static primaryViewBackgroundColor=$color(\"primarySurface\");static scrollViewBackgroundColor=$color(\"insetGroupedBackground\");static scrollViewList=[\"list\",\"matrix\"];static isLargeScreen=$device.isIpad||$device.isIpadPro;static get windowSize(){return $objc(\"UIWindow\").$keyWindow().jsValue().size}static NavigationBarNormalHeight=$objc(\"UINavigationController\").invoke(\"alloc.init\").$navigationBar().jsValue().frame.height;static NavigationBarLargeTitleHeight=$objc(\"UITabBarController\").invoke(\"alloc.init\").$tabBar().jsValue().frame.height+e.NavigationBarNormalHeight;static PageSheetNavigationBarNormalHeight=56;static get isSplitScreenMode(){return e.isLargeScreen&&$device.info.screen.width!==e.windowSize.width}static get topSafeAreaInsets(){return e.isTaio?0:e.#e?.$keyWindow()?.$safeAreaInsets()?.top??0}static get bottomSafeAreaInsets(){return e.#e?.$keyWindow()?.$safeAreaInsets()?.bottom??0}static get statusBarOrientation(){return e.#e.$statusBarOrientation()}static get consoleBarHeight(){if($app.isDebugging){let t=e.#e.$statusBarFrame().height+26;return $device.isIphoneX&&(t+=30),t}return 0}static get isHorizontal(){return 3===e.statusBarOrientation||4===e.statusBarOrientation}static loading(){let t=$ui.create(e.blurBox({cornerRadius:15},[{type:\"spinner\",props:{loading:!0,style:0},layout:(e,t)=>{e.size.equalTo(t.prev),e.center.equalTo(t.super)}}]));return{start:()=>{$ui.controller.view.insertAtIndex(t,0),t.layout((t,r)=>{t.center.equalTo(r.super);let i=Math.min(.6*Math.min(e.windowSize.width,e.windowSize.height),260);t.size.equalTo($size(i,i))}),t.moveToFront()},end:()=>{t.remove()}}}static defaultBackgroundColor(t){return e.scrollViewList.indexOf(t)>-1?e.scrollViewBackgroundColor:e.primaryViewBackgroundColor}static separatorLine(t={},r=e.align.bottom){return{type:\"canvas\",props:t,layout:(t,i)=>{void 0===i.prev?t.top.equalTo(i.super):r===e.align.bottom?t.top.equalTo(i.prev.bottom):t.top.equalTo(i.prev.top),t.height.equalTo(1/$device.info.screen.scale),t.left.right.inset(0)},events:{draw:(e,r)=>{r.strokeColor=t.bgcolor??$color(\"separatorColor\"),r.setLineWidth(1),r.moveToPoint(0,0),r.addLineToPoint(e.frame.width,0),r.strokePath()}}}}static blurBox(e={},t=[],r=$layout.fill){return{type:\"blur\",props:Object.assign({style:$blurStyle.thinMaterial},e),views:t,layout:r}}static getContentSize(t,r=\"A\",i=e.windowSize.width,n){let s={text:r,width:i,font:t};return void 0!==n&&(s.lineSpacing=n),$text.sizeThatFits(s)}static getSymbolSize(e,t){let r=(e=\"string\"==typeof e?$image(e):e).size.width/e.size.height;return e.size.width>e.size.height?$size(t,t/r):$size(t*r,t)}static push({views:e,statusBarStyle:t=0,title:r=\"\",navButtons:i=[{title:\"\"}],bgcolor:n=e[0]?.props?.bgcolor??\"primarySurface\",titleView:s,disappeared:a}={}){let o={statusBarStyle:t,navButtons:i,title:r,bgcolor:\"string\"==typeof n?$color(n):n};s&&(o.titleView=s),$ui.push({props:o,events:{disappeared:()=>{void 0!==a&&a()}},views:[{type:\"view\",views:e,layout:(e,t)=>{e.top.equalTo(t.super.safeArea),e.bottom.equalTo(t.super),e.left.right.equalTo(t.super.safeArea)}}]})}static compressImage(e,t=921600){let r=$imagekit.info(e);if(r.height*r.width>t){let i=t/(r.height*r.width);e=$imagekit.scaleBy(e,i)}return e}static deleteConfirm(e,t){$ui.alert({title:$l10n(\"DELETE_CONFIRM_TITLE\"),message:e,actions:[{title:$l10n(\"DELETE\"),style:$alertActionType.destructive,handler:()=>{t()}},{title:$l10n(\"CANCEL\")}]})}static bytesToSize(e){if(0===e)return\"0 B\";let t=Math.floor(Math.log(e)/Math.log(1024));return(e/Math.pow(1024,t)).toPrecision(3)+\" \"+[\"B\",\"KB\",\"MB\",\"GB\",\"TB\",\"PB\",\"EB\",\"ZB\",\"YB\"][t]}},I=class{#e;text=\"\";interval;fullScreen=!1;#t=()=>{};constructor(){this.#e=$text.uuid}updateText(e){$(this.#e).text=e}setLoop(e){if(\"function\"!=typeof e)throw\"loop must be a function\";this.#t=e}done(){clearInterval(this.interval)}load(){$ui.render({props:{navBarHidden:this.fullScreen},views:[{type:\"spinner\",props:{loading:!0},layout:(e,t)=>{e.centerY.equalTo(t.super).offset(-15),e.width.equalTo(t.super)}},{type:\"label\",props:{id:this.#e,align:$align.center,text:\"\"},layout:(e,t)=>{e.top.equalTo(t.prev.bottom).offset(10),e.left.right.equalTo(t.super)}}],layout:$layout.fill,events:{appeared:()=>{this.interval=setInterval(()=>{this.#t()},100)}}})}},D=class e{id=$text.uuid;type;props;views;events;layout;#e=void 0;#t=null;constructor({type:e=\"view\",props:t={},views:r=[],events:i={},layout:n=$layout.fill}={}){this.type=e,this.props=t,this.views=r,this.events=i,this.layout=n,this.props.id?this.id=this.props.id:this.props.id=this.id}static create(e){return new this(e)}static createFromViews(e){return new this({views:e})}get scrollableView(){return this.scrollable?this.#t:null}set scrollableView(e){this.#t=e}get scrollable(){if(void 0===this.#e){if(this.#e=!1,_.scrollViewList.indexOf(this.type)>-1)this.scrollableView=this,this.#e=!0;else if(this.views.length>0){let t=r=>{if(!this.#e&&r?.length>0)for(let i=0;i-1){typeof r[i]!==e&&(r[i]=e.create(r[i])),this.scrollableView=r[i],this.#e=!0;return}else t(r[i].views)};t(this.views)}}return this.#e}set scrollable(e){throw Error(\"[scrollable] is readonly prop.\")}setProps(e){return Object.keys(e).forEach(t=>this.setProp(t,e[t])),this}setProp(e,t){return\"id\"===e&&(this.id=t),this.props[e]=t,this}setViews(e){return this.views=e,this.#e=void 0,this}setEvents(e){return Object.keys(e).forEach(t=>this.setEvent(t,e[t])),this}setEvent(e,t){return this.events[e]=t,this}eventMiddleware(e,t){let r=this.events[e];return this.events[e]=(...e)=>{\"function\"==typeof r&&t(r,...e)},this}assignEvent(e,t){let r=this.events[e];return this.events[e]=(...e)=>{\"function\"==typeof r&&r(...e),t(...e)},this}setLayout(e){return this.layout=e,this}getView(){return this}get definition(){return this.getView()}},S=class extends Error{constructor(e){super(`Parameter [${e}] is required.`),this.name=\"FileStorageParameterError\"}},C=class extends Error{constructor(e){super(`File not found: ${e}`),this.name=\"FileStorageFileNotFoundError\"}},b=class extends Error{constructor({message:e,code:t,type:r}={}){super(e),this.name=\"RequestError\",this.code=t,this.type=r}},y=class extends Error{constructor(){super(\"Call loadConfig() first.\"),this.name=\"SettingLoadConfigError\"}},N=class extends Error{constructor(){super(\"Attempted to assign to readonly property.\"),this.name=\"SettingReadonlyError\"}},O=class extends Error{constructor(){super(\"Please call setView(view) first.\"),this.name=\"SheetViewUndefinedError\"}},v=class extends Error{constructor(e,t){super(`The type of the parameter '${e}' must be '${t}'`),this.name=\"ValidationError\"}},R=class extends D{height=60;getView(){return this.type=\"view\",this.setProp(\"bgcolor\",_.primaryViewBackgroundColor),this.layout=(e,t)=>{e.left.right.bottom.equalTo(t.super),e.top.equalTo(t.super.safeAreaBottom).offset(-this.height)},this.views=[D.create({props:this.props,views:this.views,layout:(e,t)=>{e.left.right.top.equalTo(t.super),e.height.equalTo(this.height)}})],this}},P=class extends D{titleStyle={font:$font(\"bold\",21),height:30};#e;#t;templateIdByIndex(e){return this.props.template.views[e]?.props?.id===void 0&&(void 0===this.props.template.views[e].props&&(this.props.template.views[e].props={}),this.props.template.views[e].props.id=$text.uuid),this.props.template.views[e].props.id}get templateHiddenStatus(){if(!this.#t){this.#t={};for(let e=0;e{e.items=e.items.filter(e=>e?.__title?.hidden===!0),t.push(e)}),t}set data(e){this.props.data=this.rebuildData(e),$(this.id).data=this.props.data}#r(e){let t={...this.hiddenViews};return Object.assign(t,{__templateProps:{hidden:!0},__title:{hidden:!1,text:e,info:{title:!0}}}),t}rebuildData(e=[]){return e.map(e=>(e.items=e.items.map(e=>(Object.keys(e).forEach(t=>{e[t].hidden=this.templateHiddenStatus[t]??!1}),Object.keys(this.templateHiddenStatus).forEach(t=>{e[t]||(e[t]={}),e[t].hidden=this.templateHiddenStatus[t]}),e.__templateProps={hidden:!1},e.__title={hidden:!0},e)),e.title&&e.items.unshift(this.#r(e.title)),e))}rebuildTemplate(){let e={};void 0!==this.props.template.props&&(void 0!==this.props.template.props.cornerRadius&&(this.props.template.props.clipsToBounds=!1),e=Object.assign(this.props.template.props,{id:\"__templateProps\",hidden:!1}));let t=[{type:\"view\",props:e,layout:$layout.fill},{type:\"label\",props:{id:\"__title\",hidden:!0,font:this.titleStyle.font},layout:(e,t)=>{e.top.inset(-(3*(this.titleStyle.height/4))),e.height.equalTo(this.titleStyle.height),e.width.equalTo(t.super.safeArea)}}].concat(this.props.template.views);this.props.template.views=t}insert(e,t=!0){return e.indexPath=this.indexPath(e.indexPath,t),$(this.id).insert(e)}delete(e,t=!0){return e=this.indexPath(e,t),$(this.id).delete(e)}object(e,t=!0){return e=this.indexPath(e,t),$(this.id).object(e)}cell(e,t=!0){return e=this.indexPath(e,t),$(this.id).cell(e)}indexPath(e,t){let r=t?1:0;return e=\"number\"==typeof e?$indexPath(0,e+r):$indexPath(e.section,e.row+r)}getView(){return this.props.data=this.rebuildData(this.props.data),this.rebuildTemplate(),this.setEvent(\"itemSize\",(e,t)=>{if(e.object(t)?.__title?.info?.title)return $size(Math.max($device.info.screen.width,$device.info.screen.height),0);let r=this.props.columns??2,i=this.props.spacing??15;return $size(this.props.itemWidth??this.props.itemSize?.width??(e.super.frame.width-i*(r+1))/r,this.props.itemHeight??this.props.itemSize?.height??100)}),this}},L=class extends D{controller={};setController(e){return this.controller=e,this}},k=class e extends D{static #e;edges=15;buttonEdges=this.edges/2;iconSize=24;fontSize=17;color=_.textColor;title;#t;#r;align=_.align.right;get symbol(){return\"string\"==typeof this.#t?\"icon\"===this.#r?$icon(this.#t,this.color):$image(this.#t):this.#t}set symbol(e){\"string\"==typeof this.#t?isNaN(e)?this.#r=\"image\":this.#r=\"icon\":\"[object BBFileIcon]\"===String(e)?this.#r=\"icon\":this.#r=\"image\",this.#t=e}get width(){return this.title?Math.ceil($text.sizeThatFits({text:this.title,width:_.windowSize.width,font:$font(this.fontSize)}).width)+this.edges:this.iconSize+this.edges}static get style(){return void 0===this.#e&&(this.#e=new e),this.#e}setEdges(e){return this.edges=e,this}setFontSize(e){return this.fontSize=e,$(this.id)&&($(this.id).font=$font(this.fontSize)),this}setColor(e=_.textColor){return this.color=e,$(this.id)&&($(this.id).titleColor=this.color,$(`icon-button-${this.id}`).titleColor=this.color,$(`icon-checkmark-${this.id}`).titleColor=this.color),this}setTitle(e){return this.title=e,$(this.id)&&($(this.id).title=this.title),this}setSymbol(e){return this.symbol=e,$(`icon-button-${this.id}`)&&(\"icon\"===this.#r?$(`icon-button-${this.id}`).icon=this.symbol:$(`icon-button-${this.id}`).image=this.symbol),this}setMenu(e){return this.menu=e,this}setAlign(e){return this.align=e,this}setLoading(e){e?($(this.id).hidden=!0,$(\"spinner-\"+this.id).hidden=!1):($(this.id).hidden=!1,$(\"spinner-\"+this.id).hidden=!0)}#i(){let e=$(`icon-button-${this.id}`),t=$(`icon-checkmark-${this.id}`);e.alpha=0,$(this.id).hidden=!1,$(\"spinner-\"+this.id).hidden=!0,$ui.animate({duration:.6,animation:()=>{t.alpha=1},completion:()=>{$delay(.3,()=>$ui.animate({duration:.6,animation:()=>{t.alpha=0},completion:()=>{$ui.animate({duration:.4,animation:()=>{e.alpha=1},completion:()=>{e.alpha=1}})}}))}})}hide(){$(this.id+\"-container\").hidden=!0}show(){$(this.id+\"-container\").hidden=!1}getView(){let e=this.events.tapped;return this.events.tapped=t=>{e&&e({start:()=>this.setLoading(!0),done:()=>this.#i(),cancel:()=>this.setLoading(!1)},t)},{type:\"view\",props:{id:this.id+\"-container\",info:{align:this.align}},views:[{type:\"button\",props:Object.assign({id:this.id,bgcolor:$color(\"clear\"),font:$font(this.fontSize),titleColor:this.color,contentEdgeInsets:$insets(0,0,0,0),titleEdgeInsets:$insets(0,0,0,0),imageEdgeInsets:$insets(0,0,0,0)},this.menu?{menu:this.menu}:{},this.title?{title:this.title}:{},this.props),views:[{type:\"image\",props:Object.assign({id:`icon-button-${this.id}`,hidden:void 0===this.symbol,tintColor:this.color},this.symbol?\"icon\"===this.#r?{icon:this.symbol}:{image:this.symbol}:{}),layout:(e,t)=>{this.symbol&&\"image\"===this.#r&&e.size.equalTo(_.getSymbolSize(this.symbol,this.iconSize)),e.center.equalTo(t.super)}},{type:\"image\",props:{id:`icon-checkmark-${this.id}`,alpha:0,tintColor:this.color,symbol:\"checkmark\"},layout:(e,t)=>{e.center.equalTo(t.super),e.size.equalTo(_.getSymbolSize(\"checkmark\",this.iconSize))}}],events:this.events,layout:$layout.fill},{type:\"spinner\",props:{id:\"spinner-\"+this.id,loading:!0,hidden:!0},layout:$layout.fill}],layout:(e,t)=>{if(e.size.equalTo($size(this.width,_.NavigationBarNormalHeight)),e.centerY.equalTo(t.super),t.prev&&t.prev?.info?.align===this.align)this.align===_.align.right?e.right.equalTo(t.prev.left).offset(-this.buttonEdges):e.left.equalTo(t.prev.right).offset(this.buttonEdges);else{let t=this.edges/2;this.align===_.align.right?e.right.inset(t):e.left.inset(t)}}}}static creat({id:t,symbol:r,title:i,tapped:n,menu:s,events:a,color:o,align:l=_.align.right}={}){let c=new e;return c.setEvents(Object.assign({tapped:n},a)).setAlign(l).setSymbol(r).setTitle(i).setColor(o).setMenu(s),t&&c.setProp(\"id\",t),c}},w=class e extends D{static largeTitleDisplayModeAutomatic=0;static largeTitleDisplayModeAlways=1;static largeTitleDisplayModeNever=2;navigationBarItems;title=\"\";prefersLargeTitles=!0;largeTitleDisplayMode=e.largeTitleDisplayModeAutomatic;fontFamily=\"bold\";largeTitleFontSize=34;largeTitleFontHeight=$text.sizeThatFits({text:\"A\",width:100,font:$font(this.fontFamily,this.largeTitleFontSize)}).height;navigationBarTitleFontSize=17;topSafeArea=!0;contentViewHeightOffset=0;navigationBarNormalHeight=_.NavigationBarNormalHeight;navigationBarLargeTitleHeight=_.NavigationBarLargeTitleHeight;setTopSafeArea(){return this.topSafeArea=!0,this}removeTopSafeArea(){return this.topSafeArea=!1,this}setLargeTitleDisplayMode(e){return this.largeTitleDisplayMode=e,this}setBackgroundColor(e){return this.backgroundColor=e,this}setTitle(e){return this.title=e,this}setPrefersLargeTitles(e){return this.prefersLargeTitles=e,this}setContentViewHeightOffset(e){return this.contentViewHeightOffset=e,this}getLargeTitleView(){return this.prefersLargeTitles&&this.largeTitleDisplayMode!==e.largeTitleDisplayModeNever?{type:\"label\",props:{id:this.id+\"-large-title\",text:this.title,textColor:_.textColor,align:$align.left,font:$font(this.fontFamily,this.largeTitleFontSize),line:1},layout:(e,t)=>{e.left.equalTo(t.super.safeArea).offset(15),e.height.equalTo(this.largeTitleFontHeight),e.top.equalTo(t.super.safeAreaTop).offset(this.navigationBarNormalHeight)}}:{props:{id:this.id+\"-large-title\"},layout:(e,t)=>{e.left.top.right.inset(0),e.bottom.equalTo(t.super.safeAreaTop).offset(this.navigationBarNormalHeight)}}}getNavigationBarView(){let t=(e,t)=>{let r=(e,r)=>{e.top.equalTo(r.super.safeAreaTop),e.bottom.equalTo(r.super.safeAreaTop).offset(this.navigationBarNormalHeight),t===_.align.left?e.left.equalTo(r.super.safeArea):e.right.equalTo(r.super.safeArea)};if(e&&!Array.isArray(e))return{type:\"view\",views:[e],layout:r};let i=0,n=[];e.forEach(e=>{i+=e.width,n.push(e.definition)});let s=e[0]?.edges??0;return i+=e.length>=2?2*s:s,e.length>0?{type:\"view\",views:n,info:{width:i},layout:(e,t)=>{r(e,t),e.width.equalTo(i)}}:{type:\"view\",layout:e=>e.size.equalTo(0)}},r=t(this.navigationBarItems.popButtonView??this.navigationBarItems.leftButtons,_.align.left),i=t(this.navigationBarItems.rightButtons,_.align.right),n=this.prefersLargeTitles,s=!this.prefersLargeTitles||this.largeTitleDisplayMode===e.largeTitleDisplayModeNever;return{type:\"view\",props:{id:this.id+\"-navigation\",bgcolor:$color(\"clear\")},layout:(e,t)=>{e.left.top.right.inset(0),e.bottom.equalTo(t.super.safeAreaTop).offset(this.navigationBarNormalHeight)},views:[this.backgroundColor?{type:\"view\",props:{hidden:n,bgcolor:this.backgroundColor,id:this.id+\"-background\"},layout:$layout.fill}:_.blurBox({hidden:n,id:this.id+\"-background\"}),_.separatorLine({id:this.id+\"-underline\",alpha:n?0:1}),{type:\"view\",props:{alpha:0,bgcolor:$color(\"clear\"),id:this.id+\"-large-title-mask\"},events:{ready:e=>{e.bgcolor=$(this.id+\"-large-title\")?.prev.bgcolor}},layout:$layout.fill},r,i,{type:\"view\",views:[{type:\"label\",props:{id:this.id+\"-small-title\",alpha:s?1:0,text:this.title,font:$font(this.fontFamily,this.navigationBarTitleFontSize),align:$align.center,bgcolor:$color(\"clear\"),textColor:_.textColor},layout:(e,t)=>{e.edges.equalTo(t.super.safeArea);let n=_.getContentSize($font(this.fontFamily,this.navigationBarTitleFontSize),t.text).width,s=Math.max(r.info?.width??0,i.info?.width??0);_.windowSize.width-2*s>n&&e.centerX.equalTo(t.super.super)}}],layout:(e,t)=>{e.top.bottom.equalTo(t.super.safeArea),e.left.equalTo(t.prev.prev.right),e.right.equalTo(t.prev.left)}}]}}},M=class e extends o{static largeTitleViewSmallMode=0;static largeTitleViewLargeMode=1;navigationBar;updateSelector(){this.selector={navigation:$(this.navigationBar.id+\"-navigation\"),largeTitleView:$(this.navigationBar.id+\"-large-title\"),smallTitleView:$(this.navigationBar.id+\"-small-title\"),underlineView:this.navigationBar.navigationBarItems.isPinTitleView?$(this.navigationBar.id+\"-title-view-underline\"):$(this.navigationBar.id+\"-underline\"),largeTitleMaskView:$(this.navigationBar.id+\"-large-title-mask\"),backgroundView:$(this.navigationBar.id+\"-background\"),titleViewBackgroundView:$(this.navigationBar.id+\"-title-view-background\")}}toNormal(e=!0){this.updateSelector(),this.selector.backgroundView.hidden=!1,$ui.animate({duration:.2,animation:()=>{this.selector.underlineView.alpha=1,this.selector.smallTitleView.alpha=1,this.selector.largeTitleView.alpha=0}}),e&&this.navigationBar.navigationBarItems&&(this.navigationBar.largeTitleDisplayMode=w.largeTitleDisplayModeNever)}toLargeTitle(e=!0){this.updateSelector(),this.selector.backgroundView.hidden=!0,$ui.animate({duration:.2,animation:()=>{this.selector.underlineView.alpha=0,this.selector.smallTitleView.alpha=0,this.selector.largeTitleView.alpha=1}}),e&&this.navigationBar.navigationBarItems&&(this.navigationBar.largeTitleDisplayMode=w.largeTitleDisplayModeAlways)}#e(t){let r=t===e.largeTitleViewSmallMode;this.selector.largeTitleView.alpha=r?0:1,$ui.animate({duration:.2,animation:()=>{this.selector.smallTitleView.alpha=r?1:0}})}#t(t){if(this.selector.largeTitleView.updateLayout((e,r)=>{this.navigationBar.navigationBarNormalHeight-t>0?e.top.equalTo(r.super.safeAreaTop).offset(this.navigationBar.navigationBarNormalHeight-t):e.top.equalTo(r.super.safeAreaTop).offset(0)}),t>0)t>=this.navigationBar.navigationBarNormalHeight?this.#e(e.largeTitleViewSmallMode):this.#e(e.largeTitleViewLargeMode);else{this.#e(e.largeTitleViewLargeMode);let r=this.navigationBar.largeTitleFontSize-.04*t;r>40&&(r=40),this.selector.largeTitleView.font=$font(this.navigationBar.fontFamily,r)}}#r(e){let t=this.navigationBar.largeTitleDisplayMode===w.largeTitleDisplayModeNever?5:this.navigationBar.navigationBarNormalHeight,r=void 0!==this.selector.titleViewBackgroundView;if(e>t){this.selector.backgroundView.hidden=!1;let i=()=>{r&&this.navigationBar.navigationBarItems.isPinTitleView&&(this.selector.titleViewBackgroundView.alpha=1),this.selector.largeTitleMaskView.alpha=0,this.selector.underlineView.alpha=1};(e-t)/3>=1?i():$ui.animate({duration:.2,animation:()=>{i()}})}else this.selector.largeTitleMaskView.alpha=e>0?1:0,this.selector.underlineView.alpha=0,r&&(this.selector.titleViewBackgroundView.alpha=0),this.selector.backgroundView.hidden=!0}didScroll(e){if(!this.navigationBar.prefersLargeTitles)return;let t=this.navigationBar.largeTitleDisplayMode;if(t!==w.largeTitleDisplayModeAlways){if(this.updateSelector(),t===w.largeTitleDisplayModeAutomatic){if(!this.navigationBar.navigationBarItems?.isPinTitleView&&(this.navigationBar.navigationBarItems?.titleView?.controller.didScroll(e),e>0)){let t=this.navigationBar.navigationBarItems?.titleView?.height??0;(e-=t)<0&&(e=0)}this.#t(e),this.#r(e)}else t===w.largeTitleDisplayModeNever&&this.#r(e)}}didEndDragging(e,t,r,i){if(!this.navigationBar.prefersLargeTitles)return;let n=this.navigationBar.largeTitleDisplayMode;if(n!==w.largeTitleDisplayModeAlways&&(this.updateSelector(),n===w.largeTitleDisplayModeAutomatic)){let n=0;this.navigationBar.navigationBarItems?.isPinTitleView||(this.navigationBar.navigationBarItems?.titleView?.controller.didEndDragging(e,t,r,i),n=this.navigationBar.navigationBarItems?.titleView?.height??0,e-=n),e>=0&&e<=this.navigationBar.largeTitleFontHeight&&r($point(0,e>=this.navigationBar.largeTitleFontHeight/2?this.navigationBar.navigationBarNormalHeight+n-i:n-i))}}},B=class extends v{constructor(e,t){super(e,t),this.name=\"NavigationViewTypeError\"}},x=class extends o{page;navigationController=new M;navigationBar=new w;navigationBarItems=new p;constructor(){super(),this.navigationBar.navigationBarItems=this.navigationBarItems,this.navigationController.navigationBar=this.navigationBar}navigationBarTitle(e){return this.navigationBar.setTitle(e),this}setView(e){if(\"object\"!=typeof e)throw new B(\"view\",\"object\");return this.view=D.create(e),this}getTopOffset(){if(!(this.view instanceof D))throw new B(\"view\",\"View\");let e=this.view.scrollableView,t=$app.isDebugging?0:_.topSafeAreaInsets,r=this.navigationBar.largeTitleDisplayMode===w.largeTitleDisplayModeNever?this.navigationBar.navigationBarNormalHeight:this.navigationBar.navigationBarLargeTitleHeight,i=this.navigationBar.contentViewHeightOffset+r;if(this.navigationBarItems.titleView&&(i+=this.navigationBarItems.titleView.topOffset+this.navigationBarItems.titleView.height+this.navigationBarItems.titleView.bottomOffset),!this.view.scrollable||!1===e.props.associateWithNavigationBar){let e=i-this.navigationBar.contentViewHeightOffset;return(!_.isHorizontal||_.isLargeScreen)&&this.navigationBar.topSafeArea&&(e+=t),e}return e.props.stickyHeader&&(i-=r,i+=this.navigationBar.largeTitleFontHeight),i}getBottomOffset(){return this.navigationBarItems.fixedFooterView?.height??0}#e(){if(!(this.view instanceof D))throw new B(\"view\",\"View\");let e=this.view.scrollableView,t=$app.isDebugging?0:_.topSafeAreaInsets,r=this.getTopOffset();if(!this.view.scrollable||!1===e.props.associateWithNavigationBar){this.view.layout=(e,t)=>{e.left.right.equalTo(t.super.safeArea),e.bottom.equalTo(t.super),e.top.equalTo(r)};return}let i=this.navigationBarItems.isPinTitleView?this.navigationBarItems.titleView.height+this.navigationBarItems.titleView.bottomOffset+this.navigationBar.contentViewHeightOffset:0;if(e.props.indicatorInsets){let t=e.props.indicatorInsets;e.props.indicatorInsets=$insets(t.top+this.navigationBar.navigationBarNormalHeight+i,t.left,t.bottom+this.getBottomOffset(),t.right)}else e.props.indicatorInsets=$insets(this.navigationBar.navigationBarNormalHeight+i,0,this.navigationBarItems.fixedFooterView?.height??0,0);if(e.props.contentInset){let t=e.props.contentInset;e.props.contentInset=$insets(t.top+r+i,t.left,t.bottom+this.getBottomOffset(),t.right)}else e.props.contentInset=$insets(r+i,0,this.navigationBarItems.fixedFooterView?.height??0,0);e.props.contentOffset=$point(0,-r),e.layout=(t,r)=>{e.props.stickyHeader?t.top.equalTo(r.super.safeArea).offset(this.navigationBar.navigationBarNormalHeight):t.top.equalTo(r.super),t.left.right.equalTo(r.super.safeArea),t.bottom.equalTo(r.super)},e.assignEvent(\"didScroll\",i=>{let n=i.contentOffset.y;(!_.isHorizontal||_.isLargeScreen)&&this.navigationBar.topSafeArea&&!e.props.stickyHeader&&(n+=t),n+=r,this.navigationController.didScroll(n)}).assignEvent(\"didEndDragging\",(i,n)=>{let s=i.contentOffset.y,a=0;(!_.isHorizontal||_.isLargeScreen)&&this.navigationBar.topSafeArea&&!e.props.stickyHeader&&(s+=t,a=t),s+=r,a+=r,this.navigationController.didEndDragging(s,n,(...e)=>i.scrollToOffset(...e),a)}).assignEvent(\"didEndDecelerating\",(...t)=>{t[0].tracking||e.events?.didEndDragging(...t)})}#t(){if(this.navigationBar.prefersLargeTitles){this.#e();let e={};if(this.navigationBarItems.titleView){let t=this.navigationBar.largeTitleDisplayMode===w.largeTitleDisplayModeNever?1:0;e=D.create({views:[this.navigationBar.backgroundColor?{type:\"view\",props:{alpha:t,bgcolor:this.navigationBar.backgroundColor,id:this.navigationBar.id+\"-title-view-background\"},layout:$layout.fill}:_.blurBox({alpha:t,id:this.navigationBar.id+\"-title-view-background\"}),_.separatorLine({id:this.navigationBar.id+\"-title-view-underline\",alpha:t}),this.navigationBarItems.titleView.definition],layout:(e,t)=>{e.top.equalTo(t.prev.bottom),e.width.equalTo(t.super),e.height.equalTo(this.navigationBarItems.titleView.topOffset+this.navigationBarItems.titleView.height+this.navigationBarItems.titleView.bottomOffset)}})}this.page=el.createFromViews([this.view,this.navigationBar.getLargeTitleView(),e,this.navigationBar.getNavigationBarView(),this.navigationBarItems.fixedFooterView?.definition??{}])}else this.page=el.createFromViews([this.view]);this.view.props?.bgcolor?this.page.setProp(\"bgcolor\",this.view.props.bgcolor):this.page.setProp(\"bgcolor\",_.defaultBackgroundColor(this.view.type))}getPage(){return this.page||this.#t(),this.page}},G=class extends L{height=35;topOffset=15;bottomOffset=10;horizontalOffset=15;kbType=$kbType.search;placeholder=$l10n(\"SEARCH\");inputEvents={};keyboardView;accessoryView;cancelButtonFont=$font(16);constructor(e){super(e),this.setController(new F),this.controller.setSearchBar(this)}get cancelButtonWidth(){return _.getContentSize(this.cancelButtonFont,$l10n(\"CANCEL\")).width}setEvent(e,t){return this.inputEvents[e]=t,this}setPlaceholder(e){return this.placeholder=e,this}setKbType(e){return this.kbType=e,this}setKeyboardView(e){return this.keyboardView=e,this}setAccessoryView(e){return this.accessoryView=e,this}onBeginEditingAnimate(){$ui.animate({duration:.3,animation:()=>{let e=this.cancelButtonWidth;$(this.id+\"-cancel-button\").updateLayout((t,r)=>{t.left.equalTo(r.super.right).offset(-e)}),$(this.id+\"-cancel-button\").alpha=1,$(this.id+\"-cancel-button\").relayout(),$(this.id+\"-input\").updateLayout(t=>{t.right.inset(e+this.horizontalOffset/2)}),$(this.id+\"-input\").relayout()}})}onEndEditingAnimate(){$ui.animate({duration:.3,animation:()=>{$(this.id+\"-cancel-button\").updateLayout((e,t)=>{e.left.equalTo(t.super.right)}),$(this.id+\"-cancel-button\").alpha=0,$(this.id+\"-cancel-button\").relayout(),$(this.id+\"-input\").updateLayout($layout.fill),$(this.id+\"-input\").relayout()}})}cancel(){$(this.id+\"-input\").blur(),$(this.id+\"-input\").text=\"\",this.onEndEditingAnimate(),this.controller.callEvent(\"onCancel\")}getView(){return this.props={id:this.id,smoothCorners:!0,cornerRadius:6},this.views=[{type:\"input\",props:{id:this.id+\"-input\",type:this.kbType,bgcolor:$color(\"#EEF1F1\",\"#212121\"),placeholder:this.placeholder,keyboardView:this.keyboardView,accessoryView:this.accessoryView},layout:$layout.fill,events:Object.assign({didBeginEditing:e=>{this.onBeginEditingAnimate(),this.controller.callEvent(\"onBeginEditing\",e.text)},didEndEditing:e=>{this.controller.callEvent(\"onEndEditing\",e.text)},changed:e=>this.controller.callEvent(\"onChange\",e.text),returned:e=>this.controller.callEvent(\"onReturn\",e.text)},this.inputEvents)},{type:\"button\",props:{id:this.id+\"-cancel-button\",title:$l10n(\"CANCEL\"),font:this.cancelButtonFont,titleColor:$color(\"tintColor\"),bgcolor:$color(\"clear\"),alpha:0,hidden:!1},events:{tapped:()=>this.cancel()},layout:(e,t)=>{e.height.equalTo(t.super),e.width.equalTo(this.cancelButtonWidth),e.left.equalTo(t.super.right)}}],this.layout=(e,t)=>{e.height.equalTo(this.height),e.top.equalTo(t.super.safeArea).offset(this.topOffset),e.left.equalTo(t.super.safeArea).offset(this.horizontalOffset),e.right.equalTo(t.super.safeArea).offset(-this.horizontalOffset)},this}},F=class extends o{setSearchBar(e){return this.searchBar=e,this}updateSelector(){this.selector={inputBox:$(this.searchBar.id),input:$(this.searchBar.id+\"-input\")}}hide(){this.updateSelector(),this.selector.inputBox.updateLayout(e=>{e.height.equalTo(0)})}show(){this.updateSelector(),this.selector.inputBox.updateLayout(e=>{e.height.equalTo(this.searchBar.height)})}didScroll(e){this.updateSelector();let t=this.searchBar.height-e;if(t=t>0?t>this.searchBar.height?this.searchBar.height:t:0,this.selector.inputBox.updateLayout(e=>{e.height.equalTo(t)}),e>0){let t=(this.searchBar.height/2-5-e)/10;this.selector.input.alpha=t}else this.selector.input.alpha=1}didEndDragging(e,t,r){this.updateSelector(),e>=0&&e<=this.searchBar.height&&r($point(0,e>=this.searchBar.height/2?this.searchBar.height:0))}},H=class extends o{#e=[];#t(e){e.callEvent(\"onPop\"),this.callEvent(\"onPop\",e),this.#e.pop()}push(e){let t=this.#e[this.#e.length-1];e.navigationBarItems.addPopButton(t?.navigationBar.title),this.#e.push(e),$ui.push({props:{statusBarStyle:0,navBarHidden:!0},events:{disappeared:()=>{this.#t(e)}},views:[e.getPage().definition],layout:$layout.fill})}},U=class extends E{get isArray(){return Array.isArray(this.default)}async tapped(){let e=this.isArray?this.default[1]:this.default;0===(await $ui.alert({title:this.title,message:e,actions:[{title:$l10n(\"COPY\")},{title:$l10n(\"OK\")}]})).index&&($clipboard.text=e,$ui.toast($l10n(\"COPIED\")))}getView(){return{type:\"view\",props:{selectable:!0,info:{key:this.key}},views:[this.createLineLabel(),{type:\"label\",props:{text:this.isArray?this.default[0]:this.default,align:$align.right,textColor:$color(\"darkGray\")},layout:(e,t)=>{e.centerY.equalTo(t.prev),e.right.inset(E.edgeOffset),e.width.equalTo(180)}}],layout:$layout.fill}}},j=class extends E{getView(){return{type:\"view\",props:{id:this.id,selectable:!0},views:[this.createLineLabel(),{type:\"switch\",props:{on:this.get(),onColor:$color(\"#00CC00\")},events:{changed:e=>{try{this.set(e.on)}catch(t){throw e.on=!e.on,t}}},layout:(e,t)=>{e.centerY.equalTo(t.prev),e.right.inset(E.edgeOffset)}}],layout:$layout.fill}}},q=class extends E{getView(){return{type:\"view\",props:{id:this.id,selectable:!0},views:[this.createLineLabel(),{type:\"button\",props:{symbol:\"square.and.pencil\",bgcolor:$color(\"clear\"),tintColor:$color(\"primaryText\")},events:{tapped:e=>{let t=$ui.popover({sourceView:e,sourceRect:e.bounds,directions:$popoverDirection.down,size:$size(320,150),views:[{type:\"text\",props:{id:`${this.id}-string`,align:$align.left,text:this.get()},layout:e=>{e.left.right.inset(10),e.top.inset(20),e.height.equalTo(90)}},{type:\"button\",props:{symbol:\"checkmark\",bgcolor:$color(\"clear\"),titleEdgeInsets:10,contentEdgeInsets:0},layout:e=>{e.right.inset(10),e.bottom.inset(25),e.size.equalTo(30)},events:{tapped:()=>{this.set($(`${this.id}-string`).text),t.dismiss()}}}]})}},layout:(e,t)=>{e.centerY.equalTo(t.prev),e.right.inset(0),e.size.equalTo(50)}}],layout:$layout.fill}}},V=class extends E{with({min:e,max:t}={}){return this.options={min:e,max:t},this}getView({min:e,max:t}={}){let r=`${this.id}-label`;return{type:\"view\",props:{id:this.id,selectable:!0},views:[this.createLineLabel(),{type:\"label\",props:{id:r,text:this.get(),align:$align.left},layout:(e,t)=>{e.height.equalTo(t.super),e.right.inset(120)}},{type:\"stepper\",props:{min:e,max:t,value:this.get()},events:{changed:e=>{$(r).text=e.value;try{this.set(e.value)}catch(e){throw $(r).text=this.get(),e}}},layout:(e,t)=>{e.centerY.equalTo(t.prev),e.right.inset(E.edgeOffset)}}],layout:$layout.fill}}},Y=class extends E{rightSymbol=\"chevron.right\";buttonId=`${this.id}-button`;start(){$(this.buttonId).alpha=0,$(`${this.buttonId}-spinner`).alpha=1}cancel(){$(this.buttonId).alpha=1,$(`${this.buttonId}-spinner`).alpha=0}done(){$(`${this.buttonId}-spinner`).alpha=0;let e=$(this.buttonId);e.symbol=\"checkmark\",$ui.animate({duration:.6,animation:()=>e.alpha=1,completion:()=>{$ui.animate({duration:.4,animation:()=>e.alpha=0,completion:()=>{e.symbol=this.rightSymbol,$ui.animate({duration:.4,animation:()=>e.alpha=1})}})}})}with({script:e}={}){return this.options={script:e},this}async tapped(){let e={start:()=>this.start(),cancel:()=>this.cancel(),done:()=>this.done()},{script:t}=this.options;\"function\"==typeof t?await t(e):t.startsWith(\"this.method\")?await Function(\"method\",\"animate\",`return async()=>{await ${t.replace(\"this.\",\"\")}(animate)}`)(this.method,e)():await Function(\"animate\",`return async()=>{${t}}`)(e)()}getView(){return{type:\"view\",props:{id:this.id,selectable:!0,info:{key:this.key}},views:[this.createLineLabel(),{type:\"view\",views:[{type:\"button\",props:{id:this.buttonId,symbol:\"chevron.right\",bgcolor:$color(\"clear\"),tintColor:$color(\"secondaryText\")},events:{tapped:()=>this.tapped()},layout:(e,t)=>{e.centerY.equalTo(t.super),e.right.inset(0),e.height.equalTo(t.super)}},{type:\"spinner\",props:{id:`${this.buttonId}-spinner`,loading:!0,alpha:0},layout:(e,t)=>{e.size.equalTo(15),e.centerY.equalTo(t.super),e.right.equalTo(t.prev)}}],layout:(e,t)=>{e.right.inset(E.edgeOffset),e.height.equalTo(E.rowHeight),e.width.equalTo(t.super)}}],layout:$layout.fill}}},z=class extends E{with({items:e,values:t}={}){return Array.isArray(e)&&(e=e.map(e=>$l10n(e))),this.options={items:e,values:t},this}getView({items:e,values:t}={}){e=this.evalValues(e),t=this.evalValues(t);let r=e?.length>0&&t?.length===e?.length;return{type:\"view\",props:{id:this.id,selectable:!0},views:[this.createLineLabel(),{type:\"tab\",props:{items:e??[],index:r?t.indexOf(this.get()):this.get(),dynamicWidth:!0},layout:(e,t)=>{e.right.inset(E.edgeOffset),e.centerY.equalTo(t.prev)},events:{changed:e=>{r?this.set(t[e.index]):this.set(e.index)}}}],layout:$layout.fill}}},W=class extends E{with({items:e,values:t,pullDown:r}={}){return Array.isArray(e)&&(e=e.map(e=>$l10n(e))),this.options={items:e,values:t,pullDown:r},this}getView({items:e,values:t,pullDown:r}={}){let i=`${this.id}-label`,n=this.evalValues(e),s=this.evalValues(t),a=n?.length>0&&s?.length===n?.length,o=(e,r)=>{if(a){let e=this.evalValues(t);this.set(e[r])}else this.set(r);$(i).title=e};return{type:\"view\",props:{id:this.id,selectable:!0},views:[this.createLineLabel(),{type:\"view\",views:[{type:\"button\",props:{menu:r?{pullDown:!0,asPrimary:!0,items:n.map((e,t)=>({title:e,handler:()=>o(e,t)}))}:void 0,title:a?n[s.indexOf(this.get())]:n[this.get()],titleColor:$color(\"secondaryText\"),bgcolor:$color(\"clear\"),id:i},events:{tapped:()=>{r||$ui.menu({items:this.evalValues(e),handler:o})}},layout:(e,t)=>{e.right.inset(0),e.height.equalTo(t.super)}}],layout:(e,t)=>{e.right.inset(E.edgeOffset),e.height.equalTo(E.rowHeight),e.width.equalTo(t.super)}}],layout:$layout.fill}}},Q=class extends E{get(e=null){let t=super.get(e);return t?\"string\"==typeof t?$color(t):$rgba(t.red,t.green,t.blue,t.alpha):e}getView(){let e=`${this.id}-color`;return{type:\"view\",props:{id:this.id,selectable:!0},views:[this.createLineLabel(),{type:\"view\",views:[{type:\"view\",props:{id:e,bgcolor:this.get(),circular:!0,borderWidth:1,borderColor:$color(\"#e3e3e3\")},layout:(e,t)=>{e.centerY.equalTo(t.super),e.right.inset(E.edgeOffset),e.size.equalTo(20)}},{type:\"view\",events:{tapped:async()=>{let t=await $picker.color({color:this.get()});this.set(t.components),$(e).bgcolor=$rgba(t.components.red,t.components.green,t.components.blue,t.components.alpha)}},layout:(e,t)=>{e.right.inset(0),e.height.width.equalTo(t.super.height)}}],layout:(e,t)=>{e.height.equalTo(E.rowHeight),e.width.equalTo(t.super)}}],layout:$layout.fill}}},X=class extends E{with({mode:e=2}={}){return this.options={mode:e},this}getView({mode:e=2}={}){let t=t=>{let r=\"\";switch(\"number\"==typeof t&&(t=new Date(t)),e){case 0:r=t.toLocaleTimeString();break;case 1:r=t.toLocaleDateString();break;case 2:r=t.toLocaleString()}return r};return{type:\"view\",props:{id:this.id,selectable:!0},views:[this.createLineLabel(),{type:\"view\",views:[{type:\"label\",props:{id:`${this.id}-label`,color:$color(\"secondaryText\"),text:this.get()?t(this.get()):\"None\"},layout:(e,t)=>{e.right.inset(0),e.height.equalTo(t.super)}}],events:{tapped:async()=>{let r=this.get(),i=await $picker.date({props:{mode:e,date:r||Date.now()}});this.set(i.getTime()),$(`${this.id}-label`).text=t(i)}},layout:(e,t)=>{e.right.inset(E.edgeOffset),e.height.equalTo(E.rowHeight),e.width.equalTo(t.super)}}],layout:$layout.fill}}},K=class extends E{with({secure:e=!1,kbType:t=$kbType.default,saveFunc:r}={}){return this.options={secure:e,kbType:t,saveFunc:r},this}getView({secure:e=!1,kbType:t=$kbType.default,saveFunc:r}={}){void 0===r&&(r=e=>this.set(e));let i=this.id+\"-input\";return{type:\"view\",props:{id:this.id,selectable:!0},views:[this.createLineLabel(),{type:\"input\",props:{id:i,type:t,align:$align.right,bgcolor:$color(\"clear\"),textColor:$color(\"secondaryText\"),text:this.get(),font:$font(16),secure:e,accessoryView:_.blurBox({height:44},[_.separatorLine({},_.align.top),{type:\"button\",props:{title:$l10n(\"DONE\"),bgcolor:$color(\"clear\"),titleColor:$color(\"primaryText\")},layout:(e,t)=>{e.right.inset(E.edgeOffset),e.centerY.equalTo(t.super)},events:{tapped:()=>{$(i).blur()}}},{type:\"button\",props:{title:$l10n(\"CANCEL\"),bgcolor:$color(\"clear\"),titleColor:$color(\"primaryText\")},layout:(e,t)=>{e.left.inset(E.edgeOffset),e.centerY.equalTo(t.super)},events:{tapped:()=>{let e=$(i),t=this.get(\"\");e.text!==t&&(e.text=t),e.blur()}}}])},layout:(e,t)=>{e.left.equalTo(t.prev.get(\"label\").right).offset(E.edgeOffset),e.right.inset(E.edgeOffset),e.width.greaterThanOrEqualTo(50),e.height.equalTo(t.super),e.left.priority(10),e.width.priority(10)},events:{didBeginEditing:e=>{e.secure=!1,$app.autoKeyboardEnabled||($app.autoKeyboardEnabled=!0)},returned:e=>{e.blur()},didEndEditing:async t=>{let i=this.get(\"\");r(t.text)||(t.text=i),e&&(t.secure=e)}}}],layout:$layout.fill}}},J=class extends E{getView(){return new K(this).getView({secure:!1,kbType:$kbType.decimal,saveFunc:e=>\"\"!==e&&/^[0-9]+.?[0-9]*$/.test(e)?this.set(Number(e)):($ui.toast($l10n(\"INVALID_VALUE\")),!1)})}},Z=class extends E{with({bgcolor:e=\"#000000\"}={}){return this.options={bgcolor:e},this}getView({bgcolor:e=\"#000000\"}={}){let t=`${this.id}-image`;return{type:\"view\",props:{id:this.id,selectable:!0},views:[this.createLineLabel(),{type:\"view\",views:[{type:\"image\",props:{cornerRadius:8,bgcolor:\"string\"==typeof e?$color(e):e,smoothCorners:!0},layout:(e,t)=>{e.right.inset(E.edgeOffset),e.centerY.equalTo(t.super),e.size.equalTo($size(30,30))}},{type:\"image\",props:{id:t,image:$image(this.get()),icon:$icon(this.get()?.slice(5,this.get().indexOf(\".\")),$color(\"#ffffff\")),tintColor:$color(\"#ffffff\")},layout:(e,t)=>{e.right.equalTo(t.prev).offset(-5),e.centerY.equalTo(t.super),e.size.equalTo($size(20,20))}}],events:{tapped:()=>{$ui.menu({items:[$l10n(\"JSBOX_ICON\"),$l10n(\"SF_SYMBOLS\"),$l10n(\"IMAGE_BASE64\")],handler:async(e,r)=>{if(0===r){let e=await $ui.selectIcon();this.set(e),$(t).icon=$icon(e.slice(5,e.indexOf(\".\")),$color(\"#ffffff\"))}else(1===r||2===r)&&$input.text({text:\"\",placeholder:e,handler:e=>{if(\"\"===e){$ui.toast($l10n(\"INVALID_VALUE\"));return}this.set(e),1===r?$(t).symbol=e:$(t).image=$image(e)}})}})}},layout:(e,t)=>{e.right.inset(0),e.height.equalTo(E.rowHeight),e.width.equalTo(t.super)}}],layout:$layout.fill}}},ee=class extends E{with({view:e,navButtons:t=[]}={}){return this.options={view:e,navButtons:t},this}tapped(){let{view:e,navButtons:t}=this.options;return e=this.evalValues(e,{}),(t=this.evalValues(t)).length>0&&t.map(e=>{if(\"string\"==typeof e.tapped){let t=e.tapped;e.tapped=()=>{this.evalValues(t)}}return e.handler=e.tapped,e}),new Promise((r,i)=>{if(this.setting.isUseJsboxNav){let i={title:this.title,props:e.props??{},views:[e],disappeared:()=>r()};t.length>0&&(i.navButtons=t),_.push(i)}else{let i=new x;i.setView(e).navigationBarTitle(this.title),i.navigationBarItems.addPopButton(),i.navigationBar.setLargeTitleDisplayMode(w.largeTitleDisplayModeNever),this.setting.hasSectionTitle(e)&&i.navigationBar.setContentViewHeightOffset(-10),t.length>0&&i.navigationBarItems.setRightButtons(t),this.setting.viewController.setEvent(\"onPop\",()=>r()),this.setting.viewController.push(i)}})}getView(){return{type:\"view\",props:{id:this.id,selectable:!0,info:{key:this.key}},views:[this.createLineLabel(),{type:\"button\",props:{symbol:\"chevron.right\",bgcolor:$color(\"clear\"),tintColor:$color(\"secondaryText\")},events:{tapped:()=>this.tapped()},layout:(e,t)=>{e.centerY.equalTo(t.super),e.right.inset(E.edgeOffset),e.height.equalTo(t.super)}}],layout:$layout.fill}}},et=class extends ee{with({children:e}={}){return super.with({view:()=>this.setting.getListView(e,{},this.id)}),this.options.children=e,this}},er=class extends E{getImagePath(e=!1){let t=$text.MD5(this.key)+\".jpg\";return e&&(t=\"compress.\"+t),this.setting.imagePath+t}getImage(e=!1){try{return this.setting.fileStorage.readSync(this.getImagePath(e))}catch(e){if(e instanceof C)return null;throw e}}get(e=null){return this.getImage(!1)??null}getView(){let e=`${this.id}-image`,t=$image(\"questionmark.square.dashed\"),r=t=>async()=>{$(e).hidden=!0,$(`${e}-spinner`).hidden=!1,await $wait(.1);try{await t()}catch(e){$ui.alert({title:$l10n(\"ERROR\"),message:String(e)})}await $wait(.1),$(`${e}-spinner`).hidden=!0,$(e).hidden=!1},i=[{title:$l10n(\"PREVIEW\"),handler:r(()=>{let e=this.getImage(!1);e?m.quickLookImage(e):$ui.toast($l10n(\"NO_IMAGE\"))})},{inline:!0,items:[{title:$l10n(\"SELECT_IMAGE_PHOTO\"),handler:r(async()=>{let t=await $photo.pick({format:\"data\"});if(!t.status||!t.data){if(t?.error?.description!==\"canceled\")throw Error(t?.error?.description);return}let r=_.compressImage(t.data.image);this.setting.fileStorage.write(this.getImagePath(!0),r.jpg(.8)),this.setting.fileStorage.write(this.getImagePath(),t.data),$(e).image=r,$ui.success($l10n(\"SUCCESS\"))})},{title:$l10n(\"SELECT_IMAGE_ICLOUD\"),handler:r(async()=>{let t=await $drive.open();if(!t)return;let r=_.compressImage(t.image);this.setting.fileStorage.write(this.getImagePath(!0),r.jpg(.8)),this.setting.fileStorage.write(this.getImagePath(),t),$(e).image=r,$ui.success($l10n(\"SUCCESS\"))})}]},{title:$l10n(\"CLEAR_IMAGE\"),destructive:!0,handler:r(()=>{this.setting.fileStorage.delete(this.getImagePath(!0)),this.setting.fileStorage.delete(this.getImagePath()),$(e).image=t,$ui.success($l10n(\"SUCCESS\"))})}];return{type:\"view\",props:{id:this.id,selectable:!0},views:[this.createLineLabel(),{type:\"view\",views:[{type:\"image\",props:{id:e,image:this.getImage(!0)?.image??t},layout:(e,t)=>{e.right.inset(E.edgeOffset),e.centerY.equalTo(t.super),e.size.equalTo($size(30,30))}},{type:\"spinner\",props:{id:`${e}-spinner`,loading:!0,hidden:!0},layout:(e,t)=>{e.size.equalTo(t.prev),e.left.top.equalTo(t.prev)}},{type:\"button\",props:{menu:{pullDown:!0,asPrimary:!0,items:i},bgcolor:$color(\"clear\")},layout:(e,t)=>{e.right.inset(E.edgeOffset),e.centerY.equalTo(t.super),e.size.equalTo($size(30,30))}}],layout:(e,t)=>{e.right.inset(0),e.height.equalTo(E.rowHeight),e.width.equalTo(t.super)}}],layout:$layout.fill}}},ei=class extends o{name;setting={};settingItems={};userData;fileStorage;logger;imagePath;viewController=new H;method={readme:()=>{let e=(()=>{let e=$device.info?.language?.startsWith(\"zh\")?\"README_CN.md\":\"README.md\";try{return __README__[e]??__README__[\"README.md\"]}catch{return $file.read(e)?.string??$file.read(\"README.md\")?.string}})();new m().setView({type:\"markdown\",props:{content:e},layout:(e,t)=>{e.size.equalTo(t.super)}}).addNavBar({title:\"README\",popButton:{symbol:\"x.circle\"}}).init().present()}};#e=!1;#t=!1;#r;constructor(e={}){super(),\"function\"==typeof e.set&&\"function\"==typeof e.get?(this.set=e.set,this.getOriginal=e.get,this.setUserData(e.userData??{})):(this.fileStorage=e.fileStorage??new c,this.dataFile=e.dataFile??\"setting.json\"),e.structure?this.setStructure(e.structure):this.setStructurePath(e.structurePath??\"setting.json\"),this.logger=e.logger??new d,this.isUseJsboxNav=e.isUseJsboxNav??!1,this.imagePath=(e.name??\"default\")+\".image/\",this.setName(e.name??$text.uuid)}useJsboxNav(){return this.isUseJsboxNav=!0,this}#i(){if(!this.#t)throw new y}loader(e){let t=null;switch(e.type){case\"info\":t=new U(e);break;case\"switch\":t=new j(e);break;case\"string\":t=new q(e);break;case\"stepper\":t=new V(e).with({min:e.min??1,max:e.max??12});break;case\"script\":t=new Y(e).with({script:e.script??e.value});break;case\"tab\":t=new z(e).with({items:e.items,values:e.values});break;case\"menu\":t=new W(e).with({items:e.items,values:e.values,pullDown:e.pullDown??!1});break;case\"color\":t=new Q(e);break;case\"date\":t=new X(e).with({mode:e.mode});break;case\"input\":t=new K(e).with({secure:e.secure});break;case\"number\":t=new J(e);break;case\"icon\":t=new Z(e).with({bgcolor:e.bgcolor});break;case\"push\":t=new ee(e).with({view:e.view,navButtons:e.navButtons});break;case\"child\":t=new et(e).with({children:e.children});break;case\"image\":t=new er(e);break;default:(t=e).default=e.value,t.get=(...e)=>this.get(...e),t.set=(...e)=>this.set(...e)}return t}loadConfig(){this.#t=!1;let e=this.userData??this.fileStorage.readAsJSON(this.dataFile,{}),t=r=>{for(let i in r)for(let n in r[i].items){let s=r[i].items[n];s instanceof E||(r[i].items[n]=this.loader(s),s=r[i].items[n]),s.setting||(s.setting=this),this.settingItems[s.key]=s,s instanceof et?t(s.options.children):s instanceof Y||s instanceof U||(s.key in e?this.setting[s.key]=e[s.key]:this.setting[s.key]=s.default)}};return t(this.structure),this.#t=!0,this}hasSectionTitle(e){return this.#i(),!!e[0]?.title}setUserData(e){return this.userData=e,this}setStructure(e){return this.structure=e,this.loadConfig()}setStructurePath(e){return this.structure||this.setStructure(c.readFromRootAsJSON(e)),this}setName(e){return this.name=e,this}setFooter(e){return this.footer=e,this}set footer(e){this.#r=e}get footer(){if(void 0===this.#r){let e=c.readFromRootAsJSON(\"config.json\",{}).info??{};if(!e.version||!e.author)try{e=__INFO__}catch{}this.#r={},e.version&&e.author&&(this.#r={type:\"view\",props:{height:70},views:[{type:\"label\",props:{font:$font(14),text:`${$l10n(\"VERSION\")} ${e.version} \\u2665 ${e.author}`,textColor:$color({light:\"#C0C0C0\",dark:\"#545454\"}),align:$align.center},layout:e=>{e.left.right.inset(0),e.top.inset(10)}}]})}return this.#r}setReadonly(){return this.#e=!0,this}set(e,t){if(this.#e)throw new N;return this.#i(),this.setting[e]=t,this.fileStorage.write(this.dataFile,$data({string:JSON.stringify(this.setting)})),this.callEvent(\"onSet\",e,t),!0}getOriginal(e,t=null){return this.#i(),Object.prototype.hasOwnProperty.call(this.setting,e)?this.setting[e]:t}getItem(e){return this.settingItems[e]}get(e,t=null){return this.#i(),this.getItem(e)?this.getItem(e).get(t):this.getOriginal(e,t)}#n(e){let t=[];for(let r in e){let i=[];for(let t in e[r].items){let n=e[r].items[t];n instanceof E&&i.push(n.create())}t.push({title:$l10n(e[r].title??\"\"),rows:i})}return t}getListView(e=this.structure,t=this.footer,r=this.name){return{type:\"list\",props:{id:r,style:2,separatorInset:$insets(0,E.iconSize+2*E.edgeOffset,0,E.edgeOffset),footer:t,data:this.#n(e)},layout:$layout.fill,events:{rowHeight:(e,t)=>(e.object(t)?.props?.info??{}).rowHeight??E.rowHeight,didSelect:async(e,t,r)=>{e=e.ocValue();let i=this.getItem(r.props.info.key);if(\"function\"==typeof i?.tapped){e.$selectRowAtIndexPath_animated_scrollPosition(t.ocValue(),!1,0);try{await i.tapped()}catch(e){this.logger.error(e)}}e.$deselectRowAtIndexPath_animated(t,!0)}}}}getNavigationView(){let e=new x;return e.setView(this.getListView(this.structure)).navigationBarTitle($l10n(\"SETTING\")),this.hasSectionTitle(this.structure)&&e.navigationBar.setContentViewHeightOffset(-10),e}getPage(){return this.getNavigationView().getPage()}},en=class extends v{constructor(e,t){super(e,t),this.name=\"SheetViewTypeError\"}},es=class extends D{constructor(e={}){super(e),this.setIcon(e.icon),this.setTitle(e.title),void 0!==e.activeStatus&&(this.activeStatus=e.activeStatus)}setIcon(e){return e instanceof Array?this.icon=e:this.icon=[e,e],this}setTitle(e){return this.title=e,this}active(){$(`${this.props.id}-icon`).image=$image(this.icon[1]),$(`${this.props.id}-icon`).tintColor=$color(\"systemLink\"),$(`${this.props.id}-title`).textColor=$color(\"systemLink\"),this.activeStatus=!0}inactive(){$(`${this.props.id}-icon`).image=$image(this.icon[0]),$(`${this.props.id}-icon`).tintColor=$color(\"lightGray\"),$(`${this.props.id}-title`).textColor=$color(\"lightGray\"),this.activeStatus=!1}getView(){return this.views=[{type:\"image\",props:{id:`${this.props.id}-icon`,image:$image(this.activeStatus?this.icon[1]:this.icon[0]),bgcolor:$color(\"clear\"),tintColor:$color(this.activeStatus?\"systemLink\":\"lightGray\")},layout:(e,t)=>{e.centerX.equalTo(t.super);let r=eo.tabBarHeight/2;e.size.equalTo(r),e.top.inset((eo.tabBarHeight-r-13)/2)}},{type:\"label\",props:{id:`${this.props.id}-title`,text:this.title,font:$font(10),textColor:$color(this.activeStatus?\"systemLink\":\"lightGray\")},layout:(e,t)=>{e.centerX.equalTo(t.prev),e.top.equalTo(t.prev.bottom).offset(3)}}],this}},ea=class extends D{height=60;getView(){return this.type=\"view\",this.setProp(\"bgcolor\",this.props.bgcolor??_.primaryViewBackgroundColor),this.layout=(e,t)=>{e.left.right.bottom.equalTo(t.super),e.top.equalTo(t.super.safeAreaBottom).offset(-this.height-eo.tabBarHeight)},this.views=[D.create({props:this.props,views:this.views,layout:(e,t)=>{e.left.right.top.equalTo(t.super),e.height.equalTo(this.height)}})],this}},eo=class e extends o{static tabBarHeight=50;#e={};#t={};#r;#i;#n=$text.uuid;#s=$text.uuid;bottomSafeAreaInsets=$app.isDebugging?0:_.bottomSafeAreaInsets;get selected(){return this.#i}set selected(e){this.switchPageTo(e)}get contentOffset(){return e.tabBarHeight+(this.#r?.height??0)}setPages(e={}){return Object.keys(e).forEach(t=>this.setPage(t,e[t])),this}setPage(e,t){return void 0===this.#i&&(this.#i=e),t instanceof el?this.#e[e]=t:this.#e[e]=el.create(t),this.#i!==e&&(this.#e[e].activeStatus=!1),this}switchPageTo(e){this.#e[e]&&this.#i!==e&&($ui.animate({duration:.4,animation:()=>{this.#t[e].active()}}),this.#t[this.#i].inactive(),this.#e[this.#i].hide(),this.#e[e].show(),this.callEvent(\"onChange\",this.#i,e),this.#i=e,this.initBackground())}hideBackground(e=!0){$(this.#s).hidden=!0,$ui.animate({duration:e?.2:1e-4,animation:()=>{$(this.#n).alpha=0}})}showBackground(e=!0){$(this.#s).hidden=!1,$ui.animate({duration:e?.2:1e-4,animation:()=>{$(this.#n).alpha=1}})}initBackground(){let e=this.#e[this.selected];e.scrollable&&$delay(0,()=>{let t=$(e.id).get(e.scrollableView.id),r=t.contentOffset.y;t.contentSize.height+this.bottomSafeAreaInsets-t.frame.height-r<=0?this.hideBackground(!1):this.showBackground(!1)})}setCells(e={}){return Object.keys(e).forEach(t=>this.setCell(t,e[t])),this}setCell(e,t){return void 0===this.#i&&(this.#i=e),t instanceof es||(t=new es({props:{info:{key:e}},icon:t.icon,title:t.title,activeStatus:this.#i===e})),this.#t[e]=t,this}setHeader(e){return this.#r=e,this}#a(){let e=[];return Object.values(this.#t).forEach(t=>{t.setEvent(\"tapped\",e=>{let t=e.info.key;this.switchPageTo(t)}),e.push(t.getView())}),e}#o(){return Object.values(this.#e).map(e=>{if(e.scrollable){let t=e.scrollableView;if(t.props.indicatorInsets){let e=t.props.indicatorInsets;t.props.indicatorInsets=$insets(e.top,e.left,e.bottom+this.contentOffset,e.right)}else t.props.indicatorInsets=$insets(0,0,this.contentOffset,0);if(t.props.contentInset){let e=t.props.contentInset;t.props.contentInset=$insets(e.top,e.left,e.bottom+this.contentOffset,e.right)}else t.props.contentInset=$insets(0,0,this.contentOffset,0);\"function\"==typeof t.assignEvent&&t.assignEvent(\"didScroll\",e=>{let t=e.contentOffset.y-this.contentOffset;e.contentSize.height+this.bottomSafeAreaInsets-e.frame.height-t<=1?this.hideBackground():this.showBackground()})}return e.definition})}generateView(){let t={type:\"view\",layout:(t,r)=>{t.centerX.equalTo(r.super),t.width.equalTo(r.super),t.top.equalTo(r.super.safeAreaBottom).offset(-e.tabBarHeight),t.bottom.equalTo(r.super)},views:[_.blurBox({id:this.#n}),{type:\"stack\",layout:$layout.fillSafeArea,props:{axis:$stackViewAxis.horizontal,distribution:$stackViewDistribution.fillEqually,spacing:0,stack:{views:this.#a()}}},_.separatorLine({id:this.#s},_.align.top)],events:{ready:()=>this.initBackground()}};return D.createFromViews(this.#o().concat(this.#r?.definition??[],t))}},el=class extends D{constructor(e={}){super(e),this.activeStatus=!0}show(){$(this.props.id).hidden=!1,this.activeStatus=!0}hide(){$(this.props.id).hidden=!0,this.activeStatus=!1}setHorizontalSafeArea(e){return this.horizontalSafeArea=e,this}#e(e,t){e.top.bottom.equalTo(t.super),this.horizontalSafeArea?e.left.right.equalTo(t.super.safeArea):e.left.right.equalTo(t.super)}getView(){return this.layout=this.#e,this.props.clipsToBounds=!0,this.props.hidden=!this.activeStatus,super.getView()}},ec=class extends T{#e;user;password;#t;namespace=\"JSBox.WebDAV\";lockTokenCacheKey=this.namespace+\".lockToken\";get host(){return this.#e}set host(e){for(this.#e=e.trim();this.#e.endsWith(\"/\");)this.#e=this.#e.substring(0,this.#e.length-1);this.#e.startsWith(\"http\")||(this.#e=\"http://\"+this.#e)}get basepath(){return this.#t}set basepath(e){for(this.#t=e.trim();this.#t.endsWith(\"/\");)this.#t=this.#t.substring(0,this.#t.length-1);for(;this.#t.startsWith(\"/\");)this.#t=this.#t.substring(1);this.#t=\"/\"+this.#t}constructor({host:e,user:t,password:r,basepath:i=\"\"}={}){super(),this.host=e,this.user=t,this.password=r,this.basepath=i}#r(e){return e=(e=e.trim()).startsWith(\"/\")?e:\"/\"+e,this.basepath+e}async request(e,t,r=null,i={}){return i=Object.assign({\"Content-Type\":\"text/xml; charset=UTF-8\",Authorization:\"Basic \"+$text.base64Encode(`${this.user}:${this.password}`)},i),await super.request(this.host+this.#r(e),t,r,i)}async allow(e){let t=await this.request(e,T.method.options);return(t.response.headers?.allow??t.response.headers?.Allow)?.split(\",\").map(e=>e.trim().toUpperCase())??[]}async propfind(e,t=[],r=0){Array.isArray(t)||(t=[t]);let i=`${t.map(e=>``).join()}`,n=await this.request(e,\"PROPFIND\",i,{Depth:r});return $xml.parse({string:n.data})}async propfindAll(e,t=0){let r=await this.request(e,\"PROPFIND\",'',{Depth:t});return $xml.parse({string:r.data})}async ls(e,t=1){let r=await this.request(e,\"PROPFIND\",null,{Depth:t});return $xml.parse({string:r.data})}async exists(e){try{return(await this.allow(e)).includes(T.method.get)?await this.request(e,T.method.head):await this.ls(e,0),!0}catch(e){if(e?.code===404)return!1;throw e}}async mkdir(e){return await this.request(e,\"MKCOL\")}async get(e){return await this.request(e,T.method.get,null)}async put(e,t,{withLock:r=!0,waitInterval:i=2,maxTry:n=3}={}){let s={};for(;await this.isLocked(e);){if(--n<=0)throw Error(\"Resource Locked\");await $wait(i)}if(r)try{await this.lock(e),s.If=`(${this.#n(e)})`}catch(e){if(404!==e.code)throw e;r=!1}await this.request(e,T.method.put,t,s),r&&await this.unlock(e)}async delete(e){if(!e)throw Error(\"path empty\");return await this.request(e,T.method.delete)}#i(e,t){let r=$cache.get(this.lockTokenCacheKey)??{};r[e]=t,$cache.set(this.lockTokenCacheKey,r)}#n(e){return($cache.get(this.lockTokenCacheKey)??{})[e]}async isSupportLock(e){try{return!!(await this.propfind(e,\"supportedlock\")).rootElement.firstChild({xPath:\"//D:response/D:propstat/D:prop/D:supportedlock/D:lockentry\"}).firstChild({xPath:\"//D:locktype/D:write\"})}catch(e){if(404!==e.code)return!1;throw e}}async lock(e,{infinity:t=!1,timeout:r=\"Second-10\"}={}){if(!await this.isSupportLock(e))throw Error(\"Your WebDAV service does not support the `LOCK` method.\");let i=`${this.namespace}`,n=await this.request(e,\"LOCK\",i,{Timeout:r,Depth:t?\"infinity\":0}),s=n.response.headers[\"lock-token\"]??n.response.headers[\"Lock-Token\"];return this.#i(e,s),$xml.parse({string:n.data})}async isLocked(e){try{let t=(await this.propfind(e,\"lockdiscovery\")).rootElement;if(t.firstChild({xPath:\"//D:response/D:propstat/D:status\"}).string.includes(\"404\"))await this.lock(e,{timeout:\"Second-0\"});else{let r=t.firstChild({xPath:\"//D:response/D:propstat/D:prop/D:lockdiscovery\"}).children()??[];for(let t=0;t\"},HBS:{start:\"{{\",end:\"}}\"}}},{\"./utils\":7,cheerio:41}],3:[function(e,t,r){var i=e(\"./utils\"),n=e(\"./numbers\"),s=e(\"./variables\");t.exports=function(e){function t(t,o,l){l=l||{};var c=i.parseCSS(o),u=[],h=\"style\",d={};if(l.styleAttributeName&&(h=l.styleAttributeName),c.forEach(function(n){var s,o=n[0],c=n[1],p=new i.Selector(o),f=p.parsed();if(f){for(var T=function(e){if(0!==e.length){var t=e[e.length-1].pseudos;if(t){for(var r=0;r=0)return}}if(T){var _=f[f.length-1],I=_.pseudos;_.pseudos=_.pseudos.filter(function(e){return!a(e)}),o=f.toString(),_.pseudos=I}try{s=t(o)}catch(e){return}s.each(function(){var n=this;if(!(n.name&&e.nonVisualElements.indexOf(n.name.toUpperCase())>=0)){if(n.counterProps||(n.counterProps=n.parent&&n.parent.counterProps?Object.create(n.parent.counterProps):{}),T){var s=\"pseudo\"+T,a=n[s];a||((a=n[s]=t(\"\").get(0)).pseudoElementType=T,a.pseudoElementParent=n,a.counterProps=n.counterProps,n[s]=a),n=a}if(!n.styleProps){if(n.styleProps={},t(n).attr(h)){var o=\"* { \"+t(n).attr(h)+\" } \";f(i.parseCSS(o)[0][1],new i.Selector(\"\")}}function T(i,n){if(i.name){var s=i.name.toUpperCase();if(e[n+\"Elements\"].indexOf(s)>-1){for(var a in i.styleProps)if(i.styleProps[a].prop===n){var o=i.styleProps[a].value;if(l.preserveImportant&&(o=r(o)),o.match(/(px|auto)/)){var c=o.replace(\"px\",\"\");t(i).attr(n,c);return}if(e.tableElements.indexOf(s)>-1&&o.match(/\\%/)){t(i).attr(n,o);return}}}}}}function r(e){return e.replace(/\\s*!important$/,\"\")}function a(e){return\"before\"===e.name||\"after\"===e.name}return e.ignoredPseudos=[\"hover\",\"active\",\"focus\",\"visited\",\"link\"],e.widthElements=[\"TABLE\",\"TD\",\"TH\",\"IMG\"],e.heightElements=[\"TABLE\",\"TD\",\"TH\",\"IMG\"],e.tableElements=[\"TABLE\",\"TH\",\"TR\",\"TD\",\"CAPTION\",\"COLGROUP\",\"COL\",\"THEAD\",\"TBODY\",\"TFOOT\"],e.nonVisualElements=[\"HEAD\",\"TITLE\",\"BASE\",\"LINK\",\"STYLE\",\"META\",\"SCRIPT\",\"NOSCRIPT\"],e.styleToAttribute={\"background-color\":\"bgcolor\",\"background-image\":\"background\",\"text-align\":\"align\",\"vertical-align\":\"valign\"},e.excludedProperties=[],e.juiceDocument=function(r,n){var s,a,o,l,c,u,h=(s=r,a=n=i.getDefaultOptions(n),(u=[],s(\"style\").each(function(){c=this;var t=!!c.childNodes;if(1!==(o=t?c.childNodes:c.children).length){a.removeStyleTags&&s(c).remove();return}if(l=o[0].data,a.applyStyleTags&&void 0===s(c).attr(\"data-embed\")&&u.push(l),a.removeStyleTags&&void 0===s(c).attr(\"data-embed\")){var r=t?c.childNodes[0].nodeValue:c.children[0].data,n=i.getPreservedText(r,{mediaQueries:a.preserveMediaQueries,fontFaces:a.preserveFontFaces,keyFrames:a.preserveKeyFrames,pseudos:a.preservePseudos},e.ignoredPseudos);n?t?c.childNodes[0].nodeValue=n:c.children[0].data=n:s(c).remove()}s(c).removeAttr(\"data-embed\")}),u).join(\"\\n\"));return t(r,h+=\"\\n\"+n.extraCss,n),r},e.inlineDocument=t,e}},{\"./numbers\":4,\"./utils\":7,\"./variables\":8}],4:[function(e,t,r){r.romanize=function(e){if(isNaN(e))return NaN;for(var t=String(+e).split(\"\"),r=[\"\",\"C\",\"CC\",\"CCC\",\"CD\",\"D\",\"DC\",\"DCC\",\"DCCC\",\"CM\",\"\",\"X\",\"XX\",\"XXX\",\"XL\",\"L\",\"LX\",\"LXX\",\"LXXX\",\"XC\",\"\",\"I\",\"II\",\"III\",\"IV\",\"V\",\"VI\",\"VII\",\"VIII\",\"IX\"],i=\"\",n=3;n--;)i=(r[+t.pop()+10*n]||\"\")+i;return Array(+t.join(\"\")+1).join(\"M\")+i},r.alphanumeric=function(e){for(var t,r=\"\";e>0;)r=String.fromCharCode(65+(t=(e-1)%26))+r,e=(e-t)/26|0;return r||void 0}},{}],5:[function(e,t,r){t.exports=n;var i=e(\"./utils\");function n(e,t,r,i,n){this.prop=e,this.value=t,this.selector=r,this.priority=i||0,this.additionalPriority=n||[]}n.prototype.compareFunc=function(e){var t=[];t.push.apply(t,this.selector.specificity()),t.push.apply(t,this.additionalPriority),t[0]+=this.priority;var r=[];return r.push.apply(r,e.selector.specificity()),r.push.apply(r,e.additionalPriority),r[0]+=e.priority,i.compareFunc(t,r)},n.prototype.compare=function(e){return 1===this.compareFunc(e)?this:e},n.prototype.toString=function(){return this.prop+\": \"+this.value.replace(/['\"]+/g,\"\")+\";\"}},{\"./utils\":7}],6:[function(e,t,r){var i=e(\"slick/parser\");function n(e,t){this.text=e,this.spec=void 0,this.styleAttribute=t||!1}function s(e){try{return i(e)[0]}catch(e){return[]}}t.exports=n,n.prototype.parsed=function(){return this.tokens||(this.tokens=s(this.text)),this.tokens},n.prototype.specificity=function(){var e=this.styleAttribute;return this.spec||(this.spec=function t(r,i){for(var n=i||s(r),a=[e?1:0,0,0,0],o=[],l=0;l=0;o--)(t.fontFaces&&\"font-face\"===s[o].type||t.mediaQueries&&\"media\"===s[o].type||t.keyFrames&&\"keyframes\"===s[o].type||t.pseudos&&s[o].selectors&&this.matchesPseudo(s[o].selectors[0],r))&&a.unshift(i.stringify({stylesheet:{rules:[s[o]]}},{comments:!1,indentation:\" \"})),s[o].position.start;return 0!==a.length&&\"\\n\"+a.join(\"\\n\")+\"\\n\"},r.normalizeLineEndings=function(e){return e.replace(/\\r\\n/g,\"\\n\").replace(/\\n/g,\"\\r\\n\")},r.matchesPseudo=function(e,t){return t.find(function(t){return e.indexOf(t)>-1})},r.compareFunc=function(e,t){for(var r=Math.min(e.length,t.length),i=0;it[i])return 1;return -1}return e.length-t.length},r.compare=function(e,t){return 1==r.compareFunc(e,t)?e:t},r.getDefaultOptions=function(e){var t=Object.assign({extraCss:\"\",insertPreservedExtraCss:!0,applyStyleTags:!0,removeStyleTags:!0,preserveMediaQueries:!0,preserveFontFaces:!0,preserveKeyFrames:!0,preservePseudos:!0,applyWidthAttributes:!0,applyHeightAttributes:!0,applyAttributesTableElements:!0,resolveCSSVariables:!0,url:\"\"},e);return t.webResources=t.webResources||{},t}},{\"./property\":5,\"./selector\":6,mensch:128}],8:[function(e,t,r){let i=e=>{let t=\"\";do t=(Math.random()+1).toString(36).substring(2);while(-1!==e.indexOf(t))return t},n=(e,t)=>{for(;e;){if(e.styleProps&&t in e.styleProps)return e.styleProps[t].value;var e=e.pseudoElementParent||e.parent}};t.exports={replaceVariables:(e,t)=>{let r,s=/([a-z\\-]+)\\s*\\(\\s*([^\\(\\)]*?)\\s*(?:,\\s*([^\\(\\)]*?)\\s*)?\\s*\\)/i,a=[],o=i(t);for(;null!==(r=s.exec(t));){let i=`${a.length}`;if(\"var\"==r[1].toLowerCase()){let i=n(e,r[2]);if(i){t=t.replace(r[0],i);continue}if(r[3]){t=t.replace(r[0],r[3]);continue}}let s=`${o}${i.padStart(5,\"-\")}`;t=t.replace(r[0],s),a.push({placeholder:s,replace:r[0]})}for(var l=a.length-1;l>=0;l--){let e=a[l];t=t.replace(e.placeholder,e.replace)}return t},findVariableValue:n}},{}],9:[function(e,t,r){r.byteLength=function(e){var t=c(e),r=t[0],i=t[1];return(r+i)*3/4-i},r.toByteArray=function(e){for(var t,r=c(e),i=r[0],a=r[1],o=new s((i+a)*3/4-a),l=0,u=a>0?i-4:i,h=0;h>16&255,o[l++]=t>>8&255,o[l++]=255&t;return 2===a&&(t=n[e.charCodeAt(h)]<<2|n[e.charCodeAt(h+1)]>>4,o[l++]=255&t),1===a&&(t=n[e.charCodeAt(h)]<<10|n[e.charCodeAt(h+1)]<<4|n[e.charCodeAt(h+2)]>>2,o[l++]=t>>8&255,o[l++]=255&t),o},r.fromByteArray=function(e){for(var t,r=e.length,n=r%3,s=[],a=0,o=r-n;a>18&63]+i[n>>12&63]+i[n>>6&63]+i[63&n]);return s.join(\"\")}(e,a,a+16383>o?o:a+16383));return 1===n?s.push(i[(t=e[r-1])>>2]+i[t<<4&63]+\"==\"):2===n&&s.push(i[(t=(e[r-2]<<8)+e[r-1])>>10]+i[t>>4&63]+i[t<<2&63]+\"=\"),s.join(\"\")};for(var i=[],n=[],s=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,a=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",o=0,l=a.length;o0)throw Error(\"Invalid string. Length must be a multiple of 4\");var r=e.indexOf(\"=\");-1===r&&(r=t);var i=r===t?0:4-r%4;return[r,i]}n[\"-\".charCodeAt(0)]=62,n[\"_\".charCodeAt(0)]=63},{}],10:[function(e,t,r){t.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}},{}],11:[function(e,t,r){(function(t){(function(){var t=e(\"base64-js\"),i=e(\"ieee754\");function n(e){if(e>2147483647)throw RangeError('The value \"'+e+'\" is invalid for option \"size\"');var t=new Uint8Array(e);return t.__proto__=s.prototype,t}function s(e,t,r){if(\"number\"==typeof e){if(\"string\"==typeof t)throw TypeError('The \"string\" argument must be of type string. Received type number');return l(e)}return a(e,t,r)}function a(e,t,r){if(\"string\"==typeof e)return function(e,t){if((\"string\"!=typeof t||\"\"===t)&&(t=\"utf8\"),!s.isEncoding(t))throw TypeError(\"Unknown encoding: \"+t);var r=0|h(e,t),i=n(r),a=i.write(e,t);return a!==r&&(i=i.slice(0,a)),i}(e,t);if(ArrayBuffer.isView(e))return c(e);if(null==e)throw TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e);if(N(e,ArrayBuffer)||e&&N(e.buffer,ArrayBuffer))return function(e,t,r){var i;if(t<0||e.byteLength=2147483647)throw RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes\");return 0|e}function h(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||N(e,ArrayBuffer))return e.byteLength;if(\"string\"!=typeof e)throw TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":return S(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return b(e).length;default:if(n)return i?-1:S(e).length;t=(\"\"+t).toLowerCase(),n=!0}}function d(e,r,i){var n,s,a=!1;if((void 0===r||r<0)&&(r=0),r>this.length||((void 0===i||i>this.length)&&(i=this.length),i<=0||(i>>>=0)<=(r>>>=0)))return\"\";for(e||(e=\"utf8\");;)switch(e){case\"hex\":return function(e,t,r){var i,n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var s=\"\",a=t;a2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(a=r=+r)!=a&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return -1;r=e.length-1}else if(r<0){if(!n)return -1;r=0}if(\"string\"==typeof t&&(t=s.from(t,i)),s.isBuffer(t))return 0===t.length?-1:T(e,t,r,i,n);if(\"number\"==typeof t)return(t&=255,\"function\"==typeof Uint8Array.prototype.indexOf)?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):T(e,[t],r,i,n);throw TypeError(\"val must be string, number or Buffer\")}function T(e,t,r,i,n){var s,a=1,o=e.length,l=t.length;if(void 0!==i&&(\"ucs2\"===(i=String(i).toLowerCase())||\"ucs-2\"===i||\"utf16le\"===i||\"utf-16le\"===i)){if(e.length<2||t.length<2)return -1;a=2,o/=2,l/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var u=-1;for(s=r;so&&(r=o-l),s=r;s>=0;s--){for(var h=!0,d=0;d239?4:c>223?3:c>191?2:1;if(n+h<=r)switch(h){case 1:c<128&&(u=c);break;case 2:(192&(s=e[n+1]))==128&&(l=(31&c)<<6|63&s)>127&&(u=l);break;case 3:s=e[n+1],a=e[n+2],(192&s)==128&&(192&a)==128&&(l=(15&c)<<12|(63&s)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:s=e[n+1],a=e[n+2],o=e[n+3],(192&s)==128&&(192&a)==128&&(192&o)==128&&(l=(15&c)<<18|(63&s)<<12|(63&a)<<6|63&o)>65535&&l<1114112&&(u=l)}null===u?(u=65533,h=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),n+=h}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r=\"\",i=0;ir)throw RangeError(\"Trying to access beyond buffer length\")}function g(e,t,r,i,n,a){if(!s.isBuffer(e))throw TypeError('\"buffer\" argument must be a Buffer instance');if(t>n||te.length)throw RangeError(\"Index out of range\")}function A(e,t,r,i,n,s){if(r+i>e.length||r<0)throw RangeError(\"Index out of range\")}function _(e,t,r,n,s){return t=+t,r>>>=0,s||A(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function I(e,t,r,n,s){return t=+t,r>>>=0,s||A(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}r.Buffer=s,r.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},r.INSPECT_MAX_BYTES=50,r.kMaxLength=2147483647,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||\"undefined\"==typeof console||\"function\"!=typeof console.error||console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\"),Object.defineProperty(s.prototype,\"parent\",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,\"offset\",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),\"undefined\"!=typeof Symbol&&null!=Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),s.poolSize=8192,s.from=function(e,t,r){return a(e,t,r)},s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,s.alloc=function(e,t,r){return(o(e),e<=0)?n(e):void 0!==t?\"string\"==typeof r?n(e).fill(t,r):n(e).fill(t):n(e)},s.allocUnsafe=function(e){return l(e)},s.allocUnsafeSlow=function(e){return l(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(N(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),N(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,a=Math.min(r,i);nt&&(e+=\" ... \"),\"\"},s.prototype.compare=function(e,t,r,i,n){if(N(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw RangeError(\"out of range index\");if(i>=n&&t>=r)return 0;if(i>=n)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,i>>>=0,n>>>=0,this===e)return 0;for(var a=n-i,o=r-t,l=Math.min(a,o),c=this.slice(i,n),u=e.slice(t,r),h=0;h>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i=\"utf8\")):(i=r,r=void 0);else throw Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");var n,s,a,o,l,c,u,h,d,p,f,T,E=this.length-t;if((void 0===r||r>E)&&(r=E),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError(\"Attempt to write outside buffer bounds\");i||(i=\"utf8\");for(var m=!1;;)switch(i){case\"hex\":return function(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?(i=Number(i))>n&&(i=n):i=n;var s=t.length;i>s/2&&(i=s/2);for(var a=0;a>8,n.push(r%256),n.push(i);return n}(e,this.length-f),this,f,T);default:if(m)throw TypeError(\"Unknown encoding: \"+i);i=(\"\"+i).toLowerCase(),m=!0}},s.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||m(e,t,this.length);for(var i=this[e],n=1,s=0;++s>>=0,t>>>=0,r||m(e,t,this.length);for(var i=this[e+--t],n=1;t>0&&(n*=256);)i+=this[e+--t]*n;return i},s.prototype.readUInt8=function(e,t){return e>>>=0,t||m(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||m(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||m(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||m(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||m(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||m(e,t,this.length);for(var i=this[e],n=1,s=0;++s=(n*=128)&&(i-=Math.pow(2,8*t)),i},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||m(e,t,this.length);for(var i=t,n=1,s=this[e+--i];i>0&&(n*=256);)s+=this[e+--i]*n;return s>=(n*=128)&&(s-=Math.pow(2,8*t)),s},s.prototype.readInt8=function(e,t){return(e>>>=0,t||m(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||m(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||m(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||m(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||m(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||m(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||m(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||m(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||m(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,r,i){if(e=+e,t>>>=0,r>>>=0,!i){var n=Math.pow(2,8*r)-1;g(this,e,t,r,n,0)}var s=1,a=0;for(this[t]=255&e;++a>>=0,r>>>=0,!i){var n=Math.pow(2,8*r)-1;g(this,e,t,r,n,0)}var s=r-1,a=1;for(this[t+s]=255&e;--s>=0&&(a*=256);)this[t+s]=e/a&255;return t+r},s.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||g(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||g(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||g(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||g(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||g(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);g(this,e,t,r,n-1,-n)}var s=0,a=1,o=0;for(this[t]=255&e;++s>0)-o&255;return t+r},s.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var n=Math.pow(2,8*r-1);g(this,e,t,r,n-1,-n)}var s=r-1,a=1,o=0;for(this[t+s]=255&e;--s>=0&&(a*=256);)e<0&&0===o&&0!==this[t+s+1]&&(o=1),this[t+s]=(e/a>>0)-o&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||g(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||g(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||g(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||g(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||g(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,r){return _(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return _(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return I(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return I(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,i){if(!s.isBuffer(e))throw TypeError(\"argument should be a Buffer\");if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i=this.length)throw RangeError(\"Index out of range\");if(i<0)throw RangeError(\"sourceEnd out of bounds\");i>this.length&&(i=this.length),e.length-t=0;--a)e[a+t]=this[a+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n},s.prototype.fill=function(e,t,r,i){if(\"string\"==typeof e){if(\"string\"==typeof t?(i=t,t=0,r=this.length):\"string\"==typeof r&&(i=r,r=this.length),void 0!==i&&\"string\"!=typeof i)throw TypeError(\"encoding must be a string\");if(\"string\"==typeof i&&!s.isEncoding(i))throw TypeError(\"Unknown encoding: \"+i);if(1===e.length){var n,a=e.charCodeAt(0);(\"utf8\"===i&&a<128||\"latin1\"===i)&&(e=a)}}else\"number\"==typeof e&&(e&=255);if(t<0||this.length>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),\"number\"==typeof e)for(n=t;n55295&&r<57344){if(!n){if(r>56319||a+1===i){(t-=3)>-1&&s.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&s.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(t-=3)>-1&&s.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;s.push(r)}else if(r<2048){if((t-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error(\"Invalid code point\")}return s}function C(e){for(var t=[],r=0;r=t.length)&&!(n>=e.length);++n)t[n+r]=e[n];return n}function N(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}}).call(this)}).call(this,e(\"buffer\").Buffer)},{\"base64-js\":9,buffer:11,ieee754:127}],12:[function(e,t,r){Object.defineProperty(r,\"__esModule\",{value:!0}),r.groupSelectors=r.getDocumentRoot=void 0;var i=e(\"./positionals.js\");r.getDocumentRoot=function(e){for(;e.parent;)e=e.parent;return e},r.groupSelectors=function(e){for(var t=[],r=[],n=0;n0&&e.some((0,c._compileToken)(n,r))||s.some(function(t){return A(t,e,r).length>0})}function g(e,t,r){if(0===t.length)return[];var i,n=(0,d.groupSelectors)(e),s=n[0],a=n[1];if(s.length){var o=S(t,s,r);if(0===a.length)return o;o.length&&(i=new Set(o))}for(var l=0;l0?[t[t.length-1]]:t;case\"nth\":case\"eq\":return isFinite(n)&&Math.abs(n)=0?i+1:1/0:0;case\"lt\":return isFinite(i)?i>=0?Math.min(i,r):1/0:0;case\"gt\":return isFinite(i)?1/0:0;case\"odd\":return 2*r;case\"even\":return 2*r-1;case\"last\":case\"not\":return 1/0}}},{}],15:[function(e,t,r){Object.defineProperty(r,\"__esModule\",{value:!0}),r.attributeNames=r.elementNames=void 0,r.elementNames=new Map([\"altGlyph\",\"altGlyphDef\",\"altGlyphItem\",\"animateColor\",\"animateMotion\",\"animateTransform\",\"clipPath\",\"feBlend\",\"feColorMatrix\",\"feComponentTransfer\",\"feComposite\",\"feConvolveMatrix\",\"feDiffuseLighting\",\"feDisplacementMap\",\"feDistantLight\",\"feDropShadow\",\"feFlood\",\"feFuncA\",\"feFuncB\",\"feFuncG\",\"feFuncR\",\"feGaussianBlur\",\"feImage\",\"feMerge\",\"feMergeNode\",\"feMorphology\",\"feOffset\",\"fePointLight\",\"feSpecularLighting\",\"feSpotLight\",\"feTile\",\"feTurbulence\",\"foreignObject\",\"glyphRef\",\"linearGradient\",\"radialGradient\",\"textPath\"].map(function(e){return[e.toLowerCase(),e]})),r.attributeNames=new Map([\"definitionURL\",\"attributeName\",\"attributeType\",\"baseFrequency\",\"baseProfile\",\"calcMode\",\"clipPathUnits\",\"diffuseConstant\",\"edgeMode\",\"filterUnits\",\"glyphRef\",\"gradientTransform\",\"gradientUnits\",\"kernelMatrix\",\"kernelUnitLength\",\"keyPoints\",\"keySplines\",\"keyTimes\",\"lengthAdjust\",\"limitingConeAngle\",\"markerHeight\",\"markerUnits\",\"markerWidth\",\"maskContentUnits\",\"maskUnits\",\"numOctaves\",\"pathLength\",\"patternContentUnits\",\"patternTransform\",\"patternUnits\",\"pointsAtX\",\"pointsAtY\",\"pointsAtZ\",\"preserveAlpha\",\"preserveAspectRatio\",\"primitiveUnits\",\"refX\",\"refY\",\"repeatCount\",\"repeatDur\",\"requiredExtensions\",\"requiredFeatures\",\"specularConstant\",\"specularExponent\",\"spreadMethod\",\"startOffset\",\"stdDeviation\",\"stitchTiles\",\"surfaceScale\",\"systemLanguage\",\"tableValues\",\"targetX\",\"targetY\",\"textLength\",\"viewBox\",\"viewTarget\",\"xChannelSelector\",\"yChannelSelector\",\"zoomAndPan\"].map(function(e){return[e.toLowerCase(),e]}))},{}],16:[function(e,t,r){var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,r=1,i=arguments.length;r\");case o.Comment:return\"\");case o.CDATA:return\"\");case o.Script:case o.Style:case o.Tag:return function(e,t){\"foreign\"===t.xmlMode&&(e.name=null!==(r=c.elementNames.get(e.name))&&void 0!==r?r:e.name,e.parent&&f.has(e.parent.name)&&(t=i(i({},t),{xmlMode:!1}))),!t.xmlMode&&T.has(e.name)&&(t=i(i({},t),{xmlMode:\"foreign\"}));var r,n=\"<\".concat(e.name),s=function(e,t){if(e){var r,i=(null!==(r=t.encodeEntities)&&void 0!==r?r:t.decodeEntities)===!1?h:t.xmlMode||\"utf8\"!==t.encodeEntities?l.encodeXML:l.escapeAttribute;return Object.keys(e).map(function(r){var n,s,a=null!==(n=e[r])&&void 0!==n?n:\"\";return(\"foreign\"===t.xmlMode&&(r=null!==(s=c.attributeNames.get(r))&&void 0!==s?s:r),t.emptyAttrs||t.xmlMode||\"\"!==a)?\"\".concat(r,'=\"').concat(i(a),'\"'):r}).join(\" \")}}(e.attribs,t);return s&&(n+=\" \".concat(s)),0===e.children.length&&(t.xmlMode?!1!==t.selfClosingTags:t.selfClosingTags&&d.has(e.name))?(t.xmlMode||(n+=\" \"),n+=\"/>\"):(n+=\">\",e.children.length>0&&(n+=p(e.children,t)),(t.xmlMode||!d.has(e.name))&&(n+=\"\"))),n}(e,t);case o.Text:return function(e,t){var r,i=e.data||\"\";return(null!==(r=t.encodeEntities)&&void 0!==r?r:t.decodeEntities)===!1||!t.xmlMode&&e.parent&&u.has(e.parent.name)||(i=t.xmlMode||\"utf8\"!==t.encodeEntities?(0,l.encodeXML)(i):(0,l.escapeText)(i)),i}(e,t)}}(r[s],t);return n}r.render=p,r.default=p;var f=new Set([\"mi\",\"mo\",\"mn\",\"ms\",\"mtext\",\"annotation-xml\",\"foreignObject\",\"desc\",\"title\"]),T=new Set([\"svg\",\"math\"])},{\"./foreignNames.js\":15,domelementtype:103,entities:34}],17:[function(e,t,r){var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||(\"get\"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)\"default\"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(r,\"__esModule\",{value:!0}),r.DomHandler=void 0;var s=e(\"domelementtype\"),a=e(\"./node.js\");n(e(\"./node.js\"),r);var o={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,r){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,\"function\"==typeof t&&(r=t,t=o),\"object\"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:o,this.elementCB=null!=r?r:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var r=this.options.xmlMode?s.ElementType.Tag:void 0,i=new a.Element(e,t,void 0,r);this.addNode(i),this.tagStack.push(i)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===s.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var r=new a.Text(e);this.addNode(r),this.lastNode=r}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===s.ElementType.Comment){this.lastNode.data+=e;return}var t=new a.Comment(e);this.addNode(t),this.lastNode=t},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(\"\"),t=new a.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var r=new a.ProcessingInstruction(e,t);this.addNode(r)},e.prototype.handleCallback=function(e){if(\"function\"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],r=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),r&&(e.prev=r,r.next=e),e.parent=t,this.lastNode=null},e}();r.DomHandler=l,r.default=l},{\"./node.js\":18,domelementtype:103}],18:[function(e,t,r){var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if(\"function\"!=typeof t&&null!==t)throw TypeError(\"Class extends value \"+String(t)+\" is not a constructor or null\");function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=this&&this.__assign||function(){return(s=Object.assign||function(e){for(var t,r=1,i=arguments.length;r0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"childNodes\",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(o);r.NodeWithChildren=d;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.CDATA,t}return n(t,e),Object.defineProperty(t.prototype,\"nodeType\",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(d);r.CDATA=p;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Root,t}return n(t,e),Object.defineProperty(t.prototype,\"nodeType\",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(d);r.Document=f;var T=function(e){function t(t,r,i,n){void 0===i&&(i=[]),void 0===n&&(n=\"script\"===t?a.ElementType.Script:\"style\"===t?a.ElementType.Style:a.ElementType.Tag);var s=e.call(this,i)||this;return s.name=t,s.attribs=r,s.type=n,s}return n(t,e),Object.defineProperty(t.prototype,\"nodeType\",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"tagName\",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"attributes\",{get:function(){var e=this;return Object.keys(this.attribs).map(function(t){var r,i;return{name:t,value:e.attribs[t],namespace:null===(r=e[\"x-attribsNamespace\"])||void 0===r?void 0:r[t],prefix:null===(i=e[\"x-attribsPrefix\"])||void 0===i?void 0:i[t]}})},enumerable:!1,configurable:!0}),t}(d);function E(e){return(0,a.isTag)(e)}function m(e){return e.type===a.ElementType.CDATA}function g(e){return e.type===a.ElementType.Text}function A(e){return e.type===a.ElementType.Comment}function _(e){return e.type===a.ElementType.Directive}function I(e){return e.type===a.ElementType.Root}function D(e,t){if(void 0===t&&(t=!1),g(e))r=new c(e.data);else if(A(e))r=new u(e.data);else if(E(e)){var r,i=t?S(e.children):[],n=new T(e.name,s({},e.attribs),i);i.forEach(function(e){return e.parent=n}),null!=e.namespace&&(n.namespace=e.namespace),e[\"x-attribsNamespace\"]&&(n[\"x-attribsNamespace\"]=s({},e[\"x-attribsNamespace\"])),e[\"x-attribsPrefix\"]&&(n[\"x-attribsPrefix\"]=s({},e[\"x-attribsPrefix\"])),r=n}else if(m(e)){var i=t?S(e.children):[],a=new p(i);i.forEach(function(e){return e.parent=a}),r=a}else if(I(e)){var i=t?S(e.children):[],o=new f(i);i.forEach(function(e){return e.parent=o}),e[\"x-mode\"]&&(o[\"x-mode\"]=e[\"x-mode\"]),r=o}else if(_(e)){var l=new h(e.name,e.data);null!=e[\"x-name\"]&&(l[\"x-name\"]=e[\"x-name\"],l[\"x-publicId\"]=e[\"x-publicId\"],l[\"x-systemId\"]=e[\"x-systemId\"]),r=l}else throw Error(\"Not implemented yet: \".concat(e.type));return r.startIndex=e.startIndex,r.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function S(e){for(var t=e.map(function(e){return D(e,!0)}),r=1;ru.indexOf(d)?c===t?n.FOLLOWING|n.CONTAINED_BY:n.FOLLOWING:c===e?n.PRECEDING|n.CONTAINS:n.PRECEDING}r.removeSubsets=function(e){for(var t=e.length;--t>=0;){var r=e[t];if(t>0&&e.lastIndexOf(r,t-1)>=0){e.splice(t,1);continue}for(var i=r.parent;i;i=i.parent)if(e.includes(i)){e.splice(t,1);break}}return e},(i=n=r.DocumentPosition||(r.DocumentPosition={}))[i.DISCONNECTED=1]=\"DISCONNECTED\",i[i.PRECEDING=2]=\"PRECEDING\",i[i.FOLLOWING=4]=\"FOLLOWING\",i[i.CONTAINS=8]=\"CONTAINS\",i[i.CONTAINED_BY=16]=\"CONTAINED_BY\",r.compareDocumentPosition=a,r.uniqueSort=function(e){return(e=e.filter(function(e,t,r){return!r.includes(e,t+1)})).sort(function(e,t){var r=a(e,t);return r&n.PRECEDING?-1:r&n.FOLLOWING?1:0}),e}},{domhandler:17}],21:[function(e,t,r){var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||(\"get\"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)\"default\"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(r,\"__esModule\",{value:!0}),r.hasChildren=r.isDocument=r.isComment=r.isText=r.isCDATA=r.isTag=void 0,n(e(\"./stringify.js\"),r),n(e(\"./traversal.js\"),r),n(e(\"./manipulation.js\"),r),n(e(\"./querying.js\"),r),n(e(\"./legacy.js\"),r),n(e(\"./helpers.js\"),r),n(e(\"./feeds.js\"),r);var s=e(\"domhandler\");Object.defineProperty(r,\"isTag\",{enumerable:!0,get:function(){return s.isTag}}),Object.defineProperty(r,\"isCDATA\",{enumerable:!0,get:function(){return s.isCDATA}}),Object.defineProperty(r,\"isText\",{enumerable:!0,get:function(){return s.isText}}),Object.defineProperty(r,\"isComment\",{enumerable:!0,get:function(){return s.isComment}}),Object.defineProperty(r,\"isDocument\",{enumerable:!0,get:function(){return s.isDocument}}),Object.defineProperty(r,\"hasChildren\",{enumerable:!0,get:function(){return s.hasChildren}})},{\"./feeds.js\":19,\"./helpers.js\":20,\"./legacy.js\":22,\"./manipulation.js\":23,\"./querying.js\":24,\"./stringify.js\":25,\"./traversal.js\":26,domhandler:17}],22:[function(e,t,r){Object.defineProperty(r,\"__esModule\",{value:!0}),r.getElementsByTagType=r.getElementsByTagName=r.getElementById=r.getElements=r.testElement=void 0;var i=e(\"domhandler\"),n=e(\"./querying.js\"),s={tag_name:function(e){return\"function\"==typeof e?function(t){return(0,i.isTag)(t)&&e(t.name)}:\"*\"===e?i.isTag:function(t){return(0,i.isTag)(t)&&t.name===e}},tag_type:function(e){return\"function\"==typeof e?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return\"function\"==typeof e?function(t){return(0,i.isText)(t)&&e(t.data)}:function(t){return(0,i.isText)(t)&&t.data===e}}};function a(e,t){return\"function\"==typeof t?function(r){return(0,i.isTag)(r)&&t(r.attribs[e])}:function(r){return(0,i.isTag)(r)&&r.attribs[e]===t}}function o(e,t){return function(r){return e(r)||t(r)}}function l(e){var t=Object.keys(e).map(function(t){var r=e[t];return Object.prototype.hasOwnProperty.call(s,t)?s[t](r):a(t,r)});return 0===t.length?null:t.reduce(o)}r.testElement=function(e,t){var r=l(e);return!r||r(t)},r.getElements=function(e,t,r,i){void 0===i&&(i=1/0);var s=l(e);return s?(0,n.filter)(s,t,r,i):[]},r.getElementById=function(e,t,r){return void 0===r&&(r=!0),Array.isArray(t)||(t=[t]),(0,n.findOne)(a(\"id\",e),t,r)},r.getElementsByTagName=function(e,t,r,i){return void 0===r&&(r=!0),void 0===i&&(i=1/0),(0,n.filter)(s.tag_name(e),t,r,i)},r.getElementsByTagType=function(e,t,r,i){return void 0===r&&(r=!0),void 0===i&&(i=1/0),(0,n.filter)(s.tag_type(e),t,r,i)}},{\"./querying.js\":24,domhandler:17}],23:[function(e,t,r){function i(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children;t.splice(t.lastIndexOf(e),1)}}Object.defineProperty(r,\"__esModule\",{value:!0}),r.prepend=r.prependChild=r.append=r.appendChild=r.replaceElement=r.removeElement=void 0,r.removeElement=i,r.replaceElement=function(e,t){var r=t.prev=e.prev;r&&(r.next=t);var i=t.next=e.next;i&&(i.prev=t);var n=t.parent=e.parent;if(n){var s=n.children;s[s.lastIndexOf(e)]=t,e.parent=null}},r.appendChild=function(e,t){if(i(t),t.next=null,t.parent=e,e.children.push(t)>1){var r=e.children[e.children.length-2];r.next=t,t.prev=r}else t.prev=null},r.append=function(e,t){i(t);var r=e.parent,n=e.next;if(t.next=n,t.prev=e,e.next=t,t.parent=r,n){if(n.prev=t,r){var s=r.children;s.splice(s.lastIndexOf(n),0,t)}}else r&&r.children.push(t)},r.prependChild=function(e,t){if(i(t),t.parent=e,t.prev=null,1!==e.children.unshift(t)){var r=e.children[1];r.prev=t,t.next=r}else t.next=null},r.prepend=function(e,t){i(t);var r=e.parent;if(r){var n=r.children;n.splice(n.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=r,t.prev=e.prev,t.next=e,e.prev=t}},{}],24:[function(e,t,r){Object.defineProperty(r,\"__esModule\",{value:!0}),r.findAll=r.existsOne=r.findOne=r.findOneChild=r.find=r.filter=void 0;var i=e(\"domhandler\");function n(e,t,r,s){for(var a=[],o=0;o0){var c=n(e,l.children,r,s);if(a.push.apply(a,c),(s-=c.length)<=0)break}}return a}r.filter=function(e,t,r,i){return void 0===r&&(r=!0),void 0===i&&(i=1/0),Array.isArray(t)||(t=[t]),n(e,t,r,i)},r.find=n,r.findOneChild=function(e,t){return t.find(e)},r.findOne=function e(t,r,n){void 0===n&&(n=!0);for(var s=null,a=0;a0&&(s=e(t,o.children,!0)))}return s},r.existsOne=function e(t,r){return r.some(function(r){return(0,i.isTag)(r)&&(t(r)||r.children.length>0&&e(t,r.children))})},r.findAll=function(e,t){for(var r,n,s=[],a=t.filter(i.isTag);n=a.shift();){var o=null===(r=n.children)||void 0===r?void 0:r.filter(i.isTag);o&&o.length>0&&a.unshift.apply(a,o),e(n)&&s.push(n)}return s}},{domhandler:17}],25:[function(e,t,r){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,\"__esModule\",{value:!0}),r.innerText=r.textContent=r.getText=r.getInnerHTML=r.getOuterHTML=void 0;var n=e(\"domhandler\"),s=i(e(\"dom-serializer\")),a=e(\"domelementtype\");function o(e,t){return(0,s.default)(e,t)}r.getOuterHTML=o,r.getInnerHTML=function(e,t){return(0,n.hasChildren)(e)?e.children.map(function(e){return o(e,t)}).join(\"\"):\"\"},r.getText=function e(t){return Array.isArray(t)?t.map(e).join(\"\"):(0,n.isTag)(t)?\"br\"===t.name?\"\\n\":e(t.children):(0,n.isCDATA)(t)?e(t.children):(0,n.isText)(t)?t.data:\"\"},r.textContent=function e(t){return Array.isArray(t)?t.map(e).join(\"\"):(0,n.hasChildren)(t)&&!(0,n.isComment)(t)?e(t.children):(0,n.isText)(t)?t.data:\"\"},r.innerText=function e(t){return Array.isArray(t)?t.map(e).join(\"\"):(0,n.hasChildren)(t)&&(t.type===a.ElementType.Tag||(0,n.isCDATA)(t))?e(t.children):(0,n.isText)(t)?t.data:\"\"}},{\"dom-serializer\":16,domelementtype:103,domhandler:17}],26:[function(e,t,r){Object.defineProperty(r,\"__esModule\",{value:!0}),r.prevElementSibling=r.nextElementSibling=r.getName=r.hasAttrib=r.getAttributeValue=r.getSiblings=r.getParent=r.getChildren=void 0;var i=e(\"domhandler\");function n(e){return(0,i.hasChildren)(e)?e.children:[]}function s(e){return e.parent||null}r.getChildren=n,r.getParent=s,r.getSiblings=function(e){var t=s(e);if(null!=t)return n(t);for(var r=[e],i=e.prev,a=e.next;null!=i;)r.unshift(i),i=i.prev;for(;null!=a;)r.push(a),a=a.next;return r},r.getAttributeValue=function(e,t){var r;return null===(r=e.attribs)||void 0===r?void 0:r[t]},r.hasAttrib=function(e,t){return null!=e.attribs&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&null!=e.attribs[t]},r.getName=function(e){return e.name},r.nextElementSibling=function(e){for(var t=e.next;null!==t&&!(0,i.isTag)(t);)t=t.next;return t},r.prevElementSibling=function(e){for(var t=e.prev;null!==t&&!(0,i.isTag)(t);)t=t.prev;return t}},{domhandler:17}],27:[function(e,t,r){var i,n,s,a,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,\"__esModule\",{value:!0}),r.decodeXML=r.decodeHTMLStrict=r.decodeHTML=r.determineBranch=r.BinTrieFlags=r.fromCodePoint=r.replaceCodePoint=r.decodeCodePoint=r.xmlDecodeTree=r.htmlDecodeTree=void 0;var l=o(e(\"./generated/decode-data-html.js\"));r.htmlDecodeTree=l.default;var c=o(e(\"./generated/decode-data-xml.js\"));r.xmlDecodeTree=c.default;var u=o(e(\"./decode_codepoint.js\"));r.decodeCodePoint=u.default;var h=e(\"./decode_codepoint.js\");function d(e){return function(t,r){for(var i=\"\",n=0,o=0;(o=t.indexOf(\"&\",o))>=0;){if(i+=t.slice(n,o),n=o,o+=1,t.charCodeAt(o)===s.NUM){var l=o+1,c=10,h=t.charCodeAt(l);(h|s.To_LOWER_BIT)===s.LOWER_X&&(c=16,o+=1,l+=1);do h=t.charCodeAt(++o);while(h>=s.ZERO&&h<=s.NINE||16===c&&(h|s.To_LOWER_BIT)>=s.LOWER_A&&(h|s.To_LOWER_BIT)<=s.LOWER_F)if(l!==o){var d=parseInt(t.substring(l,o),c);if(t.charCodeAt(o)===s.SEMI)o+=1;else if(r)continue;i+=(0,u.default)(d),n=o}continue}for(var f=0,T=1,E=0,m=e[0];o>14)-1;if(0===A)break;E+=A}}if(0!==f){var A=(e[f]&a.VALUE_LENGTH)>>14;i+=1===A?String.fromCharCode(e[f]&~a.VALUE_LENGTH):2===A?String.fromCharCode(e[f+1]):String.fromCharCode(e[f+1],e[f+2]),n=o-T+1}}return i+t.slice(n)}}function p(e,t,r,i){var n=(t&a.BRANCH_LENGTH)>>7,s=t&a.JUMP_TABLE;if(0===n)return 0!==s&&i===s?r:-1;if(s){var o=i-s;return o<0||o>=n?-1:e[r+o]-1}for(var l=r,c=l+n-1;l<=c;){var u=l+c>>>1,h=e[u];if(hi))return e[u+n];c=u-1}}return -1}Object.defineProperty(r,\"replaceCodePoint\",{enumerable:!0,get:function(){return h.replaceCodePoint}}),Object.defineProperty(r,\"fromCodePoint\",{enumerable:!0,get:function(){return h.fromCodePoint}}),(i=s||(s={}))[i.NUM=35]=\"NUM\",i[i.SEMI=59]=\"SEMI\",i[i.ZERO=48]=\"ZERO\",i[i.NINE=57]=\"NINE\",i[i.LOWER_A=97]=\"LOWER_A\",i[i.LOWER_F=102]=\"LOWER_F\",i[i.LOWER_X=120]=\"LOWER_X\",i[i.To_LOWER_BIT=32]=\"To_LOWER_BIT\",(n=a=r.BinTrieFlags||(r.BinTrieFlags={}))[n.VALUE_LENGTH=49152]=\"VALUE_LENGTH\",n[n.BRANCH_LENGTH=16256]=\"BRANCH_LENGTH\",n[n.JUMP_TABLE=127]=\"JUMP_TABLE\",r.determineBranch=p;var f=d(l.default),T=d(c.default);r.decodeHTML=function(e){return f(e,!1)},r.decodeHTMLStrict=function(e){return f(e,!0)},r.decodeXML=function(e){return T(e,!0)}},{\"./decode_codepoint.js\":28,\"./generated/decode-data-html.js\":31,\"./generated/decode-data-xml.js\":32}],28:[function(e,t,r){Object.defineProperty(r,\"__esModule\",{value:!0}),r.replaceCodePoint=r.fromCodePoint=void 0;var i,n=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function s(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=n.get(e))&&void 0!==t?t:e}r.fromCodePoint=null!==(i=String.fromCodePoint)&&void 0!==i?i:function(e){var t=\"\";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)},r.replaceCodePoint=s,r.default=function(e){return(0,r.fromCodePoint)(s(e))}},{}],29:[function(e,t,r){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,\"__esModule\",{value:!0}),r.encodeNonAsciiHTML=r.encodeHTML=void 0;var n=i(e(\"./generated/encode-html.js\")),s=e(\"./escape.js\"),a=/[\\t\\n!-,./:-@[-`\\f{-}$\\x80-\\uFFFF]/g;function o(e,t){for(var r,i=\"\",a=0;null!==(r=e.exec(t));){var o=r.index;i+=t.substring(a,o);var l=t.charCodeAt(o),c=n.default.get(l);if(\"object\"==typeof c){if(o+1$\\x80-\\uFFFF]/g;var i=new Map([[34,\""\"],[38,\"&\"],[39,\"'\"],[60,\"<\"],[62,\">\"]]);function n(e){for(var t,n=\"\",s=0;null!==(t=r.xmlReplacer.exec(e));){var a=t.index,o=e.charCodeAt(a),l=i.get(o);void 0!==l?(n+=e.substring(s,a)+l,s=a+1):(n+=\"\".concat(e.substring(s,a),\"&#x\").concat((0,r.getCodePoint)(e,a).toString(16),\";\"),s=r.xmlReplacer.lastIndex+=Number((64512&o)==55296))}return n+e.substr(s)}function s(e,t){return function(r){for(var i,n=0,s=\"\";i=e.exec(r);)n!==i.index&&(s+=r.substring(n,i.index)),s+=t.get(i[0].charCodeAt(0)),n=i.index+1;return s+r.substring(n)}}r.getCodePoint=null!=String.prototype.codePointAt?function(e,t){return e.codePointAt(t)}:function(e,t){return(64512&e.charCodeAt(t))==55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t)},r.encodeXML=n,r.escape=n,r.escapeUTF8=s(/[&<>'\"]/g,i),r.escapeAttribute=s(/[\"&\\u00A0]/g,new Map([[34,\""\"],[38,\"&\"],[160,\" \"]])),r.escapeText=s(/[&<>\\u00A0]/g,new Map([[38,\"&\"],[60,\"<\"],[62,\">\"],[160,\" \"]]))},{}],31:[function(e,t,r){Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\\0\\0\\0\\0\\0\\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀\\ud835\\udd04rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀\\ud835\\udd38plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀\\ud835\\udc9cign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀\\ud835\\udd05pf;쀀\\ud835\\udd39eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀\\ud835\\udc9epĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀\\ud835\\udd07Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\\0\\0\\0͔͂\\0Ѕf;쀀\\ud835\\udd3bƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\\0\\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\\0\\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\\0ц\\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀\\ud835\\udc9frok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀\\ud835\\udd08rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\\0\\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀\\ud835\\udd3csilon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀\\ud835\\udd09lledɓ֗\\0\\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\\0ֿ\\0\\0ׄf;쀀\\ud835\\udd3dAll;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀\\ud835\\udd0a;拙pf;쀀\\ud835\\udd3eeater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀\\ud835\\udca2;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀\\ud835\\udd40a;䎙cr;愐ilde;䄨ǫޚ\\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀\\ud835\\udd0dpf;쀀\\ud835\\udd41ǣ߇\\0ߌr;쀀\\ud835\\udca5rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀\\ud835\\udd0epf;쀀\\ud835\\udd42cr;쀀\\ud835\\udca6րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\\0ࣃbleBracket;柦nǔࣈ\\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀\\ud835\\udd0fĀ;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀\\ud835\\udd43erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀\\ud835\\udd10nusPlus;戓pf;쀀\\ud835\\udd44cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀\\ud835\\udd11ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀\\ud835\\udca9ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀\\ud835\\udd12rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀\\ud835\\udd46enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀\\ud835\\udcaaash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀\\ud835\\udd13i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀\\ud835\\udcab;䎨ȀUfos༑༖༛༟OT耻\"䀢r;쀀\\ud835\\udd14pf;愚cr;쀀\\ud835\\udcac؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\\0စbleBracket;柧nǔည\\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀\\ud835\\udd16ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀\\ud835\\udd4aɲᅭ\\0\\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀\\ud835\\udcaear;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀\\ud835\\udd17Āeiቻ኉Dzኀ\\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀\\ud835\\udd4bipleDot;惛Āctዖዛr;쀀\\ud835\\udcafrok;䅦ૡዷጎጚጦ\\0ጬጱ\\0\\0\\0\\0\\0ጸጽ፷ᎅ\\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀\\ud835\\udd18rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀\\ud835\\udd4cЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀\\ud835\\udcb0ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀\\ud835\\udd19pf;쀀\\ud835\\udd4dcr;쀀\\ud835\\udcb1dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀\\ud835\\udd1apf;쀀\\ud835\\udd4ecr;쀀\\ud835\\udcb2Ȁfiosᓋᓐᓒᓘr;쀀\\ud835\\udd1b;䎞pf;쀀\\ud835\\udd4fcr;쀀\\ud835\\udcb3ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀\\ud835\\udd1cpf;쀀\\ud835\\udd50cr;쀀\\ud835\\udcb4ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀\\ud835\\udcb5௡ᖃᖊᖐ\\0ᖰᖶᖿ\\0\\0\\0\\0ᗆᗛᗫᙟ᙭\\0ᚕ᚛ᚲᚹ\\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀\\ud835\\udd1erave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\\0\\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀\\ud835\\udd52΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀\\ud835\\udcb6;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀\\ud835\\udd1fg΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\\0\\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\\0ᠳƲᠯ\\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀\\ud835\\udd53Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀\\ud835\\udcb7mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\\0᧨ᨑᨕᨲ\\0ᨷᩐ\\0\\0᪴\\0\\0᫁\\0\\0ᬡᬮ᭍᭒\\0᯽\\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀\\ud835\\udd20ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\\0\\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\\0\\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀\\ud835\\udd54oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀\\ud835\\udcb8Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\\0\\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\\0\\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀\\ud835\\udd21arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\\0\\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀\\ud835\\udd55ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\\0\\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀\\ud835\\udcb9;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀\\ud835\\udd22ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀\\ud835\\udd56ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\\0\\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\\0ᾞ\\0ᾡᾧ\\0\\0ῆῌ\\0ΐ\\0ῦῪ \\0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\\0\\0᾽g;耀ffig;耀ffl;쀀\\ud835\\udd23lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\\0ῳf;쀀\\ud835\\udd57ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\\0⁐β•‥‧‪‬\\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\\0‶;慔;慖ʴ‾⁁\\0\\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀\\ud835\\udcbbࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀\\ud835\\udd24Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀\\ud835\\udd58Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀\\ud835\\udd25sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀\\ud835\\udd59bar;怕ƀclt≯≴≸r;쀀\\ud835\\udcbdasè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\\0⊪\\0⊸⋅⋎\\0⋕⋳\\0\\0⋸⌢⍧⍢⍿\\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀\\ud835\\udd26rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀\\ud835\\udd5aa;䎹uest耻¿䂿Āci⎊⎏r;쀀\\ud835\\udcbenʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀\\ud835\\udd27ath;䈷pf;쀀\\ud835\\udd5bǣ⏬\\0⏱r;쀀\\ud835\\udcbfrcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀\\ud835\\udd28reen;䄸cy;䑅cy;䑜pf;쀀\\ud835\\udd5ccr;쀀\\ud835\\udcc0஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\\0⒪\\0⒱\\0\\0\\0\\0\\0⒵Ⓔ\\0ⓆⓈⓍ\\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀\\ud835\\udd29Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀\\ud835\\udd5dus;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀\\ud835\\udcc1mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀\\ud835\\udd2ao;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀\\ud835\\udd5eĀct⣸⣽r;쀀\\ud835\\udcc2pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀\\ud835\\udd2bȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀\\ud835\\udd5f膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀\\ud835\\udcc3ortɭ⬅\\0\\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0ⴭ\\0ⴸⵈⵠⵥ⵲ⶄᬇ\\0\\0ⶍⶫ\\0ⷈⷎ\\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀\\ud835\\udd2cͯ⵹\\0\\0⵼\\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀\\ud835\\udd60ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\\0⹽\\0⺀⺝\\0⺢⺹\\0\\0⻋ຜ\\0⼓\\0\\0⼫⾼\\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\\0\\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀\\ud835\\udd2dƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀\\ud835\\udd61nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀\\ud835\\udcc5;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀\\ud835\\udd2epf;쀀\\ud835\\udd62rime;恗cr;쀀\\ud835\\udcc6ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀\\ud835\\udd2fĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀\\ud835\\udd63us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀\\ud835\\udcc7Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\\0㍺㎤\\0\\0㏬㏰\\0㐨㑈㑚㒭㒱㓊㓱\\0㘖\\0\\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀\\ud835\\udd30Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\\0\\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀\\ud835\\udd64aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀\\ud835\\udcc8tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\\0㙾㛂\\0\\0\\0\\0\\0㛛㜃\\0㜉㝬\\0\\0\\0㞇ɲ㙖\\0\\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀\\ud835\\udd31Ȁeiko㚆㚝㚵㚼Dz㚋\\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀\\ud835\\udd65rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀\\ud835\\udcc9;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀\\ud835\\udd32rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\\0\\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀\\ud835\\udd66̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\\0\\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀\\ud835\\udccaƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀\\ud835\\udd33tré㦮suĀbp㧯㧱»ജ»൙pf;쀀\\ud835\\udd67roð໻tré㦴Ācu㨆㨋r;쀀\\ud835\\udccbĀbp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀\\ud835\\udd34pf;쀀\\ud835\\udd68Ā;eᑹ㩦atèᑹcr;쀀\\ud835\\udcccૣណ㪇\\0㪋\\0㪐㪛\\0\\0㪝㪨㪫㪯\\0\\0㫃㫎\\0㫘ៜ៟tré៑r;쀀\\ud835\\udd35ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀\\ud835\\udd69imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀\\ud835\\udccdĀpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀\\ud835\\udd36cy;䑗pf;쀀\\ud835\\udd6acr;쀀\\ud835\\udcceĀcm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀\\ud835\\udd37cy;䐶grarr;懝pf;쀀\\ud835\\udd6bcr;쀀\\ud835\\udccfĀjn㮅㮇;怍j;怌'.split(\"\").map(function(e){return e.charCodeAt(0)}))},{}],32:[function(e,t,r){Object.defineProperty(r,\"__esModule\",{value:!0}),r.default=new Uint16Array(\"Ȁaglq\t\\x15\\x18\\x1bɭ\\x0f\\0\\0\\x12p;䀦os;䀧t;䀾t;䀼uot;䀢\".split(\"\").map(function(e){return e.charCodeAt(0)}))},{}],33:[function(e,t,r){function i(e){for(var t=1;t1?this:d(this[0],e,this.options.xmlMode)},r.prop=function(e,t){var r,i=this;if(\"string\"==typeof e&&void 0===t){var a=this[0];if(!a||!(0,n.isTag)(a))return;switch(e){case\"style\":var o=this.css(),l=Object.keys(o);return l.forEach(function(e,t){o[t]=e}),o.length=l.length,o;case\"tagName\":case\"nodeName\":return a.name.toUpperCase();case\"href\":case\"src\":var c=null===(r=a.attribs)||void 0===r?void 0:r[e];if(\"undefined\"!=typeof URL&&(\"href\"===e&&(\"a\"===a.tagName||\"link\"===a.name)||\"src\"===e&&(\"img\"===a.tagName||\"iframe\"===a.tagName||\"audio\"===a.tagName||\"video\"===a.tagName||\"source\"===a.tagName))&&void 0!==c&&this.options.baseURI)return new URL(c,this.options.baseURI).href;return c;case\"innerText\":return(0,s.innerText)(a);case\"textContent\":return(0,s.textContent)(a);case\"outerHTML\":return this.clone().wrap(\"\").parent().html();case\"innerHTML\":return this.html();default:return f(a,e,this.options.xmlMode)}}if(\"object\"==typeof e||void 0!==t){if(\"function\"==typeof t){if(\"object\"==typeof e)throw Error(\"Bad combination of arguments.\");return(0,n.domEach)(this,function(r,s){(0,n.isTag)(r)&&T(r,e,t.call(r,s,f(r,e,i.options.xmlMode)),i.options.xmlMode)})}return(0,n.domEach)(this,function(r){(0,n.isTag)(r)&&(\"object\"==typeof e?Object.keys(e).forEach(function(t){var n=e[t];T(r,t,n,i.options.xmlMode)}):T(r,e,t,i.options.xmlMode))})}},r.data=function(e,t){var r,i=this[0];if(i&&(0,n.isTag)(i))return(null!==(r=i.data)&&void 0!==r||(i.data={}),e)?\"object\"==typeof e||void 0!==t?((0,n.domEach)(this,function(r){(0,n.isTag)(r)&&(\"object\"==typeof e?E(r,e):E(r,e,t))}),this):a.call(i.data,e)?i.data[e]:m(i,e):m(i)},r.val=function(e){var t=0==arguments.length,r=this[0];if(!r||!(0,n.isTag)(r))return t?void 0:this;switch(r.name){case\"textarea\":return this.text(e);case\"select\":var s=this.find(\"option:selected\");if(!t){if(null==this.attr(\"multiple\")&&\"object\"==typeof e)return this;this.find(\"option\").removeAttr(\"selected\");for(var a=\"object\"!=typeof e?[e]:e,o=0;o-1;){var s=i+e.length;if((0===i||o.test(r[i-1]))&&(s===r.length||o.test(r[s])))return!0}return!1})},r.addClass=function e(t){if(\"function\"==typeof t)return(0,n.domEach)(this,function(r,i){if((0,n.isTag)(r)){var s=r.attribs.class||\"\";e.call([r],t.call(r,i,s))}});if(!t||\"string\"!=typeof t)return this;for(var r=t.split(o),i=this.length,s=0;s=0&&(t.splice(l,1),a=!0,o--)}a&&(e.attribs.class=t.join(\" \"))}}})},r.toggleClass=function e(t,r){if(\"function\"==typeof t)return(0,n.domEach)(this,function(i,s){(0,n.isTag)(i)&&e.call([i],t.call(i,s,i.attribs.class||\"\",r),r)});if(!t||\"string\"!=typeof t)return this;for(var i=t.split(o),s=i.length,a=\"boolean\"==typeof r?r?1:-1:0,l=this.length,c=0;c=0&&p<0?h.push(i[d]):a<=0&&p>=0&&h.splice(p,1)}u.attribs.class=h.join(\" \")}}return this}},{\"../static.js\":46,\"../utils.js\":48,domutils:55}],36:[function(e,t,r){Object.defineProperty(r,\"__esModule\",{value:!0}),r.css=void 0;var i=e(\"../utils.js\");function n(e,t){if(e&&(0,i.isTag)(e)){var r=function(e){if(!(e=(e||\"\").trim()))return{};for(var t,r={},i=0,n=e.split(\";\");i0&&void 0!==t&&(r[t]+=\";\".concat(o))}else r[t=s.slice(0,a).trim()]=s.slice(a+1).trim()}return r}(e.attribs.style);if(\"string\"==typeof t)return r[t];if(Array.isArray(t)){var n={};return t.forEach(function(e){null!=r[e]&&(n[e]=r[e])}),n}return r}}r.css=function(e,t){return(null==e||null==t)&&(\"object\"!=typeof e||Array.isArray(e))?0!==this.length?n(this[0],e):void 0:(0,i.domEach)(this,function(r,s){(0,i.isTag)(r)&&function e(t,r,i,s){if(\"string\"==typeof r){var a=n(t),o=\"function\"==typeof i?i.call(t,s,a[r]):i;\"\"===o?delete a[r]:null!=o&&(a[r]=o),t.attribs.style=Object.keys(a).reduce(function(e,t){return\"\".concat(e).concat(e?\" \":\"\").concat(t,\": \").concat(a[t],\";\")},\"\")}else\"object\"==typeof r&&Object.keys(r).forEach(function(i,n){e(t,i,r[i],n)})}(r,e,t,s)})}},{\"../utils.js\":48}],37:[function(e,t,r){Object.defineProperty(r,\"__esModule\",{value:!0}),r.serializeArray=r.serialize=void 0;var i=e(\"../utils.js\"),n=\"input,select,textarea,keygen\",s=/%20/g,a=/\\r?\\n/g;r.serialize=function(){return this.serializeArray().map(function(e){return\"\".concat(encodeURIComponent(e.name),\"=\").concat(encodeURIComponent(e.value))}).join(\"&\").replace(s,\"+\")},r.serializeArray=function(){var e=this;return this.map(function(t,r){var s=e._make(r);return(0,i.isTag)(r)&&\"form\"===r.name?s.find(n).toArray():s.filter(n).toArray()}).filter('[name!=\"\"]:enabled:not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map(function(t,r){var i,n=e._make(r),s=n.attr(\"name\"),o=null!==(i=n.val())&&void 0!==i?i:\"\";return Array.isArray(o)?o.map(function(e){return{name:s,value:e.replace(a,\"\\r\\n\")}}):{name:s,value:o.replace(a,\"\\r\\n\")}}).toArray()}},{\"../utils.js\":48}],38:[function(e,t,r){var i=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var i,n=0,s=t.length;n=e.length?null:e[t+r],h=0;h-1&&(p.children.splice(f,1),s===p&&t>f&&l[0]--)}d.parent=s,d.prev&&(d.prev.next=null!==(a=d.next)&&void 0!==a?a:null),d.next&&(d.next.prev=null!==(o=d.prev)&&void 0!==o?o:null),d.prev=0===h?c:n[h-1],d.next=h===n.length-1?u:n[h+1]}return c&&(c.next=n[0]),u&&(u.prev=n[n.length-1]),e.splice.apply(e,l)}function h(e){return function(t){for(var r=this.length-1,i=this.parents().last(),s=0;s1&&s.length>1?r.reduce(function(e,t){return t(e)},s):s)}}}r.find=function(e){if(!e)return this._make([]);var t,r=this.toArray();if(\"string\"!=typeof e){var i=(0,c.isCheerio)(e)?e.toArray():[e];return this._make(i.filter(function(e){return r.some(function(t){return(0,u.contains)(t,e)})}))}var n=d.test(e)?r:this.children().toArray(),s={context:r,root:null===(t=this._root)||void 0===t?void 0:t[0],xmlMode:this.options.xmlMode,lowerCaseTags:this.options.lowerCaseTags,lowerCaseAttributeNames:this.options.lowerCaseAttributeNames,pseudos:this.options.pseudos,quirksMode:this.options.quirksMode};return this._make(l.select(e,n,s))};var f=p(function(e,t){for(var r,i=[],n=0;n0})},r.first=function(){return this.length>1?this._make(this[0]):this},r.last=function(){return this.length>0?this._make(this[this.length-1]):this},r.eq=function(e){var t;return 0==(e=+e)&&this.length<=1?this:(e<0&&(e=this.length+e),this._make(null!==(t=this[e])&&void 0!==t?t:[]))},r.get=function(e){return null==e?this.toArray():this[e<0?this.length+e:e]},r.toArray=function(){return Array.prototype.slice.call(this)},r.index=function(e){var t,r;return null==e?(t=this.parent().children(),r=this[0]):\"string\"==typeof e?(t=this._make(e),r=this[0]):(t=this,r=(0,c.isCheerio)(e)?e[0]:e),Array.prototype.indexOf.call(t,r)},r.slice=function(e,t){return this._make(Array.prototype.slice.call(this,e,t))},r.end=function(){var e;return null!==(e=this.prevObject)&&void 0!==e?e:this._make([])},r.add=function(e,t){var r=this._make(e,t),i=(0,h.uniqueSort)(a(a([],this.get(),!0),r.get(),!0));return this._make(i)},r.addBack=function(e){return this.prevObject?this.add(e?this.prevObject.filter(e):this.prevObject):this}},{\"../static.js\":46,\"../utils.js\":48,\"cheerio-select\":13,domhandler:51,domutils:55}],40:[function(e,t,r){var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||(\"get\"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,\"default\",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)\"default\"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return n(t,e),t};Object.defineProperty(r,\"__esModule\",{value:!0}),r.Cheerio=void 0;var a=s(e(\"./api/attributes.js\")),o=s(e(\"./api/traversing.js\")),l=s(e(\"./api/manipulation.js\")),c=s(e(\"./api/css.js\")),u=s(e(\"./api/forms.js\")),h=function(e,t,r){if(this.length=0,this.options=r,this._root=t,e){for(var i=0;ie.length-3)return!1;var r=e.charCodeAt(t+1);return(r>=n.LowerA&&r<=n.LowerZ||r>=n.UpperA&&r<=n.UpperZ||r===n.Exclamation)&&e.includes(\">\",t+2)}},{domhandler:51}],49:[function(e,t,r){arguments[4][15][0].apply(r,arguments)},{dup:15}],50:[function(e,t,r){arguments[4][16][0].apply(r,arguments)},{\"./foreignNames.js\":49,domelementtype:103,dup:16,entities:68}],51:[function(e,t,r){arguments[4][17][0].apply(r,arguments)},{\"./node.js\":52,domelementtype:103,dup:17}],52:[function(e,t,r){arguments[4][18][0].apply(r,arguments)},{domelementtype:103,dup:18}],53:[function(e,t,r){arguments[4][19][0].apply(r,arguments)},{\"./legacy.js\":56,\"./stringify.js\":59,dup:19}],54:[function(e,t,r){arguments[4][20][0].apply(r,arguments)},{domhandler:51,dup:20}],55:[function(e,t,r){arguments[4][21][0].apply(r,arguments)},{\"./feeds.js\":53,\"./helpers.js\":54,\"./legacy.js\":56,\"./manipulation.js\":57,\"./querying.js\":58,\"./stringify.js\":59,\"./traversal.js\":60,domhandler:51,dup:21}],56:[function(e,t,r){arguments[4][22][0].apply(r,arguments)},{\"./querying.js\":58,domhandler:51,dup:22}],57:[function(e,t,r){arguments[4][23][0].apply(r,arguments)},{dup:23}],58:[function(e,t,r){arguments[4][24][0].apply(r,arguments)},{domhandler:51,dup:24}],59:[function(e,t,r){arguments[4][25][0].apply(r,arguments)},{\"dom-serializer\":50,domelementtype:103,domhandler:51,dup:25}],60:[function(e,t,r){arguments[4][26][0].apply(r,arguments)},{domhandler:51,dup:26}],61:[function(e,t,r){arguments[4][27][0].apply(r,arguments)},{\"./decode_codepoint.js\":62,\"./generated/decode-data-html.js\":65,\"./generated/decode-data-xml.js\":66,dup:27}],62:[function(e,t,r){arguments[4][28][0].apply(r,arguments)},{dup:28}],63:[function(e,t,r){arguments[4][29][0].apply(r,arguments)},{\"./escape.js\":64,\"./generated/encode-html.js\":67,dup:29}],64:[function(e,t,r){arguments[4][30][0].apply(r,arguments)},{dup:30}],65:[function(e,t,r){arguments[4][31][0].apply(r,arguments)},{dup:31}],66:[function(e,t,r){arguments[4][32][0].apply(r,arguments)},{dup:32}],67:[function(e,t,r){arguments[4][33][0].apply(r,arguments)},{dup:33}],68:[function(e,t,r){arguments[4][34][0].apply(r,arguments)},{\"./decode.js\":61,\"./encode.js\":63,\"./escape.js\":64,dup:34}],69:[function(e,t,r){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,\"__esModule\",{value:!0}),r.attributeRules=void 0;var n=i(e(\"boolbase\")),s=/[-[\\]{}()*+?.,\\\\^$|#\\s]/g;function a(e){return e.replace(s,\"\\\\$&\")}var o=new Set([\"accept\",\"accept-charset\",\"align\",\"alink\",\"axis\",\"bgcolor\",\"charset\",\"checked\",\"clear\",\"codetype\",\"color\",\"compact\",\"declare\",\"defer\",\"dir\",\"direction\",\"disabled\",\"enctype\",\"face\",\"frame\",\"hreflang\",\"http-equiv\",\"lang\",\"language\",\"link\",\"media\",\"method\",\"multiple\",\"nohref\",\"noresize\",\"noshade\",\"nowrap\",\"readonly\",\"rel\",\"rev\",\"rules\",\"scope\",\"scrolling\",\"selected\",\"shape\",\"target\",\"text\",\"type\",\"valign\",\"valuetype\",\"vlink\"]);function l(e,t){return\"boolean\"==typeof e.ignoreCase?e.ignoreCase:\"quirks\"===e.ignoreCase?!!t.quirksMode:!t.xmlMode&&o.has(e.name)}r.attributeRules={equals:function(e,t,r){var i=r.adapter,n=t.name,s=t.value;return l(t,r)?(s=s.toLowerCase(),function(t){var r=i.getAttributeValue(t,n);return null!=r&&r.length===s.length&&r.toLowerCase()===s&&e(t)}):function(t){return i.getAttributeValue(t,n)===s&&e(t)}},hyphen:function(e,t,r){var i=r.adapter,n=t.name,s=t.value,a=s.length;return l(t,r)?(s=s.toLowerCase(),function(t){var r=i.getAttributeValue(t,n);return null!=r&&(r.length===a||\"-\"===r.charAt(a))&&r.substr(0,a).toLowerCase()===s&&e(t)}):function(t){var r=i.getAttributeValue(t,n);return null!=r&&(r.length===a||\"-\"===r.charAt(a))&&r.substr(0,a)===s&&e(t)}},element:function(e,t,r){var i=r.adapter,s=t.name,o=t.value;if(/\\s/.test(o))return n.default.falseFunc;var c=new RegExp(\"(?:^|\\\\s)\".concat(a(o),\"(?:$|\\\\s)\"),l(t,r)?\"i\":\"\");return function(t){var r=i.getAttributeValue(t,s);return null!=r&&r.length>=o.length&&c.test(r)&&e(t)}},exists:function(e,t,r){var i=t.name,n=r.adapter;return function(t){return n.hasAttrib(t,i)&&e(t)}},start:function(e,t,r){var i=r.adapter,s=t.name,a=t.value,o=a.length;return 0===o?n.default.falseFunc:l(t,r)?(a=a.toLowerCase(),function(t){var r=i.getAttributeValue(t,s);return null!=r&&r.length>=o&&r.substr(0,o).toLowerCase()===a&&e(t)}):function(t){var r;return!!(null===(r=i.getAttributeValue(t,s))||void 0===r?void 0:r.startsWith(a))&&e(t)}},end:function(e,t,r){var i=r.adapter,s=t.name,a=t.value,o=-a.length;return 0===o?n.default.falseFunc:l(t,r)?(a=a.toLowerCase(),function(t){var r;return(null===(r=i.getAttributeValue(t,s))||void 0===r?void 0:r.substr(o).toLowerCase())===a&&e(t)}):function(t){var r;return!!(null===(r=i.getAttributeValue(t,s))||void 0===r?void 0:r.endsWith(a))&&e(t)}},any:function(e,t,r){var i=r.adapter,s=t.name,o=t.value;if(\"\"===o)return n.default.falseFunc;if(l(t,r)){var c=RegExp(a(o),\"i\");return function(t){var r=i.getAttributeValue(t,s);return null!=r&&r.length>=o.length&&c.test(r)&&e(t)}}return function(t){var r;return!!(null===(r=i.getAttributeValue(t,s))||void 0===r?void 0:r.includes(o))&&e(t)}},not:function(e,t,r){var i=r.adapter,n=t.name,s=t.value;return\"\"===s?function(t){return!!i.getAttributeValue(t,n)&&e(t)}:l(t,r)?(s=s.toLowerCase(),function(t){var r=i.getAttributeValue(t,n);return(null==r||r.length!==s.length||r.toLowerCase()!==s)&&e(t)}):function(t){return i.getAttributeValue(t,n)!==s&&e(t)}}}},{boolbase:10}],70:[function(e,t,r){var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||(\"get\"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,\"default\",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)\"default\"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,\"__esModule\",{value:!0}),r.compileToken=r.compileUnsafe=r.compile=void 0;var o=e(\"css-what\"),l=a(e(\"boolbase\")),c=s(e(\"./sort.js\")),u=e(\"./general.js\"),h=e(\"./pseudo-selectors/subselects.js\");function d(e,t,r){return m(\"string\"==typeof e?(0,o.parse)(e):e,t,r)}function p(e){return e.type===o.SelectorType.Pseudo&&(\"scope\"===e.name||Array.isArray(e.data)&&e.data.some(function(e){return e.some(p)}))}r.compile=function(e,t,r){var i=d(e,t,r);return(0,h.ensureIsTag)(i,t.adapter)},r.compileUnsafe=d;var f={type:o.SelectorType.Descendant},T={type:\"_flexibleDescendant\"},E={type:o.SelectorType.Pseudo,name:\"scope\",data:null};function m(e,t,r){e.forEach(c.default);var i,n=Array.isArray(r=null!==(i=t.context)&&void 0!==i?i:r),s=r&&(Array.isArray(r)?r:[r]);if(!1!==t.relativeSelector)!function(e,t,r){for(var i=t.adapter,n=!!(null==r?void 0:r.every(function(e){var t=i.isTag(e)&&i.getParent(e);return e===h.PLACEHOLDER_ELEMENT||t&&i.isTag(t)})),s=0;s0&&(0,c.isTraversal)(a[0])&&a[0].type!==o.SelectorType.Descendant);else{if(!n||a.some(p))continue;a.unshift(f)}a.unshift(E)}}(e,t,s);else if(e.some(function(e){return e.length>0&&(0,c.isTraversal)(e[0])}))throw Error(\"Relative selectors are not allowed when the `relativeSelector` option is disabled\");var a=!1,d=e.map(function(e){if(e.length>=2){var r,i=e[0],c=e[1];i.type!==o.SelectorType.Pseudo||\"scope\"!==i.name||(n&&c.type===o.SelectorType.Descendant?e[1]=T:(c.type===o.SelectorType.Adjacent||c.type===o.SelectorType.Sibling)&&(a=!0))}return e.reduce(function(e,r){return e===l.default.falseFunc?l.default.falseFunc:(0,u.compileGeneralSelector)(e,r,t,s,m)},null!==(r=t.rootFunc)&&void 0!==r?r:l.default.trueFunc)}).reduce(g,l.default.falseFunc);return d.shouldTestNextSiblings=a,d}function g(e,t){return t===l.default.falseFunc||e===l.default.trueFunc?e:e===l.default.falseFunc||t===l.default.trueFunc?t:function(r){return e(r)||t(r)}}r.compileToken=m},{\"./general.js\":71,\"./pseudo-selectors/subselects.js\":77,\"./sort.js\":78,boolbase:10,\"css-what\":99}],71:[function(e,t,r){Object.defineProperty(r,\"__esModule\",{value:!0}),r.compileGeneralSelector=void 0;var i=e(\"./attributes.js\"),n=e(\"./pseudo-selectors/index.js\"),s=e(\"css-what\");function a(e,t){var r=t.getParent(e);return r&&t.isTag(r)?r:null}r.compileGeneralSelector=function(e,t,r,o,l){var c=r.adapter,u=r.equals;switch(t.type){case s.SelectorType.PseudoElement:throw Error(\"Pseudo-elements are not supported by css-select\");case s.SelectorType.ColumnCombinator:throw Error(\"Column combinators are not yet supported by css-select\");case s.SelectorType.Attribute:if(null!=t.namespace)throw Error(\"Namespaced attributes are not yet supported by css-select\");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(t.name=t.name.toLowerCase()),i.attributeRules[t.action](e,t,r);case s.SelectorType.Pseudo:return(0,n.compilePseudoSelector)(e,t,r,o,l);case s.SelectorType.Tag:if(null!=t.namespace)throw Error(\"Namespaced tag names are not yet supported by css-select\");var h=t.name;return(!r.xmlMode||r.lowerCaseTags)&&(h=h.toLowerCase()),function(t){return c.getName(t)===h&&e(t)};case s.SelectorType.Descendant:if(!1===r.cacheResults||\"undefined\"==typeof WeakSet)return function(t){for(var r=t;r=a(r,c);)if(e(r))return!0;return!1};var d=new WeakSet;return function(t){for(var r=t;r=a(r,c);)if(!d.has(r)){if(c.isTag(r)&&e(r))return!0;d.add(r)}return!1};case\"_flexibleDescendant\":return function(t){var r=t;do if(e(r))return!0;while(r=a(r,c))return!1};case s.SelectorType.Parent:return function(t){return c.getChildren(t).some(function(t){return c.isTag(t)&&e(t)})};case s.SelectorType.Child:return function(t){var r=c.getParent(t);return null!=r&&c.isTag(r)&&e(r)};case s.SelectorType.Sibling:return function(t){for(var r=c.getSiblings(t),i=0;i option,\\n fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)\\n )\",enabled:\":not(:disabled)\",checked:\":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)\",required:\":is(input, select, textarea)[required]\",optional:\":is(input, select, textarea):not([required])\",selected:\"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)\",checkbox:\"[type=checkbox]\",file:\"[type=file]\",password:\"[type=password]\",radio:\"[type=radio]\",reset:\"[type=reset]\",image:\"[type=image]\",submit:\"[type=submit]\",parent:\":not(:empty)\",header:\":is(h1, h2, h3, h4, h5, h6)\",button:\":is(button, input[type=button])\",input:\":is(input, textarea, select, button)\",text:\"input:is(:not([type!='']), [type=text])\"}},{}],74:[function(e,t,r){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,\"__esModule\",{value:!0}),r.filters=void 0;var n=i(e(\"nth-check\")),s=i(e(\"boolbase\"));function a(e,t){return function(r){var i=t.getParent(r);return null!=i&&t.isTag(i)&&e(r)}}function o(e){return function(t,r,i){var n=i.adapter[e];return\"function\"!=typeof n?s.default.falseFunc:function(e){return n(e)&&t(e)}}}r.filters={contains:function(e,t,r){var i=r.adapter;return function(r){return e(r)&&i.getText(r).includes(t)}},icontains:function(e,t,r){var i=r.adapter,n=t.toLowerCase();return function(t){return e(t)&&i.getText(t).toLowerCase().includes(n)}},\"nth-child\":function(e,t,r){var i=r.adapter,o=r.equals,l=(0,n.default)(t);return l===s.default.falseFunc?s.default.falseFunc:l===s.default.trueFunc?a(e,i):function(t){for(var r=i.getSiblings(t),n=0,s=0;s=0&&!o(t,r[s]);s--)i.isTag(r[s])&&n++;return l(n)&&e(t)}},\"nth-of-type\":function(e,t,r){var i=r.adapter,o=r.equals,l=(0,n.default)(t);return l===s.default.falseFunc?s.default.falseFunc:l===s.default.trueFunc?a(e,i):function(t){for(var r=i.getSiblings(t),n=0,s=0;s=0;s--){var a=r[s];if(o(t,a))break;i.isTag(a)&&i.getName(a)===i.getName(t)&&n++}return l(n)&&e(t)}},root:function(e,t,r){var i=r.adapter;return function(t){var r=i.getParent(t);return(null==r||!i.isTag(r))&&e(t)}},scope:function(e,t,i,n){var s=i.equals;return n&&0!==n.length?1===n.length?function(t){return s(n[0],t)&&e(t)}:function(t){return n.includes(t)&&e(t)}:r.filters.root(e,t,i)},hover:o(\"isHovered\"),visited:o(\"isVisited\"),active:o(\"isActive\")}},{boolbase:10,\"nth-check\":134}],75:[function(e,t,r){Object.defineProperty(r,\"__esModule\",{value:!0}),r.compilePseudoSelector=r.aliases=r.pseudos=r.filters=void 0;var i=e(\"css-what\"),n=e(\"./filters.js\");Object.defineProperty(r,\"filters\",{enumerable:!0,get:function(){return n.filters}});var s=e(\"./pseudos.js\");Object.defineProperty(r,\"pseudos\",{enumerable:!0,get:function(){return s.pseudos}});var a=e(\"./aliases.js\");Object.defineProperty(r,\"aliases\",{enumerable:!0,get:function(){return a.aliases}});var o=e(\"./subselects.js\");r.compilePseudoSelector=function(e,t,r,l,c){var u,h=t.name,d=t.data;if(Array.isArray(d)){if(!(h in o.subselects))throw Error(\"Unknown pseudo-class :\".concat(h,\"(\").concat(d,\")\"));return o.subselects[h](e,d,r,l,c)}var p=null===(u=r.pseudos)||void 0===u?void 0:u[h],f=\"string\"==typeof p?p:a.aliases[h];if(\"string\"==typeof f){if(null!=d)throw Error(\"Pseudo \".concat(h,\" doesn't have any arguments\"));var T=(0,i.parse)(f);return o.subselects.is(e,T,r,l,c)}if(\"function\"==typeof p)return(0,s.verifyPseudoArgs)(p,h,d,1),function(t){return p(t,d)&&e(t)};if(h in n.filters)return n.filters[h](e,d,r,l);if(h in s.pseudos){var E=s.pseudos[h];return(0,s.verifyPseudoArgs)(E,h,d,2),function(t){return E(t,r,d)&&e(t)}}throw Error(\"Unknown pseudo-class :\".concat(h))}},{\"./aliases.js\":73,\"./filters.js\":74,\"./pseudos.js\":76,\"./subselects.js\":77,\"css-what\":99}],76:[function(e,t,r){Object.defineProperty(r,\"__esModule\",{value:!0}),r.verifyPseudoArgs=r.pseudos=void 0,r.pseudos={empty:function(e,t){var r=t.adapter;return!r.getChildren(e).some(function(e){return r.isTag(e)||\"\"!==r.getText(e)})},\"first-child\":function(e,t){var r=t.adapter,i=t.equals;if(r.prevElementSibling)return null==r.prevElementSibling(e);var n=r.getSiblings(e).find(function(e){return r.isTag(e)});return null!=n&&i(e,n)},\"last-child\":function(e,t){for(var r=t.adapter,i=t.equals,n=r.getSiblings(e),s=n.length-1;s>=0;s--){if(i(e,n[s]))return!0;if(r.isTag(n[s]))break}return!1},\"first-of-type\":function(e,t){for(var r=t.adapter,i=t.equals,n=r.getSiblings(e),s=r.getName(e),a=0;a=0;a--){var o=n[a];if(i(e,o))return!0;if(r.isTag(o)&&r.getName(o)===s)break}return!1},\"only-of-type\":function(e,t){var r=t.adapter,i=t.equals,n=r.getName(e);return r.getSiblings(e).every(function(t){return i(e,t)||!r.isTag(t)||r.getName(t)!==n})},\"only-child\":function(e,t){var r=t.adapter,i=t.equals;return r.getSiblings(e).every(function(t){return i(e,t)||!r.isTag(t)})}},r.verifyPseudoArgs=function(e,t,r,i){if(null===r){if(e.length>i)throw Error(\"Pseudo-class :\".concat(t,\" requires an argument\"))}else if(e.length===i)throw Error(\"Pseudo-class :\".concat(t,\" doesn't have any arguments\"))}},{}],77:[function(e,t,r){var i=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var i,n=0,s=t.length;n>=1)):e.type===i.SelectorType.Pseudo&&(e.data?\"has\"===e.name||\"contains\"===e.name?o=0:Array.isArray(e.data)?(o=Math.min.apply(Math,e.data.map(function(e){return Math.min.apply(Math,e.map(a))})))<0&&(o=0):o=2:o=3),o}r.default=function(e){for(var t=e.map(a),r=1;r=0&&i>10|55296,1023&i|56320)}function h(e){return e.replace(s,u)}function d(e){return 39===e||34===e}function p(e){return 32===e||9===e||10===e||12===e||13===e}r.parse=function(e){var t=[],r=function e(t,r,s){var u=[];function f(e){var t=r.slice(s+e).match(n);if(!t)throw Error(\"Expected name, found \".concat(r.slice(s)));var i=t[0];return s+=e+i.length,h(i)}function T(e){for(s+=e;s0&&s0&&l(u[u.length-1]))throw Error(\"Did not expect successive traversals.\")}function A(e){if(u.length>0&&u[u.length-1].type===i.SelectorType.Descendant){u[u.length-1].type=e;return}g(),u.push({type:e})}function _(e,t){u.push({type:i.SelectorType.Attribute,name:e,action:t,value:f(1),namespace:null,ignoreCase:\"quirks\"})}function I(){if(u.length&&u[u.length-1].type===i.SelectorType.Descendant&&u.pop(),0===u.length)throw Error(\"Empty sub-selector\");t.push(u)}if(T(0),r.length===s)return s;e:for(;s \":\" > \";case n.SelectorType.Parent:return 0===t?\"< \":\" < \";case n.SelectorType.Sibling:return 0===t?\"~ \":\" ~ \";case n.SelectorType.Adjacent:return 0===t?\"+ \":\" + \";case n.SelectorType.Descendant:return\" \";case n.SelectorType.ColumnCombinator:return 0===t?\"|| \":\" || \";case n.SelectorType.Universal:return\"*\"===e.namespace&&t+10?i+e.slice(r):e}r.stringify=u},{\"./types\":102}],102:[function(e,t,r){var i,n;Object.defineProperty(r,\"__esModule\",{value:!0}),r.AttributeAction=r.IgnoreCaseMode=r.SelectorType=void 0,(i=r.SelectorType||(r.SelectorType={})).Attribute=\"attribute\",i.Pseudo=\"pseudo\",i.PseudoElement=\"pseudo-element\",i.Tag=\"tag\",i.Universal=\"universal\",i.Adjacent=\"adjacent\",i.Child=\"child\",i.Descendant=\"descendant\",i.Parent=\"parent\",i.Sibling=\"sibling\",i.ColumnCombinator=\"column-combinator\",r.IgnoreCaseMode={Unknown:null,QuirksMode:\"quirks\",IgnoreCase:!0,CaseSensitive:!1},(n=r.AttributeAction||(r.AttributeAction={})).Any=\"any\",n.Element=\"element\",n.End=\"end\",n.Equals=\"equals\",n.Exists=\"exists\",n.Hyphen=\"hyphen\",n.Not=\"not\",n.Start=\"start\"},{}],103:[function(e,t,r){var i,n;Object.defineProperty(r,\"__esModule\",{value:!0}),r.Doctype=r.CDATA=r.Tag=r.Style=r.Script=r.Comment=r.Directive=r.Text=r.Root=r.isTag=r.ElementType=void 0,(n=i=r.ElementType||(r.ElementType={})).Root=\"root\",n.Text=\"text\",n.Directive=\"directive\",n.Comment=\"comment\",n.Script=\"script\",n.Style=\"style\",n.Tag=\"tag\",n.CDATA=\"cdata\",n.Doctype=\"doctype\",r.isTag=function(e){return e.type===i.Tag||e.type===i.Script||e.type===i.Style},r.Root=i.Root,r.Text=i.Text,r.Directive=i.Directive,r.Comment=i.Comment,r.Script=i.Script,r.Style=i.Style,r.Tag=i.Tag,r.CDATA=i.CDATA,r.Doctype=i.Doctype},{}],104:[function(e,t,r){var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||(\"get\"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,\"default\",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)\"default\"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return n(t,e),t};Object.defineProperty(r,\"__esModule\",{value:!0}),r.Parser=void 0;var a=s(e(\"./Tokenizer.js\")),o=e(\"entities/lib/decode.js\"),l=new Set([\"input\",\"option\",\"optgroup\",\"select\",\"button\",\"datalist\",\"textarea\"]),c=new Set([\"p\"]),u=new Set([\"thead\",\"tbody\"]),h=new Set([\"dd\",\"dt\"]),d=new Set([\"rt\",\"rp\"]),p=new Map([[\"tr\",new Set([\"tr\",\"th\",\"td\"])],[\"th\",new Set([\"th\"])],[\"td\",new Set([\"thead\",\"th\",\"td\"])],[\"body\",new Set([\"head\",\"link\",\"script\"])],[\"li\",new Set([\"li\"])],[\"p\",c],[\"h1\",c],[\"h2\",c],[\"h3\",c],[\"h4\",c],[\"h5\",c],[\"h6\",c],[\"select\",l],[\"input\",l],[\"output\",l],[\"button\",l],[\"datalist\",l],[\"textarea\",l],[\"option\",new Set([\"option\"])],[\"optgroup\",new Set([\"optgroup\",\"option\"])],[\"dd\",h],[\"dt\",h],[\"address\",c],[\"article\",c],[\"aside\",c],[\"blockquote\",c],[\"details\",c],[\"div\",c],[\"dl\",c],[\"fieldset\",c],[\"figcaption\",c],[\"figure\",c],[\"footer\",c],[\"form\",c],[\"header\",c],[\"hr\",c],[\"main\",c],[\"nav\",c],[\"ol\",c],[\"pre\",c],[\"section\",c],[\"table\",c],[\"ul\",c],[\"rt\",d],[\"rp\",d],[\"tbody\",u],[\"tfoot\",u]]),f=new Set([\"area\",\"base\",\"basefont\",\"br\",\"col\",\"command\",\"embed\",\"frame\",\"hr\",\"img\",\"input\",\"isindex\",\"keygen\",\"link\",\"meta\",\"param\",\"source\",\"track\",\"wbr\"]),T=new Set([\"math\",\"svg\"]),E=new Set([\"mi\",\"mo\",\"mn\",\"ms\",\"mtext\",\"annotation-xml\",\"foreignobject\",\"desc\",\"title\"]),m=/\\s|\\//,g=function(){function e(e,t){var r,i,n,s,o;void 0===t&&(t={}),this.options=t,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname=\"\",this.attribname=\"\",this.attribvalue=\"\",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=null!=e?e:{},this.lowerCaseTagNames=null!==(r=t.lowerCaseTags)&&void 0!==r?r:!t.xmlMode,this.lowerCaseAttributeNames=null!==(i=t.lowerCaseAttributeNames)&&void 0!==i?i:!t.xmlMode,this.tokenizer=new(null!==(n=t.Tokenizer)&&void 0!==n?n:a.default)(this.options,this),null===(o=(s=this.cbs).onparserinit)||void 0===o||o.call(s,this)}return e.prototype.ontext=function(e,t){var r,i,n=this.getSlice(e,t);this.endIndex=t-1,null===(i=(r=this.cbs).ontext)||void 0===i||i.call(r,n),this.startIndex=t},e.prototype.ontextentity=function(e){var t,r,i=this.tokenizer.getSectionStart();this.endIndex=i-1,null===(r=(t=this.cbs).ontext)||void 0===r||r.call(t,(0,o.fromCodePoint)(e)),this.startIndex=i},e.prototype.isVoidElement=function(e){return!this.options.xmlMode&&f.has(e)},e.prototype.onopentagname=function(e,t){this.endIndex=t;var r=this.getSlice(e,t);this.lowerCaseTagNames&&(r=r.toLowerCase()),this.emitOpenTag(r)},e.prototype.emitOpenTag=function(e){this.openTagStart=this.startIndex,this.tagname=e;var t,r,i,n,s=!this.options.xmlMode&&p.get(e);if(s)for(;this.stack.length>0&&s.has(this.stack[this.stack.length-1]);){var a=this.stack.pop();null===(r=(t=this.cbs).onclosetag)||void 0===r||r.call(t,a,!0)}!this.isVoidElement(e)&&(this.stack.push(e),T.has(e)?this.foreignContext.push(!0):E.has(e)&&this.foreignContext.push(!1)),null===(n=(i=this.cbs).onopentagname)||void 0===n||n.call(i,e),this.cbs.onopentag&&(this.attribs={})},e.prototype.endOpenTag=function(e){var t,r;this.startIndex=this.openTagStart,this.attribs&&(null===(r=(t=this.cbs).onopentag)||void 0===r||r.call(t,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=\"\"},e.prototype.onopentagend=function(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1},e.prototype.onclosetag=function(e,t){this.endIndex=t;var r,i,n,s,a,o,l=this.getSlice(e,t);if(this.lowerCaseTagNames&&(l=l.toLowerCase()),(T.has(l)||E.has(l))&&this.foreignContext.pop(),this.isVoidElement(l))this.options.xmlMode||\"br\"!==l||(null===(i=(r=this.cbs).onopentagname)||void 0===i||i.call(r,\"br\"),null===(s=(n=this.cbs).onopentag)||void 0===s||s.call(n,\"br\",{},!0),null===(o=(a=this.cbs).onclosetag)||void 0===o||o.call(a,\"br\",!1));else{var c=this.stack.lastIndexOf(l);if(-1!==c){if(this.cbs.onclosetag)for(var u=this.stack.length-c;u--;)this.cbs.onclosetag(this.stack.pop(),0!==u);else this.stack.length=c}else this.options.xmlMode||\"p\"!==l||(this.emitOpenTag(\"p\"),this.closeCurrentTag(!0))}this.startIndex=t+1},e.prototype.onselfclosingtag=function(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)},e.prototype.closeCurrentTag=function(e){var t,r,i=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===i&&(null===(r=(t=this.cbs).onclosetag)||void 0===r||r.call(t,i,!e),this.stack.pop())},e.prototype.onattribname=function(e,t){this.startIndex=e;var r=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?r.toLowerCase():r},e.prototype.onattribdata=function(e,t){this.attribvalue+=this.getSlice(e,t)},e.prototype.onattribentity=function(e){this.attribvalue+=(0,o.fromCodePoint)(e)},e.prototype.onattribend=function(e,t){var r,i;this.endIndex=t,null===(i=(r=this.cbs).onattribute)||void 0===i||i.call(r,this.attribname,this.attribvalue,e===a.QuoteType.Double?'\"':e===a.QuoteType.Single?\"'\":e===a.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=\"\"},e.prototype.getInstructionName=function(e){var t=e.search(m),r=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(r=r.toLowerCase()),r},e.prototype.ondeclaration=function(e,t){this.endIndex=t;var r=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var i=this.getInstructionName(r);this.cbs.onprocessinginstruction(\"!\".concat(i),\"!\".concat(r))}this.startIndex=t+1},e.prototype.onprocessinginstruction=function(e,t){this.endIndex=t;var r=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var i=this.getInstructionName(r);this.cbs.onprocessinginstruction(\"?\".concat(i),\"?\".concat(r))}this.startIndex=t+1},e.prototype.oncomment=function(e,t,r){var i,n,s,a;this.endIndex=t,null===(n=(i=this.cbs).oncomment)||void 0===n||n.call(i,this.getSlice(e,t-r)),null===(a=(s=this.cbs).oncommentend)||void 0===a||a.call(s),this.startIndex=t+1},e.prototype.oncdata=function(e,t,r){this.endIndex=t;var i,n,s,a,o,l,c,u,h,d,p=this.getSlice(e,t-r);this.options.xmlMode||this.options.recognizeCDATA?(null===(n=(i=this.cbs).oncdatastart)||void 0===n||n.call(i),null===(a=(s=this.cbs).ontext)||void 0===a||a.call(s,p),null===(l=(o=this.cbs).oncdataend)||void 0===l||l.call(o)):(null===(u=(c=this.cbs).oncomment)||void 0===u||u.call(c,\"[CDATA[\".concat(p,\"]]\")),null===(d=(h=this.cbs).oncommentend)||void 0===d||d.call(h)),this.startIndex=t+1},e.prototype.onend=function(){var e,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var r=this.stack.length;r>0;this.cbs.onclosetag(this.stack[--r],!0));}null===(t=(e=this.cbs).onend)||void 0===t||t.call(e)},e.prototype.reset=function(){var e,t,r,i;null===(t=(e=this.cbs).onreset)||void 0===t||t.call(e),this.tokenizer.reset(),this.tagname=\"\",this.attribname=\"\",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,null===(i=(r=this.cbs).onparserinit)||void 0===i||i.call(r,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},e.prototype.parseComplete=function(e){this.reset(),this.end(e)},e.prototype.getSlice=function(e,t){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var r=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),r+=this.buffers[0].slice(0,t-this.bufferOffset);return r},e.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},e.prototype.write=function(e){var t,r;if(this.ended){null===(r=(t=this.cbs).onerror)||void 0===r||r.call(t,Error(\".write() after done!\"));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)},e.prototype.end=function(e){var t,r;if(this.ended){null===(r=(t=this.cbs).onerror)||void 0===r||r.call(t,Error(\".end() after done!\"));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex=a.Zero&&e<=a.Nine}(i=a||(a={}))[i.Tab=9]=\"Tab\",i[i.NewLine=10]=\"NewLine\",i[i.FormFeed=12]=\"FormFeed\",i[i.CarriageReturn=13]=\"CarriageReturn\",i[i.Space=32]=\"Space\",i[i.ExclamationMark=33]=\"ExclamationMark\",i[i.Num=35]=\"Num\",i[i.Amp=38]=\"Amp\",i[i.SingleQuote=39]=\"SingleQuote\",i[i.DoubleQuote=34]=\"DoubleQuote\",i[i.Dash=45]=\"Dash\",i[i.Slash=47]=\"Slash\",i[i.Zero=48]=\"Zero\",i[i.Nine=57]=\"Nine\",i[i.Semi=59]=\"Semi\",i[i.Lt=60]=\"Lt\",i[i.Eq=61]=\"Eq\",i[i.Gt=62]=\"Gt\",i[i.Questionmark=63]=\"Questionmark\",i[i.UpperA=65]=\"UpperA\",i[i.LowerA=97]=\"LowerA\",i[i.UpperF=70]=\"UpperF\",i[i.LowerF=102]=\"LowerF\",i[i.UpperZ=90]=\"UpperZ\",i[i.LowerZ=122]=\"LowerZ\",i[i.LowerX=120]=\"LowerX\",i[i.OpeningSquareBracket=91]=\"OpeningSquareBracket\",(n=o||(o={}))[n.Text=1]=\"Text\",n[n.BeforeTagName=2]=\"BeforeTagName\",n[n.InTagName=3]=\"InTagName\",n[n.InSelfClosingTag=4]=\"InSelfClosingTag\",n[n.BeforeClosingTagName=5]=\"BeforeClosingTagName\",n[n.InClosingTagName=6]=\"InClosingTagName\",n[n.AfterClosingTagName=7]=\"AfterClosingTagName\",n[n.BeforeAttributeName=8]=\"BeforeAttributeName\",n[n.InAttributeName=9]=\"InAttributeName\",n[n.AfterAttributeName=10]=\"AfterAttributeName\",n[n.BeforeAttributeValue=11]=\"BeforeAttributeValue\",n[n.InAttributeValueDq=12]=\"InAttributeValueDq\",n[n.InAttributeValueSq=13]=\"InAttributeValueSq\",n[n.InAttributeValueNq=14]=\"InAttributeValueNq\",n[n.BeforeDeclaration=15]=\"BeforeDeclaration\",n[n.InDeclaration=16]=\"InDeclaration\",n[n.InProcessingInstruction=17]=\"InProcessingInstruction\",n[n.BeforeComment=18]=\"BeforeComment\",n[n.CDATASequence=19]=\"CDATASequence\",n[n.InSpecialComment=20]=\"InSpecialComment\",n[n.InCommentLike=21]=\"InCommentLike\",n[n.BeforeSpecialS=22]=\"BeforeSpecialS\",n[n.SpecialStartSequence=23]=\"SpecialStartSequence\",n[n.InSpecialTag=24]=\"InSpecialTag\",n[n.BeforeEntity=25]=\"BeforeEntity\",n[n.BeforeNumericEntity=26]=\"BeforeNumericEntity\",n[n.InNamedEntity=27]=\"InNamedEntity\",n[n.InNumericEntity=28]=\"InNumericEntity\",n[n.InHexEntity=29]=\"InHexEntity\",(s=l=r.QuoteType||(r.QuoteType={}))[s.NoValue=0]=\"NoValue\",s[s.Unquoted=1]=\"Unquoted\",s[s.Single=2]=\"Single\",s[s.Double=3]=\"Double\";var p={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},f=function(){function e(e,t){var r=e.xmlMode,i=void 0!==r&&r,n=e.decodeEntities;this.cbs=t,this.state=o.Text,this.buffer=\"\",this.sectionStart=0,this.index=0,this.baseState=o.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=i,this.decodeEntities=void 0===n||n,this.entityTrie=i?c.xmlDecodeTree:c.htmlDecodeTree}return e.prototype.reset=function(){this.state=o.Text,this.buffer=\"\",this.sectionStart=0,this.index=0,this.baseState=o.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},e.prototype.write=function(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()},e.prototype.end=function(){this.running&&this.finish()},e.prototype.pause=function(){this.running=!1},e.prototype.resume=function(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=o.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===a.Amp&&(this.state=o.BeforeEntity)},e.prototype.stateSpecialStartSequence=function(e){var t=this.sequenceIndex===this.currentSequence.length;if(t?h(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t){this.sequenceIndex++;return}}else this.isSpecial=!1;this.sequenceIndex=0,this.state=o.InTagName,this.stateInTagName(e)},e.prototype.stateInSpecialTag=function(e){if(this.sequenceIndex===this.currentSequence.length){if(e===a.Gt||u(e)){var t=this.index-this.currentSequence.length;if(this.sectionStart=a.LowerA&&e<=a.LowerZ||e>=a.UpperA&&e<=a.UpperZ},e.prototype.startSpecial=function(e,t){this.isSpecial=!0,this.currentSequence=e,this.sequenceIndex=t,this.state=o.SpecialStartSequence},e.prototype.stateBeforeTagName=function(e){if(e===a.ExclamationMark)this.state=o.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===a.Questionmark)this.state=o.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(e)){var t=32|e;this.sectionStart=this.index,this.xmlMode||t!==p.TitleEnd[2]?this.state=this.xmlMode||t!==p.ScriptEnd[2]?o.InTagName:o.BeforeSpecialS:this.startSpecial(p.TitleEnd,3)}else e===a.Slash?this.state=o.BeforeClosingTagName:(this.state=o.Text,this.stateText(e))},e.prototype.stateInTagName=function(e){h(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=o.BeforeAttributeName,this.stateBeforeAttributeName(e))},e.prototype.stateBeforeClosingTagName=function(e){u(e)||(e===a.Gt?this.state=o.Text:(this.state=this.isTagStartChar(e)?o.InClosingTagName:o.InSpecialComment,this.sectionStart=this.index))},e.prototype.stateInClosingTagName=function(e){(e===a.Gt||u(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=o.AfterClosingTagName,this.stateAfterClosingTagName(e))},e.prototype.stateAfterClosingTagName=function(e){(e===a.Gt||this.fastForwardTo(a.Gt))&&(this.state=o.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeAttributeName=function(e){e===a.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=o.InSpecialTag,this.sequenceIndex=0):this.state=o.Text,this.baseState=this.state,this.sectionStart=this.index+1):e===a.Slash?this.state=o.InSelfClosingTag:u(e)||(this.state=o.InAttributeName,this.sectionStart=this.index)},e.prototype.stateInSelfClosingTag=function(e){e===a.Gt?(this.cbs.onselfclosingtag(this.index),this.state=o.Text,this.baseState=o.Text,this.sectionStart=this.index+1,this.isSpecial=!1):u(e)||(this.state=o.BeforeAttributeName,this.stateBeforeAttributeName(e))},e.prototype.stateInAttributeName=function(e){(e===a.Eq||h(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=o.AfterAttributeName,this.stateAfterAttributeName(e))},e.prototype.stateAfterAttributeName=function(e){e===a.Eq?this.state=o.BeforeAttributeValue:e===a.Slash||e===a.Gt?(this.cbs.onattribend(l.NoValue,this.index),this.state=o.BeforeAttributeName,this.stateBeforeAttributeName(e)):u(e)||(this.cbs.onattribend(l.NoValue,this.index),this.state=o.InAttributeName,this.sectionStart=this.index)},e.prototype.stateBeforeAttributeValue=function(e){e===a.DoubleQuote?(this.state=o.InAttributeValueDq,this.sectionStart=this.index+1):e===a.SingleQuote?(this.state=o.InAttributeValueSq,this.sectionStart=this.index+1):u(e)||(this.sectionStart=this.index,this.state=o.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))},e.prototype.handleInAttributeValue=function(e,t){e===t||!this.decodeEntities&&this.fastForwardTo(t)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(t===a.DoubleQuote?l.Double:l.Single,this.index),this.state=o.BeforeAttributeName):this.decodeEntities&&e===a.Amp&&(this.baseState=this.state,this.state=o.BeforeEntity)},e.prototype.stateInAttributeValueDoubleQuotes=function(e){this.handleInAttributeValue(e,a.DoubleQuote)},e.prototype.stateInAttributeValueSingleQuotes=function(e){this.handleInAttributeValue(e,a.SingleQuote)},e.prototype.stateInAttributeValueNoQuotes=function(e){u(e)||e===a.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(l.Unquoted,this.index),this.state=o.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===a.Amp&&(this.baseState=this.state,this.state=o.BeforeEntity)},e.prototype.stateBeforeDeclaration=function(e){e===a.OpeningSquareBracket?(this.state=o.CDATASequence,this.sequenceIndex=0):this.state=e===a.Dash?o.BeforeComment:o.InDeclaration},e.prototype.stateInDeclaration=function(e){(e===a.Gt||this.fastForwardTo(a.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=o.Text,this.sectionStart=this.index+1)},e.prototype.stateInProcessingInstruction=function(e){(e===a.Gt||this.fastForwardTo(a.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=o.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeComment=function(e){e===a.Dash?(this.state=o.InCommentLike,this.currentSequence=p.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=o.InDeclaration},e.prototype.stateInSpecialComment=function(e){(e===a.Gt||this.fastForwardTo(a.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=o.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeSpecialS=function(e){var t=32|e;t===p.ScriptEnd[3]?this.startSpecial(p.ScriptEnd,4):t===p.StyleEnd[3]?this.startSpecial(p.StyleEnd,4):(this.state=o.InTagName,this.stateInTagName(e))},e.prototype.stateBeforeEntity=function(e){this.entityExcess=1,this.entityResult=0,e===a.Num?this.state=o.BeforeNumericEntity:e===a.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=o.InNamedEntity,this.stateInNamedEntity(e))},e.prototype.stateInNamedEntity=function(e){if(this.entityExcess+=1,this.trieIndex=(0,c.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,e),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];var t=this.trieCurrent&c.BinTrieFlags.VALUE_LENGTH;if(t){var r=(t>>14)-1;if(this.allowLegacyEntity()||e===a.Semi){var i=this.index-this.entityExcess+1;i>this.sectionStart&&this.emitPartial(this.sectionStart,i),this.entityResult=this.trieIndex,this.trieIndex+=r,this.entityExcess=0,this.sectionStart=this.index+1,0===r&&this.emitNamedEntity()}else this.trieIndex+=r}},e.prototype.emitNamedEntity=function(){if(this.state=this.baseState,0!==this.entityResult)switch((this.entityTrie[this.entityResult]&c.BinTrieFlags.VALUE_LENGTH)>>14){case 1:this.emitCodePoint(this.entityTrie[this.entityResult]&~c.BinTrieFlags.VALUE_LENGTH);break;case 2:this.emitCodePoint(this.entityTrie[this.entityResult+1]);break;case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}},e.prototype.stateBeforeNumericEntity=function(e){(32|e)===a.LowerX?(this.entityExcess++,this.state=o.InHexEntity):(this.state=o.InNumericEntity,this.stateInNumericEntity(e))},e.prototype.emitNumericEntity=function(e){var t=this.index-this.entityExcess-1;t+2+Number(this.state===o.InHexEntity)!==this.index&&(t>this.sectionStart&&this.emitPartial(this.sectionStart,t),this.sectionStart=this.index+Number(e),this.emitCodePoint((0,c.replaceCodePoint)(this.entityResult))),this.state=this.baseState},e.prototype.stateInNumericEntity=function(e){e===a.Semi?this.emitNumericEntity(!0):d(e)?(this.entityResult=10*this.entityResult+(e-a.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},e.prototype.stateInHexEntity=function(e){e===a.Semi?this.emitNumericEntity(!0):d(e)?(this.entityResult=16*this.entityResult+(e-a.Zero),this.entityExcess++):e>=a.UpperA&&e<=a.UpperF||e>=a.LowerA&&e<=a.LowerF?(this.entityResult=16*this.entityResult+((32|e)-a.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},e.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===o.Text||this.baseState===o.InSpecialTag)},e.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===o.Text||this.state===o.InSpecialTag&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===o.InAttributeValueDq||this.state===o.InAttributeValueSq||this.state===o.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},e.prototype.shouldContinue=function(){return this.index>1,u=-7,h=r?n-1:0,d=r?-1:1,p=e[t+h];for(h+=d,s=p&(1<<-u)-1,p>>=-u,u+=o;u>0;s=256*s+e[t+h],h+=d,u-=8);for(a=s&(1<<-u)-1,s>>=-u,u+=i;u>0;a=256*a+e[t+h],h+=d,u-=8);if(0===s)s=1-c;else{if(s===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,i),s-=c}return(p?-1:1)*a*Math.pow(2,s-i)},r.write=function(e,t,r,i,n,s){var a,o,l,c=8*s-n-1,u=(1<>1,d=23===n?5960464477539062e-23:0,p=i?0:s-1,f=i?1:-1,T=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(o=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+h>=1?t+=d/l:t+=d*Math.pow(2,1-h),t*l>=2&&(a++,l/=2),a+h>=u?(o=0,a=u):a+h>=1?(o=(t*l-1)*Math.pow(2,n),a+=h):(o=t*Math.pow(2,h-1)*Math.pow(2,n),a=0));n>=8;e[r+p]=255&o,p+=f,o/=256,n-=8);for(a=a<0;e[r+p]=255&a,p+=f,a/=256,c-=8);e[r+p-f]|=128*T}},{}],128:[function(e,t,r){t.exports={lex:e(\"./lib/lexer\"),parse:e(\"./lib/parser\"),stringify:e(\"./lib/stringify\")}},{\"./lib/lexer\":130,\"./lib/parser\":131,\"./lib/stringify\":132}],129:[function(e,t,r){(function(e){(function(){t.exports=function(e){return r.bind(null,e)};function r(t){var r=[].slice.call(arguments,1);r.unshift(\"[\"+t+\"]\"),e.stderr.write(r.join(\" \")+\"\\n\")}}).call(this)}).call(this,e(\"_process\"))},{_process:158}],130:[function(e,t,r){e(\"./debug\")(\"lex\"),t.exports=function(e){var t=\"\",r=0,i=-1,n=0,s=1,a=\"before-selector\",o=[a],l={},c=[],u=[\"media\",\"keyframes\",{name:\"-webkit-keyframes\",type:\"keyframes\",prefix:\"-webkit-\"},{name:\"-moz-keyframes\",type:\"keyframes\",prefix:\"-moz-\"},{name:\"-ms-keyframes\",type:\"keyframes\",prefix:\"-ms-\"},{name:\"-o-keyframes\",type:\"keyframes\",prefix:\"-o-\"},\"font-face\",{name:\"import\",state:\"before-at-value\"},{name:\"charset\",state:\"before-at-value\"},\"supports\",\"viewport\",{name:\"namespace\",state:\"before-at-value\"},\"document\",{name:\"-moz-document\",type:\"document\",prefix:\"-moz-\"},\"page\"];function h(e){return e?o[o.length-1-e]:a}function d(t){return e[i+(t||1)]}function p(){var e=o.pop();return a=o[o.length-1],e}function f(e){return a=e,o.push(a),o.length}function T(e){var t=a;return o[o.length-1]=a=e,t}function E(t){if(1==(t||1))\"\\n\"==e[i]?(s++,r=1):r++,i++;else{var n=e.slice(i,i+t).split(\"\\n\");n.length>1&&(s+=n.length-1,r=1),r+=n[n.length-1].length,i+=t}}function m(){l.end={line:s,col:r},c.push(l),t=\"\",l={}}function g(e){l={type:e,start:{line:s,col:r}}}for(;E(),_=e[i];)switch(_){case\" \":switch(h()){case\"selector\":case\"value\":case\"value-paren\":case\"at-group\":case\"at-value\":case\"comment\":case\"double-string\":case\"single-string\":t+=_}break;case\"\\n\":case\"\t\":case\"\\r\":case\"\\f\":switch(h()){case\"value\":case\"value-paren\":case\"at-group\":case\"comment\":case\"single-string\":case\"double-string\":case\"selector\":t+=_;break;case\"at-value\":\"\\n\"===_&&(l.value=t.trim(),m(),p())}break;case\":\":switch(h()){case\"name\":l.name=t.trim(),t=\"\",T(\"before-value\");break;case\"before-selector\":t+=_,g(\"selector\"),f(\"selector\");break;case\"before-value\":T(\"value\"),t+=_;break;default:t+=_}break;case\";\":switch(h()){case\"name\":case\"before-value\":case\"value\":t.trim().length>0&&(l.value=t.trim(),m()),T(\"before-name\");break;case\"value-paren\":default:t+=_;break;case\"at-value\":l.value=t.trim(),m(),p();case\"before-name\":}break;case\"{\":switch(h()){case\"selector\":if(\"\\\\\"===d(-1)){t+=_;break}l.text=t.trim(),m(),T(\"before-name\"),n+=1;break;case\"at-group\":switch(l.name=t.trim(),l.type){case\"font-face\":case\"viewport\":case\"page\":f(\"before-name\");break;default:f(\"before-selector\")}m(),n+=1;break;case\"name\":case\"at-rule\":l.name=t.trim(),m(),f(\"before-name\"),n+=1;break;case\"comment\":case\"double-string\":case\"single-string\":t+=_;break;case\"before-value\":T(\"value\"),t+=_}break;case\"}\":switch(h()){case\"before-name\":case\"name\":case\"before-value\":case\"value\":t&&(l.value=t.trim()),l.name&&l.value&&m(),g(\"end\"),m(),p(),\"at-group\"===h()&&(g(\"at-group-end\"),m(),p()),n>0&&(n-=1);break;case\"at-group\":case\"before-selector\":case\"selector\":if(\"\\\\\"===d(-1)){t+=_;break}n>0&&\"at-group\"===h(1)&&(g(\"at-group-end\"),m()),n>1&&p(),n>0&&(n-=1);break;case\"double-string\":case\"single-string\":case\"comment\":t+=_}break;case'\"':case\"'\":switch(h()){case\"double-string\":'\"'===_&&\"\\\\\"!==d(-1)&&p();break;case\"single-string\":\"'\"===_&&\"\\\\\"!==d(-1)&&p();break;case\"before-at-value\":T(\"at-value\"),f('\"'===_?\"double-string\":\"single-string\");break;case\"before-value\":T(\"value\"),f('\"'===_?\"double-string\":\"single-string\");break;case\"comment\":break;default:\"\\\\\"!==d(-1)&&f('\"'===_?\"double-string\":\"single-string\")}t+=_;break;case\"/\":switch(h()){case\"comment\":case\"double-string\":case\"single-string\":t+=_;break;case\"before-value\":case\"selector\":case\"name\":case\"value\":if(\"*\"===d(1)){var A=function(t){var r=e.slice(i).indexOf(\"*/\");return r>0&&r}(0);A&&E(A+1)}else\"before-value\"==h()&&T(\"value\"),t+=_;break;default:\"*\"===d(1)?(g(\"comment\"),f(\"comment\"),E()):t+=_}break;case\"*\":switch(h()){case\"comment\":\"/\"===d(1)?(l.text=t,E(),m(),p()):t+=_;break;case\"before-selector\":t+=_,g(\"selector\"),f(\"selector\");break;case\"before-value\":T(\"value\"),t+=_;break;default:t+=_}break;case\"@\":switch(h()){case\"comment\":case\"double-string\":case\"single-string\":t+=_;break;case\"before-value\":T(\"value\"),t+=_;break;default:for(var _,I,D,S=!1,C=0,b=u.length;!S&&C=r};var i=Math.abs(t),s=(r%i+i)%i;return t>1?function(e){return e>=r&&e%i===s}:function(e){return e<=r&&e%i===s}},r.generate=function(e){var t=e[0],r=e[1]-1,i=0;if(t<0){var n=-t,s=(r%n+n)%n;return function(){var e=s+n*i++;return e>r?null:e}}return 0===t?r<0?function(){return null}:function(){return 0==i++?r:null}:(r<0&&(r+=t*Math.ceil(-r/t)),function(){return t*i+++r})}},{boolbase:10}],134:[function(e,t,r){Object.defineProperty(r,\"__esModule\",{value:!0}),r.sequence=r.generate=r.compile=r.parse=void 0;var i=e(\"./parse.js\");Object.defineProperty(r,\"parse\",{enumerable:!0,get:function(){return i.parse}});var n=e(\"./compile.js\");Object.defineProperty(r,\"compile\",{enumerable:!0,get:function(){return n.compile}}),Object.defineProperty(r,\"generate\",{enumerable:!0,get:function(){return n.generate}}),r.default=function(e){return(0,n.compile)((0,i.parse)(e))},r.sequence=function(e){return(0,n.generate)((0,i.parse)(e))}},{\"./compile.js\":133,\"./parse.js\":135}],135:[function(e,t,r){Object.defineProperty(r,\"__esModule\",{value:!0}),r.parse=void 0;var i=new Set([9,10,12,13,32]);r.parse=function(e){if(\"even\"===(e=e.trim().toLowerCase()))return[2,0];if(\"odd\"===e)return[2,1];var t=0,r=0,n=a(),s=o();if(t=48&&57>=e.charCodeAt(t);)i=10*i+(e.charCodeAt(t)-48),t++;return t===r?null:i}function l(){for(;tnew n.Document([]),createElement(e,t,r){let i=Object.create(null),s=Object.create(null),a=Object.create(null);for(let e=0;enew n.Comment(e),appendChild(e,t){let r=e.children[e.children.length-1];r&&(r.next=t,t.prev=r),e.children.push(t),t.parent=e},insertBefore(e,t,r){let i=e.children.indexOf(r),{prev:n}=r;n&&(n.next=t,t.prev=n),r.prev=t,t.next=r,e.children.splice(i,0,t),t.parent=e},setTemplateContent(e,t){r.adapter.appendChild(e,t)},getTemplateContent:e=>e.children[0],setDocumentType(e,t,i,s){let a=o(t,i,s),l=e.children.find(e=>(0,n.isDirective)(e)&&\"!doctype\"===e.name);l?l.data=null!=a?a:null:(l=new n.ProcessingInstruction(\"!doctype\",a),r.adapter.appendChild(e,l)),l[\"x-name\"]=null!=t?t:void 0,l[\"x-publicId\"]=null!=i?i:void 0,l[\"x-systemId\"]=null!=s?s:void 0},setDocumentMode(e,t){e[\"x-mode\"]=t},getDocumentMode:e=>e[\"x-mode\"],detachNode(e){if(e.parent){let t=e.parent.children.indexOf(e),{prev:r,next:i}=e;e.prev=null,e.next=null,r&&(r.next=i),i&&(i.prev=r),e.parent.children.splice(t,1),e.parent=null}},insertText(e,t){let i=e.children[e.children.length-1];i&&(0,n.isText)(i)?i.data+=t:r.adapter.appendChild(e,s(t))},insertTextBefore(e,t,i){let a=e.children[e.children.indexOf(i)-1];a&&(0,n.isText)(a)?a.data+=t:r.adapter.insertBefore(e,s(t),i)},adoptAttributes(e,t){for(let r=0;re.children[0],getChildNodes:e=>e.children,getParentNode:e=>e.parent,getAttrList:e=>e.attributes,getTagName:e=>e.name,getNamespaceURI:e=>e.namespace,getTextNodeContent:e=>e.data,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName(e){var t;return null!==(t=e[\"x-name\"])&&void 0!==t?t:\"\"},getDocumentTypeNodePublicId(e){var t;return null!==(t=e[\"x-publicId\"])&&void 0!==t?t:\"\"},getDocumentTypeNodeSystemId(e){var t;return null!==(t=e[\"x-systemId\"])&&void 0!==t?t:\"\"},isDocumentTypeNode:e=>(0,n.isDirective)(e)&&\"!doctype\"===e.name,setNodeSourceCodeLocation(e,t){t&&(e.startIndex=t.startOffset,e.endIndex=t.endOffset),e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){null!=t.endOffset&&(e.endIndex=t.endOffset),e.sourceCodeLocation=Object.assign(Object.assign({},e.sourceCodeLocation),t)}}},{domhandler:137,parse5:145}],137:[function(e,t,r){arguments[4][17][0].apply(r,arguments)},{\"./node.js\":138,domelementtype:103,dup:17}],138:[function(e,t,r){arguments[4][18][0].apply(r,arguments)},{domelementtype:103,dup:18}],139:[function(e,t,r){Object.defineProperty(r,\"__esModule\",{value:!0}),r.getDocumentMode=r.isConforming=void 0;let i=e(\"./html.js\"),n=\"html\",s=[\"+//silmaril//dtd html pro v0r11 19970101//\",\"-//as//dtd html 3.0 aswedit + extensions//\",\"-//advasoft ltd//dtd html 3.0 aswedit + extensions//\",\"-//ietf//dtd html 2.0 level 1//\",\"-//ietf//dtd html 2.0 level 2//\",\"-//ietf//dtd html 2.0 strict level 1//\",\"-//ietf//dtd html 2.0 strict level 2//\",\"-//ietf//dtd html 2.0 strict//\",\"-//ietf//dtd html 2.0//\",\"-//ietf//dtd html 2.1e//\",\"-//ietf//dtd html 3.0//\",\"-//ietf//dtd html 3.2 final//\",\"-//ietf//dtd html 3.2//\",\"-//ietf//dtd html 3//\",\"-//ietf//dtd html level 0//\",\"-//ietf//dtd html level 1//\",\"-//ietf//dtd html level 2//\",\"-//ietf//dtd html level 3//\",\"-//ietf//dtd html strict level 0//\",\"-//ietf//dtd html strict level 1//\",\"-//ietf//dtd html strict level 2//\",\"-//ietf//dtd html strict level 3//\",\"-//ietf//dtd html strict//\",\"-//ietf//dtd html//\",\"-//metrius//dtd metrius presentational//\",\"-//microsoft//dtd internet explorer 2.0 html strict//\",\"-//microsoft//dtd internet explorer 2.0 html//\",\"-//microsoft//dtd internet explorer 2.0 tables//\",\"-//microsoft//dtd internet explorer 3.0 html strict//\",\"-//microsoft//dtd internet explorer 3.0 html//\",\"-//microsoft//dtd internet explorer 3.0 tables//\",\"-//netscape comm. corp.//dtd html//\",\"-//netscape comm. corp.//dtd strict html//\",\"-//o'reilly and associates//dtd html 2.0//\",\"-//o'reilly and associates//dtd html extended 1.0//\",\"-//o'reilly and associates//dtd html extended relaxed 1.0//\",\"-//sq//dtd html 2.0 hotmetal + extensions//\",\"-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//\",\"-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//\",\"-//spyglass//dtd html 2.0 extended//\",\"-//sun microsystems corp.//dtd hotjava html//\",\"-//sun microsystems corp.//dtd hotjava strict html//\",\"-//w3c//dtd html 3 1995-03-24//\",\"-//w3c//dtd html 3.2 draft//\",\"-//w3c//dtd html 3.2 final//\",\"-//w3c//dtd html 3.2//\",\"-//w3c//dtd html 3.2s draft//\",\"-//w3c//dtd html 4.0 frameset//\",\"-//w3c//dtd html 4.0 transitional//\",\"-//w3c//dtd html experimental 19960712//\",\"-//w3c//dtd html experimental 970421//\",\"-//w3c//dtd w3 html//\",\"-//w3o//dtd w3 html 3.0//\",\"-//webtechs//dtd mozilla html 2.0//\",\"-//webtechs//dtd mozilla html//\"],a=[...s,\"-//w3c//dtd html 4.01 frameset//\",\"-//w3c//dtd html 4.01 transitional//\"],o=new Set([\"-//w3o//dtd w3 html strict 3.0//en//\",\"-/w3c/dtd html 4.0 transitional/en\",\"html\"]),l=[\"-//w3c//dtd xhtml 1.0 frameset//\",\"-//w3c//dtd xhtml 1.0 transitional//\"],c=[...l,\"-//w3c//dtd html 4.01 frameset//\",\"-//w3c//dtd html 4.01 transitional//\"];function u(e,t){return t.some(t=>e.startsWith(t))}r.isConforming=function(e){return e.name===n&&null===e.publicId&&(null===e.systemId||\"about:legacy-compat\"===e.systemId)},r.getDocumentMode=function(e){if(e.name!==n)return i.DOCUMENT_MODE.QUIRKS;let{systemId:t}=e;if(t&&\"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd\"===t.toLowerCase())return i.DOCUMENT_MODE.QUIRKS;let{publicId:r}=e;if(null!==r){if(r=r.toLowerCase(),o.has(r))return i.DOCUMENT_MODE.QUIRKS;let e=null===t?a:s;if(u(r,e))return i.DOCUMENT_MODE.QUIRKS;if(u(r,e=null===t?l:c))return i.DOCUMENT_MODE.LIMITED_QUIRKS}return i.DOCUMENT_MODE.NO_QUIRKS}},{\"./html.js\":142}],140:[function(e,t,r){var i;Object.defineProperty(r,\"__esModule\",{value:!0}),r.ERR=void 0,(i=r.ERR||(r.ERR={})).controlCharacterInInputStream=\"control-character-in-input-stream\",i.noncharacterInInputStream=\"noncharacter-in-input-stream\",i.surrogateInInputStream=\"surrogate-in-input-stream\",i.nonVoidHtmlElementStartTagWithTrailingSolidus=\"non-void-html-element-start-tag-with-trailing-solidus\",i.endTagWithAttributes=\"end-tag-with-attributes\",i.endTagWithTrailingSolidus=\"end-tag-with-trailing-solidus\",i.unexpectedSolidusInTag=\"unexpected-solidus-in-tag\",i.unexpectedNullCharacter=\"unexpected-null-character\",i.unexpectedQuestionMarkInsteadOfTagName=\"unexpected-question-mark-instead-of-tag-name\",i.invalidFirstCharacterOfTagName=\"invalid-first-character-of-tag-name\",i.unexpectedEqualsSignBeforeAttributeName=\"unexpected-equals-sign-before-attribute-name\",i.missingEndTagName=\"missing-end-tag-name\",i.unexpectedCharacterInAttributeName=\"unexpected-character-in-attribute-name\",i.unknownNamedCharacterReference=\"unknown-named-character-reference\",i.missingSemicolonAfterCharacterReference=\"missing-semicolon-after-character-reference\",i.unexpectedCharacterAfterDoctypeSystemIdentifier=\"unexpected-character-after-doctype-system-identifier\",i.unexpectedCharacterInUnquotedAttributeValue=\"unexpected-character-in-unquoted-attribute-value\",i.eofBeforeTagName=\"eof-before-tag-name\",i.eofInTag=\"eof-in-tag\",i.missingAttributeValue=\"missing-attribute-value\",i.missingWhitespaceBetweenAttributes=\"missing-whitespace-between-attributes\",i.missingWhitespaceAfterDoctypePublicKeyword=\"missing-whitespace-after-doctype-public-keyword\",i.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers=\"missing-whitespace-between-doctype-public-and-system-identifiers\",i.missingWhitespaceAfterDoctypeSystemKeyword=\"missing-whitespace-after-doctype-system-keyword\",i.missingQuoteBeforeDoctypePublicIdentifier=\"missing-quote-before-doctype-public-identifier\",i.missingQuoteBeforeDoctypeSystemIdentifier=\"missing-quote-before-doctype-system-identifier\",i.missingDoctypePublicIdentifier=\"missing-doctype-public-identifier\",i.missingDoctypeSystemIdentifier=\"missing-doctype-system-identifier\",i.abruptDoctypePublicIdentifier=\"abrupt-doctype-public-identifier\",i.abruptDoctypeSystemIdentifier=\"abrupt-doctype-system-identifier\",i.cdataInHtmlContent=\"cdata-in-html-content\",i.incorrectlyOpenedComment=\"incorrectly-opened-comment\",i.eofInScriptHtmlCommentLikeText=\"eof-in-script-html-comment-like-text\",i.eofInDoctype=\"eof-in-doctype\",i.nestedComment=\"nested-comment\",i.abruptClosingOfEmptyComment=\"abrupt-closing-of-empty-comment\",i.eofInComment=\"eof-in-comment\",i.incorrectlyClosedComment=\"incorrectly-closed-comment\",i.eofInCdata=\"eof-in-cdata\",i.absenceOfDigitsInNumericCharacterReference=\"absence-of-digits-in-numeric-character-reference\",i.nullCharacterReference=\"null-character-reference\",i.surrogateCharacterReference=\"surrogate-character-reference\",i.characterReferenceOutsideUnicodeRange=\"character-reference-outside-unicode-range\",i.controlCharacterReference=\"control-character-reference\",i.noncharacterCharacterReference=\"noncharacter-character-reference\",i.missingWhitespaceBeforeDoctypeName=\"missing-whitespace-before-doctype-name\",i.missingDoctypeName=\"missing-doctype-name\",i.invalidCharacterSequenceAfterDoctypeName=\"invalid-character-sequence-after-doctype-name\",i.duplicateAttribute=\"duplicate-attribute\",i.nonConformingDoctype=\"non-conforming-doctype\",i.missingDoctype=\"missing-doctype\",i.misplacedDoctype=\"misplaced-doctype\",i.endTagWithoutMatchingOpenElement=\"end-tag-without-matching-open-element\",i.closingOfElementWithOpenChildElements=\"closing-of-element-with-open-child-elements\",i.disallowedContentInNoscriptInHead=\"disallowed-content-in-noscript-in-head\",i.openElementsLeftAfterEof=\"open-elements-left-after-eof\",i.abandonedHeadElementChild=\"abandoned-head-element-child\",i.misplacedStartTagForHeadElement=\"misplaced-start-tag-for-head-element\",i.nestedNoscriptInHead=\"nested-noscript-in-head\",i.eofInElementThatCanContainOnlyText=\"eof-in-element-that-can-contain-only-text\"},{}],141:[function(e,t,r){Object.defineProperty(r,\"__esModule\",{value:!0}),r.isIntegrationPoint=r.adjustTokenSVGTagName=r.adjustTokenXMLAttrs=r.adjustTokenSVGAttrs=r.adjustTokenMathMLAttrs=r.causesExit=r.SVG_TAG_NAMES_ADJUSTMENT_MAP=void 0;let i=e(\"./html.js\"),n={TEXT_HTML:\"text/html\",APPLICATION_XML:\"application/xhtml+xml\"},s=new Map([\"attributeName\",\"attributeType\",\"baseFrequency\",\"baseProfile\",\"calcMode\",\"clipPathUnits\",\"diffuseConstant\",\"edgeMode\",\"filterUnits\",\"glyphRef\",\"gradientTransform\",\"gradientUnits\",\"kernelMatrix\",\"kernelUnitLength\",\"keyPoints\",\"keySplines\",\"keyTimes\",\"lengthAdjust\",\"limitingConeAngle\",\"markerHeight\",\"markerUnits\",\"markerWidth\",\"maskContentUnits\",\"maskUnits\",\"numOctaves\",\"pathLength\",\"patternContentUnits\",\"patternTransform\",\"patternUnits\",\"pointsAtX\",\"pointsAtY\",\"pointsAtZ\",\"preserveAlpha\",\"preserveAspectRatio\",\"primitiveUnits\",\"refX\",\"refY\",\"repeatCount\",\"repeatDur\",\"requiredExtensions\",\"requiredFeatures\",\"specularConstant\",\"specularExponent\",\"spreadMethod\",\"startOffset\",\"stdDeviation\",\"stitchTiles\",\"surfaceScale\",\"systemLanguage\",\"tableValues\",\"targetX\",\"targetY\",\"textLength\",\"viewBox\",\"viewTarget\",\"xChannelSelector\",\"yChannelSelector\",\"zoomAndPan\"].map(e=>[e.toLowerCase(),e])),a=new Map([[\"xlink:actuate\",{prefix:\"xlink\",name:\"actuate\",namespace:i.NS.XLINK}],[\"xlink:arcrole\",{prefix:\"xlink\",name:\"arcrole\",namespace:i.NS.XLINK}],[\"xlink:href\",{prefix:\"xlink\",name:\"href\",namespace:i.NS.XLINK}],[\"xlink:role\",{prefix:\"xlink\",name:\"role\",namespace:i.NS.XLINK}],[\"xlink:show\",{prefix:\"xlink\",name:\"show\",namespace:i.NS.XLINK}],[\"xlink:title\",{prefix:\"xlink\",name:\"title\",namespace:i.NS.XLINK}],[\"xlink:type\",{prefix:\"xlink\",name:\"type\",namespace:i.NS.XLINK}],[\"xml:base\",{prefix:\"xml\",name:\"base\",namespace:i.NS.XML}],[\"xml:lang\",{prefix:\"xml\",name:\"lang\",namespace:i.NS.XML}],[\"xml:space\",{prefix:\"xml\",name:\"space\",namespace:i.NS.XML}],[\"xmlns\",{prefix:\"\",name:\"xmlns\",namespace:i.NS.XMLNS}],[\"xmlns:xlink\",{prefix:\"xmlns\",name:\"xlink\",namespace:i.NS.XMLNS}]]);r.SVG_TAG_NAMES_ADJUSTMENT_MAP=new Map([\"altGlyph\",\"altGlyphDef\",\"altGlyphItem\",\"animateColor\",\"animateMotion\",\"animateTransform\",\"clipPath\",\"feBlend\",\"feColorMatrix\",\"feComponentTransfer\",\"feComposite\",\"feConvolveMatrix\",\"feDiffuseLighting\",\"feDisplacementMap\",\"feDistantLight\",\"feFlood\",\"feFuncA\",\"feFuncB\",\"feFuncG\",\"feFuncR\",\"feGaussianBlur\",\"feImage\",\"feMerge\",\"feMergeNode\",\"feMorphology\",\"feOffset\",\"fePointLight\",\"feSpecularLighting\",\"feSpotLight\",\"feTile\",\"feTurbulence\",\"foreignObject\",\"glyphRef\",\"linearGradient\",\"radialGradient\",\"textPath\"].map(e=>[e.toLowerCase(),e]));let o=new Set([i.TAG_ID.B,i.TAG_ID.BIG,i.TAG_ID.BLOCKQUOTE,i.TAG_ID.BODY,i.TAG_ID.BR,i.TAG_ID.CENTER,i.TAG_ID.CODE,i.TAG_ID.DD,i.TAG_ID.DIV,i.TAG_ID.DL,i.TAG_ID.DT,i.TAG_ID.EM,i.TAG_ID.EMBED,i.TAG_ID.H1,i.TAG_ID.H2,i.TAG_ID.H3,i.TAG_ID.H4,i.TAG_ID.H5,i.TAG_ID.H6,i.TAG_ID.HEAD,i.TAG_ID.HR,i.TAG_ID.I,i.TAG_ID.IMG,i.TAG_ID.LI,i.TAG_ID.LISTING,i.TAG_ID.MENU,i.TAG_ID.META,i.TAG_ID.NOBR,i.TAG_ID.OL,i.TAG_ID.P,i.TAG_ID.PRE,i.TAG_ID.RUBY,i.TAG_ID.S,i.TAG_ID.SMALL,i.TAG_ID.SPAN,i.TAG_ID.STRONG,i.TAG_ID.STRIKE,i.TAG_ID.SUB,i.TAG_ID.SUP,i.TAG_ID.TABLE,i.TAG_ID.TT,i.TAG_ID.U,i.TAG_ID.UL,i.TAG_ID.VAR]);r.causesExit=function(e){let t=e.tagID;return t===i.TAG_ID.FONT&&e.attrs.some(({name:e})=>e===i.ATTRS.COLOR||e===i.ATTRS.SIZE||e===i.ATTRS.FACE)||o.has(t)},r.adjustTokenMathMLAttrs=function(e){for(let t=0;t=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null}},{}],144:[function(e,t,r){var i;Object.defineProperty(r,\"__esModule\",{value:!0}),r.isUndefinedCodePoint=r.isControlCodePoint=r.getSurrogatePairCodePoint=r.isSurrogatePair=r.isSurrogate=r.SEQUENCES=r.CODE_POINTS=r.REPLACEMENT_CHARACTER=void 0;let n=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]);r.REPLACEMENT_CHARACTER=\"�\",(i=r.CODE_POINTS||(r.CODE_POINTS={}))[i.EOF=-1]=\"EOF\",i[i.NULL=0]=\"NULL\",i[i.TABULATION=9]=\"TABULATION\",i[i.CARRIAGE_RETURN=13]=\"CARRIAGE_RETURN\",i[i.LINE_FEED=10]=\"LINE_FEED\",i[i.FORM_FEED=12]=\"FORM_FEED\",i[i.SPACE=32]=\"SPACE\",i[i.EXCLAMATION_MARK=33]=\"EXCLAMATION_MARK\",i[i.QUOTATION_MARK=34]=\"QUOTATION_MARK\",i[i.NUMBER_SIGN=35]=\"NUMBER_SIGN\",i[i.AMPERSAND=38]=\"AMPERSAND\",i[i.APOSTROPHE=39]=\"APOSTROPHE\",i[i.HYPHEN_MINUS=45]=\"HYPHEN_MINUS\",i[i.SOLIDUS=47]=\"SOLIDUS\",i[i.DIGIT_0=48]=\"DIGIT_0\",i[i.DIGIT_9=57]=\"DIGIT_9\",i[i.SEMICOLON=59]=\"SEMICOLON\",i[i.LESS_THAN_SIGN=60]=\"LESS_THAN_SIGN\",i[i.EQUALS_SIGN=61]=\"EQUALS_SIGN\",i[i.GREATER_THAN_SIGN=62]=\"GREATER_THAN_SIGN\",i[i.QUESTION_MARK=63]=\"QUESTION_MARK\",i[i.LATIN_CAPITAL_A=65]=\"LATIN_CAPITAL_A\",i[i.LATIN_CAPITAL_F=70]=\"LATIN_CAPITAL_F\",i[i.LATIN_CAPITAL_X=88]=\"LATIN_CAPITAL_X\",i[i.LATIN_CAPITAL_Z=90]=\"LATIN_CAPITAL_Z\",i[i.RIGHT_SQUARE_BRACKET=93]=\"RIGHT_SQUARE_BRACKET\",i[i.GRAVE_ACCENT=96]=\"GRAVE_ACCENT\",i[i.LATIN_SMALL_A=97]=\"LATIN_SMALL_A\",i[i.LATIN_SMALL_F=102]=\"LATIN_SMALL_F\",i[i.LATIN_SMALL_X=120]=\"LATIN_SMALL_X\",i[i.LATIN_SMALL_Z=122]=\"LATIN_SMALL_Z\",i[i.REPLACEMENT_CHARACTER=65533]=\"REPLACEMENT_CHARACTER\",r.SEQUENCES={DASH_DASH:\"--\",CDATA_START:\"[CDATA[\",DOCTYPE:\"doctype\",SCRIPT:\"script\",PUBLIC:\"public\",SYSTEM:\"system\"},r.isSurrogate=function(e){return e>=55296&&e<=57343},r.isSurrogatePair=function(e){return e>=56320&&e<=57343},r.getSurrogatePairCodePoint=function(e,t){return(e-55296)*1024+9216+t},r.isControlCodePoint=function(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159},r.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||n.has(e)}},{}],145:[function(e,t,r){Object.defineProperty(r,\"__esModule\",{value:!0}),r.parseFragment=r.parse=r.TokenizerMode=r.Tokenizer=r.Token=r.html=r.foreignContent=r.ErrorCodes=r.serializeOuter=r.serialize=r.Parser=r.defaultTreeAdapter=void 0;let i=e(\"./parser/index.js\");var n=e(\"./tree-adapters/default.js\");Object.defineProperty(r,\"defaultTreeAdapter\",{enumerable:!0,get:function(){return n.defaultTreeAdapter}});var s=e(\"./parser/index.js\");Object.defineProperty(r,\"Parser\",{enumerable:!0,get:function(){return s.Parser}});var a=e(\"./serializer/index.js\");Object.defineProperty(r,\"serialize\",{enumerable:!0,get:function(){return a.serialize}}),Object.defineProperty(r,\"serializeOuter\",{enumerable:!0,get:function(){return a.serializeOuter}});var o=e(\"./common/error-codes.js\");Object.defineProperty(r,\"ErrorCodes\",{enumerable:!0,get:function(){return o.ERR}}),r.foreignContent=e(\"./common/foreign-content.js\"),r.html=e(\"./common/html.js\"),r.Token=e(\"./common/token.js\");var l=e(\"./tokenizer/index.js\");Object.defineProperty(r,\"Tokenizer\",{enumerable:!0,get:function(){return l.Tokenizer}}),Object.defineProperty(r,\"TokenizerMode\",{enumerable:!0,get:function(){return l.TokenizerMode}}),r.parse=function(e,t){return i.Parser.parse(e,t)},r.parseFragment=function(e,t,r){\"string\"==typeof e&&(r=t,t=e,e=null);let n=i.Parser.getFragmentParser(e,r);return n.tokenizer.write(t,!0),n.getFragment()}},{\"./common/error-codes.js\":140,\"./common/foreign-content.js\":141,\"./common/html.js\":142,\"./common/token.js\":143,\"./parser/index.js\":147,\"./serializer/index.js\":149,\"./tokenizer/index.js\":150,\"./tree-adapters/default.js\":152}],146:[function(e,t,r){var i,n;Object.defineProperty(r,\"__esModule\",{value:!0}),r.FormattingElementList=r.EntryType=void 0,(n=i=r.EntryType||(r.EntryType={}))[n.Marker=0]=\"Marker\",n[n.Element=1]=\"Element\";let s={type:i.Marker};r.FormattingElementList=class{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){let r=[],n=t.length,s=this.treeAdapter.getTagName(e),a=this.treeAdapter.getNamespaceURI(e);for(let e=0;e[e.name,e.value])),n=0;for(let e=0;ei.get(e.name)===e.value)&&(n+=1)>=3&&this.entries.splice(t.idx,1)}}insertMarker(){this.entries.unshift(s)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:i.Element,element:e,token:t})}insertElementAfterBookmark(e,t){let r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:i.Element,element:e,token:t})}removeEntry(e){let t=this.entries.indexOf(e);t>=0&&this.entries.splice(t,1)}clearToLastMarker(){let e=this.entries.indexOf(s);e>=0?this.entries.splice(0,e+1):this.entries.length=0}getElementEntryInScopeWithTagName(e){let t=this.entries.find(t=>t.type===i.Marker||this.treeAdapter.getTagName(t.element)===e);return t&&t.type===i.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===i.Element&&t.element===e)}}},{}],147:[function(e,t,r){var i,n;Object.defineProperty(r,\"__esModule\",{value:!0}),r.Parser=void 0;let s=e(\"../tokenizer/index.js\"),a=e(\"./open-element-stack.js\"),o=e(\"./formatting-element-list.js\"),l=e(\"../tree-adapters/default.js\"),c=e(\"../common/doctype.js\"),u=e(\"../common/foreign-content.js\"),h=e(\"../common/error-codes.js\"),d=e(\"../common/unicode.js\"),p=e(\"../common/html.js\"),f=e(\"../common/token.js\");(n=i||(i={}))[n.INITIAL=0]=\"INITIAL\",n[n.BEFORE_HTML=1]=\"BEFORE_HTML\",n[n.BEFORE_HEAD=2]=\"BEFORE_HEAD\",n[n.IN_HEAD=3]=\"IN_HEAD\",n[n.IN_HEAD_NO_SCRIPT=4]=\"IN_HEAD_NO_SCRIPT\",n[n.AFTER_HEAD=5]=\"AFTER_HEAD\",n[n.IN_BODY=6]=\"IN_BODY\",n[n.TEXT=7]=\"TEXT\",n[n.IN_TABLE=8]=\"IN_TABLE\",n[n.IN_TABLE_TEXT=9]=\"IN_TABLE_TEXT\",n[n.IN_CAPTION=10]=\"IN_CAPTION\",n[n.IN_COLUMN_GROUP=11]=\"IN_COLUMN_GROUP\",n[n.IN_TABLE_BODY=12]=\"IN_TABLE_BODY\",n[n.IN_ROW=13]=\"IN_ROW\",n[n.IN_CELL=14]=\"IN_CELL\",n[n.IN_SELECT=15]=\"IN_SELECT\",n[n.IN_SELECT_IN_TABLE=16]=\"IN_SELECT_IN_TABLE\",n[n.IN_TEMPLATE=17]=\"IN_TEMPLATE\",n[n.AFTER_BODY=18]=\"AFTER_BODY\",n[n.IN_FRAMESET=19]=\"IN_FRAMESET\",n[n.AFTER_FRAMESET=20]=\"AFTER_FRAMESET\",n[n.AFTER_AFTER_BODY=21]=\"AFTER_AFTER_BODY\",n[n.AFTER_AFTER_FRAMESET=22]=\"AFTER_AFTER_FRAMESET\";let T={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},E=new Set([p.TAG_ID.TABLE,p.TAG_ID.TBODY,p.TAG_ID.TFOOT,p.TAG_ID.THEAD,p.TAG_ID.TR]),m={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:l.defaultTreeAdapter,onParseError:null};function g(e,t){for(let r=0;r<8;r++){let r=function(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return r?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagID)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):x(e,t),r}(e,t);if(!r)break;let i=function(e,t){let r=null,i=e.openElements.stackTop;for(;i>=0;i--){let n=e.openElements.items[i];if(n===t.element)break;e._isSpecialElement(n,e.openElements.tagIDs[i])&&(r=n)}return r||(e.openElements.shortenToLength(i<0?0:i),e.activeFormattingElements.removeEntry(t)),r}(e,r);if(!i)break;e.activeFormattingElements.bookmark=r;let n=function(e,t,r){let i=t,n=e.openElements.getCommonAncestor(t);for(let s=0,a=n;a!==r;s++,a=n){n=e.openElements.getCommonAncestor(a);let r=e.activeFormattingElements.getElementEntry(a),o=r&&s>=3;!r||o?(o&&e.activeFormattingElements.removeEntry(r),e.openElements.remove(a)):(a=function(e,t){let r=e.treeAdapter.getNamespaceURI(t.element),i=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,i),t.element=i,i}(e,r),i===t&&(e.activeFormattingElements.bookmark=r),e.treeAdapter.detachNode(i),e.treeAdapter.appendChild(a,i),i=a)}return i}(e,i,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(n),s&&function(e,t,r){let i=e.treeAdapter.getTagName(t),n=(0,p.getTagID)(i);if(e._isElementCausesFosterParenting(n))e._fosterParentElement(r);else{let i=e.treeAdapter.getNamespaceURI(t);n===p.TAG_ID.TEMPLATE&&i===p.NS.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}(e,s,n),function(e,t,r){let i=e.treeAdapter.getNamespaceURI(r.element),{token:n}=r,s=e.treeAdapter.createElement(n.tagName,i,n.attrs);e._adoptNodes(t,s),e.treeAdapter.appendChild(t,s),e.activeFormattingElements.insertElementAfterBookmark(s,n),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,s,n.tagID)}(e,i,r)}}function A(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function _(e,t){if(e.stopped=!0,t.location){let r=e.fragmentContext?0:2;for(let i=e.openElements.stackTop;i>=r;i--)e._setEndLocation(e.openElements.items[i],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){let r=e.openElements.items[1],i=e.treeAdapter.getNodeSourceCodeLocation(r);i&&!i.endTag&&e._setEndLocation(r,t)}}}}function I(e,t){e._err(t,h.ERR.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,p.DOCUMENT_MODE.QUIRKS),e.insertionMode=i.BEFORE_HTML,e._processToken(t)}function D(e,t){e._insertFakeRootElement(),e.insertionMode=i.BEFORE_HEAD,e._processToken(t)}function S(e,t){e._insertFakeElement(p.TAG_NAMES.HEAD,p.TAG_ID.HEAD),e.headElement=e.openElements.current,e.insertionMode=i.IN_HEAD,e._processToken(t)}function C(e,t){switch(t.tagID){case p.TAG_ID.HTML:B(e,t);break;case p.TAG_ID.BASE:case p.TAG_ID.BASEFONT:case p.TAG_ID.BGSOUND:case p.TAG_ID.LINK:case p.TAG_ID.META:e._appendElement(t,p.NS.HTML),t.ackSelfClosing=!0;break;case p.TAG_ID.TITLE:e._switchToTextParsing(t,s.TokenizerMode.RCDATA);break;case p.TAG_ID.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,s.TokenizerMode.RAWTEXT):(e._insertElement(t,p.NS.HTML),e.insertionMode=i.IN_HEAD_NO_SCRIPT);break;case p.TAG_ID.NOFRAMES:case p.TAG_ID.STYLE:e._switchToTextParsing(t,s.TokenizerMode.RAWTEXT);break;case p.TAG_ID.SCRIPT:e._switchToTextParsing(t,s.TokenizerMode.SCRIPT_DATA);break;case p.TAG_ID.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=i.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(i.IN_TEMPLATE);break;case p.TAG_ID.HEAD:e._err(t,h.ERR.misplacedStartTagForHeadElement);break;default:y(e,t)}}function b(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==p.TAG_ID.TEMPLATE&&e._err(t,h.ERR.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(p.TAG_ID.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,h.ERR.endTagWithoutMatchingOpenElement)}function y(e,t){e.openElements.pop(),e.insertionMode=i.AFTER_HEAD,e._processToken(t)}function N(e,t){let r=t.type===f.TokenType.EOF?h.ERR.openElementsLeftAfterEof:h.ERR.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=i.IN_HEAD,e._processToken(t)}function O(e,t){e._insertFakeElement(p.TAG_NAMES.BODY,p.TAG_ID.BODY),e.insertionMode=i.IN_BODY,v(e,t)}function v(e,t){switch(t.type){case f.TokenType.CHARACTER:P(e,t);break;case f.TokenType.WHITESPACE_CHARACTER:R(e,t);break;case f.TokenType.COMMENT:A(e,t);break;case f.TokenType.START_TAG:B(e,t);break;case f.TokenType.END_TAG:G(e,t);break;case f.TokenType.EOF:F(e,t)}}function R(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function P(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function L(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,p.NS.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function k(e){let t=(0,f.getTokenAttr)(e,p.ATTRS.TYPE);return null!=t&&\"hidden\"===t.toLowerCase()}function w(e,t){e._switchToTextParsing(t,s.TokenizerMode.RAWTEXT)}function M(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,p.NS.HTML)}function B(e,t){switch(t.tagID){case p.TAG_ID.I:case p.TAG_ID.S:case p.TAG_ID.B:case p.TAG_ID.U:case p.TAG_ID.EM:case p.TAG_ID.TT:case p.TAG_ID.BIG:case p.TAG_ID.CODE:case p.TAG_ID.FONT:case p.TAG_ID.SMALL:case p.TAG_ID.STRIKE:case p.TAG_ID.STRONG:e._reconstructActiveFormattingElements(),e._insertElement(t,p.NS.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case p.TAG_ID.A:!function(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(p.TAG_NAMES.A);r&&(g(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,p.NS.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case p.TAG_ID.H1:case p.TAG_ID.H2:case p.TAG_ID.H3:case p.TAG_ID.H4:case p.TAG_ID.H5:case p.TAG_ID.H6:e.openElements.hasInButtonScope(p.TAG_ID.P)&&e._closePElement(),(0,p.isNumberedHeader)(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,p.NS.HTML);break;case p.TAG_ID.P:case p.TAG_ID.DL:case p.TAG_ID.OL:case p.TAG_ID.UL:case p.TAG_ID.DIV:case p.TAG_ID.DIR:case p.TAG_ID.NAV:case p.TAG_ID.MAIN:case p.TAG_ID.MENU:case p.TAG_ID.ASIDE:case p.TAG_ID.CENTER:case p.TAG_ID.FIGURE:case p.TAG_ID.FOOTER:case p.TAG_ID.HEADER:case p.TAG_ID.HGROUP:case p.TAG_ID.DIALOG:case p.TAG_ID.DETAILS:case p.TAG_ID.ADDRESS:case p.TAG_ID.ARTICLE:case p.TAG_ID.SECTION:case p.TAG_ID.SUMMARY:case p.TAG_ID.FIELDSET:case p.TAG_ID.BLOCKQUOTE:case p.TAG_ID.FIGCAPTION:e.openElements.hasInButtonScope(p.TAG_ID.P)&&e._closePElement(),e._insertElement(t,p.NS.HTML);break;case p.TAG_ID.LI:case p.TAG_ID.DD:case p.TAG_ID.DT:!function(e,t){e.framesetOk=!1;let r=t.tagID;for(let t=e.openElements.stackTop;t>=0;t--){let i=e.openElements.tagIDs[t];if(r===p.TAG_ID.LI&&i===p.TAG_ID.LI||(r===p.TAG_ID.DD||r===p.TAG_ID.DT)&&(i===p.TAG_ID.DD||i===p.TAG_ID.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==p.TAG_ID.ADDRESS&&i!==p.TAG_ID.DIV&&i!==p.TAG_ID.P&&e._isSpecialElement(e.openElements.items[t],i))break}e.openElements.hasInButtonScope(p.TAG_ID.P)&&e._closePElement(),e._insertElement(t,p.NS.HTML)}(e,t);break;case p.TAG_ID.BR:case p.TAG_ID.IMG:case p.TAG_ID.WBR:case p.TAG_ID.AREA:case p.TAG_ID.EMBED:case p.TAG_ID.KEYGEN:L(e,t);break;case p.TAG_ID.HR:e.openElements.hasInButtonScope(p.TAG_ID.P)&&e._closePElement(),e._appendElement(t,p.NS.HTML),e.framesetOk=!1,t.ackSelfClosing=!0;break;case p.TAG_ID.RB:case p.TAG_ID.RTC:e.openElements.hasInScope(p.TAG_ID.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,p.NS.HTML);break;case p.TAG_ID.RT:case p.TAG_ID.RP:e.openElements.hasInScope(p.TAG_ID.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(p.TAG_ID.RTC),e._insertElement(t,p.NS.HTML);break;case p.TAG_ID.PRE:case p.TAG_ID.LISTING:e.openElements.hasInButtonScope(p.TAG_ID.P)&&e._closePElement(),e._insertElement(t,p.NS.HTML),e.skipNextNewLine=!0,e.framesetOk=!1;break;case p.TAG_ID.XMP:e.openElements.hasInButtonScope(p.TAG_ID.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,s.TokenizerMode.RAWTEXT);break;case p.TAG_ID.SVG:e._reconstructActiveFormattingElements(),u.adjustTokenSVGAttrs(t),u.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,p.NS.SVG):e._insertElement(t,p.NS.SVG),t.ackSelfClosing=!0;break;case p.TAG_ID.HTML:0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs);break;case p.TAG_ID.BASE:case p.TAG_ID.LINK:case p.TAG_ID.META:case p.TAG_ID.STYLE:case p.TAG_ID.TITLE:case p.TAG_ID.SCRIPT:case p.TAG_ID.BGSOUND:case p.TAG_ID.BASEFONT:case p.TAG_ID.TEMPLATE:C(e,t);break;case p.TAG_ID.BODY:!function(e,t){let r=e.openElements.tryPeekProperlyNestedBodyElement();r&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}(e,t);break;case p.TAG_ID.FORM:!function(e,t){let r=e.openElements.tmplCount>0;e.formElement&&!r||(e.openElements.hasInButtonScope(p.TAG_ID.P)&&e._closePElement(),e._insertElement(t,p.NS.HTML),r||(e.formElement=e.openElements.current))}(e,t);break;case p.TAG_ID.NOBR:e._reconstructActiveFormattingElements(),e.openElements.hasInScope(p.TAG_ID.NOBR)&&(g(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,p.NS.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case p.TAG_ID.MATH:e._reconstructActiveFormattingElements(),u.adjustTokenMathMLAttrs(t),u.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,p.NS.MATHML):e._insertElement(t,p.NS.MATHML),t.ackSelfClosing=!0;break;case p.TAG_ID.TABLE:e.treeAdapter.getDocumentMode(e.document)!==p.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(p.TAG_ID.P)&&e._closePElement(),e._insertElement(t,p.NS.HTML),e.framesetOk=!1,e.insertionMode=i.IN_TABLE;break;case p.TAG_ID.INPUT:e._reconstructActiveFormattingElements(),e._appendElement(t,p.NS.HTML),k(t)||(e.framesetOk=!1),t.ackSelfClosing=!0;break;case p.TAG_ID.PARAM:case p.TAG_ID.TRACK:case p.TAG_ID.SOURCE:e._appendElement(t,p.NS.HTML),t.ackSelfClosing=!0;break;case p.TAG_ID.IMAGE:t.tagName=p.TAG_NAMES.IMG,t.tagID=p.TAG_ID.IMG,L(e,t);break;case p.TAG_ID.BUTTON:e.openElements.hasInScope(p.TAG_ID.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(p.TAG_ID.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,p.NS.HTML),e.framesetOk=!1;break;case p.TAG_ID.APPLET:case p.TAG_ID.OBJECT:case p.TAG_ID.MARQUEE:e._reconstructActiveFormattingElements(),e._insertElement(t,p.NS.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1;break;case p.TAG_ID.IFRAME:e.framesetOk=!1,e._switchToTextParsing(t,s.TokenizerMode.RAWTEXT);break;case p.TAG_ID.SELECT:e._reconstructActiveFormattingElements(),e._insertElement(t,p.NS.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===i.IN_TABLE||e.insertionMode===i.IN_CAPTION||e.insertionMode===i.IN_TABLE_BODY||e.insertionMode===i.IN_ROW||e.insertionMode===i.IN_CELL?i.IN_SELECT_IN_TABLE:i.IN_SELECT;break;case p.TAG_ID.OPTION:case p.TAG_ID.OPTGROUP:e.openElements.currentTagId===p.TAG_ID.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,p.NS.HTML);break;case p.TAG_ID.NOEMBED:w(e,t);break;case p.TAG_ID.FRAMESET:!function(e,t){let r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,p.NS.HTML),e.insertionMode=i.IN_FRAMESET)}(e,t);break;case p.TAG_ID.TEXTAREA:e._insertElement(t,p.NS.HTML),e.skipNextNewLine=!0,e.tokenizer.state=s.TokenizerMode.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=i.TEXT;break;case p.TAG_ID.NOSCRIPT:e.options.scriptingEnabled?w(e,t):M(e,t);break;case p.TAG_ID.PLAINTEXT:e.openElements.hasInButtonScope(p.TAG_ID.P)&&e._closePElement(),e._insertElement(t,p.NS.HTML),e.tokenizer.state=s.TokenizerMode.PLAINTEXT;break;case p.TAG_ID.COL:case p.TAG_ID.TH:case p.TAG_ID.TD:case p.TAG_ID.TR:case p.TAG_ID.HEAD:case p.TAG_ID.FRAME:case p.TAG_ID.TBODY:case p.TAG_ID.TFOOT:case p.TAG_ID.THEAD:case p.TAG_ID.CAPTION:case p.TAG_ID.COLGROUP:break;default:M(e,t)}}function x(e,t){let r=t.tagName,i=t.tagID;for(let t=e.openElements.stackTop;t>0;t--){let n=e.openElements.items[t],s=e.openElements.tagIDs[t];if(i===s&&(i!==p.TAG_ID.UNKNOWN||e.treeAdapter.getTagName(n)===r)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.stackTop>=t&&e.openElements.shortenToLength(t);break}if(e._isSpecialElement(n,s))break}}function G(e,t){switch(t.tagID){case p.TAG_ID.A:case p.TAG_ID.B:case p.TAG_ID.I:case p.TAG_ID.S:case p.TAG_ID.U:case p.TAG_ID.EM:case p.TAG_ID.TT:case p.TAG_ID.BIG:case p.TAG_ID.CODE:case p.TAG_ID.FONT:case p.TAG_ID.NOBR:case p.TAG_ID.SMALL:case p.TAG_ID.STRIKE:case p.TAG_ID.STRONG:g(e,t);break;case p.TAG_ID.P:e.openElements.hasInButtonScope(p.TAG_ID.P)||e._insertFakeElement(p.TAG_NAMES.P,p.TAG_ID.P),e._closePElement();break;case p.TAG_ID.DL:case p.TAG_ID.UL:case p.TAG_ID.OL:case p.TAG_ID.DIR:case p.TAG_ID.DIV:case p.TAG_ID.NAV:case p.TAG_ID.PRE:case p.TAG_ID.MAIN:case p.TAG_ID.MENU:case p.TAG_ID.ASIDE:case p.TAG_ID.BUTTON:case p.TAG_ID.CENTER:case p.TAG_ID.FIGURE:case p.TAG_ID.FOOTER:case p.TAG_ID.HEADER:case p.TAG_ID.HGROUP:case p.TAG_ID.DIALOG:case p.TAG_ID.ADDRESS:case p.TAG_ID.ARTICLE:case p.TAG_ID.DETAILS:case p.TAG_ID.SECTION:case p.TAG_ID.SUMMARY:case p.TAG_ID.LISTING:case p.TAG_ID.FIELDSET:case p.TAG_ID.BLOCKQUOTE:case p.TAG_ID.FIGCAPTION:!function(e,t){let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}(e,t);break;case p.TAG_ID.LI:e.openElements.hasInListItemScope(p.TAG_ID.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(p.TAG_ID.LI),e.openElements.popUntilTagNamePopped(p.TAG_ID.LI));break;case p.TAG_ID.DD:case p.TAG_ID.DT:!function(e,t){let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}(e,t);break;case p.TAG_ID.H1:case p.TAG_ID.H2:case p.TAG_ID.H3:case p.TAG_ID.H4:case p.TAG_ID.H5:case p.TAG_ID.H6:e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped());break;case p.TAG_ID.BR:e._reconstructActiveFormattingElements(),e._insertFakeElement(p.TAG_NAMES.BR,p.TAG_ID.BR),e.openElements.pop(),e.framesetOk=!1;break;case p.TAG_ID.BODY:!function(e,t){if(e.openElements.hasInScope(p.TAG_ID.BODY)&&(e.insertionMode=i.AFTER_BODY,e.options.sourceCodeLocationInfo)){let r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e._setEndLocation(r,t)}}(e,t);break;case p.TAG_ID.HTML:e.openElements.hasInScope(p.TAG_ID.BODY)&&(e.insertionMode=i.AFTER_BODY,en(e,t));break;case p.TAG_ID.FORM:!function(e){let t=e.openElements.tmplCount>0,{formElement:r}=e;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(p.TAG_ID.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(p.TAG_ID.FORM):r&&e.openElements.remove(r))}(e);break;case p.TAG_ID.APPLET:case p.TAG_ID.OBJECT:case p.TAG_ID.MARQUEE:!function(e,t){let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}(e,t);break;case p.TAG_ID.TEMPLATE:b(e,t);break;default:x(e,t)}}function F(e,t){e.tmplInsertionModeStack.length>0?ei(e,t):_(e,t)}function H(e,t){if(E.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=i.IN_TABLE_TEXT,t.type){case f.TokenType.CHARACTER:Y(e,t);break;case f.TokenType.WHITESPACE_CHARACTER:V(e,t)}else q(e,t)}function U(e,t){switch(t.tagID){case p.TAG_ID.TD:case p.TAG_ID.TH:case p.TAG_ID.TR:e.openElements.clearBackToTableContext(),e._insertFakeElement(p.TAG_NAMES.TBODY,p.TAG_ID.TBODY),e.insertionMode=i.IN_TABLE_BODY,K(e,t);break;case p.TAG_ID.STYLE:case p.TAG_ID.SCRIPT:case p.TAG_ID.TEMPLATE:C(e,t);break;case p.TAG_ID.COL:e.openElements.clearBackToTableContext(),e._insertFakeElement(p.TAG_NAMES.COLGROUP,p.TAG_ID.COLGROUP),e.insertionMode=i.IN_COLUMN_GROUP,Q(e,t);break;case p.TAG_ID.FORM:e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,p.NS.HTML),e.formElement=e.openElements.current,e.openElements.pop());break;case p.TAG_ID.TABLE:e.openElements.hasInTableScope(p.TAG_ID.TABLE)&&(e.openElements.popUntilTagNamePopped(p.TAG_ID.TABLE),e._resetInsertionMode(),e._processStartTag(t));break;case p.TAG_ID.TBODY:case p.TAG_ID.TFOOT:case p.TAG_ID.THEAD:e.openElements.clearBackToTableContext(),e._insertElement(t,p.NS.HTML),e.insertionMode=i.IN_TABLE_BODY;break;case p.TAG_ID.INPUT:k(t)?e._appendElement(t,p.NS.HTML):q(e,t),t.ackSelfClosing=!0;break;case p.TAG_ID.CAPTION:e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,p.NS.HTML),e.insertionMode=i.IN_CAPTION;break;case p.TAG_ID.COLGROUP:e.openElements.clearBackToTableContext(),e._insertElement(t,p.NS.HTML),e.insertionMode=i.IN_COLUMN_GROUP;break;default:q(e,t)}}function j(e,t){switch(t.tagID){case p.TAG_ID.TABLE:e.openElements.hasInTableScope(p.TAG_ID.TABLE)&&(e.openElements.popUntilTagNamePopped(p.TAG_ID.TABLE),e._resetInsertionMode());break;case p.TAG_ID.TEMPLATE:b(e,t);break;case p.TAG_ID.BODY:case p.TAG_ID.CAPTION:case p.TAG_ID.COL:case p.TAG_ID.COLGROUP:case p.TAG_ID.HTML:case p.TAG_ID.TBODY:case p.TAG_ID.TD:case p.TAG_ID.TFOOT:case p.TAG_ID.TH:case p.TAG_ID.THEAD:case p.TAG_ID.TR:break;default:q(e,t)}}function q(e,t){let r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,v(e,t),e.fosterParentingEnabled=r}function V(e,t){e.pendingCharacterTokens.push(t)}function Y(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function z(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r0&&this._setContextModes(e,t)}onItemPop(e,t){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null===(i=(r=this.treeAdapter).onItemPop)||void 0===i||i.call(r,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):{current:e,currentTagId:t}=this.openElements,this._setContextModes(e,t)}}_setContextModes(e,t){let r=e===this.document||this.treeAdapter.getNamespaceURI(e)===p.NS.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,p.NS.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=i.TEXT}switchToPlaintextParsing(){this.insertionMode=i.TEXT,this.originalInsertionMode=i.IN_BODY,this.tokenizer.state=s.TokenizerMode.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===p.TAG_NAMES.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===p.NS.HTML)switch(this.fragmentContextID){case p.TAG_ID.TITLE:case p.TAG_ID.TEXTAREA:this.tokenizer.state=s.TokenizerMode.RCDATA;break;case p.TAG_ID.STYLE:case p.TAG_ID.XMP:case p.TAG_ID.IFRAME:case p.TAG_ID.NOEMBED:case p.TAG_ID.NOFRAMES:case p.TAG_ID.NOSCRIPT:this.tokenizer.state=s.TokenizerMode.RAWTEXT;break;case p.TAG_ID.SCRIPT:this.tokenizer.state=s.TokenizerMode.SCRIPT_DATA;break;case p.TAG_ID.PLAINTEXT:this.tokenizer.state=s.TokenizerMode.PLAINTEXT}}_setDocumentType(e){let t=e.name||\"\",r=e.publicId||\"\",i=e.systemId||\"\";if(this.treeAdapter.setDocumentType(this.document,t,r,i),e.location){let t=this.treeAdapter.getChildNodes(this.document).find(e=>this.treeAdapter.isDocumentTypeNode(e));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){let r=t&&Object.assign(Object.assign({},t),{startTag:t});this.treeAdapter.setNodeSourceCodeLocation(e,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{let t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){let r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r,e.location)}_insertElement(e,t){let r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r,e.location),this.openElements.push(r,e.tagID)}_insertFakeElement(e,t){let r=this.treeAdapter.createElement(e,p.NS.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,t)}_insertTemplate(e){let t=this.treeAdapter.createElement(e.tagName,p.NS.HTML,e.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,r),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){let e=this.treeAdapter.createElement(p.TAG_NAMES.HTML,p.NS.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,p.TAG_ID.HTML)}_appendCommentNode(e,t){let r=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,e.location)}_insertCharacters(e){let t,r;if(this._shouldFosterParentOnInsertion()?({parent:t,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(t,e.chars,r):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;let i=this.treeAdapter.getChildNodes(t),n=r?i.lastIndexOf(r):i.length,s=i[n-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){let{endLine:t,endCol:r,endOffset:i}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:t,endCol:r,endOffset:i})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,e.location)}_adoptNodes(e,t){for(let r=this.treeAdapter.getFirstChild(e);r;r=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(t,r)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){let r=t.location,i=this.treeAdapter.getTagName(e),n=t.type===f.TokenType.END_TAG&&i===t.tagName?{endTag:Object.assign({},r),endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,n)}}shouldProcessStartTagTokenInForeignContent(e){let t,r;return!!this.currentNotInHTML&&(0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,r=this.fragmentContextID):{current:t,currentTagId:r}=this.openElements,(e.tagID!==p.TAG_ID.SVG||this.treeAdapter.getTagName(t)!==p.TAG_NAMES.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==p.NS.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===p.TAG_ID.MGLYPH||e.tagID===p.TAG_ID.MALIGNMARK)&&!this._isIntegrationPoint(r,t,p.NS.HTML)))}_processToken(e){switch(e.type){case f.TokenType.CHARACTER:this.onCharacter(e);break;case f.TokenType.NULL_CHARACTER:this.onNullCharacter(e);break;case f.TokenType.COMMENT:this.onComment(e);break;case f.TokenType.DOCTYPE:this.onDoctype(e);break;case f.TokenType.START_TAG:this._processStartTag(e);break;case f.TokenType.END_TAG:this.onEndTag(e);break;case f.TokenType.EOF:this.onEof(e);break;case f.TokenType.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,r){let i=this.treeAdapter.getNamespaceURI(t),n=this.treeAdapter.getAttrList(t);return u.isIntegrationPoint(e,i,n,r)}_reconstructActiveFormattingElements(){let e=this.activeFormattingElements.entries.length;if(e){let t=this.activeFormattingElements.entries.findIndex(e=>e.type===o.EntryType.Marker||this.openElements.contains(e.element)),r=t<0?e-1:t-1;for(let e=r;e>=0;e--){let t=this.activeFormattingElements.entries[e];this._insertElement(t.token,this.treeAdapter.getNamespaceURI(t.element)),t.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=i.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(p.TAG_ID.P),this.openElements.popUntilTagNamePopped(p.TAG_ID.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case p.TAG_ID.TR:this.insertionMode=i.IN_ROW;return;case p.TAG_ID.TBODY:case p.TAG_ID.THEAD:case p.TAG_ID.TFOOT:this.insertionMode=i.IN_TABLE_BODY;return;case p.TAG_ID.CAPTION:this.insertionMode=i.IN_CAPTION;return;case p.TAG_ID.COLGROUP:this.insertionMode=i.IN_COLUMN_GROUP;return;case p.TAG_ID.TABLE:this.insertionMode=i.IN_TABLE;return;case p.TAG_ID.BODY:this.insertionMode=i.IN_BODY;return;case p.TAG_ID.FRAMESET:this.insertionMode=i.IN_FRAMESET;return;case p.TAG_ID.SELECT:this._resetInsertionModeForSelect(e);return;case p.TAG_ID.TEMPLATE:this.insertionMode=this.tmplInsertionModeStack[0];return;case p.TAG_ID.HTML:this.insertionMode=this.headElement?i.AFTER_HEAD:i.BEFORE_HEAD;return;case p.TAG_ID.TD:case p.TAG_ID.TH:if(e>0){this.insertionMode=i.IN_CELL;return}break;case p.TAG_ID.HEAD:if(e>0){this.insertionMode=i.IN_HEAD;return}}this.insertionMode=i.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){let e=this.openElements.tagIDs[t];if(e===p.TAG_ID.TEMPLATE)break;if(e===p.TAG_ID.TABLE){this.insertionMode=i.IN_SELECT_IN_TABLE;return}}this.insertionMode=i.IN_SELECT}_isElementCausesFosterParenting(e){return E.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){let t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case p.TAG_ID.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===p.NS.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case p.TAG_ID.TABLE:{let r=this.treeAdapter.getParentNode(t);if(r)return{parent:r,beforeElement:t};return{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){let t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){let r=this.treeAdapter.getNamespaceURI(e);return p.SPECIAL_ELEMENTS[r].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){this._insertCharacters(e),this.framesetOk=!1;return}switch(this.insertionMode){case i.INITIAL:I(this,e);break;case i.BEFORE_HTML:D(this,e);break;case i.BEFORE_HEAD:S(this,e);break;case i.IN_HEAD:y(this,e);break;case i.IN_HEAD_NO_SCRIPT:N(this,e);break;case i.AFTER_HEAD:O(this,e);break;case i.IN_BODY:case i.IN_CAPTION:case i.IN_CELL:case i.IN_TEMPLATE:P(this,e);break;case i.TEXT:case i.IN_SELECT:case i.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case i.IN_TABLE:case i.IN_TABLE_BODY:case i.IN_ROW:H(this,e);break;case i.IN_TABLE_TEXT:Y(this,e);break;case i.IN_COLUMN_GROUP:X(this,e);break;case i.AFTER_BODY:es(this,e);break;case i.AFTER_AFTER_BODY:ea(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){e.chars=d.REPLACEMENT_CHARACTER,this._insertCharacters(e);return}switch(this.insertionMode){case i.INITIAL:I(this,e);break;case i.BEFORE_HTML:D(this,e);break;case i.BEFORE_HEAD:S(this,e);break;case i.IN_HEAD:y(this,e);break;case i.IN_HEAD_NO_SCRIPT:N(this,e);break;case i.AFTER_HEAD:O(this,e);break;case i.TEXT:this._insertCharacters(e);break;case i.IN_TABLE:case i.IN_TABLE_BODY:case i.IN_ROW:H(this,e);break;case i.IN_COLUMN_GROUP:X(this,e);break;case i.AFTER_BODY:es(this,e);break;case i.AFTER_AFTER_BODY:ea(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML){A(this,e);return}switch(this.insertionMode){case i.INITIAL:case i.BEFORE_HTML:case i.BEFORE_HEAD:case i.IN_HEAD:case i.IN_HEAD_NO_SCRIPT:case i.AFTER_HEAD:case i.IN_BODY:case i.IN_TABLE:case i.IN_CAPTION:case i.IN_COLUMN_GROUP:case i.IN_TABLE_BODY:case i.IN_ROW:case i.IN_CELL:case i.IN_SELECT:case i.IN_SELECT_IN_TABLE:case i.IN_TEMPLATE:case i.IN_FRAMESET:case i.AFTER_FRAMESET:A(this,e);break;case i.IN_TABLE_TEXT:z(this,e);break;case i.AFTER_BODY:!function(e,t){e._appendCommentNode(t,e.openElements.items[0])}(this,e);break;case i.AFTER_AFTER_BODY:case i.AFTER_AFTER_FRAMESET:!function(e,t){e._appendCommentNode(t,e.document)}(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case i.INITIAL:!function(e,t){e._setDocumentType(t);let r=t.forceQuirks?p.DOCUMENT_MODE.QUIRKS:c.getDocumentMode(t);c.isConforming(t)||e._err(t,h.ERR.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=i.BEFORE_HTML}(this,e);break;case i.BEFORE_HEAD:case i.IN_HEAD:case i.IN_HEAD_NO_SCRIPT:case i.AFTER_HEAD:this._err(e,h.ERR.misplacedDoctype);break;case i.IN_TABLE_TEXT:z(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,h.ERR.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(u.causesExit(t))eo(e),e._startTagOutsideForeignContent(t);else{let r=e._getAdjustedCurrentElement(),i=e.treeAdapter.getNamespaceURI(r);i===p.NS.MATHML?u.adjustTokenMathMLAttrs(t):i===p.NS.SVG&&(u.adjustTokenSVGTagName(t),u.adjustTokenSVGAttrs(t)),u.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,i):e._insertElement(t,i),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case i.INITIAL:I(this,e);break;case i.BEFORE_HTML:e.tagID===p.TAG_ID.HTML?(this._insertElement(e,p.NS.HTML),this.insertionMode=i.BEFORE_HEAD):D(this,e);break;case i.BEFORE_HEAD:!function(e,t){switch(t.tagID){case p.TAG_ID.HTML:B(e,t);break;case p.TAG_ID.HEAD:e._insertElement(t,p.NS.HTML),e.headElement=e.openElements.current,e.insertionMode=i.IN_HEAD;break;default:S(e,t)}}(this,e);break;case i.IN_HEAD:C(this,e);break;case i.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case p.TAG_ID.HTML:B(e,t);break;case p.TAG_ID.BASEFONT:case p.TAG_ID.BGSOUND:case p.TAG_ID.HEAD:case p.TAG_ID.LINK:case p.TAG_ID.META:case p.TAG_ID.NOFRAMES:case p.TAG_ID.STYLE:C(e,t);break;case p.TAG_ID.NOSCRIPT:e._err(t,h.ERR.nestedNoscriptInHead);break;default:N(e,t)}}(this,e);break;case i.AFTER_HEAD:!function(e,t){switch(t.tagID){case p.TAG_ID.HTML:B(e,t);break;case p.TAG_ID.BODY:e._insertElement(t,p.NS.HTML),e.framesetOk=!1,e.insertionMode=i.IN_BODY;break;case p.TAG_ID.FRAMESET:e._insertElement(t,p.NS.HTML),e.insertionMode=i.IN_FRAMESET;break;case p.TAG_ID.BASE:case p.TAG_ID.BASEFONT:case p.TAG_ID.BGSOUND:case p.TAG_ID.LINK:case p.TAG_ID.META:case p.TAG_ID.NOFRAMES:case p.TAG_ID.SCRIPT:case p.TAG_ID.STYLE:case p.TAG_ID.TEMPLATE:case p.TAG_ID.TITLE:e._err(t,h.ERR.abandonedHeadElementChild),e.openElements.push(e.headElement,p.TAG_ID.HEAD),C(e,t),e.openElements.remove(e.headElement);break;case p.TAG_ID.HEAD:e._err(t,h.ERR.misplacedStartTagForHeadElement);break;default:O(e,t)}}(this,e);break;case i.IN_BODY:B(this,e);break;case i.IN_TABLE:U(this,e);break;case i.IN_TABLE_TEXT:z(this,e);break;case i.IN_CAPTION:!function(e,t){let r=t.tagID;W.has(r)?e.openElements.hasInTableScope(p.TAG_ID.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(p.TAG_ID.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=i.IN_TABLE,U(e,t)):B(e,t)}(this,e);break;case i.IN_COLUMN_GROUP:Q(this,e);break;case i.IN_TABLE_BODY:K(this,e);break;case i.IN_ROW:Z(this,e);break;case i.IN_CELL:!function(e,t){let r=t.tagID;W.has(r)?(e.openElements.hasInTableScope(p.TAG_ID.TD)||e.openElements.hasInTableScope(p.TAG_ID.TH))&&(e._closeTableCell(),Z(e,t)):B(e,t)}(this,e);break;case i.IN_SELECT:et(this,e);break;case i.IN_SELECT_IN_TABLE:!function(e,t){let r=t.tagID;r===p.TAG_ID.CAPTION||r===p.TAG_ID.TABLE||r===p.TAG_ID.TBODY||r===p.TAG_ID.TFOOT||r===p.TAG_ID.THEAD||r===p.TAG_ID.TR||r===p.TAG_ID.TD||r===p.TAG_ID.TH?(e.openElements.popUntilTagNamePopped(p.TAG_ID.SELECT),e._resetInsertionMode(),e._processStartTag(t)):et(e,t)}(this,e);break;case i.IN_TEMPLATE:!function(e,t){switch(t.tagID){case p.TAG_ID.BASE:case p.TAG_ID.BASEFONT:case p.TAG_ID.BGSOUND:case p.TAG_ID.LINK:case p.TAG_ID.META:case p.TAG_ID.NOFRAMES:case p.TAG_ID.SCRIPT:case p.TAG_ID.STYLE:case p.TAG_ID.TEMPLATE:case p.TAG_ID.TITLE:C(e,t);break;case p.TAG_ID.CAPTION:case p.TAG_ID.COLGROUP:case p.TAG_ID.TBODY:case p.TAG_ID.TFOOT:case p.TAG_ID.THEAD:e.tmplInsertionModeStack[0]=i.IN_TABLE,e.insertionMode=i.IN_TABLE,U(e,t);break;case p.TAG_ID.COL:e.tmplInsertionModeStack[0]=i.IN_COLUMN_GROUP,e.insertionMode=i.IN_COLUMN_GROUP,Q(e,t);break;case p.TAG_ID.TR:e.tmplInsertionModeStack[0]=i.IN_TABLE_BODY,e.insertionMode=i.IN_TABLE_BODY,K(e,t);break;case p.TAG_ID.TD:case p.TAG_ID.TH:e.tmplInsertionModeStack[0]=i.IN_ROW,e.insertionMode=i.IN_ROW,Z(e,t);break;default:e.tmplInsertionModeStack[0]=i.IN_BODY,e.insertionMode=i.IN_BODY,B(e,t)}}(this,e);break;case i.AFTER_BODY:e.tagID===p.TAG_ID.HTML?B(this,e):es(this,e);break;case i.IN_FRAMESET:!function(e,t){switch(t.tagID){case p.TAG_ID.HTML:B(e,t);break;case p.TAG_ID.FRAMESET:e._insertElement(t,p.NS.HTML);break;case p.TAG_ID.FRAME:e._appendElement(t,p.NS.HTML),t.ackSelfClosing=!0;break;case p.TAG_ID.NOFRAMES:C(e,t)}}(this,e);break;case i.AFTER_FRAMESET:!function(e,t){switch(t.tagID){case p.TAG_ID.HTML:B(e,t);break;case p.TAG_ID.NOFRAMES:C(e,t)}}(this,e);break;case i.AFTER_AFTER_BODY:e.tagID===p.TAG_ID.HTML?B(this,e):ea(this,e);break;case i.AFTER_AFTER_FRAMESET:!function(e,t){switch(t.tagID){case p.TAG_ID.HTML:B(e,t);break;case p.TAG_ID.NOFRAMES:C(e,t)}}(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===p.TAG_ID.P||t.tagID===p.TAG_ID.BR){eo(e),e._endTagOutsideForeignContent(t);return}for(let r=e.openElements.stackTop;r>0;r--){let i=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(i)===p.NS.HTML){e._endTagOutsideForeignContent(t);break}let n=e.treeAdapter.getTagName(i);if(n.toLowerCase()===t.tagName){t.tagName=n,e.openElements.shortenToLength(r);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){var t;switch(this.insertionMode){case i.INITIAL:I(this,e);break;case i.BEFORE_HTML:!function(e,t){let r=t.tagID;(r===p.TAG_ID.HTML||r===p.TAG_ID.HEAD||r===p.TAG_ID.BODY||r===p.TAG_ID.BR)&&D(e,t)}(this,e);break;case i.BEFORE_HEAD:!function(e,t){let r=t.tagID;r===p.TAG_ID.HEAD||r===p.TAG_ID.BODY||r===p.TAG_ID.HTML||r===p.TAG_ID.BR?S(e,t):e._err(t,h.ERR.endTagWithoutMatchingOpenElement)}(this,e);break;case i.IN_HEAD:!function(e,t){switch(t.tagID){case p.TAG_ID.HEAD:e.openElements.pop(),e.insertionMode=i.AFTER_HEAD;break;case p.TAG_ID.BODY:case p.TAG_ID.BR:case p.TAG_ID.HTML:y(e,t);break;case p.TAG_ID.TEMPLATE:b(e,t);break;default:e._err(t,h.ERR.endTagWithoutMatchingOpenElement)}}(this,e);break;case i.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case p.TAG_ID.NOSCRIPT:e.openElements.pop(),e.insertionMode=i.IN_HEAD;break;case p.TAG_ID.BR:N(e,t);break;default:e._err(t,h.ERR.endTagWithoutMatchingOpenElement)}}(this,e);break;case i.AFTER_HEAD:!function(e,t){switch(t.tagID){case p.TAG_ID.BODY:case p.TAG_ID.HTML:case p.TAG_ID.BR:O(e,t);break;case p.TAG_ID.TEMPLATE:b(e,t);break;default:e._err(t,h.ERR.endTagWithoutMatchingOpenElement)}}(this,e);break;case i.IN_BODY:G(this,e);break;case i.TEXT:e.tagID===p.TAG_ID.SCRIPT&&(null===(t=this.scriptHandler)||void 0===t||t.call(this,this.openElements.current)),this.openElements.pop(),this.insertionMode=this.originalInsertionMode;break;case i.IN_TABLE:j(this,e);break;case i.IN_TABLE_TEXT:z(this,e);break;case i.IN_CAPTION:!function(e,t){let r=t.tagID;switch(r){case p.TAG_ID.CAPTION:case p.TAG_ID.TABLE:e.openElements.hasInTableScope(p.TAG_ID.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(p.TAG_ID.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=i.IN_TABLE,r===p.TAG_ID.TABLE&&j(e,t));break;case p.TAG_ID.BODY:case p.TAG_ID.COL:case p.TAG_ID.COLGROUP:case p.TAG_ID.HTML:case p.TAG_ID.TBODY:case p.TAG_ID.TD:case p.TAG_ID.TFOOT:case p.TAG_ID.TH:case p.TAG_ID.THEAD:case p.TAG_ID.TR:break;default:G(e,t)}}(this,e);break;case i.IN_COLUMN_GROUP:!function(e,t){switch(t.tagID){case p.TAG_ID.COLGROUP:e.openElements.currentTagId===p.TAG_ID.COLGROUP&&(e.openElements.pop(),e.insertionMode=i.IN_TABLE);break;case p.TAG_ID.TEMPLATE:b(e,t);break;case p.TAG_ID.COL:break;default:X(e,t)}}(this,e);break;case i.IN_TABLE_BODY:J(this,e);break;case i.IN_ROW:ee(this,e);break;case i.IN_CELL:!function(e,t){let r=t.tagID;switch(r){case p.TAG_ID.TD:case p.TAG_ID.TH:e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=i.IN_ROW);break;case p.TAG_ID.TABLE:case p.TAG_ID.TBODY:case p.TAG_ID.TFOOT:case p.TAG_ID.THEAD:case p.TAG_ID.TR:e.openElements.hasInTableScope(r)&&(e._closeTableCell(),ee(e,t));break;case p.TAG_ID.BODY:case p.TAG_ID.CAPTION:case p.TAG_ID.COL:case p.TAG_ID.COLGROUP:case p.TAG_ID.HTML:break;default:G(e,t)}}(this,e);break;case i.IN_SELECT:er(this,e);break;case i.IN_SELECT_IN_TABLE:!function(e,t){let r=t.tagID;r===p.TAG_ID.CAPTION||r===p.TAG_ID.TABLE||r===p.TAG_ID.TBODY||r===p.TAG_ID.TFOOT||r===p.TAG_ID.THEAD||r===p.TAG_ID.TR||r===p.TAG_ID.TD||r===p.TAG_ID.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(p.TAG_ID.SELECT),e._resetInsertionMode(),e.onEndTag(t)):er(e,t)}(this,e);break;case i.IN_TEMPLATE:e.tagID===p.TAG_ID.TEMPLATE&&b(this,e);break;case i.AFTER_BODY:en(this,e);break;case i.IN_FRAMESET:e.tagID!==p.TAG_ID.FRAMESET||this.openElements.isRootHtmlElementCurrent()||(this.openElements.pop(),this.fragmentContext||this.openElements.currentTagId===p.TAG_ID.FRAMESET||(this.insertionMode=i.AFTER_FRAMESET));break;case i.AFTER_FRAMESET:e.tagID===p.TAG_ID.HTML&&(this.insertionMode=i.AFTER_AFTER_FRAMESET);break;case i.AFTER_AFTER_BODY:ea(this,e)}}onEof(e){switch(this.insertionMode){case i.INITIAL:I(this,e);break;case i.BEFORE_HTML:D(this,e);break;case i.BEFORE_HEAD:S(this,e);break;case i.IN_HEAD:y(this,e);break;case i.IN_HEAD_NO_SCRIPT:N(this,e);break;case i.AFTER_HEAD:O(this,e);break;case i.IN_BODY:case i.IN_TABLE:case i.IN_CAPTION:case i.IN_COLUMN_GROUP:case i.IN_TABLE_BODY:case i.IN_ROW:case i.IN_CELL:case i.IN_SELECT:case i.IN_SELECT_IN_TABLE:F(this,e);break;case i.TEXT:this._err(e,h.ERR.eofInElementThatCanContainOnlyText),this.openElements.pop(),this.insertionMode=this.originalInsertionMode,this.onEof(e);break;case i.IN_TABLE_TEXT:z(this,e);break;case i.IN_TEMPLATE:ei(this,e);break;case i.AFTER_BODY:case i.IN_FRAMESET:case i.AFTER_FRAMESET:case i.AFTER_AFTER_BODY:case i.AFTER_AFTER_FRAMESET:_(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===d.CODE_POINTS.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(e);return}switch(this.insertionMode){case i.IN_HEAD:case i.IN_HEAD_NO_SCRIPT:case i.AFTER_HEAD:case i.TEXT:case i.IN_COLUMN_GROUP:case i.IN_SELECT:case i.IN_SELECT_IN_TABLE:case i.IN_FRAMESET:case i.AFTER_FRAMESET:this._insertCharacters(e);break;case i.IN_BODY:case i.IN_CAPTION:case i.IN_CELL:case i.IN_TEMPLATE:case i.AFTER_BODY:case i.AFTER_AFTER_BODY:case i.AFTER_AFTER_FRAMESET:R(this,e);break;case i.IN_TABLE:case i.IN_TABLE_BODY:case i.IN_ROW:H(this,e);break;case i.IN_TABLE_TEXT:V(this,e)}}};let W=new Set([p.TAG_ID.CAPTION,p.TAG_ID.COL,p.TAG_ID.COLGROUP,p.TAG_ID.TBODY,p.TAG_ID.TD,p.TAG_ID.TFOOT,p.TAG_ID.TH,p.TAG_ID.THEAD,p.TAG_ID.TR]);function Q(e,t){switch(t.tagID){case p.TAG_ID.HTML:B(e,t);break;case p.TAG_ID.COL:e._appendElement(t,p.NS.HTML),t.ackSelfClosing=!0;break;case p.TAG_ID.TEMPLATE:C(e,t);break;default:X(e,t)}}function X(e,t){e.openElements.currentTagId===p.TAG_ID.COLGROUP&&(e.openElements.pop(),e.insertionMode=i.IN_TABLE,e._processToken(t))}function K(e,t){switch(t.tagID){case p.TAG_ID.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,p.NS.HTML),e.insertionMode=i.IN_ROW;break;case p.TAG_ID.TH:case p.TAG_ID.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(p.TAG_NAMES.TR,p.TAG_ID.TR),e.insertionMode=i.IN_ROW,Z(e,t);break;case p.TAG_ID.CAPTION:case p.TAG_ID.COL:case p.TAG_ID.COLGROUP:case p.TAG_ID.TBODY:case p.TAG_ID.TFOOT:case p.TAG_ID.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=i.IN_TABLE,U(e,t));break;default:U(e,t)}}function J(e,t){let r=t.tagID;switch(t.tagID){case p.TAG_ID.TBODY:case p.TAG_ID.TFOOT:case p.TAG_ID.THEAD:e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=i.IN_TABLE);break;case p.TAG_ID.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=i.IN_TABLE,j(e,t));break;case p.TAG_ID.BODY:case p.TAG_ID.CAPTION:case p.TAG_ID.COL:case p.TAG_ID.COLGROUP:case p.TAG_ID.HTML:case p.TAG_ID.TD:case p.TAG_ID.TH:case p.TAG_ID.TR:break;default:j(e,t)}}function Z(e,t){switch(t.tagID){case p.TAG_ID.TH:case p.TAG_ID.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,p.NS.HTML),e.insertionMode=i.IN_CELL,e.activeFormattingElements.insertMarker();break;case p.TAG_ID.CAPTION:case p.TAG_ID.COL:case p.TAG_ID.COLGROUP:case p.TAG_ID.TBODY:case p.TAG_ID.TFOOT:case p.TAG_ID.THEAD:case p.TAG_ID.TR:e.openElements.hasInTableScope(p.TAG_ID.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=i.IN_TABLE_BODY,K(e,t));break;default:U(e,t)}}function ee(e,t){switch(t.tagID){case p.TAG_ID.TR:e.openElements.hasInTableScope(p.TAG_ID.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=i.IN_TABLE_BODY);break;case p.TAG_ID.TABLE:e.openElements.hasInTableScope(p.TAG_ID.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=i.IN_TABLE_BODY,J(e,t));break;case p.TAG_ID.TBODY:case p.TAG_ID.TFOOT:case p.TAG_ID.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(p.TAG_ID.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=i.IN_TABLE_BODY,J(e,t));break;case p.TAG_ID.BODY:case p.TAG_ID.CAPTION:case p.TAG_ID.COL:case p.TAG_ID.COLGROUP:case p.TAG_ID.HTML:case p.TAG_ID.TD:case p.TAG_ID.TH:break;default:j(e,t)}}function et(e,t){switch(t.tagID){case p.TAG_ID.HTML:B(e,t);break;case p.TAG_ID.OPTION:e.openElements.currentTagId===p.TAG_ID.OPTION&&e.openElements.pop(),e._insertElement(t,p.NS.HTML);break;case p.TAG_ID.OPTGROUP:e.openElements.currentTagId===p.TAG_ID.OPTION&&e.openElements.pop(),e.openElements.currentTagId===p.TAG_ID.OPTGROUP&&e.openElements.pop(),e._insertElement(t,p.NS.HTML);break;case p.TAG_ID.INPUT:case p.TAG_ID.KEYGEN:case p.TAG_ID.TEXTAREA:case p.TAG_ID.SELECT:e.openElements.hasInSelectScope(p.TAG_ID.SELECT)&&(e.openElements.popUntilTagNamePopped(p.TAG_ID.SELECT),e._resetInsertionMode(),t.tagID!==p.TAG_ID.SELECT&&e._processStartTag(t));break;case p.TAG_ID.SCRIPT:case p.TAG_ID.TEMPLATE:C(e,t)}}function er(e,t){switch(t.tagID){case p.TAG_ID.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===p.TAG_ID.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===p.TAG_ID.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===p.TAG_ID.OPTGROUP&&e.openElements.pop();break;case p.TAG_ID.OPTION:e.openElements.currentTagId===p.TAG_ID.OPTION&&e.openElements.pop();break;case p.TAG_ID.SELECT:e.openElements.hasInSelectScope(p.TAG_ID.SELECT)&&(e.openElements.popUntilTagNamePopped(p.TAG_ID.SELECT),e._resetInsertionMode());break;case p.TAG_ID.TEMPLATE:b(e,t)}}function ei(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(p.TAG_ID.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):_(e,t)}function en(e,t){var r;if(t.tagID===p.TAG_ID.HTML){if(e.fragmentContext||(e.insertionMode=i.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===p.TAG_ID.HTML){e._setEndLocation(e.openElements.items[0],t);let i=e.openElements.items[1];!i||(null===(r=e.treeAdapter.getNodeSourceCodeLocation(i))||void 0===r?void 0:r.endTag)||e._setEndLocation(i,t)}}else es(e,t)}function es(e,t){e.insertionMode=i.IN_BODY,v(e,t)}function ea(e,t){e.insertionMode=i.IN_BODY,v(e,t)}function eo(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==p.NS.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}},{\"../common/doctype.js\":139,\"../common/error-codes.js\":140,\"../common/foreign-content.js\":141,\"../common/html.js\":142,\"../common/token.js\":143,\"../common/unicode.js\":144,\"../tokenizer/index.js\":150,\"../tree-adapters/default.js\":152,\"./formatting-element-list.js\":146,\"./open-element-stack.js\":148}],148:[function(e,t,r){Object.defineProperty(r,\"__esModule\",{value:!0}),r.OpenElementStack=void 0;let i=e(\"../common/html.js\"),n=new Set([i.TAG_ID.DD,i.TAG_ID.DT,i.TAG_ID.LI,i.TAG_ID.OPTGROUP,i.TAG_ID.OPTION,i.TAG_ID.P,i.TAG_ID.RB,i.TAG_ID.RP,i.TAG_ID.RT,i.TAG_ID.RTC]),s=new Set([...n,i.TAG_ID.CAPTION,i.TAG_ID.COLGROUP,i.TAG_ID.TBODY,i.TAG_ID.TD,i.TAG_ID.TFOOT,i.TAG_ID.TH,i.TAG_ID.THEAD,i.TAG_ID.TR]),a=new Map([[i.TAG_ID.APPLET,i.NS.HTML],[i.TAG_ID.CAPTION,i.NS.HTML],[i.TAG_ID.HTML,i.NS.HTML],[i.TAG_ID.MARQUEE,i.NS.HTML],[i.TAG_ID.OBJECT,i.NS.HTML],[i.TAG_ID.TABLE,i.NS.HTML],[i.TAG_ID.TD,i.NS.HTML],[i.TAG_ID.TEMPLATE,i.NS.HTML],[i.TAG_ID.TH,i.NS.HTML],[i.TAG_ID.ANNOTATION_XML,i.NS.MATHML],[i.TAG_ID.MI,i.NS.MATHML],[i.TAG_ID.MN,i.NS.MATHML],[i.TAG_ID.MO,i.NS.MATHML],[i.TAG_ID.MS,i.NS.MATHML],[i.TAG_ID.MTEXT,i.NS.MATHML],[i.TAG_ID.DESC,i.NS.SVG],[i.TAG_ID.FOREIGN_OBJECT,i.NS.SVG],[i.TAG_ID.TITLE,i.NS.SVG]]),o=[i.TAG_ID.H1,i.TAG_ID.H2,i.TAG_ID.H3,i.TAG_ID.H4,i.TAG_ID.H5,i.TAG_ID.H6],l=[i.TAG_ID.TR,i.TAG_ID.TEMPLATE,i.TAG_ID.HTML],c=[i.TAG_ID.TBODY,i.TAG_ID.TFOOT,i.TAG_ID.THEAD,i.TAG_ID.TEMPLATE,i.TAG_ID.HTML],u=[i.TAG_ID.TABLE,i.TAG_ID.TEMPLATE,i.TAG_ID.HTML],h=[i.TAG_ID.TD,i.TAG_ID.TH];r.OpenElementStack=class{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,r){this.treeAdapter=t,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=i.TAG_ID.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===i.TAG_ID.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===i.NS.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){let e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){let r=this._indexOf(e);this.items[r]=t,r===this.stackTop&&(this.current=t)}insertAfter(e,t,r){let i=this._indexOf(e)+1;this.items.splice(i,0,t),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do t=this.tagIDs.lastIndexOf(e,t-1);while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==i.NS.HTML)this.shortenToLength(t<0?0:t)}shortenToLength(e){for(;this.stackTop>=e;){let t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop=0;r--)if(e.includes(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===t)return r;return -1}clearBackTo(e,t){let r=this._indexOfTagNames(e,t);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(u,i.NS.HTML)}clearBackToTableBodyContext(){this.clearBackTo(c,i.NS.HTML)}clearBackToTableRowContext(){this.clearBackTo(l,i.NS.HTML)}remove(e){let t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===i.TAG_ID.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===i.TAG_ID.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){let r=this.tagIDs[t],n=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&n===i.NS.HTML)break;if(a.get(r)===n)return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e],r=this.treeAdapter.getNamespaceURI(this.items[e]);if((0,i.isNumberedHeader)(t)&&r===i.NS.HTML)break;if(a.get(t)===r)return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){let r=this.tagIDs[t],n=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&n===i.NS.HTML)break;if((r===i.TAG_ID.UL||r===i.TAG_ID.OL)&&n===i.NS.HTML||a.get(r)===n)return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){let r=this.tagIDs[t],n=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&n===i.NS.HTML)break;if(r===i.TAG_ID.BUTTON&&n===i.NS.HTML||a.get(r)===n)return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){let r=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===i.NS.HTML){if(r===e)return!0;if(r===i.TAG_ID.TABLE||r===i.TAG_ID.TEMPLATE||r===i.TAG_ID.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e];if(this.treeAdapter.getNamespaceURI(this.items[e])===i.NS.HTML){if(t===i.TAG_ID.TBODY||t===i.TAG_ID.THEAD||t===i.TAG_ID.TFOOT)return!0;if(t===i.TAG_ID.TABLE||t===i.TAG_ID.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){let r=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===i.NS.HTML){if(r===e)return!0;if(r!==i.TAG_ID.OPTION&&r!==i.TAG_ID.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;n.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;s.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==e&&s.has(this.currentTagId);)this.pop()}}},{\"../common/html.js\":142}],149:[function(e,t,r){Object.defineProperty(r,\"__esModule\",{value:!0}),r.serializeOuter=r.serialize=void 0;let i=e(\"../common/html.js\"),n=e(\"entities/lib/escape.js\"),s=e(\"../tree-adapters/default.js\"),a=new Set([i.TAG_NAMES.AREA,i.TAG_NAMES.BASE,i.TAG_NAMES.BASEFONT,i.TAG_NAMES.BGSOUND,i.TAG_NAMES.BR,i.TAG_NAMES.COL,i.TAG_NAMES.EMBED,i.TAG_NAMES.FRAME,i.TAG_NAMES.HR,i.TAG_NAMES.IMG,i.TAG_NAMES.INPUT,i.TAG_NAMES.KEYGEN,i.TAG_NAMES.LINK,i.TAG_NAMES.META,i.TAG_NAMES.PARAM,i.TAG_NAMES.SOURCE,i.TAG_NAMES.TRACK,i.TAG_NAMES.WBR]);function o(e,t){return t.treeAdapter.isElementNode(e)&&t.treeAdapter.getNamespaceURI(e)===i.NS.HTML&&a.has(t.treeAdapter.getTagName(e))}let l={treeAdapter:s.defaultTreeAdapter,scriptingEnabled:!0};function c(e,t){let r=\"\",n=t.treeAdapter.isElementNode(e)&&t.treeAdapter.getTagName(e)===i.TAG_NAMES.TEMPLATE&&t.treeAdapter.getNamespaceURI(e)===i.NS.HTML?t.treeAdapter.getTemplateContent(e):e,s=t.treeAdapter.getChildNodes(n);if(s)for(let e of s)r+=u(e,t);return r}function u(e,t){return t.treeAdapter.isElementNode(e)?function(e,t){let r=t.treeAdapter.getTagName(e);return`<${r}${function(e,{treeAdapter:t}){let r=\"\";for(let s of t.getAttrList(e)){if(r+=\" \",s.namespace)switch(s.namespace){case i.NS.XML:r+=`xml:${s.name}`;break;case i.NS.XMLNS:\"xmlns\"!==s.name&&(r+=\"xmlns:\"),r+=s.name;break;case i.NS.XLINK:r+=`xlink:${s.name}`;break;default:r+=`${s.prefix}:${s.name}`}else r+=s.name;r+=`=\"${(0,n.escapeAttribute)(s.value)}\"`}return r}(e,t)}>${o(e,t)?\"\":`${c(e,t)}`}`}(e,t):t.treeAdapter.isTextNode(e)?function(e,t){let{treeAdapter:r}=t,s=r.getTextNodeContent(e),a=r.getParentNode(e),o=a&&r.isElementNode(a)&&r.getTagName(a);return o&&r.getNamespaceURI(a)===i.NS.HTML&&(0,i.hasUnescapedText)(o,t.scriptingEnabled)?s:(0,n.escapeText)(s)}(e,t):t.treeAdapter.isCommentNode(e)?function(e,{treeAdapter:t}){return``}(e,t):t.treeAdapter.isDocumentTypeNode(e)?function(e,{treeAdapter:t}){return``}(e,t):\"\"}r.serialize=function(e,t){let r=Object.assign(Object.assign({},l),t);return o(e,r)?\"\":c(e,r)},r.serializeOuter=function(e,t){return u(e,Object.assign(Object.assign({},l),t))}},{\"../common/html.js\":142,\"../tree-adapters/default.js\":152,\"entities/lib/escape.js\":155}],150:[function(e,t,r){var i,n;Object.defineProperty(r,\"__esModule\",{value:!0}),r.Tokenizer=r.TokenizerMode=void 0;let s=e(\"./preprocessor.js\"),a=e(\"../common/unicode.js\"),o=e(\"../common/token.js\"),l=e(\"entities/lib/decode.js\"),c=e(\"../common/error-codes.js\"),u=e(\"../common/html.js\"),h=new Map([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function d(e){return e>=a.CODE_POINTS.DIGIT_0&&e<=a.CODE_POINTS.DIGIT_9}function p(e){return e>=a.CODE_POINTS.LATIN_CAPITAL_A&&e<=a.CODE_POINTS.LATIN_CAPITAL_Z}function f(e){return e>=a.CODE_POINTS.LATIN_SMALL_A&&e<=a.CODE_POINTS.LATIN_SMALL_Z||p(e)}function T(e){return f(e)||d(e)}function E(e){return e>=a.CODE_POINTS.LATIN_CAPITAL_A&&e<=a.CODE_POINTS.LATIN_CAPITAL_F}function m(e){return e>=a.CODE_POINTS.LATIN_SMALL_A&&e<=a.CODE_POINTS.LATIN_SMALL_F}function g(e){return e===a.CODE_POINTS.SPACE||e===a.CODE_POINTS.LINE_FEED||e===a.CODE_POINTS.TABULATION||e===a.CODE_POINTS.FORM_FEED}function A(e){return g(e)||e===a.CODE_POINTS.SOLIDUS||e===a.CODE_POINTS.GREATER_THAN_SIGN}(n=i||(i={}))[n.DATA=0]=\"DATA\",n[n.RCDATA=1]=\"RCDATA\",n[n.RAWTEXT=2]=\"RAWTEXT\",n[n.SCRIPT_DATA=3]=\"SCRIPT_DATA\",n[n.PLAINTEXT=4]=\"PLAINTEXT\",n[n.TAG_OPEN=5]=\"TAG_OPEN\",n[n.END_TAG_OPEN=6]=\"END_TAG_OPEN\",n[n.TAG_NAME=7]=\"TAG_NAME\",n[n.RCDATA_LESS_THAN_SIGN=8]=\"RCDATA_LESS_THAN_SIGN\",n[n.RCDATA_END_TAG_OPEN=9]=\"RCDATA_END_TAG_OPEN\",n[n.RCDATA_END_TAG_NAME=10]=\"RCDATA_END_TAG_NAME\",n[n.RAWTEXT_LESS_THAN_SIGN=11]=\"RAWTEXT_LESS_THAN_SIGN\",n[n.RAWTEXT_END_TAG_OPEN=12]=\"RAWTEXT_END_TAG_OPEN\",n[n.RAWTEXT_END_TAG_NAME=13]=\"RAWTEXT_END_TAG_NAME\",n[n.SCRIPT_DATA_LESS_THAN_SIGN=14]=\"SCRIPT_DATA_LESS_THAN_SIGN\",n[n.SCRIPT_DATA_END_TAG_OPEN=15]=\"SCRIPT_DATA_END_TAG_OPEN\",n[n.SCRIPT_DATA_END_TAG_NAME=16]=\"SCRIPT_DATA_END_TAG_NAME\",n[n.SCRIPT_DATA_ESCAPE_START=17]=\"SCRIPT_DATA_ESCAPE_START\",n[n.SCRIPT_DATA_ESCAPE_START_DASH=18]=\"SCRIPT_DATA_ESCAPE_START_DASH\",n[n.SCRIPT_DATA_ESCAPED=19]=\"SCRIPT_DATA_ESCAPED\",n[n.SCRIPT_DATA_ESCAPED_DASH=20]=\"SCRIPT_DATA_ESCAPED_DASH\",n[n.SCRIPT_DATA_ESCAPED_DASH_DASH=21]=\"SCRIPT_DATA_ESCAPED_DASH_DASH\",n[n.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]=\"SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN\",n[n.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]=\"SCRIPT_DATA_ESCAPED_END_TAG_OPEN\",n[n.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]=\"SCRIPT_DATA_ESCAPED_END_TAG_NAME\",n[n.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]=\"SCRIPT_DATA_DOUBLE_ESCAPE_START\",n[n.SCRIPT_DATA_DOUBLE_ESCAPED=26]=\"SCRIPT_DATA_DOUBLE_ESCAPED\",n[n.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]=\"SCRIPT_DATA_DOUBLE_ESCAPED_DASH\",n[n.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]=\"SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH\",n[n.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]=\"SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN\",n[n.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]=\"SCRIPT_DATA_DOUBLE_ESCAPE_END\",n[n.BEFORE_ATTRIBUTE_NAME=31]=\"BEFORE_ATTRIBUTE_NAME\",n[n.ATTRIBUTE_NAME=32]=\"ATTRIBUTE_NAME\",n[n.AFTER_ATTRIBUTE_NAME=33]=\"AFTER_ATTRIBUTE_NAME\",n[n.BEFORE_ATTRIBUTE_VALUE=34]=\"BEFORE_ATTRIBUTE_VALUE\",n[n.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]=\"ATTRIBUTE_VALUE_DOUBLE_QUOTED\",n[n.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]=\"ATTRIBUTE_VALUE_SINGLE_QUOTED\",n[n.ATTRIBUTE_VALUE_UNQUOTED=37]=\"ATTRIBUTE_VALUE_UNQUOTED\",n[n.AFTER_ATTRIBUTE_VALUE_QUOTED=38]=\"AFTER_ATTRIBUTE_VALUE_QUOTED\",n[n.SELF_CLOSING_START_TAG=39]=\"SELF_CLOSING_START_TAG\",n[n.BOGUS_COMMENT=40]=\"BOGUS_COMMENT\",n[n.MARKUP_DECLARATION_OPEN=41]=\"MARKUP_DECLARATION_OPEN\",n[n.COMMENT_START=42]=\"COMMENT_START\",n[n.COMMENT_START_DASH=43]=\"COMMENT_START_DASH\",n[n.COMMENT=44]=\"COMMENT\",n[n.COMMENT_LESS_THAN_SIGN=45]=\"COMMENT_LESS_THAN_SIGN\",n[n.COMMENT_LESS_THAN_SIGN_BANG=46]=\"COMMENT_LESS_THAN_SIGN_BANG\",n[n.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]=\"COMMENT_LESS_THAN_SIGN_BANG_DASH\",n[n.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]=\"COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH\",n[n.COMMENT_END_DASH=49]=\"COMMENT_END_DASH\",n[n.COMMENT_END=50]=\"COMMENT_END\",n[n.COMMENT_END_BANG=51]=\"COMMENT_END_BANG\",n[n.DOCTYPE=52]=\"DOCTYPE\",n[n.BEFORE_DOCTYPE_NAME=53]=\"BEFORE_DOCTYPE_NAME\",n[n.DOCTYPE_NAME=54]=\"DOCTYPE_NAME\",n[n.AFTER_DOCTYPE_NAME=55]=\"AFTER_DOCTYPE_NAME\",n[n.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]=\"AFTER_DOCTYPE_PUBLIC_KEYWORD\",n[n.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]=\"BEFORE_DOCTYPE_PUBLIC_IDENTIFIER\",n[n.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]=\"DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED\",n[n.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]=\"DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED\",n[n.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]=\"AFTER_DOCTYPE_PUBLIC_IDENTIFIER\",n[n.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]=\"BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS\",n[n.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]=\"AFTER_DOCTYPE_SYSTEM_KEYWORD\",n[n.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]=\"BEFORE_DOCTYPE_SYSTEM_IDENTIFIER\",n[n.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]=\"DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED\",n[n.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]=\"DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED\",n[n.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]=\"AFTER_DOCTYPE_SYSTEM_IDENTIFIER\",n[n.BOGUS_DOCTYPE=67]=\"BOGUS_DOCTYPE\",n[n.CDATA_SECTION=68]=\"CDATA_SECTION\",n[n.CDATA_SECTION_BRACKET=69]=\"CDATA_SECTION_BRACKET\",n[n.CDATA_SECTION_END=70]=\"CDATA_SECTION_END\",n[n.CHARACTER_REFERENCE=71]=\"CHARACTER_REFERENCE\",n[n.NAMED_CHARACTER_REFERENCE=72]=\"NAMED_CHARACTER_REFERENCE\",n[n.AMBIGUOUS_AMPERSAND=73]=\"AMBIGUOUS_AMPERSAND\",n[n.NUMERIC_CHARACTER_REFERENCE=74]=\"NUMERIC_CHARACTER_REFERENCE\",n[n.HEXADEMICAL_CHARACTER_REFERENCE_START=75]=\"HEXADEMICAL_CHARACTER_REFERENCE_START\",n[n.HEXADEMICAL_CHARACTER_REFERENCE=76]=\"HEXADEMICAL_CHARACTER_REFERENCE\",n[n.DECIMAL_CHARACTER_REFERENCE=77]=\"DECIMAL_CHARACTER_REFERENCE\",n[n.NUMERIC_CHARACTER_REFERENCE_END=78]=\"NUMERIC_CHARACTER_REFERENCE_END\",r.TokenizerMode={DATA:i.DATA,RCDATA:i.RCDATA,RAWTEXT:i.RAWTEXT,SCRIPT_DATA:i.SCRIPT_DATA,PLAINTEXT:i.PLAINTEXT,CDATA_SECTION:i.CDATA_SECTION},r.Tokenizer=class{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName=\"\",this.active=!1,this.state=i.DATA,this.returnState=i.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:\"\",value:\"\"},this.preprocessor=new s.Preprocessor(t),this.currentLocation=this.getCurrentLocation(-1)}_err(e){var t,r;null===(r=(t=this.handler).onParseError)||void 0===r||r.call(t,this.preprocessor.getError(e))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;let e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw Error(\"Parser was already resumed\");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||null==e||e())}write(e,t,r){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null==r||r()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(e){this.consumedAfterSnapshot-=e,this.preprocessor.retreat(e)}_reconsumeInState(e,t){this.state=e,this._callState(t)}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t0&&this._err(c.ERR.endTagWithAttributes),e.selfClosing&&this._err(c.ERR.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case o.TokenType.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case o.TokenType.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case o.TokenType.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){let e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:o.TokenType.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type!==e)this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();else{this.currentCharacterToken.chars+=t;return}}this._createCharacterToken(e,t)}_emitCodePoint(e){let t=g(e)?o.TokenType.WHITESPACE_CHARACTER:e===a.CODE_POINTS.NULL?o.TokenType.NULL_CHARACTER:o.TokenType.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(o.TokenType.CHARACTER,e)}_matchNamedCharacterReference(e){let t=null,r=0,i=!1;for(let s=0,o=l.htmlDecodeTree[0];s>=0&&!((s=(0,l.determineBranch)(l.htmlDecodeTree,o,s+1,e))<0);e=this._consume()){r+=1;let c=(o=l.htmlDecodeTree[s])&l.BinTrieFlags.VALUE_LENGTH;if(c){var n;let o=(c>>14)-1;if(e!==a.CODE_POINTS.SEMICOLON&&this._isCharacterReferenceInAttribute()&&((n=this.preprocessor.peek(1))===a.CODE_POINTS.EQUALS_SIGN||T(n))?(t=[a.CODE_POINTS.AMPERSAND],s+=o):(t=0===o?[l.htmlDecodeTree[s]&~l.BinTrieFlags.VALUE_LENGTH]:1===o?[l.htmlDecodeTree[++s]]:[l.htmlDecodeTree[++s],l.htmlDecodeTree[++s]],r=0,i=e!==a.CODE_POINTS.SEMICOLON),0===o){this._consume();break}}}return this._unconsume(r),i&&!this.preprocessor.endOfChunkHit&&this._err(c.ERR.missingSemicolonAfterCharacterReference),this._unconsume(1),t}_isCharacterReferenceInAttribute(){return this.returnState===i.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===i.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===i.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case i.DATA:this._stateData(e);break;case i.RCDATA:this._stateRcdata(e);break;case i.RAWTEXT:this._stateRawtext(e);break;case i.SCRIPT_DATA:this._stateScriptData(e);break;case i.PLAINTEXT:this._statePlaintext(e);break;case i.TAG_OPEN:this._stateTagOpen(e);break;case i.END_TAG_OPEN:this._stateEndTagOpen(e);break;case i.TAG_NAME:this._stateTagName(e);break;case i.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case i.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case i.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case i.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case i.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case i.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case i.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case i.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case i.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case i.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case i.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case i.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case i.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case i.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case i.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case i.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case i.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case i.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case i.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case i.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case i.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case i.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case i.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case i.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case i.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case i.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case i.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case i.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case i.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case i.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case i.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case i.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case i.BOGUS_COMMENT:this._stateBogusComment(e);break;case i.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case i.COMMENT_START:this._stateCommentStart(e);break;case i.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case i.COMMENT:this._stateComment(e);break;case i.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case i.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case i.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case i.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case i.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case i.COMMENT_END:this._stateCommentEnd(e);break;case i.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case i.DOCTYPE:this._stateDoctype(e);break;case i.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case i.DOCTYPE_NAME:this._stateDoctypeName(e);break;case i.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case i.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case i.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case i.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case i.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case i.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case i.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case i.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case i.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case i.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case i.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case i.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case i.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case i.CDATA_SECTION:this._stateCdataSection(e);break;case i.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case i.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case i.CHARACTER_REFERENCE:this._stateCharacterReference(e);break;case i.NAMED_CHARACTER_REFERENCE:this._stateNamedCharacterReference(e);break;case i.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;case i.NUMERIC_CHARACTER_REFERENCE:this._stateNumericCharacterReference(e);break;case i.HEXADEMICAL_CHARACTER_REFERENCE_START:this._stateHexademicalCharacterReferenceStart(e);break;case i.HEXADEMICAL_CHARACTER_REFERENCE:this._stateHexademicalCharacterReference(e);break;case i.DECIMAL_CHARACTER_REFERENCE:this._stateDecimalCharacterReference(e);break;case i.NUMERIC_CHARACTER_REFERENCE_END:this._stateNumericCharacterReferenceEnd(e);break;default:throw Error(\"Unknown state\")}}_stateData(e){switch(e){case a.CODE_POINTS.LESS_THAN_SIGN:this.state=i.TAG_OPEN;break;case a.CODE_POINTS.AMPERSAND:this.returnState=i.DATA,this.state=i.CHARACTER_REFERENCE;break;case a.CODE_POINTS.NULL:this._err(c.ERR.unexpectedNullCharacter),this._emitCodePoint(e);break;case a.CODE_POINTS.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case a.CODE_POINTS.AMPERSAND:this.returnState=i.RCDATA,this.state=i.CHARACTER_REFERENCE;break;case a.CODE_POINTS.LESS_THAN_SIGN:this.state=i.RCDATA_LESS_THAN_SIGN;break;case a.CODE_POINTS.NULL:this._err(c.ERR.unexpectedNullCharacter),this._emitChars(a.REPLACEMENT_CHARACTER);break;case a.CODE_POINTS.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case a.CODE_POINTS.LESS_THAN_SIGN:this.state=i.RAWTEXT_LESS_THAN_SIGN;break;case a.CODE_POINTS.NULL:this._err(c.ERR.unexpectedNullCharacter),this._emitChars(a.REPLACEMENT_CHARACTER);break;case a.CODE_POINTS.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case a.CODE_POINTS.LESS_THAN_SIGN:this.state=i.SCRIPT_DATA_LESS_THAN_SIGN;break;case a.CODE_POINTS.NULL:this._err(c.ERR.unexpectedNullCharacter),this._emitChars(a.REPLACEMENT_CHARACTER);break;case a.CODE_POINTS.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case a.CODE_POINTS.NULL:this._err(c.ERR.unexpectedNullCharacter),this._emitChars(a.REPLACEMENT_CHARACTER);break;case a.CODE_POINTS.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(f(e))this._createStartTagToken(),this.state=i.TAG_NAME,this._stateTagName(e);else switch(e){case a.CODE_POINTS.EXCLAMATION_MARK:this.state=i.MARKUP_DECLARATION_OPEN;break;case a.CODE_POINTS.SOLIDUS:this.state=i.END_TAG_OPEN;break;case a.CODE_POINTS.QUESTION_MARK:this._err(c.ERR.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=i.BOGUS_COMMENT,this._stateBogusComment(e);break;case a.CODE_POINTS.EOF:this._err(c.ERR.eofBeforeTagName),this._emitChars(\"<\"),this._emitEOFToken();break;default:this._err(c.ERR.invalidFirstCharacterOfTagName),this._emitChars(\"<\"),this.state=i.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(f(e))this._createEndTagToken(),this.state=i.TAG_NAME,this._stateTagName(e);else switch(e){case a.CODE_POINTS.GREATER_THAN_SIGN:this._err(c.ERR.missingEndTagName),this.state=i.DATA;break;case a.CODE_POINTS.EOF:this._err(c.ERR.eofBeforeTagName),this._emitChars(\"\");break;case a.CODE_POINTS.NULL:this._err(c.ERR.unexpectedNullCharacter),this.state=i.SCRIPT_DATA_ESCAPED,this._emitChars(a.REPLACEMENT_CHARACTER);break;case a.CODE_POINTS.EOF:this._err(c.ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=i.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===a.CODE_POINTS.SOLIDUS?this.state=i.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:f(e)?(this._emitChars(\"<\"),this.state=i.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars(\"<\"),this.state=i.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){f(e)?(this.state=i.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars(\"\");break;case a.CODE_POINTS.NULL:this._err(c.ERR.unexpectedNullCharacter),this.state=i.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(a.REPLACEMENT_CHARACTER);break;case a.CODE_POINTS.EOF:this._err(c.ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=i.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===a.CODE_POINTS.SOLIDUS?(this.state=i.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars(\"/\")):(this.state=i.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(a.SEQUENCES.SCRIPT,!1)&&A(this.preprocessor.peek(a.SEQUENCES.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e1114111)this._err(c.ERR.characterReferenceOutsideUnicodeRange),this.charRefCode=a.CODE_POINTS.REPLACEMENT_CHARACTER;else if((0,a.isSurrogate)(this.charRefCode))this._err(c.ERR.surrogateCharacterReference),this.charRefCode=a.CODE_POINTS.REPLACEMENT_CHARACTER;else if((0,a.isUndefinedCodePoint)(this.charRefCode))this._err(c.ERR.noncharacterCharacterReference);else if((0,a.isControlCodePoint)(this.charRefCode)||this.charRefCode===a.CODE_POINTS.CARRIAGE_RETURN){this._err(c.ERR.controlCharacterReference);let e=h.get(this.charRefCode);void 0!==e&&(this.charRefCode=e)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,e)}}},{\"../common/error-codes.js\":140,\"../common/html.js\":142,\"../common/token.js\":143,\"../common/unicode.js\":144,\"./preprocessor.js\":151,\"entities/lib/decode.js\":153}],151:[function(e,t,r){Object.defineProperty(r,\"__esModule\",{value:!0}),r.Preprocessor=void 0;let i=e(\"../common/unicode.js\"),n=e(\"../common/error-codes.js\");r.Preprocessor=class{constructor(e){this.handler=e,this.html=\"\",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e){let{line:t,col:r,offset:i}=this;return{code:e,startLine:t,endLine:t,startCol:r,endCol:r,startOffset:i,endOffset:i}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){let t=this.html.charCodeAt(this.pos+1);if((0,i.isSurrogatePair)(t))return this.pos++,this._addGap(),(0,i.getSurrogatePairCodePoint)(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,i.CODE_POINTS.EOF;return this._err(n.ERR.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let t=0;t=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,i.CODE_POINTS.EOF;let r=this.html.charCodeAt(t);return r===i.CODE_POINTS.CARRIAGE_RETURN?i.CODE_POINTS.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,i.CODE_POINTS.EOF;let e=this.html.charCodeAt(this.pos);return e===i.CODE_POINTS.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,i.CODE_POINTS.LINE_FEED):e===i.CODE_POINTS.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,(0,i.isSurrogate)(e)&&(e=this._processSurrogate(e)),null===this.handler.onParseError||e>31&&e<127||e===i.CODE_POINTS.LINE_FEED||e===i.CODE_POINTS.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){(0,i.isControlCodePoint)(e)?this._err(n.ERR.controlCharacterInInputStream):(0,i.isUndefinedCodePoint)(e)&&this._err(n.ERR.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos({nodeName:\"#document\",mode:i.DOCUMENT_MODE.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:\"#document-fragment\",childNodes:[]}),createElement:(e,t,r)=>({nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:\"#comment\",data:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,r){let i=e.childNodes.indexOf(r);e.childNodes.splice(i,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,i,n){let s=e.childNodes.find(e=>\"#documentType\"===e.nodeName);s?(s.name=t,s.publicId=i,s.systemId=n):r.defaultTreeAdapter.appendChild(e,{nodeName:\"#documentType\",name:t,publicId:i,systemId:n,parentNode:null})},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){let t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){let i=e.childNodes[e.childNodes.length-1];if(r.defaultTreeAdapter.isTextNode(i)){i.value+=t;return}}r.defaultTreeAdapter.appendChild(e,n(t))},insertTextBefore(e,t,i){let s=e.childNodes[e.childNodes.indexOf(i)-1];s&&r.defaultTreeAdapter.isTextNode(s)?s.value+=t:r.defaultTreeAdapter.insertBefore(e,n(t),i)},adoptAttributes(e,t){let r=new Set(e.attrs.map(e=>e.name));for(let i=0;ie.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>\"#text\"===e.nodeName,isCommentNode:e=>\"#comment\"===e.nodeName,isDocumentTypeNode:e=>\"#documentType\"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,\"tagName\"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation=Object.assign(Object.assign({},e.sourceCodeLocation),t)}}},{\"../common/html.js\":142}],153:[function(e,t,r){arguments[4][27][0].apply(r,arguments)},{\"./decode_codepoint.js\":154,\"./generated/decode-data-html.js\":156,\"./generated/decode-data-xml.js\":157,dup:27}],154:[function(e,t,r){arguments[4][28][0].apply(r,arguments)},{dup:28}],155:[function(e,t,r){arguments[4][30][0].apply(r,arguments)},{dup:30}],156:[function(e,t,r){arguments[4][31][0].apply(r,arguments)},{dup:31}],157:[function(e,t,r){arguments[4][32][0].apply(r,arguments)},{dup:32}],158:[function(e,t,r){var i,n,s,a=t.exports={};function o(){throw Error(\"setTimeout has not been defined\")}function l(){throw Error(\"clearTimeout has not been defined\")}function c(e){if(i===setTimeout)return setTimeout(e,0);if((i===o||!i)&&setTimeout)return i=setTimeout,setTimeout(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}!function(){try{i=\"function\"==typeof setTimeout?setTimeout:o}catch(e){i=o}try{n=\"function\"==typeof clearTimeout?clearTimeout:l}catch(e){n=l}}();var u=[],h=!1,d=-1;function p(){h&&s&&(h=!1,s.length?u=s.concat(u):d=-1,u.length&&f())}function f(){if(!h){var e=c(p);h=!0;for(var t=u.length;t;){for(s=u,u=[];++d1)for(var r=1;r+)\\\\s*|(\\\\s+)|(+|\\\\*)|\\\\#(+)|\\\\.(+)|\\\\[\\\\s*(+)(?:\\\\s*([*^$!~|]?=)(?:\\\\s*(?:([\\\"']?)(.*?)\\\\9)))?\\\\s*\\\\](?!\\\\])|(:+)(+)(?:\\\\((?:(?:([\\\"'])([^\\\\13]*)\\\\13)|((?:\\\\([^)]+\\\\)|[^()]*)+))\\\\))?)\".replace(//,\"[\"+s(\">+~`!@$%^&={}\\\\;/g,\"(?:[\\\\w\\\\u00a1-\\\\uFFFF-]|\\\\\\\\[^\\\\s0-9a-f])\").replace(//g,\"(?:[:\\\\w\\\\u00a1-\\\\uFFFF-]|\\\\\\\\[^\\\\s0-9a-f])\")),l=function(e){this.combinator=e||\" \",this.tag=\"*\"};l.prototype.toString=function(){if(!this.raw){var e,t,r=\"\";if(r+=this.tag||\"*\",this.id&&(r+=\"#\"+this.id),this.classes&&(r+=\".\"+this.classList.join(\".\")),this.attributes)for(e=0;t=this.attributes[e++];)r+=\"[\"+t.name+(t.operator?t.operator+'\"'+t.value+'\"':\"\")+\"]\";if(this.pseudos)for(e=0;t=this.pseudos[e++];)r+=\":\"+t.name,t.value&&(r+=\"(\"+t.value+\")\");this.raw=r}return this.raw};var c=function(){this.length=0};c.prototype.toString=function(){if(!this.raw){for(var e,t=\"\",r=0;e=this[r++];)1!==r&&(t+=\" \"),\" \"!==e.combinator&&(t+=e.combinator+\" \"),t+=e;this.raw=t}return this.raw};var u=function(e,t,r,i,n,o,u,h,d,p,f,T,E,m,g,A){var _,I;if((t||!this.length)&&(_=this[this.length++]=new c,t))return\"\";if(_||(_=this[this.length-1]),(r||i||!_.length)&&(I=_[_.length++]=new l(r)),I||(I=_[_.length-1]),n)I.tag=a(n);else if(o)I.id=a(o);else if(u){var D=a(u),S=I.classes||(I.classes={});if(!S[D]){S[D]=s(u);var C=I.classList||(I.classList=[]);C.push(D),C.sort()}}else E?(A=A||g,(I.pseudos||(I.pseudos=[])).push({type:1==T.length?\"class\":\"element\",name:a(E),escapedName:s(E),value:A?a(A):null,escapedValue:A?s(A):null})):h&&(f=f?s(f):null,(I.attributes||(I.attributes=[])).push({operator:d,name:a(h),escapedName:s(h),value:f?a(f):null,escapedValue:f?s(f):null}));return\"\"},h=function(e){this.length=0;for(var t,r=this,i=e;e;){if((t=e.replace(o,function(){return u.apply(r,arguments)}))===e)throw Error(i+\" is an invalid expression\");e=t}};h.prototype.toString=function(){if(!this.raw){for(var e,t=[],r=0;e=this[r++];)t.push(e);this.raw=t.join(\", \")}return this.raw};var d={};t.exports=function(e){return null==e?null:d[e=(\"\"+e).replace(/^\\s+|\\s+$/g,\"\")]||(d[e]=new h(e))}},{}]},{},[1])(1);class ef extends eh{constructor(){super(),this.logger=new ed,this.juice=ep}}class eT{static renderMainUI(){let e=new ef;e.useJsboxNav();let t=new(i(\"bf9OB\"))(e);e.setNavButtons(t.getNavButtons()),e.UIRender(t.getView())}static renderUnsupported(){$intents.finish(\"不支持在此环境中运行\"),$ui.render({views:[{type:\"label\",props:{text:\"不支持在此环境中运行\",align:$align.center},layout:$layout.fill}]})}static handleTaio(){try{let e=$actions.inputValue,t=ep(e);$actions.resolve(t)}catch(e){$actions.reject(e)}}}({run:()=>{eu.isTaio?eT.handleTaio():$app.env===$env.app?eT.renderMainUI():eT.renderUnsupported()}}).run()})();" } } } ], "buildVersion": 1, "clientMinVersion": 1, "clientVersion": 592, "icon": { "glyph": "arrow.2.circlepath.circle.fill", "color": "#FF6633" }, "summary": "Given HTML, Juice will inline your CSS properties into the style attribute.", "name": "Juice" }