{ // 获取包含Hugging Face文本的span元素 const spans = link.querySelectorAll('span.whitespace-nowrap, span.hidden.whitespace-nowrap'); spans.forEach(span => { if (span.textContent && span.textContent.trim().match(/Hugging\s*Face/i)) { span.textContent = 'AI快站'; } }); }); // 替换logo图片的alt属性 document.querySelectorAll('img[alt*="Hugging"], img[alt*="Face"]').forEach(img => { if (img.alt.match(/Hugging\s*Face/i)) { img.alt = 'AI快站 logo'; } }); } // 替换导航栏中的链接 function replaceNavigationLinks() { // 已替换标记,防止重复运行 if (window._navLinksReplaced) { return; } // 已经替换过的链接集合,防止重复替换 const replacedLinks = new Set(); // 只在导航栏区域查找和替换链接 const headerArea = document.querySelector('header') || document.querySelector('nav'); if (!headerArea) { return; } // 在导航区域内查找链接 const navLinks = headerArea.querySelectorAll('a'); navLinks.forEach(link => { // 如果已经替换过,跳过 if (replacedLinks.has(link)) return; const linkText = link.textContent.trim(); const linkHref = link.getAttribute('href') || ''; // 替换Spaces链接 - 仅替换一次 if ( (linkHref.includes('/spaces') || linkHref === '/spaces' || linkText === 'Spaces' || linkText.match(/^s*Spacess*$/i)) && linkText !== 'OCR模型免费转Markdown' && linkText !== 'OCR模型免费转Markdown' ) { link.textContent = 'OCR模型免费转Markdown'; link.href = 'https://fast360.xyz'; link.setAttribute('target', '_blank'); link.setAttribute('rel', 'noopener noreferrer'); replacedLinks.add(link); } // 删除Posts链接 else if ( (linkHref.includes('/posts') || linkHref === '/posts' || linkText === 'Posts' || linkText.match(/^s*Postss*$/i)) ) { if (link.parentNode) { link.parentNode.removeChild(link); } replacedLinks.add(link); } // 替换Docs链接 - 仅替换一次 else if ( (linkHref.includes('/docs') || linkHref === '/docs' || linkText === 'Docs' || linkText.match(/^s*Docss*$/i)) && linkText !== '模型下载攻略' ) { link.textContent = '模型下载攻略'; link.href = '/'; replacedLinks.add(link); } // 删除Enterprise链接 else if ( (linkHref.includes('/enterprise') || linkHref === '/enterprise' || linkText === 'Enterprise' || linkText.match(/^s*Enterprises*$/i)) ) { if (link.parentNode) { link.parentNode.removeChild(link); } replacedLinks.add(link); } }); // 查找可能嵌套的Spaces和Posts文本 const textNodes = []; function findTextNodes(element) { if (element.nodeType === Node.TEXT_NODE) { const text = element.textContent.trim(); if (text === 'Spaces' || text === 'Posts' || text === 'Enterprise') { textNodes.push(element); } } else { for (const child of element.childNodes) { findTextNodes(child); } } } // 只在导航区域内查找文本节点 findTextNodes(headerArea); // 替换找到的文本节点 textNodes.forEach(node => { const text = node.textContent.trim(); if (text === 'Spaces') { node.textContent = node.textContent.replace(/Spaces/g, 'OCR模型免费转Markdown'); } else if (text === 'Posts') { // 删除Posts文本节点 if (node.parentNode) { node.parentNode.removeChild(node); } } else if (text === 'Enterprise') { // 删除Enterprise文本节点 if (node.parentNode) { node.parentNode.removeChild(node); } } }); // 标记已替换完成 window._navLinksReplaced = true; } // 替换代码区域中的域名 function replaceCodeDomains() { // 特别处理span.hljs-string和span.njs-string元素 document.querySelectorAll('span.hljs-string, span.njs-string, span[class*="hljs-string"], span[class*="njs-string"]').forEach(span => { if (span.textContent && span.textContent.includes('huggingface.co')) { span.textContent = span.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } }); // 替换hljs-string类的span中的域名(移除多余的转义符号) document.querySelectorAll('span.hljs-string, span[class*="hljs-string"]').forEach(span => { if (span.textContent && span.textContent.includes('huggingface.co')) { span.textContent = span.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } }); // 替换pre和code标签中包含git clone命令的域名 document.querySelectorAll('pre, code').forEach(element => { if (element.textContent && element.textContent.includes('git clone')) { const text = element.innerHTML; if (text.includes('huggingface.co')) { element.innerHTML = text.replace(/huggingface.co/g, 'aifasthub.com'); } } }); // 处理特定的命令行示例 document.querySelectorAll('pre, code').forEach(element => { const text = element.innerHTML; if (text.includes('huggingface.co')) { // 针对git clone命令的专门处理 if (text.includes('git clone') || text.includes('GIT_LFS_SKIP_SMUDGE=1')) { element.innerHTML = text.replace(/huggingface.co/g, 'aifasthub.com'); } } }); // 特别处理模型下载页面上的代码片段 document.querySelectorAll('.flex.border-t, .svelte_hydrator, .inline-block').forEach(container => { const content = container.innerHTML; if (content && content.includes('huggingface.co')) { container.innerHTML = content.replace(/huggingface.co/g, 'aifasthub.com'); } }); // 特别处理模型仓库克隆对话框中的代码片段 try { // 查找包含"Clone this model repository"标题的对话框 const cloneDialog = document.querySelector('.svelte_hydration_boundary, [data-target="MainHeader"]'); if (cloneDialog) { // 查找对话框中所有的代码片段和命令示例 const codeElements = cloneDialog.querySelectorAll('pre, code, span'); codeElements.forEach(element => { if (element.textContent && element.textContent.includes('huggingface.co')) { if (element.innerHTML.includes('huggingface.co')) { element.innerHTML = element.innerHTML.replace(/huggingface.co/g, 'aifasthub.com'); } else { element.textContent = element.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } } }); } // 更精确地定位克隆命令中的域名 document.querySelectorAll('[data-target]').forEach(container => { const codeBlocks = container.querySelectorAll('pre, code, span.hljs-string'); codeBlocks.forEach(block => { if (block.textContent && block.textContent.includes('huggingface.co')) { if (block.innerHTML.includes('huggingface.co')) { block.innerHTML = block.innerHTML.replace(/huggingface.co/g, 'aifasthub.com'); } else { block.textContent = block.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } } }); }); } catch (e) { // 错误处理但不打印日志 } } // 当DOM加载完成后执行替换 if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', () => { replaceHeaderBranding(); replaceNavigationLinks(); replaceCodeDomains(); // 只在必要时执行替换 - 3秒后再次检查 setTimeout(() => { if (!window._navLinksReplaced) { console.log('[Client] 3秒后重新检查导航链接'); replaceNavigationLinks(); } }, 3000); }); } else { replaceHeaderBranding(); replaceNavigationLinks(); replaceCodeDomains(); // 只在必要时执行替换 - 3秒后再次检查 setTimeout(() => { if (!window._navLinksReplaced) { console.log('[Client] 3秒后重新检查导航链接'); replaceNavigationLinks(); } }, 3000); } // 增加一个MutationObserver来处理可能的动态元素加载 const observer = new MutationObserver(mutations => { // 检查是否导航区域有变化 const hasNavChanges = mutations.some(mutation => { // 检查是否存在header或nav元素变化 return Array.from(mutation.addedNodes).some(node => { if (node.nodeType === Node.ELEMENT_NODE) { // 检查是否是导航元素或其子元素 if (node.tagName === 'HEADER' || node.tagName === 'NAV' || node.querySelector('header, nav')) { return true; } // 检查是否在导航元素内部 let parent = node.parentElement; while (parent) { if (parent.tagName === 'HEADER' || parent.tagName === 'NAV') { return true; } parent = parent.parentElement; } } return false; }); }); // 只在导航区域有变化时执行替换 if (hasNavChanges) { // 重置替换状态,允许再次替换 window._navLinksReplaced = false; replaceHeaderBranding(); replaceNavigationLinks(); } }); // 开始观察document.body的变化,包括子节点 if (document.body) { observer.observe(document.body, { childList: true, subtree: true }); } else { document.addEventListener('DOMContentLoaded', () => { observer.observe(document.body, { childList: true, subtree: true }); }); } })(); ',\n\t\t\t\t\t\t''\n\t\t\t\t\t].join( '' ) );\n\n\t\t\t\t\tframeDocument.$.close();\n\n\t\t\t\t\tfor ( var i = 0; i < buttons.length; i++ )\n\t\t\t\t\t\tbuttons[ i ].enable();\n\t\t\t\t}\n\n\t\t\t\t// https://dev.ckeditor.com/ticket/3465: Wait for the browser to finish rendering the dialog first.\n\t\t\t\tif ( CKEDITOR.env.gecko )\n\t\t\t\t\tsetTimeout( generateFormField, 500 );\n\t\t\t\telse\n\t\t\t\t\tgenerateFormField();\n\t\t\t},\n\n\t\t\tgetValue: function() {\n\t\t\t\treturn this.getInputElement().$.value || '';\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * The default value of input `type=\"file\"` is an empty string, but during the initialization\n\t\t\t * of this UI element, the iframe still is not ready so it cannot be read from that object.\n\t\t\t * Setting it manually prevents later issues with the current value (`''`) being different\n\t\t\t * than the initial value (undefined as it asked for `.value` of a div).\n\t\t\t */\n\t\t\tsetInitValue: function() {\n\t\t\t\tthis._.initValue = '';\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Defines the `onChange` event for UI element definitions.\n\t\t\t *\n\t\t\t * @property {Object}\n\t\t\t */\n\t\t\teventProcessors: {\n\t\t\t\tonChange: function( dialog, func ) {\n\t\t\t\t\t// If this method is called several times (I'm not sure about how this can happen but the default\n\t\t\t\t\t// onChange processor includes this protection)\n\t\t\t\t\t// In order to reapply to the new element, the property is deleted at the beggining of the registerEvents method\n\t\t\t\t\tif ( !this._.domOnChangeRegistered ) {\n\t\t\t\t\t\t// By listening for the formLoaded event, this handler will get reapplied when a new\n\t\t\t\t\t\t// form is created\n\t\t\t\t\t\tthis.on( 'formLoaded', function() {\n\t\t\t\t\t\t\tthis.getInputElement().on( 'change', function() {\n\t\t\t\t\t\t\t\tthis.fire( 'change', { value: this.getValue() } );\n\t\t\t\t\t\t\t}, this );\n\t\t\t\t\t\t}, this );\n\t\t\t\t\t\tthis._.domOnChangeRegistered = true;\n\t\t\t\t\t}\n\n\t\t\t\t\tthis.on( 'change', func );\n\t\t\t\t}\n\t\t\t},\n\n\t\t\tkeyboardFocusable: true\n\t\t}, true );\n\n\t\tCKEDITOR.ui.dialog.fileButton.prototype = new CKEDITOR.ui.dialog.button();\n\n\t\tCKEDITOR.ui.dialog.fieldset.prototype = CKEDITOR.tools.clone( CKEDITOR.ui.dialog.hbox.prototype );\n\n\t\tCKEDITOR.dialog.addUIElement( 'text', textBuilder );\n\t\tCKEDITOR.dialog.addUIElement( 'password', textBuilder );\n\t\tCKEDITOR.dialog.addUIElement( 'tel', textBuilder );\n\t\tCKEDITOR.dialog.addUIElement( 'textarea', commonBuilder );\n\t\tCKEDITOR.dialog.addUIElement( 'checkbox', commonBuilder );\n\t\tCKEDITOR.dialog.addUIElement( 'radio', commonBuilder );\n\t\tCKEDITOR.dialog.addUIElement( 'button', commonBuilder );\n\t\tCKEDITOR.dialog.addUIElement( 'select', commonBuilder );\n\t\tCKEDITOR.dialog.addUIElement( 'file', commonBuilder );\n\t\tCKEDITOR.dialog.addUIElement( 'fileButton', commonBuilder );\n\t\tCKEDITOR.dialog.addUIElement( 'html', commonBuilder );\n\t\tCKEDITOR.dialog.addUIElement( 'fieldset', containerBuilder );\n\t}\n} );\n\n/**\n * Fired when the value of the uiElement is changed.\n *\n * @event change\n * @member CKEDITOR.ui.dialog.uiElement\n */\n\n/**\n * Fired when the inner frame created by the element is ready.\n * Each time the button is used or the dialog window is loaded, a new\n * form might be created.\n *\n * @event formLoaded\n * @member CKEDITOR.ui.dialog.fileButton\n */\n"}}},{"rowIdx":1011,"cells":{"text":{"kind":"string","value":"import React from 'react'\nimport CIcon from '@coreui/icons-react'\n\nconst _nav = [\n {\n _tag: 'CSidebarNavItem',\n name: 'Dashboard',\n to: '/dashboard',\n icon: ,\n \n },\n {\n _tag: 'CSidebarNavTitle',\n _children: ['PROJECT']\n },\n \n {\n _tag: 'CSidebarNavItem',\n name: 'NS Instances',\n to: '/theme/typography',\n icon: 'cil-pencil',\n },\n \n {\n _tag: 'CSidebarNavItem',\n name: 'NS Packages',\n to: '/theme/nsd',\n icon: 'cil-pencil',\n },\n {\n _tag: 'CSidebarNavItem',\n name: 'VNF Packages',\n to: '/theme/vnfd',\n icon: 'cil-pencil',\n },\n {\n _tag: 'CSidebarNavItem',\n name: 'VIM Accounts',\n to: '/theme/vim',\n icon: 'cil-pencil',\n },\n\n \n \n\n]\n\nexport default _nav\n"}}},{"rowIdx":1012,"cells":{"text":{"kind":"string","value":"import hashlib\nimport logging\nimport os\nfrom urllib.parse import urljoin, urlsplit\n\nimport django_libsass\nimport sass\nfrom compressor.filters.cssmin import CSSCompressorFilter\nfrom django.conf import settings\nfrom django.core.files.base import ContentFile\nfrom django.core.files.storage import default_storage\nfrom django.dispatch import Signal\nfrom django.templatetags.static import static as _static\n\nfrom pretix.base.models import Event, Event_SettingsStore, Organizer\nfrom pretix.base.services.async import ProfiledTask\nfrom pretix.celery_app import app\nfrom pretix.multidomain.urlreverse import get_domain\n\nlogger = logging.getLogger('pretix.presale.style')\naffected_keys = ['primary_font', 'primary_color']\n\n\ndef compile_scss(object, file=\"main.scss\", fonts=True):\n sassdir = os.path.join(settings.STATIC_ROOT, 'pretixpresale/scss')\n\n def static(path):\n sp = _static(path)\n if not settings.MEDIA_URL.startswith(\"/\") and sp.startswith(\"/\"):\n domain = get_domain(object.organizer if isinstance(object, Event) else object)\n if domain:\n siteurlsplit = urlsplit(settings.SITE_URL)\n if siteurlsplit.port and siteurlsplit.port not in (80, 443):\n domain = '%s:%d' % (domain, siteurlsplit.port)\n sp = urljoin('%s://%s' % (siteurlsplit.scheme, domain), sp)\n else:\n sp = urljoin(settings.SITE_URL, sp)\n return '\"{}\"'.format(sp)\n\n sassrules = []\n if object.settings.get('primary_color'):\n sassrules.append('$brand-primary: {};'.format(object.settings.get('primary_color')))\n\n font = object.settings.get('primary_font')\n if font != 'Open Sans' and fonts:\n sassrules.append(get_font_stylesheet(font))\n sassrules.append(\n '$font-family-sans-serif: \"{}\", \"Open Sans\", \"OpenSans\", \"Helvetica Neue\", Helvetica, Arial, sans-serif '\n '!default'.format(\n font\n ))\n\n sassrules.append('@import \"{}\";'.format(file))\n\n cf = dict(django_libsass.CUSTOM_FUNCTIONS)\n cf['static'] = static\n css = sass.compile(\n string=\"\\n\".join(sassrules),\n include_paths=[sassdir], output_style='nested',\n custom_functions=cf\n )\n cssf = CSSCompressorFilter(css)\n css = cssf.output()\n checksum = hashlib.sha1(css.encode('utf-8')).hexdigest()\n return css, checksum\n\n\n@app.task(base=ProfiledTask)\ndef regenerate_css(event_id: int):\n event = Event.objects.select_related('organizer').get(pk=event_id)\n\n # main.scss\n css, checksum = compile_scss(event)\n fname = 'pub/{}/{}/presale.{}.css'.format(event.organizer.slug, event.slug, checksum[:16])\n\n if event.settings.get('presale_css_checksum', '') != checksum:\n newname = default_storage.save(fname, ContentFile(css.encode('utf-8')))\n event.settings.set('presale_css_file', newname)\n event.settings.set('presale_css_checksum', checksum)\n\n # widget.scss\n css, checksum = compile_scss(event, file='widget.scss', fonts=False)\n fname = 'pub/{}/{}/widget.{}.css'.format(event.organizer.slug, event.slug, checksum[:16])\n\n if event.settings.get('presale_widget_css_checksum', '') != checksum:\n newname = default_storage.save(fname, ContentFile(css.encode('utf-8')))\n event.settings.set('presale_widget_css_file', newname)\n event.settings.set('presale_widget_css_checksum', checksum)\n\n\n@app.task(base=ProfiledTask)\ndef regenerate_organizer_css(organizer_id: int):\n organizer = Organizer.objects.get(pk=organizer_id)\n\n # main.scss\n css, checksum = compile_scss(organizer)\n fname = 'pub/{}/presale.{}.css'.format(organizer.slug, checksum[:16])\n if organizer.settings.get('presale_css_checksum', '') != checksum:\n newname = default_storage.save(fname, ContentFile(css.encode('utf-8')))\n organizer.settings.set('presale_css_file', newname)\n organizer.settings.set('presale_css_checksum', checksum)\n\n # widget.scss\n css, checksum = compile_scss(organizer)\n fname = 'pub/{}/widget.{}.css'.format(organizer.slug, checksum[:16])\n if organizer.settings.get('presale_widget_css_checksum', '') != checksum:\n newname = default_storage.save(fname, ContentFile(css.encode('utf-8')))\n organizer.settings.set('presale_widget_css_file', newname)\n organizer.settings.set('presale_widget_css_checksum', checksum)\n\n non_inherited_events = set(Event_SettingsStore.objects.filter(\n object__organizer=organizer, key__in=affected_keys\n ).values_list('object_id', flat=True))\n for event in organizer.events.all():\n if event.pk not in non_inherited_events:\n regenerate_css.apply_async(args=(event.pk,))\n\n\nregister_fonts = Signal()\n\"\"\"\nReturn a dictionaries of the following structure. Paths should be relative to static root.\n\n{\n \"font name\": {\n \"regular\": {\n \"truetype\": \"….ttf\",\n \"woff\": \"…\",\n \"woff2\": \"…\"\n },\n \"bold\": {\n ...\n },\n \"italic\": {\n ...\n },\n \"bolditalic\": {\n ...\n }\n }\n}\n\"\"\"\n\n\ndef get_fonts():\n f = {}\n for recv, value in register_fonts.send(0):\n f.update(value)\n return f\n\n\ndef get_font_stylesheet(font_name):\n stylesheet = []\n font = get_fonts()[font_name]\n for sty, formats in font.items():\n stylesheet.append('@font-face { ')\n stylesheet.append('font-family: \"{}\";'.format(font_name))\n if sty in (\"italic\", \"bolditalic\"):\n stylesheet.append(\"font-style: italic;\")\n else:\n stylesheet.append(\"font-style: normal;\")\n if sty in (\"bold\", \"bolditalic\"):\n stylesheet.append(\"font-weight: bold;\")\n else:\n stylesheet.append(\"font-weight: normal;\")\n\n srcs = []\n if \"woff2\" in formats:\n srcs.append(\"url(static('{}')) format('woff2')\".format(formats['woff2']))\n if \"woff\" in formats:\n srcs.append(\"url(static('{}')) format('woff')\".format(formats['woff']))\n if \"truetype\" in formats:\n srcs.append(\"url(static('{}')) format('truetype')\".format(formats['truetype']))\n stylesheet.append(\"src: {};\".format(\", \".join(srcs)))\n stylesheet.append(\"}\")\n return \"\\n\".join(stylesheet)\n"}}},{"rowIdx":1013,"cells":{"text":{"kind":"string","value":"var express = require(\"express\"),\n mongoose = require(\"mongoose\"),\n passport = require(\"passport\"),\n User = require(\"./models/user\"),\n Post = require(\"./models/post\"),\n Comment = require(\"./models/comment\"),\n bodyParser = require(\"body-parser\"),\n LocalStrategy = require(\"passport-local\"),\n passportLocalMongoose = require(\"passport-local-mongoose\"),\n sendAlert = require('alert-node'),\n multer = require(\"multer\");\n \nvar app = express();\n\nmongoose.connect(\"mongodb://localhost:27017/devnetDB\", {useNewUrlParser: true});\napp.use(bodyParser.urlencoded({extended: true}));\n\napp.use(require(\"express-session\")({\n secret: \"hiii\",\n resave: false,\n saveUninitialized: false\n}));\n\napp.use(function(req,res,next){\n res.locals.currentUser=req.user;\n \n next();\n});\n\napp.use(passport.initialize());\napp.use(passport.session());\n\npassport.use(new LocalStrategy(User.authenticate()));\npassport.serializeUser(User.serializeUser());\npassport.deserializeUser(User.deserializeUser());\n\n\napp.set(\"view engine\",\"ejs\");\napp.use(express.static(__dirname + \"/public\"));\n\n//home route\napp.get(\"/\",function(req,res){\n Post.find({}, function(err, posts) {\n if (err) {\n res.json({\n status: \"error\",\n message: err,\n });\n }\n // console.log(posts);\n res.render(\"home\", {currentUser: req.user, posts: posts});\n });\n});\n\n// logged in home route\napp.get(\"/home/:userid\",function(req,res){\n Post.find({}, function(err, posts) {\n if (err) {\n res.json({\n status: \"error\",\n message: err,\n });\n }\n // console.log(posts);\n res.render(\"home2\", {userid: req.params.userid, posts: posts, currentUser: req.user});\n });\n});\n\n//addpost route\napp.get(\"/addpost/:id\", isLoggedIn, function(req,res){\n User.findById(req.params.id).exec(function(err, foundUser){\n if(err){\n console.log(err);\n } else {\n res.render(\"addpost\", {user: foundUser, currentUser: req.user});\n }\n }); \n});\n\n//add new post route\napp.post(\"/addpost/:id\", function(req, res){\n var today = new Date();\n var day = today.getDate();\n var month = today.getMonth()+1;\n User.findById(req.params.id, function (err, user) {\n if (err){\n res.send(err);\n }\n else {\n var username = user.username;\n var fullName = user.fullname;\n Post.create(new Post({subject: req.body.subject, body: req.body.body, day:day, month: month, username: username, fullname: fullName }), function(err, newPost){\n if(err){\n console.log(err);\n return res.render('addpost');\n }\n else{\n //redirect back to campgrounds page\n res.redirect(\"/profile/\" + req.params.id); \n }\n });\n }\n });\n \n});\n\n//users route\napp.get(\"/users\",function(req,res){\n User.find({}, function(err, users) {\n if(err){\n res.send(err);\n } else {\n // console.log(users);\n res.render(\"users\", {currentUser: req.user, allusers: users});\n }\n });\n});\n\n//about route\napp.get(\"/about\",function(req,res){\n res.render(\"about\", {currentUser: req.user}); \n});\n\n// //profile route\n// app.get(\"/profile\", isLoggedIn, function(req, res){\n// res.render(\"profile\",{currentUser: req.user});\n// });\n\napp.get(\"/profile/:id\", isLoggedIn, function(req, res){\n User.findById(req.params.id, function (err, foundUser) {\n if (err){\n res.send(err);\n }\n else {\n // var username = user.username;\n Post.find({ username: foundUser.username}, function(err, posts) {\n if (err) {\n res.json({\n status: \"error\",\n message: err,\n });\n }\n console.log(posts);\n res.render(\"profile\", {user: foundUser, currentUser: req.user, posts: posts });\n });\n }\n });\n});\n\napp.get(\"/profile/:userid/:viewUserName\", isLoggedIn, function(req, res){\n // var username = req.params.viewUserName;\n User.find({username: req.params.viewUserName}, function (err, foundUser) {\n if (err){\n res.send(err);\n }\n else {\n console.log(foundUser);\n //var username = foundUser.username;\n // Post.find({ username: username}, function(err, posts) {\n // if (err) {\n // res.json({\n // status: \"error\",\n // message: err,\n // });\n // }\n // console.log(posts);\n // console.log(foundUser);\n // res.render(\"profile2\", {viewUser: foundUser, posts: posts });\n // });\n res.render(\"profile2\", {viewUser: foundUser.username, currentUser: req.user });\n }\n });\n});\n\n//FULLPOST ROUTE\napp.get(\"/fullpost/:userid/:postid\", isLoggedIn, function(req, res) {\n var userid = req.params.userid;\n Post.findById(req.params.postid, function (err, foundPost) {\n if (err){\n res.send(err);\n }\n else {\n //console.log(posts);\n Comment.find({postID: req.params.postid}, function(err, comments) {\n if (err) {\n res.json({\n status: \"error\",\n message: err,\n });\n }\n // console.log(posts);\n res.render(\"postfull\", {post: foundPost, userid: userid, comments: comments, currentUser: req.user});\n });\n }\n });\n});\n\n//COMMENT\napp.post(\"/comment/:userid/:postid\", isLoggedIn, function(req, res) {\n var today = new Date();\n var day = today.getDate();\n var month = today.getMonth()+1;\n Post.findById(req.params.postid, function (err, post) {\n if (err){\n res.send(err);\n }\n else {\n User.findById(req.params.userid, function(err, user) {\n if(err){\n console.log(err);\n }\n else{\n var username = user.username;\n var fullName = user.fullname;\n Comment.create(new Comment({text: req.body.text, day:day, month: month, username: username, fullname: fullName, postID: req.params.postid }), function(err, newComment){\n if(err){\n console.log(err);\n return res.render('postFull');\n }\n else{\n // console.log(posts);\n res.redirect(\"/fullpost/\" + req.params.userid + \"/\" + req.params.postid);\n }\n });\n }\n });\n }\n });\n});\n\napp.get(\"/delete/:userid/:postid\", isLoggedIn, function(req, res){\n Post.remove({\n _id: req.params.postid\n }, function (err, post) {\n if (err){\n res.send(err);\n }\n else {\n res.redirect(\"/profile/\" + req.params.userid);\n }\n });\n});\n\n//SIGNUP\n//show sign up form\napp.get(\"/signup\", function(req, res){\n res.render(\"signup\"); \n});\n//handling user sign up\napp.post(\"/signup\", function(req, res){\n User.register(new User({username: req.body.username, fullname: req.body.name, year: req.body.year, branch: req.body.branch, github: req.body.github}), req.body.password, function(err, user){\n if(err){\n console.log(err);\n return res.render('signup');\n }\n passport.authenticate(\"local\")(req, res, function(){\n res.redirect(\"/profile/\" + req.user._id);\n });\n });\n});\n\nvar Storage = multer.diskStorage({\n destination: function(req, file, callback) {\n callback(null, \"./public/profileimages\");\n },\n filename: function(req, file, callback) {\n callback(null, req.user.username + \".jpg\");\n }\n });\n \n var upload = multer({\n storage: Storage\n }).array(\"profileImg\", 1); //Field name and max count\n\napp.post(\"/profileimg\", function(req, res){\n upload(req, res, function(err) {\n if (err) {\n return res.end(\"Something went wrong!\");\n }\n return res.redirect(\"/profile/\" + req.user._id);\n });\n \n });\n \n\n// LOGIN ROUTES\n//render login form\napp.get(\"/login\", function(req, res){\n res.render(\"login\"); \n});\n\n//login logic\n//middleware\napp.post(\"/login\", passport.authenticate(\"local\", {\n failureRedirect: \"/login\"\n}) ,function(req, res){\n res.redirect(\"/profile/\" + req.user._id);\n});\n\n//LOGOUT\napp.get(\"/logout\", function(req, res){\n req.logout();\n res.redirect(\"/\");\n});\n\n\nfunction isLoggedIn(req, res, next){\n if(req.isAuthenticated()){\n return next();\n }\n // alert(\"You need to login first.\");\n res.redirect(\"/login\");\n}\n\n\napp.listen(process.env.PORT,process.env.IP,function(){\n console.log(\"Server has started!....👌\");\n});"}}},{"rowIdx":1014,"cells":{"text":{"kind":"string","value":"// person model\n// var Person = require('./core/person');\n//\n\nmodule.exports = function (db, cb) {\n\t//db.load(__dirname + \"/test-model-pet\", function (err) {\n\t//\tif (err) return cb(err);\n\n\t\tdb.define(\"person\", {\n\t\t\tname : String,\n\t\t\tsurname : { type: \"text\", size: 150, unique: true },\n\t\t\tage : { type: \"number\", unsigned: true },\n\t\t\tcontinent : [ 'Europe', 'America', 'Asia', 'Africa', 'Australia', 'Antartica' ],\n\t\t\tmale : Boolean,\n\t\t\tdt : { type: \"date\", time: false },\n\t\t\tphoto : { type: \"binary\", lazyload: true, lazyname: \"avatar\" }\n\t\t});\n\t\tdb.models.person.hasMany(\"pets\", db.models.pet);\n\t\tdb.models.person.hasOne(\"favpet\", db.models.pet);\n\n\t\treturn cb();\n\t//});\n};\n"}}},{"rowIdx":1015,"cells":{"text":{"kind":"string","value":"import React from 'react';\nimport { graphql } from 'gatsby';\n\nexport function Tag({ name }) {\n return {name};\n}\n\nexport const tagFragment = graphql`\n fragment TagFragment on GhostTag {\n id\n name\n slug\n }\n`;\n\nexport const postTagFragment = graphql`\n fragment PostTagsFragment on GhostPostTags {\n id\n name\n slug\n }\n`;\n"}}},{"rowIdx":1016,"cells":{"text":{"kind":"string","value":"import mongoose from 'mongoose'\nconst PostSchema = new mongoose.Schema({\n text: {\n type: String,\n required: 'Text is required'\n },\n photo: {\n data: Buffer,\n contentType: String\n },\n likes: [{type: mongoose.Schema.ObjectId, ref: 'User'}],\n comments: [{\n text: String,\n created: { type: Date, default: Date.now },\n postedBy: { type: mongoose.Schema.ObjectId, ref: 'User'}\n }],\n postedBy: {type: mongoose.Schema.ObjectId, ref: 'User'},\n created: {\n type: Date,\n default: Date.now\n }\n})\n\nexport default mongoose.model('Post', PostSchema)"}}},{"rowIdx":1017,"cells":{"text":{"kind":"string","value":"(function(a,b){if('function'==typeof define&&define.amd)define(['exports','react'],b);else if('undefined'!=typeof exports)b(exports,require('react'));else{var c={exports:{}};b(c.exports,a.react),a.loop=c.exports}})(this,function(a,b){'use strict';Object.defineProperty(a,'__esModule',{value:!0});var e=function(h){return h&&h.__esModule?h:{default:h}}(b),f=Object.assign||function(h){for(var k,j=1;j]+\\>(.*)<\\/svg>/ig.exec('')[1];return e.default.createElement('svg',f({},h,{xmlns:'http://www.w3.org/2000/svg',baseProfile:'full',viewBox:'0 0 24 24',className:'react-pretty-icons react-pretty-icons__loop '+h.className,dangerouslySetInnerHTML:{__html:j}}))},module.exports=a.default});"}}},{"rowIdx":1018,"cells":{"text":{"kind":"string","value":"import numpy as np\nimport pytest\nfrom itertools import permutations\nfrom itertools import combinations_with_replacement\n\nfrom mchap.assemble import DenovoMCMC\nfrom mchap.calling.classes import (\n CallingMCMC,\n PosteriorGenotypeAllelesDistribution,\n GenotypeAllelesMultiTrace,\n)\nfrom mchap.testing import simulate_reads\nfrom mchap.jitutils import seed_numba, genotype_alleles_as_index\nfrom mchap.combinatorics import count_unique_genotypes\n\n\n@pytest.mark.parametrize(\n \"seed\",\n [0, 42, 36], # these numbers can be finicky\n)\ndef test_CallingMCMC__gibbs_mh_equivalence(seed):\n seed_numba(seed)\n np.random.seed(seed)\n # ensure no duplicate haplotypes\n haplotypes = np.array(\n [\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n [0, 0, 0, 0, 0, 0, 0, 0, 1, 1],\n [0, 0, 0, 0, 0, 1, 0, 1, 0, 1],\n [0, 0, 0, 0, 0, 1, 1, 1, 0, 1],\n [0, 0, 0, 0, 1, 1, 0, 1, 0, 0],\n [0, 0, 1, 0, 1, 0, 1, 1, 1, 0],\n [0, 0, 1, 1, 0, 0, 0, 0, 0, 0],\n [0, 0, 1, 0, 1, 1, 0, 1, 0, 1],\n [0, 1, 1, 0, 1, 1, 0, 1, 0, 1],\n [1, 0, 0, 0, 0, 0, 0, 0, 1, 1],\n ]\n )\n n_haps, n_pos = haplotypes.shape\n\n # simulate reads\n inbreeding = np.random.rand()\n n_reads = np.random.randint(4, 15)\n ploidy = np.random.randint(2, 5)\n genotype_alleles = np.random.randint(0, n_haps, size=ploidy)\n genotype_alleles.sort()\n genotype_haplotypes = haplotypes[genotype_alleles]\n reads = simulate_reads(\n genotype_haplotypes,\n n_alleles=np.full(n_pos, 2, int),\n n_reads=n_reads,\n )\n read_counts = np.ones(n_reads, int)\n\n # Gibbs sampler\n model = CallingMCMC(\n ploidy=ploidy, haplotypes=haplotypes, inbreeding=inbreeding, steps=10050\n )\n gibbs_genotype, gibbs_genotype_prob, gibbs_phenotype_prob = (\n model.fit(reads, read_counts).burn(50).posterior().mode(phenotype=True)\n )\n\n # MH sampler\n model = CallingMCMC(\n ploidy=ploidy,\n haplotypes=haplotypes,\n inbreeding=inbreeding,\n steps=10050,\n step_type=\"Metropolis-Hastings\",\n )\n mh_genotype, mh_genotype_prob, mh_phenotype_prob = (\n model.fit(reads, read_counts).burn(50).posterior().mode(phenotype=True)\n )\n\n # check results are equivalent\n # tolerance is not enough for all cases so some cherry-picking of\n # the random seed values is required\n np.testing.assert_array_equal(gibbs_genotype, mh_genotype)\n np.testing.assert_allclose(gibbs_genotype_prob, mh_genotype_prob, atol=0.01)\n np.testing.assert_allclose(gibbs_phenotype_prob, mh_phenotype_prob, atol=0.01)\n\n\n@pytest.mark.parametrize(\n \"seed\",\n [0, 13, 36], # these numbers can be finicky\n)\ndef test_CallingMCMC__DenovoMCMC_equivalence(seed):\n ploidy = 4\n inbreeding = 0.015\n n_pos = 4\n n_alleles = np.full(n_pos, 2, np.int8)\n # generate all haplotypes\n\n def generate_haplotypes(pos):\n haps = []\n for a in combinations_with_replacement([0, 1], pos):\n perms = list(set(permutations(a)))\n perms.sort()\n for h in perms:\n haps.append(h)\n haps.sort()\n haplotypes = np.array(haps, np.int8)\n return haplotypes\n\n haplotypes = generate_haplotypes(n_pos)\n haplotype_labels = {h.tobytes(): i for i, h in enumerate(haplotypes)}\n\n # True genotype\n genotype = haplotypes[[0, 0, 1, 2]]\n\n # simulated reads\n seed_numba(seed)\n np.random.seed(seed)\n reads = simulate_reads(genotype, n_reads=8, errors=False)\n read_counts = np.ones(len(reads), int)\n\n # denovo assembly\n model = DenovoMCMC(\n ploidy=ploidy,\n n_alleles=n_alleles,\n steps=10500,\n inbreeding=inbreeding,\n fix_homozygous=1,\n )\n denovo_phenotype = (\n model.fit(reads, read_counts=read_counts).burn(500).posterior().mode_phenotype()\n )\n denovo_phen_prob = denovo_phenotype.probabilities.sum()\n idx = np.argmax(denovo_phenotype.probabilities)\n denovo_gen_prob = denovo_phenotype.probabilities[idx]\n denovo_genotype = denovo_phenotype.genotypes[idx]\n denovo_alleles = [haplotype_labels[h.tobytes()] for h in denovo_genotype]\n denovo_alleles = np.sort(denovo_alleles)\n\n # gibbs base calling\n model = CallingMCMC(\n ploidy=ploidy, haplotypes=haplotypes, inbreeding=inbreeding, steps=10500\n )\n call_alleles, call_genotype_prob, call_phenotype_prob = (\n model.fit(reads, read_counts).burn(500).posterior().mode(phenotype=True)\n )\n\n # check results are equivalent\n # tolerance is not enough for all cases so some cherry-picking of\n # the random seed values is required\n np.testing.assert_array_equal(call_alleles, denovo_alleles)\n np.testing.assert_allclose(call_genotype_prob, denovo_gen_prob, atol=0.01)\n np.testing.assert_allclose(call_phenotype_prob, denovo_phen_prob, atol=0.01)\n\n\ndef test_CallingMCMC__zero_reads():\n haplotypes = np.array(\n [\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n [0, 0, 0, 0, 0, 0, 0, 0, 1, 1],\n [0, 0, 0, 0, 0, 1, 0, 1, 0, 1],\n [0, 0, 0, 0, 0, 1, 1, 1, 0, 1],\n [0, 0, 0, 0, 1, 1, 0, 1, 0, 0],\n [0, 0, 1, 0, 1, 0, 1, 1, 1, 0],\n [0, 0, 1, 1, 0, 0, 0, 0, 0, 0],\n [0, 0, 1, 0, 1, 1, 0, 1, 0, 1],\n [0, 1, 1, 0, 1, 1, 0, 1, 0, 1],\n [1, 0, 0, 0, 0, 0, 0, 0, 1, 1],\n ]\n )\n n_chains = 2\n n_steps = 10500\n n_burn = 500\n ploidy = 4\n inbreeding = 0.01\n n_haps, n_pos = haplotypes.shape\n reads = np.empty((0, n_pos, 2))\n read_counts = np.array([], int)\n\n model = CallingMCMC(\n ploidy=ploidy,\n haplotypes=haplotypes,\n inbreeding=inbreeding,\n steps=n_steps,\n chains=n_chains,\n )\n trace = model.fit(reads, read_counts)\n _, call_genotype_prob, call_phenotype_prob = (\n trace.burn(n_burn).posterior().mode(phenotype=True)\n )\n\n assert trace.genotypes.shape == (n_chains, n_steps, ploidy)\n assert trace.genotypes.max() < n_haps\n assert call_genotype_prob < 0.05\n assert call_phenotype_prob < 0.05\n\n\ndef test_CallingMCMC__zero_snps():\n haplotypes = np.array(\n [\n [],\n ]\n )\n n_chains = 2\n n_steps = 10500\n n_burn = 500\n ploidy = 4\n inbreeding = 0.01\n _, n_pos = haplotypes.shape\n reads = np.empty((0, n_pos, 2))\n read_counts = np.array([], int)\n\n model = CallingMCMC(\n ploidy=ploidy,\n haplotypes=haplotypes,\n inbreeding=inbreeding,\n steps=n_steps,\n chains=n_chains,\n )\n trace = model.fit(reads, read_counts)\n _, call_genotype_prob, call_phenotype_prob = (\n trace.burn(n_burn).posterior().mode(phenotype=True)\n )\n\n assert trace.genotypes.shape == (n_chains, n_steps, ploidy)\n assert np.all(trace.genotypes == 0)\n assert np.all(np.isnan(trace.llks))\n assert call_genotype_prob == 1\n assert call_phenotype_prob == 1\n\n\ndef test_CallingMCMC__many_haplotype():\n \"\"\"Test that the fit method does not overflow due to many haplotypes\"\"\"\n np.random.seed(0)\n n_haps, n_pos = 400, 35\n haplotypes = np.random.randint(0, 2, size=(n_haps, n_pos))\n n_chains = 2\n n_steps = 1500\n n_burn = 500\n ploidy = 4\n inbreeding = 0.01\n true_alleles = np.array([0, 0, 1, 2])\n genotype = haplotypes[true_alleles]\n reads = simulate_reads(genotype, n_reads=64, errors=False)\n read_counts = np.ones(len(reads), int)\n\n model = CallingMCMC(\n ploidy=ploidy,\n haplotypes=haplotypes,\n inbreeding=inbreeding,\n steps=n_steps,\n chains=n_chains,\n )\n trace = model.fit(reads, read_counts)\n alleles, call_genotype_prob, call_phenotype_prob = (\n trace.burn(n_burn).posterior().mode(phenotype=True)\n )\n # test dtype inherited from greedy_caller function\n assert trace.genotypes.dtype == np.int32\n assert np.all(trace.genotypes >= 0)\n assert np.all(trace.genotypes < n_haps)\n np.testing.assert_array_equal(true_alleles, alleles)\n assert call_genotype_prob > 0.1\n assert call_phenotype_prob > 0.1\n\n\ndef test_PosteriorGenotypeAllelesDistribution__as_array():\n ploidy = 4\n n_haps = 4\n unique_genotypes = count_unique_genotypes(n_haps, ploidy)\n observed_genotypes = np.array(\n [\n [0, 0, 0, 0],\n [0, 0, 0, 2],\n [0, 0, 2, 2],\n [0, 2, 2, 2],\n [0, 0, 1, 2],\n [0, 1, 2, 2],\n ]\n )\n observed_probabilities = np.array([0.05, 0.08, 0.22, 0.45, 0.05, 0.15])\n posterior = PosteriorGenotypeAllelesDistribution(\n observed_genotypes, observed_probabilities\n )\n result = posterior.as_array(n_haps)\n assert result.sum() == observed_probabilities.sum() == 1\n assert len(result) == unique_genotypes == 35\n for g, p in zip(observed_genotypes, observed_probabilities):\n idx = genotype_alleles_as_index(g)\n assert result[idx] == p\n\n\ndef test_PosteriorGenotypeAllelesDistribution__mode():\n observed_genotypes = np.array(\n [\n [0, 0, 0, 0],\n [0, 0, 0, 2],\n [0, 0, 2, 2],\n [0, 2, 2, 2],\n [0, 0, 1, 2],\n [0, 1, 2, 2],\n ]\n )\n observed_probabilities = np.array([0.05, 0.08, 0.22, 0.45, 0.05, 0.15])\n posterior = PosteriorGenotypeAllelesDistribution(\n observed_genotypes, observed_probabilities\n )\n\n genotype, genotype_prob = posterior.mode()\n np.testing.assert_array_equal(genotype, observed_genotypes[3])\n assert genotype_prob == observed_probabilities[3]\n\n genotype, genotype_prob, phenotype_prob = posterior.mode(phenotype=True)\n np.testing.assert_array_equal(genotype, observed_genotypes[3])\n assert genotype_prob == observed_probabilities[3]\n assert phenotype_prob == observed_probabilities[1:4].sum()\n\n\n@pytest.mark.parametrize(\"threshold,expect\", [(0.99, 0), (0.8, 0), (0.6, 1)])\ndef test_GenotypeAllelesMultiTrace__replicate_incongruence_1(threshold, expect):\n g0 = [0, 0, 1, 2] # phenotype 1\n g1 = [0, 1, 1, 2] # phenotype 1\n g2 = [0, 1, 2, 2] # phenotype 1\n g3 = [0, 0, 2, 2] # phenotype 2\n genotypes = np.array([g0, g1, g2, g3])\n\n t0 = genotypes[[0, 1, 0, 1, 2, 0, 1, 1, 0, 1]] # 10:0\n t1 = genotypes[[3, 2, 0, 1, 2, 0, 1, 1, 0, 1]] # 9:1\n t2 = genotypes[[0, 1, 0, 1, 2, 0, 1, 1, 0, 1]] # 10:0\n t3 = genotypes[[3, 3, 3, 3, 3, 3, 3, 2, 1, 2]] # 3:7\n trace = GenotypeAllelesMultiTrace(\n genotypes=np.array([t0, t1, t2, t3]), llks=np.ones((4, 10))\n )\n\n actual = trace.replicate_incongruence(threshold)\n assert actual == expect\n\n\n@pytest.mark.parametrize(\"threshold,expect\", [(0.99, 0), (0.8, 0), (0.6, 2)])\ndef test_GenotypeAllelesMultiTrace__replicate_incongruence_2(threshold, expect):\n\n g0 = [0, 0, 1, 2] # phenotype 1\n g1 = [0, 1, 1, 2] # phenotype 1\n g2 = [0, 1, 2, 2] # phenotype 1\n g3 = [0, 0, 2, 3] # phenotype 2\n g4 = [0, 2, 3, 4] # phenotype 3\n genotypes = np.array([g0, g1, g2, g3, g4])\n\n t0 = genotypes[[3, 1, 0, 1, 2, 0, 1, 1, 0, 1]] # 9:1\n t1 = genotypes[[3, 2, 0, 1, 2, 0, 1, 1, 0, 1]] # 9:1\n t2 = genotypes[[0, 3, 0, 1, 2, 0, 1, 1, 0, 1]] # 9:1\n t3 = genotypes[[3, 3, 4, 4, 4, 3, 4, 4, 4, 4]] # 3:7\n trace = GenotypeAllelesMultiTrace(\n genotypes=np.array([t0, t1, t2, t3]), llks=np.ones((4, 10))\n )\n actual = trace.replicate_incongruence(threshold)\n assert actual == expect\n"}}},{"rowIdx":1019,"cells":{"text":{"kind":"string","value":"# coding:utf-8\n\ndef quick_sort(alist, first, last):\n \"\"\"快速排序\"\"\"\n if first >= last:\n return\n mid_value = alist[first]\n low = first\n high = last\n while low < high:\n # high 左移\n while low < high and alist[high] >= mid_value:\n high -= 1\n alist[low] = alist[high]\n while low < high and alist[low] < mid_value:\n low += 1\n alist[high] = alist[low]\n # 从循环退出时,low==high\n alist[low] = mid_value\n\n # 对low左边的列表执行快速排序\n quick_sort(alist, first, low - 1)\n\n # 对low右边的列表排序\n quick_sort(alist, low + 1, last)\n\n\n# 快速排序:取出列表中最小的k个数\ndef find_k_nums(alist, k):\n length = len(alist)\n if not alist or k <= 0 or k > length:\n return None\n left = 0\n right = length - 1\n quick_sort(alist, left, right)\n return alist[:k]\n\n\nif __name__ == \"__main__\":\n li = [54, 26, 93, 17, 77, 31, 44, 55, 20]\n print(li)\n quick_sort(li, 0, len(li) - 1)\n print(li)\n print(find_k_nums(li, 3))\n"}}},{"rowIdx":1020,"cells":{"text":{"kind":"string","value":"//>>built\ndefine(\"dojox/gauges/GlossyCircularGaugeBase\",[\"dojo/_base/declare\",\"dojo/_base/lang\",\"dojo/_base/connect\",\"dojox/gfx\",\"./AnalogGauge\",\"./AnalogCircleIndicator\",\"./TextIndicator\",\"./GlossyCircularGaugeNeedle\"],function(_1,_2,_3,_4,_5,_6,_7,_8){\nreturn _1(\"dojox.gauges.GlossyCircularGaugeBase\",[_5],{_defaultIndicator:_6,_needle:null,_textIndicator:null,_textIndicatorAdded:false,_range:null,value:0,color:\"black\",needleColor:\"#c4c4c4\",textIndicatorFont:\"normal normal normal 20pt serif\",textIndicatorVisible:true,textIndicatorColor:\"#c4c4c4\",_majorTicksOffset:130,majorTicksInterval:10,_majorTicksLength:5,majorTicksColor:\"#c4c4c4\",majorTicksLabelPlacement:\"inside\",_minorTicksOffset:130,minorTicksInterval:5,_minorTicksLength:3,minorTicksColor:\"#c4c4c4\",noChange:false,title:\"\",font:\"normal normal normal 10pt serif\",scalePrecision:0,textIndicatorPrecision:0,_font:null,constructor:function(){\nthis.startAngle=-135;\nthis.endAngle=135;\nthis.min=0;\nthis.max=100;\n},startup:function(){\nthis.inherited(arguments);\nif(this._needle){\nreturn;\n}\nvar _9=Math.min((this.width/this._designWidth),(this.height/this._designHeight));\nthis.cx=_9*this._designCx+(this.width-_9*this._designWidth)/2;\nthis.cy=_9*this._designCy+(this.height-_9*this._designHeight)/2;\nthis._range={low:this.min?this.min:0,high:this.max?this.max:100,color:[255,255,255,0]};\nthis.addRange(this._range);\nthis._majorTicksOffset=this._minorTicksOffset=_9*this._majorTicksOffset;\nthis._majorTicksLength=_9*this._majorTicksLength;\nthis._minorTicksLength=_9*this._minorTicksLength;\nthis.setMajorTicks({fixedPrecision:true,precision:this.scalePrecision,font:this._font,offset:this._majorTicksOffset,interval:this.majorTicksInterval,length:this._majorTicksLength,color:this.majorTicksColor,labelPlacement:this.majorTicksLabelPlacement});\nthis.setMinorTicks({offset:this._minorTicksOffset,interval:this.minorTicksInterval,length:this._minorTicksLength,color:this.minorTicksColor});\nthis._needle=new _8({hideValue:true,title:this.title,noChange:this.noChange,color:this.needleColor,value:this.value});\nthis.addIndicator(this._needle);\nthis._textIndicator=new _7({x:_9*this._designTextIndicatorX+(this.width-_9*this._designWidth)/2,y:_9*this._designTextIndicatorY+(this.height-_9*this._designHeight)/2,fixedPrecision:true,precision:this.textIndicatorPrecision,color:this.textIndicatorColor,value:this.value?this.value:this.min,align:\"middle\",font:this._textIndicatorFont});\nif(this.textIndicatorVisible){\nthis.addIndicator(this._textIndicator);\nthis._textIndicatorAdded=true;\n}\n_3.connect(this._needle,\"valueChanged\",_2.hitch(this,function(){\nthis.value=this._needle.value;\nthis._textIndicator.update(this._needle.value);\nthis.onValueChanged();\n}));\n},onValueChanged:function(){\n},_setColorAttr:function(_a){\nthis.color=_a?_a:\"black\";\nif(this._gaugeBackground&&this._gaugeBackground.parent){\nthis._gaugeBackground.parent.remove(this._gaugeBackground);\n}\nif(this._foreground&&this._foreground.parent){\nthis._foreground.parent.remove(this._foreground);\n}\nthis._gaugeBackground=null;\nthis._foreground=null;\nthis.draw();\n},_setNeedleColorAttr:function(_b){\nthis.needleColor=_b;\nif(this._needle){\nthis.removeIndicator(this._needle);\nthis._needle.color=this.needleColor;\nthis._needle.shape=null;\nthis.addIndicator(this._needle);\n}\n},_setTextIndicatorColorAttr:function(_c){\nthis.textIndicatorColor=_c;\nif(this._textIndicator){\nthis._textIndicator.color=this.textIndicatorColor;\nthis.draw();\n}\n},_setTextIndicatorFontAttr:function(_d){\nthis.textIndicatorFont=_d;\nthis._textIndicatorFont=_4.splitFontString(_d);\nif(this._textIndicator){\nthis._textIndicator.font=this._textIndicatorFont;\nthis.draw();\n}\n},setMajorTicksOffset:function(_e){\nthis._majorTicksOffset=_e;\nthis._setMajorTicksProperty({\"offset\":this._majorTicksOffset});\nreturn this;\n},getMajorTicksOffset:function(){\nreturn this._majorTicksOffset;\n},_setMajorTicksIntervalAttr:function(_f){\nthis.majorTicksInterval=_f;\nthis._setMajorTicksProperty({\"interval\":this.majorTicksInterval});\n},setMajorTicksLength:function(_10){\nthis._majorTicksLength=_10;\nthis._setMajorTicksProperty({\"length\":this._majorTicksLength});\nreturn this;\n},getMajorTicksLength:function(){\nreturn this._majorTicksLength;\n},_setMajorTicksColorAttr:function(_11){\nthis.majorTicksColor=_11;\nthis._setMajorTicksProperty({\"color\":this.majorTicksColor});\n},_setMajorTicksLabelPlacementAttr:function(_12){\nthis.majorTicksLabelPlacement=_12;\nthis._setMajorTicksProperty({\"labelPlacement\":this.majorTicksLabelPlacement});\n},_setMajorTicksProperty:function(_13){\nif(this.majorTicks){\n_2.mixin(this.majorTicks,_13);\nthis.setMajorTicks(this.majorTicks);\n}\n},setMinorTicksOffset:function(_14){\nthis._minorTicksOffset=_14;\nthis._setMinorTicksProperty({\"offset\":this._minorTicksOffset});\nreturn this;\n},getMinorTicksOffset:function(){\nreturn this._minorTicksOffset;\n},_setMinorTicksIntervalAttr:function(_15){\nthis.minorTicksInterval=_15;\nthis._setMinorTicksProperty({\"interval\":this.minorTicksInterval});\n},setMinorTicksLength:function(_16){\nthis._minorTicksLength=_16;\nthis._setMinorTicksProperty({\"length\":this._minorTicksLength});\nreturn this;\n},getMinorTicksLength:function(){\nreturn this._minorTicksLength;\n},_setMinorTicksColorAttr:function(_17){\nthis.minorTicksColor=_17;\nthis._setMinorTicksProperty({\"color\":this.minorTicksColor});\n},_setMinorTicksProperty:function(_18){\nif(this.minorTicks){\n_2.mixin(this.minorTicks,_18);\nthis.setMinorTicks(this.minorTicks);\n}\n},_setMinAttr:function(min){\nthis.min=min;\nif(this.majorTicks!=null){\nthis.setMajorTicks(this.majorTicks);\n}\nif(this.minorTicks!=null){\nthis.setMinorTicks(this.minorTicks);\n}\nthis.draw();\nthis._updateNeedle();\n},_setMaxAttr:function(max){\nthis.max=max;\nif(this.majorTicks!=null){\nthis.setMajorTicks(this.majorTicks);\n}\nif(this.minorTicks!=null){\nthis.setMinorTicks(this.minorTicks);\n}\nthis.draw();\nthis._updateNeedle();\n},_setScalePrecisionAttr:function(_19){\nthis.scalePrecision=_19;\nthis._setMajorTicksProperty({\"precision\":_19});\n},_setTextIndicatorPrecisionAttr:function(_1a){\nthis.textIndicatorPrecision=_1a;\nthis._setMajorTicksProperty({\"precision\":_1a});\n},_setValueAttr:function(_1b){\n_1b=Math.min(this.max,_1b);\n_1b=Math.max(this.min,_1b);\nthis.value=_1b;\nif(this._needle){\nvar _1c=this._needle.noChange;\nthis._needle.noChange=false;\nthis._needle.update(_1b);\nthis._needle.noChange=_1c;\n}\n},_setNoChangeAttr:function(_1d){\nthis.noChange=_1d;\nif(this._needle){\nthis._needle.noChange=this.noChange;\n}\n},_setTextIndicatorVisibleAttr:function(_1e){\nthis.textIndicatorVisible=_1e;\nif(this._textIndicator&&this._needle){\nif(this.textIndicatorVisible&&!this._textIndicatorAdded){\nthis.addIndicator(this._textIndicator);\nthis._textIndicatorAdded=true;\nthis.moveIndicatorToFront(this._needle);\n}else{\nif(!this.textIndicatorVisible&&this._textIndicatorAdded){\nthis.removeIndicator(this._textIndicator);\nthis._textIndicatorAdded=false;\n}\n}\n}\n},_setTitleAttr:function(_1f){\nthis.title=_1f;\nif(this._needle){\nthis._needle.title=this.title;\n}\n},_setOrientationAttr:function(_20){\nthis.orientation=_20;\nif(this.majorTicks!=null){\nthis.setMajorTicks(this.majorTicks);\n}\nif(this.minorTicks!=null){\nthis.setMinorTicks(this.minorTicks);\n}\nthis.draw();\nthis._updateNeedle();\n},_updateNeedle:function(){\nthis.value=Math.max(this.min,this.value);\nthis.value=Math.min(this.max,this.value);\nif(this._needle){\nvar _21=this._needle.noChange;\nthis._needle.noChange=false;\nthis._needle.update(this.value,false);\nthis._needle.noChange=_21;\n}\n},_setFontAttr:function(_22){\nthis.font=_22;\nthis._font=_4.splitFontString(_22);\nthis._setMajorTicksProperty({\"font\":this._font});\n}});\n});\n"}}},{"rowIdx":1021,"cells":{"text":{"kind":"string","value":"\"\"\"\nSupport for Google Home bluetooth tacker.\n\nFor more details about this platform, please refer to the documentation at\nhttps://home-assistant.io/components/device_tracker.googlehome/\n\"\"\"\nimport logging\n\nimport voluptuous as vol\n\nimport homeassistant.helpers.config_validation as cv\nfrom homeassistant.helpers.aiohttp_client import async_get_clientsession\nfrom homeassistant.components.device_tracker import (\n DOMAIN, PLATFORM_SCHEMA, DeviceScanner)\nfrom homeassistant.const import CONF_HOST\n\nREQUIREMENTS = ['ghlocalapi==0.1.0']\n\n_LOGGER = logging.getLogger(__name__)\n\nCONF_RSSI_THRESHOLD = 'rssi_threshold'\n\nPLATFORM_SCHEMA = vol.All(\n PLATFORM_SCHEMA.extend({\n vol.Required(CONF_HOST): cv.string,\n vol.Optional(CONF_RSSI_THRESHOLD, default=-70): vol.Coerce(int),\n }))\n\n\nasync def async_get_scanner(hass, config):\n \"\"\"Validate the configuration and return an Google Home scanner.\"\"\"\n scanner = GoogleHomeDeviceScanner(hass, config[DOMAIN])\n await scanner.async_connect()\n return scanner if scanner.success_init else None\n\n\nclass GoogleHomeDeviceScanner(DeviceScanner):\n \"\"\"This class queries a Google Home unit.\"\"\"\n\n def __init__(self, hass, config):\n \"\"\"Initialize the scanner.\"\"\"\n from ghlocalapi.device_info import DeviceInfo\n from ghlocalapi.bluetooth import Bluetooth\n\n self.last_results = {}\n\n self.success_init = False\n self._host = config[CONF_HOST]\n self.rssi_threshold = config[CONF_RSSI_THRESHOLD]\n\n session = async_get_clientsession(hass)\n self.deviceinfo = DeviceInfo(hass.loop, session, self._host)\n self.scanner = Bluetooth(hass.loop, session, self._host)\n\n async def async_connect(self):\n \"\"\"Initialize connection to Google Home.\"\"\"\n await self.deviceinfo.get_device_info()\n data = self.deviceinfo.device_info\n self.success_init = data is not None\n\n async def async_scan_devices(self):\n \"\"\"Scan for new devices and return a list with found device IDs.\"\"\"\n await self.async_update_info()\n return list(self.last_results.keys())\n\n async def async_get_device_name(self, device):\n \"\"\"Return the name of the given device or None if we don't know.\"\"\"\n if device not in self.last_results:\n return None\n return '{}_{}'.format(self._host,\n self.last_results[device]['btle_mac_address'])\n\n async def get_extra_attributes(self, device):\n \"\"\"Return the extra attributes of the device.\"\"\"\n return self.last_results[device]\n\n async def async_update_info(self):\n \"\"\"Ensure the information from Google Home is up to date.\"\"\"\n _LOGGER.debug('Checking Devices...')\n await self.scanner.scan_for_devices()\n await self.scanner.get_scan_result()\n ghname = self.deviceinfo.device_info['name']\n devices = {}\n for device in self.scanner.devices:\n if device['rssi'] > self.rssi_threshold:\n uuid = '{}_{}'.format(self._host, device['mac_address'])\n devices[uuid] = {}\n devices[uuid]['rssi'] = device['rssi']\n devices[uuid]['btle_mac_address'] = device['mac_address']\n devices[uuid]['ghname'] = ghname\n devices[uuid]['source_type'] = 'bluetooth'\n self.last_results = devices\n"}}},{"rowIdx":1022,"cells":{"text":{"kind":"string","value":"/*\n Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n Permission is hereby granted, free of charge, to any person obtaining a copy of this\n software and associated documentation files (the \"Software\"), to deal in the Software\n without restriction, including without limitation the rights to use, copy, modify,\n merge, publish, distribute, sublicense, and/or sell copies of the Software, and to\n permit persons to whom the Software is furnished to do so.\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,\n INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\n PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\n HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\n OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n*/\n\n'use strict'\n\nconst AWS = require(\"aws-sdk\")\nAWS.config.region = ( process.env.AWS_REGION || 'us-east-1' )\nconst s3 = new AWS.S3()\n\n// Returns object from S3\n\n// let params = {\n// Bucket: record.s3.bucket.name,\n// Key: record.s3.object.key\n// }\n\nasync function getS3object(params) {\n return new Promise((resolve, reject) => {\n s3.getObject(params, function(err, data) {\n if (err) {\n console.log('getS3object error: ', err, err.stack); // an error occurred\n reject(err)\n } \n resolve (data)\n })\n })\n}\n\n// Puts object to S3 //\n\n// e.g. params = {\n// Bucket: record.s3.bucket.name,\n// Key: record.s3.object.key\n// Body: data,\n// ContentType: res.headers['content-type'], \n// CacheControl: 'max-age=31536000',\n// ACL: 'public-read',\n// StorageClass: 'STANDARD'\n// }\n\nasync function putS3object(params) {\n console.log('putS3object params: ', params)\n return new Promise((resolve, reject) => {\n s3.putObject(params, function(err, data) {\n if (err) {\n console.log('putS3object error: ', err, err.stack); // an error occurred\n reject(err)\n } \n resolve (data)\n })\n })\n}\n\nmodule.exports = {\n getS3object,\n putS3object\n}\n"}}},{"rowIdx":1023,"cells":{"text":{"kind":"string","value":"import { html, render } from \"lit-html\";\nimport Criteria from \"../components/Charts/Criteria\";\nimport Evaluation from \"../components/Evaluation\";\nimport LayersTab from \"../components/LayersTab\";\nimport BrushTool from \"../components/Toolbar/BrushTool\";\nimport EraserTool from \"../components/Toolbar/EraserTool\";\nimport InspectTool from \"../components/Toolbar/InspectTool\";\nimport PanTool from \"../components/Toolbar/PanTool\";\nimport Toolbar from \"../components/Toolbar/Toolbar\";\nimport Brush from \"../Map/Brush\";\nimport { initializeMap } from \"../Map/map\";\nimport State from \"../models/State\";\nimport { navigateTo } from \"../routes\";\n\nfunction renderAboutModal() {\n const target = document.getElementById(\"modal\");\n const template = html`\n
render(\"\", target)}\">\n
\n

Lowell, MA

\n

\n The units you see here are the 1,845 census blocks that make\n up the municipality of Lowell, MA.\n

\n

\n Data for this module was obtained from the US Census Bureau.\n The block shapefile for the city of Lowell was downloaded\n from the\n Census's TIGER/Line Shapefiles. Demographic information from the decennial Census was\n downloaded at the block level from\n American FactFinder.\n

\n\n

\n The cleaned shapefile with demographic information is\n available for download\n from the MGGG GitHub account.\n

\n
\n
\n `;\n render(template, target);\n}\n\nfunction getContextFromStorage() {\n const placeJson = localStorage.getItem(\"place\");\n const problemJson = localStorage.getItem(\"districtingProblem\");\n const unitsJson = localStorage.getItem(\"units\");\n\n if (placeJson === null || problemJson === null) {\n navigateTo(\"/new\");\n }\n\n const place = JSON.parse(placeJson);\n const problem = JSON.parse(problemJson);\n const units = JSON.parse(unitsJson);\n\n const planId = localStorage.getItem(\"planId\");\n const assignmentJson = localStorage.getItem(\"assignment\");\n const assignment = assignmentJson ? JSON.parse(assignmentJson) : null;\n\n return { place, problem, id: planId, assignment, units };\n}\n\nexport default function renderEditView() {\n const context = getContextFromStorage();\n\n const root = document.getElementById(\"root\");\n root.className = \"\";\n render(\n html`\n
\n
\n `,\n root\n );\n const map = initializeMap(\"map\", {\n bounds: context.place.bounds,\n fitBoundsOptions: {\n padding: {\n top: 50,\n right: 350,\n left: 50,\n bottom: 50\n }\n }\n });\n map.on(\"load\", () => {\n let state = new State(map, context);\n toolbarView(state);\n });\n}\n\nfunction getTabs(state) {\n const criteria = {\n id: \"criteria\",\n name: \"Population\",\n render: (uiState, dispatch) =>\n html`\n ${Criteria(state, uiState, dispatch)}\n `\n };\n\n const layersTab = new LayersTab(\"layers\", \"Data Layers\", state);\n\n const evaluationTab = {\n id: \"evaluation\",\n name: \"Evaluation\",\n render: (uiState, dispatch) =>\n html`\n ${Evaluation(state, uiState, dispatch)}\n `\n };\n\n let tabs = [criteria, layersTab];\n\n if (state.supportsEvaluationTab()) {\n tabs.push(evaluationTab);\n }\n return tabs;\n}\n\nfunction getTools(state) {\n const brush = new Brush(state.units, 20, 0);\n brush.on(\"colorfeature\", state.update);\n brush.on(\"colorend\", state.render);\n\n let tools = [\n new PanTool(),\n new BrushTool(brush, state.parts),\n new EraserTool(brush),\n new InspectTool(state.units, [\n state.population.total,\n ...state.population.subgroups\n ])\n ];\n tools[0].activate();\n return tools;\n}\n\nfunction toolbarView(state) {\n const tools = getTools(state);\n const tabs = getTabs(state);\n\n const toolbar = new Toolbar(tools, \"pan\", tabs, getMenuItems(state), {\n tabs: { activeTab: tabs.length > 0 ? tabs[0].id : null },\n elections: {\n activeElectionIndex: 0\n },\n charts: {\n population: { isOpen: true },\n racialBalance: {\n isOpen: true,\n activeSubgroupIndices: state.population.indicesOfMajorSubgroups()\n },\n electionResults: { isOpen: false },\n vapBalance: {\n isOpen: false,\n activeSubgroupIndices: state.vap\n ? state.vap.indicesOfMajorSubgroups()\n : null\n }\n }\n });\n\n toolbar.render();\n\n state.subscribe(toolbar.render);\n}\n\n// It's not a great design to have these non-tool items in the row of tool icons.\n// TODO: Find a different UI for New/Save/Export-type actions.\nfunction getMenuItems(state) {\n let items = [\n {\n render: () => html`\n navigateTo(\"/new\")}\"\n >\n New Plan\n \n `\n },\n {\n render: () => html`\n \n `\n }\n ];\n if (\n state.place.id === \"lowell_blocks\" ||\n state.place.permalink === \"lowell_blocks\"\n ) {\n items = [\n {\n render: () => html`\n renderAboutModal(state.place.about)}\"\n >\n About\n \n `\n },\n ...items\n ];\n }\n return items;\n}\n"}}},{"rowIdx":1024,"cells":{"text":{"kind":"string","value":"import voluptuous as vol\n\nimport esphomeyaml.config_validation as cv\nfrom esphomeyaml import core, pins\nfrom esphomeyaml.components import sensor\nfrom esphomeyaml.const import CONF_COUNT_MODE, CONF_FALLING_EDGE, CONF_INTERNAL_FILTER, \\\n CONF_MAKE_ID, CONF_NAME, CONF_PIN, CONF_PULL_MODE, CONF_RISING_EDGE, CONF_UPDATE_INTERVAL, \\\n ESP_PLATFORM_ESP32\nfrom esphomeyaml.helpers import App, Application, add, variable, gpio_input_pin_expression\n\nCOUNT_MODES = {\n 'DISABLE': sensor.sensor_ns.PULSE_COUNTER_DISABLE,\n 'INCREMENT': sensor.sensor_ns.PULSE_COUNTER_INCREMENT,\n 'DECREMENT': sensor.sensor_ns.PULSE_COUNTER_DECREMENT,\n}\n\nCOUNT_MODE_SCHEMA = vol.All(vol.Upper, cv.one_of(*COUNT_MODES))\n\nMakePulseCounterSensor = Application.MakePulseCounterSensor\n\n\ndef validate_internal_filter(value):\n if core.ESP_PLATFORM == ESP_PLATFORM_ESP32:\n if isinstance(value, int):\n raise vol.Invalid(\"Please specify the internal filter in microseconds now \"\n \"(since 1.7.0). For example '17ms'\")\n value = cv.positive_time_period_microseconds(value)\n if value.total_microseconds > 13:\n raise vol.Invalid(\"Maximum internal filter value for ESP32 is 13us\")\n return value\n else:\n return cv.positive_time_period_microseconds(value)\n\n\nPLATFORM_SCHEMA = cv.nameable(sensor.SENSOR_PLATFORM_SCHEMA.extend({\n cv.GenerateID(CONF_MAKE_ID): cv.declare_variable_id(MakePulseCounterSensor),\n vol.Required(CONF_PIN): pins.internal_gpio_input_pin_schema,\n vol.Optional(CONF_COUNT_MODE): vol.Schema({\n vol.Required(CONF_RISING_EDGE): COUNT_MODE_SCHEMA,\n vol.Required(CONF_FALLING_EDGE): COUNT_MODE_SCHEMA,\n }),\n vol.Optional(CONF_INTERNAL_FILTER): validate_internal_filter,\n vol.Optional(CONF_UPDATE_INTERVAL): cv.update_interval,\n\n vol.Optional(CONF_PULL_MODE): cv.invalid(\"The pull_mode option has been removed in 1.7.0, \"\n \"please use the pin mode schema now.\")\n}))\n\n\ndef to_code(config):\n pin = None\n for pin in gpio_input_pin_expression(config[CONF_PIN]):\n yield\n rhs = App.make_pulse_counter_sensor(config[CONF_NAME], pin,\n config.get(CONF_UPDATE_INTERVAL))\n make = variable(config[CONF_MAKE_ID], rhs)\n pcnt = make.Ppcnt\n if CONF_COUNT_MODE in config:\n rising_edge = COUNT_MODES[config[CONF_COUNT_MODE][CONF_RISING_EDGE]]\n falling_edge = COUNT_MODES[config[CONF_COUNT_MODE][CONF_FALLING_EDGE]]\n add(pcnt.set_edge_mode(rising_edge, falling_edge))\n if CONF_INTERNAL_FILTER in config:\n add(pcnt.set_filter_us(config[CONF_INTERNAL_FILTER]))\n sensor.setup_sensor(make.Ppcnt, make.Pmqtt, config)\n\n\nBUILD_FLAGS = '-DUSE_PULSE_COUNTER_SENSOR'\n"}}},{"rowIdx":1025,"cells":{"text":{"kind":"string","value":"const UserError = require('./user_error')\n\nclass Command {\n constructor (params, parent, hash) {\n this.params = params\n this.parent = parent\n this.hash = parent ? parent.hash : {}\n this.uniqueHash = parent ? parent.uniqueHash : {}\n this.parentBase = (this.parent && this.parent.base && this.parent.base + ' ') || ''\n this.base = this.parentBase + (this.params.base || '')\n\n if (this.params.base) this.updateHistory()\n }\n\n find (command) {\n const parts = command.split(' ')\n const c = parts.shift()\n const pars = parts.join(' ')\n if (this.hash[c]) { return [this.hash[c], pars] }\n return undefined\n }\n\n async use (command, ctx = {}, op = true) {\n let res = this.find(command)\n\n if (res) {\n let [com, pars] = res\n if (com.params.onlyConsole && ctx.player) return 'This command is console only'\n if (com.params.onlyPlayer && !ctx.player) throw new UserError('This command is player only')\n if (com.params.op && !op) return 'You do not have permission to use this command'\n const parse = com.params.parse\n if (parse) {\n if (typeof parse === 'function') {\n pars = parse(pars, ctx)\n if (pars === false) {\n if (ctx.player) return com.params.usage ? 'Usage: ' + com.params.usage : 'Bad syntax'\n else throw new UserError(com.params.usage ? 'Usage: ' + com.params.usage : 'Bad syntax')\n }\n } else {\n pars = pars.match(parse)\n }\n }\n\n res = await com.params.action(pars, ctx)\n\n if (res) return '' + res\n } else {\n if (ctx.player) return 'Command not found'\n else throw new UserError('Command not found')\n }\n }\n\n updateHistory () {\n const all = '(.+?)'\n\n const list = [this.base]\n if (this.params.aliases && this.params.aliases.length) {\n this.params.aliases.forEach(al => list.unshift(this.parentBase + al))\n }\n\n list.forEach((command) => {\n const parentBase = this.parent ? (this.parent.path || '') : ''\n this.path = parentBase + this.space() + (command || all)\n if (this.path === all && !this.parent) this.path = ''\n\n if (this.path) this.hash[this.path] = this\n })\n this.uniqueHash[this.base] = this\n }\n\n add (params) {\n return new Command(params, this)\n }\n\n space (end) {\n const first = !(this.parent && this.parent.parent)\n return this.params.merged || (!end && first) ? '' : ' '\n }\n\n setOp (op) {\n this.params.op = op\n }\n \n tab (command, i) {\n if (this.find(command)[0].params.tab) return this.find(command)[0].params.tab[i]\n return 'player'\n }\n}\n\nmodule.exports = Command\n"}}},{"rowIdx":1026,"cells":{"text":{"kind":"string","value":"import logging\nfrom gwcs.wcs import WCS\nimport astropy.units as u\n\nfrom ..wcs_adapter import WCSAdapter\n\n__all__ = ['GWCSAdapter']\n\n\nclass GWCSAdapter(WCSAdapter):\n \"\"\"\n Adapter class that adds support for GWCS objects.\n \"\"\"\n wrapped_class = WCS\n axes = None\n\n def __init__(self, wcs, unit=None):\n super(GWCSAdapter, self).__init__(wcs)\n\n self._rest_frequency = 0\n self._rest_wavelength = 0\n\n # TODO: Currently, unsure of how to create a copy of an arbitrary gwcs\n # object. For now, store the desired spectral axis unit information in\n # the adapter object instead of creating a new gwcs object like we do\n # for fitswcs.\n self._wcs_unit = self.wcs.output_frame.unit[0]\n self._unit = self._wcs_unit\n\n if unit is not None and unit.is_equivalent(self._unit,\n equivalencies=u.spectral()):\n self._unit = unit\n\n def world_to_pixel(self, world_array):\n \"\"\"\n Method for performing the world to pixel transformations.\n \"\"\"\n return u.Quantity(self.wcs.invert(world_array),\n self._wcs_unit).to(\n self._unit, equivalencies=u.spectral()).value\n\n def pixel_to_world(self, pixel_array):\n \"\"\"\n Method for performing the pixel to world transformations.\n \"\"\"\n return u.Quantity(self.wcs(pixel_array, with_bounding_box=False),\n self._wcs_unit).to(\n self._unit, equivalencies=u.spectral()).value\n\n @property\n def spectral_axis_unit(self):\n \"\"\"\n Returns the unit of the spectral axis.\n \"\"\"\n return self._unit\n\n @property\n def rest_frequency(self):\n \"\"\"\n Returns the rest frequency defined in the WCS.\n \"\"\"\n logging.warning(\"GWCS does not store rest frequency information. \"\n \"Please define the rest value explicitly in the \"\n \"`Spectrum1D` object.\")\n\n return self._rest_frequency\n\n @property\n def rest_wavelength(self):\n \"\"\"\n Returns the rest wavelength defined in the WCS.\n \"\"\"\n logging.warning(\"GWCS does not store rest wavelength information. \"\n \"Please define the rest value explicitly in the \"\n \"`Spectrum1D` object.\")\n\n return self._rest_wavelength\n\n def with_spectral_unit(self, unit, rest_value=None, velocity_convention=None):\n \"\"\"\n \"\"\"\n if isinstance(unit, u.Unit) and unit.is_equivalent(\n self._wcs_unit, equivalencies=u.spectral()):\n return self.__class__(self.wcs, unit=unit)\n\n logging.error(\"WCS units incompatible: {} and {}.\".format(\n unit, self._wcs_unit))\n"}}},{"rowIdx":1027,"cells":{"text":{"kind":"string","value":"/**\n * @license\n * Copyright 2016 Google Inc. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nfoam.CLASS({\n package: 'foam.dao',\n name: 'ArrayDAO',\n extends: 'foam.dao.AbstractDAO',\n\n documentation: 'DAO implementation backed by an array.',\n\n requires: [\n 'foam.dao.ArraySink',\n 'foam.mlang.predicate.True'\n ],\n\n properties: [\n {\n class: 'Class',\n name: 'of',\n factory: function() {\n if ( this.array.length === 0 ) return this.__context__.lookup('foam.core.FObject');\n return null;\n }\n },\n {\n name: 'array',\n factory: function() { return []; }\n }\n ],\n\n methods: [\n function put_(x, obj) {\n for ( var i = 0 ; i < this.array.length ; i++ ) {\n if ( obj.ID.compare(obj, this.array[i]) === 0 ) {\n this.array[i] = obj;\n break;\n }\n }\n\n if ( i == this.array.length ) this.array.push(obj);\n this.on.put.pub(obj);\n\n return Promise.resolve(obj);\n },\n\n function remove_(x, obj) {\n for ( var i = 0 ; i < this.array.length ; i++ ) {\n if ( foam.util.equals(obj.id, this.array[i].id) ) {\n var o2 = this.array.splice(i, 1)[0];\n this.on.remove.pub(o2);\n break;\n }\n }\n\n return Promise.resolve();\n },\n\n function select_(x, sink, skip, limit, order, predicate) {\n var resultSink = sink || this.ArraySink.create();\n\n sink = this.decorateSink_(resultSink, skip, limit, order, predicate);\n\n var detached = false;\n var sub = foam.core.FObject.create();\n sub.onDetach(function() { detached = true; });\n\n var self = this;\n\n return new Promise(function(resolve, reject) {\n for ( var i = 0 ; i < self.array.length ; i++ ) {\n if ( detached ) break;\n\n sink.put(self.array[i], sub);\n }\n\n sink.eof();\n\n resolve(resultSink);\n });\n },\n\n function removeAll_(x, skip, limit, order, predicate) {\n predicate = predicate || this.True.create();\n skip = skip || 0;\n limit = foam.Number.isInstance(limit) ? limit : Number.MAX_VALUE;\n\n for ( var i = 0; i < this.array.length && limit > 0; i++ ) {\n if ( predicate.f(this.array[i]) ) {\n if ( skip > 0 ) {\n skip--;\n continue;\n }\n var obj = this.array.splice(i, 1)[0];\n i--;\n limit--;\n this.on.remove.pub(obj);\n }\n }\n\n return Promise.resolve();\n },\n\n function find_(x, key) {\n var id = this.of.isInstance(key) ? key.id : key;\n for ( var i = 0 ; i < this.array.length ; i++ ) {\n if ( foam.util.equals(id, this.array[i].id) ) {\n return Promise.resolve(this.array[i]);\n }\n }\n\n return Promise.resolve(null);\n }\n ]\n});\n"}}},{"rowIdx":1028,"cells":{"text":{"kind":"string","value":"# Copyright (c) 2020 The Chromium Authors. All rights reserved.\n# Use of this source code is governed by a BSD-style license that can be\n# found in the LICENSE file.\n\"\"\"A ReadFromDatastore alternative for fetching entities in a timestamp range.\n\nThe main difference from ReadFromDatastore is the query splitting method (for\nsplitting into parallel fetches). ReadFromDatastore attempts to automatically\nsplit the query by interrogating the datastore about how best to split the\nquery. This strategy fails in many cases, e.g. for huge datasets this initial\nquery can be prohibitively expensive, and if there's an inequality filter no\nsplitting is attempted at all.\n\nReadTimestampRangeFromDatastore simply splits by a timestamp property, which\nworks well for datasets that are roughly evenly distributed across time (e.g.\nmost days have roughly the same number of entities). This only requires a\ntrivial amount of upfront work, so tends to outperform ReadFromDatastore for\nchromeperf's use cases.\n\"\"\"\n\nfrom __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\n\nimport datetime\nimport logging\n\nimport apache_beam as beam\nfrom google.cloud.datastore import client as ds_client\nfrom google.cloud.datastore import query as ds_query\n\n\nclass ReadTimestampRangeFromDatastore(beam.PTransform):\n \"\"\"Similar to ReadFromDatastore; see module docstring.\"\"\"\n\n def __init__(self,\n query_params,\n time_range_provider,\n step=datetime.timedelta(days=1),\n timestamp_property='timestamp'):\n \"\"\"Constructor.\n\n Params:\n :query_params: kwargs for google.cloud.datastore.query.Query's\n constructor.\n :time_range: see BqExportOptions.GetTimeRangeProvider.\n :step: a datetime.timedelta of the interval to split the range to fetch by\n (default is 1 day).\n :timestamp_property: a str of the name of the timestamp property to filter\n on.\n \"\"\"\n super(ReadTimestampRangeFromDatastore, self).__init__()\n self._query_params = query_params\n self._time_range_provider = time_range_provider\n self._step = step\n self._timestamp_property = timestamp_property\n\n def expand(self, pcoll): # pylint: disable=invalid-name\n return (\n pcoll.pipeline\n | 'Init' >> beam.Create([None])\n | 'SplitTimeRange' >> beam.FlatMap(lambda _: list(self._Splits()))\n # Reshuffle is necessary to prevent fusing between SplitTimeRange\n # and ReadRows, which would thwart parallel processing of ReadRows!\n | 'Reshuffle' >> beam.Reshuffle()\n | 'ReadRows' >> beam.ParDo(\n ReadTimestampRangeFromDatastore._QueryFn(self._query_params,\n self._timestamp_property)))\n\n class _QueryFn(beam.DoFn):\n\n def __init__(self, query_params, timestamp_property):\n super(ReadTimestampRangeFromDatastore._QueryFn, self).__init__()\n self._query_params = query_params\n self._timestamp_property = timestamp_property\n\n def process(\n self,\n start_end,\n *unused_args, # pylint: disable=invalid-name\n **unused_kwargs):\n start, end = start_end\n client = ds_client.Client(project=self._query_params['project'])\n query = ds_query.Query(client=client, **self._query_params)\n query.add_filter(self._timestamp_property, '>=', start)\n query.add_filter(self._timestamp_property, '<', end)\n for entity in query.fetch(client=client, eventual=True):\n yield entity\n\n def _Splits(self):\n min_timestamp, max_timestamp = self._time_range_provider.Get()\n logging.getLogger().info('ReadTimestampRangeFromDatastore from %s to %s',\n min_timestamp, max_timestamp)\n start = min_timestamp\n while True:\n end = start + self._step\n yield (start, end)\n\n if end >= max_timestamp:\n break\n start = end\n"}}},{"rowIdx":1029,"cells":{"text":{"kind":"string","value":"#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport numpy\n\n\ndef event_detection(feature_data, model_container, hop_length_seconds=0.01, smoothing_window_length_seconds=1.0, decision_threshold=0.0, minimum_event_length=0.1, minimum_event_gap=0.1):\n \"\"\"Sound event detection\n\n Parameters\n ----------\n feature_data : numpy.ndarray [shape=(n_features, t)]\n Feature matrix\n\n model_container : dict\n Sound event model pairs [positive and negative] in dict\n\n hop_length_seconds : float > 0.0\n Feature hop length in seconds, used to convert feature index into time-stamp\n (Default value=0.01)\n\n smoothing_window_length_seconds : float > 0.0\n Accumulation window (look-back) length, withing the window likelihoods are accumulated.\n (Default value=1.0)\n\n decision_threshold : float > 0.0\n Likelihood ratio threshold for making the decision.\n (Default value=0.0)\n\n minimum_event_length : float > 0.0\n Minimum event length in seconds, shorten than given are filtered out from the output.\n (Default value=0.1)\n\n minimum_event_gap : float > 0.0\n Minimum allowed gap between events in seconds from same event label class.\n (Default value=0.1)\n\n Returns\n -------\n results : list (event dicts)\n Detection result, event list\n\n \"\"\"\n\n smoothing_window = int(smoothing_window_length_seconds / hop_length_seconds)\n\n results = []\n for event_label in model_container['models']:\n positive = model_container['models'][event_label]['positive'].score_samples(feature_data)[0]\n negative = model_container['models'][event_label]['negative'].score_samples(feature_data)[0]\n\n # Lets keep the system causal and use look-back while smoothing (accumulating) likelihoods\n for stop_id in range(0, feature_data.shape[0]):\n start_id = stop_id - smoothing_window\n if start_id < 0:\n start_id = 0\n positive[start_id] = sum(positive[start_id:stop_id])\n negative[start_id] = sum(negative[start_id:stop_id])\n\n likelihood_ratio = positive - negative\n event_activity = likelihood_ratio > decision_threshold\n\n # Find contiguous segments and convert frame-ids into times\n event_segments = contiguous_regions(event_activity) * hop_length_seconds\n\n # Preprocess the event segments\n event_segments = postprocess_event_segments(event_segments=event_segments,\n minimum_event_length=minimum_event_length,\n minimum_event_gap=minimum_event_gap)\n\n for event in event_segments:\n results.append((event[0], event[1], event_label))\n\n return results\n\n\ndef contiguous_regions(activity_array):\n \"\"\"Find contiguous regions from bool valued numpy.array.\n Transforms boolean values for each frame into pairs of onsets and offsets.\n\n Parameters\n ----------\n activity_array : numpy.array [shape=(t)]\n Event activity array, bool values\n\n Returns\n -------\n change_indices : numpy.ndarray [shape=(2, number of found changes)]\n Onset and offset indices pairs in matrix\n\n \"\"\"\n\n # Find the changes in the activity_array\n change_indices = numpy.diff(activity_array).nonzero()[0]\n\n # Shift change_index with one, focus on frame after the change.\n change_indices += 1\n\n if activity_array[0]:\n # If the first element of activity_array is True add 0 at the beginning\n change_indices = numpy.r_[0, change_indices]\n\n if activity_array[-1]:\n # If the last element of activity_array is True, add the length of the array\n change_indices = numpy.r_[change_indices, activity_array.size]\n\n # Reshape the result into two columns\n return change_indices.reshape((-1, 2))\n\n\ndef postprocess_event_segments(event_segments, minimum_event_length=0.1, minimum_event_gap=0.1):\n \"\"\"Post process event segment list. Makes sure that minimum event length and minimum event gap conditions are met.\n\n Parameters\n ----------\n event_segments : numpy.ndarray [shape=(2, number of event)]\n Event segments, first column has the onset, second has the offset.\n\n minimum_event_length : float > 0.0\n Minimum event length in seconds, shorten than given are filtered out from the output.\n (Default value=0.1)\n\n minimum_event_gap : float > 0.0\n Minimum allowed gap between events in seconds from same event label class.\n (Default value=0.1)\n\n Returns\n -------\n event_results : numpy.ndarray [shape=(2, number of event)]\n postprocessed event segments\n\n \"\"\"\n\n # 1. remove short events\n event_results_1 = []\n for event in event_segments:\n if event[1]-event[0] >= minimum_event_length:\n event_results_1.append((event[0], event[1]))\n\n if len(event_results_1):\n # 2. remove small gaps between events\n event_results_2 = []\n\n # Load first event into event buffer\n buffered_event_onset = event_results_1[0][0]\n buffered_event_offset = event_results_1[0][1]\n for i in range(1, len(event_results_1)):\n if event_results_1[i][0] - buffered_event_offset > minimum_event_gap:\n # The gap between current event and the buffered is bigger than minimum event gap,\n # store event, and replace buffered event\n event_results_2.append((buffered_event_onset, buffered_event_offset))\n buffered_event_onset = event_results_1[i][0]\n buffered_event_offset = event_results_1[i][1]\n else:\n # The gap between current event and the buffered is smalle than minimum event gap,\n # extend the buffered event until the current offset\n buffered_event_offset = event_results_1[i][1]\n\n # Store last event from buffer\n event_results_2.append((buffered_event_onset, buffered_event_offset))\n\n return event_results_2\n else:\n return event_results_1\n"}}},{"rowIdx":1030,"cells":{"text":{"kind":"string","value":"// JS script for WebPuppeteer\n// it can do stuff!\n\nconsole.log(\"Loading google.com...\");\ntab = sys.newTab();\n\n// dump all network traffic to this file\ntab.saveNetwork(\"google_img.bin\");\n\ntab.browse(\"http://www.google.com/ncr\");\nconsole.log(\"loaded, messing with the page\");\n\ntab.type(\"cats\");\ntab.typeEnter();\ntab.wait();\n\ntab.document().findAllContaining(\"Images\")[0].click();\ntab.wait();\n\ntab.interact();\n\n"}}},{"rowIdx":1031,"cells":{"text":{"kind":"string","value":"import os\n\nfrom django.core.wsgi import get_wsgi_application\n\nos.environ.setdefault('DJANGO_SETTINGS_MODULE', 'healthy-at-home.settings')\n\napplication = get_wsgi_application()\n"}}},{"rowIdx":1032,"cells":{"text":{"kind":"string","value":"// point free\n// 例子1: Hello World -> hello_world\nconst fp = require('lodash/fp')\n\nconst f = fp.flowRight(fp.replace(/\\s+/g, '_'), fp.toLower)\n\nconsole.log(f('Hello World')) // hello_world\n\n// 例子2: 将字符串首字母转为大写,使用. 分割\n// world wild web -> W. W. W\n\nconst firstLetterToUpper_0 = fp.flowRight(fp.join('. '), fp.map(fp.first), fp.map(fp.toUpper), fp.split(' '))\n// 优化: 将2次 map 合并\nconst firstLetterToUpper = fp.flowRight(fp.join('. '), fp.map(fp.flowRight(fp.first, fp.toUpper)), fp.split(' '))\n\nconsole.log(firstLetterToUpper('world wild web'))\n"}}},{"rowIdx":1033,"cells":{"text":{"kind":"string","value":"\"\"\"Contains logging configuration data.\"\"\"\n\nimport logging\nimport logging.config\n\nfrom jade.extensions.registry import Registry\n\n\ndef setup_logging(\n name, filename, console_level=logging.INFO, file_level=logging.INFO, mode=\"w\", packages=None\n):\n \"\"\"Configures logging to file and console.\n\n Parameters\n ----------\n name : str\n logger name\n filename : str | None\n log filename\n console_level : int, optional\n console log level\n file_level : int, optional\n file log level\n packages : list, optional\n enable logging for these package names\n\n \"\"\"\n log_config = {\n \"version\": 1,\n \"disable_existing_loggers\": False,\n \"formatters\": {\n \"short\": {\n \"format\": \"%(asctime)s - %(levelname)s [%(name)s \"\n \"%(filename)s:%(lineno)d] : %(message)s\",\n },\n \"detailed\": {\n \"format\": \"%(asctime)s - %(levelname)s [%(name)s \"\n \"%(filename)s:%(lineno)d] : %(message)s\",\n },\n },\n \"handlers\": {\n \"console\": {\n \"level\": console_level,\n \"formatter\": \"short\",\n \"class\": \"logging.StreamHandler\",\n },\n \"file\": {\n \"class\": \"logging.FileHandler\",\n \"level\": file_level,\n \"filename\": filename,\n \"mode\": mode,\n \"formatter\": \"detailed\",\n },\n },\n \"loggers\": {\n name: {\"handlers\": [\"console\", \"file\"], \"level\": \"DEBUG\", \"propagate\": False},\n },\n }\n\n logging_packages = set(Registry().list_loggers())\n if packages is not None:\n for package in packages:\n logging_packages.add(package)\n\n for package in logging_packages:\n log_config[\"loggers\"][package] = {\n \"handlers\": [\"console\", \"file\"],\n \"level\": \"DEBUG\",\n \"propagate\": False,\n }\n\n if filename is None:\n log_config[\"handlers\"].pop(\"file\")\n log_config[\"loggers\"][name][\"handlers\"].remove(\"file\")\n for package in logging_packages:\n if \"file\" in log_config[\"loggers\"][package][\"handlers\"]:\n log_config[\"loggers\"][package][\"handlers\"].remove(\"file\")\n\n logging.config.dictConfig(log_config)\n logger = logging.getLogger(name)\n\n return logger\n\n\n_EVENT_LOGGER_NAME = \"_jade_event\"\n\n\ndef setup_event_logging(filename, mode=\"w\"):\n \"\"\"Configures structured event logging.\n\n Parameters\n ----------\n filename : str\n log filename\n mode : str\n\n \"\"\"\n log_config = {\n \"version\": 1,\n \"disable_existing_loggers\": False,\n \"formatters\": {\n \"basic\": {\"format\": \"%(message)s\"},\n },\n \"handlers\": {\n \"file\": {\n \"class\": \"logging.FileHandler\",\n \"level\": logging.INFO,\n \"filename\": filename,\n \"mode\": mode,\n \"formatter\": \"basic\",\n },\n },\n \"loggers\": {\n \"_jade_event\": {\n \"handlers\": [\"file\"],\n \"level\": \"INFO\",\n \"propagate\": False,\n },\n },\n }\n\n logging.config.dictConfig(log_config)\n logger = logging.getLogger(_EVENT_LOGGER_NAME)\n\n return logger\n\n\ndef close_event_logging():\n \"\"\"Close the event log file handle.\"\"\"\n for handler in logging.getLogger(_EVENT_LOGGER_NAME).handlers:\n handler.close()\n\n\ndef log_event(event):\n \"\"\"\n Log a structured job event into log file\n\n Parameters\n ----------\n event: :obj:`StructuredLogEvent`\n An instance of :obj:`StructuredLogEvent`\n\n \"\"\"\n logger = logging.getLogger(_EVENT_LOGGER_NAME)\n logger.info(event)\n"}}},{"rowIdx":1034,"cells":{"text":{"kind":"string","value":"/**\n * Represents the main\n */\nvar RadFeedback = (function () {\n function RadFeedback() {\n }\n RadFeedback.init = function (apiKey, serviceUri, uid) {\n };\n RadFeedback.show = function () {\n };\n return RadFeedback;\n})();\nexports.RadFeedback = RadFeedback;\n"}}},{"rowIdx":1035,"cells":{"text":{"kind":"string","value":"export const refreshTokenSetup = (res) => {\n // Timing to renew access token\n let refreshTiming = (res.tokenObj.expires_in || 3600 - 5 * 60) * 1000;\n \n const refreshToken = async () => {\n const newAuthRes = await res.reloadAuthResponse();\n refreshTiming = (newAuthRes.expires_in || 3600 - 5 * 60) * 1000;\n // console.log('newAuthRes:', newAuthRes);\n // saveUserToken(newAuthRes.access_token); <-- save new token\n localStorage.setItem('authToken', newAuthRes.id_token);\n \n // Setup the other timer after the first one\n setTimeout(refreshToken, refreshTiming);\n };\n \n // Setup first refresh timer\n setTimeout(refreshToken, refreshTiming);\n };"}}},{"rowIdx":1036,"cells":{"text":{"kind":"string","value":"// Copyright 2019 Google LLC\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\n'use strict';\n\nconst main = (\n projectId = process.env.GOOGLE_CLOUD_PROJECT,\n cloudRegion = 'us-central1',\n datasetId\n) => {\n // [START healthcare_list_dicom_stores]\n const {google} = require('googleapis');\n const healthcare = google.healthcare('v1');\n\n const listDicomStores = async () => {\n const auth = await google.auth.getClient({\n scopes: ['https://www.googleapis.com/auth/cloud-platform'],\n });\n google.options({auth});\n\n // TODO(developer): uncomment these lines before running the sample\n // const cloudRegion = 'us-central1';\n // const projectId = 'adjective-noun-123';\n // const datasetId = 'my-dataset';\n const parent = `projects/${projectId}/locations/${cloudRegion}/datasets/${datasetId}`;\n const request = {parent};\n\n const dicomStores =\n await healthcare.projects.locations.datasets.dicomStores.list(request);\n console.log(dicomStores.data);\n };\n\n listDicomStores();\n // [END healthcare_list_dicom_stores]\n};\n\n// node listDicomStores.js \nmain(...process.argv.slice(2));\n"}}},{"rowIdx":1037,"cells":{"text":{"kind":"string","value":"'use strict';\nmodule.exports = (sequelize, DataTypes) => {\n\tconst MenuList = sequelize.define('MenuList', {\n\t\tid: {\n\t\t\tallowNull: false,\n\t\t\ttype: DataTypes.UUID,\n\t\t\tprimaryKey: true,\n\t\t\tdefaultValue: DataTypes.UUIDV4,\n\t\t\tvalidate: {\n\t\t\t\tisUUID: 4\n\t\t\t},\n\t\t\tnotNull: {\n\t\t\t\tmsg: 'UUID cannot be null.'\n\t\t\t}\n\t\t}\n\t}, {});\n\tMenuList.associate = function(models) {\n\t\tMenuList.ShopMenuList = MenuList.belongsTo(models.Shop,{\n\t\t\tforeignKey: {\n\t\t\t\tallowNull: false\n\t\t\t}\n\t\t});\n\t\tMenuList.Coffee = MenuList.hasMany(models.Coffee);\n\t};\n\treturn MenuList;\n};\n"}}},{"rowIdx":1038,"cells":{"text":{"kind":"string","value":"'use strict';\n\n///This is from https://github.com/porchdotcom/nock-back-mocha with some modifications\n\nvar path = require('path');\nvar nock = require('nock');\nvar sanitize = require('sanitize-filename');\nnock.enableNetConnect();\n\n\nvar nockFixtureDirectory = path.resolve(path.resolve(__dirname,'fixtures'));\n\nvar filenames = [];\n\n//TODO: these functions should be specified by the provider, not in the test runner.\n//this function filters/transforms the request so that it matches the data in the recording.\nfunction afterLoad(recording){\n recording.transformPathFunction = function(path){\n return removeSensitiveData(path);\n }\n\n // recording.scopeOptions.filteringScope = function(scope) {\n //\n // console.log(\"SCOPE\", scope)\n // return /^https:\\/\\/api[0-9]*.dropbox.com/.test(scope);\n // };\n // recording.scope = recording.scope.replace(/^https:\\/\\/api[0-9]*.dropbox.com/, 'https://api.dropbox.com')\n}\n\n//this function removes any sensitive data from the recording so that it will not be included in git repo.\nfunction afterRecord(recordings) {\n console.log('>>>> Removing sensitive data from recording');\n // console.dir(recordings);\n\n for(var ndx in recordings){\n var recording = recordings[ndx]\n\n recording.path = removeSensitiveData(recording.path)\n recording.response = removeSensitiveData(recording.response)\n }\n return recordings\n};\n\n\nfunction removeSensitiveData(rawString){\n rawString = rawString.toString()\n if(process.env.OAUTH_GOODREADS_CLIENT_KEY) {\n rawString = rawString.replace(new RegExp(process.env.OAUTH_GOODREADS_CLIENT_KEY, 'g') , 'PLACEHOLDER_CLIENT_KEY')\n }\n\n if(process.env.OAUTH_GOODREADS_CLIENT_SECRET){\n rawString = rawString.replace(new RegExp( process.env.OAUTH_GOODREADS_CLIENT_SECRET, \"g\"), 'PLACEHOLDER_CLIENT_SECRET' )\n }\n return rawString\n}\n\n\nbeforeEach(function (done) {\n\n var filename = sanitize(this.currentTest.fullTitle() + '.json');\n // make sure we're not reusing the nock file\n if (filenames.indexOf(filename) !== -1) {\n return done(new Error('goodreads.js does not support multiple tests with the same name. `' + filename + '` cannot be reused.'));\n }\n filenames.push(filename);\n\n var previousFixtures = nock.back.fixtures;\n nock.back.fixtures = nockFixtureDirectory;\n nock.back.setMode('record');\n nock.back(filename, {\n after: afterLoad,\n afterRecord: afterRecord\n }, function (nockDone) {\n this.currentTest.nockDone = function () {\n nockDone();\n nock.back.fixtures = previousFixtures;\n };\n done();\n }.bind(this));\n});\n\nafterEach(function () {\n this.currentTest.nockDone();\n});"}}},{"rowIdx":1039,"cells":{"text":{"kind":"string","value":"/* global describe, it */\n'use strict';\n\n// Load dependencies\nvar should = require('should');\nvar Query = require('bazalt-query');\n\n// Class to test\nvar QueryNodeMysqlTranformer = require('../');\n\n\ndescribe('Test QueryNodeMysqlTranformer class', function() {\n\n});\n"}}},{"rowIdx":1040,"cells":{"text":{"kind":"string","value":"$(document).ready(function() {\n smoothScrool(1000);\n\n timeRunOut(37,67);\n console.log('test');\n\n});\n\n\n\n\nfunction smoothScrool (duration) {\n $('a[href^=\"#\"]').on('click', function(event) {\n\n var target = $( $(this).attr('href') );\n\n if (target.length) {\n event.preventDefault();\n $('html, body').animate({\n scrollTop: target.offset().top\n }, duration);\n\n\n }\n\n });\n\n}\n\nfunction timeRunOut(elapsedTime, endTime) {\n let timeLeft = endTime - elapsedTime;\n console.log(timeLeft);\n}\n\n\nfunction addFavoriteBook(bookName) {\n if (!bookName.includes(\"Great\")) {\n favoriteBooks.push(bookName);\n }\n}\n\nfunction printFavoriteBooks() {\n console.log(`Bobi has ${favoriteBooks.length} favorite books`);\n for (let bookName of favoriteBooks) {\n console.log(bookName);\n }\n}\n\nvar favoriteBooks = [];\n\naddFavoriteBook(\"5 Lat Kacetu\");\naddFavoriteBook(\"Great Wall in China\");\naddFavoriteBook(\"Metallica Biography\");\naddFavoriteBook(\"Witcher\");\naddFavoriteBook(\"Great Gatsby\");\n\nprintFavoriteBooks();\n\nvar message1 =\"There is \";\nvar monthsNumber = 11;\nvar message2 =\" months left.\";\n\nconsole.log(message1 + monthsNumber + message2);\n\nlet workshop2Element = 20;\n\nvar workshopenrollment = workshop2Element.value;\nconsole.log(workshopenrollment);\n\n//NaN simple function\n\n/* NOTES FROM FRONTEND MASTERS COURSES. NEED TO BE REWRITTEN INTO NOTEBOOK, AFTER BUYING\n\nThree Pillars of JS\n\n1. Types / Coercion coercion means \"przymus\" in polish\n2. Scope / Closures \"Zakres / Zamknięcia\"\n3. this / Prototypes\n\nTypes / Coercion\n\n- Primitive Types\n- Converting Types\n- Checking Equality\n\n\"In JavaScript everything is an object\" - It is NOT true\n\nPrimitive Types\n\n- undefined\n- string\n- number\n- boolean\n- object\n- symbol\n- null (behaves little strangely)\n\nIn JavaScript variables DON'T have types,\nValues DO.\n\nHistorical bug of JS. typeof v = null; gives answer that is an object. It should be null.\n\nThe way of convert one type to another is - \"COERCION\"\n\n== double equals allow coercion (different types)\n\n=== triple equals disallow coercion (same types)\n\n*/\n"}}},{"rowIdx":1041,"cells":{"text":{"kind":"string","value":"import {RomContextProvider} from \"./RomContext\";\nimport {shallow} from \"enzyme\";\n\nclass LocalStorageMock {\n constructor() {\n this.store = {};\n }\n\n clear() {\n this.store = {};\n }\n\n getItem(key) {\n return this.store[key] || null;\n }\n\n setItem(key, value) {\n this.store[key] = value.toString();\n }\n\n removeItem(key) {\n delete this.store[key];\n }\n}\n\nbeforeEach(() => {\n Object.defineProperty(window, 'localStorage', {value: new LocalStorageMock()});\n});\n\ntest('save a rom to a slot', () => {\n const provider = shallow().instance();\n\n expect(window.localStorage.getItem('SLOT_0')).toBeNull();\n\n provider.saveSlot(0, 'DonkeyK.nes', '0123456789abcdef');\n\n expect(window.localStorage.getItem('SLOT_0')).toBeDefined();\n});\n\ntest('get and set version', () => {\n const provider = shallow().instance();\n\n expect(provider.getVersion()).toBeNull();\n\n provider.setVersion();\n\n expect(provider.getVersion()).toBeDefined();\n});\n\ntest('remove rom', () => {\n const provider = shallow().instance();\n provider.saveSlot(0, 'DonkeyK.nes', '0123456789abcdef');\n\n expect(window.localStorage.getItem('SLOT_0')).toBeDefined();\n\n provider.removeRom(0);\n\n expect(window.localStorage.getItem('SLOT_0')).toBeNull();\n});"}}},{"rowIdx":1042,"cells":{"text":{"kind":"string","value":"(function() {\n \"use strict\";\n angular\n .module(\"app.dashboard\")\n .factory(\"ExposureFactory\", function ExposureFactory(\n $translate,\n $filter,\n $window,\n $timeout,\n $http,\n $sanitize,\n Utils,\n Alertify\n ) {\n ExposureFactory.init = function() {\n ExposureFactory.exposure = {\n currScore: {\n value: 0,\n test: \"\"\n },\n futureScore: {\n value: 0,\n test: \"\"\n },\n description: [\n $translate.instant(\"dashboard.improveScoreModal.exposure.DESCRIPTION_1\"),\n $translate.instant(\"dashboard.improveScoreModal.exposure.DESCRIPTION_2\"),\n $translate.instant(\"dashboard.improveScoreModal.exposure.DESCRIPTION_3\"),\n $translate.instant(\"dashboard.improveScoreModal.exposure.DESCRIPTION_4\")\n ],\n progressNames: [\n $translate.instant(\"dashboard.improveScoreModal.exposure.PROCESS_1\"),\n $translate.instant(\"dashboard.improveScoreModal.exposure.PROCESS_2\"),\n $translate.instant(\"dashboard.improveScoreModal.exposure.PROCESS_3\"),\n $translate.instant(\"dashboard.improveScoreModal.exposure.PROCESS_4\")\n ]\n };\n }\n\n let resizeEvent = \"resize.ag-grid\";\n let $win = $($window);\n\n function innerCellRenderer(params) {\n const serviceColorArray = [\n \"text-danger\",\n \"text-warning\",\n \"text-caution\",\n \"text-monitor\",\n \"text-protect\"\n ];\n const levelMap = {\n protect: 4,\n monitor: 3,\n discover: 2,\n violate: 1,\n warning: 1,\n deny: 0,\n critical: 0\n };\n\n let level = [];\n if (params.data.children) {\n params.data.children.forEach(function(child) {\n if (child.severity) {\n level.push(levelMap[child.severity.toLowerCase()]);\n } else if (\n child.policy_action &&\n (child.policy_action.toLowerCase() === \"deny\" || child.policy_action.toLowerCase()===\"violate\")\n ) {\n level.push(levelMap[child.policy_action.toLowerCase()]);\n } else {\n if (!child.policy_mode) child.policy_mode = \"discover\";\n level.push(levelMap[child.policy_mode.toLowerCase()]);\n }\n });\n let serviceColor = serviceColorArray[Math.min(...level)];\n return `${\n $sanitize(params.data.service)\n }`;\n } else {\n const podColorArray = [\n \"text-danger\",\n \"text-warning\",\n \"text-caution\",\n \"text-monitor\",\n \"text-protect\"\n ];\n const levelMap = {\n protect: 4,\n monitor: 3,\n discover: 2,\n violate: 1,\n warning: 1,\n deny: 0,\n critical: 0\n };\n const actionTypeIconMap = {\n discover: \"fa icon-size-2 fa-exclamation-triangle\",\n violate: \"fa icon-size-2 fa-ban\",\n protect: \"fa icon-size-2 fa-shield\",\n monitor: \"fa icon-size-2 fa-bell\",\n deny: \"fa icon-size-2 fa-minus-circle\",\n threat: \"fa icon-size-2 fa-bug\"\n };\n let actionType = \"\";\n let level = 0;\n if (params.data.severity) {\n level = levelMap[params.data.severity.toLowerCase()];\n actionType = actionTypeIconMap[\"threat\"];\n } else if (\n params.data.policy_action &&\n (params.data.policy_action.toLowerCase() === \"deny\" || params.data.policy_action.toLowerCase()===\"violate\")\n ) {\n level = levelMap[params.data.policy_action.toLowerCase()];\n actionType =\n actionTypeIconMap[params.data.policy_action.toLowerCase()];\n } else {\n if (!params.data.policy_mode) params.data.policy_mode = \"discover\";\n level = levelMap[params.data.policy_mode.toLowerCase()];\n actionType =\n actionTypeIconMap[params.data.policy_mode.toLowerCase()];\n }\n return `&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;${\n $sanitize(params.data.display_name)\n }`;\n }\n }\n\n ExposureFactory.exposedContainerColumnDefs = [\n {\n headerName: $translate.instant(\"dashboard.body.panel_title.SERVICE\"),\n field: \"service\",\n width: 450,\n cellRendererParams: { innerRenderer: innerCellRenderer },\n cellRenderer: \"agGroupCellRenderer\"\n },\n {\n headerName: $translate.instant(\n \"dashboard.body.panel_title.APPLICATIONS\"\n ),\n field: \"applications\",\n cellRenderer: function(params) {\n if (params.value) {\n return $sanitize(\n params.data.ports\n ? params.value.concat(params.data.ports).join(\", \")\n : params.value.join(\", \")\n );\n }\n },\n width: 300,\n suppressSorting: true\n },\n {\n headerName: $translate.instant(\n \"dashboard.body.panel_title.POLICY_MODE\"\n ),\n field: \"policy_mode\",\n cellRenderer: function(params) {\n let mode = \"\";\n if (params.value) {\n mode = Utils.getI18Name(params.value);\n let labelCode = colourMap[params.value];\n if (!labelCode) return null;\n else\n return `${$sanitize(mode)}`;\n } else return null;\n },\n width: 95,\n minWidth: 95,\n suppressSorting: true\n },\n {\n headerName: $translate.instant(\n \"dashboard.body.panel_title.POLICY_ACTION\"\n ),\n field: \"policy_action\",\n cellRenderer: function(params) {\n if (params.value) {\n return `\n ${$sanitize($translate.instant(\n \"policy.action.\" + params.value.toUpperCase()\n ))}\n `;\n }\n },\n width: 80,\n maxWidth: 80,\n minWidth: 80,\n suppressSorting: true\n },\n {\n headerName: \"\",\n field: \"policy_action\",\n cellRenderer: function(params) {\n if (params.value) {\n return `\n `;\n }\n },\n width: 45,\n maxWidth: 45,\n minWidth: 45,\n suppressSorting: true\n }\n ];\n\n function getWorkloadChildDetails(rowItem) {\n if (rowItem.children && rowItem.children.length > 0) {\n return {\n group: true,\n children: rowItem.children,\n expanded: true\n };\n } else {\n return null;\n }\n }\n\n ExposureFactory.gridIngressContainer = {\n headerHeight: 30,\n rowHeight: 30,\n enableSorting: true,\n enableColResize: true,\n animateRows: true,\n angularCompileRows: true,\n suppressDragLeaveHidesColumns: true,\n columnDefs: ExposureFactory.exposedContainerColumnDefs,\n getNodeChildDetails: getWorkloadChildDetails,\n rowData: null,\n rowSelection: \"single\",\n icons: {\n sortAscending: '',\n sortDescending: ''\n },\n overlayNoRowsTemplate: $translate.instant(\"general.NO_ROWS\"),\n onGridReady: function(params) {\n $timeout(function() {\n params.api.sizeColumnsToFit();\n }, 100);\n $win.on(resizeEvent, function() {\n $timeout(function() {\n params.api.sizeColumnsToFit();\n }, 500);\n });\n }\n };\n\n ExposureFactory.gridEgressContainer = {\n headerHeight: 30,\n rowHeight: 30,\n enableSorting: true,\n enableColResize: true,\n animateRows: true,\n angularCompileRows: true,\n suppressDragLeaveHidesColumns: true,\n columnDefs: ExposureFactory.exposedContainerColumnDefs,\n getNodeChildDetails: getWorkloadChildDetails,\n rowData: null,\n rowSelection: \"single\",\n icons: {\n sortAscending: '',\n sortDescending: ''\n },\n overlayNoRowsTemplate: $translate.instant(\"general.NO_ROWS\"),\n onGridReady: function(params) {\n $timeout(function() {\n params.api.sizeColumnsToFit();\n }, 100);\n $win.on(resizeEvent, function() {\n $timeout(function() {\n params.api.sizeColumnsToFit();\n }, 500);\n });\n }\n };\n\n function filterExposedConversations(exposedConversations, filter) {\n let res = [];\n if (filter) {\n if (exposedConversations && exposedConversations.length > 0) {\n exposedConversations.forEach(function(conversation, index) {\n let children = [];\n if (conversation.children && conversation.children.length > 0) {\n children = conversation.children.filter(function(child) {\n if (filter === \"threat\" && child.severity) {\n return true;\n } else if (\n filter === \"violation\" && (\n (child.policy_action && child.policy_action.toLowerCase() === \"violate\" || child.policy_action.toLowerCase() === \"deny\")\n )\n ) {\n return true;\n } else if (filter === \"normal\" &&\n (!child.severity || child.severity.length === 0) &&\n (!child.policy_action || (child.policy_action.toLowerCase() !== \"violate\" && child.policy_action.toLowerCase() !== \"deny\"))\n ) {\n return true;\n }\n return false;\n });\n }\n if (children.length > 0) {\n conversation.children = children;\n conversation.seq = index;\n res.push(conversation);\n }\n });\n }\n return res;\n }\n return exposedConversations;\n }\n\n ExposureFactory.generateGrid = function(exposedConversations, filter, tabs) {\n console.log(\"ExposureFactory.generateGrid perams: \", exposedConversations, filter, tabs);\n let ingress = filterExposedConversations(exposedConversations.ingress, filter);\n let egress = filterExposedConversations(exposedConversations.egress, filter);\n console.log(\"ingress, egress: \", ingress, egress);\n ExposureFactory.gridIngressContainer.api.setRowData(\n ingress\n );\n ExposureFactory.gridEgressContainer.api.setRowData(\n egress\n );\n if (ingress.length === 0 && egress.length > 0) {\n tabs[filter] = 1;\n }\n };\n\n ExposureFactory.removeConversationFromGrid = function(exposedConversations, workloadId) {\n console.log(\"ExposureFactory.removeConversationFromGrid params: \", exposedConversations, workloadId);\n let res = [];\n if (exposedConversations && exposedConversations.length > 0) {\n exposedConversations.forEach(function(conversation, index) {\n let children = [];\n if (conversation.children && conversation.children.length > 0) {\n children = conversation.children.filter(function(child) {\n return !(child.id === workloadId);\n });\n }\n if (children.length > 0) {\n conversation.children = children;\n res.push(conversation);\n }\n });\n }\n return res;\n };\n\n ExposureFactory.clearSessions = function(filter, tabs, endPoint1, endPoint2) {\n console.log(\"clearSessions parameter: \", filter, tabs, endPoint1, endPoint2);\n let from = endPoint2;\n let to = endPoint1;\n if (tabs[filter] === 1) {\n from = endPoint1;\n to = endPoint2;\n }\n $http\n .delete(CONVERSATION_SNAPSHOT_URL, {\n params: { from: encodeURIComponent(from), to: encodeURIComponent(to) }\n })\n .then(function() {\n setTimeout(function() {\n console.log(\"ExposureFactory.exposedConversations: \", ExposureFactory.exposedConversations);\n if (endPoint1 === \"external\") {\n ExposureFactory.exposedConversations.ingress = ExposureFactory.removeConversationFromGrid(ExposureFactory.exposedConversations.ingress, endPoint1);\n } else {\n ExposureFactory.exposedConversations.egress = ExposureFactory.removeConversationFromGrid(ExposureFactory.exposedConversations.egress, endPoint1);\n }\n ExposureFactory.generateGrid(ExposureFactory.exposedConversations, filter, tabs);\n }, 500);\n })\n .catch(function(err) {\n console.warn(err);\n Alertify.set({ delay: ALERTIFY_ERROR_DELAY });\n Alertify.error(\n Utils.getAlertifyMsg(err, $translate.instant(\"network.popup.SESSION_CLEAR_FAILURE\"), false)\n );\n });\n };\n\n\n return ExposureFactory;\n });\n})();\n"}}},{"rowIdx":1043,"cells":{"text":{"kind":"string","value":"import React, { memo, forwardRef } from 'react'\nimport Icon from '../src/Icon'\n\nconst svgPaths16 = [\n 'M1.067 0C.477 0 0 .478 0 1.067V3.2c0 .59.478 1.067 1.067 1.067h2.24a5.342 5.342 0 002.9 3.734 5.337 5.337 0 00-2.9 3.733h-2.24C.477 11.733 0 12.21 0 12.8v2.133C0 15.523.478 16 1.067 16H6.4c.59 0 1.067-.478 1.067-1.067V12.8c0-.59-.478-1.067-1.067-1.067H4.401a4.27 4.27 0 013.92-3.194l.212-.006V9.6c0 .59.478 1.067 1.067 1.067h5.333c.59 0 1.067-.478 1.067-1.067V6.4c0-.59-.478-1.067-1.067-1.067H9.6c-.59 0-1.067.478-1.067 1.067v1.067a4.268 4.268 0 01-4.132-3.2H6.4c.59 0 1.067-.478 1.067-1.067V1.067C7.467.477 6.989 0 6.4 0H1.067z'\n]\nconst svgPaths20 = [\n 'M1.053 0C.47 0 0 .471 0 1.053V4.21c0 .58.471 1.052 1.053 1.052h3.275a6.332 6.332 0 003.728 4.738 6.33 6.33 0 00-3.728 4.737l-3.275-.001C.47 14.737 0 15.208 0 15.789v3.158C0 19.53.471 20 1.053 20h7.435c.581 0 1.053-.471 1.053-1.053V15.79c0-.58-.472-1.052-1.053-1.052H5.406a5.293 5.293 0 015.195-4.21v2.105c0 .58.471 1.052 1.052 1.052h7.294c.582 0 1.053-.471 1.053-1.052V7.368c0-.58-.471-1.052-1.053-1.052h-7.294c-.581 0-1.052.471-1.052 1.052v2.106a5.293 5.293 0 01-5.194-4.21h3.081c.581 0 1.053-.472 1.053-1.053V1.053C9.54.47 9.069 0 8.488 0H1.053z'\n]\n\nexport const DataLineageIcon = memo(\n forwardRef(function DataLineageIcon(props, ref) {\n return (\n \n )\n })\n)\n"}}},{"rowIdx":1044,"cells":{"text":{"kind":"string","value":"import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { Link, graphql } from \"gatsby\";\nimport { getImage } from \"gatsby-plugin-image\";\n\nimport Layout from \"components/Layout\";\nimport Features from \"components/Features\";\nimport BlogRoll from \"components/BlogRoll\";\nimport FullWidthImage from \"components/FullWidthImage\";\nimport Hero from \"components/Hero\";\nimport Services from \"sections/Services\";\nimport Solutions from \"sections/Solutions\";\nimport HowItWorks from \"sections/HowItWorks\";\n\n// eslint-disable-next-line\nexport const IndexPageTemplate = ({\n heroImage,\n title,\n subheading,\n description,\n ctaTitle,\n ctaPath,\n services,\n solutions,\n howItWorks,\n}) => {\n return (\n
\n \n \n \n \n
\n );\n};\n\nIndexPageTemplate.propTypes = {\n heroImage: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),\n title: PropTypes.string,\n ctaTitle: PropTypes.string,\n ctaPath: PropTypes.string,\n subheading: PropTypes.string,\n description: PropTypes.string,\n services: PropTypes.shape({\n ctaPath: PropTypes.string,\n ctaTitle: PropTypes.string,\n description: PropTypes.string,\n heading: PropTypes.string,\n service_stat_cards: PropTypes.array,\n }),\n solutions: PropTypes.shape({\n heading: PropTypes.string,\n home_solution_cards: PropTypes.array,\n }),\n howItWorks:PropTypes.shape({ \n copy: PropTypes.string,\n ctaPath: PropTypes.string,\n ctaTitle: PropTypes.string,\n heading: PropTypes.string,\n how_it_works_list: PropTypes.array,\n image: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),\n }),\n \n};\n\nconst IndexPage = ({ data }) => {\n const { frontmatter } = data.markdownRemark;\n\n return (\n \n \n \n );\n};\n\nIndexPage.propTypes = {\n data: PropTypes.shape({\n markdownRemark: PropTypes.shape({\n frontmatter: PropTypes.object,\n }),\n }),\n};\n\nexport default IndexPage;\n\n \nexport const pageQuery = graphql`\nquery IndexPageTemplate {\n markdownRemark(frontmatter: {templateKey: {eq: \"index-page\"}}) {\n frontmatter {\n title\n heading\n subheading\n ctaTitle\n ctaPath\n description\n heroImage {\n publicURL\n }\n services {\n ctaPath\n ctaTitle\n description\n heading\n service_stat_cards {\n content\n image {\n publicURL\n }\n title\n }\n }\n solutions {\n heading\n home_solution_cards {\n content\n ctaPath\n ctaTitle\n title\n image {\n publicURL\n }\n }\n }\n how_it_works {\n copy\n ctaPath\n ctaTitle\n heading\n image{\n publicURL\n }\n how_it_works_list {\n listContent\n listHeading\n }\n }\n }\n }\n}\n`;\n\n"}}},{"rowIdx":1045,"cells":{"text":{"kind":"string","value":"import React from 'react'\nimport VideoListItem from './video_list_item'\n\nconst VideoList = (props) => {\n const videoItems = props.videos.map((video) => {\n return (\n \n )\n })\n\n return (\n
    \n {videoItems}\n
\n )\n}\n\nexport default VideoList\n"}}},{"rowIdx":1046,"cells":{"text":{"kind":"string","value":"const { createComment, bot } = require('./comment-bot');\nconst {\n trigger: configTrigger,\n releaseMapper: configReleaseMapper,\n users,\n labels: configLabels,\n released\n} = require('./config.json');\nconst travisTrigger = require('./travis-bot');\n\nconst trigger = configTrigger || 'release';\n\nconst releaseMapper = configReleaseMapper || {\n major: 'major',\n minor: 'minor',\n bugfix: 'bugfix'\n}\n\nconst labels = configLabels || {\n release: 'bugfix',\n 'release minor': 'minor'\n}\n\nconst triggerRelease = (type) => `&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;:soon::shipit::octocat:\n&emsp;&emsp;&emsp;&emsp;&emsp;${type === 'bugfix' ? ':bug:' : ':rose:'}Shipit Squirrel has this release **${type}** surrounded, be ready for a new version${type === 'bugfix' ? ':beetle:' : ':sunflower:'}`;\n\nconst noRelease = `&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;:rage1::volcano:\n&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;:no_bell:Sorry, no release, PR has not yet been merged:see_no_evil:`\n\nconst alreadyReleased = `&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;:broken_heart::persevere:\n&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;:mute:Sorry, no release, Pr has already been released:video_game:`\n\n/**\n * This is the main entrypoint to your Probot app\n * @param {import('probot').Application} app\n */\nmodule.exports = app => {\n app.log(`Trigger word: ${trigger}`);\n app.log(`${Object.entries(releaseMapper).map(([key, value]) => `will look for - ${key} as ${value}`).join('\\n')}`);\n app.log(`Release labels: \\n${Object.entries(labels).map(([key, value]) => `will look for - ${key} as ${value}`).join('\\n')}`);\n\n app.on(['pull_request.closed', 'pull_request.labeled'], async context => {\n const currPr = context.issue();\n context.log(currPr);\n context.log('PR has been closed!');\n if (context.payload.pull_request.merged) {\n context.log('PR has been actually merged!');\n context.log(context.payload.pull_request.labels);\n const releasedLabel = context.payload.pull_request.labels.find(({ name }) => name === released);\n const releaseLabel = context.payload.pull_request.labels.find(({ name }) => name in labels);\n if (releasedLabel) {\n context.log(`Already released, not releasing again.`);\n createComment({ ...currPr, body: alreadyReleased }, context);\n } else if (releaseLabel) {\n const type = labels[releaseLabel.name] || 'bugfix';\n context.log(`We will trigger new Release: ${type}!`);\n createComment({ ...currPr, body: triggerRelease(type) }, context);\n return travisTrigger(currPr, type, context);\n } else {\n context.log(`No release label found, no release triggered.`);\n }\n }\n });\n\n app.on(['issue_comment.edited', 'issue_comment.created'], async context => {\n let allowed = true;\n if (users && !users.some(user => user === context.payload.sender.login)) {\n allowed = false;\n }\n if (allowed && context.payload.comment.body) {\n const corrected = context.payload.comment.body.trim().toLowerCase();\n const isRelease = corrected.search(new RegExp(trigger)) === 0;\n const currPr = context.issue();\n context.log(currPr);\n if (isRelease) {\n const { data: pullRequest } = await bot.pulls.get({\n owner: currPr.owner,\n repo: currPr.repo,\n pull_number: currPr.number || currPr.pull_number\n });\n if (pullRequest && pullRequest.merged) {\n const releasedLabel = pullRequest.labels.find(({ name }) => name === released);\n if (releasedLabel) {\n context.log(`Already released, not releasing again.`);\n createComment({ ...currPr, body: alreadyReleased }, context);\n } else {\n const type = releaseMapper[corrected.substring(trigger.length).trim()] || 'bugfix';\n context.log(`We will trigger new Release: ${type}!`);\n createComment({ ...currPr, body: triggerRelease(type) }, context);\n return travisTrigger(currPr, type, context);\n }\n }\n else {\n context.log(`PR not merged, not gonna release.`);\n createComment({ ...currPr, body: noRelease }, context);\n }\n } else {\n context.log(`Not running release, because magic word not present.`);\n }\n }\n });\n};\n"}}},{"rowIdx":1047,"cells":{"text":{"kind":"string","value":"import json\nimport os\nimport math\n\n# metadata\nmetadata = {\n 'protocolName': 'Station A SLP-005v2',\n 'author': 'Chaz ',\n 'source': 'Custom Protocol Request',\n 'apiLevel': '2.3'\n}\n\nNUM_SAMPLES = 8\nSAMPLE_VOLUME = 300\nTIP_TRACK = False\nCTRL_SAMPLES = 2\nRACK_DEF = 'opentrons_24_tuberack_eppendorf_2ml_safelock_snapcap'\nPK_ADD = False\n\n\ndef run(protocol):\n\n # load labware\n source_racks = [\n protocol.load_labware(RACK_DEF, slot, 'source tuberack ' + str(i+1))\n for i, slot in enumerate(['1', '4', '7', '10'])\n ]\n dest_plate = protocol.load_labware(\n 'nest_96_wellplate_2ml_deep', '5', '96-deepwell sample plate')\n\n tips1k = [protocol.load_labware('opentrons_96_filtertiprack_1000ul', '3')]\n p1000 = protocol.load_instrument(\n 'p1000_single_gen2', 'right', tip_racks=tips1k)\n\n t20 = [protocol.load_labware('opentrons_96_filtertiprack_20ul', '6')]\n m20 = protocol.load_instrument('p20_multi_gen2', 'left', tip_racks=t20)\n\n if PK_ADD:\n al_block = protocol.load_labware(\n 'opentrons_96_aluminumblock_generic_pcr_strip_200ul', '2')\n pk = al_block['A1']\n num_cols = math.ceil(NUM_SAMPLES/8)\n dests_multi = dest_plate.rows()[0][:num_cols]\n\n # setup samples\n sources = [\n well for rack in source_racks for well in rack.wells()][:NUM_SAMPLES]\n dest_total = NUM_SAMPLES + CTRL_SAMPLES\n dests_single = dest_plate.wells()[:dest_total]\n if CTRL_SAMPLES > 0:\n controls = protocol.load_labware(\n 'opentrons_24_aluminumblock_nest_1.5ml_snapcap', '11')\n for well in controls.wells()[:CTRL_SAMPLES]:\n sources.append(well)\n \"\"\"sources = sources[:-2]\n sources.append(controls['A1']) # positive control\n sources.append(controls['B1']) # negative control\"\"\"\n\n tip_log = {'count': {}}\n folder_path = '/data/A'\n tip_file_path = folder_path + '/tip_log_slp005v2.json'\n if TIP_TRACK and not protocol.is_simulating():\n if os.path.isfile(tip_file_path):\n with open(tip_file_path) as json_file:\n data = json.load(json_file)\n if 'tips1000' in data:\n tip_log['count'][p1000] = data['tips1000']\n else:\n tip_log['count'][p1000] = 0\n if 'tips20' in data:\n tip_log['count'][m20] = data['tips20']\n else:\n tip_log['count'][m20] = 0\n else:\n tip_log['count'] = {p1000: 0, m20: 0}\n\n tip_log['tips'] = {\n p1000: [tip for rack in tips1k for tip in rack.wells()],\n m20: [tip for rack in t20 for tip in rack.rows()[0]]\n }\n tip_log['max'] = {\n pip: len(tip_log['tips'][pip])\n for pip in [p1000, m20]\n }\n\n def pick_up(pip):\n nonlocal tip_log\n if tip_log['count'][pip] == tip_log['max'][pip]:\n protocol.pause('Replace ' + str(pip.max_volume) + 'µl tipracks before \\\nresuming.')\n pip.reset_tipracks()\n tip_log['count'][pip] = 0\n pip.pick_up_tip(tip_log['tips'][pip][tip_log['count'][pip]])\n tip_log['count'][pip] += 1\n\n # transfer sample\n protocol.comment(\"Adding samples to destination plate...\")\n for s, d in zip(sources, dests_single):\n pick_up(p1000)\n p1000.transfer(SAMPLE_VOLUME, s.bottom(5), d.bottom(5), air_gap=100,\n new_tip='never')\n p1000.air_gap(100)\n p1000.drop_tip()\n\n # add PK if done in this step\n if PK_ADD:\n protocol.comment(\"Adding PK to samples...\")\n for d in dests_multi:\n pick_up(m20)\n m20.transfer(20, pk, d, new_tip='never')\n m20.mix(5, 20, d)\n m20.blow_out()\n m20.drop_tip()\n\n protocol.comment(\"Protocol complete!\")\n\n # track final used tip\n if TIP_TRACK and not protocol.is_simulating():\n if not os.path.isdir(folder_path):\n os.mkdir(folder_path)\n data = {\n 'tips1000': tip_log['count'][p1000],\n 'tips20': tip_log['count'][m20]\n }\n with open(tip_file_path, 'w') as outfile:\n json.dump(data, outfile)\n"}}},{"rowIdx":1048,"cells":{"text":{"kind":"string","value":"module.exports = [\n {\n text: '指南', link: '/guide/'\n },\n {\n text: 'API文档', link: '/apidocs/'\n },\n {\n text: '捐赠', link: '/donate/'\n },\n {\n text: '资源',\n items: [\n {\n text: '后台前端解决方案', \n items: [\n {text: 'admin-element-vue', link: 'http://admin-element-vue.liqingsong.cc'},\n {text: 'admin-antd-vue', link: 'http://admin-antd-vue.liqingsong.cc'},\n {text: 'admin-antd-react', link: 'http://admin-antd-react.liqingsong.cc'},\n {text: 'electron-admin-element-vue', link: 'http://admin-element-vue.liqingsong.cc/tsv2/guide/senior/electron.html'},\n {text: 'electron-admin-antd-vue', link: 'http://admin-antd-vue.liqingsong.cc/guide/senior/electron.html'},\n {text: 'electron-admin-antd-react', link: 'http://admin-antd-react.liqingsong.cc/guide/senior/electron.html'},\n ]\n },\n {\n text: '前台模板前端模块化方案',\n items: [\n {text: 'webpack-website', link: 'http://webpack-website.liqingsong.cc'},\n ]\n },\n ]\n },\n {\n text: 'GitHub',\n\t\titems: [\n {\n text: 'lqsBlog',\n items: [\n {text: 'Github', link: 'https://github.com/lqsong/lqsblog'},\n {text: 'Gitee', link: 'https://gitee.com/lqsong/lqsblog'},\n ]\n },\n {\n text: 'lqsblog-frontend-nuxt',\n items: [\n {text: 'Github', link: 'https://github.com/lqsong/lqsblog-frontend-nuxt'},\n {text: 'Gitee', link: 'https://gitee.com/lqsong/lqsblog-frontend-nuxt'},\n ]\n },\n {\n text: 'lqsblog-frontend-nextjs',\n items: [\n {text: 'Github', link: 'https://github.com/lqsong/lqsblog-frontend-nextjs'},\n {text: 'Gitee', link: 'https://gitee.com/lqsong/lqsblog-frontend-nextjs'},\n ]\n },\n {\n text: 'lqsblog-frontend-uniapp',\n items: [\n {text: 'Github', link: 'https://github.com/lqsong/lqsblog-frontend-uniapp'},\n {text: 'Gitee', link: 'https://gitee.com/lqsong/lqsblog-frontend-uniapp'},\n ]\n },\n {\n text: 'lqsblog-frontend-admin-vue',\n items: [\n {text: 'Github', link: 'https://github.com/lqsong/lqsblog-frontend-admin-vue'},\n {text: 'Gitee', link: 'https://gitee.com/lqsong/lqsblog-frontend-admin-vue'},\n ]\n },\n {\n text: 'lqsblog-frontend-ant-design-pro-react',\n items: [\n {text: 'Github', link: 'https://github.com/lqsong/lqsblog-frontend-ant-design-pro-react'},\n {text: 'Gitee', link: 'https://gitee.com/lqsong/lqsblog-frontend-ant-design-pro-react'},\n ]\n },\n {\n text: 'lqsblog-backend-java-springboot',\n items: [\n {text: 'Github', link: 'https://github.com/lqsong/lqsblog-backend-java-springboot'},\n {text: 'Gitee', link: 'https://gitee.com/lqsong/lqsblog-backend-java-springboot'},\n ]\n },\n {\n text: 'lqsblog-backend-nodejs-eggjs',\n items: [\n {text: 'Github', link: 'https://github.com/lqsong/lqsblog-backend-nodejs-eggjs'},\n {text: 'Gitee', link: 'https://gitee.com/lqsong/lqsblog-backend-nodejs-eggjs'},\n ]\n },\n {\n text: 'lqsblog-backend-php-thinkphp',\n items: [\n {text: 'Github', link: 'https://github.com/lqsong/lqsblog-backend-php-thinkphp'},\n {text: 'Gitee', link: 'https://gitee.com/lqsong/lqsblog-backend-php-thinkphp'},\n ]\n }\n ]\n },\n {\n text: '官网', link: 'http://liqingsong.cc'\n }\n]"}}},{"rowIdx":1049,"cells":{"text":{"kind":"string","value":"(function (root, factory) { if (typeof define === 'function' && define.amd) { define([], factory(root)); } else if (typeof exports === 'object') { module.exports = factory(root); } else { root.smoothScroll = factory(root); } })(typeof global !== 'undefined' ? global : this.window || this.global, function (root) {\n 'use strict'; var smoothScroll = {}; var supports = !!root.document.querySelector && !!root.addEventListener; var settings, eventTimeout, fixedHeader, headerHeight; var defaults = { speed: 500, easing: 'easeInOutCubic', offset: 0, updateURL: true, callback: function () { } }; var extend = function () {\n var extended = {}; var deep = false; var i = 0; var length = arguments.length; if (Object.prototype.toString.call(arguments[0]) === '[object Boolean]') { deep = arguments[0]; i++; }\n var merge = function (obj) { for (var prop in obj) { if (Object.prototype.hasOwnProperty.call(obj, prop)) { if (deep && Object.prototype.toString.call(obj[prop]) === '[object Object]') { extended[prop] = extend(true, extended[prop], obj[prop]); } else { extended[prop] = obj[prop]; } } } }; for (; i < length; i++) { var obj = arguments[i]; merge(obj); }\n return extended;\n }; var getHeight = function (elem) { return Math.max(elem.scrollHeight, elem.offsetHeight, elem.clientHeight); }; var getClosest = function (elem, selector) {\n var firstChar = selector.charAt(0); var supports = 'classList' in document.documentElement; var attribute, value; if (firstChar === '[') { selector = selector.substr(1, selector.length - 2); attribute = selector.split('='); if (attribute.length > 1) { value = true; attribute[1] = attribute[1].replace(/\"/g, '').replace(/'/g, ''); } }\n for (; elem && elem !== document; elem = elem.parentNode) {\n if (firstChar === '.') { if (supports) { if (elem.classList.contains(selector.substr(1))) { return elem; } } else { if (new RegExp('(^|\\\\s)' + selector.substr(1) + '(\\\\s|$)').test(elem.className)) { return elem; } } }\n if (firstChar === '#') { if (elem.id === selector.substr(1)) { return elem; } }\n if (firstChar === '[') { if (elem.hasAttribute(attribute[0])) { if (value) { if (elem.getAttribute(attribute[0]) === attribute[1]) { return elem; } } else { return elem; } } }\n if (elem.tagName.toLowerCase() === selector) { return elem; }\n }\n return null;\n }; var escapeCharacters = function (id) {\n var string = String(id); var length = string.length; var index = -1; var codeUnit; var result = ''; var firstCodeUnit = string.charCodeAt(0); while (++index < length) {\n codeUnit = string.charCodeAt(index); if (codeUnit === 0x0000) { throw new InvalidCharacterError('Invalid character: the input contains U+0000.'); }\n if ((codeUnit >= 0x0001 && codeUnit <= 0x001F) || codeUnit == 0x007F || (index === 0 && codeUnit >= 0x0030 && codeUnit <= 0x0039) || (index === 1 && codeUnit >= 0x0030 && codeUnit <= 0x0039 && firstCodeUnit === 0x002D)) { result += '\\\\' + codeUnit.toString(16) + ' '; continue; }\n if (codeUnit >= 0x0080 || codeUnit === 0x002D || codeUnit === 0x005F || codeUnit >= 0x0030 && codeUnit <= 0x0039 || codeUnit >= 0x0041 && codeUnit <= 0x005A || codeUnit >= 0x0061 && codeUnit <= 0x007A) { result += string.charAt(index); continue; }\n result += '\\\\' + string.charAt(index);\n }\n return result;\n }; var easingPattern = function (type, time) { var pattern; if (type === 'easeInQuad') pattern = time * time; if (type === 'easeOutQuad') pattern = time * (2 - time); if (type === 'easeInOutQuad') pattern = time < 0.5 ? 2 * time * time : -1 + (4 - 2 * time) * time; if (type === 'easeInCubic') pattern = time * time * time; if (type === 'easeOutCubic') pattern = (--time) * time * time + 1; if (type === 'easeInOutCubic') pattern = time < 0.5 ? 4 * time * time * time : (time - 1) * (2 * time - 2) * (2 * time - 2) + 1; if (type === 'easeInQuart') pattern = time * time * time * time; if (type === 'easeOutQuart') pattern = 1 - (--time) * time * time * time; if (type === 'easeInOutQuart') pattern = time < 0.5 ? 8 * time * time * time * time : 1 - 8 * (--time) * time * time * time; if (type === 'easeInQuint') pattern = time * time * time * time * time; if (type === 'easeOutQuint') pattern = 1 + (--time) * time * time * time * time; if (type === 'easeInOutQuint') pattern = time < 0.5 ? 16 * time * time * time * time * time : 1 + 16 * (--time) * time * time * time * time; return pattern || time; }; var getEndLocation = function (anchor, headerHeight, offset) {\n var location = 0; if (anchor.offsetParent) { do { location += anchor.offsetTop; anchor = anchor.offsetParent; } while (anchor); }\n location = location - headerHeight - offset; return location >= 0 ? location : 0;\n }; var getDocumentHeight = function () { return Math.max(root.document.body.scrollHeight, root.document.documentElement.scrollHeight, root.document.body.offsetHeight, root.document.documentElement.offsetHeight, root.document.body.clientHeight, root.document.documentElement.clientHeight); }; var getDataOptions = function (options) { return !options || !(typeof JSON === 'object' && typeof JSON.parse === 'function') ? {} : JSON.parse(options); }; var updateUrl = function (anchor, url) { if (root.history.pushState && (url || url === 'true')) { root.history.pushState(null, null, [root.location.protocol, '//', root.location.host, root.location.pathname, root.location.search, anchor].join('')); } }; var getHeaderHeight = function (header) { return header === null ? 0 : (getHeight(header) + header.offsetTop); }; smoothScroll.animateScroll = function (toggle, anchor, options) {\n var overrides = getDataOptions(toggle ? toggle.getAttribute('data-options') : null); var settings = extend(settings || defaults, options || {}, overrides); anchor = '#' + escapeCharacters(anchor.substr(1)); var anchorElem = anchor === '#' ? root.document.documentElement : root.document.querySelector(anchor); var startLocation = root.pageYOffset; if (!fixedHeader) { fixedHeader = root.document.querySelector('[data-scroll-header]'); }\n if (!headerHeight) { headerHeight = getHeaderHeight(fixedHeader); }\n var wasSticky = $(\"header\").hasClass(\"sticky\"); var endLocation = getEndLocation(anchorElem, headerHeight, parseInt(settings.offset, 10)); if (!$(toggle).hasClass(\"inline-scroll\")) {\n if (!wasSticky) {\n if ($(\".showhide\").is(\":visible\"))\n endLocation -= 40; else\n endLocation -= 100;\n }\n }\n var animationInterval; var distance = endLocation - startLocation; var documentHeight = getDocumentHeight(); var timeLapsed = 0; var percentage, position; updateUrl(anchor, settings.updateURL); var stopAnimateScroll = function (position, endLocation, animationInterval) { var currentLocation = root.pageYOffset; if (position == endLocation || currentLocation == endLocation || ((root.innerHeight + currentLocation) >= documentHeight)) { clearInterval(animationInterval); anchorElem.focus(); settings.callback(toggle, anchor); } }; var loopAnimateScroll = function () { timeLapsed += 16; percentage = (timeLapsed / parseInt(settings.speed, 10)); percentage = (percentage > 1) ? 1 : percentage; position = startLocation + (distance * easingPattern(settings.easing, percentage)); root.scrollTo(0, Math.floor(position)); stopAnimateScroll(position, endLocation, animationInterval); }; var startAnimateScroll = function () { animationInterval = setInterval(loopAnimateScroll, 16); }; if (root.pageYOffset === 0) { root.scrollTo(0, 0); }\n startAnimateScroll();\n }; var eventHandler = function (event) { var toggle = getClosest(event.target, '[data-scroll]'); if (toggle && toggle.tagName.toLowerCase() === 'a') { event.preventDefault(); smoothScroll.animateScroll(toggle, toggle.hash, settings); } }; var eventThrottler = function (event) { if (!eventTimeout) { eventTimeout = setTimeout(function () { eventTimeout = null; headerHeight = getHeaderHeight(fixedHeader); }, 66); } }; smoothScroll.destroy = function () { if (!settings) return; root.document.removeEventListener('click', eventHandler, false); root.removeEventListener('resize', eventThrottler, false); settings = null; eventTimeout = null; fixedHeader = null; headerHeight = null; }; smoothScroll.init = function (options) { if (!supports) return; smoothScroll.destroy(); settings = extend(defaults, options || {}); fixedHeader = root.document.querySelector('[data-scroll-header]'); headerHeight = getHeaderHeight(fixedHeader); root.document.addEventListener('click', eventHandler, false); if (fixedHeader) { root.addEventListener('resize', eventThrottler, false); } }; return smoothScroll;\n});"}}},{"rowIdx":1050,"cells":{"text":{"kind":"string","value":"define([],function(){\n return {\n props:['config'],\n setup(props,ctx){\n\n const value=Vue.ref('');\n\n const onParentSearch=function (){\n let val=props.config.activeValue||'';\n if(props.config.isMore){\n if(typeof val==='number'){\n val=val.toString();\n }\n if(val===''){\n val=[];\n }else if(typeof val==='string'){\n val=props.config.activeValue.split(',')\n }\n }\n value.value=val;\n };\n onParentSearch();\n\n\n return {\n value,\n onParentSearch\n }\n },\n methods: {\n val(val){\n if(!this.config.isMore){\n this.value=val.toString();\n this.$emit('search',val);\n return;\n }\n\n if(val===''){\n this.value=[];\n this.$emit('search',[]);\n return;\n }\n\n if(this.value.includes(val)){\n this.value=this.value.filter(v=>v!==val);\n }else{\n this.value.push(val.toString());\n }\n this.$emit('search',this.value);\n },\n isActive(val){\n if(!this.config.isMore){\n return this.value===val;\n }\n\n if(val===''){\n return this.value.length===0;\n }\n\n return this.value.includes(val);\n },\n },\n template:`
\n
全部
\n
{{vo.title}}
\n
`,\n }\n});"}}},{"rowIdx":1051,"cells":{"text":{"kind":"string","value":"# -*- coding: utf-8 -*-\n# Copyright (c) 2010 Ralf Habacker \n# Copyright Hannah von Reth \n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions\n# are met:\n# 1. Redistributions of source code must retain the above copyright\n# notice, this list of conditions and the following disclaimer.\n# 2. Redistributions in binary form must reproduce the above copyright\n# notice, this list of conditions and the following disclaimer in the\n# documentation and/or other materials provided with the distribution.\n#\n# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND\n# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE\n# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\n# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\n# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\n# SUCH DAMAGE.\n\n#\n# creates a 7z archive from the whole content of the package image\n# directory or optional from a sub directory of the image directory\n\n# This packager is in an experimental state - the implementation\n# and features may change in further versions\n\nimport json\nimport subprocess\n\nfrom Packager.PackagerBase import *\nfrom Utils import CraftHash\nfrom CraftOS.osutils import OsUtils\n\nclass SevenZipPackager(PackagerBase):\n \"\"\"Packager using the 7za command line tool from the dev-utils/7zip package\"\"\"\n\n @InitGuard.init_once\n def __init__(self):\n PackagerBase.__init__(self)\n\n def _compress(self, archiveName, sourceDir, destDir, createDigests=True) -> bool:\n archive = os.path.join(destDir, archiveName)\n if not utils.compress(archive, sourceDir):\n return False\n\n if createDigests:\n if not CraftCore.settings.getboolean(\"Packager\", \"CreateCache\"):\n self._generateManifest(destDir, archiveName)\n CraftHash.createDigestFiles(archive)\n else:\n if CraftCore.settings.getboolean(\"ContinuousIntegration\", \"UpdateRepository\", False):\n manifestUrls = [self.cacheRepositoryUrls()[0]]\n else:\n manifestUrls = None\n self._generateManifest(destDir, archiveName, manifestLocation=self.cacheLocation(),\n manifestUrls=manifestUrls)\n return True\n\n def createPackage(self):\n \"\"\"create 7z package with digest files located in the manifest subdir\"\"\"\n cacheMode = CraftCore.settings.getboolean(\"Packager\", \"CreateCache\", False)\n if cacheMode:\n if self.subinfo.options.package.disableBinaryCache:\n return True\n dstpath = self.cacheLocation()\n else:\n dstpath = self.packageDestinationDir()\n\n\n extention = CraftCore.settings.get(\"Packager\", \"7ZipArchiveType\", \"7z\")\n if extention == \"7z\" and CraftCore.compiler.isUnix:\n if self.package.path == \"dev-utils/7zip\" or not CraftCore.cache.findApplication(\"7za\"):\n extention = \"tar.xz\"\n else:\n extention = \"tar.7z\"\n\n if not self._compress(self.binaryArchiveName(fileType=extention, includePackagePath=cacheMode, includeTimeStamp=cacheMode), self.imageDir(), dstpath):\n return False\n if not self.subinfo.options.package.packSources and CraftCore.settings.getboolean(\"Packager\", \"PackageSrc\", \"True\"):\n return self._compress(self.binaryArchiveName(\"-src\", fileType=extention, includePackagePath=cacheMode, includeTimeStamp=cacheMode), self.sourceDir(), dstpath)\n return True\n"}}},{"rowIdx":1052,"cells":{"text":{"kind":"string","value":"\"\"\" Cisco_IOS_XR_infra_rmf_oper \n\nThis module contains a collection of YANG definitions\nfor Cisco IOS\\-XR infra\\-rmf package operational data.\n\nThis module contains definitions\nfor the following management objects\\:\n redundancy\\: Redundancy show information\n\nCopyright (c) 2013\\-2016 by Cisco Systems, Inc.\nAll rights reserved.\n\n\"\"\"\n\n\nimport re\nimport collections\n\nfrom enum import Enum\n\nfrom ydk.types import Empty, YList, YLeafList, DELETE, Decimal64, FixedBitsDict\n\nfrom ydk.errors import YPYError, YPYModelError\n\n\n\n\nclass Redundancy(object):\n \"\"\"\n Redundancy show information\n \n .. attribute:: nodes\n \n \tLocation show information\n \t**type**\\: :py:class:`Nodes `\n \n .. attribute:: summary\n \n \tRedundancy Summary of Nodes\n \t**type**\\: :py:class:`Summary `\n \n \n\n \"\"\"\n\n _prefix = 'infra-rmf-oper'\n _revision = '2015-11-09'\n\n def __init__(self):\n self.nodes = Redundancy.Nodes()\n self.nodes.parent = self\n self.summary = Redundancy.Summary()\n self.summary.parent = self\n\n\n class Nodes(object):\n \"\"\"\n Location show information\n \n .. attribute:: node\n \n \tRedundancy Node Information\n \t**type**\\: list of :py:class:`Node `\n \n \n\n \"\"\"\n\n _prefix = 'infra-rmf-oper'\n _revision = '2015-11-09'\n\n def __init__(self):\n self.parent = None\n self.node = YList()\n self.node.parent = self\n self.node.name = 'node'\n\n\n class Node(object):\n \"\"\"\n Redundancy Node Information\n \n .. attribute:: node_id \n \n \tNode Location\n \t**type**\\: str\n \n \t**pattern:** ([a\\-zA\\-Z0\\-9\\_]\\*\\\\d+/){1,2}([a\\-zA\\-Z0\\-9\\_]\\*\\\\d+)\n \n .. attribute:: active_reboot_reason\n \n \tActive node reload\n \t**type**\\: str\n \n .. attribute:: err_log\n \n \tError Log\n \t**type**\\: str\n \n .. attribute:: log\n \n \tReload and boot logs\n \t**type**\\: str\n \n .. attribute:: redundancy\n \n \tRow information\n \t**type**\\: :py:class:`Redundancy_ `\n \n .. attribute:: standby_reboot_reason\n \n \tStandby node reload\n \t**type**\\: str\n \n \n\n \"\"\"\n\n _prefix = 'infra-rmf-oper'\n _revision = '2015-11-09'\n\n def __init__(self):\n self.parent = None\n self.node_id = None\n self.active_reboot_reason = None\n self.err_log = None\n self.log = None\n self.redundancy = Redundancy.Nodes.Node.Redundancy_()\n self.redundancy.parent = self\n self.standby_reboot_reason = None\n\n\n class Redundancy_(object):\n \"\"\"\n Row information\n \n .. attribute:: active\n \n \tActive node name R/S/I\n \t**type**\\: str\n \n .. attribute:: groupinfo\n \n \tgroupinfo\n \t**type**\\: list of :py:class:`Groupinfo `\n \n .. attribute:: ha_state\n \n \tHigh Availability state Ready/Not Ready\n \t**type**\\: str\n \n .. attribute:: nsr_state\n \n \tNSR state Configured/Not Configured\n \t**type**\\: str\n \n .. attribute:: standby\n \n \tStandby node name R/S/I\n \t**type**\\: str\n \n \n\n \"\"\"\n\n _prefix = 'infra-rmf-oper'\n _revision = '2015-11-09'\n\n def __init__(self):\n self.parent = None\n self.active = None\n self.groupinfo = YList()\n self.groupinfo.parent = self\n self.groupinfo.name = 'groupinfo'\n self.ha_state = None\n self.nsr_state = None\n self.standby = None\n\n\n class Groupinfo(object):\n \"\"\"\n groupinfo\n \n .. attribute:: active\n \n \tActive\n \t**type**\\: str\n \n .. attribute:: ha_state\n \n \tHAState\n \t**type**\\: str\n \n .. attribute:: nsr_state\n \n \tNSRState\n \t**type**\\: str\n \n .. attribute:: standby\n \n \tStandby\n \t**type**\\: str\n \n \n\n \"\"\"\n\n _prefix = 'infra-rmf-oper'\n _revision = '2015-11-09'\n\n def __init__(self):\n self.parent = None\n self.active = None\n self.ha_state = None\n self.nsr_state = None\n self.standby = None\n\n @property\n def _common_path(self):\n if self.parent is None:\n raise YPYModelError('parent is not set . Cannot derive path.')\n\n return self.parent._common_path +'/Cisco-IOS-XR-infra-rmf-oper:groupinfo'\n\n def is_config(self):\n ''' Returns True if this instance represents config data else returns False '''\n return False\n\n def _has_data(self):\n if not self.is_config():\n return False\n if self.active is not None:\n return True\n\n if self.ha_state is not None:\n return True\n\n if self.nsr_state is not None:\n return True\n\n if self.standby is not None:\n return True\n\n return False\n\n @staticmethod\n def _meta_info():\n from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_rmf_oper as meta\n return meta._meta_table['Redundancy.Nodes.Node.Redundancy_.Groupinfo']['meta_info']\n\n @property\n def _common_path(self):\n if self.parent is None:\n raise YPYModelError('parent is not set . Cannot derive path.')\n\n return self.parent._common_path +'/Cisco-IOS-XR-infra-rmf-oper:redundancy'\n\n def is_config(self):\n ''' Returns True if this instance represents config data else returns False '''\n return False\n\n def _has_data(self):\n if not self.is_config():\n return False\n if self.active is not None:\n return True\n\n if self.groupinfo is not None:\n for child_ref in self.groupinfo:\n if child_ref._has_data():\n return True\n\n if self.ha_state is not None:\n return True\n\n if self.nsr_state is not None:\n return True\n\n if self.standby is not None:\n return True\n\n return False\n\n @staticmethod\n def _meta_info():\n from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_rmf_oper as meta\n return meta._meta_table['Redundancy.Nodes.Node.Redundancy_']['meta_info']\n\n @property\n def _common_path(self):\n if self.node_id is None:\n raise YPYModelError('Key property node_id is None')\n\n return '/Cisco-IOS-XR-infra-rmf-oper:redundancy/Cisco-IOS-XR-infra-rmf-oper:nodes/Cisco-IOS-XR-infra-rmf-oper:node[Cisco-IOS-XR-infra-rmf-oper:node-id = ' + str(self.node_id) + ']'\n\n def is_config(self):\n ''' Returns True if this instance represents config data else returns False '''\n return False\n\n def _has_data(self):\n if not self.is_config():\n return False\n if self.node_id is not None:\n return True\n\n if self.active_reboot_reason is not None:\n return True\n\n if self.err_log is not None:\n return True\n\n if self.log is not None:\n return True\n\n if self.redundancy is not None and self.redundancy._has_data():\n return True\n\n if self.standby_reboot_reason is not None:\n return True\n\n return False\n\n @staticmethod\n def _meta_info():\n from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_rmf_oper as meta\n return meta._meta_table['Redundancy.Nodes.Node']['meta_info']\n\n @property\n def _common_path(self):\n\n return '/Cisco-IOS-XR-infra-rmf-oper:redundancy/Cisco-IOS-XR-infra-rmf-oper:nodes'\n\n def is_config(self):\n ''' Returns True if this instance represents config data else returns False '''\n return False\n\n def _has_data(self):\n if not self.is_config():\n return False\n if self.node is not None:\n for child_ref in self.node:\n if child_ref._has_data():\n return True\n\n return False\n\n @staticmethod\n def _meta_info():\n from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_rmf_oper as meta\n return meta._meta_table['Redundancy.Nodes']['meta_info']\n\n\n class Summary(object):\n \"\"\"\n Redundancy Summary of Nodes\n \n .. attribute:: err_log\n \n \tError Log\n \t**type**\\: str\n \n .. attribute:: red_pair\n \n \tRedundancy Pair\n \t**type**\\: list of :py:class:`RedPair `\n \n \n\n \"\"\"\n\n _prefix = 'infra-rmf-oper'\n _revision = '2015-11-09'\n\n def __init__(self):\n self.parent = None\n self.err_log = None\n self.red_pair = YList()\n self.red_pair.parent = self\n self.red_pair.name = 'red_pair'\n\n\n class RedPair(object):\n \"\"\"\n Redundancy Pair\n \n .. attribute:: active\n \n \tActive node name R/S/I\n \t**type**\\: str\n \n .. attribute:: groupinfo\n \n \tgroupinfo\n \t**type**\\: list of :py:class:`Groupinfo `\n \n .. attribute:: ha_state\n \n \tHigh Availability state Ready/Not Ready\n \t**type**\\: str\n \n .. attribute:: nsr_state\n \n \tNSR state Configured/Not Configured\n \t**type**\\: str\n \n .. attribute:: standby\n \n \tStandby node name R/S/I\n \t**type**\\: str\n \n \n\n \"\"\"\n\n _prefix = 'infra-rmf-oper'\n _revision = '2015-11-09'\n\n def __init__(self):\n self.parent = None\n self.active = None\n self.groupinfo = YList()\n self.groupinfo.parent = self\n self.groupinfo.name = 'groupinfo'\n self.ha_state = None\n self.nsr_state = None\n self.standby = None\n\n\n class Groupinfo(object):\n \"\"\"\n groupinfo\n \n .. attribute:: active\n \n \tActive\n \t**type**\\: str\n \n .. attribute:: ha_state\n \n \tHAState\n \t**type**\\: str\n \n .. attribute:: nsr_state\n \n \tNSRState\n \t**type**\\: str\n \n .. attribute:: standby\n \n \tStandby\n \t**type**\\: str\n \n \n\n \"\"\"\n\n _prefix = 'infra-rmf-oper'\n _revision = '2015-11-09'\n\n def __init__(self):\n self.parent = None\n self.active = None\n self.ha_state = None\n self.nsr_state = None\n self.standby = None\n\n @property\n def _common_path(self):\n\n return '/Cisco-IOS-XR-infra-rmf-oper:redundancy/Cisco-IOS-XR-infra-rmf-oper:summary/Cisco-IOS-XR-infra-rmf-oper:red-pair/Cisco-IOS-XR-infra-rmf-oper:groupinfo'\n\n def is_config(self):\n ''' Returns True if this instance represents config data else returns False '''\n return False\n\n def _has_data(self):\n if not self.is_config():\n return False\n if self.active is not None:\n return True\n\n if self.ha_state is not None:\n return True\n\n if self.nsr_state is not None:\n return True\n\n if self.standby is not None:\n return True\n\n return False\n\n @staticmethod\n def _meta_info():\n from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_rmf_oper as meta\n return meta._meta_table['Redundancy.Summary.RedPair.Groupinfo']['meta_info']\n\n @property\n def _common_path(self):\n\n return '/Cisco-IOS-XR-infra-rmf-oper:redundancy/Cisco-IOS-XR-infra-rmf-oper:summary/Cisco-IOS-XR-infra-rmf-oper:red-pair'\n\n def is_config(self):\n ''' Returns True if this instance represents config data else returns False '''\n return False\n\n def _has_data(self):\n if not self.is_config():\n return False\n if self.active is not None:\n return True\n\n if self.groupinfo is not None:\n for child_ref in self.groupinfo:\n if child_ref._has_data():\n return True\n\n if self.ha_state is not None:\n return True\n\n if self.nsr_state is not None:\n return True\n\n if self.standby is not None:\n return True\n\n return False\n\n @staticmethod\n def _meta_info():\n from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_rmf_oper as meta\n return meta._meta_table['Redundancy.Summary.RedPair']['meta_info']\n\n @property\n def _common_path(self):\n\n return '/Cisco-IOS-XR-infra-rmf-oper:redundancy/Cisco-IOS-XR-infra-rmf-oper:summary'\n\n def is_config(self):\n ''' Returns True if this instance represents config data else returns False '''\n return False\n\n def _has_data(self):\n if not self.is_config():\n return False\n if self.err_log is not None:\n return True\n\n if self.red_pair is not None:\n for child_ref in self.red_pair:\n if child_ref._has_data():\n return True\n\n return False\n\n @staticmethod\n def _meta_info():\n from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_rmf_oper as meta\n return meta._meta_table['Redundancy.Summary']['meta_info']\n\n @property\n def _common_path(self):\n\n return '/Cisco-IOS-XR-infra-rmf-oper:redundancy'\n\n def is_config(self):\n ''' Returns True if this instance represents config data else returns False '''\n return False\n\n def _has_data(self):\n if not self.is_config():\n return False\n if self.nodes is not None and self.nodes._has_data():\n return True\n\n if self.summary is not None and self.summary._has_data():\n return True\n\n return False\n\n @staticmethod\n def _meta_info():\n from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_rmf_oper as meta\n return meta._meta_table['Redundancy']['meta_info']\n\n\n"}}},{"rowIdx":1053,"cells":{"text":{"kind":"string","value":"import Header from '../components/admin/Header'\nimport Footer from '../components/admin/Footer'\nimport React, {useState} from 'react'\nimport {connect} from 'react-redux';\nimport AdminCabinet from '../components/admin/AdminCabinet';\n\nfunction mapStateToProps(state) {\n return {adminReducer:state.adminReducer}\n}\n\nconst AdminMain = ({adminReducer}) => {\n \nconst [active,setActive] = useState('info')\n return(\n
\n
\n
\n
\n
\n \n \n
\n {adminReducer.authenticatingUser ?
Загрузка..
: }\n
\n
\n
\n
\n )\n}\n\nexport default connect(mapStateToProps)(AdminMain)"}}},{"rowIdx":1054,"cells":{"text":{"kind":"string","value":"const flashData = $('.flash-data').data('flashdata');\n\nif (flashData) {\n\tSwal.fire({\n\t\ttitle: 'Berhasil',\n\t\ttext: flashData,\n\t\ticon: 'success'\n\t});\n}\n\n\n//tombol hapus\n\n// $('.tombol-hapus').on('click', function (e) {\n\n// e.preventDefault();\n// const href = $(this).attr('href');\n\n// Swal.fire({\n// title: 'Are you sure?',\n// text: \"You won't be able to revert this!\",\n// type: 'warning',\n// showCancelButton: true,\n// confirmButtonColor: '#3085d6',\n// cancelButtonColor: '#d33',\n// confirmButtonText: 'Yes, delete it!'\n// }).then((result) => {\n// if (result.isConfirmed) {\n// document.location.href = href;\n// }\n// })\n// });\n"}}},{"rowIdx":1055,"cells":{"text":{"kind":"string","value":"'use strict';\n\n//Elements from the DOM\nvar playerForm = document.getElementById('playernameform');\nvar playMessage = document.getElementById('gogame');\nvar playerNameSection = document.getElementById('player-name-section');\nvar goToGame = document.getElementById('gotogame');\n\n//button hides rules until presssed\nfunction buttonFunction() {\n var x = document.getElementById('rules');\n if (x.style.display === 'none') {\n x.style.display = 'block';\n } else {\n x.style.display = 'none';\n }\n}\n// event handler for player to submit name\nfunction handleSubmit(event) {\n event.preventDefault();\n var playerName = event.target.name.value;\n playerName = playerName.toLowerCase();\n // hides player name entry form\n playerNameSection.style.display = 'none';\n // exposes button that takes player to the game\n goToGame.style.display = 'block';\n playMessage.textContent = `${playerName}, Let's Play!`;\n // stores player name to local storage\n var stringifiedPlayerName = JSON.stringify(playerName);\n localStorage.setItem('playerName', stringifiedPlayerName);\n // console.log(stringifiedPlayerName);\n // clears name from form after player hits submit\n document.getElementById('playernameform').reset();\n}\n// event listener\nplayerForm.addEventListener('submit', handleSubmit);\n"}}},{"rowIdx":1056,"cells":{"text":{"kind":"string","value":"import re\nimport datetime\nfrom django.utils.encoding import python_2_unicode_compatible\n\n\ncoversion_specification_re = re.compile(\n \"(?P%(?P[-_0^#]?)(?P[0-9]*)(?P[bBmyY]))\"\n)\n\n\ndef _format_to_re(fmt):\n output = [datetime.date(2001, i, 1).strftime(fmt) for i in range(1, 13)]\n return \"(?P<%s>%s)\" % (fmt[1], \"|\".join(output))\n\n\n@python_2_unicode_compatible\nclass TwoFieldDate(object):\n def __init__(self, year, month):\n try:\n year = int(year)\n except ValueError:\n raise ValueError(\"year must be an integer\")\n\n self._year = year\n\n try:\n month = int(month)\n except ValueError:\n raise ValueError(\"month must be an integer\")\n\n if month < 1 or month > 12:\n raise ValueError(\"month must be in 1..12\")\n\n self._month = month\n\n @property\n def year(self):\n return self._year\n\n @property\n def month(self):\n return self._month\n\n @staticmethod\n def _get_month(data):\n if \"m\" in data:\n return int(data['m'])\n elif \"b\" in data:\n return datetime.datetime.strptime(data['b'], \"%b\").month\n elif \"B\" in data:\n return datetime.datetime.strptime(data['B'], \"%B\").month\n else:\n raise ValueError('month not specified')\n\n @staticmethod\n def _get_year(data):\n if \"Y\" in data:\n return int(data[\"Y\"])\n elif \"y\" in data:\n return datetime.datetime.strptime(data[\"y\"], \"%y\").year\n else:\n raise ValueError(\"year not specified\")\n\n @staticmethod\n def _build_re(format):\n _b_months_re = _format_to_re(\"%b\")\n _B_months_re = _format_to_re(\"%B\")\n\n parts = format.split(\"%%\")\n converted_parts = list()\n for part in parts:\n r = part.replace(\"%b\", _b_months_re, 1)\n r = r.replace(\"%B\", _B_months_re, 1)\n r = r.replace(\"%m\", \"(?P[0 ]?[1-9]|1[0-2])\", 1)\n r = r.replace(\"%y\", \"(?P[0-9]{2})\", 1)\n r = r.replace(\"%Y\", \"(?P[0-9]{4})\", 1)\n\n match = re.search(\"%(.)\", r)\n if match:\n c = match.group(1)\n if c in \"yYbBm\":\n msg = '\"%s\" directive is repeated format string \"%s\"'\n else:\n msg = '\"%s\" is a bad directive in format string \"%s\"'\n raise ValueError(msg % (c, format))\n\n converted_parts.append(r)\n\n return \"^%s$\" % \"%\".join(converted_parts)\n\n @classmethod\n def parse(cls, date_string, format):\n match = re.match(\n cls._build_re(format),\n date_string,\n flags=re.IGNORECASE\n )\n if match:\n data = match.groupdict()\n return TwoFieldDate(cls._get_year(data), cls._get_month(data))\n else:\n args = (date_string, format)\n raise ValueError(\n 'two field date data \"%s\" does not match format \"%s\"' % args\n )\n\n def format(self, fmt_str):\n date = datetime.date(self.year, self.month, 1)\n\n def replace(match):\n return date.strftime(match.group('spec'))\n\n def convert(part):\n return coversion_specification_re.sub(replace, part)\n\n parts = fmt_str.split(\"%%\")\n converted_parts = [convert(p) for p in parts]\n return \"%\".join(converted_parts)\n\n def __eq__(self, other):\n return (\n isinstance(other, TwoFieldDate) and\n other.month == self.month and\n other.year == self.year\n )\n\n def __gt__(self, other):\n if not isinstance(other, TwoFieldDate):\n c = other.__class__\n raise TypeError(\"unorderable types: TwoFieldDate > %s\" % c)\n else:\n return (\n self.year > other.year or\n self.year == other.year and self.month > other.month\n )\n\n def __ne__(self, other):\n return not (self == other)\n\n def __ge__(self, other):\n if not isinstance(other, TwoFieldDate):\n c = other.__class__\n raise TypeError(\"unorderable types: TwoFieldDate >= %s\" % c)\n else:\n return self > other or self == other\n\n def __lt__(self, other):\n if not isinstance(other, TwoFieldDate):\n c = other.__class__\n raise TypeError(\"unorderable types: TwoFieldDate <= %s\" % c)\n else:\n return not (self >= other)\n\n def __le__(self, other):\n if not isinstance(other, TwoFieldDate):\n c = other.__class__\n raise TypeError(\"unorderable types: TwoFieldDate < %s\" % c)\n else:\n return not (self > other)\n\n def __hash__(self):\n return hash('%d%02d' % (self.year, self.month))\n\n def __str__(self):\n return \"%s-%s\" % (self.year, self.month)\n"}}},{"rowIdx":1057,"cells":{"text":{"kind":"string","value":"import ons from 'onsenui';\n\nons.ready(function(){\n // new Vue() should be called after ons.ready.\n // Otherwise something will be broken.\n new Vue({\n el: '#app',\n template: `\n
\n \n\n

No attributes

\n
\n\n

Props

\n\n

type

\n \n type=\"hidden\"
\n type=\"text\"
\n type=\"search\"
\n type=\"tel\"
\n type=\"url\"
\n type=\"email\"
\n type=\"password\"
\n type=\"datetime\"
\n type=\"date\"
\n type=\"month\"
\n type=\"week\"
\n type=\"time\"
\n type=\"datetime-local\"
\n type=\"number\"
\n type=\"range\"
\n type=\"color\"
\n type=\"file\"
\n type=\"submit\"
\n type=\"image\"
\n type=\"reset\"
\n type=\"button\"
\n\n

value

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n

placeholder

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n

float

\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n

input-id

\n
\n `,\n data: {\n hiddenValue: null,\n textValue: null,\n searchValue: null,\n telValue: null,\n urlValue: null,\n emailValue: null,\n passwordValue: null,\n datetimeValue: null,\n dateValue: null,\n monthValue: null,\n weekValue: null,\n timeValue: null,\n datetimeLocalValue: null,\n numberValue: null,\n rangeValue: null,\n colorValue: '#ffffff', // Suppress warning from \n fileValue: null,\n submitValue: null,\n imageValue: null,\n resetValue: null,\n buttonValue: null,\n },\n methods: {\n onClick() {\n alert('clicked');\n }\n }\n });\n});\n"}}},{"rowIdx":1058,"cells":{"text":{"kind":"string","value":"const JSONAPISerializer = require('jsonapi-serializer').Serializer\n\nconst UserSerializer = new JSONAPISerializer('users', {\n nullIfMissing: true,\n attributes: ['firstName', 'lastName', 'author'],\n dataLinks: {\n self: function (data) {\n console.log('links', data)\n return `/users/${data.id}`\n }\n },\n author: {\n ref: 'id',\n // included: false,\n dataLinks: {\n self: function (data) {\n return `/users/${data.id}/authors`\n }\n },\n attributes: ['name']\n },\n meta: function (extraOptions) { // An object or a function that describes top level meta.\n return {\n count: extraOptions.count,\n total: extraOptions.total\n }\n }\n // topLevelLinks: {\n // self: '/users'\n // }\n})\n\nmodule.exports = UserSerializer\n\n\nvar users = [{\n id: 1,\n firstName: 'Sandro',\n lastName: 'Munda',\n password: 'secret',\n tag: 'hello',\n author: {\n id: 11,\n name: 'John Doe'\n }\n}, {\n id: 2,\n firstName: 'John',\n lastName: 'Doe',\n password: 'ultrasecret',\n tag: 'me',\n author: 'Paperpa'\n}]\n\nconst jsonapi = serializer.serialize(users, { count: 10 })"}}},{"rowIdx":1059,"cells":{"text":{"kind":"string","value":"'use strict'\n\nvar bel = require('bel')\nvar layout = require('../layouts/default')\nvar createForm = require('../elements/createForm')\nvar extend = require('extend-shallow')\n\nmodule.exports = function new_ (state) {\n state = extend({}, state, {\n title: state.pages.new.title,\n body: bel`
\n

${state.pages.new.title}

\n

${state.pages.new.descr}

\n ${createForm()}
`\n })\n return bel`${layout(state)}`\n}\n"}}},{"rowIdx":1060,"cells":{"text":{"kind":"string","value":"from setuptools import setup, find_packages\n\nwith open('requirements.txt') as f:\n required = f.read().splitlines()\n\n\nsetup(\n name='nlp2go',\n version='0.4.14',\n description='hosting nlp models for demo purpose',\n url='https://github.com/voidful/nlp2go',\n author='Voidful',\n author_email='voidful.stack@gmail.com',\n long_description=open(\"README.md\", encoding=\"utf8\").read(),\n long_description_content_type=\"text/markdown\",\n keywords='nlp tfkit classification generation tagging deep learning machine reading',\n packages=find_packages(),\n install_requires=required,\n entry_points={\n 'console_scripts': ['nlp2go=nlp2go.main:main', 'nlp2go-preload=nlp2go.preload:main']\n },\n zip_safe=False,\n)\n"}}},{"rowIdx":1061,"cells":{"text":{"kind":"string","value":"'use strict';\n\nvar MediaModel = require('./models/mediaModel.js'),\n PlayModel = require('./models/playModel.js');\n\nvar DubAPIError = require('./errors/error.js'),\n DubAPIRequestError = require('./errors/requestError.js');\n\nvar endpoints = require('./data/endpoints.js'),\n events = require('./data/events.js'),\n utils = require('./utils.js');\n\nfunction ActionHandler(dubAPI, auth) {\n this.doLogin = doLogin.bind(dubAPI, auth);\n this.clearPlay = clearPlay.bind(dubAPI);\n this.updatePlay = updatePlay.bind(dubAPI);\n this.updateQueue = updateQueue.bind(dubAPI);\n this.updateQueueDebounce = utils.debounce(this.updateQueue, 5000);\n}\n\nfunction doLogin(auth, callback) {\n var that = this;\n\n this._.reqHandler.send({method: 'POST', url: endpoints.authDubtrack, form: auth}, function(code, body) {\n if ([200, 400].indexOf(code) === -1) {\n return callback(new DubAPIRequestError(code, that._.reqHandler.endpoint(endpoints.authDubtrack)));\n } else if (code === 400) {\n return callback(new DubAPIError('Authentication Failed: ' + body.data.details.message));\n }\n\n callback(undefined);\n });\n}\n\nfunction clearPlay() {\n clearTimeout(this._.room.playTimeout);\n\n var message = {type: events.roomPlaylistUpdate};\n\n if (this._.room.play) {\n message.lastPlay = {\n id: this._.room.play.id,\n media: utils.clone(this._.room.play.media),\n user: utils.clone(this._.room.users.findWhere({id: this._.room.play.user})),\n score: this._.room.play.getScore()\n };\n }\n\n this._.room.play = undefined;\n this._.room.users.set({dub: undefined});\n\n this.emit('*', message);\n this.emit(events.roomPlaylistUpdate, message);\n}\n\nfunction updatePlay() {\n var that = this;\n\n clearTimeout(that._.room.playTimeout);\n\n that._.reqHandler.queue({method: 'GET', url: endpoints.roomPlaylistActive}, function(code, body) {\n if ([200, 404].indexOf(code) === -1) {\n that.emit('error', new DubAPIRequestError(code, that._.reqHandler.endpoint(endpoints.roomPlaylistActive)));\n return;\n } else if (code === 404) {\n that._.actHandler.clearPlay();\n return;\n }\n\n if (body.data.song === undefined) {\n //Dubtrack API sometimes doesn't define a song.\n //Schedule an update in the future, maybe it will then.\n that._.room.playTimeout = setTimeout(that._.actHandler.updatePlay, 30000);\n return;\n }\n\n var message = {type: events.roomPlaylistUpdate},\n newPlay = new PlayModel(body.data.song),\n curPlay = that._.room.play;\n\n if (curPlay && newPlay.id === curPlay.id) {\n if (Date.now() - newPlay.played > newPlay.songLength) that._.actHandler.clearPlay();\n return;\n }\n\n newPlay.media = new MediaModel(body.data.songInfo);\n\n if (newPlay.media.type === undefined || newPlay.media.fkid === undefined) newPlay.media = undefined;\n\n message.raw = body.data;\n\n if (that._.room.play) {\n message.lastPlay = {\n id: curPlay.id,\n media: utils.clone(curPlay.media),\n user: utils.clone(that._.room.users.findWhere({id: curPlay.user})),\n score: curPlay.getScore()\n };\n }\n\n message.id = newPlay.id;\n message.media = utils.clone(newPlay.media);\n message.user = utils.clone(that._.room.users.findWhere({id: newPlay.user}));\n\n that._.reqHandler.queue({method: 'GET', url: endpoints.roomPlaylistActiveDubs}, function(code, body) {\n that._.room.play = newPlay;\n that._.room.playTimeout = setTimeout(that._.actHandler.updatePlay, newPlay.getTimeRemaining() + 15000);\n\n that._.room.users.set({dub: undefined});\n\n if (code === 200) {\n body.data.currentSong = new PlayModel(body.data.currentSong);\n\n if (newPlay.id === body.data.currentSong.id) {\n newPlay.updubs = body.data.currentSong.updubs;\n newPlay.downdubs = body.data.currentSong.downdubs;\n newPlay.grabs = body.data.currentSong.grabs;\n\n body.data.upDubs.forEach(function(dub) {\n newPlay.dubs[dub.userid] = 'updub';\n\n var user = that._.room.users.findWhere({id: dub.userid});\n if (user) user.set({dub: 'updub'});\n });\n\n body.data.downDubs.forEach(function(dub) {\n newPlay.dubs[dub.userid] = 'downdub';\n\n var user = that._.room.users.findWhere({id: dub.userid});\n if (user) user.set({dub: 'downdub'});\n });\n }\n } else {\n that.emit('error', new DubAPIRequestError(code, that._.reqHandler.endpoint(endpoints.roomPlaylistActiveDubs)));\n }\n\n that.emit('*', message);\n that.emit(events.roomPlaylistUpdate, message);\n });\n });\n}\n\nfunction updateQueue() {\n var that = this;\n\n that._.reqHandler.queue({method: 'GET', url: endpoints.roomPlaylistDetails}, function(code, body) {\n if (code !== 200) {\n that.emit('error', new DubAPIRequestError(code, that._.reqHandler.endpoint(endpoints.roomPlaylistDetails)));\n return;\n }\n\n var message = {type: events.roomPlaylistQueueUpdate};\n\n that._.room.queue.clear();\n\n body.data.forEach(function(queueItem) {\n //Dubtrack API sometimes returns an array containing null.\n if (queueItem === null) return;\n\n queueItem = {\n id: queueItem._id,\n uid: queueItem._user._id,\n media: new MediaModel(queueItem._song),\n get user() {return that._.room.users.findWhere({id: this.uid});}\n };\n\n if (queueItem.media.type === undefined || queueItem.media.fkid === undefined) queueItem.media = undefined;\n\n that._.room.queue.add(queueItem);\n });\n\n message.raw = body.data;\n message.queue = utils.clone(that._.room.queue, {deep: true});\n\n that.emit('*', message);\n that.emit(events.roomPlaylistQueueUpdate, message);\n });\n}\n\nmodule.exports = ActionHandler;\n"}}},{"rowIdx":1062,"cells":{"text":{"kind":"string","value":"import React from 'react'\nimport PropTypes from 'prop-types'\nimport styled from 'styled-components'\n\nconst RestaurantCard = ({ location, sampleItems, notables, yelp }) => {\n return (\n \n \n {location}\n \n What to eat: \n \n {sampleItems}\n \n \n Notes: \n \n {notables}\n \n \n \n \n \n )\n}\n\nRestaurantCard.Container = styled.div`\n flex-grow: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n`;\n\nRestaurantCard.Card = styled.a`\n max-width: 400px;\n width: 100%;\n text-decoration: none;\n color: black;\n`;\n\nRestaurantCard.Location = styled.div`\n font-size: 48px;\n`;\n\nRestaurantCard.Restinfo = styled.div`\n padding: 18px;\n display: flex;\n flex-direction: column;\n justify-content: left;\n color: #63a9b0;\n font-family: sans-serif;\n font-weight: 500;\n`;\n\nRestaurantCard.Data = styled.span`\n font-weight: 200;\n margin-left: 4px;\n`;\n\nRestaurantCard.Restitems = styled.div`\n padding: 9px;\n`;\n\nRestaurantCard.Restnotes = styled.div`\n padding: 9px;\n`;\n\nRestaurantCard.propTypes = {\n location: PropTypes.string.isRequired,\n sampleItems: PropTypes.string.isRequired,\n notables: PropTypes.string.isRequired,\n yelp: PropTypes.string.isRequired,\n}\n\nexport default RestaurantCard\n"}}},{"rowIdx":1063,"cells":{"text":{"kind":"string","value":"import unittest\nfrom Javascript_array_filter_7_kyu import get_even_numbers\n\nclass Filter(unittest.TestCase):\n def test_1(self):\n arr = [2, 4, 5]\n result = [2, 4]\n self.assertEqual(get_even_numbers(arr), result) \n def test_2(self):\n arr = []\n result = []\n self.assertEqual(get_even_numbers(arr), result)\n \nif __name__ == \"__main__\":\n unittest.main() "}}},{"rowIdx":1064,"cells":{"text":{"kind":"string","value":"(function() {\n function SongPlayer($rootScope, Fixtures) {\n var SongPlayer = {};\n\n // PRIVATE ATTRIBUTES\n /**\n * @desc Information for current album\n * @type {Object}\n */\n var currentAlbum = Fixtures.getAlbum();\n /**\n * @desc Buzz object audio file\n * @type {Object}\n */\n var currentBuzzObject = null;\n\n // PRIVATE FUNCTIONS\n /**\n * @function setSong\n * @desc Stops currently playing song and loads new audio file as currentBuzzObject\n * @param {Object} song\n */\n var setSong = function(song) {\n if (currentBuzzObject) {\n currentBuzzObject.stop();\n SongPlayer.currentSong.playing = null;\n }\n\n currentBuzzObject = new buzz.sound(song.audioUrl, {\n formats: ['mp3'],\n preload: true\n });\n\n // timeupdate is one of a number of HTML5 audio events to use with Buzz's bind() method\n // bind() method adds an event listener to the Buzz sound object – in this case, it listens for a timeupdate event\n currentBuzzObject.bind('timeupdate', function() {\n // update the song's playback progress from anywhere with $rootScope.$apply\n // creates a custom event that other parts of the Angular application can \"listen\" to\n $rootScope.$apply(function() { // $apply the time update change to the $rootScope\n SongPlayer.currentTime = currentBuzzObject.getTime(); // getTime() gets the current playback position in seconds\n });\n });\n\n SongPlayer.currentSong = song;\n };\n /**\n * @function playSong\n * @desc Play a song\n * @param {Object} song\n */\n var playSong = function(song) {\n currentBuzzObject.play();\n song.playing = true;\n };\n /**\n * @function stopSong\n * @desc Stop a song\n * @param {Object} song\n */\n var stopSong = function(song) {\n currentBuzzObject.stop();\n song.playing = null;\n };\n /**\n * @function getSongIndex\n * @desc Get index of song in the songs array\n * @param {Object} song\n * @returns {Number}\n */\n var getSongIndex = function(song) {\n return currentAlbum.songs.indexOf(song);\n };\n\n // PUBLIC ATTRIBUTES\n /**\n * @desc Active song object from list of songs\n * @type {Object}\n */\n SongPlayer.currentSong = null;\n /**\n * @desc Current play time (in seconds) of currently playing song\n * @type {Number}\n */\n SongPlayer.currentTime = null;\n /**\n * @desc Volume used for songs\n * @type {Number}\n */\n SongPlayer.volume = 80;\n\n // PUBLIC METHODS\n /**\n * @function play\n * @desc Play current or new song\n * @param {Object} song\n */\n SongPlayer.play = function(song) {\n song = song || SongPlayer.currentSong;\n if (SongPlayer.currentSong !== song) {\n setSong(song);\n playSong(song);\n } else if (SongPlayer.currentSong === song) {\n if (currentBuzzObject.isPaused()) {\n playSong(song);\n }\n }\n };\n /**\n * @function pause\n * @desc Pause current song\n * @param {Object} song\n */\n SongPlayer.pause = function(song) {\n song = song || SongPlayer.currentSong;\n currentBuzzObject.pause();\n song.playing = false;\n };\n /**\n * @function previous\n * @desc Set song to previous song in album\n */\n SongPlayer.previous = function() {\n var currentSongIndex = getSongIndex(SongPlayer.currentSong);\n currentSongIndex--;\n\n if (currentSongIndex < 0) {\n stopSong(SongPlayer.currentSong);\n } else {\n var song = currentAlbum.songs[currentSongIndex];\n setSong(song);\n playSong(song);\n }\n };\n /**\n * @function next\n * @desc Set song to next song in album\n */\n SongPlayer.next = function() {\n var currentSongIndex = getSongIndex(SongPlayer.currentSong);\n currentSongIndex++;\n\n var lastSongIndex = currentAlbum.songs.length - 1;\n\n if (currentSongIndex > lastSongIndex) {\n stopSong(SongPlayer.currentSong);\n } else {\n var song = currentAlbum.songs[currentSongIndex];\n setSong(song);\n playSong(song);\n }\n };\n /**\n * @function setCurrentTime\n * @desc Set current time (in seconds) of currently playing song\n * @param {Number} time\n */\n // checks if there is a current Buzz object, and, if so, uses the Buzz library's setTime method to set the playback position in seconds\n SongPlayer.setCurrentTime = function(time) {\n if (currentBuzzObject) {\n currentBuzzObject.setTime(time);\n }\n };\n /**\n * @function setVolume\n * @desc Set volume for songs\n * @param {Number} volume\n */\n SongPlayer.setVolume = function(volume) {\n if (currentBuzzObject) {\n currentBuzzObject.setVolume(volume);\n }\n SongPlayer.volume = volume;\n };\n\n return SongPlayer;\n };\n\n angular\n .module('blocJams')\n .factory('SongPlayer', ['$rootScope', 'Fixtures', SongPlayer]);\n})();\n"}}},{"rowIdx":1065,"cells":{"text":{"kind":"string","value":"\"\"\"TLA+ abstract syntax tree.\"\"\"\n# Copyright 2020 by California Institute of Technology\n# Copyright (c) 2008-2013 INRIA and Microsoft Corporation\n# All rights reserved. Licensed under 3-clause BSD.\n#\n# This module is based on the files:\n#\n# \n# \n# \n# \n# \n\n\nclass Nodes:\n \"\"\"TLA+ syntax tree node classes.\"\"\"\n\n # Builtin operators\n\n class FALSE:\n \"\"\"Operator `FALSE`.\"\"\"\n\n class TRUE:\n \"\"\"Operator `TRUE`.\"\"\"\n\n class BOOLEAN:\n \"\"\"Operator `BOOLEAN`.\"\"\"\n\n class STRING:\n \"\"\"Operator `STRING`.\"\"\"\n\n class Implies:\n \"\"\"Operator `=>`.\"\"\"\n\n class Equiv:\n \"\"\"Operator `<=>`.\"\"\"\n\n class Conj:\n r\"\"\"Operator `/\\`.\"\"\"\n\n class Disj:\n r\"\"\"Operator `\\/`.\"\"\"\n\n class Neg:\n \"\"\"Operator `~`.\"\"\"\n\n class Eq:\n \"\"\"Operator `=`.\"\"\"\n\n class Neq:\n \"\"\"Operator `#`.\"\"\"\n\n class SUBSET:\n \"\"\"Operator `SUBSET`.\"\"\"\n\n class UNION:\n \"\"\"Operator `UNION`.\"\"\"\n\n class DOMAIN:\n \"\"\"Operator `DOMAIN`.\"\"\"\n\n class Subseteq:\n r\"\"\"Operator `\\subseteq`.\"\"\"\n\n class Mem:\n r\"\"\"Operator `\\in`.\"\"\"\n\n class Notmem:\n r\"\"\"Operator `\\notin`.\"\"\"\n\n class Setminus:\n r\"\"\"Operator `\\`.\"\"\"\n\n class Cap:\n r\"\"\"Operator `\\cap`.\"\"\"\n\n class Cup:\n r\"\"\"Operator `\\cup`.\"\"\"\n\n class Prime:\n \"\"\"Operator `'`.\"\"\"\n\n class LeadsTo:\n \"\"\"Operator `~>`.\"\"\"\n\n class ENABLED:\n \"\"\"Operator `ENABLED`.\"\"\"\n\n class UNCHANGED:\n \"\"\"Operator `UNCHANGED`.\"\"\"\n\n class Cdot:\n r\"\"\"Operator `\\cdot`.\"\"\"\n\n class WhilePlus:\n \"\"\"Operator `-+->`.\"\"\"\n\n class Box:\n \"\"\"Operator `[]`.\"\"\"\n\n def __init__(self, boolean):\n self.boolean = boolean # `bool` that\n # indicates application to\n # non-temporal formula, added\n # in post-processing step in `tlapm`\n\n class Diamond:\n \"\"\"Operator `<>`.\"\"\"\n\n # Syntax nodes of expressions\n\n class Opaque:\n \"\"\"Named identifier.\"\"\"\n\n def __init__(self, name):\n self.name = name\n\n class Internal:\n \"\"\"Builtin operator.\"\"\"\n\n def __init__(self, value):\n self.value = value\n\n class Apply:\n \"\"\"Operator application `Op(arg1, arg2)`.\"\"\"\n\n def __init__(self, op, operands):\n self.op = op # expr\n self.operands = operands\n # `list` of expr\n\n class Function:\n r\"\"\"Function constructor `[x \\in S |-> e]`.\"\"\"\n\n def __init__(self, bounds, expr):\n self.bounds = bounds # `list` of\n # `(str, Constant, Domain)`\n self.expr = expr\n\n class FunctionApply:\n \"\"\"Function application `f[x]`.\"\"\"\n\n def __init__(self, op, args):\n self.op = op # expr\n self.args = args\n # `list` of expr\n\n class ShapeExpr:\n \"\"\"Arity `_`.\"\"\"\n\n class ShapeOp:\n \"\"\"Arity `<<_, ...>>`.\"\"\"\n\n def __init__(self, arity):\n self.arity = arity # `int`\n\n class Lambda:\n \"\"\"`LAMBDA` expression.\"\"\"\n\n def __init__(self, name_shapes, expr):\n self.name_shapes = name_shapes # signature\n # `list` of `(str, ShapeExpr | ShapeOp)`\n self.expr = expr\n\n class TemporalSub:\n \"\"\"Subscripted temporal expression.\n\n `[][A]_v` or `<><>_v`.\n \"\"\"\n\n def __init__(self, op, action, subscript):\n self.op = op # `BoxOp` | `DiamondOp`\n self.action = action\n self.subscript = subscript\n\n class Sub:\n \"\"\"Subscripted action expression\n\n `[A]_v` or `<>_v`.\n \"\"\"\n\n def __init__(self, op, action, subscript):\n self.op = op # `BoxOp` | `DiamondOp`\n self.action = action\n self.subscript = subscript\n\n class BoxOp:\n \"\"\"Signifies `[][...]_...` or `[...]_...`.\"\"\"\n\n class DiamondOp:\n \"\"\"Signifies `<><<...>>_...` or `<<...>_...`.\"\"\"\n\n class Dot:\n \"\"\"Record field `expr.string`.\"\"\"\n\n def __init__(self, expr, string):\n self.expr = expr\n self.string = string\n\n class Parens:\n \"\"\"Parentheses or label.\"\"\"\n\n def __init__(self, expr, pform):\n self.expr = expr\n self.pform = pform\n # `Syntax` | `NamedLabel`\n # | `IndexedLabel`\n # form of parentheses\n\n def __str__(self):\n return f\"Parens({self.expr}, {self.pform})\"\n\n class Syntax:\n \"\"\"Signifies actual parentheses in source syntax.\"\"\"\n\n class NamedLabel:\n \"\"\"Represents a named label.\"\"\"\n\n def __init__(self, string, name_list):\n self.string = string # `str`\n self.name_list = name_list\n # `list` of `str`\n\n class IndexedLabel:\n \"\"\"Represents an indexed label.\"\"\"\n\n def __init__(self, string, name_int_list):\n self.string = string # `str`\n self.name_int_list = name_int_list\n\n class If:\n \"\"\"Ternary conditional expression `IF ... THEN ... ELSE`.\"\"\"\n\n def __init__(self, test, then, else_):\n self.test = test # expr\n self.then = then # expr\n self.else_ = else_ # expr\n\n class Let:\n \"\"\"`LET ... IN` expression.\"\"\"\n\n def __init__(self, definitions, expr):\n self.definitions = definitions\n # `list` of `OperatorDef`\n self.expr = expr\n\n class Forall:\n r\"\"\"Universal quantifier `\\A`, `\\AA`.\"\"\"\n\n class Exists:\n r\"\"\"Existential quantifier `\\E`, `\\EE`.\"\"\"\n\n class RigidQuantifier:\n r\"\"\"Rigid quantification `\\E` or `\\A`.\"\"\"\n\n def __init__(self, quantifier, bounds, expr):\n self.quantifier = quantifier\n # `Forall` | `Exists`\n self.bounds = bounds\n # `list` of\n # `(str, Constant, Domain | NoDomain)`\n self.expr = expr\n\n class TemporalQuantifier:\n r\"\"\"Temporal quantification `\\EE` or `\\AA`.\"\"\"\n\n def __init__(self, quantifier, variables, expr):\n self.quantifier = quantifier\n # `Forall` | `Exists`\n self.variables = variables\n # `list` of `str`\n self.expr = expr\n\n class Choose:\n \"\"\"`CHOOSE` expression.\"\"\"\n\n def __init__(self, name, bound, expr):\n self.name = name # `str`\n self.bound = bound # `None` | expr\n self.expr = expr\n\n class Case:\n \"\"\"`CASE` expression.\"\"\"\n\n def __init__(self, arms, other):\n self.arms = arms # `list` of `(expr, expr)`\n self.other = other # expr | `None`\n\n class SetEnum:\n \"\"\"Set enumeration `{1, 2, 3}`.\"\"\"\n\n def __init__(self, exprs):\n self.exprs = exprs # `list` of expr\n\n class SetSt:\n r\"\"\"Set such that `{x \\in S: e(x)}`.\"\"\"\n\n def __init__(self, name, bound, expr):\n self.name = name # `str`\n self.bound = bound # expr\n self.expr = expr\n\n class SetOf:\n r\"\"\"Set of `{e(x): x \\in S}`.\"\"\"\n\n def __init__(self, expr, boundeds):\n self.expr = expr\n self.boundeds = boundeds\n # `list` of\n # `(str, Constant, Domain)`\n\n # type of junction list\n class And:\n \"\"\"Conjunction list operator.\"\"\"\n\n class Or:\n \"\"\"Disjunction list operator.\"\"\"\n\n # junction list (conjunction or disjunction)\n class List:\n \"\"\"Conjunction or disjunction list.\"\"\"\n\n def __init__(self, op, exprs):\n self.op = op # `And` | `Or`\n self.exprs = exprs\n\n class Record:\n \"\"\"Record constructor `[h |-> v, ...]`.\"\"\"\n\n def __init__(self, items):\n self.items = items\n # `list` of `(str, expr)`\n\n class RecordSet:\n \"\"\"Set of records `[h: V, ...]`.\"\"\"\n\n def __init__(self, items):\n self.items = items\n # `list` of `(str, expr)`\n\n class Except_dot:\n \"\"\"Dot syntax in `EXCEPT` `!.name = `.\"\"\"\n\n def __init__(self, name):\n self.name = name\n\n class Except_apply:\n \"\"\"Apply syntax in `EXCEPT` `![expr] = `.\"\"\"\n\n def __init__(self, expr):\n self.expr = expr\n\n class Except:\n \"\"\"`[expr EXCEPT exspec_list]`.\"\"\"\n\n def __init__(self, expr, exspec_list):\n self.expr = expr\n self.exspec_list = exspec_list\n # `exspec` is a tuple\n # `(expoint list, expr)`\n # where `expoint` is\n # `Except_dot` | `Except_apply`\n\n class Domain:\n \"\"\"Domain bound.\"\"\"\n\n def __init__(self, expr):\n self.expr = expr\n\n class NoDomain:\n \"\"\"Unbounded domain.\"\"\"\n\n class Ditto:\n \"\"\"Same bound domain.\"\"\"\n\n class Bounded:\n \"\"\"Bounded operator declaration.\"\"\"\n\n def __init__(self, expr, visibility):\n self.expr = expr\n self.visibility = visibility\n # `Visible` | `Hidden`\n\n class Unbounded:\n \"\"\"Operator declaration without bound.\"\"\"\n\n class Visible:\n \"\"\"Visible element.\n\n Facts, operator declarations.\n \"\"\"\n\n class Hidden:\n \"\"\"Hidden element.\n\n Operator definitions.\n \"\"\"\n\n class NotSet:\n \"\"\"Unspecified attribute.\"\"\"\n\n class At:\n def __init__(self, boolean):\n self.boolean = boolean # `True` if `@`\n # from `EXCEPT`, `False` if `@` from\n # proof step.\n\n class Arrow:\n \"\"\"Function set `[expr -> expr]`.\"\"\"\n\n def __init__(self, expr1, expr2):\n self.expr1 = expr1\n self.expr2 = expr2\n\n class Tuple:\n \"\"\"Tuple constructor `<<1, 2>>`.\"\"\"\n\n def __init__(self, exprs):\n self.exprs = exprs\n\n class Bang:\n \"\"\"Label constructor `!`.\"\"\"\n\n def __init__(self, expr, sel_list):\n self.expr = expr\n self.sel_list = sel_list\n # `list` of selector\n\n class WeakFairness:\n \"\"\"Signifies operator `WF_`.\"\"\"\n\n class StrongFairness:\n \"\"\"Signifies operator `SF_`.\"\"\"\n\n class String:\n \"\"\"String constructor `\"foo\"`.\"\"\"\n\n def __init__(self, value):\n self.value = value\n\n class Number:\n \"\"\"Number constructor `.\"\"\"\n\n def __init__(self, integer, mantissa):\n self.integer = integer # characteristic\n self.mantissa = mantissa\n\n class Fairness:\n \"\"\"Fairness expression.\n\n `WF_v(A)` or `SF_v(A)`.\n \"\"\"\n\n def __init__(self, op, subscript, expr):\n self.op = op\n self.subscript = subscript\n self.expr = expr\n\n class SelLab:\n def __init__(self, string, exprs):\n self.string = string\n self.exprs = exprs\n # `list` of expr\n\n class SelInst:\n def __init__(self, exprs):\n self.exprs = exprs\n # `list` of expr\n\n class SelNum:\n def __init__(self, num):\n self.num = num # `int`\n\n class SelLeft:\n pass\n\n class SelRight:\n pass\n\n class SelDown:\n pass\n\n class SelAt:\n pass\n\n class Sequent:\n \"\"\"`ASSUME ... PROVE ...`.\"\"\"\n\n def __init__(self, context, goal):\n self.context = context # `list` of\n # `Fact` | `Flex` | `Fresh` | `Sequent`\n self.goal = goal\n\n class Fact:\n def __init__(self, expr, visibility, time):\n self.expr = expr\n self.visibility = visibility\n # `Visible` | `Hidden`\n self.time = time # `NotSet`\n\n # operator declarations\n\n class Flex:\n \"\"\"Flexible `VARIABLE`.\"\"\"\n\n def __init__(self, name):\n self.name = name # `str`\n\n # constant, state, action, and\n # temporal level operators\n class Fresh:\n \"\"\"Operator declaration (in sequent).\n\n `CONSTANT`, `STATE`, `ACTION`,\n `TEMPORAL`.\n \"\"\"\n\n def __init__(self, name, shape, kind, domain):\n self.name = name # `str`\n self.shape = shape\n # `ShapeExpr` | `ShapeOp`\n self.kind = kind\n # `Constant` | `State`\n # | `Action` | `Temporal`\n self.domain = domain\n # `Bounded` | `Unbounded`\n\n # expression levels for operator declarations\n class Constant:\n \"\"\"`CONSTANT` declaration.\"\"\"\n\n class State:\n \"\"\"`STATE` declaration.\"\"\"\n\n class Action:\n \"\"\"`ACTION` declaration.\"\"\"\n\n class Temporal:\n \"\"\"`TEMPORAL` declaration.\"\"\"\n\n class OperatorDef:\n \"\"\"Operator definition `Op == x + 1`.\"\"\"\n\n def __init__(self, name, expr):\n self.name = name # `str`\n self.expr = expr # `Lambda` or expr\n\n class Instance:\n \"\"\"`INSTANCE` statement.\"\"\"\n\n def __init__(self, name, args, module, sub):\n self.name = name # name of operator\n # in `INSTANCE` definition\n # `str` | `None`\n self.args = args # arguments of\n # operator signature in\n # `INSTANCE` definition\n # `list` of `str` | `None`\n self.module = module # `str`\n self.sub = sub # `list` of `(str, expr)`\n\n # Syntax nodes of module elements\n\n class Constants:\n \"\"\"`CONSTANT` declarations in module scope.\"\"\"\n\n def __init__(self, declarations):\n self.declarations = declarations\n # `list` of `(str, ShapeExpr | ShapeOp)`\n\n class Variables:\n \"\"\"`VARIABLE` declarations in module scope.\"\"\"\n\n def __init__(self, declarations):\n self.declarations = declarations\n # `list` of `str`\n\n class Recursives:\n \"\"\"Recursive operator definition.\"\"\"\n\n def __init__(self, declarations):\n self.declarations = declarations\n # `list` of `(str, ShapeExpr | ShapeOp)`\n\n class Local:\n \"\"\"Keyword `LOCAL`.\"\"\"\n\n class Export:\n \"\"\"Absence of keyword `LOCAL`.\"\"\"\n\n class User:\n pass\n\n class Definition:\n \"\"\"Operator definition as module unit.\"\"\"\n\n def __init__(self, definition, wheredef, visibility, local):\n self.definition = definition\n self.wheredef = wheredef\n # builtin | `User`\n self.visibility = visibility\n # `Visible` | `Hidden`\n self.local = local\n # `Local` | `Export`\n\n class AnonymousInstance:\n \"\"\"`INSTANCE` statement without definition.\"\"\"\n\n def __init__(self, instance, local):\n self.instance = instance # `Instance`\n self.local = local # `Local` | `Export`\n\n class Mutate:\n \"\"\"Module-scope `USE` or `HIDE`.\"\"\"\n\n def __init__(self, kind, usable):\n self.kind = kind\n # `Hide` | `Use`\n self.usable = usable\n # `dict(facts=list of expr,\n # defs=list of Dvar)`\n\n class ModuleHide:\n \"\"\"Module-scope `HIDE`.\"\"\"\n\n class ModuleUse:\n \"\"\"Module-scope `USE`.\"\"\"\n\n def __init__(self, boolean):\n self.boolean = boolean\n\n class Module:\n \"\"\"`MODULE`s and submodules.\"\"\"\n\n def __init__(self, name, extendees, instancees, body):\n self.name = name # `str`\n self.extendees = extendees\n # `list` of `str`\n self.instancees = instancees # `list`\n self.body = body # `list` of\n # `Definition` | `Mutate`\n # `Submodule` | `Theorem`\n\n class Submodule:\n \"\"\"Submodule as module unit.\"\"\"\n\n def __init__(self, module):\n self.module = module\n\n class Suppress:\n pass\n\n class Emit:\n pass\n\n class StepStar:\n \"\"\"Step identifier `<*>label`.\"\"\"\n\n def __init__(self, label):\n self.label = label\n\n class StepPlus:\n \"\"\"Step identifier `<+>label`.\"\"\"\n\n def __init__(self, label):\n self.label = label\n\n class StepNum:\n \"\"\"Step identifier `label`.\"\"\"\n\n def __init__(self, level, label):\n self.level = level\n self.label = label\n\n class Only:\n \"\"\"`ONLY` statement.\"\"\"\n\n class Default:\n \"\"\"`ONLY` attribute in `PreBy`.\"\"\"\n\n class PreBy:\n \"\"\"`BY` statement.\"\"\"\n\n def __init__(self, supp, only, usable, method):\n self.supp = supp\n self.only = only # `Default` | `Only`\n self.usable = usable\n # `dict(facts=list of expr,\n # defs=list of Dvar)`\n self.method = method\n\n class PreObvious:\n \"\"\"`OBVIOUS` statement.\"\"\"\n\n def __init__(self, supp, method):\n self.supp = supp\n self.method = method\n\n class PreOmitted:\n \"\"\"`OMITTED` statement.\"\"\"\n\n def __init__(self, omission):\n self.omission = omission\n # `Explicit` | `Implicit`\n\n class Explicit:\n \"\"\"Explicitly omitted proof.\"\"\"\n\n class Implicit:\n \"\"\"Implicitly omitted proof.\"\"\"\n\n class PreStep:\n \"\"\"Proof step.\"\"\"\n\n def __init__(self, boolean, preno, prestep):\n self.boolean = boolean # `PROOF` keyword ?\n self.preno = preno\n self.prestep = prestep\n\n class PreHide:\n \"\"\"`HIDE` statement.\"\"\"\n\n def __init__(self, usable):\n self.usable = usable\n\n class PreUse:\n \"\"\"`USE` statement.\"\"\"\n\n def __init__(self, supp, only, usable, method):\n self.supp = supp\n self.only = only\n self.usable = usable\n self.method = method\n\n class PreDefine:\n \"\"\"`DEFINE` statement.\"\"\"\n\n def __init__(self, defns):\n self.definitions = defns\n\n class PreAssert:\n \"\"\"Assertion statement.\n\n Sequent or expression in proof step.\n \"\"\"\n\n def __init__(self, sequent):\n self.sequent = sequent\n\n class PreSuffices:\n \"\"\"`SUFFICES` statement.\"\"\"\n\n def __init__(self, sequent):\n self.sequent = sequent\n\n class PreCase:\n \"\"\"`CASE` proof statement.\"\"\"\n\n def __init__(self, expr):\n self.expr = expr\n\n class PrePick:\n \"\"\"`PICK` statement.\"\"\"\n\n def __init__(self, bounds, expr):\n self.bounds = bounds\n self.expr = expr\n\n class PreHave:\n \"\"\"`HAVE` statement.\"\"\"\n\n def __init__(self, supp, expr, method):\n self.supp = supp\n self.expr = expr\n self.method = method\n\n class PreTake:\n \"\"\"`TAKE` statement.\"\"\"\n\n def __init__(self, supp, bounds, method):\n self.supp = supp\n self.bounds = bounds\n self.method = method\n\n class PreWitness:\n \"\"\"`WITNESS` statement.\"\"\"\n\n def __init__(self, supp, exprs, method):\n self.supp = supp\n self.exprs = exprs\n self.method = method\n\n class PreQed:\n \"\"\"`QED` statement.\"\"\"\n\n class Axiom:\n \"\"\"`AXIOM`.\"\"\"\n\n def __init__(self, name, expr):\n self.name = name\n self.expr = expr\n\n class Theorem:\n \"\"\"`THEOREM` together with its proof.\n\n ```\n THEOREM name == body\n PROOF\n proof\n ```\n \"\"\"\n\n def __init__(self, name, body, proof):\n self.name = name # `str` | `None`\n self.body = body # `Sequent`\n self.proof = proof\n # `Omitted` | `Obvious`\n # | `Steps` | `By`\n\n # Step numbers\n\n class Named:\n \"\"\"Step number with label.\"\"\"\n\n def __init__(self, level, label, boolean):\n self.level = level # `int`\n self.label = label # `str`\n self.boolean = boolean # `bool`\n\n class Unnamed:\n \"\"\"Step number without label.\"\"\"\n\n def __init__(self, level, uuid):\n self.level = level # `int`\n self.uuid = uuid\n\n # Proofs\n\n class Obvious:\n \"\"\"`OBVIOUS` statement.\"\"\"\n\n class Omitted:\n \"\"\"`OMITTED` statement.\"\"\"\n\n def __init__(self, omission):\n self.omission = omission\n\n class By:\n \"\"\"`BY` statement.\"\"\"\n\n def __init__(self, usable, only):\n self.usable = usable\n # `dict(facts=list of expr,\n # defs=list of Dvar)`\n self.only = only # `bool`\n\n class Steps:\n \"\"\"Proof steps in a proof.\"\"\"\n\n def __init__(self, steps, qed_step):\n self.steps = steps # step `list`\n self.qed_step = qed_step\n\n # Proof steps\n # The attribute `step_number` stores\n # the step number: `Named` | `Unnamed`\n\n class Hide:\n \"\"\"`HIDE` statement.\"\"\"\n\n def __init__(self, usable):\n self.usable = usable\n # `dict(facts=list of expr,\n # defs=list of Dvar)`\n\n class Define:\n \"\"\"`DEFINE` statement.\"\"\"\n\n def __init__(self, defns):\n self.definitions = defns\n\n class Assert:\n \"\"\"Assertion statement.\n\n Sequent with proof.\n \"\"\"\n\n def __init__(self, sequent, proof):\n self.sequent = sequent # `Sequent`\n self.proof = proof\n # `Omitted` | `Obvious`\n # | `Steps` | `By`\n\n class Suffices:\n \"\"\"`SUFFICES` statement.\"\"\"\n\n def __init__(self, sequent, proof):\n self.sequent = sequent\n self.proof = proof\n # `Omitted` | `Obvious`\n # | `Steps` | `By`\n\n class Pcase:\n \"\"\"`CASE` proof statement.\"\"\"\n\n def __init__(self, expr, proof):\n self.expr = expr\n self.proof = proof\n # `Omitted` | `Obvious`\n # | `Steps` | `By`\n\n class Pick:\n \"\"\"`PICK` statement.\"\"\"\n\n def __init__(self, bounds, expr, proof):\n self.bounds = bounds # `list` of\n # `(str, Constant,\n # Domain | NoDomain | Ditto)`\n self.expr = expr\n self.proof = proof\n # `Omitted` | `Obvious`\n # | `Steps` | `By`\n\n class Use:\n \"\"\"`USE` statement.\"\"\"\n\n def __init__(self, usable, only):\n self.usable = usable\n # `dict(facts=list of expr,\n # defs=list of Dvar)`\n self.only = only # `bool`\n\n class Have:\n \"\"\"`HAVE` statement.\"\"\"\n\n def __init__(self, expr):\n self.expr = expr\n\n class Take:\n \"\"\"`TAKE` statement.\"\"\"\n\n def __init__(self, bounds):\n self.bounds = bounds\n # `list` of\n # `(str, Constant,\n # Domain | NoDomain | Ditto)`\n\n class Witness:\n \"\"\"`WITNESS` statement.\"\"\"\n\n def __init__(self, exprs):\n self.exprs = exprs\n # `list` of expr\n\n class Qed:\n \"\"\"`QED` statement.\"\"\"\n\n def __init__(self, proof):\n self.proof = proof\n\n class Dvar:\n \"\"\"Item in `BY DEF ...` or `USE DEF ...`.\"\"\"\n\n def __init__(self, value):\n self.value = value # `str`\n\n class Bstring:\n \"\"\"Backend pragma string.\"\"\"\n\n def __init__(self, value):\n self.value = value # `str`\n\n class Bfloat:\n \"\"\"Backend pragma float.\"\"\"\n\n def __init__(self, value):\n self.value = value # `str`\n\n class Bdef:\n \"\"\"`@` in backend pragma.\"\"\"\n\n class BackendPragma:\n \"\"\"Backend pragma.\"\"\"\n\n def __init__(self, name, expr, backend_args):\n self.name = name # as in `OperatorDef`\n self.expr = expr # as in `OperatorDef`\n self.backend_args = backend_args\n # `list` of `(str, Bstring | Bfloat | Bdef)`\n"}}},{"rowIdx":1066,"cells":{"text":{"kind":"string","value":"import React from 'react'\n\nconst FloorImg = (props) => {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n )\n}\n\nexport default FloorImg"}}},{"rowIdx":1067,"cells":{"text":{"kind":"string","value":"import React from 'react';\nimport { View, Text, StyleSheet, FlatList, TouchableHighlight } from 'react-native';\nimport ScopeItem from './ScopeItem';\nimport propTypes from 'prop-types';\nimport Spinner from '../../../components/Spinner'\n\n/**\n * @example\n * {}}\n * onSelect={() => {}}\n * loading={false}\n * />\n */\nclass ScopeList extends React.PureComponent {\n renderEmptyList() {\n return (\n \n No forms\n \n );\n }\n\n renderFooter = () => {\n if (this.props.loading) {\n return \n }\n return (\n \n \n Load More\n \n \n )\n }\n\n render() {\n if (!this.props.result) {\n return this.renderEmptyList();\n }\n\n return (\n \n Forms ({this.props.result.length})\n \n Status\n Tag\n Form type\n Responsible\n \n {\n return (\n this.props.onSelect(item)}\n />\n );\n }}\n keyExtractor={item => `${item.Id}`}\n extra={this.props.result}\n />\n \n );\n }\n}\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1\n },\n header: {\n marginBottom: 15,\n fontWeight: '700'\n },\n headerTitlesContainer: {\n flexDirection: 'row',\n marginBottom: 5\n },\n titleText: {\n fontSize: 10,\n color: '#243746'\n },\n emptyResultText: {\n fontSize: 16,\n textAlign: 'center'\n }\n});\n\nScopeList.propTypes = {\n result: propTypes.arrayOf(propTypes.shape({\n Id: propTypes.number.isRequired,\n TagNo: propTypes.string.isRequired,\n TagDescription: propTypes.string.isRequired,\n Status: propTypes.string.isRequired,\n ProjectDescription: propTypes.string,\n FormularType: propTypes.string.isRequired,\n FormularGroup: propTypes.string.isRequired,\n HasElectronicForm: propTypes.bool.isRequired,\n AttachmentCount: propTypes.number.isRequired\n })),\n onSelect: propTypes.func.isRequired,\n loadMore: propTypes.func.isRequired\n};\n\nScopeList.defaultProps = {\n result: [],\n};\nexport default ScopeList;\n"}}},{"rowIdx":1068,"cells":{"text":{"kind":"string","value":"var shell = require('shelljs');\n\nmodule.exports = function(grunt) {\n\n var TOMCAT_DIR = process.env.TOMCAT_HOME || '/usr/local/tomcat';\n TOMCAT_DIR += '/';\n var STATIC_FOLDER = \"src/main/webapp/WEB-INF/\";\n\n grunt.initConfig({\n watch: {\n statics: {\n files: [STATIC_FOLDER + \"**/**/*.*\"],\n }\n }\n });\n\n grunt.event.on('watch', function(action, filepath, target) {\n if(target === 'statics'){\n var destFilePath = TOMCAT_DIR + 'webapps/ExampleLtiApp-1.0.0-SNAPSHOT/' + filepath.replace('src/main/webapp/', '');\n grunt.log.writeln(target + ': ' + filepath + ' has ' + action + ' ... and is being copied to: ' + destFilePath);\n shell.exec('cp ' + filepath + ' ' + destFilePath);\n }\n });\n\n grunt.loadNpmTasks('grunt-contrib-watch');\n\n};\n"}}},{"rowIdx":1069,"cells":{"text":{"kind":"string","value":"import React from 'react';\n\nconst Video = ({ className, src }) => {\n return (\n \n );\n};\n\nexport default Video;\n"}}},{"rowIdx":1070,"cells":{"text":{"kind":"string","value":"# -*- coding: utf-8 -*-\n\n################################################################################\n## Form generated from reading UI file 'UI.ui'\n##\n## Created by: Qt User Interface Compiler version 5.15.2\n##\n## WARNING! All changes made in this file will be lost when recompiling UI file!\n################################################################################\n\nfrom PySide2.QtCore import *\nfrom PySide2.QtGui import *\nfrom PySide2.QtWidgets import *\n\n\nclass Ui_MainWindow(object):\n def setupUi(self, MainWindow):\n if not MainWindow.objectName():\n MainWindow.setObjectName(u\"MainWindow\")\n MainWindow.resize(1280, 720)\n MainWindow.setWindowOpacity(1.000000000000000)\n self.centralwidget = QWidget(MainWindow)\n self.centralwidget.setObjectName(u\"centralwidget\")\n self.menuBox = QComboBox(self.centralwidget)\n self.menuBox.addItem(\"\")\n self.menuBox.addItem(\"\")\n self.menuBox.addItem(\"\")\n self.menuBox.addItem(\"\")\n self.menuBox.addItem(\"\")\n self.menuBox.setObjectName(u\"menuBox\")\n self.menuBox.setGeometry(QRect(20, 10, 511, 51))\n font = QFont()\n font.setPointSize(14)\n self.menuBox.setFont(font)\n self.menuBox.setAutoFillBackground(False)\n self.menuBox.setEditable(False)\n self.quitButton = QPushButton(self.centralwidget)\n self.quitButton.setObjectName(u\"quitButton\")\n self.quitButton.setGeometry(QRect(750, 670, 520, 50))\n font1 = QFont()\n font1.setPointSize(15)\n self.quitButton.setFont(font1)\n self.quitButton.setAutoFillBackground(False)\n self.Image = QLabel(self.centralwidget)\n self.Image.setObjectName(u\"Image\")\n self.Image.setGeometry(QRect(0, 0, 1280, 720))\n self.box_register = QWidget(self.centralwidget)\n self.box_register.setObjectName(u\"box_register\")\n self.box_register.setGeometry(QRect(80, 80, 360, 150))\n self.formLayout = QFormLayout(self.box_register)\n self.formLayout.setObjectName(u\"formLayout\")\n self.ID_label = QLabel(self.box_register)\n self.ID_label.setObjectName(u\"ID_label\")\n\n self.formLayout.setWidget(0, QFormLayout.LabelRole, self.ID_label)\n\n self.ID = QLineEdit(self.box_register)\n self.ID.setObjectName(u\"ID\")\n self.ID.setMinimumSize(QSize(0, 40))\n font2 = QFont()\n font2.setPointSize(13)\n self.ID.setFont(font2)\n\n self.formLayout.setWidget(0, QFormLayout.FieldRole, self.ID)\n\n self.name_label = QLabel(self.box_register)\n self.name_label.setObjectName(u\"name_label\")\n\n self.formLayout.setWidget(1, QFormLayout.LabelRole, self.name_label)\n\n self.name = QLineEdit(self.box_register)\n self.name.setObjectName(u\"name\")\n self.name.setMinimumSize(QSize(0, 40))\n self.name.setFont(font2)\n\n self.formLayout.setWidget(1, QFormLayout.FieldRole, self.name)\n\n self.capture_button = QPushButton(self.box_register)\n self.capture_button.setObjectName(u\"capture_button\")\n self.capture_button.setMinimumSize(QSize(0, 40))\n\n self.formLayout.setWidget(2, QFormLayout.SpanningRole, self.capture_button)\n\n self.box_delete = QWidget(self.centralwidget)\n self.box_delete.setObjectName(u\"box_delete\")\n self.box_delete.setGeometry(QRect(80, 230, 360, 101))\n self.formLayout_2 = QFormLayout(self.box_delete)\n self.formLayout_2.setObjectName(u\"formLayout_2\")\n self.ID_label_2 = QLabel(self.box_delete)\n self.ID_label_2.setObjectName(u\"ID_label_2\")\n\n self.formLayout_2.setWidget(0, QFormLayout.LabelRole, self.ID_label_2)\n\n self.ID_2 = QLineEdit(self.box_delete)\n self.ID_2.setObjectName(u\"ID_2\")\n self.ID_2.setMinimumSize(QSize(0, 40))\n self.ID_2.setFont(font2)\n\n self.formLayout_2.setWidget(0, QFormLayout.FieldRole, self.ID_2)\n\n self.remove_button = QPushButton(self.box_delete)\n self.remove_button.setObjectName(u\"remove_button\")\n self.remove_button.setMinimumSize(QSize(0, 40))\n\n self.formLayout_2.setWidget(1, QFormLayout.FieldRole, self.remove_button)\n\n self.box_mqtt = QWidget(self.centralwidget)\n self.box_mqtt.setObjectName(u\"box_mqtt\")\n self.box_mqtt.setGeometry(QRect(80, 360, 360, 150))\n self.formLayout_4 = QFormLayout(self.box_mqtt)\n self.formLayout_4.setObjectName(u\"formLayout_4\")\n self.address_label = QLabel(self.box_mqtt)\n self.address_label.setObjectName(u\"address_label\")\n\n self.formLayout_4.setWidget(0, QFormLayout.LabelRole, self.address_label)\n\n self.address = QLineEdit(self.box_mqtt)\n self.address.setObjectName(u\"address\")\n self.address.setMinimumSize(QSize(0, 40))\n self.address.setFont(font2)\n\n self.formLayout_4.setWidget(0, QFormLayout.FieldRole, self.address)\n\n self.port_label = QLabel(self.box_mqtt)\n self.port_label.setObjectName(u\"port_label\")\n\n self.formLayout_4.setWidget(1, QFormLayout.LabelRole, self.port_label)\n\n self.port = QLineEdit(self.box_mqtt)\n self.port.setObjectName(u\"port\")\n self.port.setMinimumSize(QSize(0, 40))\n self.port.setFont(font2)\n\n self.formLayout_4.setWidget(1, QFormLayout.FieldRole, self.port)\n\n self.mqtt_button = QPushButton(self.box_mqtt)\n self.mqtt_button.setObjectName(u\"mqtt_button\")\n self.mqtt_button.setMinimumSize(QSize(0, 40))\n\n self.formLayout_4.setWidget(2, QFormLayout.SpanningRole, self.mqtt_button)\n\n self.box_gpio = QWidget(self.centralwidget)\n self.box_gpio.setObjectName(u\"box_gpio\")\n self.box_gpio.setGeometry(QRect(80, 520, 360, 150))\n self.formLayout_5 = QFormLayout(self.box_gpio)\n self.formLayout_5.setObjectName(u\"formLayout_5\")\n self.pin_label = QLabel(self.box_gpio)\n self.pin_label.setObjectName(u\"pin_label\")\n\n self.formLayout_5.setWidget(0, QFormLayout.LabelRole, self.pin_label)\n\n self.pin = QLineEdit(self.box_gpio)\n self.pin.setObjectName(u\"pin\")\n self.pin.setMinimumSize(QSize(0, 40))\n self.pin.setFont(font2)\n\n self.formLayout_5.setWidget(0, QFormLayout.FieldRole, self.pin)\n\n self.stateBox = QComboBox(self.box_gpio)\n self.stateBox.addItem(\"\")\n self.stateBox.addItem(\"\")\n self.stateBox.setObjectName(u\"stateBox\")\n self.stateBox.setMinimumSize(QSize(0, 40))\n self.stateBox.setFont(font2)\n\n self.formLayout_5.setWidget(1, QFormLayout.FieldRole, self.stateBox)\n\n self.gpio_button = QPushButton(self.box_gpio)\n self.gpio_button.setObjectName(u\"gpio_button\")\n self.gpio_button.setMinimumSize(QSize(0, 40))\n\n self.formLayout_5.setWidget(2, QFormLayout.SpanningRole, self.gpio_button)\n\n self.state_label = QLabel(self.box_gpio)\n self.state_label.setObjectName(u\"state_label\")\n\n self.formLayout_5.setWidget(1, QFormLayout.LabelRole, self.state_label)\n\n MainWindow.setCentralWidget(self.centralwidget)\n self.Image.raise_()\n self.menuBox.raise_()\n self.quitButton.raise_()\n self.box_register.raise_()\n self.box_delete.raise_()\n self.box_mqtt.raise_()\n self.box_gpio.raise_()\n self.menubar = QMenuBar(MainWindow)\n self.menubar.setObjectName(u\"menubar\")\n self.menubar.setGeometry(QRect(0, 0, 1280, 22))\n MainWindow.setMenuBar(self.menubar)\n self.statusbar = QStatusBar(MainWindow)\n self.statusbar.setObjectName(u\"statusbar\")\n MainWindow.setStatusBar(self.statusbar)\n\n self.retranslateUi(MainWindow)\n\n QMetaObject.connectSlotsByName(MainWindow)\n # setupUi\n\n def retranslateUi(self, MainWindow):\n MainWindow.setWindowTitle(QCoreApplication.translate(\"MainWindow\", u\"MainWindow\", None))\n self.menuBox.setItemText(0, \"\")\n self.menuBox.setItemText(1, QCoreApplication.translate(\"MainWindow\", u\"Register New User\", None))\n self.menuBox.setItemText(2, QCoreApplication.translate(\"MainWindow\", u\"Delete User ID\", None))\n self.menuBox.setItemText(3, QCoreApplication.translate(\"MainWindow\", u\"Configure MQTT\", None))\n self.menuBox.setItemText(4, QCoreApplication.translate(\"MainWindow\", u\"Configure GPIO\", None))\n\n self.menuBox.setCurrentText(\"\")\n self.quitButton.setText(QCoreApplication.translate(\"MainWindow\", u\"Quit\", None))\n self.Image.setText(QCoreApplication.translate(\"MainWindow\", u\"TextLabel\", None))\n self.ID_label.setText(QCoreApplication.translate(\"MainWindow\", u\"ID\", None))\n self.ID.setText(QCoreApplication.translate(\"MainWindow\", u\"0\", None))\n self.name_label.setText(QCoreApplication.translate(\"MainWindow\", u\"Name\", None))\n self.name.setText(QCoreApplication.translate(\"MainWindow\", u\"John Doe\", None))\n self.capture_button.setText(QCoreApplication.translate(\"MainWindow\", u\"Capture\", None))\n self.ID_label_2.setText(QCoreApplication.translate(\"MainWindow\", u\"ID\", None))\n self.ID_2.setText(QCoreApplication.translate(\"MainWindow\", u\"0\", None))\n self.remove_button.setText(QCoreApplication.translate(\"MainWindow\", u\"Remove User ID\", None))\n self.address_label.setText(QCoreApplication.translate(\"MainWindow\", u\"Address\", None))\n self.address.setText(QCoreApplication.translate(\"MainWindow\", u\"localhost\", None))\n self.port_label.setText(QCoreApplication.translate(\"MainWindow\", u\"Port\", None))\n self.port.setText(QCoreApplication.translate(\"MainWindow\", u\"1883\", None))\n self.mqtt_button.setText(QCoreApplication.translate(\"MainWindow\", u\"Start/Stop MQTT\", None))\n self.pin_label.setText(QCoreApplication.translate(\"MainWindow\", u\"Pin\", None))\n self.pin.setText(QCoreApplication.translate(\"MainWindow\", u\"17\", None))\n self.stateBox.setItemText(0, QCoreApplication.translate(\"MainWindow\", u\"HIGH\", None))\n self.stateBox.setItemText(1, QCoreApplication.translate(\"MainWindow\", u\"LOW\", None))\n\n self.gpio_button.setText(QCoreApplication.translate(\"MainWindow\", u\"Start/Stop GPIO control\", None))\n self.state_label.setText(QCoreApplication.translate(\"MainWindow\", u\"Active state\", None))\n # retranslateUi\n\n"}}},{"rowIdx":1071,"cells":{"text":{"kind":"string","value":"/* eslint-disable */\nimport React from 'react';\nimport { createSvgIcon } from '@wingscms/components';\n\nexport default createSvgIcon(\n \n \n \n \n \n \n \n \n \n \n \n ,\n 'google-plus',\n '0 0 512 512',\n);\n"}}},{"rowIdx":1072,"cells":{"text":{"kind":"string","value":"'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _index = require('../../startOfHour/index.js');\n\nvar _index2 = _interopRequireDefault(_index);\n\nvar _index3 = require('../_lib/convertToFP/index.js');\n\nvar _index4 = _interopRequireDefault(_index3);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it.\n\nvar startOfHourWithOptions = (0, _index4.default)(_index2.default, 2);\n\nexports.default = startOfHourWithOptions;\nmodule.exports = exports['default'];"}}},{"rowIdx":1073,"cells":{"text":{"kind":"string","value":"const vha = {\n install(Vue, options) {\n document.addEventListener('deviceready', () => {\n try {\n if (typeof window.cordova.getAppVersion != 'undefined') {\n Vue.prototype.$vha.appversion = window.cordova.getAppVersion\n } else {\n throw \"cordova-plugin-app-version\"\n }\n }\n catch (err) {\n console.log(err, err.message)\n }\n }, false)\n }\n}\nexport default vha"}}},{"rowIdx":1074,"cells":{"text":{"kind":"string","value":"import React from 'react'\nimport PropTypes from 'prop-types'\nimport Helmet from 'react-helmet'\n\nimport Navbar from '../components/Navbar'\nimport './all.sass'\n\nconst TemplateWrapper = ({ children }) => (\n
\n \n \n
{children()}
\n
\n)\n\nTemplateWrapper.propTypes = {\n children: PropTypes.func,\n}\n\nexport default TemplateWrapper\n"}}},{"rowIdx":1075,"cells":{"text":{"kind":"string","value":"from django import forms\nfrom django.forms import ModelForm\nfrom django.contrib.auth.forms import AuthenticationForm\n\nfrom .models import (\n OyuUser,\n OyuUserProfile,\n CtfChallengeRequest,\n)\n\nfrom .consts import (\n USER_REGION_CHOICES,\n CTF_CHALLENGE_CATEGORY_CHOICES,\n)\n# Third party\nfrom martor.fields import MartorFormField\n\nclass UserRegistrationForm(ModelForm):\n\n password = forms.CharField(widget=forms.PasswordInput)\n\n class Meta:\n model = OyuUser\n fields = ['username', 'email', 'password']\n error_messages = {\n 'username': {\n 'required': 'Нэрээ оруулна уу',\n 'unique': 'Нэр давхардаж байна',\n },\n 'email': {\n 'required': 'И-мэйл оруулна уу',\n 'unique': 'И-мэйл давхардаж байна',\n },\n }\n\n def __init__(self, *args, **kwargs):\n super(UserRegistrationForm, self).__init__(*args, **kwargs)\n\n self.fields['username'].widget.attrs.update({'autofocus': 'autofocus'})\n self.fields['username'].widget.attrs['placeholder'] = u\"Бүртгүүлэх нэр\"\n self.fields['email'].widget.attrs['placeholder'] = u\"И-мэйл хаяг\"\n self.fields['password'].widget.attrs['placeholder'] = u\"Нууц үг\"\n\n for vis in self.visible_fields(): vis.field.widget.attrs['class'] = 'form-control _input'\n\n\nclass LoginForm(AuthenticationForm):\n\n username = forms.EmailField(label=\"Е-мэйл хаяг\", max_length=100, required=True)\n\n def __init__(self, request=None, *args, **kwargs):\n super(LoginForm, self).__init__(*args, **kwargs)\n self.fields['username'].widget.attrs.update({'autofocus': ''})\n for vis in self.visible_fields(): \n vis.field.widget.attrs['class'] = 'form-control _input'\n\n self.fields['username'].widget.attrs['placeholder'] = u'И-мэйл хаяг'\n self.fields['password'].widget.attrs['placeholder'] = u'Нууц үг'\n\n\n def clean_username(self, ):\n uname = self.cleaned_data.get(\"username\")\n if uname: uname = uname.strip()\n return uname\n\nclass UserProfileUpdateForm(forms.Form):\n\n email = forms.EmailField(label=\"Е-мэйл хаяг\", max_length=100, required=False)\n password = forms.CharField(label=\"Нууц үг\", widget=forms.PasswordInput, required=False,)\n background_image = forms.ImageField(label=\"Арын зураг\", max_length=128, required=False)\n avatar_image = forms.ImageField(label=\"Нүүр зураг\", max_length=128, required=False)\n\n fullname = forms.CharField(label=\"Бүтэн нэр\", max_length=20, required=False)\n region = forms.ChoiceField(label=\"Харьяа\", choices=USER_REGION_CHOICES, help_text=\"Сургууль эсвэл ажилладаг газар.\", required=False)\n facebook_link = forms.CharField(label=\"Facebook link\", max_length=128, required=False)\n insta_link = forms.CharField(label=\"Insta link\", max_length=128, required=False)\n github_link = forms.CharField(label=\"Github link\", max_length=128, required=False)\n\n def __init__(self, request=None, *args, **kwargs):\n super(UserProfileUpdateForm, self).__init__(*args, **kwargs)\n for field in self.fields:\n self.fields[field].widget.attrs['class'] = 'form-control _input'\n self.fields[field].widget.attrs['placeholder'] = '. . .'\n \n # Disabling extra thing on heroku\n self.fields['password'].widget.attrs['disabled'] = True\n self.fields['email'].widget.attrs['disabled'] = True\n self.fields['background_image'].widget.attrs['disabled'] = True\n self.fields['avatar_image'].widget.attrs['disabled'] = True\n \n self.fields['avatar_image'].widget.attrs['class'] = \"form-control-file\"\n self.fields['background_image'].widget.attrs['class'] = \"form-control-file\"\n\n def clean(self):\n return self.cleaned_data\n\nclass CTFChallengeRequestForm(ModelForm):\n class Meta:\n model = CtfChallengeRequest\n fields = ['title', 'description', 'category', 'solution', 'flag']\n\n def __init__(self, request=None, *args, **kwargs):\n super(CTFChallengeRequestForm, self).__init__(*args, **kwargs)\n\n for field in self.fields: self.fields[field].widget.attrs['class'] = 'form-control _input'\n\n self.fields['title'].widget.attrs['placeholder'] = u\"Бодлогын нэрийг оруулна уу\"\n self.fields['solution'].widget.attrs['placeholder'] = u\"Бид таны бодлогыг шалгахын тулд заавал бөглөнө үү\"\n self.fields['flag'].widget.attrs['placeholder'] = u\"Хариу буюу флагаа оруулна уу\"\n"}}},{"rowIdx":1076,"cells":{"text":{"kind":"string","value":"const debugLog = false;\n\nexport const diffSeconds = (dt2, dt1) => {\n let diff = (dt2.getTime() - dt1.getTime()) / 1000;\n return Math.abs(Math.round(diff));\n};\n\nexport const diffCount = (c2, c1) => {\n let diff = c1 - c2;\n return diff;\n};\n\nexport const calcTickerValues = ({\n prevTimestamp,\n currTimestamp,\n setTimePassedInIntervalInPercent,\n}) => {\n // prepare variables for calulation of time passed in percent\n const currTime = new Date();\n const intervalLength = diffSeconds(prevTimestamp, currTimestamp);\n const timePassed = diffSeconds(currTimestamp, currTime);\n const calcTimePassed = timePassed / intervalLength;\n setTimePassedInIntervalInPercent(calcTimePassed);\n};\n\nexport const updateTicker = ({\n statsSummary,\n timePassedInIntervalInPercent,\n setPeopleCount,\n setMunicipalityCount,\n updatedSummary,\n setUpdatedSummary,\n refreshContextStats,\n}) => {\n debugLog &&\n console.log('Percent of Interval passed:', timePassedInIntervalInPercent);\n // Get users and calculate users won in the last 15 minutes\n const prevCountUsers = statsSummary?.previous?.users;\n const currCountUsers = statsSummary?.users;\n const usersWonInInterval = diffCount(prevCountUsers, currCountUsers);\n const usersToAdd = Math.floor(\n usersWonInInterval * timePassedInIntervalInPercent\n );\n debugLog && console.log('Users to add:', usersToAdd);\n // Get municiplaities and calculate users won in the last 15 minutes\n const prevCountMunicipalities = statsSummary?.previous?.municipalities;\n const currCountMunicipalities = statsSummary?.municipalities;\n const municipalitiesWonInInterval = diffCount(\n prevCountMunicipalities,\n currCountMunicipalities\n );\n const municipalitiesToAdd = Math.floor(\n municipalitiesWonInInterval * timePassedInIntervalInPercent\n );\n debugLog && console.log('Municipalities to add:', municipalitiesToAdd);\n\n if (timePassedInIntervalInPercent <= 1) {\n debugLog && console.log('Setting Users to:', prevCountUsers + usersToAdd);\n setPeopleCount(prevCountUsers + usersToAdd);\n debugLog &&\n console.log(\n 'Setting Municipalities to:',\n prevCountMunicipalities + municipalitiesToAdd\n );\n setMunicipalityCount(prevCountMunicipalities + municipalitiesToAdd);\n setTimeout(() => {\n setUpdatedSummary(updatedSummary + 1);\n }, 1000);\n } else {\n refreshContextStats();\n }\n};\n\nexport const numberWithDots = (num = 0) => {\n return num.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g, '.');\n};\n"}}},{"rowIdx":1077,"cells":{"text":{"kind":"string","value":"# Copyright 2021 Huawei Technologies Co., Ltd\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# ============================================================================\n\"\"\"model\"\"\"\n\nimport mindspore.nn as nn\n\nfrom encoder import Encoder, EncoderLayer, ConvLayer, EncoderStack\nfrom decoder import Decoder, DecoderLayer\nfrom attn import FullAttention, ProbAttention, AttentionLayer\nfrom embed import DataEmbedding\n\n\nclass Informer(nn.Cell):\n \"\"\"Informer\"\"\"\n def __init__(self, enc_in, dec_in, c_out, out_len,\n factor=5, d_model=512, n_heads=8, e_layers=3, d_layers=2, d_ff=512,\n dropout=0.0, attn='prob', embed='fixed', freq='h', activation='gelu',\n output_attention=False, distil=True, mix=True):\n super(Informer, self).__init__()\n self.pred_len = out_len\n self.attn = attn\n self.output_attention = output_attention\n\n # Encoding\n self.enc_embedding = DataEmbedding(enc_in, d_model, embed, freq, dropout)\n self.dec_embedding = DataEmbedding(dec_in, d_model, embed, freq, dropout)\n # Attention\n attn_f = ProbAttention if attn == 'prob' else FullAttention\n # Encoder\n self.encoder = Encoder(\n [\n EncoderLayer(\n AttentionLayer(attn_f(False, factor, attention_dropout=dropout, output_attention=output_attention),\n d_model, n_heads, mix=False),\n d_model,\n d_ff,\n dropout=dropout,\n activation=activation\n ) for l in range(e_layers)\n ],\n [\n ConvLayer(\n d_model\n ) for l in range(e_layers - 1)\n ] if distil else None,\n norm_layer=nn.LayerNorm(normalized_shape=d_model, epsilon=1e-05)\n )\n # Decoder\n self.decoder = Decoder(\n [\n DecoderLayer(\n AttentionLayer(attn_f(True, factor, attention_dropout=dropout, output_attention=False),\n d_model, n_heads, mix=mix),\n AttentionLayer(FullAttention(False, factor, attention_dropout=dropout, output_attention=False),\n d_model, n_heads, mix=False),\n d_model,\n d_ff,\n dropout=dropout,\n activation=activation,\n )\n for l in range(d_layers)\n ],\n norm_layer=nn.LayerNorm(normalized_shape=d_model, epsilon=1e-05)\n )\n # self.end_conv1 = nn.Conv1d(in_channels=label_len+out_len, out_channels=out_len, kernel_size=1, bias=True)\n # self.end_conv2 = nn.Conv1d(in_channels=d_model, out_channels=c_out, kernel_size=1, bias=True)\n self.projection = nn.Dense(in_channels=d_model, out_channels=c_out, has_bias=True)\n\n def construct(self, x_enc, x_mark_enc, x_dec, x_mark_dec,\n enc_self_mask=None, dec_self_mask=None, dec_enc_mask=None):\n \"\"\"build\"\"\"\n enc_out = self.enc_embedding(x_enc, x_mark_enc)\n enc_out, attns = self.encoder(enc_out, attn_mask=enc_self_mask)\n\n dec_out = self.dec_embedding(x_dec, x_mark_dec)\n dec_out = self.decoder(dec_out, enc_out, x_mask=dec_self_mask, cross_mask=dec_enc_mask)\n dec_out = self.projection(dec_out)\n\n # dec_out = self.end_conv1(dec_out)\n # dec_out = self.end_conv2(dec_out.transpose(2,1)).transpose(1,2)\n if self.output_attention:\n return dec_out[:, -self.pred_len:, :], attns\n return dec_out[:, -self.pred_len:, :] # [B, L, D]\n\n\nclass InformerStack(nn.Cell):\n \"\"\"InformerStack\"\"\"\n def __init__(self, enc_in, dec_in, c_out, out_len,\n factor=5, d_model=512, n_heads=8, e_layers=(3, 2, 1), d_layers=2, d_ff=512,\n dropout=0.0, attn='prob', embed='fixed', freq='h', activation='gelu',\n output_attention=False, distil=True, mix=True):\n super(InformerStack, self).__init__()\n self.pred_len = out_len\n self.attn = attn\n self.output_attention = output_attention\n\n # Encoding\n self.enc_embedding = DataEmbedding(enc_in, d_model, embed, freq, dropout)\n self.dec_embedding = DataEmbedding(dec_in, d_model, embed, freq, dropout)\n # Attention\n attn_f = ProbAttention if attn == 'prob' else FullAttention\n # Encoder\n\n inp_lens = list(range(len(e_layers))) # [0,1,2,...] you can customize here\n encoders = [\n Encoder(\n [\n EncoderLayer(\n AttentionLayer(\n attn_f(False, factor, attention_dropout=dropout, output_attention=output_attention),\n d_model, n_heads, mix=False),\n d_model,\n d_ff,\n dropout=dropout,\n activation=activation\n ) for l in range(el)\n ],\n [\n ConvLayer(\n d_model\n ) for l in range(el - 1)\n ] if distil else None,\n norm_layer=nn.LayerNorm(normalized_shape=d_model, epsilon=1e-05)\n ) for el in e_layers]\n self.encoder = EncoderStack(encoders, inp_lens)\n # Decoder\n self.decoder = Decoder(\n [\n DecoderLayer(\n AttentionLayer(attn_f(True, factor, attention_dropout=dropout, output_attention=False),\n d_model, n_heads, mix=mix),\n AttentionLayer(FullAttention(False, factor, attention_dropout=dropout, output_attention=False),\n d_model, n_heads, mix=False),\n d_model,\n d_ff,\n dropout=dropout,\n activation=activation,\n )\n for l in range(d_layers)\n ],\n norm_layer=nn.LayerNorm(normalized_shape=d_model, epsilon=1e-05)\n )\n # self.end_conv1 = nn.Conv1d(in_channels=label_len+out_len, out_channels=out_len, kernel_size=1, bias=True)\n # self.end_conv2 = nn.Conv1d(in_channels=d_model, out_channels=c_out, kernel_size=1, bias=True)\n self.projection = nn.Dense(in_channels=d_model, out_channels=c_out, has_bias=True)\n\n def construct(self, x_enc, x_mark_enc, x_dec, x_mark_dec,\n dec_self_mask=None, dec_enc_mask=None):\n \"\"\"build\"\"\"\n enc_out = self.enc_embedding(x_enc, x_mark_enc)\n enc_out, attns = self.encoder(enc_out)\n\n dec_out = self.dec_embedding(x_dec, x_mark_dec)\n dec_out = self.decoder(dec_out, enc_out, x_mask=dec_self_mask, cross_mask=dec_enc_mask)\n dec_out = self.projection(dec_out)\n\n # dec_out = self.end_conv1(dec_out)\n # dec_out = self.end_conv2(dec_out.transpose(2,1)).transpose(1,2)\n if self.output_attention:\n return dec_out[:, -self.pred_len:, :], attns\n return dec_out[:, -self.pred_len:, :] # [B, L, D]\n"}}},{"rowIdx":1078,"cells":{"text":{"kind":"string","value":"'use strict';\n\n// Declare app level module which depends on views, and components\nangular.module('myApp', [\n 'ngRoute',\n 'myApp.gameboard',\n 'mancalagamefactory',\n 'minmaxalgorithmfactory',\n 'playerfactory',\n 'uiComponents',\n 'myApp.view2',\n 'myApp.version'\n]).\nconfig(['$routeProvider', function ($routeProvider) {\n //console.log(GameLogic)\n $routeProvider.otherwise({redirectTo: '/gameboard'});\n}]);\n"}}},{"rowIdx":1079,"cells":{"text":{"kind":"string","value":" \r\n//snippet-sourcedescription:[<> demonstrates how to ...]\r\n//snippet-keyword:[JavaScript]\r\n//snippet-keyword:[Code Sample]\r\n//snippet-keyword:[Amazon S3]\r\n//snippet-service:[s3]\r\n//snippet-sourcetype:[full-example]\r\n//snippet-sourcedate:[2018-06-02]\r\n//snippet-sourceauthor:[daviddeyo]\r\n\r\n\r\n// Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.\r\n// Licensed under the Apache-2.0 License on an \"AS IS\" BASIS, WITHOUT WARRANTIES OF ANY KIND. \r\n\r\n// ABOUT THIS NODE.JS SAMPLE: This sample is part of the SDK for JavaScript Developer Guide topic at\r\n// https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/s3-example-creating-buckets.html\r\n// Load the AWS SDK for Node.js\r\nvar AWS = require('aws-sdk');\r\n// Set the region\r\nAWS.config.update({region: 'REGION'});\r\n\r\n// Create S3 service object\r\ns3 = new AWS.S3({apiVersion: '2006-03-01'});\r\n\r\n// Create params for S3.createBucket\r\nvar bucketParams = {\r\n Bucket : 'BUCKET_NAME',\r\n};\r\n\r\n// call S3 to delete the bucket\r\ns3.deleteBucket(bucketParams, function(err, data) {\r\n if (err) {\r\n console.log(\"Error\", err);\r\n } else {\r\n console.log(\"Success\", data);\r\n }\r\n});\r\n"}}},{"rowIdx":1080,"cells":{"text":{"kind":"string","value":"var mongoose = require('mongoose')\n , Sport = require('../../models/sport')\n , Team = require('../../models/team')\n , Set = require('../../models/set')\n , Game = require('../../models/game')\n\n , Promise = require('bluebird')\n;\n\n// Shuffle an array and return it\nfunction shuffle(o) { //v1.0\n for(var j, x, i = o.length; i; j = Math.floor(Math.random() * i), x = o[--i], o[i] = o[j], o[j] = x);\n return o;\n};\n\n// Create a set of games, given the sportID, the list of all team documents,\n// and the index label (week) for the set.\n// Returns a promise\nfunction createSet(conn, sportID, teams, week) {\n var promise = new Promise(function (resolve, reject) {\n\n var gameArray = [];\n\n setTitle = 'Week ' + String(week);\n shuffledList = shuffle(teams);\n\n for (var j=0; j 1);\r\n\r\n this.canvas.width = this.widths[this.zoom];\r\n this.canvas.height = this.heights[this.zoom];\r\n\r\n\r\n for (var y = 0; y < this.tilesH[zoom]; y++) {\r\n for (var x = 0; x < this.tilesW[zoom]; x++) {\r\n\r\n var url = 'https://geo0.ggpht.com/cbk?cb_client=maps_sv.tactile&authuser=0&hl=en&panoid=' + id + '&output=tile&x=' + x + '&y=' + y + '&zoom=' + this.zoom + '&nbt&fover=2';\r\n //var url = 'https://cbks2.google.com/cbk?cb_client=maps_sv.tactile&authuser=0&hl=en&panoid=' + id + '&output=tile&zoom=' + zoom + '&x=' + x + '&y=' + y + '&' + Date.now();\r\n\r\n this.stitcher.addTileTask({\r\n url: url,\r\n x: x * this.metadata.tiles.tileSize.width,\r\n y: y * this.metadata.tiles.tileSize.height\r\n });\r\n }\r\n }\r\n \r\n \r\n this.dispatchEvent({ type: 'data', message: result });\r\n\r\n this.stitcher.processQueue();\r\n console.log( 'Panorama metadata:', result );\r\n\r\n }.bind(this));\r\n }\r\n\r\n PANOMNOM.GoogleStreetViewLoader.prototype.loadFromLocation = function(location, zoom) {\r\n\r\n this.getIdByLocation(\r\n location,\r\n function(id) {\r\n this.load(id, zoom);\r\n }.bind(this)\r\n );\r\n\r\n }\r\n\r\n function getQueryVariable(query, variable) {\r\n\r\n var vars = query.split('&');\r\n for (var i = 0; i < vars.length; i++) {\r\n var pair = vars[i].split('=');\r\n if (decodeURIComponent(pair[0]) == variable) {\r\n return decodeURIComponent(pair[1]);\r\n }\r\n }\r\n //console.log('Query variable %s not found', variable);\r\n }\r\n\r\n\r\n PANOMNOM.GoogleStreetViewLoader.prototype.loadFromURL = function(url, zoom) {\r\n\r\n if (url.indexOf('panoid') != -1) {\r\n // https://maps.google.com/?ll=40.741352,-73.986096&spn=0.002248,0.004372&t=m&z=18&layer=c&cbll=40.741825,-73.986315&panoid=NOMYgwQ4YfVqMJogsbMcrg&cbp=12,208.53,,0,6.03\r\n var panoId = getQueryVariable(url, 'panoid');\r\n this.load(panoId, 2);\r\n } else if (url.indexOf('!1s') != -1) {\r\n var pos = url.indexOf('!1s') + 3;\r\n var npos = url.substr(pos).indexOf('!');\r\n var panoId = url.substr(pos, npos);\r\n this.load(panoId, zoom);\r\n // https://www.google.com/maps/preview?authuser=0#!q=Eleanor+Roosevelt+Playground&data=!1m8!1m3!1d3!2d-73.935845!3d40.693159!2m2!1f170.65!2f90!4f75!2m4!1e1!2m2!1s0Zn7rPD9Q4KOhRyEugT1qA!2e0!4m15!2m14!1m13!1s0x0%3A0x63459d24c457bec7!3m8!1m3!1d11440!2d-73.9085059!3d40.6833656!3m2!1i1329!2i726!4f13.1!4m2!3d40.6929389!4d-73.9357996&fid=5\r\n } else {\r\n this.dispatchEvent({ type: 'error', message: 'can\\'t find panorama id in specified URL' });\r\n }\r\n\r\n }\r\n\r\n PANOMNOM.GoogleStreetViewLoader.prototype.getIdByLocation = function(location, callback) {\r\n\r\n /*PANOMNOM.GoogleStreetViewService.getPanoramaByLocation( location, 50, function( result, status ) {\r\n\r\n if( status === google.maps.StreetViewStatus.OK ) {\r\n\r\n console.log( result );\r\n c( result.location.pano );\r\n }\r\n\r\n } );\r\n return;*/\r\n\r\n var url = 'https://cbks0.google.com/cbk?cb_client=maps_sv.tactile&authuser=0&hl=en&output=polygon&it=1%3A1&rank=closest&ll=' + location.lat() + ',' + location.lng() + '&radius=50';\r\n\r\n var http_request = new XMLHttpRequest();\r\n http_request.open('GET', url, true);\r\n http_request.onreadystatechange = function() {\r\n if (http_request.readyState == 4 && http_request.status == 200) {\r\n var data = JSON.parse(http_request.responseText);\r\n //console.log( data );\r\n if (!data || !data.result || data.result.length === 0) {\r\n this.error('No panoramas around location');\r\n } else {\r\n callback(data.result[0].id);\r\n }\r\n }\r\n }.bind(this);\r\n http_request.send(null);\r\n\r\n }\r\n\r\n var Base64 = {\r\n _keyStr: \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\",\r\n encode: function(e) {\r\n var t = \"\";\r\n var n, r, i, s, o, u, a;\r\n var f = 0;\r\n e = Base64._utf8_encode(e);\r\n while (f < e.length) {\r\n n = e.charCodeAt(f++);\r\n r = e.charCodeAt(f++);\r\n i = e.charCodeAt(f++);\r\n s = n >> 2;\r\n o = (n & 3) << 4 | r >> 4;\r\n u = (r & 15) << 2 | i >> 6;\r\n a = i & 63;\r\n if (isNaN(r)) { u = a = 64 } else if (isNaN(i)) { a = 64 } t = t + this._keyStr.charAt(s) + this._keyStr.charAt(o) + this._keyStr.charAt(u) + this._keyStr.charAt(a)\r\n }\r\n return t\r\n },\r\n decode: function(e) {\r\n var t = \"\";\r\n var n, r, i;\r\n var s, o, u, a;\r\n var f = 0;\r\n e = e.replace(/[^A-Za-z0-9\\+\\/\\=]/g, \"\");\r\n while (f < e.length) {\r\n s = this._keyStr.indexOf(e.charAt(f++));\r\n o = this._keyStr.indexOf(e.charAt(f++));\r\n u = this._keyStr.indexOf(e.charAt(f++));\r\n a = this._keyStr.indexOf(e.charAt(f++));\r\n n = s << 2 | o >> 4;\r\n r = (o & 15) << 4 | u >> 2;\r\n i = (u & 3) << 6 | a;\r\n t = t + String.fromCharCode(n);\r\n if (u != 64) { t = t + String.fromCharCode(r) }\r\n if (a != 64) { t = t + String.fromCharCode(i) }\r\n }\r\n t = Base64._utf8_decode(t);\r\n return t\r\n },\r\n _utf8_encode: function(e) {\r\n e = e.replace(/\\r\\n/g, \"\\n\");\r\n var t = \"\";\r\n for (var n = 0; n < e.length; n++) {\r\n var r = e.charCodeAt(n);\r\n if (r < 128) { t += String.fromCharCode(r) } else if (r > 127 && r < 2048) {\r\n t += String.fromCharCode(r >> 6 | 192);\r\n t += String.fromCharCode(r & 63 | 128)\r\n } else {\r\n t += String.fromCharCode(r >> 12 | 224);\r\n t += String.fromCharCode(r >> 6 & 63 | 128);\r\n t += String.fromCharCode(r & 63 | 128)\r\n }\r\n }\r\n return t\r\n },\r\n _utf8_decode: function(e) {\r\n var t = \"\";\r\n var n = 0;\r\n var r = c1 = c2 = 0;\r\n while (n < e.length) {\r\n r = e.charCodeAt(n);\r\n if (r < 128) {\r\n t += String.fromCharCode(r);\r\n n++\r\n } else if (r > 191 && r < 224) {\r\n c2 = e.charCodeAt(n + 1);\r\n t += String.fromCharCode((r & 31) << 6 | c2 & 63);\r\n n += 2\r\n } else {\r\n c2 = e.charCodeAt(n + 1);\r\n c3 = e.charCodeAt(n + 2);\r\n t += String.fromCharCode((r & 15) << 12 | (c2 & 63) << 6 | c3 & 63);\r\n n += 3\r\n }\r\n }\r\n return t\r\n }\r\n }\r\n\r\n PANOMNOM.GoogleStreetViewLoader.prototype.extractDepthData = function(map) {\r\n\r\n var rawDepthMap = map;\r\n\r\n while (rawDepthMap.length % 4 != 0)\r\n rawDepthMap += '=';\r\n\r\n // Replace '-' by '+' and '_' by '/'\r\n rawDepthMap = rawDepthMap.replace(/-/g, '+');\r\n rawDepthMap = rawDepthMap.replace(/_/g, '/');\r\n\r\n document.body.textContent = rawDepthMap;\r\n\r\n var decompressed = zpipe.inflate($.base64.decode(rawDepthMap));\r\n\r\n var depthMap = new Uint8Array(decompressed.length);\r\n for (i = 0; i < decompressed.length; ++i)\r\n depthMap[i] = decompressed.charCodeAt(i);\r\n console.log(depthMap);\r\n\r\n }\r\n\r\n PANOMNOM.GooglePhotoSphereLoader = function() {\r\n\r\n PANOMNOM.Loader.call(this);\r\n\r\n this.service = PANOMNOM.Utils.getGoogleStreetViewService();\r\n\r\n }\r\n\r\n PANOMNOM.GooglePhotoSphereLoader.prototype = Object.create(PANOMNOM.Loader.prototype);\r\n\r\n PANOMNOM.GooglePhotoSphereLoader.prototype.loadFromURL = function(url, zoom) {\r\n\r\n if (url.indexOf('!1s') != -1) {\r\n var pos = url.indexOf('!1s') + 3;\r\n var npos = url.substr(pos).indexOf('!');\r\n var panoId = url.substr(pos, npos);\r\n this.load(panoId, zoom);\r\n // https://www.google.com/maps/preview?authuser=0#!q=Eleanor+Roosevelt+Playground&data=!1m8!1m3!1d3!2d-73.935845!3d40.693159!2m2!1f170.65!2f90!4f75!2m4!1e1!2m2!1s0Zn7rPD9Q4KOhRyEugT1qA!2e0!4m15!2m14!1m13!1s0x0%3A0x63459d24c457bec7!3m8!1m3!1d11440!2d-73.9085059!3d40.6833656!3m2!1i1329!2i726!4f13.1!4m2!3d40.6929389!4d-73.9357996&fid=5\r\n }\r\n\r\n };\r\n\r\n PANOMNOM.GooglePhotoSphereLoader.prototype.load = function(id, zoom) {\r\n\r\n //console.log( 'Loading ' + id + ' ' + zoom );\r\n\r\n this.zoom = zoom;\r\n this.panoId = id;\r\n\r\n this.service.getPanoramaById(id, function(result, status) {\r\n\r\n if (result === null) {\r\n this.error('Can\\'t load panorama information');\r\n return;\r\n }\r\n\r\n var nearestZoom = Math.floor(Math.log(result.tiles.worldSize.width / result.tiles.tileSize.width) / Math.log(2));\r\n\r\n this.canvas.width = result.tiles.worldSize.width * Math.pow(2, zoom - 1) / Math.pow(2, nearestZoom);\r\n this.canvas.height = result.tiles.worldSize.height * Math.pow(2, zoom - 1) / Math.pow(2, nearestZoom);\r\n\r\n var w = this.canvas.width / result.tiles.tileSize.width,\r\n h = this.canvas.height / result.tiles.tileSize.height;\r\n\r\n //console.log(nearestZoom, w, h, result.tiles.worldSize.width, result.tiles.worldSize.height, this.canvas.width, this.canvas.height );\r\n\r\n for (var y = 0; y < h; y++) {\r\n for (var x = 0; x < w; x++) {\r\n\r\n var url = 'https://geo1.ggpht.com/cbk?cb_client=maps_sv.tactile&authuser=0&hl=en&panoid=' + id + '&output=tile&x=' + x + '&y=' + y + '&zoom=' + zoom + '&nbt&fover=2';\r\n\r\n this.stitcher.addTileTask({\r\n\r\n url: url,\r\n x: x * result.tiles.tileSize.width,\r\n y: y * result.tiles.tileSize.height,\r\n\r\n });\r\n }\r\n }\r\n\r\n this.stitcher.processQueue();\r\n\r\n //console.log( result );\r\n\r\n }.bind(this));\r\n\r\n\r\n }\r\n\r\n window.PANOMNOM = PANOMNOM;\r\n\r\n})();\r\n"}}},{"rowIdx":1083,"cells":{"text":{"kind":"string","value":"webpackJsonp([0],{\"++K3\":function(e,t){var n,i,r,o,s,a,l,u,c,d,f,h,p,m,v,g=!1;function y(){if(!g){g=!0;var e=navigator.userAgent,t=/(?:MSIE.(\\d+\\.\\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\\d+\\.\\d+))|(?:Opera(?:.+Version.|.)(\\d+\\.\\d+))|(?:AppleWebKit.(\\d+(?:\\.\\d+)?))|(?:Trident\\/\\d+\\.\\d+.*rv:(\\d+\\.\\d+))/.exec(e),y=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(h=/\\b(iPhone|iP[ao]d)/.exec(e),p=/\\b(iP[ao]d)/.exec(e),d=/Android/i.exec(e),m=/FBAN\\/\\w+;/i.exec(e),v=/Mobile/i.exec(e),f=!!/Win64/.exec(e),t){(n=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN)&&document&&document.documentMode&&(n=document.documentMode);var b=/(?:Trident\\/(\\d+.\\d+))/.exec(e);a=b?parseFloat(b[1])+4:n,i=t[2]?parseFloat(t[2]):NaN,r=t[3]?parseFloat(t[3]):NaN,(o=t[4]?parseFloat(t[4]):NaN)?(t=/(?:Chrome\\/(\\d+\\.\\d+))/.exec(e),s=t&&t[1]?parseFloat(t[1]):NaN):s=NaN}else n=i=r=s=o=NaN;if(y){if(y[1]){var _=/(?:Mac OS X (\\d+(?:[._]\\d+)?))/.exec(e);l=!_||parseFloat(_[1].replace(\"_\",\".\"))}else l=!1;u=!!y[2],c=!!y[3]}else l=u=c=!1}}var b={ie:function(){return y()||n},ieCompatibilityMode:function(){return y()||a>n},ie64:function(){return b.ie()&&f},firefox:function(){return y()||i},opera:function(){return y()||r},webkit:function(){return y()||o},safari:function(){return b.webkit()},chrome:function(){return y()||s},windows:function(){return y()||u},osx:function(){return y()||l},linux:function(){return y()||c},iphone:function(){return y()||h},mobile:function(){return y()||h||p||d||v},nativeApp:function(){return y()||m},android:function(){return y()||d},ipad:function(){return y()||p}};e.exports=b},\"+E39\":function(e,t,n){e.exports=!n(\"S82l\")(function(){return 7!=Object.defineProperty({},\"a\",{get:function(){return 7}}).a})},\"+ZMJ\":function(e,t,n){var i=n(\"lOnJ\");e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},\"+tPU\":function(e,t,n){n(\"xGkn\");for(var i=n(\"7KvD\"),r=n(\"hJx8\"),o=n(\"/bQp\"),s=n(\"dSzd\")(\"toStringTag\"),a=\"CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList\".split(\",\"),l=0;l-1}var o={name:\"router-view\",functional:!0,props:{name:{type:String,default:\"default\"}},render:function(e,t){var n=t.props,i=t.children,r=t.parent,o=t.data;o.routerView=!0;for(var s=r.$createElement,a=n.name,l=r.$route,u=r._routerViewCache||(r._routerViewCache={}),c=0,d=!1;r&&r._routerRoot!==r;)r.$vnode&&r.$vnode.data.routerView&&c++,r._inactive&&(d=!0),r=r.$parent;if(o.routerViewDepth=c,d)return s(u[a],o,i);var f=l.matched[c];if(!f)return u[a]=null,s();var h=u[a]=f.components[a];o.registerRouteInstance=function(e,t){var n=f.instances[a];(t&&n!==e||!t&&n===e)&&(f.instances[a]=t)},(o.hook||(o.hook={})).prepatch=function(e,t){f.instances[a]=t.componentInstance};var p=o.props=function(e,t){switch(typeof t){case\"undefined\":return;case\"object\":return t;case\"function\":return t(e);case\"boolean\":return t?e.params:void 0;default:0}}(l,f.props&&f.props[a]);if(p){p=o.props=function(e,t){for(var n in t)e[n]=t[n];return e}({},p);var m=o.attrs=o.attrs||{};for(var v in p)h.props&&v in h.props||(m[v]=p[v],delete p[v])}return s(h,o,i)}};var s=/[!'()*]/g,a=function(e){return\"%\"+e.charCodeAt(0).toString(16)},l=/%2C/g,u=function(e){return encodeURIComponent(e).replace(s,a).replace(l,\",\")},c=decodeURIComponent;function d(e){var t={};return(e=e.trim().replace(/^(\\?|#|&)/,\"\"))?(e.split(\"&\").forEach(function(e){var n=e.replace(/\\+/g,\" \").split(\"=\"),i=c(n.shift()),r=n.length>0?c(n.join(\"=\")):null;void 0===t[i]?t[i]=r:Array.isArray(t[i])?t[i].push(r):t[i]=[t[i],r]}),t):t}function f(e){var t=e?Object.keys(e).map(function(t){var n=e[t];if(void 0===n)return\"\";if(null===n)return u(t);if(Array.isArray(n)){var i=[];return n.forEach(function(e){void 0!==e&&(null===e?i.push(u(t)):i.push(u(t)+\"=\"+u(e)))}),i.join(\"&\")}return u(t)+\"=\"+u(n)}).filter(function(e){return e.length>0}).join(\"&\"):null;return t?\"?\"+t:\"\"}var h=/\\/?$/;function p(e,t,n,i){var r=i&&i.options.stringifyQuery,o=t.query||{};try{o=m(o)}catch(e){}var s={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||\"/\",hash:t.hash||\"\",query:o,params:t.params||{},fullPath:g(t,r),matched:e?function(e){var t=[];for(;e;)t.unshift(e),e=e.parent;return t}(e):[]};return n&&(s.redirectedFrom=g(n,r)),Object.freeze(s)}function m(e){if(Array.isArray(e))return e.map(m);if(e&&\"object\"==typeof e){var t={};for(var n in e)t[n]=m(e[n]);return t}return e}var v=p(null,{path:\"/\"});function g(e,t){var n=e.path,i=e.query;void 0===i&&(i={});var r=e.hash;return void 0===r&&(r=\"\"),(n||\"/\")+(t||f)(i)+r}function y(e,t){return t===v?e===t:!!t&&(e.path&&t.path?e.path.replace(h,\"\")===t.path.replace(h,\"\")&&e.hash===t.hash&&b(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&b(e.query,t.query)&&b(e.params,t.params)))}function b(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var n=Object.keys(e),i=Object.keys(t);return n.length===i.length&&n.every(function(n){var i=e[n],r=t[n];return\"object\"==typeof i&&\"object\"==typeof r?b(i,r):String(i)===String(r)})}var _,x=[String,Object],C=[String,Array],w={name:\"router-link\",props:{to:{type:x,required:!0},tag:{type:String,default:\"a\"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:C,default:\"click\"}},render:function(e){var t=this,n=this.$router,i=this.$route,r=n.resolve(this.to,i,this.append),o=r.location,s=r.route,a=r.href,l={},u=n.options.linkActiveClass,c=n.options.linkExactActiveClass,d=null==u?\"router-link-active\":u,f=null==c?\"router-link-exact-active\":c,m=null==this.activeClass?d:this.activeClass,v=null==this.exactActiveClass?f:this.exactActiveClass,g=o.path?p(null,o,null,n):s;l[v]=y(i,g),l[m]=this.exact?l[v]:function(e,t){return 0===e.path.replace(h,\"/\").indexOf(t.path.replace(h,\"/\"))&&(!t.hash||e.hash===t.hash)&&function(e,t){for(var n in t)if(!(n in e))return!1;return!0}(e.query,t.query)}(i,g);var b=function(e){k(e)&&(t.replace?n.replace(o):n.push(o))},x={click:k};Array.isArray(this.event)?this.event.forEach(function(e){x[e]=b}):x[this.event]=b;var C={class:l};if(\"a\"===this.tag)C.on=x,C.attrs={href:a};else{var w=function e(t){if(t)for(var n,i=0;i=0&&(t=e.slice(i),e=e.slice(0,i));var r=e.indexOf(\"?\");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{path:e,query:n,hash:t}}(r.path||\"\"),l=t&&t.path||\"/\",u=a.path?M(a.path,l,n||r.append):l,c=function(e,t,n){void 0===t&&(t={});var i,r=n||d;try{i=r(e||\"\")}catch(e){i={}}for(var o in t)i[o]=t[o];return i}(a.query,r.query,i&&i.options.parseQuery),f=r.hash||a.hash;return f&&\"#\"!==f.charAt(0)&&(f=\"#\"+f),{_normalized:!0,path:u,query:c,hash:f}}function Y(e,t){for(var n in t)e[n]=t[n];return e}function X(e,t){var n=U(e),i=n.pathList,r=n.pathMap,o=n.nameMap;function s(e,n,s){var a=G(e,n,!1,t),u=a.name;if(u){var c=o[u];if(!c)return l(null,a);var d=c.regex.keys.filter(function(e){return!e.optional}).map(function(e){return e.name});if(\"object\"!=typeof a.params&&(a.params={}),n&&\"object\"==typeof n.params)for(var f in n.params)!(f in a.params)&&d.indexOf(f)>-1&&(a.params[f]=n.params[f]);if(c)return a.path=K(c.path,a.params),l(c,a,s)}else if(a.path){a.params={};for(var h=0;h=e.length?n():e[r]?t(e[r],function(){i(r+1)}):i(r+1)};i(0)}function me(e){return function(t,n,i){var o=!1,s=0,a=null;ve(e,function(e,t,n,l){if(\"function\"==typeof e&&void 0===e.cid){o=!0,s++;var u,c=be(function(t){var r;((r=t).__esModule||ye&&\"Module\"===r[Symbol.toStringTag])&&(t=t.default),e.resolved=\"function\"==typeof t?t:_.extend(t),n.components[l]=t,--s<=0&&i()}),d=be(function(e){var t=\"Failed to resolve async component \"+l+\": \"+e;a||(a=r(e)?e:new Error(t),i(a))});try{u=e(c,d)}catch(e){d(e)}if(u)if(\"function\"==typeof u.then)u.then(c,d);else{var f=u.component;f&&\"function\"==typeof f.then&&f.then(c,d)}}}),o||i()}}function ve(e,t){return ge(e.map(function(e){return Object.keys(e.components).map(function(n){return t(e.components[n],e.instances[n],e,n)})}))}function ge(e){return Array.prototype.concat.apply([],e)}var ye=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.toStringTag;function be(e){var t=!1;return function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];if(!t)return t=!0,e.apply(this,n)}}var _e=function(e,t){this.router=e,this.base=function(e){if(!e)if($){var t=document.querySelector(\"base\");e=(e=t&&t.getAttribute(\"href\")||\"/\").replace(/^https?:\\/\\/[^\\/]+/,\"\")}else e=\"/\";\"/\"!==e.charAt(0)&&(e=\"/\"+e);return e.replace(/\\/$/,\"\")}(t),this.current=v,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function xe(e,t,n,i){var r=ve(e,function(e,i,r,o){var s=function(e,t){\"function\"!=typeof e&&(e=_.extend(e));return e.options[t]}(e,t);if(s)return Array.isArray(s)?s.map(function(e){return n(e,i,r,o)}):n(s,i,r,o)});return ge(i?r.reverse():r)}function Ce(e,t){if(t)return function(){return e.apply(t,arguments)}}_e.prototype.listen=function(e){this.cb=e},_e.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},_e.prototype.onError=function(e){this.errorCbs.push(e)},_e.prototype.transitionTo=function(e,t,n){var i=this,r=this.router.match(e,this.current);this.confirmTransition(r,function(){i.updateRoute(r),t&&t(r),i.ensureURL(),i.ready||(i.ready=!0,i.readyCbs.forEach(function(e){e(r)}))},function(e){n&&n(e),e&&!i.ready&&(i.ready=!0,i.readyErrorCbs.forEach(function(t){t(e)}))})},_e.prototype.confirmTransition=function(e,t,n){var o=this,s=this.current,a=function(e){r(e)&&(o.errorCbs.length?o.errorCbs.forEach(function(t){t(e)}):(i(),console.error(e))),n&&n(e)};if(y(e,s)&&e.matched.length===s.matched.length)return this.ensureURL(),a();var l=function(e,t){var n,i=Math.max(e.length,t.length);for(n=0;n=0?t.slice(0,n):t)+\"#\"+e}function Oe(e){ae?fe(Ee(e)):window.location.hash=e}function Te(e){ae?he(Ee(e)):window.location.replace(Ee(e))}var De=function(e){function t(t,n){e.call(this,t,n),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,n){var i=this;this.transitionTo(e,function(e){i.stack=i.stack.slice(0,i.index+1).concat(e),i.index++,t&&t(e)},n)},t.prototype.replace=function(e,t,n){var i=this;this.transitionTo(e,function(e){i.stack=i.stack.slice(0,i.index).concat(e),t&&t(e)},n)},t.prototype.go=function(e){var t=this,n=this.index+e;if(!(n<0||n>=this.stack.length)){var i=this.stack[n];this.confirmTransition(i,function(){t.index=n,t.updateRoute(i)})}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:\"/\"},t.prototype.ensureURL=function(){},t}(_e),Pe=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=X(e.routes||[],this);var t=e.mode||\"hash\";switch(this.fallback=\"history\"===t&&!ae&&!1!==e.fallback,this.fallback&&(t=\"hash\"),$||(t=\"abstract\"),this.mode=t,t){case\"history\":this.history=new we(this,e.base);break;case\"hash\":this.history=new Se(this,e.base,this.fallback);break;case\"abstract\":this.history=new De(this,e.base);break;default:0}},Ne={currentRoute:{configurable:!0}};function Ie(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}Pe.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},Ne.currentRoute.get=function(){return this.history&&this.history.current},Pe.prototype.init=function(e){var t=this;if(this.apps.push(e),!this.app){this.app=e;var n=this.history;if(n instanceof we)n.transitionTo(n.getCurrentLocation());else if(n instanceof Se){var i=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),i,i)}n.listen(function(e){t.apps.forEach(function(t){t._route=e})})}},Pe.prototype.beforeEach=function(e){return Ie(this.beforeHooks,e)},Pe.prototype.beforeResolve=function(e){return Ie(this.resolveHooks,e)},Pe.prototype.afterEach=function(e){return Ie(this.afterHooks,e)},Pe.prototype.onReady=function(e,t){this.history.onReady(e,t)},Pe.prototype.onError=function(e){this.history.onError(e)},Pe.prototype.push=function(e,t,n){this.history.push(e,t,n)},Pe.prototype.replace=function(e,t,n){this.history.replace(e,t,n)},Pe.prototype.go=function(e){this.history.go(e)},Pe.prototype.back=function(){this.go(-1)},Pe.prototype.forward=function(){this.go(1)},Pe.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map(function(e){return Object.keys(e.components).map(function(t){return e.components[t]})})):[]},Pe.prototype.resolve=function(e,t,n){var i=G(e,t||this.history.current,n,this),r=this.match(i,t),o=r.redirectedFrom||r.fullPath;return{location:i,route:r,href:function(e,t,n){var i=\"hash\"===n?\"#\"+t:t;return e?E(e+\"/\"+i):i}(this.history.base,o,this.mode),normalizedTo:i,resolved:r}},Pe.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==v&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Pe.prototype,Ne),Pe.install=S,Pe.version=\"3.0.1\",$&&window.Vue&&window.Vue.use(Pe),t.a=Pe},\"02w1\":function(e,t,n){\"use strict\";t.__esModule=!0;var i=\"undefined\"==typeof window,r=function(){if(!i){var e=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(e){return window.setTimeout(e,20)};return function(t){return e(t)}}}(),o=function(){if(!i){var e=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.clearTimeout;return function(t){return e(t)}}}(),s=function(e){var t=e.__resizeTrigger__,n=t.firstElementChild,i=t.lastElementChild,r=n.firstElementChild;i.scrollLeft=i.scrollWidth,i.scrollTop=i.scrollHeight,r.style.width=n.offsetWidth+1+\"px\",r.style.height=n.offsetHeight+1+\"px\",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},a=function(e){var t=this;s(this),this.__resizeRAF__&&o(this.__resizeRAF__),this.__resizeRAF__=r(function(){var n;((n=t).offsetWidth!==n.__resizeLast__.width||n.offsetHeight!==n.__resizeLast__.height)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})},l=i?{}:document.attachEvent,u=\"Webkit Moz O ms\".split(\" \"),c=\"webkitAnimationStart animationstart oAnimationStart MSAnimationStart\".split(\" \"),d=!1,f=\"\",h=\"animationstart\";if(!l&&!i){var p=document.createElement(\"fakeelement\");if(void 0!==p.style.animationName&&(d=!0),!1===d)for(var m=\"\",v=0;v div, .contract-trigger:before { content: \" \"; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1 }\\n .resize-triggers > div { background: #eee; overflow: auto; }\\n .contract-trigger:before { width: 200%; height: 200%; }',t=document.head||document.getElementsByTagName(\"head\")[0],n=document.createElement(\"style\");n.type=\"text/css\",n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),t.appendChild(n),g=!0}}(),e.__resizeLast__={},e.__resizeListeners__=[];var n=e.__resizeTrigger__=document.createElement(\"div\");n.className=\"resize-triggers\",n.innerHTML='
',e.appendChild(n),s(e),e.addEventListener(\"scroll\",a,!0),h&&n.addEventListener(h,function(t){\"resizeanim\"===t.animationName&&s(e)})}e.__resizeListeners__.push(t)}},t.removeResizeListener=function(e,t){e&&e.__resizeListeners__&&(l?e.detachEvent(\"onresize\",t):(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||(e.removeEventListener(\"scroll\",a),e.__resizeTrigger__=!e.removeChild(e.__resizeTrigger__))))}},\"06OY\":function(e,t,n){var i=n(\"3Eo+\")(\"meta\"),r=n(\"EqjI\"),o=n(\"D2L2\"),s=n(\"evD5\").f,a=0,l=Object.isExtensible||function(){return!0},u=!n(\"S82l\")(function(){return l(Object.preventExtensions({}))}),c=function(e){s(e,i,{value:{i:\"O\"+ ++a,w:{}}})},d=e.exports={KEY:i,NEED:!1,fastKey:function(e,t){if(!r(e))return\"symbol\"==typeof e?e:(\"string\"==typeof e?\"S\":\"P\")+e;if(!o(e,i)){if(!l(e))return\"F\";if(!t)return\"E\";c(e)}return e[i].i},getWeak:function(e,t){if(!o(e,i)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[i].w},onFreeze:function(e){return u&&d.NEED&&l(e)&&!o(e,i)&&c(e),e}}},\"0kY3\":function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,\"a\",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=\"/dist/\",n(n.s=117)}({0:function(e,t){e.exports=function(e,t,n,i,r,o){var s,a=e=e||{},l=typeof e.default;\"object\"!==l&&\"function\"!==l||(s=e,a=e.default);var u,c=\"function\"==typeof a?a.options:a;if(t&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),r&&(c._scopeId=r),o?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||\"undefined\"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=u):i&&(u=i),u){var d=c.functional,f=d?c.render:c.beforeCreate;d?(c._injectStyles=u,c.render=function(e,t){return u.call(t),f(e,t)}):c.beforeCreate=f?[].concat(f,u):[u]}return{esModule:s,exports:a,options:c}}},117:function(e,t,n){e.exports=n(118)},118:function(e,t,n){\"use strict\";t.__esModule=!0;var i,r=n(119),o=(i=r)&&i.__esModule?i:{default:i};o.default.install=function(e){e.component(o.default.name,o.default)},t.default=o.default},119:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var i=n(120),r=n.n(i),o=n(121),s=n(0)(r.a,o.a,!1,null,null,null);t.default=s.exports},120:function(e,t,n){\"use strict\";t.__esModule=!0;var i=s(n(6)),r=s(n(19)),o=s(n(23));function s(e){return e&&e.__esModule?e:{default:e}}t.default={name:\"ElInputNumber\",mixins:[(0,r.default)(\"input\")],inject:{elForm:{default:\"\"},elFormItem:{default:\"\"}},directives:{repeatClick:o.default},components:{ElInput:i.default},props:{step:{type:Number,default:1},max:{type:Number,default:1/0},min:{type:Number,default:-1/0},value:{},disabled:Boolean,size:String,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:\"\"},name:String,label:String},data:function(){return{currentValue:0}},watch:{value:{immediate:!0,handler:function(e){var t=void 0===e?e:Number(e);void 0!==t&&isNaN(t)||(t>=this.max&&(t=this.max),t<=this.min&&(t=this.min),this.currentValue=t,this.$emit(\"input\",t))}}},computed:{minDisabled:function(){return this._decrease(this.value,this.step)this.max},precision:function(){var e=this.value,t=this.step,n=this.getPrecision;return Math.max(n(e),n(t))},controlsAtRight:function(){return\"right\"===this.controlsPosition},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},inputNumberSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputNumberDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},methods:{toPrecision:function(e,t){return void 0===t&&(t=this.precision),parseFloat(parseFloat(Number(e).toFixed(t)))},getPrecision:function(e){if(void 0===e)return 0;var t=e.toString(),n=t.indexOf(\".\"),i=0;return-1!==n&&(i=t.length-n-1),i},_increase:function(e,t){if(\"number\"!=typeof e&&void 0!==e)return this.currentValue;var n=Math.pow(10,this.precision);return this.toPrecision((n*e+n*t)/n)},_decrease:function(e,t){if(\"number\"!=typeof e&&void 0!==e)return this.currentValue;var n=Math.pow(10,this.precision);return this.toPrecision((n*e-n*t)/n)},increase:function(){if(!this.inputNumberDisabled&&!this.maxDisabled){var e=this.value||0,t=this._increase(e,this.step);this.setCurrentValue(t)}},decrease:function(){if(!this.inputNumberDisabled&&!this.minDisabled){var e=this.value||0,t=this._decrease(e,this.step);this.setCurrentValue(t)}},handleBlur:function(e){this.$emit(\"blur\",e),this.$refs.input.setCurrentValue(this.currentValue)},handleFocus:function(e){this.$emit(\"focus\",e)},setCurrentValue:function(e){var t=this.currentValue;e>=this.max&&(e=this.max),e<=this.min&&(e=this.min),t!==e?(this.$emit(\"change\",e,t),this.$emit(\"input\",e),this.currentValue=e):this.$refs.input.setCurrentValue(this.currentValue)},handleInputChange:function(e){var t=\"\"===e?void 0:Number(e);isNaN(t)&&\"\"!==e||this.setCurrentValue(t)}},mounted:function(){var e=this.$refs.input.$refs.input;e.setAttribute(\"role\",\"spinbutton\"),e.setAttribute(\"aria-valuemax\",this.max),e.setAttribute(\"aria-valuemin\",this.min),e.setAttribute(\"aria-valuenow\",this.currentValue),e.setAttribute(\"aria-disabled\",this.inputNumberDisabled)},updated:function(){this.$refs.input.$refs.input.setAttribute(\"aria-valuenow\",this.currentValue)}}},121:function(e,t,n){\"use strict\";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(\"div\",{class:[\"el-input-number\",e.inputNumberSize?\"el-input-number--\"+e.inputNumberSize:\"\",{\"is-disabled\":e.inputNumberDisabled},{\"is-without-controls\":!e.controls},{\"is-controls-right\":e.controlsAtRight}],on:{dragstart:function(e){e.preventDefault()}}},[e.controls?n(\"span\",{directives:[{name:\"repeat-click\",rawName:\"v-repeat-click\",value:e.decrease,expression:\"decrease\"}],staticClass:\"el-input-number__decrease\",class:{\"is-disabled\":e.minDisabled},attrs:{role:\"button\"},on:{keydown:function(t){if(!(\"button\"in t)&&e._k(t.keyCode,\"enter\",13,t.key))return null;e.decrease(t)}}},[n(\"i\",{class:\"el-icon-\"+(e.controlsAtRight?\"arrow-down\":\"minus\")})]):e._e(),e.controls?n(\"span\",{directives:[{name:\"repeat-click\",rawName:\"v-repeat-click\",value:e.increase,expression:\"increase\"}],staticClass:\"el-input-number__increase\",class:{\"is-disabled\":e.maxDisabled},attrs:{role:\"button\"},on:{keydown:function(t){if(!(\"button\"in t)&&e._k(t.keyCode,\"enter\",13,t.key))return null;e.increase(t)}}},[n(\"i\",{class:\"el-icon-\"+(e.controlsAtRight?\"arrow-up\":\"plus\")})]):e._e(),n(\"el-input\",{ref:\"input\",attrs:{value:e.currentValue,disabled:e.inputNumberDisabled,size:e.inputNumberSize,max:e.max,min:e.min,name:e.name,label:e.label},on:{blur:e.handleBlur,focus:e.handleFocus,change:e.handleInputChange},nativeOn:{keydown:[function(t){if(!(\"button\"in t)&&e._k(t.keyCode,\"up\",38,t.key))return null;t.preventDefault(),e.increase(t)},function(t){if(!(\"button\"in t)&&e._k(t.keyCode,\"down\",40,t.key))return null;t.preventDefault(),e.decrease(t)}]}},[e.$slots.prepend?n(\"template\",{attrs:{slot:\"prepend\"},slot:\"prepend\"},[e._t(\"prepend\")],2):e._e(),e.$slots.append?n(\"template\",{attrs:{slot:\"append\"},slot:\"append\"},[e._t(\"append\")],2):e._e()],2)],1)},staticRenderFns:[]};t.a=i},19:function(e,t){e.exports=n(\"1oZe\")},2:function(e,t){e.exports=n(\"2kvA\")},23:function(e,t,n){\"use strict\";t.__esModule=!0;var i=n(2);t.default={bind:function(e,t,n){var r=null,o=void 0,s=function(){return n.context[t.expression].apply()},a=function(){new Date-o<100&&s(),clearInterval(r),r=null};(0,i.on)(e,\"mousedown\",function(e){0===e.button&&(o=new Date,(0,i.once)(document,\"mouseup\",a),clearInterval(r),r=setInterval(s,100))})}}},6:function(e,t){e.exports=n(\"HJMx\")}})},\"1kS7\":function(e,t){t.f=Object.getOwnPropertySymbols},\"1oZe\":function(e,t,n){\"use strict\";t.__esModule=!0,t.default=function(e){return{methods:{focus:function(){this.$refs[e].focus()}}}}},\"21It\":function(e,t,n){\"use strict\";var i=n(\"FtD3\");e.exports=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(i(\"Request failed with status code \"+n.status,n.config,null,n.request,n)):e(n)}},\"2kvA\":function(e,t,n){\"use strict\";t.__esModule=!0,t.getStyle=t.once=t.off=t.on=void 0;var i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e};t.hasClass=p,t.addClass=function(e,t){if(!e)return;for(var n=e.className,i=(t||\"\").split(\" \"),r=0,o=i.length;r-1}t.getStyle=u<9?function(e,t){if(!s){if(!e||!t)return null;\"float\"===(t=d(t))&&(t=\"styleFloat\");try{switch(t){case\"opacity\":try{return e.filters.item(\"alpha\").opacity/100}catch(e){return 1}default:return e.style[t]||e.currentStyle?e.currentStyle[t]:null}}catch(n){return e.style[t]}}}:function(e,t){if(!s){if(!e||!t)return null;\"float\"===(t=d(t))&&(t=\"cssFloat\");try{var n=document.defaultView.getComputedStyle(e,\"\");return e.style[t]||n?n[t]:null}catch(n){return e.style[t]}}}},\"3Eo+\":function(e,t){var n=0,i=Math.random();e.exports=function(e){return\"Symbol(\".concat(void 0===e?\"\":e,\")_\",(++n+i).toString(36))}},\"3fo+\":function(e,t,n){e.exports=n(\"YAhB\")},\"4mcu\":function(e,t){e.exports=function(){}},\"52gC\":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError(\"Can't call method on \"+e);return e}},\"5QVw\":function(e,t,n){e.exports={default:n(\"BwfY\"),__esModule:!0}},\"5VQ+\":function(e,t,n){\"use strict\";var i=n(\"cGG2\");e.exports=function(e,t){i.forEach(e,function(n,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[i])})}},\"6Twh\":function(e,t,n){\"use strict\";t.__esModule=!0,t.default=function(){if(o.default.prototype.$isServer)return 0;if(void 0!==s)return s;var e=document.createElement(\"div\");e.className=\"el-scrollbar__wrap\",e.style.visibility=\"hidden\",e.style.width=\"100px\",e.style.position=\"absolute\",e.style.top=\"-9999px\",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow=\"scroll\";var n=document.createElement(\"div\");n.style.width=\"100%\",e.appendChild(n);var i=n.offsetWidth;return e.parentNode.removeChild(e),s=t-i};var i,r=n(\"7+uW\"),o=(i=r)&&i.__esModule?i:{default:i};var s=void 0},\"7+uW\":function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e){\n/*!\n * Vue.js v2.5.16\n * (c) 2014-2018 Evan You\n * Released under the MIT License.\n */\nvar n=Object.freeze({});function i(e){return void 0===e||null===e}function r(e){return void 0!==e&&null!==e}function o(e){return!0===e}function s(e){return\"string\"==typeof e||\"number\"==typeof e||\"symbol\"==typeof e||\"boolean\"==typeof e}function a(e){return null!==e&&\"object\"==typeof e}var l=Object.prototype.toString;function u(e){return\"[object Object]\"===l.call(e)}function c(e){return\"[object RegExp]\"===l.call(e)}function d(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function f(e){return null==e?\"\":\"object\"==typeof e?JSON.stringify(e,null,2):String(e)}function h(e){var t=parseFloat(e);return isNaN(t)?e:t}function p(e,t){for(var n=Object.create(null),i=e.split(\",\"),r=0;r-1)return e.splice(n,1)}}var y=Object.prototype.hasOwnProperty;function b(e,t){return y.call(e,t)}function _(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var x=/-(\\w)/g,C=_(function(e){return e.replace(x,function(e,t){return t?t.toUpperCase():\"\"})}),w=_(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),k=/\\B([A-Z])/g,S=_(function(e){return e.replace(k,\"-$1\").toLowerCase()});var $=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var i=arguments.length;return i?i>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function M(e,t){t=t||0;for(var n=e.length-t,i=new Array(n);n--;)i[n]=e[n+t];return i}function E(e,t){for(var n in t)e[n]=t[n];return e}function O(e){for(var t={},n=0;n0,J=G&&G.indexOf(\"edge/\")>0,Q=(G&&G.indexOf(\"android\"),G&&/iphone|ipad|ipod|ios/.test(G)||\"ios\"===U),Z=(G&&/chrome\\/\\d+/.test(G),{}.watch),ee=!1;if(W)try{var te={};Object.defineProperty(te,\"passive\",{get:function(){ee=!0}}),window.addEventListener(\"test-passive\",null,te)}catch(e){}var ne=function(){return void 0===H&&(H=!W&&!K&&void 0!==e&&\"server\"===e.process.env.VUE_ENV),H},ie=W&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function re(e){return\"function\"==typeof e&&/native code/.test(e.toString())}var oe,se=\"undefined\"!=typeof Symbol&&re(Symbol)&&\"undefined\"!=typeof Reflect&&re(Reflect.ownKeys);oe=\"undefined\"!=typeof Set&&re(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ae=T,le=0,ue=function(){this.id=le++,this.subs=[]};ue.prototype.addSub=function(e){this.subs.push(e)},ue.prototype.removeSub=function(e){g(this.subs,e)},ue.prototype.depend=function(){ue.target&&ue.target.addDep(this)},ue.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t-1)if(o&&!b(r,\"default\"))s=!1;else if(\"\"===s||s===S(e)){var l=je(String,r.type);(l<0||a0&&(ct((u=e(u,(n||\"\")+\"_\"+l))[0])&&ct(d)&&(a[c]=ve(d.text+u[0].text),u.shift()),a.push.apply(a,u)):s(u)?ct(d)?a[c]=ve(d.text+u):\"\"!==u&&a.push(ve(u)):ct(u)&&ct(d)?a[c]=ve(d.text+u.text):(o(t._isVList)&&r(u.tag)&&i(u.key)&&r(n)&&(u.key=\"__vlist\"+n+\"_\"+l+\"__\"),a.push(u)));return a}(e):void 0}function ct(e){return r(e)&&r(e.text)&&!1===e.isComment}function dt(e,t){return(e.__esModule||se&&\"Module\"===e[Symbol.toStringTag])&&(e=e.default),a(e)?t.extend(e):e}function ft(e){return e.isComment&&e.asyncFactory}function ht(e){if(Array.isArray(e))for(var t=0;tOt&&kt[n].id>e.id;)n--;kt.splice(n+1,0,e)}else kt.push(e);Mt||(Mt=!0,et(Tt))}}(this)},Pt.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||a(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){ze(e,this.vm,'callback for watcher \"'+this.expression+'\"')}else this.cb.call(this.vm,e,t)}}},Pt.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Pt.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},Pt.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||g(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var Nt={enumerable:!0,configurable:!0,get:T,set:T};function It(e,t,n){Nt.get=function(){return this[t][n]},Nt.set=function(e){this[t][n]=e},Object.defineProperty(e,n,Nt)}function Ft(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},i=e._props={},r=e.$options._propKeys=[];e.$parent&&Ce(!1);var o=function(o){r.push(o);var s=Re(o,t,n,e);Me(i,o,s),o in e||It(e,\"_props\",o)};for(var s in t)o(s);Ce(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]=null==t[n]?T:$(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;u(t=e._data=\"function\"==typeof t?function(e,t){de();try{return e.call(t,t)}catch(e){return ze(e,t,\"data()\"),{}}finally{fe()}}(t,e):t||{})||(t={});var n=Object.keys(t),i=e.$options.props,r=(e.$options.methods,n.length);for(;r--;){var o=n[r];0,i&&b(i,o)||B(o)||It(e,\"_data\",o)}$e(t,!0)}(e):$e(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),i=ne();for(var r in t){var o=t[r],s=\"function\"==typeof o?o:o.get;0,i||(n[r]=new Pt(e,s||T,T,At)),r in e||Lt(e,r,o)}}(e,t.computed),t.watch&&t.watch!==Z&&function(e,t){for(var n in t){var i=t[n];if(Array.isArray(i))for(var r=0;r=0||n.indexOf(e[r])<0)&&i.push(e[r]);return i}return e}function fn(e){this._init(e)}function hn(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,i=n.cid,r=e._Ctor||(e._Ctor={});if(r[i])return r[i];var o=e.name||n.options.name;var s=function(e){this._init(e)};return(s.prototype=Object.create(n.prototype)).constructor=s,s.cid=t++,s.options=Ae(n.options,e),s.super=n,s.options.props&&function(e){var t=e.options.props;for(var n in t)It(e.prototype,\"_props\",n)}(s),s.options.computed&&function(e){var t=e.options.computed;for(var n in t)Lt(e.prototype,n,t[n])}(s),s.extend=n.extend,s.mixin=n.mixin,s.use=n.use,L.forEach(function(e){s[e]=n[e]}),o&&(s.options.components[o]=s),s.superOptions=n.options,s.extendOptions=e,s.sealedOptions=E({},s.options),r[i]=s,s}}function pn(e){return e&&(e.Ctor.options.name||e.tag)}function mn(e,t){return Array.isArray(e)?e.indexOf(t)>-1:\"string\"==typeof e?e.split(\",\").indexOf(t)>-1:!!c(e)&&e.test(t)}function vn(e,t){var n=e.cache,i=e.keys,r=e._vnode;for(var o in n){var s=n[o];if(s){var a=pn(s.componentOptions);a&&!t(a)&&gn(n,o,i,r)}}}function gn(e,t,n,i){var r=e[t];!r||i&&r.tag===i.tag||r.componentInstance.$destroy(),e[t]=null,g(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=un++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),i=t._parentVnode;n.parent=t.parent,n._parentVnode=i,n._parentElm=t._parentElm,n._refElm=t._refElm;var r=i.componentOptions;n.propsData=r.propsData,n._parentListeners=r.listeners,n._renderChildren=r.children,n._componentTag=r.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Ae(cn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&vt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,i=e.$vnode=t._parentVnode,r=i&&i.context;e.$slots=gt(t._renderChildren,r),e.$scopedSlots=n,e._c=function(t,n,i,r){return ln(e,t,n,i,r,!1)},e.$createElement=function(t,n,i,r){return ln(e,t,n,i,r,!0)};var o=i&&i.data;Me(e,\"$attrs\",o&&o.attrs||n,null,!0),Me(e,\"$listeners\",t._parentListeners||n,null,!0)}(t),wt(t,\"beforeCreate\"),function(e){var t=Bt(e.$options.inject,e);t&&(Ce(!1),Object.keys(t).forEach(function(n){Me(e,n,t[n])}),Ce(!0))}(t),Ft(t),function(e){var t=e.$options.provide;t&&(e._provided=\"function\"==typeof t?t.call(e):t)}(t),wt(t,\"created\"),t.$options.el&&t.$mount(t.$options.el)}}(fn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,\"$data\",t),Object.defineProperty(e.prototype,\"$props\",n),e.prototype.$set=Ee,e.prototype.$delete=Oe,e.prototype.$watch=function(e,t,n){if(u(t))return Vt(this,e,t,n);(n=n||{}).user=!0;var i=new Pt(this,e,t,n);return n.immediate&&t.call(this,i.value),function(){i.teardown()}}}(fn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){if(Array.isArray(e))for(var i=0,r=e.length;i1?M(n):n;for(var i=M(arguments,1),r=0,o=n.length;rparseInt(this.max)&&gn(s,a[0],a,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return V}};Object.defineProperty(e,\"config\",t),e.util={warn:ae,extend:E,mergeOptions:Ae,defineReactive:Me},e.set=Ee,e.delete=Oe,e.nextTick=et,e.options=Object.create(null),L.forEach(function(t){e.options[t+\"s\"]=Object.create(null)}),e.options._base=e,E(e.options.components,bn),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=M(arguments,1);return n.unshift(this),\"function\"==typeof e.install?e.install.apply(e,n):\"function\"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Ae(this.options,e),this}}(e),hn(e),function(e){L.forEach(function(t){e[t]=function(e,n){return n?(\"component\"===t&&u(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),\"directive\"===t&&\"function\"==typeof n&&(n={bind:n,update:n}),this.options[t+\"s\"][e]=n,n):this.options[t+\"s\"][e]}})}(e)}(fn),Object.defineProperty(fn.prototype,\"$isServer\",{get:ne}),Object.defineProperty(fn.prototype,\"$ssrContext\",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(fn,\"FunctionalRenderContext\",{value:Zt}),fn.version=\"2.5.16\";var _n=p(\"style,class\"),xn=p(\"input,textarea,option,select,progress\"),Cn=function(e,t,n){return\"value\"===n&&xn(e)&&\"button\"!==t||\"selected\"===n&&\"option\"===e||\"checked\"===n&&\"input\"===e||\"muted\"===n&&\"video\"===e},wn=p(\"contenteditable,draggable,spellcheck\"),kn=p(\"allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible\"),Sn=\"http://www.w3.org/1999/xlink\",$n=function(e){return\":\"===e.charAt(5)&&\"xlink\"===e.slice(0,5)},Mn=function(e){return $n(e)?e.slice(6,e.length):\"\"},En=function(e){return null==e||!1===e};function On(e){for(var t=e.data,n=e,i=e;r(i.componentInstance);)(i=i.componentInstance._vnode)&&i.data&&(t=Tn(i.data,t));for(;r(n=n.parent);)n&&n.data&&(t=Tn(t,n.data));return function(e,t){if(r(e)||r(t))return Dn(e,Pn(t));return\"\"}(t.staticClass,t.class)}function Tn(e,t){return{staticClass:Dn(e.staticClass,t.staticClass),class:r(e.class)?[e.class,t.class]:t.class}}function Dn(e,t){return e?t?e+\" \"+t:e:t||\"\"}function Pn(e){return Array.isArray(e)?function(e){for(var t,n=\"\",i=0,o=e.length;i-1?ii(e,t,n):kn(t)?En(n)?e.removeAttribute(t):(n=\"allowfullscreen\"===t&&\"EMBED\"===e.tagName?\"true\":t,e.setAttribute(t,n)):wn(t)?e.setAttribute(t,En(n)||\"false\"===n?\"false\":\"true\"):$n(t)?En(n)?e.removeAttributeNS(Sn,Mn(t)):e.setAttributeNS(Sn,t,n):ii(e,t,n)}function ii(e,t,n){if(En(n))e.removeAttribute(t);else{if(Y&&!X&&\"TEXTAREA\"===e.tagName&&\"placeholder\"===t&&!e.__ieph){var i=function(t){t.stopImmediatePropagation(),e.removeEventListener(\"input\",i)};e.addEventListener(\"input\",i),e.__ieph=!0}e.setAttribute(t,n)}}var ri={create:ti,update:ti};function oi(e,t){var n=t.elm,o=t.data,s=e.data;if(!(i(o.staticClass)&&i(o.class)&&(i(s)||i(s.staticClass)&&i(s.class)))){var a=On(t),l=n._transitionClasses;r(l)&&(a=Dn(a,Pn(l))),a!==n._prevClass&&(n.setAttribute(\"class\",a),n._prevClass=a)}}var si,ai,li,ui,ci,di,fi={create:oi,update:oi},hi=/[\\w).+\\-_$\\]]/;function pi(e){var t,n,i,r,o,s=!1,a=!1,l=!1,u=!1,c=0,d=0,f=0,h=0;for(i=0;i=0&&\" \"===(m=e.charAt(p));p--);m&&hi.test(m)||(u=!0)}}else void 0===r?(h=i+1,r=e.slice(0,i).trim()):v();function v(){(o||(o=[])).push(e.slice(h,i).trim()),h=i+1}if(void 0===r?r=e.slice(0,i).trim():0!==h&&v(),o)for(i=0;i-1?{exp:e.slice(0,ui),key:'\"'+e.slice(ui+1)+'\"'}:{exp:e,key:null};ai=e,ui=ci=di=0;for(;!Ei();)Oi(li=Mi())?Di(li):91===li&&Ti(li);return{exp:e.slice(0,ci),key:e.slice(ci+1,di)}}(e);return null===n.key?e+\"=\"+t:\"$set(\"+n.exp+\", \"+n.key+\", \"+t+\")\"}function Mi(){return ai.charCodeAt(++ui)}function Ei(){return ui>=si}function Oi(e){return 34===e||39===e}function Ti(e){var t=1;for(ci=ui;!Ei();)if(Oi(e=Mi()))Di(e);else if(91===e&&t++,93===e&&t--,0===t){di=ui;break}}function Di(e){for(var t=e;!Ei()&&(e=Mi())!==t;);}var Pi,Ni=\"__r\",Ii=\"__c\";function Fi(e,t,n,i,r){var o;t=(o=t)._withTask||(o._withTask=function(){Xe=!0;var e=o.apply(null,arguments);return Xe=!1,e}),n&&(t=function(e,t,n){var i=Pi;return function r(){null!==e.apply(null,arguments)&&Ai(t,r,n,i)}}(t,e,i)),Pi.addEventListener(e,t,ee?{capture:i,passive:r}:i)}function Ai(e,t,n,i){(i||Pi).removeEventListener(e,t._withTask||t,n)}function Li(e,t){if(!i(e.data.on)||!i(t.data.on)){var n=t.data.on||{},o=e.data.on||{};Pi=t.elm,function(e){if(r(e[Ni])){var t=Y?\"change\":\"input\";e[t]=[].concat(e[Ni],e[t]||[]),delete e[Ni]}r(e[Ii])&&(e.change=[].concat(e[Ii],e.change||[]),delete e[Ii])}(n),st(n,o,Fi,Ai,t.context),Pi=void 0}}var Ri={create:Li,update:Li};function Vi(e,t){if(!i(e.data.domProps)||!i(t.data.domProps)){var n,o,s=t.elm,a=e.data.domProps||{},l=t.data.domProps||{};for(n in r(l.__ob__)&&(l=t.data.domProps=E({},l)),a)i(l[n])&&(s[n]=\"\");for(n in l){if(o=l[n],\"textContent\"===n||\"innerHTML\"===n){if(t.children&&(t.children.length=0),o===a[n])continue;1===s.childNodes.length&&s.removeChild(s.childNodes[0])}if(\"value\"===n){s._value=o;var u=i(o)?\"\":String(o);Bi(s,u)&&(s.value=u)}else s[n]=o}}}function Bi(e,t){return!e.composing&&(\"OPTION\"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,i=e._vModifiers;if(r(i)){if(i.lazy)return!1;if(i.number)return h(n)!==h(t);if(i.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var ji={create:Vi,update:Vi},zi=_(function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\\))/g).forEach(function(e){if(e){var i=e.split(n);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t});function Hi(e){var t=qi(e.style);return e.staticStyle?E(e.staticStyle,t):t}function qi(e){return Array.isArray(e)?O(e):\"string\"==typeof e?zi(e):e}var Wi,Ki=/^--/,Ui=/\\s*!important$/,Gi=function(e,t,n){if(Ki.test(t))e.style.setProperty(t,n);else if(Ui.test(n))e.style.setProperty(t,n.replace(Ui,\"\"),\"important\");else{var i=Xi(t);if(Array.isArray(n))for(var r=0,o=n.length;r-1?t.split(/\\s+/).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=\" \"+(e.getAttribute(\"class\")||\"\")+\" \";n.indexOf(\" \"+t+\" \")<0&&e.setAttribute(\"class\",(n+t).trim())}}function er(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(\" \")>-1?t.split(/\\s+/).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t),e.classList.length||e.removeAttribute(\"class\");else{for(var n=\" \"+(e.getAttribute(\"class\")||\"\")+\" \",i=\" \"+t+\" \";n.indexOf(i)>=0;)n=n.replace(i,\" \");(n=n.trim())?e.setAttribute(\"class\",n):e.removeAttribute(\"class\")}}function tr(e){if(e){if(\"object\"==typeof e){var t={};return!1!==e.css&&E(t,nr(e.name||\"v\")),E(t,e),t}return\"string\"==typeof e?nr(e):void 0}}var nr=_(function(e){return{enterClass:e+\"-enter\",enterToClass:e+\"-enter-to\",enterActiveClass:e+\"-enter-active\",leaveClass:e+\"-leave\",leaveToClass:e+\"-leave-to\",leaveActiveClass:e+\"-leave-active\"}}),ir=W&&!X,rr=\"transition\",or=\"animation\",sr=\"transition\",ar=\"transitionend\",lr=\"animation\",ur=\"animationend\";ir&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(sr=\"WebkitTransition\",ar=\"webkitTransitionEnd\"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(lr=\"WebkitAnimation\",ur=\"webkitAnimationEnd\"));var cr=W?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function dr(e){cr(function(){cr(e)})}function fr(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Zi(e,t))}function hr(e,t){e._transitionClasses&&g(e._transitionClasses,t),er(e,t)}function pr(e,t,n){var i=vr(e,t),r=i.type,o=i.timeout,s=i.propCount;if(!r)return n();var a=r===rr?ar:ur,l=0,u=function(){e.removeEventListener(a,c),n()},c=function(t){t.target===e&&++l>=s&&u()};setTimeout(function(){l0&&(n=rr,c=s,d=o.length):t===or?u>0&&(n=or,c=u,d=l.length):d=(n=(c=Math.max(s,u))>0?s>u?rr:or:null)?n===rr?o.length:l.length:0,{type:n,timeout:c,propCount:d,hasTransform:n===rr&&mr.test(i[sr+\"Property\"])}}function gr(e,t){for(;e.length1}function wr(e,t){!0!==t.data.show&&br(t)}var kr=function(e){var t,n,a={},l=e.modules,u=e.nodeOps;for(t=0;tp?b(e,i(n[g+1])?null:n[g+1].elm,n,h,g,o):h>g&&x(0,t,f,p)}(l,h,p,n,s):r(p)?(r(e.text)&&u.setTextContent(l,\"\"),b(l,null,p,0,p.length-1,n)):r(h)?x(0,h,0,h.length-1):r(e.text)&&u.setTextContent(l,\"\"):e.text!==t.text&&u.setTextContent(l,t.text),r(f)&&r(c=f.hook)&&r(c=c.postpatch)&&c(e,t)}}}function S(e,t,n){if(o(n)&&r(e.parent))e.parent.data.pendingInsert=t;else for(var i=0;i-1,s.selected!==o&&(s.selected=o);else if(N(Or(s),i))return void(e.selectedIndex!==a&&(e.selectedIndex=a));r||(e.selectedIndex=-1)}}function Er(e,t){return t.every(function(t){return!N(t,e)})}function Or(e){return\"_value\"in e?e._value:e.value}function Tr(e){e.target.composing=!0}function Dr(e){e.target.composing&&(e.target.composing=!1,Pr(e.target,\"input\"))}function Pr(e,t){var n=document.createEvent(\"HTMLEvents\");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Nr(e){return!e.componentInstance||e.data&&e.data.transition?e:Nr(e.componentInstance._vnode)}var Ir={model:Sr,show:{bind:function(e,t,n){var i=t.value,r=(n=Nr(n)).data&&n.data.transition,o=e.__vOriginalDisplay=\"none\"===e.style.display?\"\":e.style.display;i&&r?(n.data.show=!0,br(n,function(){e.style.display=o})):e.style.display=i?o:\"none\"},update:function(e,t,n){var i=t.value;!i!=!t.oldValue&&((n=Nr(n)).data&&n.data.transition?(n.data.show=!0,i?br(n,function(){e.style.display=e.__vOriginalDisplay}):_r(n,function(){e.style.display=\"none\"})):e.style.display=i?e.__vOriginalDisplay:\"none\")},unbind:function(e,t,n,i,r){r||(e.style.display=e.__vOriginalDisplay)}}},Fr={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Ar(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Ar(ht(t.children)):e}function Lr(e){var t={},n=e.$options;for(var i in n.propsData)t[i]=e[i];var r=n._parentListeners;for(var o in r)t[C(o)]=r[o];return t}function Rr(e,t){if(/\\d-keep-alive$/.test(t.tag))return e(\"keep-alive\",{props:t.componentOptions.propsData})}var Vr={name:\"transition\",props:Fr,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(function(e){return e.tag||ft(e)})).length){0;var i=this.mode;0;var r=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return r;var o=Ar(r);if(!o)return r;if(this._leaving)return Rr(e,r);var a=\"__transition-\"+this._uid+\"-\";o.key=null==o.key?o.isComment?a+\"comment\":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var l=(o.data||(o.data={})).transition=Lr(this),u=this._vnode,c=Ar(u);if(o.data.directives&&o.data.directives.some(function(e){return\"show\"===e.name})&&(o.data.show=!0),c&&c.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(o,c)&&!ft(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var d=c.data.transition=E({},l);if(\"out-in\"===i)return this._leaving=!0,at(d,\"afterLeave\",function(){t._leaving=!1,t.$forceUpdate()}),Rr(e,r);if(\"in-out\"===i){if(ft(o))return u;var f,h=function(){f()};at(l,\"afterEnter\",h),at(l,\"enterCancelled\",h),at(d,\"delayLeave\",function(e){f=e})}}return r}}},Br=E({tag:String,moveClass:String},Fr);function jr(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function zr(e){e.data.newPos=e.elm.getBoundingClientRect()}function Hr(e){var t=e.data.pos,n=e.data.newPos,i=t.left-n.left,r=t.top-n.top;if(i||r){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform=\"translate(\"+i+\"px,\"+r+\"px)\",o.transitionDuration=\"0s\"}}delete Br.mode;var qr={Transition:Vr,TransitionGroup:{props:Br,render:function(e){for(var t=this.tag||this.$vnode.data.tag||\"span\",n=Object.create(null),i=this.prevChildren=this.children,r=this.$slots.default||[],o=this.children=[],s=Lr(this),a=0;a-1?Rn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Rn[e]=/HTMLUnknownElement/.test(t.toString())},E(fn.options.directives,Ir),E(fn.options.components,qr),fn.prototype.__patch__=W?kr:T,fn.prototype.$mount=function(e,t){return function(e,t,n){return e.$el=t,e.$options.render||(e.$options.render=me),wt(e,\"beforeMount\"),new Pt(e,function(){e._update(e._render(),n)},T,null,!0),n=!1,null==e.$vnode&&(e._isMounted=!0,wt(e,\"mounted\")),e}(this,e=e&&W?Bn(e):void 0,t)},W&&setTimeout(function(){V.devtools&&ie&&ie.emit(\"init\",fn)},0);var Wr=/\\{\\{((?:.|\\n)+?)\\}\\}/g,Kr=/[-.*+?^${}()|[\\]\\/\\\\]/g,Ur=_(function(e){var t=e[0].replace(Kr,\"\\\\$&\"),n=e[1].replace(Kr,\"\\\\$&\");return new RegExp(t+\"((?:.|\\\\n)+?)\"+n,\"g\")});function Gr(e,t){var n=t?Ur(t):Wr;if(n.test(e)){for(var i,r,o,s=[],a=[],l=n.lastIndex=0;i=n.exec(e);){(r=i.index)>l&&(a.push(o=e.slice(l,r)),s.push(JSON.stringify(o)));var u=pi(i[1].trim());s.push(\"_s(\"+u+\")\"),a.push({\"@binding\":u}),l=r+i[0].length}return l\\/=]+)(?:\\s*(=)\\s*(?:\"([^\"]*)\"+|'([^']*)'+|([^\\s\"'=<>`]+)))?/,io=\"[a-zA-Z_][\\\\w\\\\-\\\\.]*\",ro=\"((?:\"+io+\"\\\\:)?\"+io+\")\",oo=new RegExp(\"^<\"+ro),so=/^\\s*(\\/?)>/,ao=new RegExp(\"^<\\\\/\"+ro+\"[^>]*>\"),lo=/^]+>/i,uo=/^\",\"&quot;\":'\"',\"&amp;\":\"&\",\"&#10;\":\"\\n\",\"&#9;\":\"\\t\"},vo=/&(?:lt|gt|quot|amp);/g,go=/&(?:lt|gt|quot|amp|#10|#9);/g,yo=p(\"pre,textarea\",!0),bo=function(e,t){return e&&yo(e)&&\"\\n\"===t[0]};function _o(e,t){var n=t?go:vo;return e.replace(n,function(e){return mo[e]})}var xo,Co,wo,ko,So,$o,Mo,Eo,Oo=/^@|^v-on:/,To=/^v-|^@|^:/,Do=/([^]*?)\\s+(?:in|of)\\s+([^]*)/,Po=/,([^,\\}\\]]*)(?:,([^,\\}\\]]*))?$/,No=/^\\(|\\)$/g,Io=/:(.*)$/,Fo=/^:|^v-bind:/,Ao=/\\.[^.]+/g,Lo=_(Qr);function Ro(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:function(e){for(var t={},n=0,i=e.length;n]*>)\",\"i\")),f=e.replace(d,function(e,n,i){return u=i.length,ho(c)||\"noscript\"===c||(n=n.replace(//g,\"$1\").replace(//g,\"$1\")),bo(c,n)&&(n=n.slice(1)),t.chars&&t.chars(n),\"\"});l+=e.length-f.length,e=f,$(c,l-u,l)}else{var h=e.indexOf(\"<\");if(0===h){if(uo.test(e)){var p=e.indexOf(\"--\\x3e\");if(p>=0){t.shouldKeepComment&&t.comment(e.substring(4,p)),w(p+3);continue}}if(co.test(e)){var m=e.indexOf(\"]>\");if(m>=0){w(m+2);continue}}var v=e.match(lo);if(v){w(v[0].length);continue}var g=e.match(ao);if(g){var y=l;w(g[0].length),$(g[1],y,l);continue}var b=k();if(b){S(b),bo(i,e)&&w(1);continue}}var _=void 0,x=void 0,C=void 0;if(h>=0){for(x=e.slice(h);!(ao.test(x)||oo.test(x)||uo.test(x)||co.test(x)||(C=x.indexOf(\"<\",1))<0);)h+=C,x=e.slice(h);_=e.substring(0,h),w(h)}h<0&&(_=e,e=\"\"),t.chars&&_&&t.chars(_)}if(e===n){t.chars&&t.chars(e);break}}function w(t){l+=t,e=e.substring(t)}function k(){var t=e.match(oo);if(t){var n,i,r={tagName:t[1],attrs:[],start:l};for(w(t[0].length);!(n=e.match(so))&&(i=e.match(no));)w(i[0].length),r.attrs.push(i);if(n)return r.unarySlash=n[1],w(n[0].length),r.end=l,r}}function S(e){var n=e.tagName,l=e.unarySlash;o&&(\"p\"===i&&to(n)&&$(i),a(n)&&i===n&&$(n));for(var u=s(n)||!!l,c=e.attrs.length,d=new Array(c),f=0;f=0&&r[s].lowerCasedTag!==a;s--);else s=0;if(s>=0){for(var u=r.length-1;u>=s;u--)t.end&&t.end(r[u].tag,n,o);r.length=s,i=s&&r[s-1].tag}else\"br\"===a?t.start&&t.start(e,[],!0,n,o):\"p\"===a&&(t.start&&t.start(e,[],!1,n,o),t.end&&t.end(e,n,o))}$()}(e,{warn:xo,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,start:function(e,o,u){var c=i&&i.ns||Eo(e);Y&&\"svg\"===c&&(o=function(e){for(var t=[],n=0;n-1\"+(\"true\"===o?\":(\"+t+\")\":\":_q(\"+t+\",\"+o+\")\")),Ci(e,\"change\",\"var $$a=\"+t+\",$$el=$event.target,$$c=$$el.checked?(\"+o+\"):(\"+s+\");if(Array.isArray($$a)){var $$v=\"+(i?\"_n(\"+r+\")\":r)+\",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&(\"+$i(t,\"$$a.concat([$$v])\")+\")}else{$$i>-1&&(\"+$i(t,\"$$a.slice(0,$$i).concat($$a.slice($$i+1))\")+\")}}else{\"+$i(t,\"$$c\")+\"}\",null,!0)}(e,i,r);else if(\"input\"===o&&\"radio\"===s)!function(e,t,n){var i=n&&n.number,r=wi(e,\"value\")||\"null\";yi(e,\"checked\",\"_q(\"+t+\",\"+(r=i?\"_n(\"+r+\")\":r)+\")\"),Ci(e,\"change\",$i(t,r),null,!0)}(e,i,r);else if(\"input\"===o||\"textarea\"===o)!function(e,t,n){var i=e.attrsMap.type,r=n||{},o=r.lazy,s=r.number,a=r.trim,l=!o&&\"range\"!==i,u=o?\"change\":\"range\"===i?Ni:\"input\",c=\"$event.target.value\";a&&(c=\"$event.target.value.trim()\"),s&&(c=\"_n(\"+c+\")\");var d=$i(t,c);l&&(d=\"if($event.target.composing)return;\"+d),yi(e,\"value\",\"(\"+t+\")\"),Ci(e,u,d,null,!0),(a||s)&&Ci(e,\"blur\",\"$forceUpdate()\")}(e,i,r);else if(!V.isReservedTag(o))return Si(e,i,r),!1;return!0},text:function(e,t){t.value&&yi(e,\"textContent\",\"_s(\"+t.value+\")\")},html:function(e,t){t.value&&yi(e,\"innerHTML\",\"_s(\"+t.value+\")\")}},isPreTag:function(e){return\"pre\"===e},isUnaryTag:Zr,mustUseProp:Cn,canBeLeftOpenTag:eo,isReservedTag:An,getTagNamespace:Ln,staticKeys:function(e){return e.reduce(function(e,t){return e.concat(t.staticKeys||[])},[]).join(\",\")}(Uo)},Jo=_(function(e){return p(\"type,tag,attrsList,attrsMap,plain,parent,children,attrs\"+(e?\",\"+e:\"\"))});function Qo(e,t){e&&(Go=Jo(t.staticKeys||\"\"),Yo=t.isReservedTag||D,function e(t){t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||m(e.tag)||!Yo(e.tag)||function(e){for(;e.parent;){if(\"template\"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(Go)))}(t);if(1===t.type){if(!Yo(t.tag)&&\"slot\"!==t.tag&&null==t.attrsMap[\"inline-template\"])return;for(var n=0,i=t.children.length;n|^function\\s*\\(/,es=/^[A-Za-z_$][\\w$]*(?:\\.[A-Za-z_$][\\w$]*|\\['[^']*?']|\\[\"[^\"]*?\"]|\\[\\d+]|\\[[A-Za-z_$][\\w$]*])*$/,ts={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},ns={esc:\"Escape\",tab:\"Tab\",enter:\"Enter\",space:\" \",up:[\"Up\",\"ArrowUp\"],left:[\"Left\",\"ArrowLeft\"],right:[\"Right\",\"ArrowRight\"],down:[\"Down\",\"ArrowDown\"],delete:[\"Backspace\",\"Delete\"]},is=function(e){return\"if(\"+e+\")return null;\"},rs={stop:\"$event.stopPropagation();\",prevent:\"$event.preventDefault();\",self:is(\"$event.target !== $event.currentTarget\"),ctrl:is(\"!$event.ctrlKey\"),shift:is(\"!$event.shiftKey\"),alt:is(\"!$event.altKey\"),meta:is(\"!$event.metaKey\"),left:is(\"'button' in $event && $event.button !== 0\"),middle:is(\"'button' in $event && $event.button !== 1\"),right:is(\"'button' in $event && $event.button !== 2\")};function os(e,t,n){var i=t?\"nativeOn:{\":\"on:{\";for(var r in e)i+='\"'+r+'\":'+ss(r,e[r])+\",\";return i.slice(0,-1)+\"}\"}function ss(e,t){if(!t)return\"function(){}\";if(Array.isArray(t))return\"[\"+t.map(function(t){return ss(e,t)}).join(\",\")+\"]\";var n=es.test(t.value),i=Zo.test(t.value);if(t.modifiers){var r=\"\",o=\"\",s=[];for(var a in t.modifiers)if(rs[a])o+=rs[a],ts[a]&&s.push(a);else if(\"exact\"===a){var l=t.modifiers;o+=is([\"ctrl\",\"shift\",\"alt\",\"meta\"].filter(function(e){return!l[e]}).map(function(e){return\"$event.\"+e+\"Key\"}).join(\"||\"))}else s.push(a);return s.length&&(r+=function(e){return\"if(!('button' in $event)&&\"+e.map(as).join(\"&&\")+\")return null;\"}(s)),o&&(r+=o),\"function($event){\"+r+(n?\"return \"+t.value+\"($event)\":i?\"return (\"+t.value+\")($event)\":t.value)+\"}\"}return n||i?t.value:\"function($event){\"+t.value+\"}\"}function as(e){var t=parseInt(e,10);if(t)return\"$event.keyCode!==\"+t;var n=ts[e],i=ns[e];return\"_k($event.keyCode,\"+JSON.stringify(e)+\",\"+JSON.stringify(n)+\",$event.key,\"+JSON.stringify(i)+\")\"}var ls={on:function(e,t){e.wrapListeners=function(e){return\"_g(\"+e+\",\"+t.value+\")\"}},bind:function(e,t){e.wrapData=function(n){return\"_b(\"+n+\",'\"+e.tag+\"',\"+t.value+\",\"+(t.modifiers&&t.modifiers.prop?\"true\":\"false\")+(t.modifiers&&t.modifiers.sync?\",true\":\"\")+\")\"}},cloak:T},us=function(e){this.options=e,this.warn=e.warn||vi,this.transforms=gi(e.modules,\"transformCode\"),this.dataGenFns=gi(e.modules,\"genData\"),this.directives=E(E({},ls),e.directives);var t=e.isReservedTag||D;this.maybeComponent=function(e){return!t(e.tag)},this.onceId=0,this.staticRenderFns=[]};function cs(e,t){var n=new us(t);return{render:\"with(this){return \"+(e?ds(e,n):'_c(\"div\")')+\"}\",staticRenderFns:n.staticRenderFns}}function ds(e,t){if(e.staticRoot&&!e.staticProcessed)return fs(e,t);if(e.once&&!e.onceProcessed)return hs(e,t);if(e.for&&!e.forProcessed)return function(e,t,n,i){var r=e.for,o=e.alias,s=e.iterator1?\",\"+e.iterator1:\"\",a=e.iterator2?\",\"+e.iterator2:\"\";0;return e.forProcessed=!0,(i||\"_l\")+\"((\"+r+\"),function(\"+o+s+a+\"){return \"+(n||ds)(e,t)+\"})\"}(e,t);if(e.if&&!e.ifProcessed)return ps(e,t);if(\"template\"!==e.tag||e.slotTarget){if(\"slot\"===e.tag)return function(e,t){var n=e.slotName||'\"default\"',i=gs(e,t),r=\"_t(\"+n+(i?\",\"+i:\"\"),o=e.attrs&&\"{\"+e.attrs.map(function(e){return C(e.name)+\":\"+e.value}).join(\",\")+\"}\",s=e.attrsMap[\"v-bind\"];!o&&!s||i||(r+=\",null\");o&&(r+=\",\"+o);s&&(r+=(o?\"\":\",null\")+\",\"+s);return r+\")\"}(e,t);var n;if(e.component)n=function(e,t,n){var i=t.inlineTemplate?null:gs(t,n,!0);return\"_c(\"+e+\",\"+ms(t,n)+(i?\",\"+i:\"\")+\")\"}(e.component,e,t);else{var i=e.plain?void 0:ms(e,t),r=e.inlineTemplate?null:gs(e,t,!0);n=\"_c('\"+e.tag+\"'\"+(i?\",\"+i:\"\")+(r?\",\"+r:\"\")+\")\"}for(var o=0;o':'
',ks.innerHTML.indexOf(\"&#10;\")>0}var Ms=!!W&&$s(!1),Es=!!W&&$s(!0),Os=_(function(e){var t=Bn(e);return t&&t.innerHTML}),Ts=fn.prototype.$mount;fn.prototype.$mount=function(e,t){if((e=e&&Bn(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var i=n.template;if(i)if(\"string\"==typeof i)\"#\"===i.charAt(0)&&(i=Os(i));else{if(!i.nodeType)return this;i=i.innerHTML}else e&&(i=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement(\"div\");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(i){0;var r=Ss(i,{shouldDecodeNewlines:Ms,shouldDecodeNewlinesForHref:Es,delimiters:n.delimiters,comments:n.comments},this),o=r.render,s=r.staticRenderFns;n.render=o,n.staticRenderFns=s}}return Ts.call(this,e,t)},fn.compile=Ss,t.default=fn}.call(t,n(\"DuR2\"))},\"77Pl\":function(e,t,n){var i=n(\"EqjI\");e.exports=function(e){if(!i(e))throw TypeError(e+\" is not an object!\");return e}},\"7GwW\":function(e,t,n){\"use strict\";var i=n(\"cGG2\"),r=n(\"21It\"),o=n(\"DQCr\"),s=n(\"oJlt\"),a=n(\"GHBc\"),l=n(\"FtD3\"),u=\"undefined\"!=typeof window&&window.btoa&&window.btoa.bind(window)||n(\"thJu\");e.exports=function(e){return new Promise(function(t,c){var d=e.data,f=e.headers;i.isFormData(d)&&delete f[\"Content-Type\"];var h=new XMLHttpRequest,p=\"onreadystatechange\",m=!1;if(\"undefined\"==typeof window||!window.XDomainRequest||\"withCredentials\"in h||a(e.url)||(h=new window.XDomainRequest,p=\"onload\",m=!0,h.onprogress=function(){},h.ontimeout=function(){}),e.auth){var v=e.auth.username||\"\",g=e.auth.password||\"\";f.Authorization=\"Basic \"+u(v+\":\"+g)}if(h.open(e.method.toUpperCase(),o(e.url,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,h[p]=function(){if(h&&(4===h.readyState||m)&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf(\"file:\"))){var n=\"getAllResponseHeaders\"in h?s(h.getAllResponseHeaders()):null,i={data:e.responseType&&\"text\"!==e.responseType?h.response:h.responseText,status:1223===h.status?204:h.status,statusText:1223===h.status?\"No Content\":h.statusText,headers:n,config:e,request:h};r(t,c,i),h=null}},h.onerror=function(){c(l(\"Network Error\",e,null,h)),h=null},h.ontimeout=function(){c(l(\"timeout of \"+e.timeout+\"ms exceeded\",e,\"ECONNABORTED\",h)),h=null},i.isStandardBrowserEnv()){var y=n(\"p1b6\"),b=(e.withCredentials||a(e.url))&&e.xsrfCookieName?y.read(e.xsrfCookieName):void 0;b&&(f[e.xsrfHeaderName]=b)}if(\"setRequestHeader\"in h&&i.forEach(f,function(e,t){void 0===d&&\"content-type\"===t.toLowerCase()?delete f[t]:h.setRequestHeader(t,e)}),e.withCredentials&&(h.withCredentials=!0),e.responseType)try{h.responseType=e.responseType}catch(t){if(\"json\"!==e.responseType)throw t}\"function\"==typeof e.onDownloadProgress&&h.addEventListener(\"progress\",e.onDownloadProgress),\"function\"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener(\"progress\",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){h&&(h.abort(),c(e),h=null)}),void 0===d&&(d=null),h.send(d)})}},\"7J9s\":function(e,t,n){\"use strict\";t.__esModule=!0,t.PopupManager=void 0;var i=l(n(\"7+uW\")),r=l(n(\"jmaC\")),o=l(n(\"OAzY\")),s=l(n(\"6Twh\")),a=n(\"2kvA\");function l(e){return e&&e.__esModule?e:{default:e}}var u=1,c=[],d=void 0;t.default={props:{visible:{type:Boolean,default:!1},transition:{type:String,default:\"\"},openDelay:{},closeDelay:{},zIndex:{},modal:{type:Boolean,default:!1},modalFade:{type:Boolean,default:!0},modalClass:{},modalAppendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!1}},created:function(){this.transition&&function(e){if(-1===c.indexOf(e)){var t=function(e){var t=e.__vue__;if(!t){var n=e.previousSibling;n.__vue__&&(t=n.__vue__)}return t};i.default.transition(e,{afterEnter:function(e){var n=t(e);n&&n.doAfterOpen&&n.doAfterOpen()},afterLeave:function(e){var n=t(e);n&&n.doAfterClose&&n.doAfterClose()}})}}(this.transition)},beforeMount:function(){this._popupId=\"popup-\"+u++,o.default.register(this._popupId,this)},beforeDestroy:function(){o.default.deregister(this._popupId),o.default.closeModal(this._popupId),this.modal&&null!==this.bodyOverflow&&\"hidden\"!==this.bodyOverflow&&(document.body.style.overflow=this.bodyOverflow,document.body.style.paddingRight=this.bodyPaddingRight),this.bodyOverflow=null,this.bodyPaddingRight=null},data:function(){return{opened:!1,bodyOverflow:null,bodyPaddingRight:null,rendered:!1}},watch:{visible:function(e){var t=this;if(e){if(this._opening)return;this.rendered?this.open():(this.rendered=!0,i.default.nextTick(function(){t.open()}))}else this.close()}},methods:{open:function(e){var t=this;this.rendered||(this.rendered=!0);var n=(0,r.default)({},this.$props||this,e);this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null),clearTimeout(this._openTimer);var i=Number(n.openDelay);i>0?this._openTimer=setTimeout(function(){t._openTimer=null,t.doOpen(n)},i):this.doOpen(n)},doOpen:function(e){if(!this.$isServer&&(!this.willOpen||this.willOpen())&&!this.opened){this._opening=!0;var t=function e(t){return 3===t.nodeType&&e(t=t.nextElementSibling||t.nextSibling),t}(this.$el),n=e.modal,i=e.zIndex;if(i&&(o.default.zIndex=i),n&&(this._closing&&(o.default.closeModal(this._popupId),this._closing=!1),o.default.openModal(this._popupId,o.default.nextZIndex(),this.modalAppendToBody?void 0:t,e.modalClass,e.modalFade),e.lockScroll)){this.bodyOverflow||(this.bodyPaddingRight=document.body.style.paddingRight,this.bodyOverflow=document.body.style.overflow),d=(0,s.default)();var r=document.documentElement.clientHeight0&&(r||\"scroll\"===l)&&(document.body.style.paddingRight=d+\"px\"),document.body.style.overflow=\"hidden\"}\"static\"===getComputedStyle(t).position&&(t.style.position=\"absolute\"),t.style.zIndex=o.default.nextZIndex(),this.opened=!0,this.onOpen&&this.onOpen(),this.transition||this.doAfterOpen()}},doAfterOpen:function(){this._opening=!1},close:function(){var e=this;if(!this.willClose||this.willClose()){null!==this._openTimer&&(clearTimeout(this._openTimer),this._openTimer=null),clearTimeout(this._closeTimer);var t=Number(this.closeDelay);t>0?this._closeTimer=setTimeout(function(){e._closeTimer=null,e.doClose()},t):this.doClose()}},doClose:function(){var e=this;this._closing=!0,this.onClose&&this.onClose(),this.lockScroll&&setTimeout(function(){e.modal&&\"hidden\"!==e.bodyOverflow&&(document.body.style.overflow=e.bodyOverflow,document.body.style.paddingRight=e.bodyPaddingRight),e.bodyOverflow=null,e.bodyPaddingRight=null},200),this.opened=!1,this.transition||this.doAfterClose()},doAfterClose:function(){o.default.closeModal(this._popupId),this._closing=!1}}},t.PopupManager=o.default},\"7KvD\":function(e,t){var n=e.exports=\"undefined\"!=typeof window&&window.Math==Math?window:\"undefined\"!=typeof self&&self.Math==Math?self:Function(\"return this\")();\"number\"==typeof __g&&(__g=n)},\"7UMu\":function(e,t,n){var i=n(\"R9M2\");e.exports=Array.isArray||function(e){return\"Array\"==i(e)}},\"880/\":function(e,t,n){e.exports=n(\"hJx8\")},\"94VQ\":function(e,t,n){\"use strict\";var i=n(\"Yobk\"),r=n(\"X8DO\"),o=n(\"e6n0\"),s={};n(\"hJx8\")(s,n(\"dSzd\")(\"iterator\"),function(){return this}),e.exports=function(e,t,n){e.prototype=i(s,{next:r(1,n)}),o(e,t+\" Iterator\")}},AYPi:function(e,t,n){var i;i=function(){return function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,\"a\",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p=\"\",t(t.s=0)}([function(e,t,n){\"use strict\";function i(e){!function e(t,n){return Object.keys(n).forEach(function(i){t[i]&&\"object\"==typeof t[i]?e(t[i],n[i]):t[i]=n[i]}),t}(g,e)}function r(){return g.id?[].concat(g.id):[]}function o(){}function s(e){return e.replace(/-/gi,\"\")}function a(){return new Promise(function(e,t){var n=setInterval(function(){\"undefined\"!=typeof window&&window.ga&&(e(),clearInterval(n))},10)})}function l(e,t){return r().length>1?s(t)+\".\"+e:e}function u(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i1?b({},y.fields,{name:n}):y.fields;window.ga(\"create\",t,\"auto\",i)}),y.beforeFirstHit();var t=y.ecommerce;if(t.enabled){var n=t.enhanced?\"ec\":\"ecommerce\";t.options?u(\"require\",n,t.options):u(\"require\",n)}y.linkers.length>0&&(u(\"require\",\"linker\"),u(\"linker:autoLink\",y.linkers)),y.debug.sendHitTask||c(\"sendHitTask\",null)}function f(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0||i?e():function(e){return new Promise(function(t,n){var i=document.head||document.getElementsByTagName(\"head\")[0],r=document.createElement(\"script\");r.async=!0,r.src=e,r.charset=\"utf8\",i.appendChild(r),r.onload=t,r.onerror=n})}(r).then(function(){e()}).catch(function(){t(\"[vue-analytics] It's not possible to load Google Analytics script\")})}).then(function(){return a()}).then(function(){return\"function\"==typeof e?e():e}).then(function(e){y.id=e,d(),x(),y.ready(),function(){var e=y.router,t=y.autoTracking;t.page&&e&&(t.pageviewOnLoad&&m(e.currentRoute),y.router.afterEach(function(n,i){var r=t.skipSamePath,o=t.shouldRouterUpdate;r&&n.path===i.path||(\"function\"!=typeof o||o(n,i))&&setTimeout(function(){m(e.currentRoute)},0)}))}(),h()}).catch(function(e){console.error(e)})}}Object.defineProperty(t,\"__esModule\",{value:!0});var g=(Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]&&arguments[1]})},S=function(e){if(y.autoTracking.exception){window.addEventListener(\"error\",function(e){k(e.message)});var t=e.config.errorHandler;e.config.errorHandler=function(e,n,i){k(e.message),y.autoTracking.exceptionLogs&&(console.error(\"[vue-analytics] Error in \"+i+\": \"+e.message),console.error(e)),\"function\"==typeof t&&t.call(w,e,n,i)}}},$=k,M=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{}),e.directive(\"ga\",T),e.prototype.$ga=e.$ga=O,S(e),v()},n.d(t,\"onAnalyticsReady\",function(){return a}),n.d(t,\"analyticsMiddleware\",function(){return D})}])},e.exports=i()},BwfY:function(e,t,n){n(\"fWfb\"),n(\"M6a0\"),n(\"OYls\"),n(\"QWe/\"),e.exports=n(\"FeBl\").Symbol},D2L2:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},DQCr:function(e,t,n){\"use strict\";var i=n(\"cGG2\");function r(e){return encodeURIComponent(e).replace(/%40/gi,\"@\").replace(/%3A/gi,\":\").replace(/%24/g,\"$\").replace(/%2C/gi,\",\").replace(/%20/g,\"+\").replace(/%5B/gi,\"[\").replace(/%5D/gi,\"]\")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(i.isURLSearchParams(t))o=t.toString();else{var s=[];i.forEach(t,function(e,t){null!==e&&void 0!==e&&(i.isArray(e)?t+=\"[]\":e=[e],i.forEach(e,function(e){i.isDate(e)?e=e.toISOString():i.isObject(e)&&(e=JSON.stringify(e)),s.push(r(t)+\"=\"+r(e))}))}),o=s.join(\"&\")}return o&&(e+=(-1===e.indexOf(\"?\")?\"?\":\"&\")+o),e}},DQJY:function(e,t,n){\"use strict\";t.__esModule=!0;var i,r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},o=n(\"hyEB\"),s=(i=o)&&i.__esModule?i:{default:i};var a,l=l||{};l.Dialog=function(e,t,n){var i=this;if(this.dialogNode=e,null===this.dialogNode||\"dialog\"!==this.dialogNode.getAttribute(\"role\"))throw new Error(\"Dialog() requires a DOM element with ARIA role of dialog.\");\"string\"==typeof t?this.focusAfterClosed=document.getElementById(t):\"object\"===(void 0===t?\"undefined\":r(t))?this.focusAfterClosed=t:this.focusAfterClosed=null,\"string\"==typeof n?this.focusFirst=document.getElementById(n):\"object\"===(void 0===n?\"undefined\":r(n))?this.focusFirst=n:this.focusFirst=null,this.focusFirst?this.focusFirst.focus():s.default.focusFirstDescendant(this.dialogNode),this.lastFocus=document.activeElement,a=function(e){i.trapFocus(e)},this.addListeners()},l.Dialog.prototype.addListeners=function(){document.addEventListener(\"focus\",a,!0)},l.Dialog.prototype.removeListeners=function(){document.removeEventListener(\"focus\",a,!0)},l.Dialog.prototype.closeDialog=function(){var e=this;this.removeListeners(),this.focusAfterClosed&&setTimeout(function(){e.focusAfterClosed.focus()})},l.Dialog.prototype.trapFocus=function(e){s.default.IgnoreUtilFocusChanges||(this.dialogNode.contains(e.target)?this.lastFocus=e.target:(s.default.focusFirstDescendant(this.dialogNode),this.lastFocus===document.activeElement&&s.default.focusLastDescendant(this.dialogNode),this.lastFocus=document.activeElement))},t.default=l.Dialog},Dd8w:function(e,t,n){\"use strict\";t.__esModule=!0;var i,r=n(\"woOf\"),o=(i=r)&&i.__esModule?i:{default:i};t.default=o.default||function(e){for(var t=1;tthis._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch(\"ElCheckboxGroup\",\"input\",[e])):(this.$emit(\"input\",e),this.selfModel=e)}},isChecked:function(){return\"[object Boolean]\"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},isGroup:function(){for(var e=this.$parent;e;){if(\"ElCheckboxGroup\"===e.$options.componentName)return this._checkboxGroup=e,!0;e=e.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},isDisabled:function(){return this.isGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled:this.disabled||(this.elForm||{}).disabled},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxSize:function(){var e=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._checkboxGroup.checkboxGroupSize||e}},props:{value:{},label:{},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number],id:String,controls:String,border:Boolean,size:String},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(e){var t=this;if(!this.isLimitExceeded){var n=void 0;n=e.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit(\"change\",n,e),this.$nextTick(function(){t.isGroup&&t.dispatch(\"ElCheckboxGroup\",\"change\",[t._checkboxGroup.value])})}}},created:function(){this.checked&&this.addToStore()},mounted:function(){this.indeterminate&&this.$el.setAttribute(\"aria-controls\",this.controls)}}},141:function(e,t,n){\"use strict\";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(\"label\",{staticClass:\"el-checkbox\",class:[e.border&&e.checkboxSize?\"el-checkbox--\"+e.checkboxSize:\"\",{\"is-disabled\":e.isDisabled},{\"is-bordered\":e.border},{\"is-checked\":e.isChecked}],attrs:{role:\"checkbox\",\"aria-checked\":e.indeterminate?\"mixed\":e.isChecked,\"aria-disabled\":e.isDisabled,id:e.id}},[n(\"span\",{staticClass:\"el-checkbox__input\",class:{\"is-disabled\":e.isDisabled,\"is-checked\":e.isChecked,\"is-indeterminate\":e.indeterminate,\"is-focus\":e.focus},attrs:{\"aria-checked\":\"mixed\"}},[n(\"span\",{staticClass:\"el-checkbox__inner\"}),e.trueLabel||e.falseLabel?n(\"input\",{directives:[{name:\"model\",rawName:\"v-model\",value:e.model,expression:\"model\"}],staticClass:\"el-checkbox__original\",attrs:{type:\"checkbox\",name:e.name,disabled:e.isDisabled,\"true-value\":e.trueLabel,\"false-value\":e.falseLabel},domProps:{checked:Array.isArray(e.model)?e._i(e.model,null)>-1:e._q(e.model,e.trueLabel)},on:{change:[function(t){var n=e.model,i=t.target,r=i.checked?e.trueLabel:e.falseLabel;if(Array.isArray(n)){var o=e._i(n,null);i.checked?o<0&&(e.model=n.concat([null])):o>-1&&(e.model=n.slice(0,o).concat(n.slice(o+1)))}else e.model=r},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}):n(\"input\",{directives:[{name:\"model\",rawName:\"v-model\",value:e.model,expression:\"model\"}],staticClass:\"el-checkbox__original\",attrs:{type:\"checkbox\",disabled:e.isDisabled,name:e.name},domProps:{value:e.label,checked:Array.isArray(e.model)?e._i(e.model,e.label)>-1:e.model},on:{change:[function(t){var n=e.model,i=t.target,r=!!i.checked;if(Array.isArray(n)){var o=e.label,s=e._i(n,o);i.checked?s<0&&(e.model=n.concat([o])):s>-1&&(e.model=n.slice(0,s).concat(n.slice(s+1)))}else e.model=r},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}})]),e.$slots.default||e.label?n(\"span\",{staticClass:\"el-checkbox__label\"},[e._t(\"default\"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2):e._e()])},staticRenderFns:[]};t.a=i}})},EqjI:function(e,t){e.exports=function(e){return\"object\"==typeof e?null!==e:\"function\"==typeof e}},FeBl:function(e,t){var n=e.exports={version:\"2.5.3\"};\"number\"==typeof __e&&(__e=n)},FtD3:function(e,t,n){\"use strict\";var i=n(\"t8qj\");e.exports=function(e,t,n,r,o){var s=new Error(e);return i(s,t,n,r,o)}},GHBc:function(e,t,n){\"use strict\";var i=n(\"cGG2\");e.exports=i.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement(\"a\");function r(e){var i=e;return t&&(n.setAttribute(\"href\",i),i=n.href),n.setAttribute(\"href\",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,\"\"):\"\",host:n.host,search:n.search?n.search.replace(/^\\?/,\"\"):\"\",hash:n.hash?n.hash.replace(/^#/,\"\"):\"\",hostname:n.hostname,port:n.port,pathname:\"/\"===n.pathname.charAt(0)?n.pathname:\"/\"+n.pathname}}return e=r(window.location.href),function(t){var n=i.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},GegP:function(e,t){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,\"a\",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=\"/dist/\",n(n.s=348)}({0:function(e,t){e.exports=function(e,t,n,i,r,o){var s,a=e=e||{},l=typeof e.default;\"object\"!==l&&\"function\"!==l||(s=e,a=e.default);var u,c=\"function\"==typeof a?a.options:a;if(t&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),r&&(c._scopeId=r),o?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||\"undefined\"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=u):i&&(u=i),u){var d=c.functional,f=d?c.render:c.beforeCreate;d?(c._injectStyles=u,c.render=function(e,t){return u.call(t),f(e,t)}):c.beforeCreate=f?[].concat(f,u):[u]}return{esModule:s,exports:a,options:c}}},348:function(e,t,n){e.exports=n(349)},349:function(e,t,n){\"use strict\";t.__esModule=!0;var i,r=n(350),o=(i=r)&&i.__esModule?i:{default:i};o.default.install=function(e){e.component(o.default.name,o.default)},t.default=o.default},350:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var i=n(351),r=n.n(i),o=n(352),s=n(0)(r.a,o.a,!1,null,null,null);t.default=s.exports},351:function(e,t,n){\"use strict\";t.__esModule=!0,t.default={name:\"ElProgress\",props:{type:{type:String,default:\"line\",validator:function(e){return[\"line\",\"circle\"].indexOf(e)>-1}},percentage:{type:Number,default:0,required:!0,validator:function(e){return e>=0&&e<=100}},status:{type:String},strokeWidth:{type:Number,default:6},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:String,default:\"\"}},computed:{barStyle:function(){var e={};return e.width=this.percentage+\"%\",e.backgroundColor=this.color,e},relativeStrokeWidth:function(){return(this.strokeWidth/this.width*100).toFixed(1)},trackPath:function(){var e=parseInt(50-parseFloat(this.relativeStrokeWidth)/2,10);return\"M 50 50 m 0 -\"+e+\" a \"+e+\" \"+e+\" 0 1 1 0 \"+2*e+\" a \"+e+\" \"+e+\" 0 1 1 0 -\"+2*e},perimeter:function(){var e=50-parseFloat(this.relativeStrokeWidth)/2;return 2*Math.PI*e},circlePathStyle:function(){var e=this.perimeter;return{strokeDasharray:e+\"px,\"+e+\"px\",strokeDashoffset:(1-this.percentage/100)*e+\"px\",transition:\"stroke-dashoffset 0.6s ease 0s, stroke 0.6s ease\"}},stroke:function(){var e=void 0;if(this.color)e=this.color;else switch(this.status){case\"success\":e=\"#13ce66\";break;case\"exception\":e=\"#ff4949\";break;default:e=\"#20a0ff\"}return e},iconClass:function(){return\"line\"===this.type?\"success\"===this.status?\"el-icon-circle-check\":\"el-icon-circle-cross\":\"success\"===this.status?\"el-icon-check\":\"el-icon-close\"},progressTextSize:function(){return\"line\"===this.type?12+.4*this.strokeWidth:.111111*this.width+2}}}},352:function(e,t,n){\"use strict\";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(\"div\",{staticClass:\"el-progress\",class:[\"el-progress--\"+e.type,e.status?\"is-\"+e.status:\"\",{\"el-progress--without-text\":!e.showText,\"el-progress--text-inside\":e.textInside}],attrs:{role:\"progressbar\",\"aria-valuenow\":e.percentage,\"aria-valuemin\":\"0\",\"aria-valuemax\":\"100\"}},[\"line\"===e.type?n(\"div\",{staticClass:\"el-progress-bar\"},[n(\"div\",{staticClass:\"el-progress-bar__outer\",style:{height:e.strokeWidth+\"px\"}},[n(\"div\",{staticClass:\"el-progress-bar__inner\",style:e.barStyle},[e.showText&&e.textInside?n(\"div\",{staticClass:\"el-progress-bar__innerText\"},[e._v(e._s(e.percentage)+\"%\")]):e._e()])])]):n(\"div\",{staticClass:\"el-progress-circle\",style:{height:e.width+\"px\",width:e.width+\"px\"}},[n(\"svg\",{attrs:{viewBox:\"0 0 100 100\"}},[n(\"path\",{staticClass:\"el-progress-circle__track\",attrs:{d:e.trackPath,stroke:\"#e5e9f2\",\"stroke-width\":e.relativeStrokeWidth,fill:\"none\"}}),n(\"path\",{staticClass:\"el-progress-circle__path\",style:e.circlePathStyle,attrs:{d:e.trackPath,\"stroke-linecap\":\"round\",stroke:e.stroke,\"stroke-width\":e.relativeStrokeWidth,fill:\"none\"}})])]),e.showText&&!e.textInside?n(\"div\",{staticClass:\"el-progress__text\",style:{fontSize:e.progressTextSize+\"px\"}},[e.status?n(\"i\",{class:e.iconClass}):[e._v(e._s(e.percentage)+\"%\")]],2):e._e()])},staticRenderFns:[]};t.a=i}})},H8dH:function(e,t,n){\"use strict\";t.__esModule=!0,t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e||!t)throw new Error(\"instance & callback is required\");var r=!1,o=function(){r||(r=!0,t&&t.apply(null,arguments))};i?e.$once(\"after-leave\",o):e.$on(\"after-leave\",o),setTimeout(function(){o()},n+100)}},HJMx:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,\"a\",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=\"/dist/\",n(n.s=111)}({0:function(e,t){e.exports=function(e,t,n,i,r,o){var s,a=e=e||{},l=typeof e.default;\"object\"!==l&&\"function\"!==l||(s=e,a=e.default);var u,c=\"function\"==typeof a?a.options:a;if(t&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),r&&(c._scopeId=r),o?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||\"undefined\"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=u):i&&(u=i),u){var d=c.functional,f=d?c.render:c.beforeCreate;d?(c._injectStyles=u,c.render=function(e,t){return u.call(t),f(e,t)}):c.beforeCreate=f?[].concat(f,u):[u]}return{esModule:s,exports:a,options:c}}},1:function(e,t){e.exports=n(\"fPll\")},111:function(e,t,n){e.exports=n(112)},112:function(e,t,n){\"use strict\";t.__esModule=!0;var i,r=n(113),o=(i=r)&&i.__esModule?i:{default:i};o.default.install=function(e){e.component(o.default.name,o.default)},t.default=o.default},113:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var i=n(114),r=n.n(i),o=n(116),s=n(0)(r.a,o.a,!1,null,null,null);t.default=s.exports},114:function(e,t,n){\"use strict\";t.__esModule=!0;var i=a(n(1)),r=a(n(8)),o=a(n(115)),s=a(n(9));function a(e){return e&&e.__esModule?e:{default:e}}t.default={name:\"ElInput\",componentName:\"ElInput\",mixins:[i.default,r.default],inheritAttrs:!1,inject:{elForm:{default:\"\"},elFormItem:{default:\"\"}},data:function(){return{currentValue:this.value,textareaCalcStyle:{},prefixOffset:null,suffixOffset:null,hovering:!1,focused:!1}},props:{value:[String,Number],size:String,resize:String,form:String,disabled:Boolean,type:{type:String,default:\"text\"},autosize:{type:[Boolean,Object],default:!1},autoComplete:{type:String,default:\"off\"},validateEvent:{type:Boolean,default:!0},suffixIcon:String,prefixIcon:String,label:String,clearable:{type:Boolean,default:!1},tabindex:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},validateState:function(){return this.elFormItem?this.elFormItem.validateState:\"\"},needStatusIcon:function(){return!!this.elForm&&this.elForm.statusIcon},validateIcon:function(){return{validating:\"el-icon-loading\",success:\"el-icon-circle-check\",error:\"el-icon-circle-close\"}[this.validateState]},textareaStyle:function(){return(0,s.default)({},this.textareaCalcStyle,{resize:this.resize})},inputSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputDisabled:function(){return this.disabled||(this.elForm||{}).disabled},isGroup:function(){return this.$slots.prepend||this.$slots.append},showClear:function(){return this.clearable&&!this.disabled&&\"\"!==this.currentValue&&(this.focused||this.hovering)}},watch:{value:function(e,t){this.setCurrentValue(e)}},methods:{focus:function(){(this.$refs.input||this.$refs.textarea).focus()},blur:function(){(this.$refs.input||this.$refs.textarea).blur()},getMigratingConfig:function(){return{props:{icon:\"icon is removed, use suffix-icon / prefix-icon instead.\",\"on-icon-click\":\"on-icon-click is removed.\"},events:{click:\"click is removed.\"}}},handleBlur:function(e){this.focused=!1,this.$emit(\"blur\",e),this.validateEvent&&this.dispatch(\"ElFormItem\",\"el.form.blur\",[this.currentValue])},select:function(){(this.$refs.input||this.$refs.textarea).select()},resizeTextarea:function(){if(!this.$isServer){var e=this.autosize;if(\"textarea\"===this.type)if(e){var t=e.minRows,n=e.maxRows;this.textareaCalcStyle=(0,o.default)(this.$refs.textarea,t,n)}else this.textareaCalcStyle={minHeight:(0,o.default)(this.$refs.textarea).minHeight}}},handleFocus:function(e){this.focused=!0,this.$emit(\"focus\",e)},handleInput:function(e){var t=e.target.value;this.$emit(\"input\",t),this.setCurrentValue(t)},handleChange:function(e){this.$emit(\"change\",e.target.value)},setCurrentValue:function(e){var t=this;e!==this.currentValue&&(this.$nextTick(function(e){t.resizeTextarea()}),this.currentValue=e,this.validateEvent&&this.dispatch(\"ElFormItem\",\"el.form.change\",[e]))},calcIconOffset:function(e){var t={suf:\"append\",pre:\"prepend\"}[e];if(this.$slots[t])return{transform:\"translateX(\"+(\"suf\"===e?\"-\":\"\")+this.$el.querySelector(\".el-input-group__\"+t).offsetWidth+\"px)\"}},clear:function(){this.$emit(\"input\",\"\"),this.$emit(\"change\",\"\"),this.$emit(\"clear\"),this.setCurrentValue(\"\"),this.focus()}},created:function(){this.$on(\"inputSelect\",this.select)},mounted:function(){this.resizeTextarea(),this.isGroup&&(this.prefixOffset=this.calcIconOffset(\"pre\"),this.suffixOffset=this.calcIconOffset(\"suf\"))}}},115:function(e,t,n){\"use strict\";t.__esModule=!0,t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;i||(i=document.createElement(\"textarea\"),document.body.appendChild(i));var s=function(e){var t=window.getComputedStyle(e),n=t.getPropertyValue(\"box-sizing\"),i=parseFloat(t.getPropertyValue(\"padding-bottom\"))+parseFloat(t.getPropertyValue(\"padding-top\")),r=parseFloat(t.getPropertyValue(\"border-bottom-width\"))+parseFloat(t.getPropertyValue(\"border-top-width\"));return{contextStyle:o.map(function(e){return e+\":\"+t.getPropertyValue(e)}).join(\";\"),paddingSize:i,borderSize:r,boxSizing:n}}(e),a=s.paddingSize,l=s.borderSize,u=s.boxSizing,c=s.contextStyle;i.setAttribute(\"style\",c+\";\"+r),i.value=e.value||e.placeholder||\"\";var d=i.scrollHeight,f={};\"border-box\"===u?d+=l:\"content-box\"===u&&(d-=a);i.value=\"\";var h=i.scrollHeight-a;if(null!==t){var p=h*t;\"border-box\"===u&&(p=p+a+l),d=Math.max(p,d),f.minHeight=p+\"px\"}if(null!==n){var m=h*n;\"border-box\"===u&&(m=m+a+l),d=Math.min(m,d)}return f.height=d+\"px\",i.parentNode&&i.parentNode.removeChild(i),i=null,f};var i=void 0,r=\"\\n height:0 !important;\\n visibility:hidden !important;\\n overflow:hidden !important;\\n position:absolute !important;\\n z-index:-1000 !important;\\n top:0 !important;\\n right:0 !important\\n\",o=[\"letter-spacing\",\"line-height\",\"padding-top\",\"padding-bottom\",\"font-family\",\"font-weight\",\"font-size\",\"text-rendering\",\"text-transform\",\"width\",\"text-indent\",\"padding-left\",\"padding-right\",\"border-width\",\"box-sizing\"]},116:function(e,t,n){\"use strict\";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(\"div\",{class:[\"textarea\"===e.type?\"el-textarea\":\"el-input\",e.inputSize?\"el-input--\"+e.inputSize:\"\",{\"is-disabled\":e.inputDisabled,\"el-input-group\":e.$slots.prepend||e.$slots.append,\"el-input-group--append\":e.$slots.append,\"el-input-group--prepend\":e.$slots.prepend,\"el-input--prefix\":e.$slots.prefix||e.prefixIcon,\"el-input--suffix\":e.$slots.suffix||e.suffixIcon}],on:{mouseenter:function(t){e.hovering=!0},mouseleave:function(t){e.hovering=!1}}},[\"textarea\"!==e.type?[e.$slots.prepend?n(\"div\",{staticClass:\"el-input-group__prepend\"},[e._t(\"prepend\")],2):e._e(),\"textarea\"!==e.type?n(\"input\",e._b({ref:\"input\",staticClass:\"el-input__inner\",attrs:{tabindex:e.tabindex,type:e.type,disabled:e.inputDisabled,autocomplete:e.autoComplete,\"aria-label\":e.label},domProps:{value:e.currentValue},on:{input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},\"input\",e.$attrs,!1)):e._e(),e.$slots.prefix||e.prefixIcon?n(\"span\",{staticClass:\"el-input__prefix\",style:e.prefixOffset},[e._t(\"prefix\"),e.prefixIcon?n(\"i\",{staticClass:\"el-input__icon\",class:e.prefixIcon}):e._e()],2):e._e(),e.$slots.suffix||e.suffixIcon||e.showClear||e.validateState&&e.needStatusIcon?n(\"span\",{staticClass:\"el-input__suffix\",style:e.suffixOffset},[n(\"span\",{staticClass:\"el-input__suffix-inner\"},[e.showClear?n(\"i\",{staticClass:\"el-input__icon el-icon-circle-close el-input__clear\",on:{click:e.clear}}):[e._t(\"suffix\"),e.suffixIcon?n(\"i\",{staticClass:\"el-input__icon\",class:e.suffixIcon}):e._e()]],2),e.validateState?n(\"i\",{staticClass:\"el-input__icon\",class:[\"el-input__validateIcon\",e.validateIcon]}):e._e()]):e._e(),e.$slots.append?n(\"div\",{staticClass:\"el-input-group__append\"},[e._t(\"append\")],2):e._e()]:n(\"textarea\",e._b({ref:\"textarea\",staticClass:\"el-textarea__inner\",style:e.textareaStyle,attrs:{tabindex:e.tabindex,disabled:e.inputDisabled,\"aria-label\":e.label},domProps:{value:e.currentValue},on:{input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},\"textarea\",e.$attrs,!1))],2)},staticRenderFns:[]};t.a=i},8:function(e,t){e.exports=n(\"aW5l\")},9:function(e,t){e.exports=n(\"jmaC\")}})},ISYW:function(e,t,n){\"use strict\";t.__esModule=!0;var i,r=n(\"7+uW\"),o=(i=r)&&i.__esModule?i:{default:i},s=n(\"2kvA\");var a=[],l=\"@@clickoutsideContext\",u=void 0,c=0;function d(e,t,n){return function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!(n&&n.context&&i.target&&r.target)||e.contains(i.target)||e.contains(r.target)||e===i.target||n.context.popperElm&&(n.context.popperElm.contains(i.target)||n.context.popperElm.contains(r.target))||(t.expression&&e[l].methodName&&n.context[e[l].methodName]?n.context[e[l].methodName]():e[l].bindingFn&&e[l].bindingFn())}}!o.default.prototype.$isServer&&(0,s.on)(document,\"mousedown\",function(e){return u=e}),!o.default.prototype.$isServer&&(0,s.on)(document,\"mouseup\",function(e){a.forEach(function(t){return t[l].documentHandler(e,u)})}),t.default={bind:function(e,t,n){a.push(e);var i=c++;e[l]={id:i,documentHandler:d(e,t,n),methodName:t.expression,bindingFn:t.value}},update:function(e,t,n){e[l].documentHandler=d(e,t,n),e[l].methodName=t.expression,e[l].bindingFn=t.value},unbind:function(e){for(var t=a.length,n=0;nl;)i(a,n=t[l++])&&(~o(u,n)||u.push(n));return u}},\"JP+z\":function(e,t,n){\"use strict\";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),i=0;i=200&&e<300}};l.headers={common:{Accept:\"application/json, text/plain, */*\"}},i.forEach([\"delete\",\"get\",\"head\"],function(e){l.headers[e]={}}),i.forEach([\"post\",\"put\",\"patch\"],function(e){l.headers[e]=i.merge(o)}),e.exports=l}).call(t,n(\"W2nU\"))},Kh4W:function(e,t,n){t.f=n(\"dSzd\")},LKZe:function(e,t,n){var i=n(\"NpIQ\"),r=n(\"X8DO\"),o=n(\"TcQ7\"),s=n(\"MmMw\"),a=n(\"D2L2\"),l=n(\"SfB7\"),u=Object.getOwnPropertyDescriptor;t.f=n(\"+E39\")?u:function(e,t){if(e=o(e),t=s(t,!0),l)try{return u(e,t)}catch(e){}if(a(e,t))return r(!i.f.call(e,t),e[t])}},M6a0:function(e,t){},MU5D:function(e,t,n){var i=n(\"R9M2\");e.exports=Object(\"z\").propertyIsEnumerable(0)?Object:function(e){return\"String\"==i(e)?e.split(\"\"):Object(e)}},MmMw:function(e,t,n){var i=n(\"EqjI\");e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&\"function\"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if(\"function\"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&\"function\"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError(\"Can't convert object to primitive value\")}},NMof:function(e,t,n){\"use strict\";var i,r;\"function\"==typeof Symbol&&Symbol.iterator;void 0===(r=\"function\"==typeof(i=function(){var e=window,t={placement:\"bottom\",gpuAcceleration:!0,offset:0,boundariesElement:\"viewport\",boundariesPadding:5,preventOverflowOrder:[\"left\",\"right\",\"top\",\"bottom\"],flipBehavior:\"flip\",arrowElement:\"[x-arrow]\",arrowOffset:0,modifiers:[\"shift\",\"offset\",\"preventOverflow\",\"keepTogether\",\"arrow\",\"flip\",\"applyStyle\"],modifiersIgnored:[],forceAbsolute:!1};function n(e,n,i){this._reference=e.jquery?e[0]:e,this.state={};var r=void 0===n||null===n,o=n&&\"[object Object]\"===Object.prototype.toString.call(n);return this._popper=r||o?this.parse(o?n:{}):n.jquery?n[0]:n,this._options=Object.assign({},t,i),this._options.modifiers=this._options.modifiers.map(function(e){if(-1===this._options.modifiersIgnored.indexOf(e))return\"applyStyle\"===e&&this._popper.setAttribute(\"x-placement\",this._options.placement),this.modifiers[e]||e}.bind(this)),this.state.position=this._getPosition(this._popper,this._reference),c(this._popper,{position:this.state.position,top:0}),this.update(),this._setupEventListeners(),this}function i(t){var n=t.style.display,i=t.style.visibility;t.style.display=\"block\",t.style.visibility=\"hidden\";t.offsetWidth;var r=e.getComputedStyle(t),o=parseFloat(r.marginTop)+parseFloat(r.marginBottom),s=parseFloat(r.marginLeft)+parseFloat(r.marginRight),a={width:t.offsetWidth+s,height:t.offsetHeight+o};return t.style.display=n,t.style.visibility=i,a}function r(e){var t={left:\"right\",right:\"left\",bottom:\"top\",top:\"bottom\"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function o(e){var t=Object.assign({},e);return t.right=t.left+t.width,t.bottom=t.top+t.height,t}function s(e,t){var n,i=0;for(n in e){if(e[n]===t)return i;i++}return null}function a(t,n){return e.getComputedStyle(t,null)[n]}function l(t){var n=t.offsetParent;return n!==e.document.body&&n?n:e.document.documentElement}function u(t){var n=t.parentNode;return n?n===e.document?e.document.body.scrollTop||e.document.body.scrollLeft?e.document.body:e.document.documentElement:-1!==[\"scroll\",\"auto\"].indexOf(a(n,\"overflow\"))||-1!==[\"scroll\",\"auto\"].indexOf(a(n,\"overflow-x\"))||-1!==[\"scroll\",\"auto\"].indexOf(a(n,\"overflow-y\"))?n:u(t.parentNode):t}function c(e,t){Object.keys(t).forEach(function(n){var i,r=\"\";-1!==[\"width\",\"height\",\"top\",\"right\",\"bottom\",\"left\"].indexOf(n)&&(\"\"!==(i=t[n])&&!isNaN(parseFloat(i))&&isFinite(i))&&(r=\"px\"),e.style[n]=t[n]+r})}function d(e){var t={width:e.offsetWidth,height:e.offsetHeight,left:e.offsetLeft,top:e.offsetTop};return t.right=t.left+t.width,t.bottom=t.top+t.height,t}function f(e){var t=e.getBoundingClientRect(),n=-1!=navigator.userAgent.indexOf(\"MSIE\")&&\"HTML\"===e.tagName?-e.scrollTop:t.top;return{left:t.left,top:n,right:t.right,bottom:t.bottom,width:t.right-t.left,height:t.bottom-n}}function h(t){for(var n=[\"\",\"ms\",\"webkit\",\"moz\",\"o\"],i=0;i1&&console.warn(\"WARNING: the given `parent` query(\"+t.parent+\") matched more than one element, the first one will be used\"),0===s.length)throw\"ERROR: the given `parent` doesn't exists!\";s=s[0]}return s.length>1&&s instanceof Element==!1&&(console.warn(\"WARNING: you have passed as parent a list of elements, the first one will be used\"),s=s[0]),s.appendChild(r),r;function a(e,t){t.forEach(function(t){e.classList.add(t)})}function l(e,t){t.forEach(function(t){e.setAttribute(t.split(\":\")[0],t.split(\":\")[1]||\"\")})}},n.prototype._getPosition=function(t,n){l(n);return this._options.forceAbsolute?\"absolute\":function t(n){if(n===e.document.body)return!1;if(\"fixed\"===a(n,\"position\"))return!0;return n.parentNode?t(n.parentNode):n}(n)?\"fixed\":\"absolute\"},n.prototype._getOffsets=function(e,t,n){n=n.split(\"-\")[0];var r={};r.position=this.state.position;var o=\"fixed\"===r.position,s=function(e,t,n){var i=f(e),r=f(t);if(n){var o=u(t);r.top+=o.scrollTop,r.bottom+=o.scrollTop,r.left+=o.scrollLeft,r.right+=o.scrollLeft}return{top:i.top-r.top,left:i.left-r.left,bottom:i.top-r.top+i.height,right:i.left-r.left+i.width,width:i.width,height:i.height}}(t,l(e),o),a=i(e);return-1!==[\"right\",\"left\"].indexOf(n)?(r.top=s.top+s.height/2-a.height/2,r.left=\"left\"===n?s.left-a.width:s.right):(r.left=s.left+s.width/2-a.width/2,r.top=\"top\"===n?s.top-a.height:s.bottom),r.width=a.width,r.height=a.height,{popper:r,reference:s}},n.prototype._setupEventListeners=function(){if(this.state.updateBound=this.update.bind(this),e.addEventListener(\"resize\",this.state.updateBound),\"window\"!==this._options.boundariesElement){var t=u(this._reference);t!==e.document.body&&t!==e.document.documentElement||(t=e),t.addEventListener(\"scroll\",this.state.updateBound),this.state.scrollTarget=t}},n.prototype._removeEventListeners=function(){e.removeEventListener(\"resize\",this.state.updateBound),\"window\"!==this._options.boundariesElement&&this.state.scrollTarget&&(this.state.scrollTarget.removeEventListener(\"scroll\",this.state.updateBound),this.state.scrollTarget=null),this.state.updateBound=null},n.prototype._getBoundaries=function(t,n,i){var r,o,s={};if(\"window\"===i){var a=e.document.body,c=e.document.documentElement;r=Math.max(a.scrollHeight,a.offsetHeight,c.clientHeight,c.scrollHeight,c.offsetHeight),s={top:0,right:Math.max(a.scrollWidth,a.offsetWidth,c.clientWidth,c.scrollWidth,c.offsetWidth),bottom:r,left:0}}else if(\"viewport\"===i){var f=l(this._popper),h=u(this._popper),p=d(f),m=\"fixed\"===t.offsets.popper.position?0:(o=h)==document.body?Math.max(document.documentElement.scrollTop,document.body.scrollTop):o.scrollTop,v=\"fixed\"===t.offsets.popper.position?0:function(e){return e==document.body?Math.max(document.documentElement.scrollLeft,document.body.scrollLeft):e.scrollLeft}(h);s={top:0-(p.top-m),right:e.document.documentElement.clientWidth-(p.left-v),bottom:e.document.documentElement.clientHeight-(p.top-m),left:0-(p.left-v)}}else s=l(this._popper)===i?{top:0,left:0,right:i.clientWidth,bottom:i.clientHeight}:d(i);return s.left+=n,s.right-=n,s.top=s.top+n,s.bottom=s.bottom-n,s},n.prototype.runModifiers=function(e,t,n){var i=t.slice();return void 0!==n&&(i=this._options.modifiers.slice(0,s(this._options.modifiers,n))),i.forEach(function(t){var n;(n=t)&&\"[object Function]\"==={}.toString.call(n)&&(e=t.call(this,e))}.bind(this)),e},n.prototype.isModifierRequired=function(e,t){var n=s(this._options.modifiers,e);return!!this._options.modifiers.slice(0,n).filter(function(e){return e===t}).length},n.prototype.modifiers={},n.prototype.modifiers.applyStyle=function(e){var t,n={position:e.offsets.popper.position},i=Math.round(e.offsets.popper.left),r=Math.round(e.offsets.popper.top);return this._options.gpuAcceleration&&(t=h(\"transform\"))?(n[t]=\"translate3d(\"+i+\"px, \"+r+\"px, 0)\",n.top=0,n.left=0):(n.left=i,n.top=r),Object.assign(n,e.styles),c(this._popper,n),this._popper.setAttribute(\"x-placement\",e.placement),this.isModifierRequired(this.modifiers.applyStyle,this.modifiers.arrow)&&e.offsets.arrow&&c(e.arrowElement,e.offsets.arrow),e},n.prototype.modifiers.shift=function(e){var t=e.placement,n=t.split(\"-\")[0],i=t.split(\"-\")[1];if(i){var r=e.offsets.reference,s=o(e.offsets.popper),a={y:{start:{top:r.top},end:{top:r.top+r.height-s.height}},x:{start:{left:r.left},end:{left:r.left+r.width-s.width}}},l=-1!==[\"bottom\",\"top\"].indexOf(n)?\"x\":\"y\";e.offsets.popper=Object.assign(s,a[l][i])}return e},n.prototype.modifiers.preventOverflow=function(e){var t=this._options.preventOverflowOrder,n=o(e.offsets.popper),i={left:function(){var t=n.left;return n.lefte.boundaries.right&&(t=Math.min(n.left,e.boundaries.right-n.width)),{left:t}},top:function(){var t=n.top;return n.tope.boundaries.bottom&&(t=Math.min(n.top,e.boundaries.bottom-n.height)),{top:t}}};return t.forEach(function(t){e.offsets.popper=Object.assign(n,i[t]())}),e},n.prototype.modifiers.keepTogether=function(e){var t=o(e.offsets.popper),n=e.offsets.reference,i=Math.floor;return t.righti(n.right)&&(e.offsets.popper.left=i(n.right)),t.bottomi(n.bottom)&&(e.offsets.popper.top=i(n.bottom)),e},n.prototype.modifiers.flip=function(e){if(!this.isModifierRequired(this.modifiers.flip,this.modifiers.preventOverflow))return console.warn(\"WARNING: preventOverflow modifier is required by flip modifier in order to work, be sure to include it before flip!\"),e;if(e.flipped&&e.placement===e._originalPlacement)return e;var t=e.placement.split(\"-\")[0],n=r(t),i=e.placement.split(\"-\")[1]||\"\",s=[];return(s=\"flip\"===this._options.flipBehavior?[t,n]:this._options.flipBehavior).forEach(function(a,l){if(t===a&&s.length!==l+1){t=e.placement.split(\"-\")[0],n=r(t);var u=o(e.offsets.popper),c=-1!==[\"right\",\"bottom\"].indexOf(t);(c&&Math.floor(e.offsets.reference[t])>Math.floor(u[n])||!c&&Math.floor(e.offsets.reference[t])a[h]&&(e.offsets.popper[d]+=l[d]+p-a[h]);var m=l[d]+(n||l[c]/2-p/2)-a[d];return m=Math.max(Math.min(a[c]-p-8,m),8),r[d]=m,r[f]=\"\",e.offsets.arrow=r,e.arrowElement=t,e},Object.assign||Object.defineProperty(Object,\"assign\",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(void 0===e||null===e)throw new TypeError(\"Cannot convert first argument to object\");for(var t=Object(e),n=1;n0){var i=t[t.length-1];if(i.id===e){if(i.modalClass)i.modalClass.trim().split(/\\s+/).forEach(function(e){return(0,s.removeClass)(n,e)});t.pop(),t.length>0&&(n.style.zIndex=t[t.length-1].zIndex)}else for(var r=t.length-1;r>=0;r--)if(t[r].id===e){t.splice(r,1);break}}0===t.length&&(this.modalFade&&(0,s.addClass)(n,\"v-modal-leave\"),setTimeout(function(){0===t.length&&(n.parentNode&&n.parentNode.removeChild(n),n.style.display=\"none\",c.modalDom=void 0),(0,s.removeClass)(n,\"v-modal-leave\")},200))}};o.default.prototype.$isServer||window.addEventListener(\"keydown\",function(e){if(27===e.keyCode){var t=function(){if(!o.default.prototype.$isServer&&c.modalStack.length>0){var e=c.modalStack[c.modalStack.length-1];if(!e)return;return c.getInstance(e.id)}}();t&&t.closeOnPressEscape&&(t.handleClose?t.handleClose():t.handleAction?t.handleAction(\"cancel\"):t.close())}}),t.default=c},ON07:function(e,t,n){var i=n(\"EqjI\"),r=n(\"7KvD\").document,o=i(r)&&i(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},ON3O:function(e,t,n){var i=n(\"uY1a\");e.exports=function(e,t,n){return void 0===n?i(e,t,!1):i(e,n,!1!==t)}},OYls:function(e,t,n){n(\"crlp\")(\"asyncIterator\")},PzxK:function(e,t,n){var i=n(\"D2L2\"),r=n(\"sB3e\"),o=n(\"ax3d\")(\"IE_PROTO\"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),i(e,o)?e[o]:\"function\"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},QRG4:function(e,t,n){var i=n(\"UuGF\"),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},\"QWe/\":function(e,t,n){n(\"crlp\")(\"observable\")},R4wc:function(e,t,n){var i=n(\"kM2E\");i(i.S+i.F,\"Object\",{assign:n(\"To3L\")})},R9M2:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},RPLV:function(e,t,n){var i=n(\"7KvD\").document;e.exports=i&&i.documentElement},Re3r:function(e,t){function n(e){return!!e.constructor&&\"function\"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}\n/*!\n * Determine if an object is a Buffer\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\ne.exports=function(e){return null!=e&&(n(e)||function(e){return\"function\"==typeof e.readFloatLE&&\"function\"==typeof e.slice&&n(e.slice(0,0))}(e)||!!e._isBuffer)}},Rrel:function(e,t,n){var i=n(\"TcQ7\"),r=n(\"n0T6\").f,o={}.toString,s=\"object\"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&\"[object Window]\"==o.call(e)?function(e){try{return r(e)}catch(e){return s.slice()}}(e):r(i(e))}},S82l:function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},STLj:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,\"a\",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=\"/dist/\",n(n.s=166)}({0:function(e,t){e.exports=function(e,t,n,i,r,o){var s,a=e=e||{},l=typeof e.default;\"object\"!==l&&\"function\"!==l||(s=e,a=e.default);var u,c=\"function\"==typeof a?a.options:a;if(t&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),r&&(c._scopeId=r),o?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||\"undefined\"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=u):i&&(u=i),u){var d=c.functional,f=d?c.render:c.beforeCreate;d?(c._injectStyles=u,c.render=function(e,t){return u.call(t),f(e,t)}):c.beforeCreate=f?[].concat(f,u):[u]}return{esModule:s,exports:a,options:c}}},1:function(e,t){e.exports=n(\"fPll\")},166:function(e,t,n){e.exports=n(167)},167:function(e,t,n){\"use strict\";t.__esModule=!0;var i,r=n(34),o=(i=r)&&i.__esModule?i:{default:i};o.default.install=function(e){e.component(o.default.name,o.default)},t.default=o.default},3:function(e,t){e.exports=n(\"ylDJ\")},34:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var i=n(35),r=n.n(i),o=n(36),s=n(0)(r.a,o.a,!1,null,null,null);t.default=s.exports},35:function(e,t,n){\"use strict\";t.__esModule=!0;var i,r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},o=n(1),s=(i=o)&&i.__esModule?i:{default:i},a=n(3);t.default={mixins:[s.default],name:\"ElOption\",componentName:\"ElOption\",inject:[\"select\"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return\"[object object]\"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?\"\":this.value)},currentValue:function(){return this.value||this.label||\"\"},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch(\"ElSelect\",\"setSelected\")},value:function(){this.created||this.select.remote||this.dispatch(\"ElSelect\",\"setSelected\")}},methods:{isEqual:function(e,t){if(this.isObject){var n=this.select.valueKey;return(0,a.getValueByPath)(e,n)===(0,a.getValueByPath)(t,n)}return e===t},contains:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments[1];if(!this.isObject)return t.indexOf(n)>-1;var i,o=(i=e.select.valueKey,{v:t.some(function(e){return(0,a.getValueByPath)(e,i)===(0,a.getValueByPath)(n,i)})});return\"object\"===(void 0===o?\"undefined\":r(o))?o.v:void 0},handleGroupDisabled:function(e){this.groupDisabled=e},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch(\"ElSelect\",\"handleOptionClick\",this)},queryChange:function(e){var t=String(e).replace(/(\\^|\\(|\\)|\\[|\\]|\\$|\\*|\\+|\\.|\\?|\\\\|\\{|\\}|\\|)/g,\"\\\\$1\");this.visible=new RegExp(t,\"i\").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on(\"queryChange\",this.queryChange),this.$on(\"handleGroupDisabled\",this.handleGroupDisabled)},beforeDestroy:function(){this.select.onOptionDestroy(this.select.options.indexOf(this))}}},36:function(e,t,n){\"use strict\";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(\"li\",{directives:[{name:\"show\",rawName:\"v-show\",value:e.visible,expression:\"visible\"}],staticClass:\"el-select-dropdown__item\",class:{selected:e.itemSelected,\"is-disabled\":e.disabled||e.groupDisabled||e.limitReached,hover:e.hover},on:{mouseenter:e.hoverItem,click:function(t){t.stopPropagation(),e.selectOptionClick(t)}}},[e._t(\"default\",[n(\"span\",[e._v(e._s(e.currentLabel))])])],2)},staticRenderFns:[]};t.a=i}})},SfB7:function(e,t,n){e.exports=!n(\"+E39\")&&!n(\"S82l\")(function(){return 7!=Object.defineProperty(n(\"ON07\")(\"div\"),\"a\",{get:function(){return 7}}).a})},SvnF:function(e,t,n){\"use strict\";t.__esModule=!0;var i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e};t.default=function(e){return function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),s=1;su;)for(var f,h=a(arguments[u++]),p=c?i(h).concat(c(h)):i(h),m=p.length,v=0;m>v;)d.call(h,f=p[v++])&&(n[f]=h[f]);return n}:l},UuGF:function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},V3tA:function(e,t,n){n(\"R4wc\"),e.exports=n(\"FeBl\").Object.assign},\"VU/8\":function(e,t){e.exports=function(e,t,n,i,r,o){var s,a=e=e||{},l=typeof e.default;\"object\"!==l&&\"function\"!==l||(s=e,a=e.default);var u,c=\"function\"==typeof a?a.options:a;if(t&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),r&&(c._scopeId=r),o?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||\"undefined\"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=u):i&&(u=i),u){var d=c.functional,f=d?c.render:c.beforeCreate;d?(c._injectStyles=u,c.render=function(e,t){return u.call(t),f(e,t)}):c.beforeCreate=f?[].concat(f,u):[u]}return{esModule:s,exports:a,options:c}}},Vi3T:function(e,t,n){\"use strict\";t.__esModule=!0,t.default={el:{colorpicker:{confirm:\"确定\",clear:\"清空\"},datepicker:{now:\"此刻\",today:\"今天\",cancel:\"取消\",clear:\"清空\",confirm:\"确定\",selectDate:\"选择日期\",selectTime:\"选择时间\",startDate:\"开始日期\",startTime:\"开始时间\",endDate:\"结束日期\",endTime:\"结束时间\",prevYear:\"前一年\",nextYear:\"后一年\",prevMonth:\"上个月\",nextMonth:\"下个月\",year:\"年\",month1:\"1 月\",month2:\"2 月\",month3:\"3 月\",month4:\"4 月\",month5:\"5 月\",month6:\"6 月\",month7:\"7 月\",month8:\"8 月\",month9:\"9 月\",month10:\"10 月\",month11:\"11 月\",month12:\"12 月\",weeks:{sun:\"日\",mon:\"一\",tue:\"二\",wed:\"三\",thu:\"四\",fri:\"五\",sat:\"六\"},months:{jan:\"一月\",feb:\"二月\",mar:\"三月\",apr:\"四月\",may:\"五月\",jun:\"六月\",jul:\"七月\",aug:\"八月\",sep:\"九月\",oct:\"十月\",nov:\"十一月\",dec:\"十二月\"}},select:{loading:\"加载中\",noMatch:\"无匹配数据\",noData:\"无数据\",placeholder:\"请选择\"},cascader:{noMatch:\"无匹配数据\",loading:\"加载中\",placeholder:\"请选择\"},pagination:{goto:\"前往\",pagesize:\"条/页\",total:\"共 {total} 条\",pageClassifier:\"页\"},messagebox:{title:\"提示\",confirm:\"确定\",cancel:\"取消\",error:\"输入的数据不合法!\"},upload:{deleteTip:\"按 delete 键可删除\",delete:\"删除\",preview:\"查看图片\",continue:\"继续上传\"},table:{emptyText:\"暂无数据\",confirmFilter:\"筛选\",resetFilter:\"重置\",clearFilter:\"全部\",sumText:\"合计\"},tree:{emptyText:\"暂无数据\"},transfer:{noMatch:\"无匹配数据\",noData:\"无数据\",titles:[\"列表 1\",\"列表 2\"],filterPlaceholder:\"请输入搜索内容\",noCheckedFormat:\"共 {total} 项\",hasCheckedFormat:\"已选 {checked}/{total} 项\"}}}},W2nU:function(e,t){var n,i,r=e.exports={};function o(){throw new Error(\"setTimeout has not been defined\")}function s(){throw new Error(\"clearTimeout has not been defined\")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n=\"function\"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{i=\"function\"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var l,u=[],c=!1,d=-1;function f(){c&&l&&(c=!1,l.length?u=l.concat(u):d=-1,u.length&&h())}function h(){if(!c){var e=a(f);c=!0;for(var t=u.length;t;){for(l=u,u=[];++d1)for(var n=1;nu;)l.call(e,s=a[u++])&&t.push(s);return t}},XmWM:function(e,t,n){\"use strict\";var i=n(\"KCLY\"),r=n(\"cGG2\"),o=n(\"fuGk\"),s=n(\"xLtR\");function a(e){this.defaults=e,this.interceptors={request:new o,response:new o}}a.prototype.request=function(e){\"string\"==typeof e&&(e=r.merge({url:arguments[0]},arguments[1])),(e=r.merge(i,{method:\"get\"},this.defaults,e)).method=e.method.toLowerCase();var t=[s,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},r.forEach([\"delete\",\"get\",\"head\",\"options\"],function(e){a.prototype[e]=function(t,n){return this.request(r.merge(n||{},{method:e,url:t}))}}),r.forEach([\"post\",\"put\",\"patch\"],function(e){a.prototype[e]=function(t,n,i){return this.request(r.merge(i||{},{method:e,url:t,data:n}))}}),e.exports=a},Y5mS:function(e,t,n){\"use strict\";var i,r=n(\"lFkc\");r.canUseDOM&&(i=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature(\"\",\"\"))\n/**\n * Checks if an event is supported in the current execution environment.\n *\n * NOTE: This will not work correctly for non-generic events such as `change`,\n * `reset`, `load`, `error`, and `select`.\n *\n * Borrows from Modernizr.\n *\n * @param {string} eventNameSuffix Event name, e.g. \"click\".\n * @param {?boolean} capture Check if the capture phase is supported.\n * @return {boolean} True if the event is supported.\n * @internal\n * @license Modernizr 3.0.0pre (Custom Build) | MIT\n */,e.exports=function(e,t){if(!r.canUseDOM||t&&!(\"addEventListener\"in document))return!1;var n=\"on\"+e,o=n in document;if(!o){var s=document.createElement(\"div\");s.setAttribute(n,\"return;\"),o=\"function\"==typeof s[n]}return!o&&i&&\"wheel\"===e&&(o=document.implementation.hasFeature(\"Events.wheel\",\"3.0\")),o}},YAhB:function(e,t,n){\"use strict\";var i=n(\"++K3\"),r=n(\"Y5mS\"),o=10,s=40,a=800;function l(e){var t=0,n=0,i=0,r=0;return\"detail\"in e&&(n=e.detail),\"wheelDelta\"in e&&(n=-e.wheelDelta/120),\"wheelDeltaY\"in e&&(n=-e.wheelDeltaY/120),\"wheelDeltaX\"in e&&(t=-e.wheelDeltaX/120),\"axis\"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),i=t*o,r=n*o,\"deltaY\"in e&&(r=e.deltaY),\"deltaX\"in e&&(i=e.deltaX),(i||r)&&e.deltaMode&&(1==e.deltaMode?(i*=s,r*=s):(i*=a,r*=a)),i&&!t&&(t=i<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:t,spinY:n,pixelX:i,pixelY:r}}l.getEventType=function(){return i.firefox()?\"DOMMouseScroll\":r(\"wheel\")?\"wheel\":\"mousewheel\"},e.exports=l},\"Ya/q\":function(e,t,n){\"use strict\";var i=function(e){return function(e){return!!e&&\"object\"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return\"[object RegExp]\"===t||\"[object Date]\"===t||function(e){return e.$$typeof===r}(e)}(e)};var r=\"function\"==typeof Symbol&&Symbol.for?Symbol.for(\"react.element\"):60103;function o(e,t){var n;return t&&!0===t.clone&&i(e)?a((n=e,Array.isArray(n)?[]:{}),e,t):e}function s(e,t,n){var r=e.slice();return t.forEach(function(t,s){void 0===r[s]?r[s]=o(t,n):i(t)?r[s]=a(e[s],t,n):-1===e.indexOf(t)&&r.push(o(t,n))}),r}function a(e,t,n){var r=Array.isArray(t);return r===Array.isArray(e)?r?((n||{arrayMerge:s}).arrayMerge||s)(e,t,n):function(e,t,n){var r={};return i(e)&&Object.keys(e).forEach(function(t){r[t]=o(e[t],n)}),Object.keys(t).forEach(function(s){i(t[s])&&e[s]?r[s]=a(e[s],t[s],n):r[s]=o(t[s],n)}),r}(e,t,n):o(t,n)}a.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error(\"first argument should be an array with at least two elements\");return e.reduce(function(e,n){return a(e,n,t)})};var l=a;e.exports=l},Yobk:function(e,t,n){var i=n(\"77Pl\"),r=n(\"qio6\"),o=n(\"xnc9\"),s=n(\"ax3d\")(\"IE_PROTO\"),a=function(){},l=function(){var e,t=n(\"ON07\")(\"iframe\"),i=o.length;for(t.style.display=\"none\",n(\"RPLV\").appendChild(t),t.src=\"javascript:\",(e=t.contentWindow.document).open(),e.write(\"